remoraid 2.43.2 → 2.44.2

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.
@@ -5510,13 +5510,6 @@ var getDefaultButtonIconSize = (buttonSize) => {
5510
5510
  }
5511
5511
  return "large" /* Large */;
5512
5512
  };
5513
- var isIcon = (value) => {
5514
- if (typeof value !== "object" || value === null) {
5515
- return false;
5516
- }
5517
- const candidate = value;
5518
- return "render" in candidate && typeof candidate.render === "function";
5519
- };
5520
5513
 
5521
5514
  // src/core/components/RemoraidProvider/ThemeProvider/index.tsx
5522
5515
  import { px, rgba, useMantineTheme } from "@mantine/core";
@@ -5708,16 +5701,31 @@ var useLayouts = () => {
5708
5701
  return useContext5(layoutsContext);
5709
5702
  };
5710
5703
 
5711
- // src/core/components/RemoraidProvider/index.tsx
5704
+ // src/core/components/RemoraidProvider/RouterProvider/index.tsx
5705
+ import {
5706
+ createContext as createContext4,
5707
+ useContext as useContext6
5708
+ } from "react";
5712
5709
  import { jsx as jsx7 } from "react/jsx-runtime";
5710
+ var defaultRouter = {
5711
+ pathname: "/",
5712
+ push: () => {}
5713
+ };
5714
+ var routerContext = createContext4(defaultRouter);
5715
+ var useRemoraidRouter = () => {
5716
+ return useContext6(routerContext);
5717
+ };
5718
+
5719
+ // src/core/components/RemoraidProvider/index.tsx
5720
+ import { jsx as jsx8 } from "react/jsx-runtime";
5713
5721
  // src/core/components/AppShell/index.tsx
5714
5722
  import { Box as Box5 } from "@mantine/core";
5715
5723
  import { useEffect as useEffect4 } from "react";
5716
5724
 
5717
5725
  // src/core/components/AppShell/AppProvider/index.tsx
5718
5726
  var import_lodash4 = __toESM(require_lodash(), 1);
