@novu/js 2.3.1 → 2.5.0

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.
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkAALXN67T_js = require('../chunk-AALXN67T.js');
3
+ var chunkRK2WRT5F_js = require('../chunk-RK2WRT5F.js');
4
+ var chunkERC62PGI_js = require('../chunk-ERC62PGI.js');
4
5
  var chunk7B52C2XE_js = require('../chunk-7B52C2XE.js');
5
6
  var web = require('solid-js/web');
6
7
  var solidJs = require('solid-js');
@@ -253,7 +254,7 @@ function formatToRelativeTime({
253
254
  } else if (diffInSeconds < SECONDS.inMonth) {
254
255
  return formatter.format(Math.floor(-diffInSeconds / SECONDS.inDay), "day");
255
256
  } else {
256
- return new Intl.DateTimeFormat(locale, { month: "short", day: "numeric" }).format(toDate);
257
+ return new Intl.DateTimeFormat(locale, { month: "short", day: "numeric" }).format(fromDate);
257
258
  }
258
259
  }
259
260
  var twMerge = tailwindMerge.extendTailwindMerge({
@@ -525,9 +526,9 @@ var useNovuEvent = ({
525
526
  }) => {
526
527
  const novu = useNovu();
527
528
  solidJs.onMount(() => {
528
- novu.on(event, eventHandler);
529
+ const cleanup = novu.on(event, eventHandler);
529
530
  solidJs.onCleanup(() => {
530
- novu.off(event, eventHandler);
531
+ cleanup();
531
532
  });
532
533
  });
533
534
  };
@@ -584,11 +585,14 @@ var useWebSocketEvent = ({
584
585
  postMessage(data);
585
586
  };
586
587
  solidJs.onMount(() => {
588
+ let cleanup;
587
589
  const resolveLock = requestLock(`nv.${webSocketEvent}`, () => {
588
- novu.on(webSocketEvent, updateReadCount);
590
+ cleanup = novu.on(webSocketEvent, updateReadCount);
589
591
  });
590
592
  solidJs.onCleanup(() => {
591
- novu.off(webSocketEvent, updateReadCount);
593
+ if (cleanup) {
594
+ cleanup();
595
+ }
592
596
  resolveLock();
593
597
  });
594
598
  });
@@ -749,7 +753,7 @@ var useInboxContext = () => {
749
753
  };
750
754
  var NovuContext = solidJs.createContext(void 0);
751
755
  function NovuProvider(props) {
752
- const novu = solidJs.createMemo(() => props.novu || new chunkAALXN67T_js.Novu(props.options));
756
+ const novu = solidJs.createMemo(() => props.novu || new chunkRK2WRT5F_js.Novu(props.options));
753
757
  return web.createComponent(NovuContext.Provider, {
754
758
  get value() {
755
759
  return novu();
@@ -1048,7 +1052,7 @@ var ExternalElementRenderer = (props) => {
1048
1052
  return _el$;
1049
1053
  })();
1050
1054
  };
1051
- var _tmpl$2 = /* @__PURE__ */ web.template(`<svg xmlns=http://www.w3.org/2000/svg width=20 height=20 fill=none viewBox="0 0 20 20"><path fill=currentColor d="M17.117 4.358l-1.159-1.4A1.21 1.21 0 0015 2.5H5c-.392 0-.733.175-.967.458l-1.15 1.4A1.632 1.632 0 002.5 5.417v10.416c0 .917.75 1.667 1.667 1.667h11.666c.917 0 1.667-.75 1.667-1.667V5.417c0-.4-.142-.775-.383-1.059zM5.2 4.167h9.6l.675.808H4.533l.667-.808zM4.167 15.833V6.667h11.666v9.166H4.167zm7.041-7.5H8.792v2.5H6.667L10 14.167l3.333-3.334h-2.125v-2.5z">`);
1055
+ var _tmpl$2 = /* @__PURE__ */ web.template(`<svg xmlns=http://www.w3.org/2000/svg width=20 height=20 fill=none viewBox="0 0 20 20"><path fill=currentColor d="M16.25 15V6.875L15 4.375H5L3.75 6.877V15c0 .345.28.625.625.625h11.25c.345 0 .625-.28.625-.625zM5 8.125h10v6.25H5v-6.25zm.772-2.5h8.455l.625 1.25H5.148l.625-1.25zm6.103 3.75h-3.75v1.25h3.75v-1.25z">`);
1052
1056
  var Archive = (props) => {
1053
1057
  return (() => {
1054
1058
  var _el$ = _tmpl$2();
@@ -1184,7 +1188,7 @@ var Unarchive = (props) => {
1184
1188
  return _el$;
1185
1189
  })();
1186
1190
  };
1187
- var _tmpl$19 = /* @__PURE__ */ web.template(`<svg xmlns=http://www.w3.org/2000/svg width=20 height=20 fill=none viewBox="0 0 20 20"><path fill=currentColor d="M18.334 5.817v7.516c0 .917-.75 1.667-1.667 1.667H5l-3.333 3.333v-15c0-.916.75-1.666 1.667-1.666h8.416c-.05.266-.083.55-.083.833 0 .283.033.567.083.833H3.334v10h13.333v-6.75a4.127 4.127 0 001.667-.766zm-5-3.317c0 1.383 1.116 2.5 2.5 2.5 1.383 0 2.5-1.117 2.5-2.5S17.217 0 15.834 0a2.497 2.497 0 00-2.5 2.5z">`);
1191
+ var _tmpl$19 = /* @__PURE__ */ web.template(`<svg xmlns=http://www.w3.org/2000/svg width=20 height=20 fill=none viewBox="0 0 20 20"><path fill=currentColor d="M10 15v1.25H4.996a.625.625 0 01-.621-.62V4.37c0-.342.28-.62.624-.62H12.5l3.125 3.125v4.375h-1.25V7.5h-2.5V5h-6.25v10H10zm1.54-.335l2.21 2.21 3.094-3.093-.884-.884-2.21 2.21-1.326-1.326-.884.883z">`);
1188
1192
  var Unread = (props) => {
1189
1193
  return (() => {
1190
1194
  var _el$ = _tmpl$19();
@@ -1192,17 +1196,13 @@ var Unread = (props) => {
1192
1196
  return _el$;
1193
1197
  })();
1194
1198
  };
1195
- var _tmpl$20 = /* @__PURE__ */ web.template(`<svg xmlns=http://www.w3.org/2000/svg width=16 height=16 fill=none viewBox="0 0 16 16"><path fill=currentColor d="M8 11.333c.733 0 1.333-.6 1.333-1.333S8.733 8.667 8 8.667s-1.333.6-1.333 1.333.6 1.333 1.333 1.333zm4-6h-.667V4a3.335 3.335 0 00-6.666 0v1.333H4c-.733 0-1.333.6-1.333 1.334v6.666c0 .734.6 1.334 1.333 1.334h8c.733 0 1.333-.6 1.333-1.334V6.667c0-.734-.6-1.334-1.333-1.334zM5.933 4c0-1.14.927-2.067 2.067-2.067 1.14 0 2.067.927 2.067 2.067v1.333H5.933V4zM12 13.333H4V6.667h8v6.666z">`);
1196
- var Lock = () => {
1197
- return _tmpl$20();
1198
- };
1199
1199
 
1200
1200
  // src/ui/components/elements/Bell/DefaultBellContainer.tsx
1201
- var _tmpl$21 = /* @__PURE__ */ web.template(`<span>`);
1201
+ var _tmpl$20 = /* @__PURE__ */ web.template(`<span>`);
1202
1202
  var BellContainer = (props) => {
1203
1203
  const style = useStyle();
1204
1204
  return (() => {
1205
- var _el$ = _tmpl$21();
1205
+ var _el$ = _tmpl$20();
1206
1206
  web.insert(_el$, web.createComponent(BellIcon, {
1207
1207
  get ["class"]() {
1208
1208
  return style("bellIcon");
@@ -1213,7 +1213,7 @@ var BellContainer = (props) => {
1213
1213
  return props.unreadCount > 0;
1214
1214
  },
1215
1215
  get children() {
1216
- var _el$2 = _tmpl$21();
1216
+ var _el$2 = _tmpl$20();
1217
1217
  web.effect(() => web.className(_el$2, style("bellDot", "nt-absolute nt-top-2 nt-right-2 nt-block nt-size-2 nt-transform nt-translate-x-1/2 -nt-translate-y-1/2 nt-bg-primary nt-rounded-full nt-border nt-border-background")));
1218
1218
  return _el$2;
1219
1219
  }
@@ -1246,7 +1246,7 @@ var Bell = (props) => {
1246
1246
  }
1247
1247
  });
1248
1248
  };
1249
- var _tmpl$22 = /* @__PURE__ */ web.template(`<div class="nt-flex nt-shrink-0 nt-justify-center nt-items-center nt-gap-1 nt-mt-auto nt-pt-9 nt-pb-3 nt-text-foreground-alpha-200"><span class=nt-text-xs>Powered by Novu`);
1249
+ var _tmpl$21 = /* @__PURE__ */ web.template(`<div class="nt-flex nt-shrink-0 nt-justify-center nt-items-center nt-gap-1 nt-mt-auto nt-pt-9 nt-pb-3 nt-text-foreground-alpha-200"><span class=nt-text-xs>Powered by Novu`);
1250
1250
  var Footer = () => {
1251
1251
  const {
1252
1252
  hideBranding
@@ -1256,13 +1256,13 @@ var Footer = () => {
1256
1256
  return !hideBranding();
1257
1257
  },
1258
1258
  get children() {
1259
- var _el$ = _tmpl$22(), _el$2 = _el$.firstChild;
1259
+ var _el$ = _tmpl$21(), _el$2 = _el$.firstChild;
1260
1260
  web.insert(_el$, web.createComponent(Novu2, {}), _el$2);
1261
1261
  return _el$;
1262
1262
  }
1263
1263
  });
1264
1264
  };
1265
- var _tmpl$23 = /* @__PURE__ */ web.template(`<button>`);
1265
+ var _tmpl$22 = /* @__PURE__ */ web.template(`<button>`);
1266
1266
  var buttonVariants = classVarianceAuthority.cva("nt-inline-flex nt-gap-4 nt-items-center nt-justify-center nt-whitespace-nowrap nt-rounded-lg nt-text-sm nt-font-medium nt-ring-offset-background nt-transition-colors focus-visible:nt-outline-none focus-visible:nt-ring-2 focus-visible:nt-ring-primary nt-focus-visible:nt-ring-offset-2 disabled:nt-pointer-events-none disabled:nt-opacity-50", {
1267
1267
  variants: {
1268
1268
  variant: {
@@ -1289,7 +1289,7 @@ var Button = (props) => {
1289
1289
  const [local, rest] = solidJs.splitProps(props, ["class", "appearanceKey"]);
1290
1290
  const style = useStyle();
1291
1291
  return (() => {
1292
- var _el$ = _tmpl$23();
1292
+ var _el$ = _tmpl$22();
1293
1293
  web.spread(_el$, web.mergeProps({
1294
1294
  get ["data-variant"]() {
1295
1295
  return props.variant;
@@ -1307,7 +1307,7 @@ var Button = (props) => {
1307
1307
  return _el$;
1308
1308
  })();
1309
1309
  };
1310
- var _tmpl$24 = /* @__PURE__ */ web.template(`<button>`);
1310
+ var _tmpl$23 = /* @__PURE__ */ web.template(`<button>`);
1311
1311
  var PopoverClose = (props) => {
1312
1312
  const {
1313
1313
  onClose
@@ -1328,7 +1328,7 @@ var PopoverClose = (props) => {
1328
1328
  }, rest));
1329
1329
  }
1330
1330
  return (() => {
1331
- var _el$ = _tmpl$24();
1331
+ var _el$ = _tmpl$23();
1332
1332
  _el$.$$click = handleClick;
1333
1333
  web.spread(_el$, rest, false, false);
1334
1334
  return _el$;
@@ -1521,7 +1521,7 @@ var PopoverContent = (props) => {
1521
1521
  }
1522
1522
  });
1523
1523
  };
1524
- var _tmpl$25 = /* @__PURE__ */ web.template(`<button>`);
1524
+ var _tmpl$24 = /* @__PURE__ */ web.template(`<button>`);
1525
1525
  var PopoverTrigger = (props) => {
1526
1526
  const {
1527
1527
  setReference,
@@ -1545,7 +1545,7 @@ var PopoverTrigger = (props) => {
1545
1545
  }, rest));
1546
1546
  }
1547
1547
  return (() => {
1548
- var _el$ = _tmpl$25();
1548
+ var _el$ = _tmpl$24();
1549
1549
  _el$.$$click = handleClick;
1550
1550
  web.use(setReference, _el$);
1551
1551
  web.spread(_el$, web.mergeProps({
@@ -1645,14 +1645,14 @@ var Dropdown = {
1645
1645
  */
1646
1646
  Item: DropdownItem
1647
1647
  };
1648
- var _tmpl$26 = /* @__PURE__ */ web.template(`<div role=tablist>`);
1649
- var _tmpl$27 = /* @__PURE__ */ web.template(`<div class="nt-border-t nt-border-secondary nt-mt-[-0.25rem] nt-relative nt-z-[-1]">`);
1648
+ var _tmpl$25 = /* @__PURE__ */ web.template(`<div role=tablist>`);
1649
+ var _tmpl$26 = /* @__PURE__ */ web.template(`<div class="nt-border-t nt-border-secondary nt-mt-[-0.25rem] nt-relative nt-z-[-1]">`);
1650
1650
  var tabsListVariants = () => "nt-flex nt-gap-6 nt-px-6 nt-py-1 nt-overflow-hidden";
1651
1651
  var TabsList = (props) => {
1652
1652
  const [local, rest] = solidJs.splitProps(props, ["class", "appearanceKey", "ref", "children"]);
1653
1653
  const style = useStyle();
1654
1654
  return [(() => {
1655
- var _el$ = _tmpl$26();
1655
+ var _el$ = _tmpl$25();
1656
1656
  var _ref$ = local.ref;
1657
1657
  typeof _ref$ === "function" ? web.use(_ref$, _el$) : local.ref = _el$;
1658
1658
  web.spread(_el$, web.mergeProps({
@@ -1662,7 +1662,7 @@ var TabsList = (props) => {
1662
1662
  }, rest), false, true);
1663
1663
  web.insert(_el$, () => local.children);
1664
1664
  return _el$;
1665
- })(), _tmpl$27()];
1665
+ })(), _tmpl$26()];
1666
1666
  };
1667
1667
  var useKeyboardNavigation = ({
1668
1668
  activeTab,
@@ -1713,7 +1713,7 @@ var useKeyboardNavigation = ({
1713
1713
  };
1714
1714
 
1715
1715
  // src/ui/components/primitives/Tabs/TabsRoot.tsx
1716
- var _tmpl$28 = /* @__PURE__ */ web.template(`<div>`);
1716
+ var _tmpl$27 = /* @__PURE__ */ web.template(`<div>`);
1717
1717
  var TabsContext = solidJs.createContext(void 0);
1718
1718
  var useTabsContext = () => {
1719
1719
  const context = solidJs.useContext(TabsContext);
@@ -1752,7 +1752,7 @@ var TabsRoot = (props) => {
1752
1752
  setVisibleTabs
1753
1753
  },
1754
1754
  get children() {
1755
- var _el$ = _tmpl$28();
1755
+ var _el$ = _tmpl$27();
1756
1756
  web.use(setTabsContainer, _el$);
1757
1757
  web.spread(_el$, web.mergeProps({
1758
1758
  get ["class"]() {
@@ -1766,7 +1766,7 @@ var TabsRoot = (props) => {
1766
1766
  };
1767
1767
 
1768
1768
  // src/ui/components/primitives/Tabs/TabsContent.tsx
1769
- var _tmpl$29 = /* @__PURE__ */ web.template(`<div role=tabpanel>`);
1769
+ var _tmpl$28 = /* @__PURE__ */ web.template(`<div role=tabpanel>`);
1770
1770
  var TabsContent = (props) => {
1771
1771
  const [local, rest] = solidJs.splitProps(props, ["value", "class", "appearanceKey", "children"]);
1772
1772
  const style = useStyle();
@@ -1778,7 +1778,7 @@ var TabsContent = (props) => {
1778
1778
  return activeTab() === local.value;
1779
1779
  },
1780
1780
  get children() {
1781
- var _el$ = _tmpl$29();
1781
+ var _el$ = _tmpl$28();
1782
1782
  web.spread(_el$, web.mergeProps({
1783
1783
  get ["class"]() {
1784
1784
  return web.memo(() => !!local.class)() ? local.class : style(local.appearanceKey || "tabsContent", activeTab() === local.value ? "nt-block" : "nt-hidden");
@@ -1865,7 +1865,7 @@ var inboxFilterLocalizationKeys = {
1865
1865
  unread: "inbox.filters.labels.unread",
1866
1866
  archived: "inbox.filters.labels.archived"
1867
1867
  };
1868
- var _tmpl$30 = /* @__PURE__ */ web.template(`<span><span></span><span>`);
1868
+ var _tmpl$29 = /* @__PURE__ */ web.template(`<span><span></span><span>`);
1869
1869
  var _tmpl$210 = /* @__PURE__ */ web.template(`<span>`);
1870
1870
  var cases = [{
1871
1871
  status: "unreadRead" /* UNREAD_READ */,
@@ -1910,7 +1910,7 @@ var StatusItem = (props) => {
1910
1910
  },
1911
1911
  get children() {
1912
1912
  return [(() => {
1913
- var _el$ = _tmpl$30(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
1913
+ var _el$ = _tmpl$29(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
1914
1914
  web.insert(_el$2, () => props.icon());
1915
1915
  web.insert(_el$3, () => t(props.localizationKey));
1916
1916
  web.effect((_p$) => {
@@ -1943,7 +1943,7 @@ var StatusItem = (props) => {
1943
1943
  };
1944
1944
 
1945
1945
  // src/ui/components/elements/InboxStatus/InboxStatusDropdown.tsx
1946
- var _tmpl$31 = /* @__PURE__ */ web.template(`<span>`);
1946
+ var _tmpl$30 = /* @__PURE__ */ web.template(`<span>`);
1947
1947
  var StatusDropdown = () => {
1948
1948
  const style = useStyle();
1949
1949
  const {
@@ -1968,7 +1968,7 @@ var StatusDropdown = () => {
1968
1968
  }, triggerProps, {
1969
1969
  get children() {
1970
1970
  return [(() => {
1971
- var _el$ = _tmpl$31();
1971
+ var _el$ = _tmpl$30();
1972
1972
  web.insert(_el$, () => t(inboxFilterLocalizationKeys[status()]));
1973
1973
  web.effect((_p$) => {
1974
1974
  var _v$ = inboxFilterLocalizationKeys[status()], _v$2 = style("inboxStatus__title", "nt-text-xl nt-font-semibold");
@@ -1981,7 +1981,7 @@ var StatusDropdown = () => {
1981
1981
  });
1982
1982
  return _el$;
1983
1983
  })(), (() => {
1984
- var _el$2 = _tmpl$31();
1984
+ var _el$2 = _tmpl$30();
1985
1985
  web.insert(_el$2, web.createComponent(ArrowDropDown, {}));
1986
1986
  web.effect(() => web.className(_el$2, style("inboxStatus__dropdownItemRight__icon", "nt-text-foreground-alpha-600")));
1987
1987
  return _el$2;
@@ -2012,17 +2012,17 @@ var useNotificationsInfiniteScroll = (props) => {
2012
2012
  }));
2013
2013
  solidJs.onMount(() => {
2014
2014
  const listener = ({ data: data2 }) => {
2015
- if (!data2 || !chunkAALXN67T_js.isSameFilter(filter, data2.filter)) {
2015
+ if (!data2 || !chunkRK2WRT5F_js.isSameFilter(filter, data2.filter)) {
2016
2016
  return;
2017
2017
  }
2018
2018
  mutate({ data: data2.notifications, hasMore: data2.hasMore });
2019
2019
  };
2020
- novu.on("notifications.list.updated", listener);
2021
- solidJs.onCleanup(() => novu.off("notifications.list.updated", listener));
2020
+ const cleanup = novu.on("notifications.list.updated", listener);
2021
+ solidJs.onCleanup(() => cleanup());
2022
2022
  });
2023
2023
  solidJs.createEffect(() => {
2024
2024
  const newFilter = chunk7B52C2XE_js.__spreadValues({}, props.options());
2025
- if (chunkAALXN67T_js.isSameFilter(filter, newFilter)) {
2025
+ if (chunkRK2WRT5F_js.isSameFilter(filter, newFilter)) {
2026
2026
  return;
2027
2027
  }
2028
2028
  novu.notifications.clearCache();
@@ -2054,8 +2054,8 @@ var usePreferences = (options) => {
2054
2054
  }
2055
2055
  mutate(data);
2056
2056
  };
2057
- novu.on("preferences.list.updated", listener);
2058
- solidJs.onCleanup(() => novu.off("preferences.list.updated", listener));
2057
+ const cleanup = novu.on("preferences.list.updated", listener);
2058
+ solidJs.onCleanup(() => cleanup());
2059
2059
  });
2060
2060
  solidJs.createEffect(() => {
2061
2061
  setLoading(preferences.loading);
@@ -2109,7 +2109,7 @@ var useArchiveAllRead = (props) => {
2109
2109
  };
2110
2110
 
2111
2111
  // src/ui/components/elements/Header/MoreActionsOptions.tsx
2112
- var _tmpl$32 = /* @__PURE__ */ web.template(`<span>`);
2112
+ var _tmpl$31 = /* @__PURE__ */ web.template(`<span>`);
2113
2113
  var MoreActionsOptions = () => {
2114
2114
  const {
2115
2115
  filter
@@ -2157,12 +2157,12 @@ var ActionsItem = (props) => {
2157
2157
  },
2158
2158
  get children() {
2159
2159
  return [(() => {
2160
- var _el$ = _tmpl$32();
2160
+ var _el$ = _tmpl$31();
2161
2161
  web.insert(_el$, () => props.icon());
2162
2162
  web.effect(() => web.className(_el$, style("moreActions__dropdownItemLeft__icon", "nt-text-foreground-alpha-600")));
2163
2163
  return _el$;
2164
2164
  })(), (() => {
2165
- var _el$2 = _tmpl$32();
2165
+ var _el$2 = _tmpl$31();
2166
2166
  web.insert(_el$2, () => t(props.localizationKey));
2167
2167
  web.effect((_p$) => {
2168
2168
  var _v$ = props.localizationKey, _v$2 = style("moreActions__dropdownItemLabel");
@@ -2221,11 +2221,11 @@ var MoreActionsDropdown = () => {
2221
2221
  };
2222
2222
 
2223
2223
  // src/ui/components/elements/Header/ActionsContainer.tsx
2224
- var _tmpl$33 = /* @__PURE__ */ web.template(`<div>`);
2224
+ var _tmpl$32 = /* @__PURE__ */ web.template(`<div>`);
2225
2225
  var ActionsContainer = (props) => {
2226
2226
  const style = useStyle();
2227
2227
  return (() => {
2228
- var _el$ = _tmpl$33();
2228
+ var _el$ = _tmpl$32();
2229
2229
  web.insert(_el$, web.createComponent(MoreActionsDropdown, {}), null);
2230
2230
  web.insert(_el$, web.createComponent(solidJs.Show, {
2231
2231
  get when() {
@@ -2249,11 +2249,11 @@ var ActionsContainer = (props) => {
2249
2249
  };
2250
2250
 
2251
2251
  // src/ui/components/elements/Header/Header.tsx
2252
- var _tmpl$34 = /* @__PURE__ */ web.template(`<div>`);
2252
+ var _tmpl$33 = /* @__PURE__ */ web.template(`<div>`);
2253
2253
  var Header = (props) => {
2254
2254
  const style = useStyle();
2255
2255
  return (() => {
2256
- var _el$ = _tmpl$34();
2256
+ var _el$ = _tmpl$33();
2257
2257
  web.insert(_el$, web.createComponent(StatusDropdown, {}), null);
2258
2258
  web.insert(_el$, web.createComponent(ActionsContainer, {
2259
2259
  get showPreferences() {
@@ -2264,7 +2264,7 @@ var Header = (props) => {
2264
2264
  return _el$;
2265
2265
  })();
2266
2266
  };
2267
- var _tmpl$35 = /* @__PURE__ */ web.template(`<div><div data-localization=preferences.title>`);
2267
+ var _tmpl$34 = /* @__PURE__ */ web.template(`<div><div data-localization=preferences.title>`);
2268
2268
  var _tmpl$211 = /* @__PURE__ */ web.template(`<button>`);
2269
2269
  var PreferencesHeader = (props) => {
2270
2270
  const style = useStyle();
@@ -2272,7 +2272,7 @@ var PreferencesHeader = (props) => {
2272
2272
  t
2273
2273
  } = useLocalization();
2274
2274
  return (() => {
2275
- var _el$ = _tmpl$35(), _el$2 = _el$.firstChild;
2275
+ var _el$ = _tmpl$34(), _el$2 = _el$.firstChild;
2276
2276
  web.insert(_el$, web.createComponent(solidJs.Show, {
2277
2277
  get when() {
2278
2278
  return props.navigateToNotifications;
@@ -2299,7 +2299,7 @@ var PreferencesHeader = (props) => {
2299
2299
  })();
2300
2300
  };
2301
2301
  web.delegateEvents(["click"]);
2302
- var _tmpl$36 = /* @__PURE__ */ web.template(`<div>`);
2302
+ var _tmpl$35 = /* @__PURE__ */ web.template(`<div>`);
2303
2303
  var Root = (props) => {
2304
2304
  const [_, rest] = solidJs.splitProps(props, ["class"]);
2305
2305
  const {
@@ -2315,7 +2315,7 @@ var Root = (props) => {
2315
2315
  },
2316
2316
  children: new Comment(" Powered by Novu - https://novu.co ")
2317
2317
  }), (() => {
2318
- var _el$ = _tmpl$36();
2318
+ var _el$ = _tmpl$35();
2319
2319
  web.spread(_el$, web.mergeProps({
2320
2320
  get id() {
2321
2321
  return `novu-root-${id()}`;
@@ -2327,191 +2327,24 @@ var Root = (props) => {
2327
2327
  return _el$;
2328
2328
  })()];
2329
2329
  };
2330
- var TooltipContext = solidJs.createContext(void 0);
2331
- function TooltipRoot(props) {
2332
- const [reference, setReference] = solidJs.createSignal(null);
2333
- const [floating, setFloating] = solidJs.createSignal(null);
2334
- const position = solidFloatingUi.useFloating(reference, floating, {
2335
- placement: props.placement || "top",
2336
- whileElementsMounted: dom.autoUpdate,
2337
- middleware: [dom.offset(10), dom.flip({
2338
- fallbackPlacements: props.fallbackPlacements || ["bottom"]
2339
- }), dom.shift()]
2340
- });
2341
- const [isOpen, setIsOpen] = useUncontrolledState({
2342
- value: props.open,
2343
- fallbackValue: false
2344
- });
2345
- return web.createComponent(TooltipContext.Provider, {
2346
- value: {
2347
- reference,
2348
- setReference,
2349
- floating,
2350
- setFloating,
2351
- open: isOpen,
2352
- setOpen: setIsOpen,
2353
- floatingStyles: () => {
2354
- var _a, _b;
2355
- return {
2356
- position: position.strategy,
2357
- top: `${(_a = position.y) != null ? _a : 0}px`,
2358
- left: `${(_b = position.x) != null ? _b : 0}px`
2359
- };
2360
- }
2361
- },
2362
- get children() {
2363
- return props.children;
2364
- }
2365
- });
2366
- }
2367
- function useTooltip() {
2368
- const context = solidJs.useContext(TooltipContext);
2369
- if (!context) {
2370
- throw new Error("useTooltip must be used within Tooltip.Root component");
2371
- }
2372
- return context;
2373
- }
2374
-
2375
- // src/ui/components/primitives/Tooltip/TooltipContent.tsx
2376
- var _tmpl$37 = /* @__PURE__ */ web.template(`<div>`);
2377
- var tooltipContentVariants = () => "nt-bg-foreground nt-p-2 nt-shadow-tooltip nt-rounded-lg nt-text-background nt-text-xs";
2378
- var TooltipContentBody = (props) => {
2379
- const {
2380
- open,
2381
- setFloating,
2382
- floating,
2383
- floatingStyles
2384
- } = useTooltip();
2385
- const {
2386
- setActive,
2387
- removeActive
2388
- } = useFocusManager();
2389
- const [local, rest] = solidJs.splitProps(props, ["class", "appearanceKey", "style"]);
2390
- const style = useStyle();
2391
- solidJs.onMount(() => {
2392
- const floatingEl = floating();
2393
- setActive(floatingEl);
2394
- solidJs.onCleanup(() => {
2395
- removeActive(floatingEl);
2396
- });
2397
- });
2398
- return (() => {
2399
- var _el$ = _tmpl$37();
2400
- web.use(setFloating, _el$);
2401
- web.spread(_el$, web.mergeProps({
2402
- get ["class"]() {
2403
- return web.memo(() => !!local.class)() ? local.class : style(local.appearanceKey || "tooltipContent", tooltipContentVariants());
2404
- },
2405
- get style() {
2406
- return chunk7B52C2XE_js.__spreadProps(chunk7B52C2XE_js.__spreadValues({}, floatingStyles()), {
2407
- "z-index": 99999
2408
- });
2409
- },
2410
- get ["data-open"]() {
2411
- return open();
2412
- }
2413
- }, rest), false, false);
2414
- return _el$;
2415
- })();
2416
- };
2417
- var TooltipContent = (props) => {
2418
- const {
2419
- open
2420
- } = useTooltip();
2421
- return web.createComponent(solidJs.Show, {
2422
- get when() {
2423
- return open();
2424
- },
2425
- get children() {
2426
- return web.createComponent(web.Portal, {
2427
- get children() {
2428
- return web.createComponent(Root, {
2429
- get children() {
2430
- return web.createComponent(TooltipContentBody, props);
2431
- }
2432
- });
2433
- }
2434
- });
2435
- }
2436
- });
2437
- };
2438
- var _tmpl$38 = /* @__PURE__ */ web.template(`<button>`);
2439
- var TooltipTrigger = (props) => {
2440
- const {
2441
- setReference,
2442
- setOpen
2443
- } = useTooltip();
2444
- const style = useStyle();
2445
- const [local, rest] = solidJs.splitProps(props, ["appearanceKey", "asChild", "onClick"]);
2446
- if (local.asChild) {
2447
- return web.createComponent(web.Dynamic, web.mergeProps({
2448
- get component() {
2449
- return local.asChild;
2450
- },
2451
- ref: setReference,
2452
- onMouseEnter: () => {
2453
- setOpen(true);
2454
- },
2455
- onMouseLeave: () => {
2456
- setOpen(false);
2457
- }
2458
- }, rest));
2459
- }
2460
- return (() => {
2461
- var _el$ = _tmpl$38();
2462
- _el$.addEventListener("mouseleave", () => {
2463
- setOpen(false);
2464
- });
2465
- _el$.addEventListener("mouseenter", () => {
2466
- setOpen(true);
2467
- });
2468
- web.use(setReference, _el$);
2469
- web.spread(_el$, web.mergeProps({
2470
- get ["class"]() {
2471
- return style(local.appearanceKey || "tooltipTrigger");
2472
- }
2473
- }, rest), false, true);
2474
- web.insert(_el$, () => props.children);
2475
- return _el$;
2476
- })();
2477
- };
2478
-
2479
- // src/ui/components/primitives/Tooltip/index.ts
2480
- var Tooltip = {
2481
- Root: TooltipRoot,
2482
- /**
2483
- * Tooltip.Trigger renders a `button` and has no default styling.
2484
- */
2485
- Trigger: TooltipTrigger,
2486
- /**
2487
- * Tooltip.Content renders a `div` and has popover specific styling.
2488
- */
2489
- Content: TooltipContent
2490
- };
2491
- var _tmpl$39 = /* @__PURE__ */ web.template(`<label><input type=checkbox class="nt-peer nt-sr-only"><div>`);
2330
+ var _tmpl$36 = /* @__PURE__ */ web.template(`<label><input type=checkbox class="nt-peer nt-sr-only"><div>`);
2492
2331
  var Switch = (props) => {
2493
2332
  const style = useStyle();
2494
2333
  return (() => {
2495
- var _el$ = _tmpl$39(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
2334
+ var _el$ = _tmpl$36(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
2496
2335
  _el$2.addEventListener("change", (e) => {
2497
2336
  props.onChange(e.target.checked);
2498
2337
  });
2499
2338
  web.effect((_p$) => {
2500
- var _v$ = style("channelSwitch", `nt-relative nt-inline-flex nt-cursor-pointer nt-items-center data-[disabled=true]:nt-cursor-not-allowed`), _v$2 = props.disabled, _v$3 = props.disabled, _v$4 = style("channelSwitchThumb", `nt-peer nt-h-6 nt-w-11 nt-rounded-full nt-border nt-border-neutral-alpha-200 peer-checked:nt-border-neutral-alpha-400 nt-bg-neutral-alpha-300 after:nt-absolute after:nt-left-[2px] after:nt-top-0.5 after:nt-h-5 after:nt-w-5 after:nt-rounded-full after:nt-border after:nt-border-neutral-alpha-400 after:nt-bg-background after:nt-transition-all after:nt-content-[''] peer-checked:nt-bg-primary peer-checked:after:nt-translate-x-full peer-checked:after:nt-border-background nt-transition-all nt-duration-200 after:nt-duration-200 data-[disabled=true]:nt-opacity-40`), _v$5 = props.disabled, _v$6 = props.checked;
2339
+ var _v$ = style("channelSwitch", `nt-relative nt-inline-flex nt-cursor-pointer nt-items-center`), _v$2 = style("channelSwitchThumb", `nt-peer nt-h-6 nt-w-11 nt-rounded-full nt-border nt-border-neutral-alpha-200 peer-checked:nt-border-neutral-alpha-400 nt-bg-neutral-alpha-300 after:nt-absolute after:nt-left-[2px] after:nt-top-0.5 after:nt-h-5 after:nt-w-5 after:nt-rounded-full after:nt-border after:nt-border-neutral-alpha-400 after:nt-bg-background after:nt-transition-all after:nt-content-[''] peer-checked:nt-bg-primary peer-checked:after:nt-translate-x-full peer-checked:after:nt-border-background nt-transition-all nt-duration-200 after:nt-duration-200`), _v$3 = props.checked;
2501
2340
  _v$ !== _p$.e && web.className(_el$, _p$.e = _v$);
2502
- _v$2 !== _p$.t && web.setAttribute(_el$, "data-disabled", _p$.t = _v$2);
2503
- _v$3 !== _p$.a && (_el$2.disabled = _p$.a = _v$3);
2504
- _v$4 !== _p$.o && web.className(_el$3, _p$.o = _v$4);
2505
- _v$5 !== _p$.i && web.setAttribute(_el$3, "data-disabled", _p$.i = _v$5);
2506
- _v$6 !== _p$.n && web.setAttribute(_el$3, "data-checked", _p$.n = _v$6);
2341
+ _v$2 !== _p$.t && web.className(_el$3, _p$.t = _v$2);
2342
+ _v$3 !== _p$.a && web.setAttribute(_el$3, "data-checked", _p$.a = _v$3);
2507
2343
  return _p$;
2508
2344
  }, {
2509
2345
  e: void 0,
2510
2346
  t: void 0,
2511
- a: void 0,
2512
- o: void 0,
2513
- i: void 0,
2514
- n: void 0
2347
+ a: void 0
2515
2348
  });
2516
2349
  web.effect(() => _el$2.checked = props.checked);
2517
2350
  return _el$;
@@ -2519,13 +2352,10 @@ var Switch = (props) => {
2519
2352
  };
2520
2353
 
2521
2354
  // src/ui/components/elements/Preferences/ChannelRow.tsx
2522
- var _tmpl$40 = /* @__PURE__ */ web.template(`<div><div><div></div><span></span></div><div>`);
2355
+ var _tmpl$37 = /* @__PURE__ */ web.template(`<div><div><div></div><span></span></div><div>`);
2523
2356
  var ChannelRow = (props) => {
2524
2357
  const style = useStyle();
2525
2358
  const updatePreference = (enabled) => chunk7B52C2XE_js.__async(void 0, null, function* () {
2526
- if (props.isCritical) {
2527
- return;
2528
- }
2529
2359
  props.onChange({
2530
2360
  channel: props.channel,
2531
2361
  enabled,
@@ -2536,7 +2366,7 @@ var ChannelRow = (props) => {
2536
2366
  updatePreference(checked);
2537
2367
  };
2538
2368
  return (() => {
2539
- var _el$ = _tmpl$40(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
2369
+ var _el$ = _tmpl$37(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
2540
2370
  web.insert(_el$3, web.createComponent(ChannelIcon, {
2541
2371
  get channel() {
2542
2372
  return props.channel;
@@ -2547,25 +2377,20 @@ var ChannelRow = (props) => {
2547
2377
  get checked() {
2548
2378
  return props.enabled;
2549
2379
  },
2550
- onChange: (checked) => onChange(checked),
2551
- get disabled() {
2552
- return props.isCritical;
2553
- }
2380
+ onChange: (checked) => onChange(checked)
2554
2381
  }));
2555
2382
  web.effect((_p$) => {
2556
- var _v$ = style("channelContainer", "nt-flex nt-justify-between nt-items-center nt-h-11 nt-gap-2 data-[disabled=true]:nt-text-foreground-alpha-600"), _v$2 = props.isCritical, _v$3 = style("channelLabelContainer", "nt-flex nt-items-center nt-gap-2"), _v$4 = style("channelLabel", "nt-text-base nt-font-semibold"), _v$5 = style("channelSwitchContainer", "nt-flex nt-items-center");
2383
+ var _v$ = style("channelContainer", "nt-flex nt-justify-between nt-items-center nt-h-11 nt-gap-2 data-[disabled=true]:nt-text-foreground-alpha-600"), _v$2 = style("channelLabelContainer", "nt-flex nt-items-center nt-gap-2"), _v$3 = style("channelLabel", "nt-text-base nt-font-semibold"), _v$4 = style("channelSwitchContainer", "nt-flex nt-items-center");
2557
2384
  _v$ !== _p$.e && web.className(_el$, _p$.e = _v$);
2558
- _v$2 !== _p$.t && web.setAttribute(_el$, "data-disabled", _p$.t = _v$2);
2559
- _v$3 !== _p$.a && web.className(_el$2, _p$.a = _v$3);
2560
- _v$4 !== _p$.o && web.className(_el$4, _p$.o = _v$4);
2561
- _v$5 !== _p$.i && web.className(_el$5, _p$.i = _v$5);
2385
+ _v$2 !== _p$.t && web.className(_el$2, _p$.t = _v$2);
2386
+ _v$3 !== _p$.a && web.className(_el$4, _p$.a = _v$3);
2387
+ _v$4 !== _p$.o && web.className(_el$5, _p$.o = _v$4);
2562
2388
  return _p$;
2563
2389
  }, {
2564
2390
  e: void 0,
2565
2391
  t: void 0,
2566
2392
  a: void 0,
2567
- o: void 0,
2568
- i: void 0
2393
+ o: void 0
2569
2394
  });
2570
2395
  return _el$;
2571
2396
  })();
@@ -2602,11 +2427,11 @@ var getLabel = (channel) => {
2602
2427
  return "";
2603
2428
  }
2604
2429
  };
2605
- var _tmpl$41 = /* @__PURE__ */ web.template(`<div>`);
2430
+ var _tmpl$38 = /* @__PURE__ */ web.template(`<div>`);
2606
2431
  var SkeletonText = (props) => {
2607
2432
  const style = useStyle();
2608
2433
  return (() => {
2609
- var _el$ = _tmpl$41();
2434
+ var _el$ = _tmpl$38();
2610
2435
  web.effect(() => web.className(_el$, style(props.appearanceKey, cn("nt-w-full nt-h-3 nt-rounded nt-bg-foreground-alpha-100", props.class))));
2611
2436
  return _el$;
2612
2437
  })();
@@ -2614,14 +2439,14 @@ var SkeletonText = (props) => {
2614
2439
  var SkeletonAvatar = (props) => {
2615
2440
  const style = useStyle();
2616
2441
  return (() => {
2617
- var _el$2 = _tmpl$41();
2442
+ var _el$2 = _tmpl$38();
2618
2443
  web.effect(() => web.className(_el$2, style(props.appearanceKey, cn("nt-size-8 nt-rounded-lg nt-bg-foreground-alpha-100", props.class))));
2619
2444
  return _el$2;
2620
2445
  })();
2621
2446
  };
2622
2447
 
2623
2448
  // src/ui/components/elements/Preferences/LoadingScreen.tsx
2624
- var _tmpl$42 = /* @__PURE__ */ web.template(`<div><div class="nt-flex nt-flex-col nt-self-stretch nt-gap-1 nt-flex-1"></div><div>`);
2449
+ var _tmpl$39 = /* @__PURE__ */ web.template(`<div><div class="nt-flex nt-flex-col nt-self-stretch nt-gap-1 nt-flex-1"></div><div>`);
2625
2450
  var LoadingScreen = () => {
2626
2451
  return web.createComponent(solidJs.For, {
2627
2452
  get each() {
@@ -2635,7 +2460,7 @@ var LoadingScreen = () => {
2635
2460
  var LoadingSkeleton = () => {
2636
2461
  const style = useStyle();
2637
2462
  return (() => {
2638
- var _el$ = _tmpl$42(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
2463
+ var _el$ = _tmpl$39(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
2639
2464
  web.insert(_el$2, web.createComponent(SkeletonText, {
2640
2465
  appearanceKey: "skeletonText",
2641
2466
  "class": "nt-w-1/3"
@@ -2651,10 +2476,9 @@ var LoadingSkeleton = () => {
2651
2476
  };
2652
2477
 
2653
2478
  // src/ui/components/elements/Preferences/Preferences.tsx
2654
- var _tmpl$43 = /* @__PURE__ */ web.template(`<div>`);
2479
+ var _tmpl$40 = /* @__PURE__ */ web.template(`<div>`);
2655
2480
  var _tmpl$212 = /* @__PURE__ */ web.template(`<span>`);
2656
- var _tmpl$310 = /* @__PURE__ */ web.template(`<span data-localization=preferences.workflow.disabled.notice>`);
2657
- var _tmpl$44 = /* @__PURE__ */ web.template(`<div><div><div><div></div></div><span>`);
2481
+ var _tmpl$310 = /* @__PURE__ */ web.template(`<div><div><div><div></div></div><span>`);
2658
2482
  var Preferences = () => {
2659
2483
  var _a;
2660
2484
  const style = useStyle();
@@ -2701,7 +2525,7 @@ var Preferences = () => {
2701
2525
  });
2702
2526
  };
2703
2527
  return (() => {
2704
- var _el$ = _tmpl$43();
2528
+ var _el$ = _tmpl$40();
2705
2529
  web.insert(_el$, web.createComponent(solidJs.Show, {
2706
2530
  get when() {
2707
2531
  return loading();
@@ -2749,10 +2573,6 @@ var Preferences = () => {
2749
2573
  },
2750
2574
  get onChange() {
2751
2575
  return optimisticUpdate(preference());
2752
- },
2753
- get isCritical() {
2754
- var _a2;
2755
- return (_a2 = preference().workflow) == null ? void 0 : _a2.critical;
2756
2576
  }
2757
2577
  });
2758
2578
  }
@@ -2783,7 +2603,7 @@ var ChannelsLabel = (props) => {
2783
2603
  return channels.map((c, index) => [c, web.memo(() => index < channels.length - 1 && ", ")]);
2784
2604
  };
2785
2605
  return (() => {
2786
- var _el$3 = _tmpl$43();
2606
+ var _el$3 = _tmpl$40();
2787
2607
  web.insert(_el$3, channelNames);
2788
2608
  web.effect(() => web.className(_el$3, style("channelDescription", "nt-text-sm nt-text-foreground-alpha-600 nt-text-start")));
2789
2609
  return _el$3;
@@ -2801,37 +2621,9 @@ var PreferencesRow = (props) => {
2801
2621
  return channels().length > 0;
2802
2622
  },
2803
2623
  get children() {
2804
- var _el$4 = _tmpl$44(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$6.nextSibling;
2624
+ var _el$4 = _tmpl$310(), _el$5 = _el$4.firstChild, _el$6 = _el$5.firstChild, _el$7 = _el$6.firstChild, _el$8 = _el$6.nextSibling;
2805
2625
  _el$5.$$click = () => setIsOpen((prev) => !prev);
2806
- web.insert(_el$7, web.createComponent(solidJs.Show, {
2807
- get when() {
2808
- return props.isCritical;
2809
- },
2810
- get children() {
2811
- return web.createComponent(Tooltip.Root, {
2812
- get children() {
2813
- return [web.createComponent(Tooltip.Trigger, {
2814
- asChild: (childProps) => (() => {
2815
- var _el$11 = _tmpl$212();
2816
- web.spread(_el$11, web.mergeProps({
2817
- get ["class"]() {
2818
- return style("workflowLabelDisabled__icon", "nt-text-foreground-alpha-600");
2819
- }
2820
- }, childProps), false, true);
2821
- web.insert(_el$11, web.createComponent(Lock, {}));
2822
- return _el$11;
2823
- })()
2824
- }), web.createComponent(Tooltip.Content, {
2825
- "data-localization": "preferences.workflow.disabled.tooltip",
2826
- get children() {
2827
- return t("preferences.workflow.disabled.tooltip");
2828
- }
2829
- })];
2830
- }
2831
- });
2832
- }
2833
- }), null);
2834
- web.insert(_el$7, () => t(props.localizationKey), null);
2626
+ web.insert(_el$7, () => t(props.localizationKey));
2835
2627
  web.insert(_el$6, web.createComponent(ChannelsLabel, {
2836
2628
  get channels() {
2837
2629
  return props.channels;
@@ -2865,18 +2657,7 @@ var PreferencesRow = (props) => {
2865
2657
  return style("channelsContainerCollapsible", "nt-grid nt-self-stretch");
2866
2658
  },
2867
2659
  get children() {
2868
- var _el$9 = _tmpl$43();
2869
- web.insert(_el$9, web.createComponent(solidJs.Show, {
2870
- get when() {
2871
- return props.isCritical;
2872
- },
2873
- get children() {
2874
- var _el$10 = _tmpl$310();
2875
- web.insert(_el$10, () => t("preferences.workflow.disabled.notice"));
2876
- web.effect(() => web.className(_el$10, style("workflowContainerDisabledNotice", "nt-text-sm nt-text-foreground-alpha-600 nt-text-start")));
2877
- return _el$10;
2878
- }
2879
- }), null);
2660
+ var _el$9 = _tmpl$40();
2880
2661
  web.insert(_el$9, web.createComponent(solidJs.For, {
2881
2662
  get each() {
2882
2663
  return channels();
@@ -2891,12 +2672,9 @@ var PreferencesRow = (props) => {
2891
2672
  },
2892
2673
  get onChange() {
2893
2674
  return props.onChange;
2894
- },
2895
- get isCritical() {
2896
- return props.isCritical;
2897
2675
  }
2898
2676
  })
2899
- }), null);
2677
+ }));
2900
2678
  web.effect(() => web.className(_el$9, style("channelsContainer", "nt-overflow-hidden nt-flex-col nt-gap-1")));
2901
2679
  return _el$9;
2902
2680
  }
@@ -2906,20 +2684,16 @@ var PreferencesRow = (props) => {
2906
2684
  }
2907
2685
  }), null);
2908
2686
  web.effect((_p$) => {
2909
- var _v$ = style("workflowContainer", `nt-p-4 nt-flex nt-flex-col nt-gap-1 nt-items-start nt-self-stretch hover:nt-bg-neutral-alpha-50 nt-rounded-lg data-[disabled=true]:nt-bg-neutral-alpha-50`), _v$2 = props.isCritical, _v$3 = isOpen(), _v$4 = style("workflowLabelContainer", "nt-flex nt-justify-between nt-flex-nowrap nt-self-stretch nt-cursor-pointer nt-items-center"), _v$5 = props.isCritical, _v$6 = isOpen(), _v$7 = style("workflowLabel", "nt-text-base nt-font-semibold nt-text-start nt-flex nt-items-center nt-gap-1"), _v$8 = props.isCritical, _v$9 = props.localizationKey, _v$10 = isOpen(), _v$11 = style("workflowContainerRight__icon", `nt-text-foreground-alpha-600 nt-transition-all nt-duration-200 data-[open=true]:nt-transform data-[open=true]:nt-rotate-180`), _v$12 = props.isCritical, _v$13 = isOpen();
2687
+ var _v$ = style("workflowContainer", `nt-p-4 nt-flex nt-flex-col nt-gap-1 nt-items-start nt-self-stretch hover:nt-bg-neutral-alpha-50 nt-rounded-lg data-[disabled=true]:nt-bg-neutral-alpha-50`), _v$2 = isOpen(), _v$3 = style("workflowLabelContainer", "nt-flex nt-justify-between nt-flex-nowrap nt-self-stretch nt-cursor-pointer nt-items-center"), _v$4 = isOpen(), _v$5 = style("workflowLabel", "nt-text-base nt-font-semibold nt-text-start nt-flex nt-items-center nt-gap-1"), _v$6 = props.localizationKey, _v$7 = isOpen(), _v$8 = style("workflowContainerRight__icon", `nt-text-foreground-alpha-600 nt-transition-all nt-duration-200 data-[open=true]:nt-transform data-[open=true]:nt-rotate-180`), _v$9 = isOpen();
2910
2688
  _v$ !== _p$.e && web.className(_el$4, _p$.e = _v$);
2911
- _v$2 !== _p$.t && web.setAttribute(_el$4, "data-disabled", _p$.t = _v$2);
2912
- _v$3 !== _p$.a && web.setAttribute(_el$4, "data-open", _p$.a = _v$3);
2913
- _v$4 !== _p$.o && web.className(_el$5, _p$.o = _v$4);
2914
- _v$5 !== _p$.i && web.setAttribute(_el$5, "data-disabled", _p$.i = _v$5);
2915
- _v$6 !== _p$.n && web.setAttribute(_el$5, "data-open", _p$.n = _v$6);
2916
- _v$7 !== _p$.s && web.className(_el$7, _p$.s = _v$7);
2917
- _v$8 !== _p$.h && web.setAttribute(_el$7, "data-disabled", _p$.h = _v$8);
2918
- _v$9 !== _p$.r && web.setAttribute(_el$7, "data-localization", _p$.r = _v$9);
2919
- _v$10 !== _p$.d && web.setAttribute(_el$7, "data-open", _p$.d = _v$10);
2920
- _v$11 !== _p$.l && web.className(_el$8, _p$.l = _v$11);
2921
- _v$12 !== _p$.u && web.setAttribute(_el$8, "data-disabled", _p$.u = _v$12);
2922
- _v$13 !== _p$.c && web.setAttribute(_el$8, "data-open", _p$.c = _v$13);
2689
+ _v$2 !== _p$.t && web.setAttribute(_el$4, "data-open", _p$.t = _v$2);
2690
+ _v$3 !== _p$.a && web.className(_el$5, _p$.a = _v$3);
2691
+ _v$4 !== _p$.o && web.setAttribute(_el$5, "data-open", _p$.o = _v$4);
2692
+ _v$5 !== _p$.i && web.className(_el$7, _p$.i = _v$5);
2693
+ _v$6 !== _p$.n && web.setAttribute(_el$7, "data-localization", _p$.n = _v$6);
2694
+ _v$7 !== _p$.s && web.setAttribute(_el$7, "data-open", _p$.s = _v$7);
2695
+ _v$8 !== _p$.h && web.className(_el$8, _p$.h = _v$8);
2696
+ _v$9 !== _p$.r && web.setAttribute(_el$8, "data-open", _p$.r = _v$9);
2923
2697
  return _p$;
2924
2698
  }, {
2925
2699
  e: void 0,
@@ -2930,53 +2704,19 @@ var PreferencesRow = (props) => {
2930
2704
  n: void 0,
2931
2705
  s: void 0,
2932
2706
  h: void 0,
2933
- r: void 0,
2934
- d: void 0,
2935
- l: void 0,
2936
- u: void 0,
2937
- c: void 0
2707
+ r: void 0
2938
2708
  });
2939
2709
  return _el$4;
2940
2710
  }
2941
2711
  });
2942
2712
  };
2943
2713
  web.delegateEvents(["click"]);
2944
- var _tmpl$45 = /* @__PURE__ */ web.template(`<strong>`);
2714
+ var _tmpl$41 = /* @__PURE__ */ web.template(`<strong>`);
2945
2715
  var _tmpl$213 = /* @__PURE__ */ web.template(`<p>`);
2946
- var parseMarkdownIntoTokens = (text) => {
2947
- const tokens = [];
2948
- let buffer = "";
2949
- let inBold = false;
2950
- for (let i = 0; i < text.length; i += 1) {
2951
- if (text[i] === "\\" && text[i + 1] === "*") {
2952
- buffer += "*";
2953
- i += 1;
2954
- } else if (text[i] === "*" && text[i + 1] === "*") {
2955
- if (buffer) {
2956
- tokens.push({
2957
- type: inBold ? "bold" : "text",
2958
- content: buffer
2959
- });
2960
- buffer = "";
2961
- }
2962
- inBold = !inBold;
2963
- i += 1;
2964
- } else {
2965
- buffer += text[i];
2966
- }
2967
- }
2968
- if (buffer) {
2969
- tokens.push({
2970
- type: inBold ? "bold" : "text",
2971
- content: buffer
2972
- });
2973
- }
2974
- return tokens;
2975
- };
2976
2716
  var Bold = (props) => {
2977
2717
  const style = useStyle();
2978
2718
  return (() => {
2979
- var _el$ = _tmpl$45();
2719
+ var _el$ = _tmpl$41();
2980
2720
  web.insert(_el$, () => props.children);
2981
2721
  web.effect(() => web.className(_el$, style(props.appearanceKey || "strong", "nt-font-semibold")));
2982
2722
  return _el$;
@@ -2991,7 +2731,7 @@ var Markdown = (props) => {
2991
2731
  "children",
2992
2732
  "strongAppearanceKey"
2993
2733
  ]);
2994
- const tokens = solidJs.createMemo(() => parseMarkdownIntoTokens(children));
2734
+ const tokens = solidJs.createMemo(() => chunkERC62PGI_js.parseMarkdownIntoTokens(children));
2995
2735
  return (() => {
2996
2736
  var _el$2 = _tmpl$213();
2997
2737
  web.spread(_el$2, rest, false, true);
@@ -3020,9 +2760,170 @@ var Markdown = (props) => {
3020
2760
  })();
3021
2761
  };
3022
2762
  var Markdown_default = Markdown;
2763
+ var TooltipContext = solidJs.createContext(void 0);
2764
+ function TooltipRoot(props) {
2765
+ const [reference, setReference] = solidJs.createSignal(null);
2766
+ const [floating, setFloating] = solidJs.createSignal(null);
2767
+ const position = solidFloatingUi.useFloating(reference, floating, {
2768
+ placement: props.placement || "top",
2769
+ whileElementsMounted: dom.autoUpdate,
2770
+ middleware: [dom.offset(10), dom.flip({
2771
+ fallbackPlacements: props.fallbackPlacements || ["bottom"]
2772
+ }), dom.shift()]
2773
+ });
2774
+ const [isOpen, setIsOpen] = useUncontrolledState({
2775
+ value: props.open,
2776
+ fallbackValue: false
2777
+ });
2778
+ return web.createComponent(TooltipContext.Provider, {
2779
+ value: {
2780
+ reference,
2781
+ setReference,
2782
+ floating,
2783
+ setFloating,
2784
+ open: isOpen,
2785
+ setOpen: setIsOpen,
2786
+ floatingStyles: () => {
2787
+ var _a, _b;
2788
+ return {
2789
+ position: position.strategy,
2790
+ top: `${(_a = position.y) != null ? _a : 0}px`,
2791
+ left: `${(_b = position.x) != null ? _b : 0}px`
2792
+ };
2793
+ }
2794
+ },
2795
+ get children() {
2796
+ return props.children;
2797
+ }
2798
+ });
2799
+ }
2800
+ function useTooltip() {
2801
+ const context = solidJs.useContext(TooltipContext);
2802
+ if (!context) {
2803
+ throw new Error("useTooltip must be used within Tooltip.Root component");
2804
+ }
2805
+ return context;
2806
+ }
2807
+
2808
+ // src/ui/components/primitives/Tooltip/TooltipContent.tsx
2809
+ var _tmpl$42 = /* @__PURE__ */ web.template(`<div>`);
2810
+ var tooltipContentVariants = () => "nt-bg-foreground nt-p-2 nt-shadow-tooltip nt-rounded-lg nt-text-background nt-text-xs";
2811
+ var TooltipContentBody = (props) => {
2812
+ const {
2813
+ open,
2814
+ setFloating,
2815
+ floating,
2816
+ floatingStyles
2817
+ } = useTooltip();
2818
+ const {
2819
+ setActive,
2820
+ removeActive
2821
+ } = useFocusManager();
2822
+ const [local, rest] = solidJs.splitProps(props, ["class", "appearanceKey", "style"]);
2823
+ const style = useStyle();
2824
+ solidJs.onMount(() => {
2825
+ const floatingEl = floating();
2826
+ setActive(floatingEl);
2827
+ solidJs.onCleanup(() => {
2828
+ removeActive(floatingEl);
2829
+ });
2830
+ });
2831
+ return (() => {
2832
+ var _el$ = _tmpl$42();
2833
+ web.use(setFloating, _el$);
2834
+ web.spread(_el$, web.mergeProps({
2835
+ get ["class"]() {
2836
+ return web.memo(() => !!local.class)() ? local.class : style(local.appearanceKey || "tooltipContent", tooltipContentVariants());
2837
+ },
2838
+ get style() {
2839
+ return chunk7B52C2XE_js.__spreadProps(chunk7B52C2XE_js.__spreadValues({}, floatingStyles()), {
2840
+ "z-index": 99999
2841
+ });
2842
+ },
2843
+ get ["data-open"]() {
2844
+ return open();
2845
+ }
2846
+ }, rest), false, false);
2847
+ return _el$;
2848
+ })();
2849
+ };
2850
+ var TooltipContent = (props) => {
2851
+ const {
2852
+ open
2853
+ } = useTooltip();
2854
+ return web.createComponent(solidJs.Show, {
2855
+ get when() {
2856
+ return open();
2857
+ },
2858
+ get children() {
2859
+ return web.createComponent(web.Portal, {
2860
+ get children() {
2861
+ return web.createComponent(Root, {
2862
+ get children() {
2863
+ return web.createComponent(TooltipContentBody, props);
2864
+ }
2865
+ });
2866
+ }
2867
+ });
2868
+ }
2869
+ });
2870
+ };
2871
+ var _tmpl$43 = /* @__PURE__ */ web.template(`<button>`);
2872
+ var TooltipTrigger = (props) => {
2873
+ const {
2874
+ setReference,
2875
+ setOpen
2876
+ } = useTooltip();
2877
+ const style = useStyle();
2878
+ const [local, rest] = solidJs.splitProps(props, ["appearanceKey", "asChild", "onClick"]);
2879
+ if (local.asChild) {
2880
+ return web.createComponent(web.Dynamic, web.mergeProps({
2881
+ get component() {
2882
+ return local.asChild;
2883
+ },
2884
+ ref: setReference,
2885
+ onMouseEnter: () => {
2886
+ setOpen(true);
2887
+ },
2888
+ onMouseLeave: () => {
2889
+ setOpen(false);
2890
+ }
2891
+ }, rest));
2892
+ }
2893
+ return (() => {
2894
+ var _el$ = _tmpl$43();
2895
+ _el$.addEventListener("mouseleave", () => {
2896
+ setOpen(false);
2897
+ });
2898
+ _el$.addEventListener("mouseenter", () => {
2899
+ setOpen(true);
2900
+ });
2901
+ web.use(setReference, _el$);
2902
+ web.spread(_el$, web.mergeProps({
2903
+ get ["class"]() {
2904
+ return style(local.appearanceKey || "tooltipTrigger");
2905
+ }
2906
+ }, rest), false, true);
2907
+ web.insert(_el$, () => props.children);
2908
+ return _el$;
2909
+ })();
2910
+ };
2911
+
2912
+ // src/ui/components/primitives/Tooltip/index.ts
2913
+ var Tooltip = {
2914
+ Root: TooltipRoot,
2915
+ /**
2916
+ * Tooltip.Trigger renders a `button` and has no default styling.
2917
+ */
2918
+ Trigger: TooltipTrigger,
2919
+ /**
2920
+ * Tooltip.Content renders a `div` and has popover specific styling.
2921
+ */
2922
+ Content: TooltipContent
2923
+ };
3023
2924
 
3024
2925
  // src/ui/components/Notification/DefaultNotification.tsx
3025
- var _tmpl$46 = /* @__PURE__ */ web.template(`<span>`);
2926
+ var _tmpl$44 = /* @__PURE__ */ web.template(`<span>`);
3026
2927
  var _tmpl$214 = /* @__PURE__ */ web.template(`<img>`);
3027
2928
  var _tmpl$311 = /* @__PURE__ */ web.template(`<a><div><div class="nt-relative nt-shrink-0 nt-float-right nt-ml-1 nt-pr-1.5"><p></p><div></div></div><div>`);
3028
2929
  var DefaultNotification = (props) => {
@@ -3080,7 +2981,7 @@ var DefaultNotification = (props) => {
3080
2981
  return !props.notification.isRead;
3081
2982
  },
3082
2983
  get children() {
3083
- var _el$2 = _tmpl$46();
2984
+ var _el$2 = _tmpl$44();
3084
2985
  web.effect(() => web.className(_el$2, style("notificationDot", "nt-absolute -nt-translate-x-[1.0625rem] nt-translate-y-1/2 nt-size-2.5 nt-bg-primary nt-rounded-full nt-border nt-border-neutral-alpha-200")));
3085
2986
  return _el$2;
3086
2987
  }
@@ -3126,7 +3027,7 @@ var DefaultNotification = (props) => {
3126
3027
  e.stopPropagation();
3127
3028
  props.notification.read();
3128
3029
  },
3129
- "class": "hover:nt-bg-neutral-alpha-50 nt-py-0.5",
3030
+ "class": "hover:nt-bg-neutral-alpha-50 nt-p-0.5",
3130
3031
  get children() {
3131
3032
  return web.createComponent(ReadAll, {});
3132
3033
  }
@@ -3153,7 +3054,7 @@ var DefaultNotification = (props) => {
3153
3054
  e.stopPropagation();
3154
3055
  props.notification.unread();
3155
3056
  },
3156
- "class": "hover:nt-bg-neutral-alpha-50 nt-py-0.5",
3057
+ "class": "hover:nt-bg-neutral-alpha-50 nt-p-0.5",
3157
3058
  get children() {
3158
3059
  return web.createComponent(Unread, {});
3159
3060
  }
@@ -3187,7 +3088,7 @@ var DefaultNotification = (props) => {
3187
3088
  e.stopPropagation();
3188
3089
  props.notification.archive();
3189
3090
  },
3190
- "class": "hover:nt-bg-neutral-alpha-50 nt-py-0.5",
3091
+ "class": "hover:nt-bg-neutral-alpha-50 nt-p-0.5",
3191
3092
  get children() {
3192
3093
  return web.createComponent(Archive, {});
3193
3094
  }
@@ -3214,7 +3115,7 @@ var DefaultNotification = (props) => {
3214
3115
  e.stopPropagation();
3215
3116
  props.notification.unarchive();
3216
3117
  },
3217
- "class": "hover:nt-bg-neutral-alpha-50 nt-py-0.5",
3118
+ "class": "hover:nt-bg-neutral-alpha-50 nt-p-0.5",
3218
3119
  get children() {
3219
3120
  return web.createComponent(Unarchive, {});
3220
3121
  }
@@ -3284,7 +3185,7 @@ var DefaultNotification = (props) => {
3284
3185
  var _a;
3285
3186
  var _v$3 = style("notification", cn("nt-w-full nt-text-sm hover:nt-bg-neutral-alpha-50 nt-group nt-relative nt-flex nt-py-4 nt-px-6 nt-gap-2", {
3286
3187
  "nt-cursor-pointer": !props.notification.isRead || !!((_a = props.notification.redirect) == null ? void 0 : _a.url)
3287
- })), _v$4 = style("notificationBody", "nt-overflow-hidden nt-w-full"), _v$5 = style("notificationDate", "nt-transition nt-duration-100 nt-ease-out nt-text-foreground-alpha-400 nt-shrink-0 nt-float-right nt-text-right group-hover:nt-opacity-0"), _v$6 = style("notificationDefaultActions", `nt-transition nt-duration-100 nt-ease-out nt-gap-2 nt-flex nt-shrink-0 nt-opacity-0 group-hover:nt-opacity-100 nt-justify-center nt-items-center nt-absolute nt-top-0 nt-right-0 nt-bg-neutral-alpha-50 nt-rounded-lg`), _v$7 = style("notificationCustomActions", "nt-flex nt-flex-wrap nt-gap-4 nt-mt-4");
3188
+ })), _v$4 = style("notificationBody", "nt-overflow-hidden nt-w-full"), _v$5 = style("notificationDate", "nt-transition nt-duration-100 nt-ease-out nt-text-foreground-alpha-400 nt-shrink-0 nt-float-right nt-text-right group-hover:nt-opacity-0"), _v$6 = style("notificationDefaultActions", `nt-transition nt-duration-100 nt-ease-out nt-gap-2 nt-flex nt-shrink-0 nt-opacity-0 group-hover:nt-opacity-100 nt-justify-center nt-items-center nt-absolute nt-top-0 nt-right-0 nt-bg-neutral-alpha-50 nt-rounded-lg nt-backdrop-blur-md nt-p-0.5`), _v$7 = style("notificationCustomActions", "nt-flex nt-flex-wrap nt-gap-4 nt-mt-4");
3288
3189
  _v$3 !== _p$.e && web.className(_el$, _p$.e = _v$3);
3289
3190
  _v$4 !== _p$.t && web.className(_el$4, _p$.t = _v$4);
3290
3191
  _v$5 !== _p$.a && web.className(_el$6, _p$.a = _v$5);
@@ -3332,10 +3233,10 @@ var Notification = (props) => {
3332
3233
  }
3333
3234
  });
3334
3235
  };
3335
- var _tmpl$47 = /* @__PURE__ */ web.template(`<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill=currentColor d="M35.2 21.62L32.38 18.8L39.5 11.7L42.32 14.52C42.1 14.58 35.2 21.62 35.2 21.62ZM26 6H22V16H26V6ZM12.8 21.62L15.62 18.8L8.52 11.68L5.68 14.52C5.9 14.58 12.8 21.62 12.8 21.62ZM40 28H33.16C31.62 31.52 28.08 34 24 34C19.92 34 16.38 31.52 14.84 28H8V38H40V28ZM40 24C42.2 24 44 25.8 44 28V38C44 40.2 42.2 42 40 42H8C5.8 42 4 40.2 4 38V28C4 25.8 5.8 24 8 24H18C18 27.32 20.68 30 24 30C27.32 30 30 27.32 30 24H40Z">`);
3236
+ var _tmpl$45 = /* @__PURE__ */ web.template(`<svg xmlns=http://www.w3.org/2000/svg width=48 height=48 viewBox="0 0 48 48"fill=none><path fill=currentColor d="M35.2 21.62L32.38 18.8L39.5 11.7L42.32 14.52C42.1 14.58 35.2 21.62 35.2 21.62ZM26 6H22V16H26V6ZM12.8 21.62L15.62 18.8L8.52 11.68L5.68 14.52C5.9 14.58 12.8 21.62 12.8 21.62ZM40 28H33.16C31.62 31.52 28.08 34 24 34C19.92 34 16.38 31.52 14.84 28H8V38H40V28ZM40 24C42.2 24 44 25.8 44 28V38C44 40.2 42.2 42 40 42H8C5.8 42 4 40.2 4 38V28C4 25.8 5.8 24 8 24H18C18 27.32 20.68 30 24 30C27.32 30 30 27.32 30 24H40Z">`);
3336
3237
  function EmptyIcon(props) {
3337
3238
  return (() => {
3338
- var _el$ = _tmpl$47();
3239
+ var _el$ = _tmpl$45();
3339
3240
  web.spread(_el$, props, true, true);
3340
3241
  return _el$;
3341
3242
  })();
@@ -3366,10 +3267,10 @@ var NewMessagesCta = (props) => {
3366
3267
  }
3367
3268
  });
3368
3269
  };
3369
- var _tmpl$48 = /* @__PURE__ */ web.template(`<div class="nt-flex nt-gap-2 nt-px-6 nt-py-4 nt-w-full"><div class="nt-flex nt-flex-col nt-self-stretch nt-gap-3 nt-flex-1"><div class="nt-flex nt-gap-1"></div><div class="nt-flex nt-gap-1">`);
3270
+ var _tmpl$46 = /* @__PURE__ */ web.template(`<div class="nt-flex nt-gap-2 nt-px-6 nt-py-4 nt-w-full"><div class="nt-flex nt-flex-col nt-self-stretch nt-gap-3 nt-flex-1"><div class="nt-flex nt-gap-1"></div><div class="nt-flex nt-gap-1">`);
3370
3271
  var NotificationSkeleton = () => {
3371
3272
  return (() => {
3372
- var _el$ = _tmpl$48(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
3273
+ var _el$ = _tmpl$46(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
3373
3274
  web.insert(_el$, web.createComponent(SkeletonAvatar, {
3374
3275
  appearanceKey: "skeletonAvatar"
3375
3276
  }), _el$2);
@@ -3406,7 +3307,7 @@ var NotificationListSkeleton = (props) => {
3406
3307
  };
3407
3308
 
3408
3309
  // src/ui/components/Notification/NotificationList.tsx
3409
- var _tmpl$49 = /* @__PURE__ */ web.template(`<div><p data-localization=notifications.emptyNotice>`);
3310
+ var _tmpl$47 = /* @__PURE__ */ web.template(`<div><p data-localization=notifications.emptyNotice>`);
3410
3311
  var _tmpl$215 = /* @__PURE__ */ web.template(`<div>`);
3411
3312
  var _tmpl$312 = /* @__PURE__ */ web.template(`<div><div>`);
3412
3313
  var EmptyNotificationList = () => {
@@ -3415,7 +3316,7 @@ var EmptyNotificationList = () => {
3415
3316
  t
3416
3317
  } = useLocalization();
3417
3318
  return (() => {
3418
- var _el$ = _tmpl$49(), _el$2 = _el$.firstChild;
3319
+ var _el$ = _tmpl$47(), _el$2 = _el$.firstChild;
3419
3320
  web.insert(_el$, web.createComponent(EmptyIcon, {
3420
3321
  get ["class"]() {
3421
3322
  return style("notificationListEmptyNoticeIcon");
@@ -3562,13 +3463,13 @@ var NotificationList = (props) => {
3562
3463
  return _el$3;
3563
3464
  })();
3564
3465
  };
3565
- var _tmpl$50 = /* @__PURE__ */ web.template(`<span>`);
3466
+ var _tmpl$48 = /* @__PURE__ */ web.template(`<span>`);
3566
3467
  var getDisplayCount = (count) => count >= 100 ? "99+" : count;
3567
3468
  var InboxTabUnreadNotificationsCount = (props) => {
3568
3469
  const style = useStyle();
3569
3470
  const displayCount = solidJs.createMemo(() => getDisplayCount(props.count));
3570
3471
  return (() => {
3571
- var _el$ = _tmpl$50();
3472
+ var _el$ = _tmpl$48();
3572
3473
  web.insert(_el$, displayCount);
3573
3474
  web.effect(() => web.className(_el$, style("notificationsTabsTriggerCount", "nt-rounded-full nt-bg-counter nt-px-[6px] nt-text-counter-foreground nt-text-sm")));
3574
3475
  return _el$;
@@ -3593,7 +3494,7 @@ var InboxTab = (props) => {
3593
3494
  },
3594
3495
  get children() {
3595
3496
  return [(() => {
3596
- var _el$2 = _tmpl$50();
3497
+ var _el$2 = _tmpl$48();
3597
3498
  web.insert(_el$2, () => props.label);
3598
3499
  web.effect(() => web.className(_el$2, style("notificationsTabsTriggerLabel", "nt-text-sm nt-font-medium")));
3599
3500
  return _el$2;
@@ -3628,7 +3529,7 @@ var InboxDropdownTab = (props) => {
3628
3529
  },
3629
3530
  get children() {
3630
3531
  return [(() => {
3631
- var _el$3 = _tmpl$50();
3532
+ var _el$3 = _tmpl$48();
3632
3533
  web.insert(_el$3, () => props.label);
3633
3534
  web.effect(() => web.className(_el$3, style("moreTabs__dropdownItemLabel", "nt-mr-auto")));
3634
3535
  return _el$3;
@@ -3828,7 +3729,7 @@ var InboxTabs = (props) => {
3828
3729
  };
3829
3730
 
3830
3731
  // src/ui/components/Inbox.tsx
3831
- var _tmpl$51 = /* @__PURE__ */ web.template(`<div>`);
3732
+ var _tmpl$49 = /* @__PURE__ */ web.template(`<div>`);
3832
3733
  var InboxPage = /* @__PURE__ */ function(InboxPage2) {
3833
3734
  InboxPage2["Notifications"] = "notifications";
3834
3735
  InboxPage2["Preferences"] = "preferences";
@@ -3850,7 +3751,7 @@ var InboxContent = (props) => {
3850
3751
  };
3851
3752
  });
3852
3753
  return (() => {
3853
- var _el$ = _tmpl$51();
3754
+ var _el$ = _tmpl$49();
3854
3755
  web.insert(_el$, web.createComponent(solidJs.Switch, {
3855
3756
  get children() {
3856
3757
  return [web.createComponent(solidJs.Match, {
@@ -4097,7 +3998,7 @@ var Renderer = (props) => {
4097
3998
  }
4098
3999
  });
4099
4000
  };
4100
- var version = "2.3.1";
4001
+ var version = "2.5.0";
4101
4002
  var cssHref = `https://cdn.jsdelivr.net/npm/@novu/js@${version}/dist/index.css`;
4102
4003
  var _dispose, _rootElement, _mountedElements, _setMountedElements, _appearance, _setAppearance, _localization, _setLocalization, _options, _setOptions, _tabs, _setTabs, _routerPush, _setRouterPush, _preferencesFilter, _setPreferencesFilter, _predefinedNovu, _NovuUI_instances, mountComponentRenderer_fn, updateComponentProps_fn;
4103
4004
  var NovuUI = class {