remoraid 2.43.2 → 2.45.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.
@@ -5543,13 +5543,6 @@ var getDefaultButtonIconSize = (buttonSize) => {
5543
5543
  }
5544
5544
  return "large" /* Large */;
5545
5545
  };
5546
- var isIcon = (value) => {
5547
- if (typeof value !== "object" || value === null) {
5548
- return false;
5549
- }
5550
- const candidate = value;
5551
- return "render" in candidate && typeof candidate.render === "function";
5552
- };
5553
5546
 
5554
5547
  // src/core/components/RemoraidProvider/ThemeProvider/index.tsx
5555
5548
  var import_core2 = require("@mantine/core");
@@ -5671,7 +5664,12 @@ function UserExperienceProviderWrapper({
5671
5664
  initialValue
5672
5665
  }) {
5673
5666
  const [cookies, setCookie] = import_react_cookie.useCookies();
5674
- const initialUserExperience = import_lodash3.merge(defaultUserExperience, initialValue);
5667
+ const initialUserExperience = import_lodash3.mergeWith({}, defaultUserExperience, initialValue, (_objValue, srcValue) => {
5668
+ if (Array.isArray(srcValue)) {
5669
+ return [...srcValue];
5670
+ }
5671
+ return;
5672
+ });
5675
5673
  const [userExperience, setUserExperience] = import_react5.useState(initialUserExperience);
5676
5674
  const [processedCookie, setProcessedCookie] = import_react5.useState(false);
5677
5675
  const updateUserExperience = (p) => {
@@ -5719,16 +5717,28 @@ var useLayouts = () => {
5719
5717
  return import_react7.useContext(layoutsContext);
5720
5718
  };
5721
5719
 
5722
- // src/core/components/RemoraidProvider/index.tsx
5720
+ // src/core/components/RemoraidProvider/RouterProvider/index.tsx
5721
+ var import_react8 = require("react");
5723
5722
  var jsx_runtime7 = require("react/jsx-runtime");
5723
+ var defaultRouter = {
5724
+ pathname: "/",
5725
+ push: () => {}
5726
+ };
5727
+ var routerContext = import_react8.createContext(defaultRouter);
5728
+ var useRemoraidRouter = () => {
5729
+ return import_react8.useContext(routerContext);
5730
+ };
5731
+
5732
+ // src/core/components/RemoraidProvider/index.tsx
5733
+ var jsx_runtime8 = require("react/jsx-runtime");
5724
5734
  // src/core/components/AppShell/index.tsx
5725
5735
  var import_core13 = require("@mantine/core");
5726
5736
  var import_react18 = require("react");
5727
5737
 
5728
5738
  // src/core/components/AppShell/AppProvider/index.tsx
5729
- var import_react8 = require("react");
5739
+ var import_react9 = require("react");
5730
5740
  var import_lodash4 = __toESM(require_lodash());
5731
- var jsx_runtime8 = require("react/jsx-runtime");
5741
+ var jsx_runtime9 = require("react/jsx-runtime");
5732
5742
  var defaultAppContext = {
5733
5743
  name: "Hello, World!",
5734
5744
  nav: [],
@@ -5736,16 +5746,16 @@ var defaultAppContext = {
5736
5746
  footerVariant: "minimal" /* Minimal */,
5737
5747
  navbarMobileVariant: null
5738
5748
  };
5739
- var appContext = import_react8.createContext(defaultAppContext);
5749
+ var appContext = import_react9.createContext(defaultAppContext);
5740
5750
  var useRemoraidApp = () => {
5741
- return import_react8.useContext(appContext);
5751
+ return import_react9.useContext(appContext);
5742
5752
  };
5743
5753
  function AppProvider({
5744
5754
  appContext: appContextProp,
5745
5755
  children
5746
5756
  }) {
5747
5757
  const { logo, ...appContextPropWithoutLogo } = appContextProp;
5748
- return /* @__PURE__ */ jsx_runtime8.jsx(appContext.Provider, {
5758
+ return /* @__PURE__ */ jsx_runtime9.jsx(appContext.Provider, {
5749
5759
  value: { ...import_lodash4.merge(defaultAppContext, appContextPropWithoutLogo), logo },
5750
5760
  children
5751
5761
  });
@@ -5789,7 +5799,7 @@ function clsx() {
5789
5799
  var clsx_default = clsx;
5790
5800
 
5791
5801
  // src/core/components/Page/PageContainer/index.tsx
5792
- var jsx_runtime9 = require("react/jsx-runtime");
5802
+ var jsx_runtime10 = require("react/jsx-runtime");
5793
5803
  function PageContainer({
5794
5804
  children,
5795
5805
  p = 0,
@@ -5797,7 +5807,7 @@ function PageContainer({
5797
5807
  componentsProps
5798
5808
  }) {
5799
5809
  const theme = useRemoraidTheme();
5800
- return /* @__PURE__ */ jsx_runtime9.jsx(import_core3.Container, {
5810
+ return /* @__PURE__ */ jsx_runtime10.jsx(import_core3.Container, {
5801
5811
  size: theme.containerSize,
5802
5812
  p,
5803
5813
  w: "100%",
@@ -5810,10 +5820,10 @@ function PageContainer({
5810
5820
 
5811
5821
  // src/core/components/FrameLayout/index.tsx
5812
5822
  var import_core5 = require("@mantine/core");
5813
- var import_react10 = require("react");
5823
+ var import_react11 = require("react");
5814
5824
 
5815
5825
  // src/core/components/FrameLayout/Element/index.tsx
5816
- var import_react9 = require("react");
5826
+ var import_react10 = require("react");
5817
5827
  var import_core4 = require("@mantine/core");
5818
5828
 
5819
5829
  // src/core/lib/errors.ts
@@ -5826,10 +5836,10 @@ class InvalidComponentUsageError extends Error {
5826
5836
 
5827
5837
  // src/core/components/FrameLayout/Element/index.tsx
5828
5838
  var import_lodash5 = __toESM(require_lodash());
5829
- var jsx_runtime10 = require("react/jsx-runtime");
5830
- var layoutElementContext = import_react9.createContext(null);
5839
+ var jsx_runtime11 = require("react/jsx-runtime");
5840
+ var layoutElementContext = import_react10.createContext(null);
5831
5841
  var useFrameLayoutElement = () => {
5832
- return import_react9.useContext(layoutElementContext);
5842
+ return import_react10.useContext(layoutElementContext);
5833
5843
  };
5834
5844
  function Element2({
5835
5845
  section,
@@ -5859,17 +5869,17 @@ function Element2({
5859
5869
  if (section === "left" /* Left */ || section === "right" /* Right */) {
5860
5870
  containerProps.h = "100%";
5861
5871
  }
5862
- const element = includePageContainer ? /* @__PURE__ */ jsx_runtime10.jsx(PageContainer, {
5872
+ const element = includePageContainer ? /* @__PURE__ */ jsx_runtime11.jsx(PageContainer, {
5863
5873
  p: 0,
5864
5874
  hidden,
5865
5875
  ...componentsProps?.PageContainer,
5866
5876
  children
5867
5877
  }) : children;
5868
- return /* @__PURE__ */ jsx_runtime10.jsx(import_core4.Portal, {
5878
+ return /* @__PURE__ */ jsx_runtime11.jsx(import_core4.Portal, {
5869
5879
  target: layout.sections[section],
5870
- children: /* @__PURE__ */ jsx_runtime10.jsx(layoutElementContext.Provider, {
5880
+ children: /* @__PURE__ */ jsx_runtime11.jsx(layoutElementContext.Provider, {
5871
5881
  value: { layoutType: "frame" /* Frame */, section },
5872
- children: includeContainer ? /* @__PURE__ */ jsx_runtime10.jsx(import_core4.Box, {
5882
+ children: includeContainer ? /* @__PURE__ */ jsx_runtime11.jsx(import_core4.Box, {
5873
5883
  "data-hidden": hidden,
5874
5884
  ...import_lodash5.merge(containerProps, componentsProps?.container),
5875
5885
  className: clsx_default("remoraid-frame-layout-element", containerProps?.className, componentsProps?.container?.className),
@@ -5880,10 +5890,10 @@ function Element2({
5880
5890
  }
5881
5891
 
5882
5892
  // src/core/components/FrameLayout/index.tsx
5883
- var jsx_runtime11 = require("react/jsx-runtime");
5884
- var layoutContext = import_react10.createContext(null);
5893
+ var jsx_runtime12 = require("react/jsx-runtime");
5894
+ var layoutContext = import_react11.createContext(null);
5885
5895
  var useFrameLayout = () => {
5886
- return import_react10.useContext(layoutContext);
5896
+ return import_react11.useContext(layoutContext);
5887
5897
  };
5888
5898
  function FrameLayout({
5889
5899
  layoutId,
@@ -5894,14 +5904,14 @@ function FrameLayout({
5894
5904
  }) {
5895
5905
  const { layouts, setLayouts } = useLayouts();
5896
5906
  const layout = layouts[layoutId];
5897
- const defaultSections = import_react10.useMemo(() => ({
5907
+ const defaultSections = import_react11.useMemo(() => ({
5898
5908
  ["bottom" /* Bottom */]: null,
5899
5909
  ["right" /* Right */]: null,
5900
5910
  ["top" /* Top */]: null,
5901
5911
  ["left" /* Left */]: null,
5902
5912
  ["content" /* Content */]: null
5903
5913
  }), []);
5904
- const setSections = import_react10.useCallback((value) => {
5914
+ const setSections = import_react11.useCallback((value) => {
5905
5915
  setLayouts((prev) => ({
5906
5916
  ...prev,
5907
5917
  [layoutId]: {
@@ -5910,37 +5920,37 @@ function FrameLayout({
5910
5920
  }
5911
5921
  }));
5912
5922
  }, [layoutId, setLayouts, defaultSections]);
5913
- const topSectionRef = import_react10.useCallback((n) => {
5923
+ const topSectionRef = import_react11.useCallback((n) => {
5914
5924
  setSections((prev) => ({
5915
5925
  ...prev,
5916
5926
  ["top" /* Top */]: n
5917
5927
  }));
5918
5928
  }, [setSections]);
5919
- const bottomSectionRef = import_react10.useCallback((n) => {
5929
+ const bottomSectionRef = import_react11.useCallback((n) => {
5920
5930
  setSections((prev) => ({
5921
5931
  ...prev,
5922
5932
  ["bottom" /* Bottom */]: n
5923
5933
  }));
5924
5934
  }, [setSections]);
5925
- const leftSectionRef = import_react10.useCallback((n) => {
5935
+ const leftSectionRef = import_react11.useCallback((n) => {
5926
5936
  setSections((prev) => ({
5927
5937
  ...prev,
5928
5938
  ["left" /* Left */]: n
5929
5939
  }));
5930
5940
  }, [setSections]);
5931
- const rightSectionRef = import_react10.useCallback((n) => {
5941
+ const rightSectionRef = import_react11.useCallback((n) => {
5932
5942
  setSections((prev) => ({
5933
5943
  ...prev,
5934
5944
  ["right" /* Right */]: n
5935
5945
  }));
5936
5946
  }, [setSections]);
5937
- const contentSectionRef = import_react10.useCallback((n) => {
5947
+ const contentSectionRef = import_react11.useCallback((n) => {
5938
5948
  setSections((prev) => ({
5939
5949
  ...prev,
5940
5950
  ["content" /* Content */]: n
5941
5951
  }));
5942
5952
  }, [setSections]);
5943
- const contentSection = /* @__PURE__ */ jsx_runtime11.jsx(import_core5.Stack, {
5953
+ const contentSection = /* @__PURE__ */ jsx_runtime12.jsx(import_core5.Stack, {
5944
5954
  ref: contentSectionRef,
5945
5955
  h: "100%",
5946
5956
  gap: gutter,
@@ -5949,15 +5959,15 @@ function FrameLayout({
5949
5959
  className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-content-section", componentsProps?.sectionContainers?.["content" /* Content */]?.className),
5950
5960
  children
5951
5961
  });
5952
- const layoutContextValue = import_react10.useMemo(() => ({
5962
+ const layoutContextValue = import_react11.useMemo(() => ({
5953
5963
  type: "frame" /* Frame */,
5954
5964
  sections: defaultSections,
5955
5965
  ...layout,
5956
5966
  layoutId
5957
5967
  }), [layout?.sections, defaultSections, layoutId]);
5958
- return /* @__PURE__ */ jsx_runtime11.jsx(layoutContext.Provider, {
5968
+ return /* @__PURE__ */ jsx_runtime12.jsx(layoutContext.Provider, {
5959
5969
  value: layoutContextValue,
5960
- children: /* @__PURE__ */ jsx_runtime11.jsxs(import_core5.Group, {
5970
+ children: /* @__PURE__ */ jsx_runtime12.jsxs(import_core5.Group, {
5961
5971
  gap: 0,
5962
5972
  h: "100%",
5963
5973
  w: "100%",
@@ -5968,7 +5978,7 @@ function FrameLayout({
5968
5978
  },
5969
5979
  className: clsx_default("remoraid-frame-layout", componentsProps?.horizontalContainer?.className),
5970
5980
  children: [
5971
- /* @__PURE__ */ jsx_runtime11.jsx(import_core5.Group, {
5981
+ /* @__PURE__ */ jsx_runtime12.jsx(import_core5.Group, {
5972
5982
  ref: leftSectionRef,
5973
5983
  h: "100%",
5974
5984
  wrap: "nowrap",
@@ -5977,26 +5987,26 @@ function FrameLayout({
5977
5987
  ...componentsProps?.sectionContainers?.["left" /* Left */],
5978
5988
  className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-left-section", componentsProps?.sectionContainers?.["left" /* Left */]?.className)
5979
5989
  }),
5980
- /* @__PURE__ */ jsx_runtime11.jsxs(import_core5.Stack, {
5990
+ /* @__PURE__ */ jsx_runtime12.jsxs(import_core5.Stack, {
5981
5991
  h: "100%",
5982
5992
  flex: 1,
5983
5993
  gap: 0,
5984
5994
  ...componentsProps?.verticalContainer,
5985
5995
  className: clsx_default("remoraid-frame-layout-vertical-container", componentsProps?.verticalContainer?.className),
5986
5996
  children: [
5987
- /* @__PURE__ */ jsx_runtime11.jsx(import_core5.Stack, {
5997
+ /* @__PURE__ */ jsx_runtime12.jsx(import_core5.Stack, {
5988
5998
  ref: topSectionRef,
5989
5999
  gap: gutter,
5990
6000
  flex: 0,
5991
6001
  ...componentsProps?.sectionContainers?.["top" /* Top */],
5992
6002
  className: clsx_default("remoraid-frame-layout-section", "remoraid-frame-layout-top-section", componentsProps?.sectionContainers?.["top" /* Top */]?.className)
5993
6003
  }),
5994
- includeScrollArea ? /* @__PURE__ */ jsx_runtime11.jsx(import_core5.ScrollArea, {
6004
+ includeScrollArea ? /* @__PURE__ */ jsx_runtime12.jsx(import_core5.ScrollArea, {
5995
6005
  flex: 1,
5996
6006
  ...componentsProps?.ScrollArea,
5997
6007
  children: contentSection
5998
6008
  }) : contentSection,
5999
- /* @__PURE__ */ jsx_runtime11.jsx(import_core5.Stack, {
6009
+ /* @__PURE__ */ jsx_runtime12.jsx(import_core5.Stack, {
6000
6010
  ref: bottomSectionRef,
6001
6011
  gap: gutter,
6002
6012
  flex: 0,
@@ -6005,7 +6015,7 @@ function FrameLayout({
6005
6015
  })
6006
6016
  ]
6007
6017
  }),
6008
- /* @__PURE__ */ jsx_runtime11.jsx(import_core5.Group, {
6018
+ /* @__PURE__ */ jsx_runtime12.jsx(import_core5.Group, {
6009
6019
  ref: rightSectionRef,
6010
6020
  h: "100%",
6011
6021
  gap: gutter,
@@ -6023,7 +6033,7 @@ var FrameLayout_default = Object.assign(FrameLayout, {
6023
6033
  });
6024
6034
 
6025
6035
  // src/core/components/AppShell/Footer/FooterMinimal/index.tsx
6026
- var jsx_runtime12 = require("react/jsx-runtime");
6036
+ var jsx_runtime13 = require("react/jsx-runtime");
6027
6037
  function FooterMinimal({
6028
6038
  icon: Icon2 = import_icons_react2.IconPennant,
6029
6039
  componentsProps
@@ -6034,10 +6044,10 @@ function FooterMinimal({
6034
6044
  footer: { position }
6035
6045
  }
6036
6046
  } = useAppShellUserExperience();
6037
- const content = /* @__PURE__ */ jsx_runtime12.jsx(PageContainer, {
6047
+ const content = /* @__PURE__ */ jsx_runtime13.jsx(PageContainer, {
6038
6048
  ...componentsProps?.container,
6039
- children: /* @__PURE__ */ jsx_runtime12.jsx(import_core6.Center, {
6040
- children: /* @__PURE__ */ jsx_runtime12.jsx(Icon2, {
6049
+ children: /* @__PURE__ */ jsx_runtime13.jsx(import_core6.Center, {
6050
+ children: /* @__PURE__ */ jsx_runtime13.jsx(Icon2, {
6041
6051
  color: "var(--mantine-color-default-border)",
6042
6052
  ...theme.componentsProps.icons.huge,
6043
6053
  ...componentsProps?.icon
@@ -6045,7 +6055,7 @@ function FooterMinimal({
6045
6055
  })
6046
6056
  });
6047
6057
  if (position === "bottom" /* Bottom */) {
6048
- return /* @__PURE__ */ jsx_runtime12.jsx(FrameLayout_default.Element, {
6058
+ return /* @__PURE__ */ jsx_runtime13.jsx(FrameLayout_default.Element, {
6049
6059
  section: position,
6050
6060
  includeContainer: true,
6051
6061
  ...componentsProps?.layoutElement,
@@ -6060,7 +6070,7 @@ function FooterMinimal({
6060
6070
  }
6061
6071
 
6062
6072
  // src/core/components/AppShell/Footer/index.tsx
6063
- var jsx_runtime13 = require("react/jsx-runtime");
6073
+ var jsx_runtime14 = require("react/jsx-runtime");
6064
6074
  var supportedFooterPositions = {
6065
6075
  ["minimal" /* Minimal */]: [
6066
6076
  null,
@@ -6074,7 +6084,7 @@ var defaultFooterPositions = {
6074
6084
  function Footer({ componentsProps }) {
6075
6085
  const { footerVariant } = useRemoraidApp();
6076
6086
  if (footerVariant === "minimal" /* Minimal */) {
6077
- return /* @__PURE__ */ jsx_runtime13.jsx(FooterMinimal, {
6087
+ return /* @__PURE__ */ jsx_runtime14.jsx(FooterMinimal, {
6078
6088
  ...componentsProps?.FooterMinimal
6079
6089
  });
6080
6090
  }
@@ -6088,16 +6098,13 @@ var Footer_default = Object.assign(Footer, {
6088
6098
  var import_react16 = require("react");
6089
6099
 
6090
6100
  // src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/index.tsx
6091
- var import_react13 = require("react");
6092
6101
  var import_core9 = require("@mantine/core");
6093
- var import_navigation2 = require("next/navigation");
6094
6102
  var import_lodash8 = __toESM(require_lodash());
6095
6103
 
6096
6104
  // src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/NavigationMenu/index.tsx
6097
6105
  var import_core7 = require("@mantine/core");
6098
- var import_navigation = require("next/navigation");
6099
- var import_react11 = require("react");
6100
- var jsx_runtime14 = require("react/jsx-runtime");
6106
+ var import_react12 = require("react");
6107
+ var jsx_runtime15 = require("react/jsx-runtime");
6101
6108
  function NavigationMenu({
6102
6109
  target,
6103
6110
  elements,
@@ -6106,13 +6113,13 @@ function NavigationMenu({
6106
6113
  }) {
6107
6114
  const theme = useRemoraidTheme();
6108
6115
  const mantineTheme = import_core7.useMantineTheme();
6109
- const pathname = import_navigation.usePathname();
6110
- const router = import_navigation.useRouter();
6111
- const item = (element) => /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Transition, {
6116
+ const router = useRemoraidRouter();
6117
+ const { pathname } = router;
6118
+ const item = (element) => /* @__PURE__ */ jsx_runtime15.jsx(import_core7.Transition, {
6112
6119
  mounted: element.mounted ?? true,
6113
6120
  ...componentsProps?.transition,
6114
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Menu.Item, {
6115
- leftSection: element.icon ? /* @__PURE__ */ jsx_runtime14.jsx(element.icon, {
6121
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime15.jsx(import_core7.Menu.Item, {
6122
+ leftSection: element.icon ? /* @__PURE__ */ jsx_runtime15.jsx(element.icon, {
6116
6123
  ...theme.componentsProps.icons.small
6117
6124
  }) : undefined,
6118
6125
  c: element.type === "anchor" /* Anchor */ && element.href === pathname ? mantineTheme.primaryColor : undefined,
@@ -6128,25 +6135,25 @@ function NavigationMenu({
6128
6135
  children: element.label
6129
6136
  })
6130
6137
  });
6131
- const targetElement = import_react11.isValidElement(target) ? target : item(target);
6138
+ const targetElement = import_react12.isValidElement(target) ? target : item(target);
6132
6139
  if (elements === undefined || elements.length === 0) {
6133
6140
  return targetElement;
6134
6141
  }
6135
- return /* @__PURE__ */ jsx_runtime14.jsxs(import_core7.Menu, {
6142
+ return /* @__PURE__ */ jsx_runtime15.jsxs(import_core7.Menu, {
6136
6143
  trigger: "click-hover",
6137
6144
  ...componentsProps?.Menu,
6138
6145
  children: [
6139
- /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Menu.Target, {
6140
- children: /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Box, {
6146
+ /* @__PURE__ */ jsx_runtime15.jsx(import_core7.Menu.Target, {
6147
+ children: /* @__PURE__ */ jsx_runtime15.jsx(import_core7.Box, {
6141
6148
  children: targetElement
6142
6149
  })
6143
6150
  }),
6144
- /* @__PURE__ */ jsx_runtime14.jsxs(import_core7.Menu.Dropdown, {
6151
+ /* @__PURE__ */ jsx_runtime15.jsxs(import_core7.Menu.Dropdown, {
6145
6152
  children: [
6146
- label !== undefined && /* @__PURE__ */ jsx_runtime14.jsx(import_core7.Menu.Label, {
6153
+ label !== undefined && /* @__PURE__ */ jsx_runtime15.jsx(import_core7.Menu.Label, {
6147
6154
  children: label
6148
6155
  }),
6149
- elements.map((element, i) => /* @__PURE__ */ jsx_runtime14.jsx(NavigationMenu, {
6156
+ elements.map((element, i) => /* @__PURE__ */ jsx_runtime15.jsx(NavigationMenu, {
6150
6157
  target: item(element),
6151
6158
  elements: element.children,
6152
6159
  componentsProps
@@ -6163,9 +6170,9 @@ var import_icons_react4 = require("@tabler/icons-react");
6163
6170
  // src/core/components/RemoraidButton/index.tsx
6164
6171
  var import_core8 = require("@mantine/core");
6165
6172
  var import_icons_react3 = require("@tabler/icons-react");
6166
- var import_react12 = require("react");
6173
+ var import_react13 = require("react");
6167
6174
  var import_lodash7 = __toESM(require_lodash());
6168
- var jsx_runtime15 = require("react/jsx-runtime");
6175
+ var jsx_runtime16 = require("react/jsx-runtime");
6169
6176
  var defaultRemoraidButtonSize = "sm";
6170
6177
  function RemoraidButton({
6171
6178
  label,
@@ -6189,7 +6196,7 @@ function RemoraidButton({
6189
6196
  const collapsed = collapsedProp ?? false;
6190
6197
  const iconSize = iconSizeProp ?? getDefaultButtonIconSize(size);
6191
6198
  const Icon3 = iconProp ?? import_icons_react3.IconClick;
6192
- const iconElement = import_react12.isValidElement(Icon3) ? Icon3 : /* @__PURE__ */ jsx_runtime15.jsx(Icon3, {
6199
+ const iconElement = import_react13.isValidElement(Icon3) ? Icon3 : /* @__PURE__ */ jsx_runtime16.jsx(Icon3, {
6193
6200
  ...import_lodash7.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
6194
6201
  });
6195
6202
  const clickTransformationClassNames = {
@@ -6202,18 +6209,18 @@ function RemoraidButton({
6202
6209
  ["tiltRight" /* TiltRight */]: "remoraid-button-tilt-right"
6203
6210
  };
6204
6211
  const clickTransformationClass = clickTransformationClassNames[clickTransformation];
6205
- return /* @__PURE__ */ jsx_runtime15.jsx(import_core8.Transition, {
6212
+ return /* @__PURE__ */ jsx_runtime16.jsx(import_core8.Transition, {
6206
6213
  mounted,
6207
6214
  transition: "fade",
6208
6215
  duration: theme.transitionDurations.short,
6209
6216
  timingFunction: "ease",
6210
6217
  ...componentsProps?.transition,
6211
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime15.jsxs(jsx_runtime15.Fragment, {
6218
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime16.jsxs(jsx_runtime16.Fragment, {
6212
6219
  children: [
6213
- /* @__PURE__ */ jsx_runtime15.jsx(import_core8.Tooltip, {
6220
+ /* @__PURE__ */ jsx_runtime16.jsx(import_core8.Tooltip, {
6214
6221
  label,
6215
6222
  ...componentsProps?.tooltip,
6216
- children: /* @__PURE__ */ jsx_runtime15.jsx(import_core8.ActionIcon, {
6223
+ children: /* @__PURE__ */ jsx_runtime16.jsx(import_core8.ActionIcon, {
6217
6224
  "aria-label": label,
6218
6225
  variant,
6219
6226
  onClick,
@@ -6229,7 +6236,7 @@ function RemoraidButton({
6229
6236
  children: iconElement
6230
6237
  })
6231
6238
  }),
6232
- /* @__PURE__ */ jsx_runtime15.jsx(import_core8.Button, {
6239
+ /* @__PURE__ */ jsx_runtime16.jsx(import_core8.Button, {
6233
6240
  onClick,
6234
6241
  loading,
6235
6242
  variant,
@@ -6250,8 +6257,7 @@ function RemoraidButton({
6250
6257
  }
6251
6258
 
6252
6259
  // src/core/components/AppShell/Navbar/NavbarMinimal/NavbarMinimalContent/index.tsx
6253
- var import_image = __toESM(require("next/image"));
6254
- var jsx_runtime16 = require("react/jsx-runtime");
6260
+ var jsx_runtime17 = require("react/jsx-runtime");
6255
6261
  function NavbarMinimalContent({
6256
6262
  orientation,
6257
6263
  maxElements,
@@ -6261,8 +6267,8 @@ function NavbarMinimalContent({
6261
6267
  const theme = useRemoraidTheme();
6262
6268
  const { userExperience: appShellUserExperience } = useAppShellUserExperience();
6263
6269
  const app = useRemoraidApp();
6264
- const router = import_navigation2.useRouter();
6265
- const pathname = import_navigation2.usePathname();
6270
+ const router = useRemoraidRouter();
6271
+ const { pathname } = router;
6266
6272
  const layoutElement = useFrameLayoutElement();
6267
6273
  const { colorScheme, setColorScheme } = useHydratedMantineColorScheme();
6268
6274
  const collapseStaticElementsBreakpoint = collapseStaticElementsBreakpointProp ?? theme.breakpoints.navbarStaticElementsCollapse;
@@ -6283,21 +6289,10 @@ function NavbarMinimalContent({
6283
6289
  buttonCollapsed = false;
6284
6290
  }
6285
6291
  const buttonClickTransformation = orientation === "horizontal" /* Horizontal */ ? "tiltRight" /* TiltRight */ : "default" /* Default */;
6286
- const logoButtonSize = componentsProps?.logoButton?.size ?? componentsProps?.button?.size ?? defaultRemoraidButtonSize;
6287
- const logoIconSize = getDefaultButtonIconSize(logoButtonSize);
6288
- const logoButton = app.logo ? /* @__PURE__ */ jsx_runtime16.jsx(RemoraidButton, {
6292
+ const logoButton = app.logo ? /* @__PURE__ */ jsx_runtime17.jsx(RemoraidButton, {
6289
6293
  label: app.name,
6290
6294
  variant: "subtle",
6291
- icon: import_react13.isValidElement(app.logo) || isIcon(app.logo) ? app.logo : /* @__PURE__ */ jsx_runtime16.jsx(import_image.default, {
6292
- src: app.logo,
6293
- alt: "App logo",
6294
- ...componentsProps?.logo,
6295
- style: {
6296
- width: theme.componentsProps.icons[logoIconSize].size,
6297
- height: theme.componentsProps.icons[logoIconSize].size,
6298
- ...componentsProps?.logo?.style
6299
- }
6300
- }),
6295
+ icon: app.logo,
6301
6296
  responsive: buttonResponsive,
6302
6297
  collapsed: buttonCollapsed,
6303
6298
  clickTransformation: buttonClickTransformation,
@@ -6315,9 +6310,9 @@ function NavbarMinimalContent({
6315
6310
  componentsProps?.logoButton?.onClick?.(e);
6316
6311
  }
6317
6312
  }) : undefined;
6318
- const button = (element, key) => /* @__PURE__ */ jsx_runtime16.jsx(NavigationMenu, {
6313
+ const button = (element, key) => /* @__PURE__ */ jsx_runtime17.jsx(NavigationMenu, {
6319
6314
  label: element.label,
6320
- target: /* @__PURE__ */ jsx_runtime16.jsx(RemoraidButton, {
6315
+ target: /* @__PURE__ */ jsx_runtime17.jsx(RemoraidButton, {
6321
6316
  mounted: element.mounted,
6322
6317
  label: element.label,
6323
6318
  icon: element.icon,
@@ -6360,11 +6355,11 @@ function NavbarMinimalContent({
6360
6355
  const staticElements = elements.filter((element) => element.static);
6361
6356
  const staticButtons = staticElements.sort((a, b) => (a.priority ?? 0) - (b.priority ?? 0)).map((element, i) => button(element, `static-nav-element-${i}`));
6362
6357
  const collapseStaticElements = staticElements.filter((element) => element.mounted ?? true).length > 1;
6363
- const staticMenuButton = collapseStaticElements ? /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Box, {
6358
+ const staticMenuButton = collapseStaticElements ? /* @__PURE__ */ jsx_runtime17.jsx(import_core9.Box, {
6364
6359
  hiddenFrom: collapseStaticElementsBreakpoint,
6365
- children: /* @__PURE__ */ jsx_runtime16.jsx(NavigationMenu, {
6360
+ children: /* @__PURE__ */ jsx_runtime17.jsx(NavigationMenu, {
6366
6361
  elements: staticElements,
6367
- target: /* @__PURE__ */ jsx_runtime16.jsx(RemoraidButton, {
6362
+ target: /* @__PURE__ */ jsx_runtime17.jsx(RemoraidButton, {
6368
6363
  label: "Static elements",
6369
6364
  icon: import_icons_react4.IconDots,
6370
6365
  responsive: orientation === "vertical" /* Vertical */ ? buttonResponsive : false,
@@ -6385,41 +6380,41 @@ function NavbarMinimalContent({
6385
6380
  }, componentsProps?.NavigationMenu?.componentsProps)
6386
6381
  })
6387
6382
  }) : null;
6388
- return /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Paper, {
6383
+ return /* @__PURE__ */ jsx_runtime17.jsx(import_core9.Paper, {
6389
6384
  bg: theme.transparentBackground,
6390
6385
  h: "100%",
6391
6386
  p: "md",
6392
6387
  shadow: "md",
6393
6388
  ...componentsProps?.container,
6394
- children: orientation === "vertical" /* Vertical */ ? /* @__PURE__ */ jsx_runtime16.jsxs(import_core9.Stack, {
6389
+ children: orientation === "vertical" /* Vertical */ ? /* @__PURE__ */ jsx_runtime17.jsxs(import_core9.Stack, {
6395
6390
  h: "100%",
6396
6391
  children: [
6397
6392
  logoButton,
6398
- /* @__PURE__ */ jsx_runtime16.jsx(import_core9.ScrollArea, {
6393
+ /* @__PURE__ */ jsx_runtime17.jsx(import_core9.ScrollArea, {
6399
6394
  flex: 1,
6400
- children: /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Stack, {
6395
+ children: /* @__PURE__ */ jsx_runtime17.jsx(import_core9.Stack, {
6401
6396
  children: buttons
6402
6397
  })
6403
6398
  }),
6404
- /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Stack, {
6399
+ /* @__PURE__ */ jsx_runtime17.jsx(import_core9.Stack, {
6405
6400
  visibleFrom: collapseStaticElements ? collapseStaticElementsBreakpoint : undefined,
6406
6401
  children: staticButtons
6407
6402
  }),
6408
6403
  staticMenuButton
6409
6404
  ]
6410
- }) : /* @__PURE__ */ jsx_runtime16.jsxs(import_core9.Group, {
6405
+ }) : /* @__PURE__ */ jsx_runtime17.jsxs(import_core9.Group, {
6411
6406
  wrap: "nowrap",
6412
6407
  children: [
6413
6408
  logoButton,
6414
- /* @__PURE__ */ jsx_runtime16.jsx(import_core9.ScrollArea, {
6409
+ /* @__PURE__ */ jsx_runtime17.jsx(import_core9.ScrollArea, {
6415
6410
  flex: 1,
6416
6411
  style: { contain: "inline-size" },
6417
- children: /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Group, {
6412
+ children: /* @__PURE__ */ jsx_runtime17.jsx(import_core9.Group, {
6418
6413
  wrap: "nowrap",
6419
6414
  children: buttons
6420
6415
  })
6421
6416
  }),
6422
- /* @__PURE__ */ jsx_runtime16.jsx(import_core9.Group, {
6417
+ /* @__PURE__ */ jsx_runtime17.jsx(import_core9.Group, {
6423
6418
  wrap: "nowrap",
6424
6419
  visibleFrom: collapseStaticElements ? collapseStaticElementsBreakpoint : undefined,
6425
6420
  children: staticButtons
@@ -6442,7 +6437,7 @@ var import_core12 = require("@mantine/core");
6442
6437
  var import_core10 = require("@mantine/core");
6443
6438
  var import_icons_react5 = require("@tabler/icons-react");
6444
6439
  var import_lodash9 = __toESM(require_lodash());
6445
- var jsx_runtime17 = require("react/jsx-runtime");
6440
+ var jsx_runtime18 = require("react/jsx-runtime");
6446
6441
  function ControlButton({
6447
6442
  icon: Icon4 = import_icons_react5.IconClick,
6448
6443
  mounted = true,
@@ -6455,17 +6450,17 @@ function ControlButton({
6455
6450
  componentsProps
6456
6451
  }) {
6457
6452
  const theme = useRemoraidTheme();
6458
- return /* @__PURE__ */ jsx_runtime17.jsx(import_core10.Transition, {
6453
+ return /* @__PURE__ */ jsx_runtime18.jsx(import_core10.Transition, {
6459
6454
  mounted,
6460
6455
  transition: "fade",
6461
6456
  duration: theme.transitionDurations.short,
6462
6457
  timingFunction: "ease",
6463
6458
  ...componentsProps?.transition,
6464
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime17.jsx(import_core10.Tooltip, {
6459
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime18.jsx(import_core10.Tooltip, {
6465
6460
  label: tooltip,
6466
6461
  disabled: !Boolean(tooltip),
6467
6462
  ...componentsProps?.tooltip,
6468
- children: /* @__PURE__ */ jsx_runtime17.jsx(import_core10.ActionIcon, {
6463
+ children: /* @__PURE__ */ jsx_runtime18.jsx(import_core10.ActionIcon, {
6469
6464
  "data-control-button": true,
6470
6465
  size,
6471
6466
  color,
@@ -6476,7 +6471,7 @@ function ControlButton({
6476
6471
  order,
6477
6472
  ...import_lodash9.merge(transitionStyle, componentsProps?.button?.style)
6478
6473
  },
6479
- children: /* @__PURE__ */ jsx_runtime17.jsx(Icon4, {
6474
+ children: /* @__PURE__ */ jsx_runtime18.jsx(Icon4, {
6480
6475
  ...import_lodash9.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
6481
6476
  })
6482
6477
  })
@@ -6489,7 +6484,7 @@ var import_react14 = require("react");
6489
6484
  var import_core11 = require("@mantine/core");
6490
6485
  var import_icons_react6 = require("@tabler/icons-react");
6491
6486
  var import_lodash10 = __toESM(require_lodash());
6492
- var jsx_runtime18 = require("react/jsx-runtime");
6487
+ var jsx_runtime19 = require("react/jsx-runtime");
6493
6488
  function Controls({
6494
6489
  groupRef,
6495
6490
  mounted = true,
@@ -6547,14 +6542,14 @@ function Controls({
6547
6542
  const handlePointerUp = (e) => {
6548
6543
  e.currentTarget.releasePointerCapture(e.pointerId);
6549
6544
  };
6550
- return /* @__PURE__ */ jsx_runtime18.jsx(import_core11.Transition, {
6545
+ return /* @__PURE__ */ jsx_runtime19.jsx(import_core11.Transition, {
6551
6546
  mounted,
6552
6547
  keepMounted: true,
6553
6548
  transition: "pop",
6554
6549
  duration: theme.transitionDurations.short,
6555
6550
  timingFunction: "ease",
6556
6551
  ...componentsProps?.transition,
6557
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime18.jsx(import_core11.Paper, {
6552
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime19.jsx(import_core11.Paper, {
6558
6553
  ref: containerRef,
6559
6554
  pos: "absolute",
6560
6555
  p: gutter,
@@ -6570,14 +6565,14 @@ function Controls({
6570
6565
  ...import_lodash10.merge(transitionStyle, componentsProps?.container?.style)
6571
6566
  },
6572
6567
  className: clsx_default("remoraid-controls", componentsProps?.container?.className),
6573
- children: /* @__PURE__ */ jsx_runtime18.jsxs(import_core11.Group, {
6568
+ children: /* @__PURE__ */ jsx_runtime19.jsxs(import_core11.Group, {
6574
6569
  gap: gutter,
6575
6570
  ref: groupRef,
6576
6571
  wrap: "nowrap",
6577
6572
  ...componentsProps?.group,
6578
6573
  className: clsx_default("remoraid-controls-group", componentsProps?.group?.className),
6579
6574
  children: [
6580
- /* @__PURE__ */ jsx_runtime18.jsx(import_icons_react6.IconGripHorizontal, {
6575
+ /* @__PURE__ */ jsx_runtime19.jsx(import_icons_react6.IconGripHorizontal, {
6581
6576
  ...import_lodash10.merge({}, theme.componentsProps.icons[iconSize], { order: -100, color: "var(--mantine-color-default-border)" }, componentsProps?.gripIcon)
6582
6577
  }),
6583
6578
  children,
@@ -6585,7 +6580,7 @@ function Controls({
6585
6580
  if (isValidElementOfType(ControlButton, button)) {
6586
6581
  return button;
6587
6582
  }
6588
- return /* @__PURE__ */ jsx_runtime18.jsx(ControlButton, {
6583
+ return /* @__PURE__ */ jsx_runtime19.jsx(ControlButton, {
6589
6584
  ...button
6590
6585
  }, i);
6591
6586
  })
@@ -6596,7 +6591,7 @@ function Controls({
6596
6591
  }
6597
6592
 
6598
6593
  // src/core/components/Pinnable/index.tsx
6599
- var jsx_runtime19 = require("react/jsx-runtime");
6594
+ var jsx_runtime20 = require("react/jsx-runtime");
6600
6595
  function Pinnable({
6601
6596
  layoutType: layoutTypeProp,
6602
6597
  section,
@@ -6616,7 +6611,7 @@ function Pinnable({
6616
6611
  if (layout && layout.type !== layoutType) {
6617
6612
  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.`);
6618
6613
  }
6619
- const controlButton = import_react15.useMemo(() => /* @__PURE__ */ jsx_runtime19.jsx(ControlButton, {
6614
+ const controlButton = import_react15.useMemo(() => /* @__PURE__ */ jsx_runtime20.jsx(ControlButton, {
6620
6615
  icon: pinned ? import_icons_react7.IconPinnedOff : import_icons_react7.IconPin,
6621
6616
  tooltip: pinned ? "Unpin" : "Pin",
6622
6617
  color: "green",
@@ -6627,7 +6622,7 @@ function Pinnable({
6627
6622
  componentsProps?.button?.onClick?.(e);
6628
6623
  }
6629
6624
  }), [pinned, componentsProps?.button]);
6630
- const element = /* @__PURE__ */ jsx_runtime19.jsxs(import_core12.Box, {
6625
+ const element = /* @__PURE__ */ jsx_runtime20.jsxs(import_core12.Box, {
6631
6626
  pos: "relative",
6632
6627
  ref: containerRef,
6633
6628
  "data-hidden": hidden,
@@ -6635,11 +6630,11 @@ function Pinnable({
6635
6630
  ...componentsProps?.container,
6636
6631
  className: clsx_default("remoraid-pinnable", componentsProps?.container?.className),
6637
6632
  children: [
6638
- controlsContainer === undefined ? /* @__PURE__ */ jsx_runtime19.jsx(Controls, {
6633
+ controlsContainer === undefined ? /* @__PURE__ */ jsx_runtime20.jsx(Controls, {
6639
6634
  dragContainerRef: containerRef,
6640
6635
  ...componentsProps?.controls,
6641
6636
  children: controlButton
6642
- }) : controlsContainer !== null && /* @__PURE__ */ jsx_runtime19.jsx(import_core12.Portal, {
6637
+ }) : controlsContainer !== null && /* @__PURE__ */ jsx_runtime20.jsx(import_core12.Portal, {
6643
6638
  target: controlsContainer,
6644
6639
  children: controlButton
6645
6640
  }),
@@ -6653,7 +6648,7 @@ function Pinnable({
6653
6648
  return null;
6654
6649
  }
6655
6650
  if (pinned && layoutType === "frame" /* Frame */) {
6656
- return /* @__PURE__ */ jsx_runtime19.jsx(FrameLayout_default.Element, {
6651
+ return /* @__PURE__ */ jsx_runtime20.jsx(FrameLayout_default.Element, {
6657
6652
  layoutId,
6658
6653
  section,
6659
6654
  hidden,
@@ -6665,7 +6660,7 @@ function Pinnable({
6665
6660
  }
6666
6661
 
6667
6662
  // src/core/components/AppShell/Navbar/NavbarMinimal/index.tsx
6668
- var jsx_runtime20 = require("react/jsx-runtime");
6663
+ var jsx_runtime21 = require("react/jsx-runtime");
6669
6664
  function NavbarMinimal({
6670
6665
  pinnable = true,
6671
6666
  componentsProps
@@ -6683,7 +6678,7 @@ function NavbarMinimal({
6683
6678
  setHover(false);
6684
6679
  };
6685
6680
  if (position === "left" /* Left */ || position === "right" /* Right */) {
6686
- return /* @__PURE__ */ jsx_runtime20.jsx(FrameLayout_default.Element, {
6681
+ return /* @__PURE__ */ jsx_runtime21.jsx(FrameLayout_default.Element, {
6687
6682
  section: position,
6688
6683
  includeContainer: true,
6689
6684
  ...componentsProps?.layoutElement,
@@ -6694,19 +6689,19 @@ function NavbarMinimal({
6694
6689
  }
6695
6690
  }
6696
6691
  }, componentsProps?.layoutElement?.componentsProps),
6697
- children: /* @__PURE__ */ jsx_runtime20.jsx(NavbarMinimalContent, {
6692
+ children: /* @__PURE__ */ jsx_runtime21.jsx(NavbarMinimalContent, {
6698
6693
  orientation: "vertical" /* Vertical */,
6699
6694
  ...componentsProps?.content
6700
6695
  })
6701
6696
  });
6702
6697
  }
6703
6698
  if (position === "top" /* Top */ || position === "bottom" /* Bottom */) {
6704
- const content = /* @__PURE__ */ jsx_runtime20.jsx(NavbarMinimalContent, {
6699
+ const content = /* @__PURE__ */ jsx_runtime21.jsx(NavbarMinimalContent, {
6705
6700
  orientation: "horizontal" /* Horizontal */,
6706
6701
  ...componentsProps?.content
6707
6702
  });
6708
6703
  if (pinnable) {
6709
- return /* @__PURE__ */ jsx_runtime20.jsx(PageContainer, {
6704
+ return /* @__PURE__ */ jsx_runtime21.jsx(PageContainer, {
6710
6705
  ...componentsProps?.container,
6711
6706
  componentsProps: {
6712
6707
  ...componentsProps?.container?.componentsProps,
@@ -6715,7 +6710,7 @@ function NavbarMinimal({
6715
6710
  className: clsx_default("hide-if-empty", componentsProps?.container?.componentsProps?.container?.className)
6716
6711
  }
6717
6712
  },
6718
- children: /* @__PURE__ */ jsx_runtime20.jsx(Pinnable, {
6713
+ children: /* @__PURE__ */ jsx_runtime21.jsx(Pinnable, {
6719
6714
  section: position,
6720
6715
  initialValue: true,
6721
6716
  ...componentsProps?.Pinnable,
@@ -6758,9 +6753,9 @@ function NavbarMinimal({
6758
6753
  return content;
6759
6754
  }
6760
6755
  if (position === "content" /* Content */) {
6761
- return /* @__PURE__ */ jsx_runtime20.jsx(PageContainer, {
6756
+ return /* @__PURE__ */ jsx_runtime21.jsx(PageContainer, {
6762
6757
  ...componentsProps?.container,
6763
- children: /* @__PURE__ */ jsx_runtime20.jsx(NavbarMinimalContent, {
6758
+ children: /* @__PURE__ */ jsx_runtime21.jsx(NavbarMinimalContent, {
6764
6759
  orientation: "horizontal" /* Horizontal */,
6765
6760
  ...componentsProps?.content
6766
6761
  })
@@ -6771,7 +6766,7 @@ function NavbarMinimal({
6771
6766
 
6772
6767
  // src/core/components/AppShell/Navbar/index.tsx
6773
6768
  var import_icons_react8 = require("@tabler/icons-react");
6774
- var jsx_runtime21 = require("react/jsx-runtime");
6769
+ var jsx_runtime22 = require("react/jsx-runtime");
6775
6770
  var supportedNavbarPositions = {
6776
6771
  ["minimal" /* Minimal */]: [
6777
6772
  null,
@@ -6819,21 +6814,21 @@ var getDefaultNavigationElements = ({
6819
6814
  }
6820
6815
  }
6821
6816
  ];
6822
- function Navbar2({ componentsProps }) {
6817
+ function Navbar({ componentsProps }) {
6823
6818
  const { navbarVariant } = useRemoraidApp();
6824
6819
  if (navbarVariant === "minimal" /* Minimal */) {
6825
- return /* @__PURE__ */ jsx_runtime21.jsx(NavbarMinimal, {
6820
+ return /* @__PURE__ */ jsx_runtime22.jsx(NavbarMinimal, {
6826
6821
  ...componentsProps?.NavbarMinimal
6827
6822
  });
6828
6823
  }
6829
6824
  return null;
6830
6825
  }
6831
- var Navbar_default = Object.assign(Navbar2, {
6826
+ var Navbar_default = Object.assign(Navbar, {
6832
6827
  NavbarMinimal
6833
6828
  });
6834
6829
 
6835
6830
  // src/core/components/AppShell/AppShellUserExperienceProvider/index.tsx
6836
- var jsx_runtime22 = require("react/jsx-runtime");
6831
+ var jsx_runtime23 = require("react/jsx-runtime");
6837
6832
  var defaultAppShellUserExperience = {
6838
6833
  navbar: {
6839
6834
  position: null,
@@ -6870,7 +6865,7 @@ function AppShellUserExperienceProvider({
6870
6865
  }
6871
6866
  return true;
6872
6867
  };
6873
- return /* @__PURE__ */ jsx_runtime22.jsx(UserExperienceProviderWrapper, {
6868
+ return /* @__PURE__ */ jsx_runtime23.jsx(UserExperienceProviderWrapper, {
6874
6869
  context: appShellUserExperienceContext,
6875
6870
  isValidUserExperience,
6876
6871
  cookieName: cookieName ?? defaultAppShellUserExperienceCookieName,
@@ -6888,7 +6883,7 @@ function AppShellUserExperienceProvider({
6888
6883
  }
6889
6884
 
6890
6885
  // src/core/components/AppShell/index.tsx
6891
- var jsx_runtime23 = require("react/jsx-runtime");
6886
+ var jsx_runtime24 = require("react/jsx-runtime");
6892
6887
  var remoraidAppShellLayoutId = "remoraid-app-shell";
6893
6888
  function AppShell({
6894
6889
  gutter,
@@ -6912,25 +6907,25 @@ function AppShell({
6912
6907
  }
6913
6908
  meta.content = computedBodyColor;
6914
6909
  }, [colorScheme]);
6915
- return /* @__PURE__ */ jsx_runtime23.jsx(AppProvider, {
6910
+ return /* @__PURE__ */ jsx_runtime24.jsx(AppProvider, {
6916
6911
  appContext: appContext2,
6917
6912
  ...componentsProps?.AppProvider,
6918
- children: /* @__PURE__ */ jsx_runtime23.jsx(AppShellUserExperienceProvider, {
6913
+ children: /* @__PURE__ */ jsx_runtime24.jsx(AppShellUserExperienceProvider, {
6919
6914
  ...componentsProps?.AppShellUserExperienceProvider,
6920
6915
  initialValue: import_lodash13.merge(initialUserExperience, componentsProps?.AppShellUserExperienceProvider?.initialValue),
6921
- children: /* @__PURE__ */ jsx_runtime23.jsx(import_core13.Box, {
6916
+ children: /* @__PURE__ */ jsx_runtime24.jsx(import_core13.Box, {
6922
6917
  h: "100dvh",
6923
6918
  ...componentsProps?.container,
6924
- children: /* @__PURE__ */ jsx_runtime23.jsxs(FrameLayout_default, {
6919
+ children: /* @__PURE__ */ jsx_runtime24.jsxs(FrameLayout_default, {
6925
6920
  layoutId: remoraidAppShellLayoutId,
6926
6921
  gutter: gutter ?? theme.primaryGutter,
6927
6922
  ...componentsProps?.layout,
6928
6923
  children: [
6929
- /* @__PURE__ */ jsx_runtime23.jsx(Navbar_default, {
6924
+ /* @__PURE__ */ jsx_runtime24.jsx(Navbar_default, {
6930
6925
  ...componentsProps?.navbar
6931
6926
  }),
6932
6927
  children,
6933
- /* @__PURE__ */ jsx_runtime23.jsx(Footer_default, {
6928
+ /* @__PURE__ */ jsx_runtime24.jsx(Footer_default, {
6934
6929
  ...componentsProps?.footer
6935
6930
  })
6936
6931
  ]
@@ -6949,8 +6944,7 @@ var import_core16 = require("@mantine/core");
6949
6944
  // src/core/components/Page/index.tsx
6950
6945
  var import_core14 = require("@mantine/core");
6951
6946
  var import_react19 = __toESM(require("react"));
6952
- var import_navigation3 = require("next/navigation");
6953
- var jsx_runtime24 = require("react/jsx-runtime");
6947
+ var jsx_runtime25 = require("react/jsx-runtime");
6954
6948
  var pageContext = import_react19.default.createContext(null);
6955
6949
  var usePage = () => {
6956
6950
  return import_react19.useContext(pageContext);
@@ -6962,18 +6956,18 @@ var import_react20 = require("react");
6962
6956
 
6963
6957
  // src/core/components/ScrollableChipGroup/index.tsx
6964
6958
  var import_core15 = require("@mantine/core");
6965
- var jsx_runtime25 = require("react/jsx-runtime");
6959
+ var jsx_runtime26 = require("react/jsx-runtime");
6966
6960
 
6967
6961
  // src/core/components/WidgetSelectionHeader/index.tsx
6968
6962
  var import_lodash14 = __toESM(require_lodash());
6969
- var jsx_runtime26 = require("react/jsx-runtime");
6963
+ var jsx_runtime27 = require("react/jsx-runtime");
6970
6964
  // src/core/components/BadgeGroup/index.tsx
6971
6965
  var import_core18 = require("@mantine/core");
6972
6966
  var import_react21 = __toESM(require("react"));
6973
6967
 
6974
6968
  // src/core/components/BadgeMinimal/index.tsx
6975
6969
  var import_core17 = require("@mantine/core");
6976
- var jsx_runtime27 = require("react/jsx-runtime");
6970
+ var jsx_runtime28 = require("react/jsx-runtime");
6977
6971
  function BadgeMinimal({
6978
6972
  label,
6979
6973
  tooltip,
@@ -6981,17 +6975,17 @@ function BadgeMinimal({
6981
6975
  componentsProps
6982
6976
  }) {
6983
6977
  const theme = useRemoraidTheme();
6984
- return /* @__PURE__ */ jsx_runtime27.jsx(import_core17.Transition, {
6978
+ return /* @__PURE__ */ jsx_runtime28.jsx(import_core17.Transition, {
6985
6979
  mounted,
6986
6980
  transition: "fade",
6987
6981
  duration: theme.transitionDurations.short,
6988
6982
  timingFunction: "ease",
6989
6983
  ...componentsProps?.transition,
6990
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime27.jsx(import_core17.Tooltip, {
6984
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime28.jsx(import_core17.Tooltip, {
6991
6985
  label: tooltip,
6992
6986
  disabled: !Boolean(tooltip),
6993
6987
  ...componentsProps?.tooltip,
6994
- children: /* @__PURE__ */ jsx_runtime27.jsx(import_core17.Badge, {
6988
+ children: /* @__PURE__ */ jsx_runtime28.jsx(import_core17.Badge, {
6995
6989
  variant: "default",
6996
6990
  ...componentsProps?.badge,
6997
6991
  style: {
@@ -7007,7 +7001,7 @@ function BadgeMinimal({
7007
7001
 
7008
7002
  // src/core/components/BadgeGroup/index.tsx
7009
7003
  var import_lodash15 = __toESM(require_lodash());
7010
- var jsx_runtime28 = require("react/jsx-runtime");
7004
+ var jsx_runtime29 = require("react/jsx-runtime");
7011
7005
  var react = require("react");
7012
7006
  function BadgeGroup({
7013
7007
  badges: badgesProp,
@@ -7028,9 +7022,9 @@ function BadgeGroup({
7028
7022
  key: i
7029
7023
  });
7030
7024
  });
7031
- return /* @__PURE__ */ jsx_runtime28.jsxs(jsx_runtime28.Fragment, {
7025
+ return /* @__PURE__ */ jsx_runtime29.jsxs(jsx_runtime29.Fragment, {
7032
7026
  children: [
7033
- /* @__PURE__ */ jsx_runtime28.jsx(import_core18.Group, {
7027
+ /* @__PURE__ */ jsx_runtime29.jsx(import_core18.Group, {
7034
7028
  gap,
7035
7029
  wrap: "nowrap",
7036
7030
  visibleFrom: numVisibleBadges > 1 ? breakpoint : undefined,
@@ -7038,17 +7032,17 @@ function BadgeGroup({
7038
7032
  className: clsx_default("hide-if-empty", componentsProps?.container?.className),
7039
7033
  children: badgesElement
7040
7034
  }),
7041
- /* @__PURE__ */ jsx_runtime28.jsx(import_core18.Transition, {
7035
+ /* @__PURE__ */ jsx_runtime29.jsx(import_core18.Transition, {
7042
7036
  mounted: numVisibleBadges > 1,
7043
7037
  transition: "fade",
7044
7038
  duration: theme.transitionDurations.short,
7045
7039
  timingFunction: "ease",
7046
7040
  ...componentsProps?.cumulativeBadgeTransition,
7047
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime28.jsxs(import_core18.HoverCard, {
7041
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime29.jsxs(import_core18.HoverCard, {
7048
7042
  ...componentsProps?.HoverCard,
7049
7043
  children: [
7050
- /* @__PURE__ */ jsx_runtime28.jsx(import_core18.HoverCard.Target, {
7051
- children: /* @__PURE__ */ jsx_runtime28.jsxs(import_core18.Badge, {
7044
+ /* @__PURE__ */ jsx_runtime29.jsx(import_core18.HoverCard.Target, {
7045
+ children: /* @__PURE__ */ jsx_runtime29.jsxs(import_core18.Badge, {
7052
7046
  hiddenFrom: breakpoint,
7053
7047
  variant: "dot",
7054
7048
  ...componentsProps?.cumulativeBadge,
@@ -7062,9 +7056,9 @@ function BadgeGroup({
7062
7056
  ]
7063
7057
  })
7064
7058
  }),
7065
- /* @__PURE__ */ jsx_runtime28.jsx(import_core18.HoverCard.Dropdown, {
7059
+ /* @__PURE__ */ jsx_runtime29.jsx(import_core18.HoverCard.Dropdown, {
7066
7060
  p: gap,
7067
- children: /* @__PURE__ */ jsx_runtime28.jsx(import_core18.Stack, {
7061
+ children: /* @__PURE__ */ jsx_runtime29.jsx(import_core18.Stack, {
7068
7062
  gap,
7069
7063
  ...componentsProps?.hoverContainer,
7070
7064
  children: badgesElement
@@ -7079,7 +7073,7 @@ function BadgeGroup({
7079
7073
  // src/core/components/AlertMinimal/index.tsx
7080
7074
  var import_core19 = require("@mantine/core");
7081
7075
  var import_lodash16 = __toESM(require_lodash());
7082
- var jsx_runtime29 = require("react/jsx-runtime");
7076
+ var jsx_runtime30 = require("react/jsx-runtime");
7083
7077
  function AlertMinimal({
7084
7078
  category,
7085
7079
  children,
@@ -7096,21 +7090,22 @@ function AlertMinimal({
7096
7090
  iconSize = "small" /* Small */,
7097
7091
  componentsProps
7098
7092
  } = import_lodash16.merge({}, theme.componentsProps.alerts[category], props);
7099
- return /* @__PURE__ */ jsx_runtime29.jsx(import_core19.Transition, {
7093
+ return /* @__PURE__ */ jsx_runtime30.jsx(import_core19.Transition, {
7100
7094
  mounted,
7101
7095
  transition: "fade",
7102
7096
  duration: theme.transitionDurations.short,
7103
7097
  timingFunction: "ease",
7104
7098
  ...componentsProps?.transition,
7105
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime29.jsxs(import_core19.Alert, {
7099
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime30.jsxs(import_core19.Alert, {
7106
7100
  title,
7107
7101
  color,
7108
7102
  variant: "light",
7109
7103
  onClose,
7110
7104
  withCloseButton: onClose !== undefined,
7111
- icon: Icon4 ? /* @__PURE__ */ jsx_runtime29.jsx(Icon4, {
7105
+ icon: Icon4 ? /* @__PURE__ */ jsx_runtime30.jsx(Icon4, {
7112
7106
  ...import_lodash16.merge({}, theme.componentsProps.icons[iconSize], componentsProps?.icon)
7113
7107
  }) : undefined,
7108
+ ...componentsProps?.alert,
7114
7109
  style: import_lodash16.merge(transitionStyle, componentsProps?.alert?.style),
7115
7110
  children: [
7116
7111
  text,
@@ -7124,7 +7119,7 @@ var import_core20 = require("@mantine/core");
7124
7119
  var import_react22 = require("react");
7125
7120
  var import_icons_react10 = require("@tabler/icons-react");
7126
7121
  var import_lodash17 = __toESM(require_lodash());
7127
- var jsx_runtime30 = require("react/jsx-runtime");
7122
+ var jsx_runtime31 = require("react/jsx-runtime");
7128
7123
  function WidgetWrapper({
7129
7124
  config,
7130
7125
  mt = 0,
@@ -7163,7 +7158,7 @@ function WidgetWrapper({
7163
7158
  updateActiveWidget(null);
7164
7159
  };
7165
7160
  const mounted = Boolean(widget?.selected);
7166
- let element = /* @__PURE__ */ jsx_runtime30.jsx(import_core20.Transition, {
7161
+ let element = /* @__PURE__ */ jsx_runtime31.jsx(import_core20.Transition, {
7167
7162
  mounted,
7168
7163
  transition: "fade-left",
7169
7164
  duration: theme.transitionDurations.medium,
@@ -7175,7 +7170,7 @@ function WidgetWrapper({
7175
7170
  }
7176
7171
  componentsProps?.transition?.onExited?.();
7177
7172
  },
7178
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime30.jsxs(import_core20.Paper, {
7173
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime31.jsxs(import_core20.Paper, {
7179
7174
  ref: containerRef,
7180
7175
  p: "md",
7181
7176
  shadow: "md",
@@ -7198,12 +7193,12 @@ function WidgetWrapper({
7198
7193
  className: clsx_default("remoraid-segment", componentsProps?.container?.className),
7199
7194
  id: config.widgetId,
7200
7195
  children: [
7201
- /* @__PURE__ */ jsx_runtime30.jsx(Controls, {
7196
+ /* @__PURE__ */ jsx_runtime31.jsx(Controls, {
7202
7197
  dragContainerRef: containerRef,
7203
7198
  groupRef: controlsContainerRef,
7204
7199
  mounted: activeWidget === config.widgetId,
7205
7200
  ...componentsProps?.controls,
7206
- children: /* @__PURE__ */ jsx_runtime30.jsx(ControlButton, {
7201
+ children: /* @__PURE__ */ jsx_runtime31.jsx(ControlButton, {
7207
7202
  mounted: withCloseButton,
7208
7203
  icon: import_icons_react10.IconX,
7209
7204
  tooltip: "Hide widget",
@@ -7232,7 +7227,7 @@ function WidgetWrapper({
7232
7227
  })
7233
7228
  });
7234
7229
  if (pinnableSection !== undefined) {
7235
- element = /* @__PURE__ */ jsx_runtime30.jsx(Pinnable, {
7230
+ element = /* @__PURE__ */ jsx_runtime31.jsx(Pinnable, {
7236
7231
  section: pinnableSection,
7237
7232
  controlsContainer,
7238
7233
  hidden: Boolean(widget?.hidden),
@@ -7269,7 +7264,7 @@ function WidgetWrapper({
7269
7264
  var import_core21 = require("@mantine/core");
7270
7265
  var import_react23 = require("react");
7271
7266
  var import_lodash18 = __toESM(require_lodash());
7272
- var jsx_runtime31 = require("react/jsx-runtime");
7267
+ var jsx_runtime32 = require("react/jsx-runtime");
7273
7268
  var react2 = require("react");
7274
7269
  function Widget({
7275
7270
  id,
@@ -7292,7 +7287,7 @@ function Widget({
7292
7287
  const badgesGap = (typeof gaps === "object" ? gaps.badges : gaps) ?? "xs";
7293
7288
  const buttonsGap = (typeof gaps === "object" ? gaps.buttons : gaps) ?? "xs";
7294
7289
  const alertsGap = (typeof gaps === "object" ? gaps.alerts : gaps) ?? "xs";
7295
- return /* @__PURE__ */ jsx_runtime31.jsx(WidgetWrapper, {
7290
+ return /* @__PURE__ */ jsx_runtime32.jsx(WidgetWrapper, {
7296
7291
  config: {
7297
7292
  widgetId: id,
7298
7293
  ...config,
@@ -7304,39 +7299,39 @@ function Widget({
7304
7299
  mt,
7305
7300
  ...componentsProps?.wrapper,
7306
7301
  pinnableSection: pinnableSection ?? componentsProps?.wrapper?.pinnableSection,
7307
- children: /* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Stack, {
7302
+ children: /* @__PURE__ */ jsx_runtime32.jsxs(import_core21.Stack, {
7308
7303
  gap: "md",
7309
7304
  mih: 0,
7310
7305
  ...componentsProps?.contentContainer,
7311
7306
  children: [
7312
- /* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Group, {
7307
+ /* @__PURE__ */ jsx_runtime32.jsxs(import_core21.Group, {
7313
7308
  justify: "space-between",
7314
7309
  wrap: "nowrap",
7315
7310
  children: [
7316
- /* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Stack, {
7311
+ /* @__PURE__ */ jsx_runtime32.jsxs(import_core21.Stack, {
7317
7312
  gap: 4,
7318
7313
  children: [
7319
- /* @__PURE__ */ jsx_runtime31.jsxs(import_core21.Group, {
7314
+ /* @__PURE__ */ jsx_runtime32.jsxs(import_core21.Group, {
7320
7315
  gap: badgesGap,
7321
7316
  wrap: "nowrap",
7322
7317
  children: [
7323
- /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Title, {
7318
+ /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Title, {
7324
7319
  order: 1,
7325
7320
  size: "h2",
7326
7321
  lineClamp: 1,
7327
7322
  ...componentsProps?.title,
7328
7323
  children: title ?? id
7329
7324
  }),
7330
- badges !== undefined && /* @__PURE__ */ jsx_runtime31.jsx(BadgeGroup, {
7325
+ badges !== undefined && /* @__PURE__ */ jsx_runtime32.jsx(BadgeGroup, {
7331
7326
  badges,
7332
7327
  gap: badgesGap,
7333
7328
  ...componentsProps?.badgeGroup
7334
7329
  })
7335
7330
  ]
7336
7331
  }),
7337
- /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Transition, {
7332
+ /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Transition, {
7338
7333
  mounted: Boolean(description),
7339
- children: (transitionStyle) => /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Text, {
7334
+ children: (transitionStyle) => /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Text, {
7340
7335
  size: "sm",
7341
7336
  c: "dimmed",
7342
7337
  ...componentsProps?.description,
@@ -7346,7 +7341,7 @@ function Widget({
7346
7341
  })
7347
7342
  ]
7348
7343
  }),
7349
- /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Group, {
7344
+ /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Group, {
7350
7345
  gap: buttonsGap,
7351
7346
  wrap: "nowrap",
7352
7347
  children: buttons !== undefined && buttons.map((button, i) => {
@@ -7361,12 +7356,12 @@ function Widget({
7361
7356
  })
7362
7357
  ]
7363
7358
  }),
7364
- /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Box, {
7365
- children: /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Divider, {
7359
+ /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Box, {
7360
+ children: /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Divider, {
7366
7361
  ...componentsProps?.divider
7367
7362
  })
7368
7363
  }),
7369
- /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Stack, {
7364
+ /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Stack, {
7370
7365
  align: "stretch",
7371
7366
  gap: alertsGap,
7372
7367
  ...componentsProps?.alertsContainer,
@@ -7381,12 +7376,12 @@ function Widget({
7381
7376
  });
7382
7377
  })
7383
7378
  }),
7384
- (loading || import_react23.Children.toArray(children).length > 0) && /* @__PURE__ */ jsx_runtime31.jsx(import_core21.ScrollArea.Autosize, {
7379
+ (loading || import_react23.Children.toArray(children).length > 0) && /* @__PURE__ */ jsx_runtime32.jsx(import_core21.ScrollArea.Autosize, {
7385
7380
  flex: 1,
7386
7381
  ...componentsProps?.childrenContainer,
7387
7382
  className: clsx_default("remoraid-widget-children-container", componentsProps?.childrenContainer?.className),
7388
- children: loading ? /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Center, {
7389
- children: /* @__PURE__ */ jsx_runtime31.jsx(import_core21.Loader, {
7383
+ children: loading ? /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Center, {
7384
+ children: /* @__PURE__ */ jsx_runtime32.jsx(import_core21.Loader, {
7390
7385
  ...componentsProps?.loader
7391
7386
  })
7392
7387
  }) : children
@@ -7396,10 +7391,9 @@ function Widget({
7396
7391
  });
7397
7392
  }
7398
7393
  // src/core/components/NotFoundPage/index.tsx
7399
- var import_navigation4 = require("next/navigation");
7400
- var jsx_runtime32 = require("react/jsx-runtime");
7401
- // src/core/components/EnvironmentShell/index.tsx
7402
7394
  var jsx_runtime33 = require("react/jsx-runtime");
7395
+ // src/core/components/EnvironmentShell/index.tsx
7396
+ var jsx_runtime34 = require("react/jsx-runtime");
7403
7397
  // src/core/components/SettingsWidget/index.tsx
7404
7398
  var import_react24 = require("react");
7405
7399
  var import_icons_react12 = require("@tabler/icons-react");
@@ -7407,14 +7401,14 @@ var import_icons_react12 = require("@tabler/icons-react");
7407
7401
  // src/core/components/SettingsWidget/SaveButton/index.tsx
7408
7402
  var import_icons_react11 = require("@tabler/icons-react");
7409
7403
  var import_core22 = require("@mantine/core");
7410
- var jsx_runtime34 = require("react/jsx-runtime");
7404
+ var jsx_runtime35 = require("react/jsx-runtime");
7411
7405
  function SaveButton({
7412
7406
  onSaveChanges,
7413
7407
  insideContainer,
7414
7408
  componentsProps
7415
7409
  }) {
7416
7410
  const settingsWidgetOptions = useSettingsWidgetContext();
7417
- const button = /* @__PURE__ */ jsx_runtime34.jsx(RemoraidButton, {
7411
+ const button = /* @__PURE__ */ jsx_runtime35.jsx(RemoraidButton, {
7418
7412
  label: "Save Changes",
7419
7413
  icon: import_icons_react11.IconDeviceFloppy,
7420
7414
  onClick: onSaveChanges,
@@ -7429,7 +7423,7 @@ function SaveButton({
7429
7423
  }
7430
7424
  });
7431
7425
  if (insideContainer !== false) {
7432
- return /* @__PURE__ */ jsx_runtime34.jsx(import_core22.Group, {
7426
+ return /* @__PURE__ */ jsx_runtime35.jsx(import_core22.Group, {
7433
7427
  w: "100%",
7434
7428
  justify: "flex-end",
7435
7429
  mt: "md",
@@ -7441,7 +7435,7 @@ function SaveButton({
7441
7435
  }
7442
7436
 
7443
7437
  // src/core/components/SettingsWidget/index.tsx
7444
- var jsx_runtime35 = require("react/jsx-runtime");
7438
+ var jsx_runtime36 = require("react/jsx-runtime");
7445
7439
  var defaultSettingsWidgetContext = {};
7446
7440
  var settingsWidgetContext = import_react24.createContext(defaultSettingsWidgetContext);
7447
7441
  var useSettingsWidgetContext = () => {
@@ -7454,9 +7448,9 @@ function SettingsWidget({
7454
7448
  custom,
7455
7449
  widgetProps
7456
7450
  }) {
7457
- return /* @__PURE__ */ jsx_runtime35.jsx(settingsWidgetContext.Provider, {
7451
+ return /* @__PURE__ */ jsx_runtime36.jsx(settingsWidgetContext.Provider, {
7458
7452
  value: { custom, unsavedChanges },
7459
- children: /* @__PURE__ */ jsx_runtime35.jsx(Widget, {
7453
+ children: /* @__PURE__ */ jsx_runtime36.jsx(Widget, {
7460
7454
  title: "Settings",
7461
7455
  id: "settings",
7462
7456
  ...widgetProps,
@@ -7496,22 +7490,22 @@ var import_core24 = require("@mantine/core");
7496
7490
 
7497
7491
  // src/core/components/SettingsWidget/SettingsTable/Row/index.tsx
7498
7492
  var import_core23 = require("@mantine/core");
7499
- var jsx_runtime36 = require("react/jsx-runtime");
7493
+ var jsx_runtime37 = require("react/jsx-runtime");
7500
7494
  function Row({
7501
7495
  children,
7502
7496
  label
7503
7497
  }) {
7504
7498
  const options = useSettingsTableOptions();
7505
- return /* @__PURE__ */ jsx_runtime36.jsxs(import_core23.Table.Tr, {
7499
+ return /* @__PURE__ */ jsx_runtime37.jsxs(import_core23.Table.Tr, {
7506
7500
  children: [
7507
- /* @__PURE__ */ jsx_runtime36.jsx(import_core23.Table.Th, {
7501
+ /* @__PURE__ */ jsx_runtime37.jsx(import_core23.Table.Th, {
7508
7502
  w: options.leftColumnWidth,
7509
- children: /* @__PURE__ */ jsx_runtime36.jsx(import_core23.Text, {
7503
+ children: /* @__PURE__ */ jsx_runtime37.jsx(import_core23.Text, {
7510
7504
  size: "sm",
7511
7505
  children: label
7512
7506
  })
7513
7507
  }),
7514
- /* @__PURE__ */ jsx_runtime36.jsx(import_core23.Table.Td, {
7508
+ /* @__PURE__ */ jsx_runtime37.jsx(import_core23.Table.Td, {
7515
7509
  py: "xs",
7516
7510
  children
7517
7511
  })
@@ -7520,7 +7514,7 @@ function Row({
7520
7514
  }
7521
7515
 
7522
7516
  // src/core/components/SettingsWidget/SettingsTable/index.tsx
7523
- var jsx_runtime37 = require("react/jsx-runtime");
7517
+ var jsx_runtime38 = require("react/jsx-runtime");
7524
7518
  var defaultSettingsTableOptions = {
7525
7519
  leftColumnWidth: "38.2%"
7526
7520
  };
@@ -7534,16 +7528,16 @@ function SettingsTable({
7534
7528
  }) {
7535
7529
  const children = asChildrenOfType(Row, childrenProp, "Check children passed to 'SettingsTable' component.");
7536
7530
  const theme = useRemoraidTheme();
7537
- return /* @__PURE__ */ jsx_runtime37.jsx(settingsTableOptionsContext.Provider, {
7531
+ return /* @__PURE__ */ jsx_runtime38.jsx(settingsTableOptionsContext.Provider, {
7538
7532
  value: {
7539
7533
  leftColumnWidth: leftColumnWidth ?? defaultSettingsTableOptions.leftColumnWidth
7540
7534
  },
7541
- children: /* @__PURE__ */ jsx_runtime37.jsx(import_core24.Table, {
7535
+ children: /* @__PURE__ */ jsx_runtime38.jsx(import_core24.Table, {
7542
7536
  bg: theme.transparentBackground,
7543
7537
  withTableBorder: true,
7544
7538
  variant: "vertical",
7545
7539
  layout: "fixed",
7546
- children: /* @__PURE__ */ jsx_runtime37.jsx(import_core24.Table.Tbody, {
7540
+ children: /* @__PURE__ */ jsx_runtime38.jsx(import_core24.Table.Tbody, {
7547
7541
  children
7548
7542
  })
7549
7543
  })
@@ -7555,19 +7549,19 @@ var SettingsTable_default = Object.assign(SettingsTable, {
7555
7549
  // src/core/components/NavbarSettingsWidget/index.tsx
7556
7550
  var import_lodash19 = __toESM(require_lodash());
7557
7551
  var import_core25 = require("@mantine/core");
7558
- var jsx_runtime38 = require("react/jsx-runtime");
7552
+ var jsx_runtime39 = require("react/jsx-runtime");
7559
7553
  // src/core/components/FooterSettingsWidget/index.tsx
7560
7554
  var import_lodash20 = __toESM(require_lodash());
7561
7555
  var import_core26 = require("@mantine/core");
7562
- var jsx_runtime39 = require("react/jsx-runtime");
7556
+ var jsx_runtime40 = require("react/jsx-runtime");
7563
7557
  // src/core/components/ContextClusterProvider/index.tsx
7564
7558
  var import_react26 = __toESM(require("react"));
7565
- var jsx_runtime40 = require("react/jsx-runtime");
7559
+ var jsx_runtime41 = require("react/jsx-runtime");
7566
7560
  // src/core/components/InputWrapperScrollArea/index.tsx
7567
7561
  var import_core27 = require("@mantine/core");
7568
7562
  var import_react27 = require("react");
7569
7563
  var import_core28 = require("remoraid/core");
7570
- var jsx_runtime41 = require("react/jsx-runtime");
7564
+ var jsx_runtime42 = require("react/jsx-runtime");
7571
7565
  function InputWrapperScrollArea({
7572
7566
  children,
7573
7567
  label,
@@ -7579,7 +7573,7 @@ function InputWrapperScrollArea({
7579
7573
  }) {
7580
7574
  const theme = import_core28.useRemoraidTheme();
7581
7575
  const [isHovering, setIsHovering] = import_react27.useState(false);
7582
- return /* @__PURE__ */ jsx_runtime41.jsx(import_core27.Input.Wrapper, {
7576
+ return /* @__PURE__ */ jsx_runtime42.jsx(import_core27.Input.Wrapper, {
7583
7577
  label,
7584
7578
  error,
7585
7579
  onMouseEnter: () => setIsHovering(true),
@@ -7587,7 +7581,7 @@ function InputWrapperScrollArea({
7587
7581
  description,
7588
7582
  withAsterisk: required,
7589
7583
  ...componentsProps?.container,
7590
- children: /* @__PURE__ */ jsx_runtime41.jsx(import_core27.Paper, {
7584
+ children: /* @__PURE__ */ jsx_runtime42.jsx(import_core27.Paper, {
7591
7585
  shadow: "none",
7592
7586
  p: 0,
7593
7587
  mt: Boolean(description) ? 4 : 0,
@@ -7598,12 +7592,12 @@ function InputWrapperScrollArea({
7598
7592
  transition: "border-color .1s",
7599
7593
  borderColor: error ? "var(--mantine-color-error)" : isHovering ? "var(--mantine-primary-color-filled)" : undefined
7600
7594
  },
7601
- children: /* @__PURE__ */ jsx_runtime41.jsx(import_core27.ScrollArea, {
7595
+ children: /* @__PURE__ */ jsx_runtime42.jsx(import_core27.ScrollArea, {
7602
7596
  mah,
7603
7597
  px: "md",
7604
7598
  flex: 1,
7605
7599
  ...componentsProps?.ScrollArea,
7606
- children: /* @__PURE__ */ jsx_runtime41.jsx(import_core27.Box, {
7600
+ children: /* @__PURE__ */ jsx_runtime42.jsx(import_core27.Box, {
7607
7601
  ...componentsProps?.childrenContainer,
7608
7602
  children
7609
7603
  })
@@ -7618,7 +7612,7 @@ var import_react30 = require("react");
7618
7612
 
7619
7613
  // src/jsonforms/components/FormOptionsProvider/index.tsx
7620
7614
  var import_react28 = __toESM(require("react"));
7621
- var jsx_runtime42 = require("react/jsx-runtime");
7615
+ var jsx_runtime43 = require("react/jsx-runtime");
7622
7616
  var defaultFormOptions = {
7623
7617
  withDescriptions: false,
7624
7618
  gutter: "md"
@@ -7639,14 +7633,14 @@ function FormOptionsProvider({
7639
7633
  const updateFormOptions = (newFormOptions) => {
7640
7634
  setFormOptions((prev) => ({ ...prev, ...newFormOptions }));
7641
7635
  };
7642
- return /* @__PURE__ */ jsx_runtime42.jsx(formOptionsContext.Provider, {
7636
+ return /* @__PURE__ */ jsx_runtime43.jsx(formOptionsContext.Provider, {
7643
7637
  value: { formOptions, updateFormOptions },
7644
7638
  children
7645
7639
  });
7646
7640
  }
7647
7641
 
7648
7642
  // src/jsonforms/renderers/AnyControl.tsx
7649
- var jsx_runtime43 = require("react/jsx-runtime");
7643
+ var jsx_runtime44 = require("react/jsx-runtime");
7650
7644
  function PlainAnyControl({
7651
7645
  data,
7652
7646
  handleChange,
@@ -7663,13 +7657,13 @@ function PlainAnyControl({
7663
7657
  const [error, setError] = import_react30.useState(false);
7664
7658
  const label = labelProp !== "remoraid-array-item" ? labelProp : null;
7665
7659
  const description = withDescriptions ? schema.description : undefined;
7666
- return /* @__PURE__ */ jsx_runtime43.jsx(InputWrapperScrollArea, {
7660
+ return /* @__PURE__ */ jsx_runtime44.jsx(InputWrapperScrollArea, {
7667
7661
  label: label ?? undefined,
7668
7662
  error: error ? "Invalid JSON" : undefined,
7669
7663
  description,
7670
7664
  required,
7671
7665
  mah: 140,
7672
- children: /* @__PURE__ */ jsx_runtime43.jsx(import_core30.JsonInput, {
7666
+ children: /* @__PURE__ */ jsx_runtime44.jsx(import_core30.JsonInput, {
7673
7667
  onChange: (newValue) => {
7674
7668
  setInput(newValue);
7675
7669
  try {
@@ -7698,7 +7692,7 @@ var import_react31 = require("@jsonforms/react");
7698
7692
  var import_core31 = require("@jsonforms/core");
7699
7693
  var import_core32 = require("@mantine/core");
7700
7694
  var import_react32 = require("react");
7701
- var jsx_runtime44 = require("react/jsx-runtime");
7695
+ var jsx_runtime45 = require("react/jsx-runtime");
7702
7696
  function PlainAnyOfControl({
7703
7697
  data,
7704
7698
  schema,
@@ -7782,19 +7776,19 @@ function PlainAnyOfControl({
7782
7776
  value: String(i),
7783
7777
  label: o.label
7784
7778
  }));
7785
- return /* @__PURE__ */ jsx_runtime44.jsx(jsx_runtime44.Fragment, {
7786
- children: /* @__PURE__ */ jsx_runtime44.jsx(import_core32.Input.Wrapper, {
7779
+ return /* @__PURE__ */ jsx_runtime45.jsx(jsx_runtime45.Fragment, {
7780
+ children: /* @__PURE__ */ jsx_runtime45.jsx(import_core32.Input.Wrapper, {
7787
7781
  label,
7788
7782
  description: formOptions.withDescriptions ? schema.description ?? null : null,
7789
7783
  withAsterisk: required,
7790
- children: /* @__PURE__ */ jsx_runtime44.jsxs(import_core32.Paper, {
7784
+ children: /* @__PURE__ */ jsx_runtime45.jsxs(import_core32.Paper, {
7791
7785
  withBorder: true,
7792
7786
  shadow: "0",
7793
7787
  bg: "var(--remoraid-transparent-background)",
7794
7788
  p: formOptions.gutter,
7795
7789
  mt: formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0,
7796
7790
  children: [
7797
- /* @__PURE__ */ jsx_runtime44.jsx(import_core32.Select, {
7791
+ /* @__PURE__ */ jsx_runtime45.jsx(import_core32.Select, {
7798
7792
  label: "Value type",
7799
7793
  data: selectData,
7800
7794
  value: selectedOption,
@@ -7815,7 +7809,7 @@ function PlainAnyOfControl({
7815
7809
  variant: "default",
7816
7810
  mb: selectedOption !== null && inferType(selectedSchema) !== "null" ? formOptions.gutter : undefined
7817
7811
  }),
7818
- selectedOption !== null && /* @__PURE__ */ jsx_runtime44.jsx(import_react31.JsonForms, {
7812
+ selectedOption !== null && /* @__PURE__ */ jsx_runtime45.jsx(import_react31.JsonForms, {
7819
7813
  schema: {
7820
7814
  ...selectedSchema,
7821
7815
  $schema: undefined
@@ -7842,7 +7836,7 @@ var import_core33 = require("@mantine/core");
7842
7836
  var import_icons_react13 = require("@tabler/icons-react");
7843
7837
  var import_core34 = require("remoraid/core");
7844
7838
  var import_lodash21 = __toESM(require_lodash());
7845
- var jsx_runtime45 = require("react/jsx-runtime");
7839
+ var jsx_runtime46 = require("react/jsx-runtime");
7846
7840
  function PlainArrayControl(props) {
7847
7841
  const theme = import_core34.useRemoraidTheme();
7848
7842
  const { label, schema, data, handleChange, path, required } = props;
@@ -7861,39 +7855,39 @@ function PlainArrayControl(props) {
7861
7855
  required: ["item"]
7862
7856
  };
7863
7857
  } else {
7864
- return /* @__PURE__ */ jsx_runtime45.jsx(import_core34.AlertMinimal, {
7858
+ return /* @__PURE__ */ jsx_runtime46.jsx(import_core34.AlertMinimal, {
7865
7859
  category: import_core34.AlertCategory.Negative,
7866
7860
  title: "Renderer missing",
7867
7861
  text: `Could not find applicable renderer for property '${label}'.`
7868
7862
  });
7869
7863
  }
7870
- return /* @__PURE__ */ jsx_runtime45.jsx(jsx_runtime45.Fragment, {
7871
- children: /* @__PURE__ */ jsx_runtime45.jsx(import_core33.Input.Wrapper, {
7864
+ return /* @__PURE__ */ jsx_runtime46.jsx(jsx_runtime46.Fragment, {
7865
+ children: /* @__PURE__ */ jsx_runtime46.jsx(import_core33.Input.Wrapper, {
7872
7866
  label,
7873
7867
  description: formOptions.withDescriptions ? schema.description : undefined,
7874
7868
  withAsterisk: required,
7875
- children: /* @__PURE__ */ jsx_runtime45.jsx(import_core33.Paper, {
7869
+ children: /* @__PURE__ */ jsx_runtime46.jsx(import_core33.Paper, {
7876
7870
  withBorder: Array.isArray(data) && data.length > 0,
7877
7871
  shadow: "0",
7878
7872
  bg: "var(--remoraid-transparent-background)",
7879
7873
  p: Array.isArray(data) && data.length > 0 ? formOptions.gutter : 0,
7880
7874
  mt: formOptions.withDescriptions && schema.description && schema.description.length > 0 ? 4 : 0,
7881
- children: /* @__PURE__ */ jsx_runtime45.jsxs(import_core33.Stack, {
7875
+ children: /* @__PURE__ */ jsx_runtime46.jsxs(import_core33.Stack, {
7882
7876
  align: "stretch",
7883
7877
  justify: "flex-start",
7884
7878
  gap: formOptions.gutter,
7885
7879
  children: [
7886
7880
  Array.isArray(data) ? data.map((item, i) => {
7887
- return /* @__PURE__ */ jsx_runtime45.jsxs(import_core33.Flex, {
7881
+ return /* @__PURE__ */ jsx_runtime46.jsxs(import_core33.Flex, {
7888
7882
  gap: formOptions.gutter,
7889
7883
  justify: "flex-start",
7890
7884
  align: "center",
7891
7885
  direction: "row",
7892
7886
  wrap: "nowrap",
7893
7887
  children: [
7894
- /* @__PURE__ */ jsx_runtime45.jsx(import_core33.Box, {
7888
+ /* @__PURE__ */ jsx_runtime46.jsx(import_core33.Box, {
7895
7889
  flex: 1,
7896
- children: /* @__PURE__ */ jsx_runtime45.jsx(import_react33.JsonForms, {
7890
+ children: /* @__PURE__ */ jsx_runtime46.jsx(import_react33.JsonForms, {
7897
7891
  schema: schemaItems,
7898
7892
  data: { item },
7899
7893
  renderers: renderers ?? [],
@@ -7909,7 +7903,7 @@ function PlainArrayControl(props) {
7909
7903
  validationMode: "NoValidation"
7910
7904
  })
7911
7905
  }),
7912
- /* @__PURE__ */ jsx_runtime45.jsx(import_core34.RemoraidButton, {
7906
+ /* @__PURE__ */ jsx_runtime46.jsx(import_core34.RemoraidButton, {
7913
7907
  responsive: false,
7914
7908
  collapsed: true,
7915
7909
  label: "Delete item",
@@ -7921,10 +7915,10 @@ function PlainArrayControl(props) {
7921
7915
  })
7922
7916
  ]
7923
7917
  }, i);
7924
- }) : /* @__PURE__ */ jsx_runtime45.jsx(jsx_runtime45.Fragment, {}),
7925
- /* @__PURE__ */ jsx_runtime45.jsx(import_core33.Button, {
7918
+ }) : /* @__PURE__ */ jsx_runtime46.jsx(jsx_runtime46.Fragment, {}),
7919
+ /* @__PURE__ */ jsx_runtime46.jsx(import_core33.Button, {
7926
7920
  variant: "default",
7927
- leftSection: /* @__PURE__ */ jsx_runtime45.jsx(import_icons_react13.IconPlus, {
7921
+ leftSection: /* @__PURE__ */ jsx_runtime46.jsx(import_icons_react13.IconPlus, {
7928
7922
  ...theme.componentsProps.icons.medium
7929
7923
  }),
7930
7924
  onClick: () => {
@@ -7954,7 +7948,7 @@ var ArrayControl_default = ArrayControl;
7954
7948
  // src/jsonforms/renderers/CheckboxControl.tsx
7955
7949
  var import_react34 = require("@jsonforms/react");
7956
7950
  var import_core35 = require("@mantine/core");
7957
- var jsx_runtime46 = require("react/jsx-runtime");
7951
+ var jsx_runtime47 = require("react/jsx-runtime");
7958
7952
  function PlainCheckboxControl({
7959
7953
  data,
7960
7954
  handleChange,
@@ -7964,8 +7958,8 @@ function PlainCheckboxControl({
7964
7958
  schema
7965
7959
  }) {
7966
7960
  const { formOptions } = useFormOptions();
7967
- return /* @__PURE__ */ jsx_runtime46.jsx(jsx_runtime46.Fragment, {
7968
- children: /* @__PURE__ */ jsx_runtime46.jsx(import_core35.Checkbox, {
7961
+ return /* @__PURE__ */ jsx_runtime47.jsx(jsx_runtime47.Fragment, {
7962
+ children: /* @__PURE__ */ jsx_runtime47.jsx(import_core35.Checkbox, {
7969
7963
  label,
7970
7964
  py: formOptions.gutter,
7971
7965
  labelPosition: "left",
@@ -7984,7 +7978,7 @@ var CheckboxControl_default = CheckboxControl;
7984
7978
  // src/jsonforms/renderers/NumberControl.tsx
7985
7979
  var import_react35 = require("@jsonforms/react");
7986
7980
  var import_core36 = require("@mantine/core");
7987
- var jsx_runtime47 = require("react/jsx-runtime");
7981
+ var jsx_runtime48 = require("react/jsx-runtime");
7988
7982
  function PlainNumberControl({
7989
7983
  data,
7990
7984
  handleChange,
@@ -7996,8 +7990,8 @@ function PlainNumberControl({
7996
7990
  const {
7997
7991
  formOptions: { withDescriptions }
7998
7992
  } = useFormOptions();
7999
- return /* @__PURE__ */ jsx_runtime47.jsx(jsx_runtime47.Fragment, {
8000
- children: /* @__PURE__ */ jsx_runtime47.jsx(import_core36.NumberInput, {
7993
+ return /* @__PURE__ */ jsx_runtime48.jsx(jsx_runtime48.Fragment, {
7994
+ children: /* @__PURE__ */ jsx_runtime48.jsx(import_core36.NumberInput, {
8001
7995
  label,
8002
7996
  variant: "default",
8003
7997
  value: data ?? "",
@@ -8021,7 +8015,7 @@ var import_core37 = require("@mantine/core");
8021
8015
  var import_core38 = require("@jsonforms/core");
8022
8016
  var import_react37 = require("react");
8023
8017
  var import_icons_react14 = require("@tabler/icons-react");
8024
- var jsx_runtime48 = require("react/jsx-runtime");
8018
+ var jsx_runtime49 = require("react/jsx-runtime");
8025
8019
  function PlainObjectControl({
8026
8020
  label: labelProp,
8027
8021
  schema,
@@ -8040,22 +8034,22 @@ function PlainObjectControl({
8040
8034
  const declaredKeys = new Set(Object.keys(schema.properties ?? {}));
8041
8035
  const objectData = data && typeof data === "object" && !Array.isArray(data) ? data : {};
8042
8036
  const additionalEntries = Object.entries(objectData).filter(([key]) => !declaredKeys.has(key));
8043
- return /* @__PURE__ */ jsx_runtime48.jsx(import_core37.Input.Wrapper, {
8037
+ return /* @__PURE__ */ jsx_runtime49.jsx(import_core37.Input.Wrapper, {
8044
8038
  label,
8045
8039
  description,
8046
8040
  withAsterisk: required,
8047
- children: /* @__PURE__ */ jsx_runtime48.jsx(import_core37.Paper, {
8041
+ children: /* @__PURE__ */ jsx_runtime49.jsx(import_core37.Paper, {
8048
8042
  withBorder: true,
8049
8043
  bg: "var(--remoraid-transparent-background)",
8050
8044
  shadow: "0",
8051
8045
  p: formOptions.gutter,
8052
8046
  mt: Boolean(description) ? 4 : 0,
8053
- children: /* @__PURE__ */ jsx_runtime48.jsxs(import_core37.Stack, {
8047
+ children: /* @__PURE__ */ jsx_runtime49.jsxs(import_core37.Stack, {
8054
8048
  align: "stretch",
8055
8049
  justify: "flex-start",
8056
8050
  gap: formOptions.gutter,
8057
8051
  children: [
8058
- hasProperties && /* @__PURE__ */ jsx_runtime48.jsx(import_react36.JsonForms, {
8052
+ hasProperties && /* @__PURE__ */ jsx_runtime49.jsx(import_react36.JsonForms, {
8059
8053
  schema: {
8060
8054
  ...schema,
8061
8055
  $schema: undefined
@@ -8068,22 +8062,22 @@ function PlainObjectControl({
8068
8062
  },
8069
8063
  validationMode: "NoValidation"
8070
8064
  }),
8071
- hasAdditionalProperties && /* @__PURE__ */ jsx_runtime48.jsxs(jsx_runtime48.Fragment, {
8065
+ hasAdditionalProperties && /* @__PURE__ */ jsx_runtime49.jsxs(jsx_runtime49.Fragment, {
8072
8066
  children: [
8073
- additionalEntries.length > 0 && /* @__PURE__ */ jsx_runtime48.jsx(import_core37.Stack, {
8067
+ additionalEntries.length > 0 && /* @__PURE__ */ jsx_runtime49.jsx(import_core37.Stack, {
8074
8068
  align: "stretch",
8075
8069
  justify: "flex-start",
8076
8070
  gap: formOptions.gutter,
8077
- children: additionalEntries.map(([key, data2]) => /* @__PURE__ */ jsx_runtime48.jsxs(import_core37.Flex, {
8071
+ children: additionalEntries.map(([key, data2]) => /* @__PURE__ */ jsx_runtime49.jsxs(import_core37.Flex, {
8078
8072
  gap: formOptions.gutter,
8079
8073
  justify: "flex-start",
8080
8074
  align: "center",
8081
8075
  direction: "row",
8082
8076
  wrap: "nowrap",
8083
8077
  children: [
8084
- /* @__PURE__ */ jsx_runtime48.jsx(import_core37.Box, {
8078
+ /* @__PURE__ */ jsx_runtime49.jsx(import_core37.Box, {
8085
8079
  flex: 1,
8086
- children: /* @__PURE__ */ jsx_runtime48.jsx(import_react36.JsonForms, {
8080
+ children: /* @__PURE__ */ jsx_runtime49.jsx(import_react36.JsonForms, {
8087
8081
  schema: {
8088
8082
  ...schema.additionalProperties === true ? {} : schema.additionalProperties,
8089
8083
  title: key,
@@ -8102,7 +8096,7 @@ function PlainObjectControl({
8102
8096
  }
8103
8097
  })
8104
8098
  }),
8105
- /* @__PURE__ */ jsx_runtime48.jsx(RemoraidButton, {
8099
+ /* @__PURE__ */ jsx_runtime49.jsx(RemoraidButton, {
8106
8100
  responsive: false,
8107
8101
  collapsed: true,
8108
8102
  label: `Delete ${key}`,
@@ -8120,12 +8114,12 @@ function PlainObjectControl({
8120
8114
  ]
8121
8115
  }, key))
8122
8116
  }),
8123
- /* @__PURE__ */ jsx_runtime48.jsxs(import_core37.Group, {
8117
+ /* @__PURE__ */ jsx_runtime49.jsxs(import_core37.Group, {
8124
8118
  gap: formOptions.gutter,
8125
8119
  wrap: "nowrap",
8126
8120
  align: "flex-end",
8127
8121
  children: [
8128
- /* @__PURE__ */ jsx_runtime48.jsx(import_core37.TextInput, {
8122
+ /* @__PURE__ */ jsx_runtime49.jsx(import_core37.TextInput, {
8129
8123
  label: "New key",
8130
8124
  variant: "default",
8131
8125
  value: newKey,
@@ -8136,7 +8130,7 @@ function PlainObjectControl({
8136
8130
  description: formOptions.withDescriptions ? "Key for new additional property value" : null,
8137
8131
  flex: 1
8138
8132
  }),
8139
- /* @__PURE__ */ jsx_runtime48.jsx(RemoraidButton, {
8133
+ /* @__PURE__ */ jsx_runtime49.jsx(RemoraidButton, {
8140
8134
  responsive: false,
8141
8135
  collapsed: true,
8142
8136
  label: "Add key",
@@ -8176,7 +8170,7 @@ var ObjectControl_default = ObjectControl;
8176
8170
  // src/jsonforms/renderers/StringSelectControl.tsx
8177
8171
  var import_react38 = require("@jsonforms/react");
8178
8172
  var import_core40 = require("@mantine/core");
8179
- var jsx_runtime49 = require("react/jsx-runtime");
8173
+ var jsx_runtime50 = require("react/jsx-runtime");
8180
8174
  function PlainTimestampControl({
8181
8175
  data,
8182
8176
  handleChange,
@@ -8188,8 +8182,8 @@ function PlainTimestampControl({
8188
8182
  const {
8189
8183
  formOptions: { withDescriptions }
8190
8184
  } = useFormOptions();
8191
- return /* @__PURE__ */ jsx_runtime49.jsx(jsx_runtime49.Fragment, {
8192
- children: /* @__PURE__ */ jsx_runtime49.jsx(import_core40.Select, {
8185
+ return /* @__PURE__ */ jsx_runtime50.jsx(jsx_runtime50.Fragment, {
8186
+ children: /* @__PURE__ */ jsx_runtime50.jsx(import_core40.Select, {
8193
8187
  label,
8194
8188
  data: schema.enum,
8195
8189
  value: data,
@@ -8275,7 +8269,7 @@ var verticalLayoutTester_default = tester9;
8275
8269
  // src/jsonforms/renderers/TextControl.tsx
8276
8270
  var import_react39 = require("@jsonforms/react");
8277
8271
  var import_core51 = require("@mantine/core");
8278
- var jsx_runtime50 = require("react/jsx-runtime");
8272
+ var jsx_runtime51 = require("react/jsx-runtime");
8279
8273
  function PlainTextControl({
8280
8274
  data,
8281
8275
  handleChange,
@@ -8287,8 +8281,8 @@ function PlainTextControl({
8287
8281
  const {
8288
8282
  formOptions: { withDescriptions }
8289
8283
  } = useFormOptions();
8290
- return /* @__PURE__ */ jsx_runtime50.jsx(jsx_runtime50.Fragment, {
8291
- children: /* @__PURE__ */ jsx_runtime50.jsx(import_core51.TextInput, {
8284
+ return /* @__PURE__ */ jsx_runtime51.jsx(jsx_runtime51.Fragment, {
8285
+ children: /* @__PURE__ */ jsx_runtime51.jsx(import_core51.TextInput, {
8292
8286
  label,
8293
8287
  variant: "default",
8294
8288
  placeholder: "",
@@ -8307,7 +8301,7 @@ var TextControl_default = TextControl;
8307
8301
  // src/jsonforms/renderers/TimestampControl.tsx
8308
8302
  var import_react40 = require("@jsonforms/react");
8309
8303
  var import_dates = require("@mantine/dates");
8310
- var jsx_runtime51 = require("react/jsx-runtime");
8304
+ var jsx_runtime52 = require("react/jsx-runtime");
8311
8305
  function PlainTimestampControl2({
8312
8306
  data,
8313
8307
  handleChange,
@@ -8319,8 +8313,8 @@ function PlainTimestampControl2({
8319
8313
  const {
8320
8314
  formOptions: { withDescriptions }
8321
8315
  } = useFormOptions();
8322
- return /* @__PURE__ */ jsx_runtime51.jsx(jsx_runtime51.Fragment, {
8323
- children: /* @__PURE__ */ jsx_runtime51.jsx(import_dates.DatePickerInput, {
8316
+ return /* @__PURE__ */ jsx_runtime52.jsx(jsx_runtime52.Fragment, {
8317
+ children: /* @__PURE__ */ jsx_runtime52.jsx(import_dates.DatePickerInput, {
8324
8318
  variant: "default",
8325
8319
  label,
8326
8320
  placeholder: "Pick a date",
@@ -8342,14 +8336,14 @@ var TimestampControl_default = TimestampControl2;
8342
8336
  var import_react41 = __toESM(require("react"));
8343
8337
  var import_react42 = require("@jsonforms/react");
8344
8338
  var import_react43 = require("@jsonforms/react");
8345
- var jsx_runtime52 = require("react/jsx-runtime");
8339
+ var jsx_runtime53 = require("react/jsx-runtime");
8346
8340
  "use client";
8347
8341
  var JsonFormsLayout = ({
8348
8342
  className,
8349
8343
  children,
8350
8344
  visible
8351
8345
  }) => {
8352
- return /* @__PURE__ */ jsx_runtime52.jsx("div", {
8346
+ return /* @__PURE__ */ jsx_runtime53.jsx("div", {
8353
8347
  className,
8354
8348
  hidden: visible === undefined || visible === null ? false : !visible,
8355
8349
  children
@@ -8360,10 +8354,10 @@ var renderChildren = (layout, schema, className, path, enabled) => {
8360
8354
  const { formOptions } = useFormOptions();
8361
8355
  const gutter = typeof formOptions.gutter === "string" ? `var(--mantine-spacing-${formOptions.gutter})` : `${formOptions.gutter}px`;
8362
8356
  return layout.elements.map((child, index) => {
8363
- return /* @__PURE__ */ jsx_runtime52.jsx("div", {
8357
+ return /* @__PURE__ */ jsx_runtime53.jsx("div", {
8364
8358
  className,
8365
8359
  style: { marginTop: index === 0 ? 0 : gutter },
8366
- children: /* @__PURE__ */ jsx_runtime52.jsx(import_react43.JsonFormsDispatch, {
8360
+ children: /* @__PURE__ */ jsx_runtime53.jsx(import_react43.JsonFormsDispatch, {
8367
8361
  renderers,
8368
8362
  cells,
8369
8363
  uischema: child,
@@ -8376,7 +8370,7 @@ var renderChildren = (layout, schema, className, path, enabled) => {
8376
8370
  };
8377
8371
  var VerticalLayoutRenderer = (props) => {
8378
8372
  const { data: _data, ...otherProps } = props;
8379
- return /* @__PURE__ */ jsx_runtime52.jsx(VerticalLayoutRendererComponent, {
8373
+ return /* @__PURE__ */ jsx_runtime53.jsx(VerticalLayoutRendererComponent, {
8380
8374
  ...otherProps
8381
8375
  });
8382
8376
  };
@@ -8390,7 +8384,7 @@ var VerticalLayoutRendererComponent = import_react41.default.memo(function Verti
8390
8384
  const verticalLayout = uischema;
8391
8385
  const layoutClassName = "";
8392
8386
  const childClassNames = "";
8393
- return /* @__PURE__ */ jsx_runtime52.jsx(JsonFormsLayout, {
8387
+ return /* @__PURE__ */ jsx_runtime53.jsx(JsonFormsLayout, {
8394
8388
  className: layoutClassName,
8395
8389
  uischema,
8396
8390
  schema,