5719
- import { createContext as createContext4, useContext as useContext6 } from "react";
5720
- import { jsx as jsx8 } from "react/jsx-runtime";
5727
+ import { createContext as createContext5, useContext as useContext7 } from "react";
5728
+ import { jsx as jsx9 } from "react/jsx-runtime";
5721
5729
  var defaultAppContext = {
5722
5730
  name: "Hello, World!",
5723
5731
  nav: [],
@@ -5725,16 +5733,16 @@ var defaultAppContext = {
5725
5733
  footerVariant: "minimal" /* Minimal */,
5726
5734
  navbarMobileVariant: null
5727
5735
  };
5728
- var appContext = createContext4(defaultAppContext);
5736
+ var appContext = createContext5(defaultAppContext);
5729
5737
  var useRemoraidApp = () => {
5730
- return useContext6(appContext);
5738
+ return useContext7(appContext);
5731
5739
  };
5732
5740
  function AppProvider({
5733
5741
  appContext: appContextProp,
5734
5742
  children
5735
5743
  }) {
5736
5744
  const { logo, ...appContextPropWithoutLogo } = appContextProp;
5737
- return /* @__PURE__ */ jsx8(appContext.Provider, {
5745
+ return /* @__PURE__ */ jsx9(appContext.Provider, {
5738
5746
  value: { ...import_lodash4.merge(defaultAppContext, appContextPropWithoutLogo), logo },
5739
5747
  children
5740
5748
  });
@@ -5745,7 +5753,7 @@ var import_lodash13 = __toESM(require_lodash(), 1);
5745
5753
 
5746
5754
  // src/core/components/AppShell/AppShellUserExperienceProvider/index.tsx
5747
5755
  var import_lodash12 = __toESM(require_lodash(), 1);
5748
- import { useContext as useContext9 } from "react";
5756
+ import { useContext as useContext10 } from "react";
5749
5757
 
5750
5758
  // src/core/components/AppShell/Footer/FooterMinimal/index.tsx
5751
5759
  import { Center } from "@mantine/core";
@@ -5778,7 +5786,7 @@ function clsx() {
5778
5786
  var clsx_default = clsx;
5779
5787
 
5780
5788
  // src/core/components/Page/PageContainer/index.tsx
5781
- import { jsx as jsx9 } from "react/jsx-runtime";
5789
+ import { jsx as jsx10 } from "react/jsx-runtime";
5782
5790
  function PageContainer({
5783
5791
  children,
5784
5792
  p = 0,
@@ -5786,7 +5794,7 @@ function PageContainer({
5786
5794
  componentsProps
5787
5795
  }) {
5788
5796
  const theme = useRemoraidTheme();
5789
- return /* @__PURE__ */ jsx9(Container, {
5797
+ return /* @__PURE__ */ jsx10(Container, {
5790
5798
  size: theme.containerSize,
5791
5799
  p,
5792
5800
  w: "100%",
@@ -5804,14 +5812,14 @@ import {
5804
5812
  Stack
5805
5813
  } from "@mantine/core";
5806
5814
  import {
5807
- createContext as createContext6,
5815
+ createContext as createContext7,
5808
5816
  useCallback,
5809
- useContext as useContext8,
5817
+ useContext as useContext9,
5810
5818
  useMemo as useMemo3
5811
5819
  } from "react";
5812
5820
 
5813
5821
  // src/core/components/FrameLayout/Element/index.tsx
5814
- import { createContext as createContext5, useContext as useContext7 } from "react";
5822
+ import { createContext as createContext6, useContext as useContext8 } from "react";
5815
5823
  import { Box, Portal } from "@mantine/core";
5816
5824
 
5817
5825
  // src/core/lib/errors.ts
@@ -5824,10 +5832,10 @@ class InvalidComponentUsageError extends Error {
5824
5832
 
5825
5833
  // src/core/components/FrameLayout/Element/index.tsx
5826
5834
  var import_lodash5 = __toESM(require_lodash(), 1);
5827
- import { jsx as jsx10 } from "react/jsx-runtime";
5828
- var layoutElementContext = createContext5(null);
5835
+ import { jsx as jsx11 } from "react/jsx-runtime";
5836
+ var layoutElementContext = createContext6(null);
5829
5837
  var useFrameLayoutElement = () => {
5830
- return useContext7(layoutElementContext);
5838
+ return useContext8(layoutElementContext);
5831
5839
  };
5832
5840
  function Element2({
5833
5841
  section,
@@ -5857,17 +5865,17 @@ function Element2({
5857
5865
  if (section === "left" /* Left */ || section === "right" /* Right */) {
5858
5866
  containerProps.h = "100%";
5859
5867
  }
5860
- const element = includePageContainer ? /* @__PURE__ */ jsx10(PageContainer, {
5868
+ const element = includePageContainer ? /* @__PURE__ */ jsx11(PageContainer, {
5861
5869
  p: 0,
5862
5870
  hidden,
5863
5871
  ...componentsProps?.PageContainer,
5864
5872
  children
5865
5873
  }) : children;
5866
- return /* @__PURE__ */ jsx10(Portal, {
5874
+ return /* @__PURE__ */ jsx11(Portal, {
5867
5875
  target: layout.sections[section],
5868
- children: /* @__PURE__ */ jsx10(layoutElementContext.Provider, {
5876
+ children: /* @__PURE__ */ jsx11(layoutElementContext.Provider, {
5869
5877
  value: { layoutType: "frame" /* Frame */, section },
5870
- children: includeContainer ? /* @__PURE__ */ jsx10(Box, {
5878
+ children: includeContainer ? /* @__PURE__ */ jsx11(Box, {
5871
5879
  "data-hidden": hidden,
5872
5880
  ...import_lodash5.merge(containerProps, componentsProps?.container),
5873
5881
  className: clsx_default("remoraid-frame-layout-element", containerProps?.className, componentsProps?.container?.className),
@@ -5878,10 +5886,10 @@ function Element2({
5878
5886
  }
5879
5887
 
5880
5888
  // src/core/components/FrameLayout/index.tsx
5881
- import { jsx as jsx11, jsxs } from "react/jsx-runtime";
5882
- var layoutContext = createContext6(null);
5889
+ import { jsx as jsx12, jsxs } from "react/jsx-runtime";
5890
+ var layoutContext = createContext7(null);
5883
5891
  var useFrameLayout = () => {
5884
- return useContext8(layoutContext);
5892
+ return useContext9(layoutContext);
5885
5893
  };
5886
5894
  function FrameLayout({
5887
5895
  layoutId,
@@ -5938,7 +5946,7 @@ function FrameLayout({
5938
5946
  ["content" /* Content */]: n
5939
5947
  }));
5940
5948
  }, [setSections]);
5941
- const contentSection = /* @__PURE__ */ jsx11(Stack, {
5949
+ const contentSection = /* @__PURE__ */ jsx12(Stack, {
5942
5950
  ref: contentSectionRef,
5943
5951
  h: "100%",
5944
5952
  gap: gutter,
@@ -5953,7 +5961,7 @@ function FrameLayout({
5953
5961
  ...layout,
5954
5962
  layoutId
5955
5963
  }), [layout?.sections, defaultSections, layoutId]);
5956
- return /* @__PURE__ */ jsx11(layoutContext.Provider, {
5964
+ return /* @__PURE__ */ jsx12(layoutContext.Provider, {
5957
5965
  value: layoutContextValue,
5958
5966
  children: /* @__PURE__ */ jsxs(Group, {
5959
5967
  gap: 0,
@@ -5966,7 +5974,7 @@ function FrameLayout({
5966
5974
  },
5967
5975
  className: clsx_default("remoraid-frame-layout", componentsProps?.horizontalContainer?.className),
5968
5976
  children: [
5969
- /* @__PURE__ */ jsx11(Group, {
5977
+ /* @__PURE__ */ jsx12(Group, {
5970
5978
  ref: leftSectionRef,
5971
5979
  h: "100%",
5972
5980
  wrap: "nowrap",
@@ -5982,19 +5990,19 @@ function FrameLayout({
5982
5990
  ...componentsProps?.verticalContainer,
5983
5991
  className: clsx_default("remoraid-frame-layout-vertical-container", componentsProps?.verticalContainer?.className),
5984
5992
  children: [
5985
- /* @__PURE__ */ jsx11(Stack, {
5993
+ /* @__PURE__ */ jsx12(Stack, {
5986
5994
  ref: topSectionRef,
5987
5995
  gap: gutter,
5988
5996
  flex: 0,
5989
5997
  ...componentsProps?.sectionContainers?.["top" /* Top */],
5990
5998
  className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-top-section", componentsProps?.sectionContainers?.["top" /* Top */]?.className)
5991
5999
  }),
5992
- includeScrollArea ? /* @__PURE__ */ jsx11(ScrollArea, {
6000
+ includeScrollArea ? /* @__PURE__ */ jsx12(ScrollArea, {
5993
6001
  flex: 1,
5994
6002
  ...componentsProps?.ScrollArea,
5995
6003
  children: contentSection
5996
6004
  }) : contentSection,
5997
- /* @__PURE__ */ jsx11(Stack, {
6005
+ /* @__PURE__ */ jsx12(Stack, {
5998
6006
  ref: bottomSectionRef,
5999
6007
  gap: gutter,
6000
6008
  flex: 0,
@@ -6003,7 +6011,7 @@ function FrameLayout({
6003
6011
  })
6004
6012
  ]
6005
6013
  }),
6006
- /* @__PURE__ */ jsx11(Group, {
6014
+ /* @__PURE__ */ jsx12(Group, {
6007
6015
  ref: rightSectionRef,
6008
6016
  h: "100%",
6009
6017
  gap: gutter,
@@ -6021,7 +6029,7 @@ var FrameLayout_default = Object.assign(FrameLayout, {
6021
6029
  });
6022
6030
 
6023
6031
  // src/core/components/AppShell/Footer/FooterMinimal/index.tsx
6024
- import { jsx as jsx12 } from "react/jsx-runtime";
6032
+ import { jsx as jsx13 } from "react/jsx-runtime";
6025
6033
  function FooterMinimal({
6026
6034
  icon: Icon2 = IconPennant,
6027
6035
  componentsProps
@@ -6032,10 +6040,10 @@ function FooterMinimal({
6032
6040
  footer: { position }
6033
6041
  }
6034
6042
  } = useAppShellUserExperience();
6035
- const content = /* @__PURE__ */ jsx12(PageContainer, {
6043
+ const content = /* @__PURE__ */ jsx13(PageContainer, {
6036
6044
  ...componentsProps?.container,
6037
- children: /* @__PURE__ */ jsx12(Center, {
6038
- children: /* @__PURE__ */ jsx12(Icon2, {
6045
+ children: /* @__PURE__ */ jsx13(Center, {
6046
+ children: /* @__PURE__ */ jsx13(Icon2, {
6039
6047
  color: "var(--mantine-color-default-border)",
6040
6048
  ...theme.componentsProps.icons.huge,
6041
6049
  ...componentsProps?.icon
@@ -6043,7 +6051,7 @@ function FooterMinimal({
6043
6051
  })
6044
6052
  });
6045
6053
  if (position === "bottom" /* Bottom */) {
6046
- return /* @__PURE__ */ jsx12(FrameLayout_default.Element, {
6054
+ return /* @__PURE__ */ jsx13(FrameLayout_default.Element, {
6047
6055
  section: position,
6048
6056
  includeContainer: true,
6049
6057
  ...componentsProps?.layoutElement,
@@ -6058,7 +6066,7 @@ function FooterMinimal({
6058
6066
  }
6059
6067
 
6060
6068
  // src/core/components/AppShell/Footer/index.tsx
6061
- import { jsx as jsx13 } from "react/jsx-runtime";
6069
+ import { jsx as jsx14 } from "react/jsx-runtime";
6062
6070
  var supportedFooterPositions = {
6063
6071
  ["minimal" /* Minimal */]: [
6064
6072
  null,
@@ -6072,7 +6080,7 @@ var defaultFooterPositions = {
6072
6080
  function Footer({ componentsProps }) {
6073
6081
  const { footerVariant } = useRemoraidApp();
6074
6082
  if (footerVariant === "minimal" /* Minimal */) {
6075
- return /* @__PURE__ */ jsx13(FooterMinimal, {
6083
+ return /* @__PURE__ */ jsx14(FooterMinimal, {
6076
6084
  ...componentsProps?.FooterMinimal
6077
6085
  });
6078
6086
  }
@@ -6086,7 +6094,6 @@ var Footer_default = Object.assign(Footer, {
6086
6094
  import { useState as useState7 } from "react";
6087
6095
 
6088
6096
  // src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/index.tsx
6089
- import { isValidElement as isValidElement4 } from "react";
6090
6097
  import {
6091
6098
  Box as Box3,
6092
6099
  Group as Group2,
@@ -6094,7 +6101,6 @@ import {
6094
6101
  ScrollArea as ScrollArea2,
6095
6102
  Stack as Stack2
6096
6103
  } from "@mantine/core";
6097
- import { usePathname as usePathname2, useRouter as useRouter2 } from "next/navigation";
6098
6104
  var import_lodash8 = __toESM(require_lodash(), 1);
6099
6105
 
6100
6106
  // src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/NavigationMenu/index.tsx
@@ -6104,9 +6110,8 @@ import {
6104
6110
  Transition,
6105
6111
  useMantineTheme as useMantineTheme2
6106
6112
  } from "@mantine/core";
6107
- import { usePathname, useRouter } from "next/navigation";
6108
6113
  import { isValidElement as isValidElement2 } from "react";
6109
- import { jsx as jsx14, jsxs as jsxs2 } from "react/jsx-runtime";
6114
+ import { jsx as jsx15, jsxs as jsxs2 } from "react/jsx-runtime";
6110
6115
  function NavigationMenu({
6111
6116
  target,
6112
6117
  elements,
@@ -6115,13 +6120,13 @@ function NavigationMenu({
6115
6120
  }) {
6116
6121
  const theme = useRemoraidTheme();
6117
6122
  const mantineTheme = useMantineTheme2();
6118
- const pathname = usePathname();
6119
- const router = useRouter();
6120
- const item = (element) => /* @__PURE__ */ jsx14(Transition, {
6123
+ const router = useRemoraidRouter();
6124
+ const { pathname } = router;
6125
+ const item = (element) => /* @__PURE__ */ jsx15(Transition, {
6121
6126
  mounted: element.mounted ?? true,
6122
6127
  ...componentsProps?.transition,
6123
- children: (transitionStyle) => /* @__PURE__ */ jsx14(Menu.Item, {
6124
- leftSection: element.icon ? /* @__PURE__ */ jsx14(element.icon, {
6128
+ children: (transitionStyle) => /* @__PURE__ */ jsx15(Menu.Item, {
6129
+ leftSection: element.icon ? /* @__PURE__ */ jsx15(element.icon, {
6125
6130
  ...theme.componentsProps.icons.small
6126
6131
  }) : undefined,
6127
6132
  c: element.type === "anchor" /* Anchor */ && element.href === pathname ? mantineTheme.primaryColor : undefined,
@@ -6145,17 +6150,17 @@ function NavigationMenu({
6145
6150
  trigger: "click-hover",
6146
6151
  ...componentsProps?.Menu,
6147
6152
  children: [
6148
- /* @__PURE__ */ jsx14(Menu.Target, {
6149
- children: /* @__PURE__ */ jsx14(Box2, {
6153
+ /* @__PURE__ */ jsx15(Menu.Target, {
6154
+ children: /* @__PURE__ */ jsx15(Box2, {
6150
6155
  children: targetElement
6151
6156
  })
6152
6157
  }),
6153
6158
  /* @__PURE__ */ jsxs2(Menu.Dropdown, {
6154
6159
  children: [
6155
- label !== undefined && /* @__PURE__ */ jsx14(Menu.Label, {
6160
+ label !== undefined && /* @__PURE__ */ jsx15(Menu.Label, {
6156
6161
  children: label
6157
6162
  }),
6158
- elements.map((element, i) => /* @__PURE__ */ jsx14(NavigationMenu, {
6163
+ elements.map((element, i) => /* @__PURE__ */ jsx15(NavigationMenu, {
6159
6164
  target: item(element),
6160
6165
  elements: element.children,
6161
6166
  componentsProps
@@ -6181,7 +6186,7 @@ import { IconClick } from "@tabler/icons-react";
6181
6186
  import {
6182
6187
  isValidElement as isValidElement3
6183
6188
  } from "react";
6184
- import { jsx as jsx15, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
6189
+ import { jsx as jsx16, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
6185
6190
  var defaultRemoraidButtonSize = "sm";
6186
6191
  function RemoraidButton({
6187
6192
  label,
@@ -6205,7 +6210,7 @@ function RemoraidButton({
6205
6210
  const collapsed = collapsedProp ?? false;
6206
6211
  const iconSize = iconSizeProp ?? getDefaultButtonIconSize(size);
6207
6212
  const Icon3 = iconProp ?? IconClick;
6208
- const iconElement = isValidElement3(Icon3) ? Icon3 : /* @__PURE__ */ jsx15(Icon3, {
6213
+ const iconElement = isValidElement3(Icon3) ? Icon3 : /* @__PURE__ */ jsx16(Icon3, {
6209
6214
  ...import_lodash7.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
6210
6215
  });
6211
6216
  const clickTransformationClassNames = {
@@ -6218,7 +6223,7 @@ function RemoraidButton({
6218
6223
  ["tiltRight" /* TiltRight */]: "remoraid-button-tilt-right"
6219
6224
  };
6220
6225
  const clickTransformationClass = clickTransformationClassNames[clickTransformation];
6221
- return /* @__PURE__ */ jsx15(Transition2, {
6226
+ return /* @__PURE__ */ jsx16(Transition2, {
6222
6227
  mounted,
6223
6228
  transition: "fade",
6224
6229
  duration: theme.transitionDurations.short,
@@ -6226,10 +6231,10 @@ function RemoraidButton({
6226
6231
  ...componentsProps?.transition,
6227
6232
  children: (transitionStyle) => /* @__PURE__ */ jsxs3(Fragment, {
6228
6233
  children: [
6229
- /* @__PURE__ */ jsx15(Tooltip, {
6234
+ /* @__PURE__ */ jsx16(Tooltip, {
6230
6235
  label,
6231
6236
  ...componentsProps?.tooltip,
6232
- children: /* @__PURE__ */ jsx15(ActionIcon, {
6237
+ children: /* @__PURE__ */ jsx16(ActionIcon, {
6233
6238
  "aria-label": label,
6234
6239
  variant,
6235
6240
  onClick,
@@ -6245,7 +6250,7 @@ function RemoraidButton({
6245
6250
  children: iconElement
6246
6251
  })
6247
6252
  }),
6248
- /* @__PURE__ */ jsx15(Button, {
6253
+ /* @__PURE__ */ jsx16(Button, {
6249
6254
  onClick,
6250
6255
  loading,
6251
6256
  variant,
@@ -6266,8 +6271,7 @@ function RemoraidButton({
6266
6271
  }
6267
6272
 
6268
6273
  // src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/index.tsx
6269
- import Image from "next/image";
6270
- import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
6274
+ import { jsx as jsx17, jsxs as jsxs4 } from "react/jsx-runtime";
6271
6275
  function NavbarMinimalContent({
6272
6276
  orientation,
6273
6277
  maxElements,
@@ -6277,8 +6281,8 @@ function NavbarMinimalContent({
6277
6281
  const theme = useRemoraidTheme();
6278
6282
  const { userExperience: appShellUserExperience } = useAppShellUserExperience();
6279
6283
  const app = useRemoraidApp();
6280
- const router = useRouter2();
6281
- const pathname = usePathname2();
6284
+ const router = useRemoraidRouter();
6285
+ const { pathname } = router;
6282
6286
  const layoutElement = useFrameLayoutElement();
6283
6287
  const { colorScheme, setColorScheme } = useHydratedMantineColorScheme();
6284
6288
  const collapseStaticElementsBreakpoint = collapseStaticElementsBreakpointProp ?? theme.breakpoints.navbarStaticElementsCollapse;
@@ -6299,21 +6303,10 @@ function NavbarMinimalContent({
6299
6303
  buttonCollapsed = false;
6300
6304
  }
6301
6305
  const buttonClickTransformation = orientation === "horizontal" /* Horizontal */ ? "tiltRight" /* TiltRight */ : "default" /* Default */;
6302
- const logoButtonSize = componentsProps?.logoButton?.size ?? componentsProps?.button?.size ?? defaultRemoraidButtonSize;
6303
- const logoIconSize = getDefaultButtonIconSize(logoButtonSize);
6304
- const logoButton = app.logo ? /* @__PURE__ */ jsx16(RemoraidButton, {
6306
+ const logoButton = app.logo ? /* @__PURE__ */ jsx17(RemoraidButton, {
6305
6307
  label: app.name,
6306
6308
  variant: "subtle",
6307
- icon: isValidElement4(app.logo) || isIcon(app.logo) ? app.logo : /* @__PURE__ */ jsx16(Image, {
6308
- src: app.logo,
6309
- alt: "App logo",
6310
- ...componentsProps?.logo,
6311
- style: {
6312
- width: theme.componentsProps.icons[logoIconSize].size,
6313
- height: theme.componentsProps.icons[logoIconSize].size,
6314
- ...componentsProps?.logo?.style
6315
- }
6316
- }),
6309
+ icon: app.logo,
6317
6310
  responsive: buttonResponsive,
6318
6311
  collapsed: buttonCollapsed,
6319
6312
  clickTransformation: buttonClickTransformation,
@@ -6331,9 +6324,9 @@ function NavbarMinimalContent({
6331
6324
  componentsProps?.logoButton?.onClick?.(e);
6332
6325
  }
6333
6326
  }) : undefined;
6334
- const button = (element, key) => /* @__PURE__ */ jsx16(NavigationMenu, {
6327
+ const button = (element, key) => /* @__PURE__ */ jsx17(NavigationMenu, {
6335
6328
  label: element.label,
6336
- target: /* @__PURE__ */ jsx16(RemoraidButton, {
6329
+ target: /* @__PURE__ */ jsx17(RemoraidButton, {
6337
6330
  mounted: element.mounted,
6338
6331
  label: element.label,
6339
6332
  icon: element.icon,
@@ -6376,11 +6369,11 @@ function NavbarMinimalContent({
6376
6369
  const staticElements = elements.filter((element) => element.static);
6377
6370
  const staticButtons = staticElements.sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0)).map((element, i) => button(element, `static-nav-element-${i}`));
6378
6371
  const collapseStaticElements = staticElements.filter((element) => element.mounted ?? true).length > 1;
6379
- const staticMenuButton = collapseStaticElements ? /* @__PURE__ */ jsx16(Box3, {
6372
+ const staticMenuButton = collapseStaticElements ? /* @__PURE__ */ jsx17(Box3, {
6380
6373
  hiddenFrom: collapseStaticElementsBreakpoint,
6381
- children: /* @__PURE__ */ jsx16(NavigationMenu, {
6374
+ children: /* @__PURE__ */ jsx17(NavigationMenu, {
6382
6375
  elements: staticElements,
6383
- target: /* @__PURE__ */ jsx16(RemoraidButton, {
6376
+ target: /* @__PURE__ */ jsx17(RemoraidButton, {
6384
6377
  label: "Static elements",
6385
6378
  icon: IconDots,
6386
6379
  responsive: orientation === "vertical" /* Vertical */ ? buttonResponsive : false,
@@ -6401,7 +6394,7 @@ function NavbarMinimalContent({
6401
6394
  }, componentsProps?.NavigationMenu?.componentsProps)
6402
6395
  })
6403
6396
  }) : null;
6404
- return /* @__PURE__ */ jsx16(Paper, {
6397
+ return /* @__PURE__ */ jsx17(Paper, {
6405
6398
  bg: theme.transparentBackground,
6406
6399
  h: "100%",
6407
6400
  p: "md",
@@ -6411,13 +6404,13 @@ function NavbarMinimalContent({
6411
6404
  h: "100%",
6412
6405
  children: [
6413
6406
  logoButton,
6414
- /* @__PURE__ */ jsx16(ScrollArea2, {
6407
+ /* @__PURE__ */ jsx17(ScrollArea2, {
6415
6408
  flex: 1,
6416
- children: /* @__PURE__ */ jsx16(Stack2, {
6409
+ children: /* @__PURE__ */ jsx17(Stack2, {
6417
6410
  children: buttons
6418
6411
  })
6419
6412
  }),
6420
- /* @__PURE__ */ jsx16(Stack2, {
6413
+ /* @__PURE__ */ jsx17(Stack2, {
6421
6414
  visibleFrom: collapseStaticElements ? collapseStaticElementsBreakpoint : undefined,
6422
6415
  children: staticButtons
6423
6416
  }),
@@ -6427,15 +6420,15 @@ function NavbarMinimalContent({
6427
6420
  wrap: "nowrap",
6428
6421
  children: [
6429
6422
  logoButton,
6430
- /* @__PURE__ */ jsx16(ScrollArea2, {
6423
+ /* @__PURE__ */ jsx17(ScrollArea2, {
6431
6424
  flex: 1,
6432
6425
  style: { contain: "inline-size" },
6433
- children: /* @__PURE__ */ jsx16(Group2, {
6426
+ children: /* @__PURE__ */ jsx17(Group2, {
6434
6427
  wrap: "nowrap",
6435
6428
  children: buttons
6436
6429
  })
6437
6430
  }),
6438
- /* @__PURE__ */ jsx16(Group2, {
6431
+ /* @__PURE__ */ jsx17(Group2, {
6439
6432
  wrap: "nowrap",
6440
6433
  visibleFrom: collapseStaticElements ? collapseStaticElementsBreakpoint : undefined,
6441
6434
  children: staticButtons
@@ -6467,7 +6460,7 @@ import {
6467
6460
  } from "@mantine/core";
6468
6461
  import { IconClick as IconClick2 } from "@tabler/icons-react";
6469
6462
  var import_lodash9 = __toESM(require_lodash(), 1);
6470
- import { jsx as jsx17 } from "react/jsx-runtime";
6463
+ import { jsx as jsx18 } from "react/jsx-runtime";
6471
6464
  function ControlButton({
6472
6465
  icon: Icon4 = IconClick2,
6473
6466
  mounted = true,
@@ -6480,17 +6473,17 @@ function ControlButton({
6480
6473
  componentsProps
6481
6474
  }) {
6482
6475
  const theme = useRemoraidTheme();
6483
- return /* @__PURE__ */ jsx17(Transition3, {
6476
+ return /* @__PURE__ */ jsx18(Transition3, {
6484
6477
  mounted,
6485
6478
  transition: "fade",
6486
6479
  duration: theme.transitionDurations.short,
6487
6480
  timingFunction: "ease",
6488
6481
  ...componentsProps?.transition,
6489
- children: (transitionStyle) => /* @__PURE__ */ jsx17(Tooltip2, {
6482
+ children: (transitionStyle) => /* @__PURE__ */ jsx18(Tooltip2, {
6490
6483
  label: tooltip,
6491
6484
  disabled: !Boolean(tooltip),
6492
6485
  ...componentsProps?.tooltip,
6493
- children: /* @__PURE__ */ jsx17(ActionIcon2, {
6486
+ children: /* @__PURE__ */ jsx18(ActionIcon2, {
6494
6487
  "data-control-button": true,
6495
6488
  size,
6496
6489
  color,
@@ -6501,7 +6494,7 @@ function ControlButton({
6501
6494
  order,
6502
6495
  ...import_lodash9.merge(transitionStyle, componentsProps?.button?.style)
6503
6496
  },
6504
- children: /* @__PURE__ */ jsx17(Icon4, {
6497
+ children: /* @__PURE__ */ jsx18(Icon4, {
6505
6498
  ...import_lodash9.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
6506
6499
  })
6507
6500
  })
@@ -6518,7 +6511,7 @@ import {
6518
6511
  } from "@mantine/core";
6519
6512
  import { IconGripHorizontal } from "@tabler/icons-react";
6520
6513
  var import_lodash10 = __toESM(require_lodash(), 1);
6521
- import { jsx as jsx18, jsxs as jsxs5 } from "react/jsx-runtime";
6514
+ import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
6522
6515
  function Controls({
6523
6516
  groupRef,
6524
6517
  mounted = true,
@@ -6576,14 +6569,14 @@ function Controls({
6576
6569
  const handlePointerUp = (e) => {
6577
6570
  e.currentTarget.releasePointerCapture(e.pointerId);
6578
6571
  };
6579
- return /* @__PURE__ */ jsx18(Transition4, {
6572
+ return /* @__PURE__ */ jsx19(Transition4, {
6580
6573
  mounted,
6581
6574
  keepMounted: true,
6582
6575
  transition: "pop",
6583
6576
  duration: theme.transitionDurations.short,
6584
6577
  timingFunction: "ease",
6585
6578
  ...componentsProps?.transition,
6586
- children: (transitionStyle) => /* @__PURE__ */ jsx18(Paper2, {
6579
+ children: (transitionStyle) => /* @__PURE__ */ jsx19(Paper2, {
6587
6580
  ref: containerRef,
6588
6581
  pos: "absolute",
6589
6582
  p: gutter,
@@ -6606,7 +6599,7 @@ function Controls({
6606
6599
  ...componentsProps?.group,
6607
6600
  className: clsx_default("remoraid-controls-group", componentsProps?.group?.className),
6608
6601
  children: [
6609
- /* @__PURE__ */ jsx18(IconGripHorizontal, {
6602
+ /* @__PURE__ */ jsx19(IconGripHorizontal, {
6610
6603
  ...import_lodash10.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
6611
6604
  }),
6612
6605
  children,
@@ -6614,7 +6607,7 @@ function Controls({
6614
6607
  if (isValidElementOfType(ControlButton, button)) {
6615
6608
  return button;
6616
6609
  }
6617
- return /* @__PURE__ */ jsx18(ControlButton, {
6610
+ return /* @__PURE__ */ jsx19(ControlButton, {
6618
6611
  ...button
6619
6612
  }, i);
6620
6613
  })
@@ -6625,7 +6618,7 @@ function Controls({
6625
6618
  }
6626
6619
 
6627
6620
  // src/core/components/Pinnable/index.tsx
6628
- import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
6621
+ import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
6629
6622
  function Pinnable({
6630
6623
  layoutType: layoutTypeProp,
6631
6624
  section,
@@ -6645,7 +6638,7 @@ function Pinnable({
6645
6638
  if (layout && layout.type !== layoutType) {
6646
6639
  throw new TypeError(`Prop 'layoutId' in '${Pinnable.name}' refers to a layout of type ${layout.type}, expected ${layoutType}. Leave 'layoutId' undefined, if you want to use the layout in '${AppShell_default.name}' as reference layout.`);
6647
6640
  }
6648
- const controlButton = useMemo4(() => /* @__PURE__ */ jsx19(ControlButton, {
6641
+ const controlButton = useMemo4(() => /* @__PURE__ */ jsx20(ControlButton, {
6649
6642
  icon: pinned ? IconPinnedOff : IconPin,
6650
6643
  tooltip: pinned ? "Unpin" : "Pin",
6651
6644
  color: "green",
@@ -6664,11 +6657,11 @@ function Pinnable({
6664
6657
  ...componentsProps?.container,
6665
6658
  className: clsx_default("remoraid-pinnable", componentsProps?.container?.className),
6666
6659
  children: [
6667
- controlsContainer === undefined ? /* @__PURE__ */ jsx19(Controls, {
6660
+ controlsContainer === undefined ? /* @__PURE__ */ jsx20(Controls, {
6668
6661
  dragContainerRef: containerRef,
6669
6662
  ...componentsProps?.controls,
6670
6663
  children: controlButton
6671
- }) : controlsContainer !== null && /* @__PURE__ */ jsx19(Portal2, {
6664
+ }) : controlsContainer !== null && /* @__PURE__ */ jsx20(Portal2, {
6672
6665
  target: controlsContainer,
6673
6666
  children: controlButton
6674
6667
  }),
@@ -6682,7 +6675,7 @@ function Pinnable({
6682
6675
  return null;
6683
6676
  }
6684
6677
  if (pinned && layoutType === "frame" /* Frame */) {
6685
- return /* @__PURE__ */ jsx19(FrameLayout_default.Element, {
6678
+ return /* @__PURE__ */ jsx20(FrameLayout_default.Element, {
6686
6679
  layoutId,
6687
6680
  section,
6688
6681
  hidden,
@@ -6694,7 +6687,7 @@ function Pinnable({
6694
6687
  }
6695
6688
 
6696
6689
  // src/core/components/AppShell/Navbar/NavbarMinimal/index.tsx
6697
- import { jsx as jsx20 } from "react/jsx-runtime";
6690
+ import { jsx as jsx21 } from "react/jsx-runtime";
6698
6691
  function NavbarMinimal({
6699
6692
  pinnable = true,
6700
6693
  componentsProps
@@ -6712,7 +6705,7 @@ function NavbarMinimal({
6712
6705
  setHover(false);
6713
6706
  };
6714
6707
  if (position === "left" /* Left */ || position === "right" /* Right */) {
6715
- return /* @__PURE__ */ jsx20(FrameLayout_default.Element, {
6708
+ return /* @__PURE__ */ jsx21(FrameLayout_default.Element, {
6716
6709
  section: position,
6717
6710
  includeContainer: true,
6718
6711
  ...componentsProps?.layoutElement,
@@ -6723,19 +6716,19 @@ function NavbarMinimal({
6723
6716
  }
6724
6717
  }
6725
6718
  }, componentsProps?.layoutElement?.componentsProps),
6726
- children: /* @__PURE__ */ jsx20(NavbarMinimalContent, {
6719
+ children: /* @__PURE__ */ jsx21(NavbarMinimalContent, {
6727
6720
  orientation: "vertical" /* Vertical */,
6728
6721
  ...componentsProps?.content
6729
6722
  })
6730
6723
  });
6731
6724
  }
6732
6725
  if (position === "top" /* Top */ || position === "bottom" /* Bottom */) {
6733
- const content = /* @__PURE__ */ jsx20(NavbarMinimalContent, {
6726
+ const content = /* @__PURE__ */ jsx21(NavbarMinimalContent, {
6734
6727
  orientation: "horizontal" /* Horizontal */,
6735
6728
  ...componentsProps?.content
6736
6729
  });
6737
6730
  if (pinnable) {
6738
- return /* @__PURE__ */ jsx20(PageContainer, {
6731
+ return /* @__PURE__ */ jsx21(PageContainer, {
6739
6732
  ...componentsProps?.container,
6740
6733
  componentsProps: {
6741
6734
  ...componentsProps?.container?.componentsProps,
@@ -6744,7 +6737,7 @@ function NavbarMinimal({
6744
6737
  className: clsx_default("hide-if-empty", componentsProps?.container?.componentsProps?.container?.className)
6745
6738
  }
6746
6739
  },
6747
- children: /* @__PURE__ */ jsx20(Pinnable, {
6740
+ children: /* @__PURE__ */ jsx21(Pinnable, {
6748
6741
  section: position,
6749
6742
  initialValue: true,
6750
6743
  ...componentsProps?.Pinnable,
@@ -6787,9 +6780,9 @@ function NavbarMinimal({
6787
6780
  return content;
6788
6781
  }
6789
6782
  if (position === "content" /* Content */) {
6790
- return /* @__PURE__ */ jsx20(PageContainer, {
6783
+ return /* @__PURE__ */ jsx21(PageContainer, {
6791
6784
  ...componentsProps?.container,
6792
- children: /* @__PURE__ */ jsx20(NavbarMinimalContent, {
6785
+ children: /* @__PURE__ */ jsx21(NavbarMinimalContent, {
6793
6786
  orientation: "horizontal" /* Horizontal */,
6794
6787
  ...componentsProps?.content
6795
6788
  })
@@ -6800,7 +6793,7 @@ function NavbarMinimal({
6800
6793
 
6801
6794
  // src/core/components/AppShell/Navbar/index.tsx
6802
6795
  import { IconLogin, IconLogout, IconMoon, IconSun } from "@tabler/icons-react";
6803
- import { jsx as jsx21 } from "react/jsx-runtime";
6796
+ import { jsx as jsx22 } from "react/jsx-runtime";
6804
6797
  var supportedNavbarPositions = {
6805
6798
  ["minimal" /* Minimal */]: [
6806
6799
  null,
@@ -6848,21 +6841,21 @@ var getDefaultNavigationElements = ({
6848
6841
  }
6849
6842
  }
6850
6843
  ];
6851
- function Navbar2({ componentsProps }) {
6844
+ function Navbar({ componentsProps }) {
6852
6845
  const { navbarVariant } = useRemoraidApp();
6853
6846
  if (navbarVariant === "minimal" /* Minimal */) {
6854
- return /* @__PURE__ */ jsx21(NavbarMinimal, {
6847
+ return /* @__PURE__ */ jsx22(NavbarMinimal, {
6855
6848
  ...componentsProps?.NavbarMinimal
6856
6849
  });
6857
6850
  }
6858
6851
  return null;
6859
6852
  }
6860
- var Navbar_default = Object.assign(Navbar2, {
6853
+ var Navbar_default = Object.assign(Navbar, {
6861
6854
  NavbarMinimal
6862
6855
  });
6863
6856
 
6864
6857
  // src/core/components/AppShell/AppShellUserExperienceProvider/index.tsx
6865
- import { jsx as jsx22 } from "react/jsx-runtime";
6858
+ import { jsx as jsx23 } from "react/jsx-runtime";
6866
6859
  var defaultAppShellUserExperience = {
6867
6860
  navbar: {
6868
6861
  position: null,
@@ -6876,7 +6869,7 @@ var defaultAppShellUserExperience = {
6876
6869
  var defaultAppShellUserExperienceCookieName = "remoraid-app-shell-user-experience";
6877
6870
  var appShellUserExperienceContext = createUserExperienceContext(defaultAppShellUserExperience);
6878
6871
  var useAppShellUserExperience = () => {
6879
- return useContext9(appShellUserExperienceContext);
6872
+ return useContext10(appShellUserExperienceContext);
6880
6873
  };
6881
6874
  function AppShellUserExperienceProvider({
6882
6875
  children,
@@ -6899,7 +6892,7 @@ function AppShellUserExperienceProvider({
6899
6892
  }
6900
6893
  return true;
6901
6894
  };
6902
- return /* @__PURE__ */ jsx22(UserExperienceProviderWrapper, {
6895
+ return /* @__PURE__ */ jsx23(UserExperienceProviderWrapper, {
6903
6896
  context: appShellUserExperienceContext,
6904
6897
  isValidUserExperience,
6905
6898
  cookieName: cookieName ?? defaultAppShellUserExperienceCookieName,
@@ -6917,7 +6910,7 @@ function AppShellUserExperienceProvider({
6917
6910
  }
6918
6911
 
6919
6912
  // src/core/components/AppShell/index.tsx
6920
- import { jsx as jsx23, jsxs as jsxs7 } from "react/jsx-runtime";
6913
+ import { jsx as jsx24, jsxs as jsxs7 } from "react/jsx-runtime";
6921
6914
  var remoraidAppShellLayoutId = "remoraid-app-shell";
6922
6915
  function AppShell({
6923
6916
  gutter,
@@ -6941,13 +6934,13 @@ function AppShell({
6941
6934
  }
6942
6935
  meta.content = computedBodyColor;
6943
6936
  }, [colorScheme]);
6944
- return /* @__PURE__ */ jsx23(AppProvider, {
6937
+ return /* @__PURE__ */ jsx24(AppProvider, {
6945
6938
  appContext: appContext2,
6946
6939
  ...componentsProps?.AppProvider,
6947
- children: /* @__PURE__ */ jsx23(AppShellUserExperienceProvider, {
6940
+ children: /* @__PURE__ */ jsx24(AppShellUserExperienceProvider, {
6948
6941
  ...componentsProps?.AppShellUserExperienceProvider,
6949
6942
  initialValue: import_lodash13.merge(initialUserExperience, componentsProps?.AppShellUserExperienceProvider?.initialValue),
6950
- children: /* @__PURE__ */ jsx23(Box5, {
6943
+ children: /* @__PURE__ */ jsx24(Box5, {
6951
6944
  h: "100dvh",
6952
6945
  ...componentsProps?.container,
6953
6946
  children: /* @__PURE__ */ jsxs7(FrameLayout_default, {
@@ -6955,11 +6948,11 @@ function AppShell({
6955
6948
  gutter: gutter ?? theme.primaryGutter,
6956
6949
  ...componentsProps?.layout,
6957
6950
  children: [
6958
- /* @__PURE__ */ jsx23(Navbar_default, {
6951
+ /* @__PURE__ */ jsx24(Navbar_default, {
6959
6952
  ...componentsProps?.navbar
6960
6953
  }),
6961
6954
  children,
6962
- /* @__PURE__ */ jsx23(Footer_default, {
6955
+ /* @__PURE__ */ jsx24(Footer_default, {
6963
6956
  ...componentsProps?.footer
6964
6957
  })
6965
6958
  ]
@@ -6985,15 +6978,14 @@ import {
6985
6978
 
6986
6979
  // src/core/components/Page/index.tsx
6987
6980
  import { Stack as Stack3 } from "@mantine/core";
6988
- import React7, {
6989
- useContext as useContext10,
6981
+ import React8, {
6982
+ useContext as useContext11,
6990
6983
  useEffect as useEffect5
6991
6984
  } from "react";
6992
- import { usePathname as usePathname3 } from "next/navigation";
6993
- import { jsx as jsx24 } from "react/jsx-runtime";
6994
- var pageContext = React7.createContext(null);
6985
+ import { jsx as jsx25 } from "react/jsx-runtime";
6986
+ var pageContext = React8.createContext(null);
6995
6987
  var usePage = () => {
6996
- return useContext10(pageContext);
6988
+ return useContext11(pageContext);
6997
6989
  };
6998
6990
 
6999
6991
  // src/core/components/WidgetSelectionHeader/index.tsx
@@ -7006,11 +6998,11 @@ import {
7006
6998
  Flex,
7007
6999
  ScrollArea as ScrollArea3
7008
7000
  } from "@mantine/core";
7009
- import { jsx as jsx25 } from "react/jsx-runtime";
7001
+ import { jsx as jsx26 } from "react/jsx-runtime";
7010
7002
 
7011
7003
  // src/core/components/WidgetSelectionHeader/index.tsx
7012
7004
  var import_lodash14 = __toESM(require_lodash(), 1);
7013
- import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
7005
+ import { jsx as jsx27, jsxs as jsxs8 } from "react/jsx-runtime";
7014
7006
  // src/core/components/BadgeGroup/index.tsx
7015
7007
  import {
7016
7008
  Badge as Badge2,
@@ -7019,7 +7011,7 @@ import {
7019
7011
  Stack as Stack4,
7020
7012
  Transition as Transition6
7021
7013
  } from "@mantine/core";
7022
- import React8 from "react";
7014
+ import React9 from "react";
7023
7015
 
7024
7016
  // src/core/components/BadgeMinimal/index.tsx
7025
7017
  import {
@@ -7027,7 +7019,7 @@ import {
7027
7019
  Tooltip as Tooltip3,
7028
7020
  Transition as Transition5
7029
7021
  } from "@mantine/core";
7030
- import { jsx as jsx27 } from "react/jsx-runtime";
7022
+ import { jsx as jsx28 } from "react/jsx-runtime";
7031
7023
  function BadgeMinimal({
7032
7024
  label,
7033
7025
  tooltip,
@@ -7035,17 +7027,17 @@ function BadgeMinimal({
7035
7027
  componentsProps
7036
7028
  }) {
7037
7029
  const theme = useRemoraidTheme();
7038
- return /* @__PURE__ */ jsx27(Transition5, {
7030
+ return /* @__PURE__ */ jsx28(Transition5, {
7039
7031
  mounted,
7040
7032
  transition: "fade",
7041
7033
  duration: theme.transitionDurations.short,
7042
7034
  timingFunction: "ease",
7043
7035
  ...componentsProps?.transition,
7044
- children: (transitionStyle) => /* @__PURE__ */ jsx27(Tooltip3, {
7036
+ children: (transitionStyle) => /* @__PURE__ */ jsx28(Tooltip3, {
7045
7037
  label: tooltip,
7046
7038
  disabled: !Boolean(tooltip),
7047
7039
  ...componentsProps?.tooltip,
7048
- children: /* @__PURE__ */ jsx27(Badge, {
7040
+ children: /* @__PURE__ */ jsx28(Badge, {
7049
7041
  variant: "default",
7050
7042
  ...componentsProps?.badge,
7051
7043
  style: {
@@ -7061,7 +7053,7 @@ function BadgeMinimal({
7061
7053
 
7062
7054
  // src/core/components/BadgeGroup/index.tsx
7063
7055
  var import_lodash15 = __toESM(require_lodash(), 1);
7064
- import { jsx as jsx28, jsxs as jsxs9, Fragment as Fragment2 } from "react/jsx-runtime";
7056
+ import { jsx as jsx29, jsxs as jsxs9, Fragment as Fragment2 } from "react/jsx-runtime";
7065
7057
  import { createElement } from "react";
7066
7058
  function BadgeGroup({
7067
7059
  badges: badgesProp,
@@ -7084,7 +7076,7 @@ function BadgeGroup({
7084
7076
  });
7085
7077
  return /* @__PURE__ */ jsxs9(Fragment2, {
7086
7078
  children: [
7087
- /* @__PURE__ */ jsx28(Group4, {
7079
+ /* @__PURE__ */ jsx29(Group4, {
7088
7080
  gap,
7089
7081
  wrap: "nowrap",
7090
7082
  visibleFrom: numVisibleBadges > 1 ? breakpoint : undefined,
@@ -7092,7 +7084,7 @@ function BadgeGroup({
7092
7084
  className: clsx_default("hide-if-empty", componentsProps?.container?.className),
7093
7085
  children: badgesElement
7094
7086
  }),
7095
- /* @__PURE__ */ jsx28(Transition6, {
7087
+ /* @__PURE__ */ jsx29(Transition6, {
7096
7088
  mounted: numVisibleBadges > 1,
7097
7089
  transition: "fade",
7098
7090
  duration: theme.transitionDurations.short,
@@ -7101,7 +7093,7 @@ function BadgeGroup({
7101
7093
  children: (transitionStyle) => /* @__PURE__ */ jsxs9(HoverCard, {
7102
7094
  ...componentsProps?.HoverCard,
7103
7095
  children: [
7104
- /* @__PURE__ */ jsx28(HoverCard.Target, {
7096
+ /* @__PURE__ */ jsx29(HoverCard.Target, {
7105
7097
  children: /* @__PURE__ */ jsxs9(Badge2, {
7106
7098
  hiddenFrom: breakpoint,
7107
7099
  variant: "dot",
@@ -7116,9 +7108,9 @@ function BadgeGroup({
7116
7108
  ]
7117
7109
  })
7118
7110
  }),
7119
- /* @__PURE__ */ jsx28(HoverCard.Dropdown, {
7111
+ /* @__PURE__ */ jsx29(HoverCard.Dropdown, {
7120
7112
  p: gap,
7121
- children: /* @__PURE__ */ jsx28(Stack4, {
7113
+ children: /* @__PURE__ */ jsx29(Stack4, {
7122
7114
  gap,
7123
7115
  ...componentsProps?.hoverContainer,
7124
7116
  children: badgesElement
@@ -7133,7 +7125,7 @@ function BadgeGroup({
7133
7125
  // src/core/components/AlertMinimal/index.tsx
7134
7126
  import { Alert, Transition as Transition7 } from "@mantine/core";
7135
7127
  var import_lodash16 = __toESM(require_lodash(), 1);
7136
- import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
7128
+ import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
7137
7129
  function AlertMinimal({
7138
7130
  category,
7139
7131
  children,
@@ -7150,7 +7142,7 @@ function AlertMinimal({
7150
7142
  iconSize = "small" /* Small */,
7151
7143
  componentsProps
7152
7144
  } = import_lodash16.merge({}, theme.componentsProps.alerts[category], props);
7153
- return /* @__PURE__ */ jsx29(Transition7, {
7145
+ return /* @__PURE__ */ jsx30(Transition7, {
7154
7146
  mounted,
7155
7147
  transition: "fade",
7156
7148
  duration: theme.transitionDurations.short,
@@ -7162,7 +7154,7 @@ function AlertMinimal({
7162
7154
  variant: "light",
7163
7155
  onClose,
7164
7156
  withCloseButton: onClose !== undefined,
7165
- icon: Icon4 ? /* @__PURE__ */ jsx29(Icon4, {
7157
+ icon: Icon4 ? /* @__PURE__ */ jsx30(Icon4, {
7166
7158
  ...import_lodash16.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
7167
7159
  }) : undefined,
7168
7160
  style: import_lodash16.merge(transitionStyle, componentsProps?.alert?.style),
@@ -7183,7 +7175,7 @@ import {
7183
7175
  } from "react";
7184
7176
  import { IconX } from "@tabler/icons-react";
7185
7177
  var import_lodash17 = __toESM(require_lodash(), 1);
7186
- import { jsx as jsx30, jsxs as jsxs11 } from "react/jsx-runtime";
7178
+ import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
7187
7179
  function WidgetWrapper({
7188
7180
  config,
7189
7181
  mt = 0,
@@ -7222,7 +7214,7 @@ function WidgetWrapper({
7222
7214
  updateActiveWidget(null);
7223
7215
  };
7224
7216
  const mounted = Boolean(widget?.selected);
7225
- let element = /* @__PURE__ */ jsx30(Transition8, {
7217
+ let element = /* @__PURE__ */ jsx31(Transition8, {
7226
7218
  mounted,
7227
7219
  transition: "fade-left",
7228
7220
  duration: theme.transitionDurations.medium,
@@ -7257,12 +7249,12 @@ function WidgetWrapper({
7257
7249
  className: clsx_default("remoraid-segment", componentsProps?.container?.className),
7258
7250
  id: config.widgetId,
7259
7251
  children: [
7260
- /* @__PURE__ */ jsx30(Controls, {
7252
+ /* @__PURE__ */ jsx31(Controls, {
7261
7253
  dragContainerRef: containerRef,
7262
7254
  groupRef: controlsContainerRef,
7263
7255
  mounted: activeWidget === config.widgetId,
7264
7256
  ...componentsProps?.controls,
7265
- children: /* @__PURE__ */ jsx30(ControlButton, {
7257
+ children: /* @__PURE__ */ jsx31(ControlButton, {
7266
7258
  mounted: withCloseButton,
7267
7259
  icon: IconX,
7268
7260
  tooltip: "Hide widget",
@@ -7291,7 +7283,7 @@ function WidgetWrapper({
7291
7283
  })
7292
7284
  });
7293
7285
  if (pinnableSection !== undefined) {
7294
- element = /* @__PURE__ */ jsx30(Pinnable, {
7286
+ element = /* @__PURE__ */ jsx31(Pinnable, {
7295
7287
  section: pinnableSection,
7296
7288
  controlsContainer,
7297
7289
  hidden: Boolean(widget?.hidden),
@@ -7339,7 +7331,7 @@ import {
7339
7331
  } from "@mantine/core";
7340
7332
  import { Children } from "react";
7341
7333
  var import_lodash18 = __toESM(require_lodash(), 1);
7342
- import { jsx as jsx31, jsxs as jsxs12 } from "react/jsx-runtime";
7334
+ import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
7343
7335
  import { createElement as createElement2 } from "react";
7344
7336
  function Widget({
7345
7337
  id,
@@ -7362,7 +7354,7 @@ function Widget({
7362
7354
  const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
7363
7355
  const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
7364
7356
  const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
7365
- return /* @__PURE__ */ jsx31(WidgetWrapper, {
7357
+ return /* @__PURE__ */ jsx32(WidgetWrapper, {
7366
7358
  config: {
7367
7359
  widgetId: id,
7368
7360
  ...config,
@@ -7390,23 +7382,23 @@ function Widget({
7390
7382
  gap: badgesGap,
7391
7383
  wrap: "nowrap",
7392
7384
  children: [
7393
- /* @__PURE__ */ jsx31(Title, {
7385
+ /* @__PURE__ */ jsx32(Title, {
7394
7386
  order: 1,
7395
7387
  size: "h2",
7396
7388
  lineClamp: 1,
7397
7389
  ...componentsProps?.title,
7398
7390
  children: title ?? id
7399
7391
  }),
7400
- badges !== undefined && /* @__PURE__ */ jsx31(BadgeGroup, {
7392
+ badges !== undefined && /* @__PURE__ */ jsx32(BadgeGroup, {
7401
7393
  badges,
7402
7394
  gap: badgesGap,
7403
7395
  ...componentsProps?.badgeGroup
7404
7396
  })
7405
7397
  ]
7406
7398
  }),
7407
- /* @__PURE__ */ jsx31(Transition9, {
7399
+ /* @__PURE__ */ jsx32(Transition9, {
7408
7400
  mounted: Boolean(description),
7409
- children: (transitionStyle) => /* @__PURE__ */ jsx31(Text2, {
7401
+ children: (transitionStyle) => /* @__PURE__ */ jsx32(Text2, {
7410
7402
  size: "sm",
7411
7403
  c: "dimmed",
7412
7404
  ...componentsProps?.description,
@@ -7416,7 +7408,7 @@ function Widget({
7416
7408
  })
7417
7409
  ]
7418
7410
  }),
7419
- /* @__PURE__ */ jsx31(Group5, {
7411
+ /* @__PURE__ */ jsx32(Group5, {
7420
7412
  gap: buttonsGap,
7421
7413
  wrap: "nowrap",
7422
7414
  children: buttons !== undefined && buttons.map((button, i) => {
@@ -7431,12 +7423,12 @@ function Widget({
7431
7423
  })
7432
7424
  ]
7433
7425
  }),
7434
- /* @__PURE__ */ jsx31(Box7, {
7435
- children: /* @__PURE__ */ jsx31(Divider2, {
7426
+ /* @__PURE__ */ jsx32(Box7, {
7427
+ children: /* @__PURE__ */ jsx32(Divider2, {
7436
7428
  ...componentsProps?.divider
7437
7429
  })
7438
7430
  }),
7439
- /* @__PURE__ */ jsx31(Stack5, {
7431
+ /* @__PURE__ */ jsx32(Stack5, {
7440
7432
  align: "stretch",
7441
7433
  gap: alertsGap,
7442
7434
  ...componentsProps?.alertsContainer,
@@ -7451,12 +7443,12 @@ function Widget({
7451
7443
  });
7452
7444
  })
7453
7445
  }),
7454
- (loading || Children.toArray(children).length > 0) && /* @__PURE__ */ jsx31(ScrollArea4.Autosize, {
7446
+ (loading || Children.toArray(children).length > 0) && /* @__PURE__ */ jsx32(ScrollArea4.Autosize, {
7455
7447
  flex: 1,
7456
7448
  ...componentsProps?.childrenContainer,
7457
7449
  className: clsx_default("remoraid-widget-children-container", componentsProps?.childrenContainer?.className),
7458
- children: loading ? /* @__PURE__ */ jsx31(Center2, {
7459
- children: /* @__PURE__ */ jsx31(Loader, {
7450
+ children: loading ? /* @__PURE__ */ jsx32(Center2, {
7451
+ children: /* @__PURE__ */ jsx32(Loader, {
7460
7452
  ...componentsProps?.loader
7461
7453
  })
7462
7454
  }) : children
@@ -7466,25 +7458,24 @@ function Widget({
7466
7458
  });
7467
7459
  }
7468
7460
  // src/core/components/NotFoundPage/index.tsx
7469
- import { usePathname as usePathname4 } from "next/navigation";
7470
- import { jsx as jsx32, jsxs as jsxs13 } from "react/jsx-runtime";
7461
+ import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
7471
7462
  // src/core/components/EnvironmentShell/index.tsx
7472
- import { jsx as jsx33 } from "react/jsx-runtime";
7463
+ import { jsx as jsx34 } from "react/jsx-runtime";
7473
7464
  // src/core/components/SettingsWidget/index.tsx
7474
- import { createContext as createContext7, useContext as useContext11 } from "react";
7465
+ import { createContext as createContext8, useContext as useContext12 } from "react";
7475
7466
  import { IconRestore } from "@tabler/icons-react";
7476
7467
 
7477
7468
  // src/core/components/SettingsWidget/SaveButton/index.tsx
7478
7469
  import { IconDeviceFloppy } from "@tabler/icons-react";
7479
7470
  import { Group as Group6 } from "@mantine/core";
7480
- import { jsx as jsx34 } from "react/jsx-runtime";
7471
+ import { jsx as jsx35 } from "react/jsx-runtime";
7481
7472
  function SaveButton({
7482
7473
  onSaveChanges,
7483
7474
  insideContainer,
7484
7475
  componentsProps
7485
7476
  }) {
7486
7477
  const settingsWidgetOptions = useSettingsWidgetContext();
7487
- const button = /* @__PURE__ */ jsx34(RemoraidButton, {
7478
+ const button = /* @__PURE__ */ jsx35(RemoraidButton, {
7488
7479
  label: "Save Changes",
7489
7480
  icon: IconDeviceFloppy,
7490
7481
  onClick: onSaveChanges,
@@ -7499,7 +7490,7 @@ function SaveButton({
7499
7490
  }
7500
7491
  });
7501
7492
  if (insideContainer !== false) {
7502
- return /* @__PURE__ */ jsx34(Group6, {
7493
+ return /* @__PURE__ */ jsx35(Group6, {
7503
7494
  w: "100%",
7504
7495
  justify: "flex-end",
7505
7496
  mt: "md",
@@ -7511,11 +7502,11 @@ function SaveButton({
7511
7502
  }
7512
7503
 
7513
7504
  // src/core/components/SettingsWidget/index.tsx
7514
- import { jsx as jsx35 } from "react/jsx-runtime";
7505
+ import { jsx as jsx36 } from "react/jsx-runtime";
7515
7506
  var defaultSettingsWidgetContext = {};
7516
- var settingsWidgetContext = createContext7(defaultSettingsWidgetContext);
7507
+ var settingsWidgetContext = createContext8(defaultSettingsWidgetContext);
7517
7508
  var useSettingsWidgetContext = () => {
7518
- return useContext11(settingsWidgetContext);
7509
+ return useContext12(settingsWidgetContext);
7519
7510
  };
7520
7511
  function SettingsWidget({
7521
7512
  children,
@@ -7524,9 +7515,9 @@ function SettingsWidget({
7524
7515
  custom,
7525
7516
  widgetProps
7526
7517
  }) {
7527
- return /* @__PURE__ */ jsx35(settingsWidgetContext.Provider, {
7518
+ return /* @__PURE__ */ jsx36(settingsWidgetContext.Provider, {
7528
7519
  value: { custom, unsavedChanges },
7529
- children: /* @__PURE__ */ jsx35(Widget, {
7520
+ children: /* @__PURE__ */ jsx36(Widget, {
7530
7521
  title: "Settings",
7531
7522
  id: "settings",
7532
7523
  ...widgetProps,
@@ -7561,12 +7552,12 @@ var SettingsWidget_default = Object.assign(SettingsWidget, {
7561
7552
  SaveButton
7562
7553
  });
7563
7554
  // src/core/components/SettingsWidget/SettingsTable/index.tsx
7564
- import { createContext as createContext8, useContext as useContext12 } from "react";
7555
+ import { createContext as createContext9, useContext as useContext13 } from "react";
7565
7556
  import { Table as Table2 } from "@mantine/core";
7566
7557
 
7567
7558
  // src/core/components/SettingsWidget/SettingsTable/Row/index.tsx
7568
7559
  import { Table, Text as Text3 } from "@mantine/core";
7569
- import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
7560
+ import { jsx as jsx37, jsxs as jsxs14 } from "react/jsx-runtime";
7570
7561
  function Row({
7571
7562
  children,
7572
7563
  label
@@ -7574,14 +7565,14 @@ function Row({
7574
7565
  const options = useSettingsTableOptions();
7575
7566
  return /* @__PURE__ */ jsxs14(Table.Tr, {
7576
7567
  children: [
7577
- /* @__PURE__ */ jsx36(Table.Th, {
7568
+ /* @__PURE__ */ jsx37(Table.Th, {
7578
7569
  w: options.leftColumnWidth,
7579
- children: /* @__PURE__ */ jsx36(Text3, {
7570
+ children: /* @__PURE__ */ jsx37(Text3, {
7580
7571
  size: "sm",
7581
7572
  children: label
7582
7573
  })
7583
7574
  }),
7584
- /* @__PURE__ */ jsx36(Table.Td, {
7575
+ /* @__PURE__ */ jsx37(Table.Td, {
7585
7576
  py: "xs",
7586
7577
  children
7587
7578
  })
@@ -7590,13 +7581,13 @@ function Row({
7590
7581
  }
7591
7582
 
7592
7583
  // src/core/components/SettingsWidget/SettingsTable/index.tsx
7593
- import { jsx as jsx37 } from "react/jsx-runtime";
7584
+ import { jsx as jsx38 } from "react/jsx-runtime";
7594
7585
  var defaultSettingsTableOptions = {
7595
7586
  leftColumnWidth: "38.2%"
7596
7587
  };
7597
- var settingsTableOptionsContext = createContext8(defaultSettingsTableOptions);
7588
+ var settingsTableOptionsContext = createContext9(defaultSettingsTableOptions);
7598
7589
  var useSettingsTableOptions = () => {
7599
- return useContext12(settingsTableOptionsContext);
7590
+ return useContext13(settingsTableOptionsContext);
7600
7591
  };
7601
7592
  function SettingsTable({
7602
7593
  leftColumnWidth,
@@ -7604,16 +7595,16 @@ function SettingsTable({
7604
7595
  }) {
7605
7596
  const children = asChildrenOfType(Row, childrenProp, "Check children passed to 'SettingsTable' component.");
7606
7597
  const theme = useRemoraidTheme();
7607
- return /* @__PURE__ */ jsx37(settingsTableOptionsContext.Provider, {
7598
+ return /* @__PURE__ */ jsx38(settingsTableOptionsContext.Provider, {
7608
7599
  value: {
7609
7600
  leftColumnWidth: leftColumnWidth ?? defaultSettingsTableOptions.leftColumnWidth
7610
7601
  },
7611
- children: /* @__PURE__ */ jsx37(Table2, {
7602
+ children: /* @__PURE__ */ jsx38(Table2, {
7612
7603
  bg: theme.transparentBackground,
7613
7604
  withTableBorder: true,
7614
7605
  variant: "vertical",
7615
7606
  layout: "fixed",
7616
- children: /* @__PURE__ */ jsx37(Table2.Tbody, {
7607
+ children: /* @__PURE__ */ jsx38(Table2.Tbody, {
7617
7608
  children
7618
7609
  })
7619
7610
  })
@@ -7625,14 +7616,14 @@ var SettingsTable_default = Object.assign(SettingsTable, {
7625
7616
  // src/core/components/NavbarSettingsWidget/index.tsx
7626
7617
  var import_lodash19 = __toESM(require_lodash(), 1);
7627
7618
  import { Select } from "@mantine/core";
7628
- import { jsx as jsx38, jsxs as jsxs15 } from "react/jsx-runtime";
7619
+ import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
7629
7620
  // src/core/components/FooterSettingsWidget/index.tsx
7630
7621
  var import_lodash20 = __toESM(require_lodash(), 1);
7631
7622
  import { Select as Select2 } from "@mantine/core";
7632
- import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
7623
+ import { jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
7633
7624
  // src/core/components/ContextClusterProvider/index.tsx
7634
- import React9 from "react";
7635
- import { jsx as jsx40 } from "react/jsx-runtime";
7625
+ import React10 from "react";
7626
+ import { jsx as jsx41 } from "react/jsx-runtime";
7636
7627
  // src/core/components/InputWrapperScrollArea/index.tsx
7637
7628
  import {
7638
7629
  Box as Box8,
@@ -7642,7 +7633,7 @@ import {
7642
7633
  } from "@mantine/core";
7643
7634
  import { useState as useState10 } from "react";
7644
7635
  import { useRemoraidTheme as useRemoraidTheme2 } from "remoraid/core";
7645
- import { jsx as jsx41 } from "react/jsx-runtime";
7636
+ import { jsx as jsx42 } from "react/jsx-runtime";
7646
7637
  function InputWrapperScrollArea({
7647
7638
  children,
7648
7639
  label,
@@ -7654,7 +7645,7 @@ function InputWrapperScrollArea({
7654
7645
  }) {
7655
7646
  const theme = useRemoraidTheme2();
7656
7647
  const [isHovering, setIsHovering] = useState10(false);
7657
- return /* @__PURE__ */ jsx41(Input.Wrapper, {
7648
+ return /* @__PURE__ */ jsx42(Input.Wrapper, {
7658
7649
  label,
7659
7650
  error,
7660
7651
  onMouseEnter: () => setIsHovering(true),
@@ -7662,7 +7653,7 @@ function InputWrapperScrollArea({
7662
7653
  description,
7663
7654
  withAsterisk: required,
7664
7655
  ...componentsProps?.container,
7665
- children: /* @__PURE__ */ jsx41(Paper4, {
7656
+ children: /* @__PURE__ */ jsx42(Paper4, {
7666
7657
  shadow: "none",
7667
7658
  p: 0,
7668
7659
  mt: Boolean(description) ? 4 : 0,
@@ -7673,12 +7664,12 @@ function InputWrapperScrollArea({
7673
7664
  transition: "border-color .1s",
7674
7665
  borderColor: error ? "var(--mantine-color-error)" : isHovering ? "var(--mantine-primary-color-filled)" : undefined
7675
7666
  },
7676
- children: /* @__PURE__ */ jsx41(ScrollArea5, {
7667
+ children: /* @__PURE__ */ jsx42(ScrollArea5, {
7677
7668
  mah,
7678
7669
  px: "md",
7679
7670
  flex: 1,
7680
7671
  ...componentsProps?.ScrollArea,
7681
- children: /* @__PURE__ */ jsx41(Box8, {
7672
+ children: /* @__PURE__ */ jsx42(Box8, {
7682
7673
  ...componentsProps?.childrenContainer,
7683
7674
  children
7684
7675
  })
@@ -7692,20 +7683,20 @@ import { JsonInput } from "@mantine/core";
7692
7683
  import { useState as useState12 } from "react";
7693
7684
 
7694
7685
  // src/jsonforms/components/FormOptionsProvider/index.tsx
7695
- import React10, {
7696
- useContext as useContext13,
7686
+ import React11, {
7687
+ useContext as useContext14,
7697
7688
  useState as useState11
7698
7689
  } from "react";
7699
- import { jsx as jsx42 } from "react/jsx-runtime";
7690
+ import { jsx as jsx43 } from "react/jsx-runtime";
7700
7691
  var defaultFormOptions = {
7701
7692
  withDescriptions: false,
7702
7693
  gutter: "md"
7703
7694
  };
7704
- var formOptionsContext = React10.createContext({
7695
+ var formOptionsContext = React11.createContext({
7705
7696
  formOptions: defaultFormOptions,
7706
7697
  updateFormOptions: () => {}
7707
7698
  });
7708
- var useFormOptions = () => useContext13(formOptionsContext);
7699
+ var useFormOptions = () => useContext14(formOptionsContext);
7709
7700
  function FormOptionsProvider({
7710
7701
  children,
7711
7702
  initialValue
@@ -7717,14 +7708,14 @@ function FormOptionsProvider({
7717
7708
  const updateFormOptions = (newFormOptions) => {
7718
7709
  setFormOptions((prev) => ({ ...prev, ...newFormOptions }));
7719
7710
  };
7720
- return /* @__PURE__ */ jsx42(formOptionsContext.Provider, {
7711
+ return /* @__PURE__ */ jsx43(formOptionsContext.Provider, {
7721
7712
  value: { formOptions, updateFormOptions },
7722
7713
  children
7723
7714
  });
7724
7715
  }
7725
7716
 
7726
7717
  // src/jsonforms/renderers/AnyControl.tsx
7727
- import { jsx as jsx43 } from "react/jsx-runtime";
7718
+ import { jsx as jsx44 } from "react/jsx-runtime";
7728
7719
  function PlainAnyControl({
7729
7720
  data,
7730
7721
  handleChange,
@@ -7741,13 +7732,13 @@ function PlainAnyControl({
7741
7732
  const [error, setError] = useState12(false);
7742
7733
  const label = labelProp !== "remoraid-array-item" ? labelProp : null;
7743
7734
  const description = withDescriptions ? schema.description : undefined;
7744
- return /* @__PURE__ */ jsx43(InputWrapperScrollArea, {
7735
+ return /* @__PURE__ */ jsx44(InputWrapperScrollArea, {
7745
7736
  label: label ?? undefined,
7746
7737
  error: error ? "Invalid JSON" : undefined,
7747
7738
  description,
7748
7739
  required,
7749
7740
  mah: 140,
7750
- children: /* @__PURE__ */ jsx43(JsonInput, {
7741
+ children: /* @__PURE__ */ jsx44(JsonInput, {
7751
7742
  onChange: (newValue) => {
7752
7743
  setInput(newValue);
7753
7744
  try {
@@ -7782,7 +7773,7 @@ import {
7782
7773
  } from "@jsonforms/core";
7783
7774
  import { Input as Input2, Paper as Paper5, Select as Select3 } from "@mantine/core";
7784
7775
  import { useMemo as useMemo5, useState as useState13 } from "react";
7785
- import { jsx as jsx44, jsxs as jsxs17, Fragment as Fragment3 } from "react/jsx-runtime";
7776
+ import { jsx as jsx45, jsxs as jsxs17, Fragment as Fragment3 } from "react/jsx-runtime";
7786
7777
  function PlainAnyOfControl({
7787
7778
  data,
7788
7779
  schema,
@@ -7866,8 +7857,8 @@ function PlainAnyOfControl({
7866
7857
  value: String(i),
7867
7858
  label: o.label
7868
7859
  }));
7869
- return /* @__PURE__ */ jsx44(Fragment3, {
7870
- children: /* @__PURE__ */ jsx44(Input2.Wrapper, {
7860
+ return /* @__PURE__ */ jsx45(Fragment3, {
7861
+ children: /* @__PURE__ */ jsx45(Input2.Wrapper, {
7871
7862
  label,
7872
7863
  description: formOptions.withDescriptions ? schema.description ?? null : null,
7873
7864
  withAsterisk: required,
@@ -7878,7 +7869,7 @@ function PlainAnyOfControl({
7878
7869
  p: formOptions.gutter,
7879
7870
  mt: formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0,
7880
7871
  children: [
7881
- /* @__PURE__ */ jsx44(Select3, {
7872
+ /* @__PURE__ */ jsx45(Select3, {
7882
7873
  label: "Value type",
7883
7874
  data: selectData,
7884
7875
  value: selectedOption,
@@ -7899,7 +7890,7 @@ function PlainAnyOfControl({
7899
7890
  variant: "default",
7900
7891
  mb: selectedOption !== null && inferType(selectedSchema) !== "null" ? formOptions.gutter : undefined
7901
7892
  }),
7902
- selectedOption !== null && /* @__PURE__ */ jsx44(JsonForms, {
7893
+ selectedOption !== null && /* @__PURE__ */ jsx45(JsonForms, {
7903
7894
  schema: {
7904
7895
  ...selectedSchema,
7905
7896
  $schema: undefined
@@ -7935,7 +7926,7 @@ import {
7935
7926
  RemoraidButton as RemoraidButton2,
7936
7927
  useRemoraidTheme as useRemoraidTheme3
7937
7928
  } from "remoraid/core";
7938
- import { jsx as jsx45, jsxs as jsxs18, Fragment as Fragment4 } from "react/jsx-runtime";
7929
+ import { jsx as jsx46, jsxs as jsxs18, Fragment as Fragment4 } from "react/jsx-runtime";
7939
7930
  function PlainArrayControl(props) {
7940
7931
  const theme = useRemoraidTheme3();
7941
7932
  const { label, schema, data, handleChange, path, required } = props;
@@ -7954,18 +7945,18 @@ function PlainArrayControl(props) {
7954
7945
  required: ["item"]
7955
7946
  };
7956
7947
  } else {
7957
- return /* @__PURE__ */ jsx45(AlertMinimal2, {
7948
+ return /* @__PURE__ */ jsx46(AlertMinimal2, {
7958
7949
  category: AlertCategory3.Negative,
7959
7950
  title: "Renderer missing",
7960
7951
  text: `Could not find applicable renderer for property '${label}'.`
7961
7952
  });
7962
7953
  }
7963
- return /* @__PURE__ */ jsx45(Fragment4, {
7964
- children: /* @__PURE__ */ jsx45(Input3.Wrapper, {
7954
+ return /* @__PURE__ */ jsx46(Fragment4, {
7955
+ children: /* @__PURE__ */ jsx46(Input3.Wrapper, {
7965
7956
  label,
7966
7957
  description: formOptions.withDescriptions ? schema.description : undefined,
7967
7958
  withAsterisk: required,
7968
- children: /* @__PURE__ */ jsx45(Paper6, {
7959
+ children: /* @__PURE__ */ jsx46(Paper6, {
7969
7960
  withBorder: Array.isArray(data) && data.length > 0,
7970
7961
  shadow: "0",
7971
7962
  bg: "var(--remoraid-transparent-background)",
@@ -7984,9 +7975,9 @@ function PlainArrayControl(props) {
7984
7975
  direction: "row",
7985
7976
  wrap: "nowrap",
7986
7977
  children: [
7987
- /* @__PURE__ */ jsx45(Box9, {
7978
+ /* @__PURE__ */ jsx46(Box9, {
7988
7979
  flex: 1,
7989
- children: /* @__PURE__ */ jsx45(JsonForms2, {
7980
+ children: /* @__PURE__ */ jsx46(JsonForms2, {
7990
7981
  schema: schemaItems,
7991
7982
  data: { item },
7992
7983
  renderers: renderers ?? [],
@@ -8002,7 +7993,7 @@ function PlainArrayControl(props) {
8002
7993
  validationMode: "NoValidation"
8003
7994
  })
8004
7995
  }),
8005
- /* @__PURE__ */ jsx45(RemoraidButton2, {
7996
+ /* @__PURE__ */ jsx46(RemoraidButton2, {
8006
7997
  responsive: false,
8007
7998
  collapsed: true,
8008
7999
  label: "Delete item",
@@ -8014,10 +8005,10 @@ function PlainArrayControl(props) {
8014
8005
  })
8015
8006
  ]
8016
8007
  }, i);
8017
- }) : /* @__PURE__ */ jsx45(Fragment4, {}),
8018
- /* @__PURE__ */ jsx45(Button2, {
8008
+ }) : /* @__PURE__ */ jsx46(Fragment4, {}),
8009
+ /* @__PURE__ */ jsx46(Button2, {
8019
8010
  variant: "default",
8020
- leftSection: /* @__PURE__ */ jsx45(IconPlus, {
8011
+ leftSection: /* @__PURE__ */ jsx46(IconPlus, {
8021
8012
  ...theme.componentsProps.icons.medium
8022
8013
  }),
8023
8014
  onClick: () => {
@@ -8047,7 +8038,7 @@ var ArrayControl_default = ArrayControl;
8047
8038
  // src/jsonforms/renderers/CheckboxControl.tsx
8048
8039
  import { withJsonFormsControlProps as withJsonFormsControlProps4 } from "@jsonforms/react";
8049
8040
  import { Checkbox } from "@mantine/core";
8050
- import { jsx as jsx46, Fragment as Fragment5 } from "react/jsx-runtime";
8041
+ import { jsx as jsx47, Fragment as Fragment5 } from "react/jsx-runtime";
8051
8042
  function PlainCheckboxControl({
8052
8043
  data,
8053
8044
  handleChange,
@@ -8057,8 +8048,8 @@ function PlainCheckboxControl({
8057
8048
  schema
8058
8049
  }) {
8059
8050
  const { formOptions } = useFormOptions();
8060
- return /* @__PURE__ */ jsx46(Fragment5, {
8061
- children: /* @__PURE__ */ jsx46(Checkbox, {
8051
+ return /* @__PURE__ */ jsx47(Fragment5, {
8052
+ children: /* @__PURE__ */ jsx47(Checkbox, {
8062
8053
  label,
8063
8054
  py: formOptions.gutter,
8064
8055
  labelPosition: "left",
@@ -8077,7 +8068,7 @@ var CheckboxControl_default = CheckboxControl;
8077
8068
  // src/jsonforms/renderers/NumberControl.tsx
8078
8069
  import { withJsonFormsControlProps as withJsonFormsControlProps5 } from "@jsonforms/react";
8079
8070
  import { NumberInput } from "@mantine/core";
8080
- import { jsx as jsx47, Fragment as Fragment6 } from "react/jsx-runtime";
8071
+ import { jsx as jsx48, Fragment as Fragment6 } from "react/jsx-runtime";
8081
8072
  function PlainNumberControl({
8082
8073
  data,
8083
8074
  handleChange,
@@ -8089,8 +8080,8 @@ function PlainNumberControl({
8089
8080
  const {
8090
8081
  formOptions: { withDescriptions }
8091
8082
  } = useFormOptions();
8092
- return /* @__PURE__ */ jsx47(Fragment6, {
8093
- children: /* @__PURE__ */ jsx47(NumberInput, {
8083
+ return /* @__PURE__ */ jsx48(Fragment6, {
8084
+ children: /* @__PURE__ */ jsx48(NumberInput, {
8094
8085
  label,
8095
8086
  variant: "default",
8096
8087
  value: data ?? "",
@@ -8128,7 +8119,7 @@ import {
8128
8119
  } from "@jsonforms/core";
8129
8120
  import { useState as useState14 } from "react";
8130
8121
  import { IconPlus as IconPlus2, IconTrash as IconTrash2 } from "@tabler/icons-react";
8131
- import { jsx as jsx48, jsxs as jsxs19, Fragment as Fragment7 } from "react/jsx-runtime";
8122
+ import { jsx as jsx49, jsxs as jsxs19, Fragment as Fragment7 } from "react/jsx-runtime";
8132
8123
  function PlainObjectControl({
8133
8124
  label: labelProp,
8134
8125
  schema,
@@ -8147,11 +8138,11 @@ function PlainObjectControl({
8147
8138
  const declaredKeys = new Set(Object.keys(schema.properties ?? {}));
8148
8139
  const objectData = data && typeof data === "object" && !Array.isArray(data) ? data : {};
8149
8140
  const additionalEntries = Object.entries(objectData).filter(([key]) => !declaredKeys.has(key));
8150
- return /* @__PURE__ */ jsx48(Input4.Wrapper, {
8141
+ return /* @__PURE__ */ jsx49(Input4.Wrapper, {
8151
8142
  label,
8152
8143
  description,
8153
8144
  withAsterisk: required,
8154
- children: /* @__PURE__ */ jsx48(Paper7, {
8145
+ children: /* @__PURE__ */ jsx49(Paper7, {
8155
8146
  withBorder: true,
8156
8147
  bg: "var(--remoraid-transparent-background)",
8157
8148
  shadow: "0",
@@ -8162,7 +8153,7 @@ function PlainObjectControl({
8162
8153
  justify: "flex-start",
8163
8154
  gap: formOptions.gutter,
8164
8155
  children: [
8165
- hasProperties && /* @__PURE__ */ jsx48(JsonForms3, {
8156
+ hasProperties && /* @__PURE__ */ jsx49(JsonForms3, {
8166
8157
  schema: {
8167
8158
  ...schema,
8168
8159
  $schema: undefined
@@ -8177,7 +8168,7 @@ function PlainObjectControl({
8177
8168
  }),
8178
8169
  hasAdditionalProperties && /* @__PURE__ */ jsxs19(Fragment7, {
8179
8170
  children: [
8180
- additionalEntries.length > 0 && /* @__PURE__ */ jsx48(Stack7, {
8171
+ additionalEntries.length > 0 && /* @__PURE__ */ jsx49(Stack7, {
8181
8172
  align: "stretch",
8182
8173
  justify: "flex-start",
8183
8174
  gap: formOptions.gutter,
@@ -8188,9 +8179,9 @@ function PlainObjectControl({
8188
8179
  direction: "row",
8189
8180
  wrap: "nowrap",
8190
8181
  children: [
8191
- /* @__PURE__ */ jsx48(Box10, {
8182
+ /* @__PURE__ */ jsx49(Box10, {
8192
8183
  flex: 1,
8193
- children: /* @__PURE__ */ jsx48(JsonForms3, {
8184
+ children: /* @__PURE__ */ jsx49(JsonForms3, {
8194
8185
  schema: {
8195
8186
  ...schema.additionalProperties === true ? {} : schema.additionalProperties,
8196
8187
  title: key,
@@ -8209,7 +8200,7 @@ function PlainObjectControl({
8209
8200
  }
8210
8201
  })
8211
8202
  }),
8212
- /* @__PURE__ */ jsx48(RemoraidButton, {
8203
+ /* @__PURE__ */ jsx49(RemoraidButton, {
8213
8204
  responsive: false,
8214
8205
  collapsed: true,
8215
8206
  label: `Delete ${key}`,
@@ -8232,7 +8223,7 @@ function PlainObjectControl({
8232
8223
  wrap: "nowrap",
8233
8224
  align: "flex-end",
8234
8225
  children: [
8235
- /* @__PURE__ */ jsx48(TextInput, {
8226
+ /* @__PURE__ */ jsx49(TextInput, {
8236
8227
  label: "New key",
8237
8228
  variant: "default",
8238
8229
  value: newKey,
@@ -8243,7 +8234,7 @@ function PlainObjectControl({
8243
8234
  description: formOptions.withDescriptions ? "Key for new additional property value" : null,
8244
8235
  flex: 1
8245
8236
  }),
8246
- /* @__PURE__ */ jsx48(RemoraidButton, {
8237
+ /* @__PURE__ */ jsx49(RemoraidButton, {
8247
8238
  responsive: false,
8248
8239
  collapsed: true,
8249
8240
  label: "Add key",
@@ -8283,7 +8274,7 @@ var ObjectControl_default = ObjectControl;
8283
8274
  // src/jsonforms/renderers/StringSelectControl.tsx
8284
8275
  import { withJsonFormsControlProps as withJsonFormsControlProps7 } from "@jsonforms/react";
8285
8276
  import { Select as Select4 } from "@mantine/core";
8286
- import { jsx as jsx49, Fragment as Fragment8 } from "react/jsx-runtime";
8277
+ import { jsx as jsx50, Fragment as Fragment8 } from "react/jsx-runtime";
8287
8278
  function PlainTimestampControl({
8288
8279
  data,
8289
8280
  handleChange,
@@ -8295,8 +8286,8 @@ function PlainTimestampControl({
8295
8286
  const {
8296
8287
  formOptions: { withDescriptions }
8297
8288
  } = useFormOptions();
8298
- return /* @__PURE__ */ jsx49(Fragment8, {
8299
- children: /* @__PURE__ */ jsx49(Select4, {
8289
+ return /* @__PURE__ */ jsx50(Fragment8, {
8290
+ children: /* @__PURE__ */ jsx50(Select4, {
8300
8291
  label,
8301
8292
  data: schema.enum,
8302
8293
  value: data,
@@ -8432,7 +8423,7 @@ var verticalLayoutTester_default = tester9;
8432
8423
  // src/jsonforms/renderers/TextControl.tsx
8433
8424
  import { withJsonFormsControlProps as withJsonFormsControlProps8 } from "@jsonforms/react";
8434
8425
  import { TextInput as TextInput2 } from "@mantine/core";
8435
- import { jsx as jsx50, Fragment as Fragment9 } from "react/jsx-runtime";
8426
+ import { jsx as jsx51, Fragment as Fragment9 } from "react/jsx-runtime";
8436
8427
  function PlainTextControl({
8437
8428
  data,
8438
8429
  handleChange,
@@ -8444,8 +8435,8 @@ function PlainTextControl({
8444
8435
  const {
8445
8436
  formOptions: { withDescriptions }
8446
8437
  } = useFormOptions();
8447
- return /* @__PURE__ */ jsx50(Fragment9, {
8448
- children: /* @__PURE__ */ jsx50(TextInput2, {
8438
+ return /* @__PURE__ */ jsx51(Fragment9, {
8439
+ children: /* @__PURE__ */ jsx51(TextInput2, {
8449
8440
  label,
8450
8441
  variant: "default",
8451
8442
  placeholder: "",
@@ -8464,7 +8455,7 @@ var TextControl_default = TextControl;
8464
8455
  // src/jsonforms/renderers/TimestampControl.tsx
8465
8456
  import { withJsonFormsControlProps as withJsonFormsControlProps9 } from "@jsonforms/react";
8466
8457
  import { DatePickerInput } from "@mantine/dates";
8467
- import { jsx as jsx51, Fragment as Fragment10 } from "react/jsx-runtime";
8458
+ import { jsx as jsx52, Fragment as Fragment10 } from "react/jsx-runtime";
8468
8459
  function PlainTimestampControl2({
8469
8460
  data,
8470
8461
  handleChange,
@@ -8476,8 +8467,8 @@ function PlainTimestampControl2({
8476
8467
  const {
8477
8468
  formOptions: { withDescriptions }
8478
8469
  } = useFormOptions();
8479
- return /* @__PURE__ */ jsx51(Fragment10, {
8480
- children: /* @__PURE__ */ jsx51(DatePickerInput, {
8470
+ return /* @__PURE__ */ jsx52(Fragment10, {
8471
+ children: /* @__PURE__ */ jsx52(DatePickerInput, {
8481
8472
  variant: "default",
8482
8473
  label,
8483
8474
  placeholder: "Pick a date",
@@ -8496,17 +8487,17 @@ var TimestampControl2 = withJsonFormsControlProps9(PlainTimestampControl2);
8496
8487
  var TimestampControl_default = TimestampControl2;
8497
8488
 
8498
8489
  // src/jsonforms/renderers/VerticalLayout.tsx
8499
- import React11 from "react";
8490
+ import React12 from "react";
8500
8491
  import { withJsonFormsLayoutProps } from "@jsonforms/react";
8501
8492
  import { JsonFormsDispatch, useJsonForms as useJsonForms4 } from "@jsonforms/react";
8502
- import { jsx as jsx52 } from "react/jsx-runtime";
8493
+ import { jsx as jsx53 } from "react/jsx-runtime";
8503
8494
  "use client";
8504
8495
  var JsonFormsLayout = ({
8505
8496
  className,
8506
8497
  children,
8507
8498
  visible
8508
8499
  }) => {
8509
- return /* @__PURE__ */ jsx52("div", {
8500
+ return /* @__PURE__ */ jsx53("div", {
8510
8501
  className,
8511
8502
  hidden: visible === undefined || visible === null ? false : !visible,
8512
8503
  children
@@ -8517,10 +8508,10 @@ var renderChildren = (layout, schema, className, path, enabled) => {
8517
8508
  const { formOptions } = useFormOptions();
8518
8509
  const gutter = typeof formOptions.gutter === "string" ? `var(--mantine-spacing-${formOptions.gutter})` : `${formOptions.gutter}px`;
8519
8510
  return layout.elements.map((child, index) => {
8520
- return /* @__PURE__ */ jsx52("div", {
8511
+ return /* @__PURE__ */ jsx53("div", {
8521
8512
  className,
8522
8513
  style: { marginTop: index === 0 ? 0 : gutter },
8523
- children: /* @__PURE__ */ jsx52(JsonFormsDispatch, {
8514
+ children: /* @__PURE__ */ jsx53(JsonFormsDispatch, {
8524
8515
  renderers,
8525
8516
  cells,
8526
8517
  uischema: child,
@@ -8533,11 +8524,11 @@ var renderChildren = (layout, schema, className, path, enabled) => {
8533
8524
  };
8534
8525
  var VerticalLayoutRenderer = (props) => {
8535
8526
  const { data: _data, ...otherProps } = props;
8536
- return /* @__PURE__ */ jsx52(VerticalLayoutRendererComponent, {
8527
+ return /* @__PURE__ */ jsx53(VerticalLayoutRendererComponent, {
8537
8528
  ...otherProps
8538
8529
  });
8539
8530
  };
8540
- var VerticalLayoutRendererComponent = React11.memo(function VerticalLayoutRendererComponent2({
8531
+ var VerticalLayoutRendererComponent = React12.memo(function VerticalLayoutRendererComponent2({
8541
8532
  schema,
8542
8533
  uischema,
8543
8534
  path,
@@ -8547,7 +8538,7 @@ var VerticalLayoutRendererComponent = React11.memo(function VerticalLayoutRender
8547
8538
  const verticalLayout = uischema;
8548
8539
  const layoutClassName = "";
8549
8540
  const childClassNames = "";
8550
- return /* @__PURE__ */ jsx52(JsonFormsLayout, {
8541
+ return /* @__PURE__ */ jsx53(JsonFormsLayout, {
8551
8542
  className: layoutClassName,
8552
8543
  uischema,
8553
8544
  schema,