@blinkk/root-cms 1.0.0-beta.21 → 1.0.0-beta.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui/ui.js CHANGED
@@ -4188,16 +4188,16 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
4188
4188
  var _a2;
4189
4189
  return ((_a2 = x2(MantineProviderContext)) == null ? void 0 : _a2.emotionOptions) || { key: "mantine", prepend: true };
4190
4190
  }
4191
- function useMantineDefaultProps(component, defaultProps27, props) {
4191
+ function useMantineDefaultProps(component, defaultProps28, props) {
4192
4192
  var _a2, _b;
4193
4193
  const contextProps = ((_b = (_a2 = x2(MantineProviderContext)) == null ? void 0 : _a2.defaultProps) == null ? void 0 : _b[component]) || {};
4194
- return __spreadValues4(__spreadValues4(__spreadValues4({}, defaultProps27), contextProps), filterProps(props));
4194
+ return __spreadValues4(__spreadValues4(__spreadValues4({}, defaultProps28), contextProps), filterProps(props));
4195
4195
  }
4196
4196
  function MantineProvider({
4197
4197
  theme,
4198
4198
  styles: styles2 = {},
4199
4199
  classNames = {},
4200
- defaultProps: defaultProps27 = {},
4200
+ defaultProps: defaultProps28 = {},
4201
4201
  emotionOptions,
4202
4202
  withNormalizeCSS = false,
4203
4203
  withGlobalStyles = false,
@@ -4211,7 +4211,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
4211
4211
  emotionOptions: inherit ? __spreadValues4(__spreadValues4({}, ctx.emotionOptions), emotionOptions) : emotionOptions,
4212
4212
  styles: inherit ? __spreadValues4(__spreadValues4({}, ctx.styles), styles2) : styles2,
4213
4213
  classNames: inherit ? __spreadValues4(__spreadValues4({}, ctx.classNames), classNames) : classNames,
4214
- defaultProps: inherit ? __spreadValues4(__spreadValues4({}, ctx.defaultProps), defaultProps27) : defaultProps27
4214
+ defaultProps: inherit ? __spreadValues4(__spreadValues4({}, ctx.defaultProps), defaultProps28) : defaultProps28
4215
4215
  };
4216
4216
  const mergedTheme = mergeThemeWithFunctions(DEFAULT_THEME, overrides.themeOverride);
4217
4217
  return /* @__PURE__ */ _n.createElement(MantineProviderContext.Provider, {
@@ -5533,7 +5533,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
5533
5533
  // ../../node_modules/.pnpm/@mantine+styles@4.2.12_oc65g245cdodhbu3h2ksb5xmii/node_modules/@mantine/styles/esm/tss/create-styles.js
5534
5534
  function createStyles(getCssObjectOrCssObject) {
5535
5535
  const getCssObject = typeof getCssObjectOrCssObject === "function" ? getCssObjectOrCssObject : () => getCssObjectOrCssObject;
5536
- function useStyles31(params, options2) {
5536
+ function useStyles32(params, options2) {
5537
5537
  const theme = useMantineTheme();
5538
5538
  const { styles: themeStyles, classNames: themeClassNames } = useMantineThemeStyles(options2 == null ? void 0 : options2.name);
5539
5539
  const { css, cx } = useCss();
@@ -5553,7 +5553,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
5553
5553
  theme
5554
5554
  };
5555
5555
  }
5556
- return useStyles31;
5556
+ return useStyles32;
5557
5557
  }
5558
5558
 
5559
5559
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Transition/transitions.js
@@ -15437,10 +15437,20 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15437
15437
  });
15438
15438
  Select.displayName = "@mantine/core/Select";
15439
15439
 
15440
- // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/TabControl/TabControl.styles.js
15440
+ // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Stack/Stack.styles.js
15441
+ var useStyles27 = createStyles((theme, { spacing, align, justify }) => ({
15442
+ root: {
15443
+ display: "flex",
15444
+ flexDirection: "column",
15445
+ alignItems: align,
15446
+ justifyContent: justify,
15447
+ gap: theme.fn.size({ size: spacing, sizes: theme.spacing })
15448
+ }
15449
+ }));
15450
+ var Stack_styles_default = useStyles27;
15451
+
15452
+ // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Stack/Stack.js
15441
15453
  var __defProp64 = Object.defineProperty;
15442
- var __defProps33 = Object.defineProperties;
15443
- var __getOwnPropDescs33 = Object.getOwnPropertyDescriptors;
15444
15454
  var __getOwnPropSymbols64 = Object.getOwnPropertySymbols;
15445
15455
  var __hasOwnProp65 = Object.prototype.hasOwnProperty;
15446
15456
  var __propIsEnum64 = Object.prototype.propertyIsEnumerable;
@@ -15456,13 +15466,59 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15456
15466
  }
15457
15467
  return a4;
15458
15468
  };
15469
+ var __objRest38 = (source, exclude) => {
15470
+ var target = {};
15471
+ for (var prop in source)
15472
+ if (__hasOwnProp65.call(source, prop) && exclude.indexOf(prop) < 0)
15473
+ target[prop] = source[prop];
15474
+ if (source != null && __getOwnPropSymbols64)
15475
+ for (var prop of __getOwnPropSymbols64(source)) {
15476
+ if (exclude.indexOf(prop) < 0 && __propIsEnum64.call(source, prop))
15477
+ target[prop] = source[prop];
15478
+ }
15479
+ return target;
15480
+ };
15481
+ var defaultProps24 = {
15482
+ spacing: "md",
15483
+ align: "stretch",
15484
+ justify: "top"
15485
+ };
15486
+ var Stack = N2((props, ref2) => {
15487
+ const _a2 = useMantineDefaultProps("Stack", defaultProps24, props), { spacing, className, classNames, styles: styles2, align, justify } = _a2, others = __objRest38(_a2, ["spacing", "className", "classNames", "styles", "align", "justify"]);
15488
+ const { classes, cx } = Stack_styles_default({ spacing, align, justify }, { name: "Stack", classNames, styles: styles2 });
15489
+ return /* @__PURE__ */ _n.createElement(Box, __spreadValues63({
15490
+ className: cx(classes.root, className),
15491
+ ref: ref2
15492
+ }, others));
15493
+ });
15494
+ Stack.displayName = "@mantine/core/Stack";
15495
+
15496
+ // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/TabControl/TabControl.styles.js
15497
+ var __defProp65 = Object.defineProperty;
15498
+ var __defProps33 = Object.defineProperties;
15499
+ var __getOwnPropDescs33 = Object.getOwnPropertyDescriptors;
15500
+ var __getOwnPropSymbols65 = Object.getOwnPropertySymbols;
15501
+ var __hasOwnProp66 = Object.prototype.hasOwnProperty;
15502
+ var __propIsEnum65 = Object.prototype.propertyIsEnumerable;
15503
+ var __defNormalProp64 = (obj, key, value) => key in obj ? __defProp65(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15504
+ var __spreadValues64 = (a4, b6) => {
15505
+ for (var prop in b6 || (b6 = {}))
15506
+ if (__hasOwnProp66.call(b6, prop))
15507
+ __defNormalProp64(a4, prop, b6[prop]);
15508
+ if (__getOwnPropSymbols65)
15509
+ for (var prop of __getOwnPropSymbols65(b6)) {
15510
+ if (__propIsEnum65.call(b6, prop))
15511
+ __defNormalProp64(a4, prop, b6[prop]);
15512
+ }
15513
+ return a4;
15514
+ };
15459
15515
  var __spreadProps33 = (a4, b6) => __defProps33(a4, __getOwnPropDescs33(b6));
15460
- var useStyles27 = createStyles((theme, { color, orientation }, getRef2) => {
15516
+ var useStyles28 = createStyles((theme, { color, orientation }, getRef2) => {
15461
15517
  const tabActive = { ref: getRef2("tabActive") };
15462
15518
  return {
15463
15519
  tabActive,
15464
15520
  tabLabel: {},
15465
- tabControl: __spreadProps33(__spreadValues63(__spreadValues63({}, theme.fn.fontStyles()), theme.fn.focusStyles()), {
15521
+ tabControl: __spreadProps33(__spreadValues64(__spreadValues64({}, theme.fn.fontStyles()), theme.fn.focusStyles()), {
15466
15522
  WebkitTapHighlightColor: "transparent",
15467
15523
  boxSizing: "border-box",
15468
15524
  display: "block",
@@ -15535,36 +15591,36 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15535
15591
  }
15536
15592
  };
15537
15593
  });
15538
- var TabControl_styles_default = useStyles27;
15594
+ var TabControl_styles_default = useStyles28;
15539
15595
 
15540
15596
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/TabControl/TabControl.js
15541
- var __defProp65 = Object.defineProperty;
15597
+ var __defProp66 = Object.defineProperty;
15542
15598
  var __defProps34 = Object.defineProperties;
15543
15599
  var __getOwnPropDescs34 = Object.getOwnPropertyDescriptors;
15544
- var __getOwnPropSymbols65 = Object.getOwnPropertySymbols;
15545
- var __hasOwnProp66 = Object.prototype.hasOwnProperty;
15546
- var __propIsEnum65 = Object.prototype.propertyIsEnumerable;
15547
- var __defNormalProp64 = (obj, key, value) => key in obj ? __defProp65(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15548
- var __spreadValues64 = (a4, b6) => {
15600
+ var __getOwnPropSymbols66 = Object.getOwnPropertySymbols;
15601
+ var __hasOwnProp67 = Object.prototype.hasOwnProperty;
15602
+ var __propIsEnum66 = Object.prototype.propertyIsEnumerable;
15603
+ var __defNormalProp65 = (obj, key, value) => key in obj ? __defProp66(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15604
+ var __spreadValues65 = (a4, b6) => {
15549
15605
  for (var prop in b6 || (b6 = {}))
15550
- if (__hasOwnProp66.call(b6, prop))
15551
- __defNormalProp64(a4, prop, b6[prop]);
15552
- if (__getOwnPropSymbols65)
15553
- for (var prop of __getOwnPropSymbols65(b6)) {
15554
- if (__propIsEnum65.call(b6, prop))
15555
- __defNormalProp64(a4, prop, b6[prop]);
15606
+ if (__hasOwnProp67.call(b6, prop))
15607
+ __defNormalProp65(a4, prop, b6[prop]);
15608
+ if (__getOwnPropSymbols66)
15609
+ for (var prop of __getOwnPropSymbols66(b6)) {
15610
+ if (__propIsEnum66.call(b6, prop))
15611
+ __defNormalProp65(a4, prop, b6[prop]);
15556
15612
  }
15557
15613
  return a4;
15558
15614
  };
15559
15615
  var __spreadProps34 = (a4, b6) => __defProps34(a4, __getOwnPropDescs34(b6));
15560
- var __objRest38 = (source, exclude) => {
15616
+ var __objRest39 = (source, exclude) => {
15561
15617
  var target = {};
15562
15618
  for (var prop in source)
15563
- if (__hasOwnProp66.call(source, prop) && exclude.indexOf(prop) < 0)
15619
+ if (__hasOwnProp67.call(source, prop) && exclude.indexOf(prop) < 0)
15564
15620
  target[prop] = source[prop];
15565
- if (source != null && __getOwnPropSymbols65)
15566
- for (var prop of __getOwnPropSymbols65(source)) {
15567
- if (exclude.indexOf(prop) < 0 && __propIsEnum65.call(source, prop))
15621
+ if (source != null && __getOwnPropSymbols66)
15622
+ for (var prop of __getOwnPropSymbols66(source)) {
15623
+ if (exclude.indexOf(prop) < 0 && __propIsEnum66.call(source, prop))
15568
15624
  target[prop] = source[prop];
15569
15625
  }
15570
15626
  return target;
@@ -15584,7 +15640,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15584
15640
  tabKey,
15585
15641
  color: overrideColor,
15586
15642
  elementRef
15587
- } = _b, others = __objRest38(_b, [
15643
+ } = _b, others = __objRest39(_b, [
15588
15644
  "className",
15589
15645
  "active",
15590
15646
  "color",
@@ -15600,7 +15656,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15600
15656
  "elementRef"
15601
15657
  ]);
15602
15658
  const { classes, cx } = TabControl_styles_default({ color: overrideColor || color, orientation }, { classNames, styles: styles2, name: "Tabs" });
15603
- return /* @__PURE__ */ _n.createElement(Box, __spreadProps34(__spreadValues64({}, others), {
15659
+ return /* @__PURE__ */ _n.createElement(Box, __spreadProps34(__spreadValues65({}, others), {
15604
15660
  component: "button",
15605
15661
  tabIndex: active ? 0 : -1,
15606
15662
  className: cx(classes.tabControl, classes[variant2], { [classes.tabActive]: active }, className),
@@ -15619,7 +15675,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15619
15675
  TabControl.displayName = "@mantine/core/TabControl";
15620
15676
 
15621
15677
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/Tabs.styles.js
15622
- var useStyles28 = createStyles((theme, { tabPadding, orientation }, getRef2) => {
15678
+ var useStyles29 = createStyles((theme, { tabPadding, orientation }, getRef2) => {
15623
15679
  const tabsList = { ref: getRef2("tabsList") };
15624
15680
  return {
15625
15681
  tabsListWrapper: {},
@@ -15650,33 +15706,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15650
15706
  }
15651
15707
  };
15652
15708
  });
15653
- var Tabs_styles_default = useStyles28;
15709
+ var Tabs_styles_default = useStyles29;
15654
15710
 
15655
15711
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/Tabs.js
15656
- var __defProp66 = Object.defineProperty;
15657
- var __getOwnPropSymbols66 = Object.getOwnPropertySymbols;
15658
- var __hasOwnProp67 = Object.prototype.hasOwnProperty;
15659
- var __propIsEnum66 = Object.prototype.propertyIsEnumerable;
15660
- var __defNormalProp65 = (obj, key, value) => key in obj ? __defProp66(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15661
- var __spreadValues65 = (a4, b6) => {
15712
+ var __defProp67 = Object.defineProperty;
15713
+ var __getOwnPropSymbols67 = Object.getOwnPropertySymbols;
15714
+ var __hasOwnProp68 = Object.prototype.hasOwnProperty;
15715
+ var __propIsEnum67 = Object.prototype.propertyIsEnumerable;
15716
+ var __defNormalProp66 = (obj, key, value) => key in obj ? __defProp67(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15717
+ var __spreadValues66 = (a4, b6) => {
15662
15718
  for (var prop in b6 || (b6 = {}))
15663
- if (__hasOwnProp67.call(b6, prop))
15664
- __defNormalProp65(a4, prop, b6[prop]);
15665
- if (__getOwnPropSymbols66)
15666
- for (var prop of __getOwnPropSymbols66(b6)) {
15667
- if (__propIsEnum66.call(b6, prop))
15668
- __defNormalProp65(a4, prop, b6[prop]);
15719
+ if (__hasOwnProp68.call(b6, prop))
15720
+ __defNormalProp66(a4, prop, b6[prop]);
15721
+ if (__getOwnPropSymbols67)
15722
+ for (var prop of __getOwnPropSymbols67(b6)) {
15723
+ if (__propIsEnum67.call(b6, prop))
15724
+ __defNormalProp66(a4, prop, b6[prop]);
15669
15725
  }
15670
15726
  return a4;
15671
15727
  };
15672
- var __objRest39 = (source, exclude) => {
15728
+ var __objRest40 = (source, exclude) => {
15673
15729
  var target = {};
15674
15730
  for (var prop in source)
15675
- if (__hasOwnProp67.call(source, prop) && exclude.indexOf(prop) < 0)
15731
+ if (__hasOwnProp68.call(source, prop) && exclude.indexOf(prop) < 0)
15676
15732
  target[prop] = source[prop];
15677
- if (source != null && __getOwnPropSymbols66)
15678
- for (var prop of __getOwnPropSymbols66(source)) {
15679
- if (exclude.indexOf(prop) < 0 && __propIsEnum66.call(source, prop))
15733
+ if (source != null && __getOwnPropSymbols67)
15734
+ for (var prop of __getOwnPropSymbols67(source)) {
15735
+ if (exclude.indexOf(prop) < 0 && __propIsEnum67.call(source, prop))
15680
15736
  target[prop] = source[prop];
15681
15737
  }
15682
15738
  return target;
@@ -15705,7 +15761,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15705
15761
  }
15706
15762
  return -1;
15707
15763
  }
15708
- var defaultProps24 = {
15764
+ var defaultProps25 = {
15709
15765
  position: "left",
15710
15766
  grow: false,
15711
15767
  variant: "default",
@@ -15713,7 +15769,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15713
15769
  orientation: "horizontal"
15714
15770
  };
15715
15771
  var Tabs = N2((props, ref2) => {
15716
- const _a2 = useMantineDefaultProps("Tabs", defaultProps24, props), {
15772
+ const _a2 = useMantineDefaultProps("Tabs", defaultProps25, props), {
15717
15773
  className,
15718
15774
  children,
15719
15775
  initialTab,
@@ -15727,7 +15783,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15727
15783
  styles: styles2,
15728
15784
  tabPadding,
15729
15785
  orientation
15730
- } = _a2, others = __objRest39(_a2, [
15786
+ } = _a2, others = __objRest40(_a2, [
15731
15787
  "className",
15732
15788
  "children",
15733
15789
  "initialTab",
@@ -15788,7 +15844,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15788
15844
  styles: styles2
15789
15845
  }));
15790
15846
  const content = tabs[activeTab].props.children;
15791
- return /* @__PURE__ */ _n.createElement(Box, __spreadValues65({
15847
+ return /* @__PURE__ */ _n.createElement(Box, __spreadValues66({
15792
15848
  ref: ref2,
15793
15849
  className: cx(classes.root, className)
15794
15850
  }, others), /* @__PURE__ */ _n.createElement("div", {
@@ -15811,31 +15867,31 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15811
15867
  Tabs.Tab = TabControl;
15812
15868
 
15813
15869
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.styles.js
15814
- var __defProp67 = Object.defineProperty;
15870
+ var __defProp68 = Object.defineProperty;
15815
15871
  var __defProps35 = Object.defineProperties;
15816
15872
  var __getOwnPropDescs35 = Object.getOwnPropertyDescriptors;
15817
- var __getOwnPropSymbols67 = Object.getOwnPropertySymbols;
15818
- var __hasOwnProp68 = Object.prototype.hasOwnProperty;
15819
- var __propIsEnum67 = Object.prototype.propertyIsEnumerable;
15820
- var __defNormalProp66 = (obj, key, value) => key in obj ? __defProp67(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15821
- var __spreadValues66 = (a4, b6) => {
15873
+ var __getOwnPropSymbols68 = Object.getOwnPropertySymbols;
15874
+ var __hasOwnProp69 = Object.prototype.hasOwnProperty;
15875
+ var __propIsEnum68 = Object.prototype.propertyIsEnumerable;
15876
+ var __defNormalProp67 = (obj, key, value) => key in obj ? __defProp68(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15877
+ var __spreadValues67 = (a4, b6) => {
15822
15878
  for (var prop in b6 || (b6 = {}))
15823
- if (__hasOwnProp68.call(b6, prop))
15824
- __defNormalProp66(a4, prop, b6[prop]);
15825
- if (__getOwnPropSymbols67)
15826
- for (var prop of __getOwnPropSymbols67(b6)) {
15827
- if (__propIsEnum67.call(b6, prop))
15828
- __defNormalProp66(a4, prop, b6[prop]);
15879
+ if (__hasOwnProp69.call(b6, prop))
15880
+ __defNormalProp67(a4, prop, b6[prop]);
15881
+ if (__getOwnPropSymbols68)
15882
+ for (var prop of __getOwnPropSymbols68(b6)) {
15883
+ if (__propIsEnum68.call(b6, prop))
15884
+ __defNormalProp67(a4, prop, b6[prop]);
15829
15885
  }
15830
15886
  return a4;
15831
15887
  };
15832
15888
  var __spreadProps35 = (a4, b6) => __defProps35(a4, __getOwnPropDescs35(b6));
15833
- var useStyles29 = createStyles((theme, { color, radius: radius2 }) => ({
15889
+ var useStyles30 = createStyles((theme, { color, radius: radius2 }) => ({
15834
15890
  root: {
15835
15891
  position: "relative",
15836
15892
  display: "inline-block"
15837
15893
  },
15838
- body: __spreadProps35(__spreadValues66({}, theme.fn.fontStyles()), {
15894
+ body: __spreadProps35(__spreadValues67({}, theme.fn.fontStyles()), {
15839
15895
  backgroundColor: theme.fn.themeColor(color, theme.colorScheme === "dark" ? 3 : 9),
15840
15896
  lineHeight: theme.lineHeight,
15841
15897
  fontSize: theme.fontSizes.sm,
@@ -15852,38 +15908,38 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15852
15908
  zIndex: 1
15853
15909
  }
15854
15910
  }));
15855
- var Tooltip_styles_default = useStyles29;
15911
+ var Tooltip_styles_default = useStyles30;
15856
15912
 
15857
15913
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.js
15858
- var __defProp68 = Object.defineProperty;
15859
- var __getOwnPropSymbols68 = Object.getOwnPropertySymbols;
15860
- var __hasOwnProp69 = Object.prototype.hasOwnProperty;
15861
- var __propIsEnum68 = Object.prototype.propertyIsEnumerable;
15862
- var __defNormalProp67 = (obj, key, value) => key in obj ? __defProp68(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15863
- var __spreadValues67 = (a4, b6) => {
15914
+ var __defProp69 = Object.defineProperty;
15915
+ var __getOwnPropSymbols69 = Object.getOwnPropertySymbols;
15916
+ var __hasOwnProp70 = Object.prototype.hasOwnProperty;
15917
+ var __propIsEnum69 = Object.prototype.propertyIsEnumerable;
15918
+ var __defNormalProp68 = (obj, key, value) => key in obj ? __defProp69(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15919
+ var __spreadValues68 = (a4, b6) => {
15864
15920
  for (var prop in b6 || (b6 = {}))
15865
- if (__hasOwnProp69.call(b6, prop))
15866
- __defNormalProp67(a4, prop, b6[prop]);
15867
- if (__getOwnPropSymbols68)
15868
- for (var prop of __getOwnPropSymbols68(b6)) {
15869
- if (__propIsEnum68.call(b6, prop))
15870
- __defNormalProp67(a4, prop, b6[prop]);
15921
+ if (__hasOwnProp70.call(b6, prop))
15922
+ __defNormalProp68(a4, prop, b6[prop]);
15923
+ if (__getOwnPropSymbols69)
15924
+ for (var prop of __getOwnPropSymbols69(b6)) {
15925
+ if (__propIsEnum69.call(b6, prop))
15926
+ __defNormalProp68(a4, prop, b6[prop]);
15871
15927
  }
15872
15928
  return a4;
15873
15929
  };
15874
- var __objRest40 = (source, exclude) => {
15930
+ var __objRest41 = (source, exclude) => {
15875
15931
  var target = {};
15876
15932
  for (var prop in source)
15877
- if (__hasOwnProp69.call(source, prop) && exclude.indexOf(prop) < 0)
15933
+ if (__hasOwnProp70.call(source, prop) && exclude.indexOf(prop) < 0)
15878
15934
  target[prop] = source[prop];
15879
- if (source != null && __getOwnPropSymbols68)
15880
- for (var prop of __getOwnPropSymbols68(source)) {
15881
- if (exclude.indexOf(prop) < 0 && __propIsEnum68.call(source, prop))
15935
+ if (source != null && __getOwnPropSymbols69)
15936
+ for (var prop of __getOwnPropSymbols69(source)) {
15937
+ if (exclude.indexOf(prop) < 0 && __propIsEnum69.call(source, prop))
15882
15938
  target[prop] = source[prop];
15883
15939
  }
15884
15940
  return target;
15885
15941
  };
15886
- var defaultProps25 = {
15942
+ var defaultProps26 = {
15887
15943
  openDelay: 0,
15888
15944
  closeDelay: 0,
15889
15945
  gutter: 5,
@@ -15903,7 +15959,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15903
15959
  withinPortal: true
15904
15960
  };
15905
15961
  var Tooltip = N2((props, ref2) => {
15906
- const _a2 = useMantineDefaultProps("Tooltip", defaultProps25, props), {
15962
+ const _a2 = useMantineDefaultProps("Tooltip", defaultProps26, props), {
15907
15963
  className,
15908
15964
  label,
15909
15965
  children,
@@ -15933,7 +15989,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15933
15989
  styles: styles2,
15934
15990
  onMouseLeave,
15935
15991
  onMouseEnter
15936
- } = _a2, others = __objRest40(_a2, [
15992
+ } = _a2, others = __objRest41(_a2, [
15937
15993
  "className",
15938
15994
  "label",
15939
15995
  "children",
@@ -15995,7 +16051,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15995
16051
  window.clearTimeout(openTimeoutRef.current);
15996
16052
  window.clearTimeout(closeTimeoutRef.current);
15997
16053
  }, []);
15998
- return /* @__PURE__ */ _n.createElement(Box, __spreadValues67({
16054
+ return /* @__PURE__ */ _n.createElement(Box, __spreadValues68({
15999
16055
  className: cx(classes.root, className),
16000
16056
  onPointerEnter: (event) => {
16001
16057
  handleOpen();
@@ -16049,21 +16105,21 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16049
16105
  }
16050
16106
 
16051
16107
  // ../../node_modules/.pnpm/@mantine+modals@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/modals/esm/ConfirmModal.js
16052
- var __defProp69 = Object.defineProperty;
16108
+ var __defProp70 = Object.defineProperty;
16053
16109
  var __defProps36 = Object.defineProperties;
16054
16110
  var __getOwnPropDescs36 = Object.getOwnPropertyDescriptors;
16055
- var __getOwnPropSymbols69 = Object.getOwnPropertySymbols;
16056
- var __hasOwnProp70 = Object.prototype.hasOwnProperty;
16057
- var __propIsEnum69 = Object.prototype.propertyIsEnumerable;
16058
- var __defNormalProp68 = (obj, key, value) => key in obj ? __defProp69(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16059
- var __spreadValues68 = (a4, b6) => {
16111
+ var __getOwnPropSymbols70 = Object.getOwnPropertySymbols;
16112
+ var __hasOwnProp71 = Object.prototype.hasOwnProperty;
16113
+ var __propIsEnum70 = Object.prototype.propertyIsEnumerable;
16114
+ var __defNormalProp69 = (obj, key, value) => key in obj ? __defProp70(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16115
+ var __spreadValues69 = (a4, b6) => {
16060
16116
  for (var prop in b6 || (b6 = {}))
16061
- if (__hasOwnProp70.call(b6, prop))
16062
- __defNormalProp68(a4, prop, b6[prop]);
16063
- if (__getOwnPropSymbols69)
16064
- for (var prop of __getOwnPropSymbols69(b6)) {
16065
- if (__propIsEnum69.call(b6, prop))
16066
- __defNormalProp68(a4, prop, b6[prop]);
16117
+ if (__hasOwnProp71.call(b6, prop))
16118
+ __defNormalProp69(a4, prop, b6[prop]);
16119
+ if (__getOwnPropSymbols70)
16120
+ for (var prop of __getOwnPropSymbols70(b6)) {
16121
+ if (__propIsEnum70.call(b6, prop))
16122
+ __defNormalProp69(a4, prop, b6[prop]);
16067
16123
  }
16068
16124
  return a4;
16069
16125
  };
@@ -16094,13 +16150,13 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16094
16150
  };
16095
16151
  return /* @__PURE__ */ _n.createElement(_n.Fragment, null, children && /* @__PURE__ */ _n.createElement(Box, {
16096
16152
  mb: "md"
16097
- }, children), /* @__PURE__ */ _n.createElement(Group, __spreadValues68({
16153
+ }, children), /* @__PURE__ */ _n.createElement(Group, __spreadValues69({
16098
16154
  position: "right"
16099
- }, groupProps), /* @__PURE__ */ _n.createElement(Button, __spreadProps36(__spreadValues68({
16155
+ }, groupProps), /* @__PURE__ */ _n.createElement(Button, __spreadProps36(__spreadValues69({
16100
16156
  variant: "default"
16101
16157
  }, cancelProps), {
16102
16158
  onClick: handleCancel
16103
- }), (cancelProps == null ? void 0 : cancelProps.children) || cancelLabel), /* @__PURE__ */ _n.createElement(Button, __spreadProps36(__spreadValues68({}, confirmProps), {
16159
+ }), (cancelProps == null ? void 0 : cancelProps.children) || cancelLabel), /* @__PURE__ */ _n.createElement(Button, __spreadProps36(__spreadValues69({}, confirmProps), {
16104
16160
  onClick: handleConfirm
16105
16161
  }), (confirmProps == null ? void 0 : confirmProps.children) || confirmLabel)));
16106
16162
  }
@@ -16133,33 +16189,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16133
16189
  }
16134
16190
 
16135
16191
  // ../../node_modules/.pnpm/@mantine+modals@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/modals/esm/ModalsProvider.js
16136
- var __defProp70 = Object.defineProperty;
16192
+ var __defProp71 = Object.defineProperty;
16137
16193
  var __defProps37 = Object.defineProperties;
16138
16194
  var __getOwnPropDescs37 = Object.getOwnPropertyDescriptors;
16139
- var __getOwnPropSymbols70 = Object.getOwnPropertySymbols;
16140
- var __hasOwnProp71 = Object.prototype.hasOwnProperty;
16141
- var __propIsEnum70 = Object.prototype.propertyIsEnumerable;
16142
- var __defNormalProp69 = (obj, key, value) => key in obj ? __defProp70(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16143
- var __spreadValues69 = (a4, b6) => {
16195
+ var __getOwnPropSymbols71 = Object.getOwnPropertySymbols;
16196
+ var __hasOwnProp72 = Object.prototype.hasOwnProperty;
16197
+ var __propIsEnum71 = Object.prototype.propertyIsEnumerable;
16198
+ var __defNormalProp70 = (obj, key, value) => key in obj ? __defProp71(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16199
+ var __spreadValues70 = (a4, b6) => {
16144
16200
  for (var prop in b6 || (b6 = {}))
16145
- if (__hasOwnProp71.call(b6, prop))
16146
- __defNormalProp69(a4, prop, b6[prop]);
16147
- if (__getOwnPropSymbols70)
16148
- for (var prop of __getOwnPropSymbols70(b6)) {
16149
- if (__propIsEnum70.call(b6, prop))
16150
- __defNormalProp69(a4, prop, b6[prop]);
16201
+ if (__hasOwnProp72.call(b6, prop))
16202
+ __defNormalProp70(a4, prop, b6[prop]);
16203
+ if (__getOwnPropSymbols71)
16204
+ for (var prop of __getOwnPropSymbols71(b6)) {
16205
+ if (__propIsEnum71.call(b6, prop))
16206
+ __defNormalProp70(a4, prop, b6[prop]);
16151
16207
  }
16152
16208
  return a4;
16153
16209
  };
16154
16210
  var __spreadProps37 = (a4, b6) => __defProps37(a4, __getOwnPropDescs37(b6));
16155
- var __objRest41 = (source, exclude) => {
16211
+ var __objRest42 = (source, exclude) => {
16156
16212
  var target = {};
16157
16213
  for (var prop in source)
16158
- if (__hasOwnProp71.call(source, prop) && exclude.indexOf(prop) < 0)
16214
+ if (__hasOwnProp72.call(source, prop) && exclude.indexOf(prop) < 0)
16159
16215
  target[prop] = source[prop];
16160
- if (source != null && __getOwnPropSymbols70)
16161
- for (var prop of __getOwnPropSymbols70(source)) {
16162
- if (exclude.indexOf(prop) < 0 && __propIsEnum70.call(source, prop))
16216
+ if (source != null && __getOwnPropSymbols71)
16217
+ for (var prop of __getOwnPropSymbols71(source)) {
16218
+ if (exclude.indexOf(prop) < 0 && __propIsEnum71.call(source, prop))
16163
16219
  target[prop] = source[prop];
16164
16220
  }
16165
16221
  return target;
@@ -16179,7 +16235,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16179
16235
  confirmProps,
16180
16236
  groupProps,
16181
16237
  labels
16182
- } = _a2, others = __objRest41(_a2, [
16238
+ } = _a2, others = __objRest42(_a2, [
16183
16239
  "id",
16184
16240
  "children",
16185
16241
  "onCancel",
@@ -16204,7 +16260,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16204
16260
  groupProps,
16205
16261
  labels
16206
16262
  },
16207
- modalProps: __spreadValues69({
16263
+ modalProps: __spreadValues70({
16208
16264
  id: id2
16209
16265
  }, others)
16210
16266
  };
@@ -16283,7 +16339,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16283
16339
  var _a2;
16284
16340
  switch ((_a2 = state.current) == null ? void 0 : _a2.type) {
16285
16341
  case "context": {
16286
- const _b = state.current.props, { innerProps } = _b, rest = __objRest41(_b, ["innerProps"]);
16342
+ const _b = state.current.props, { innerProps } = _b, rest = __objRest42(_b, ["innerProps"]);
16287
16343
  const ContextModal = modals[state.current.ctx];
16288
16344
  return {
16289
16345
  modalProps: rest,
@@ -16298,14 +16354,14 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16298
16354
  const { modalProps: separatedModalProps, confirmProps: separatedConfirmProps } = separateConfirmModalProps(state.current.props);
16299
16355
  return {
16300
16356
  modalProps: separatedModalProps,
16301
- content: /* @__PURE__ */ _n.createElement(ConfirmModal, __spreadProps37(__spreadValues69({}, separatedConfirmProps), {
16357
+ content: /* @__PURE__ */ _n.createElement(ConfirmModal, __spreadProps37(__spreadValues70({}, separatedConfirmProps), {
16302
16358
  id: state.current.id,
16303
16359
  labels: state.current.props.labels || labels
16304
16360
  }))
16305
16361
  };
16306
16362
  }
16307
16363
  case "content": {
16308
- const _c2 = state.current.props, { children: currentModalChildren } = _c2, rest = __objRest41(_c2, ["children"]);
16364
+ const _c2 = state.current.props, { children: currentModalChildren } = _c2, rest = __objRest42(_c2, ["children"]);
16309
16365
  return {
16310
16366
  modalProps: rest,
16311
16367
  content: /* @__PURE__ */ _n.createElement(_n.Fragment, null, currentModalChildren)
@@ -16322,7 +16378,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16322
16378
  const { modalProps: currentModalProps, content } = getCurrentModal();
16323
16379
  return /* @__PURE__ */ _n.createElement(ModalsContext.Provider, {
16324
16380
  value: ctx
16325
- }, /* @__PURE__ */ _n.createElement(Modal, __spreadProps37(__spreadValues69(__spreadValues69({}, modalProps), currentModalProps), {
16381
+ }, /* @__PURE__ */ _n.createElement(Modal, __spreadProps37(__spreadValues70(__spreadValues70({}, modalProps), currentModalProps), {
16326
16382
  opened: state.modals.length > 0,
16327
16383
  onClose: () => closeModal(state.current.id)
16328
16384
  }), content), children);
@@ -16908,7 +16964,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16908
16964
  return obj[k7];
16909
16965
  });
16910
16966
  };
16911
- var defaultProps26 = {
16967
+ var defaultProps27 = {
16912
16968
  component: "div",
16913
16969
  childFactory: function childFactory(child2) {
16914
16970
  return child2;
@@ -17036,7 +17092,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17036
17092
  */
17037
17093
  childFactory: import_prop_types3.default.func
17038
17094
  } : {};
17039
- TransitionGroup.defaultProps = defaultProps26;
17095
+ TransitionGroup.defaultProps = defaultProps27;
17040
17096
  var TransitionGroup_default = TransitionGroup;
17041
17097
 
17042
17098
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/events.js
@@ -17089,19 +17145,19 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17089
17145
  var get_position_styles_default = getPositionStyles;
17090
17146
 
17091
17147
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/get-notification-state-styles/get-notification-state-styles.js
17092
- var __defProp71 = Object.defineProperty;
17093
- var __getOwnPropSymbols71 = Object.getOwnPropertySymbols;
17094
- var __hasOwnProp72 = Object.prototype.hasOwnProperty;
17095
- var __propIsEnum71 = Object.prototype.propertyIsEnumerable;
17096
- var __defNormalProp70 = (obj, key, value) => key in obj ? __defProp71(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17097
- var __spreadValues70 = (a4, b6) => {
17148
+ var __defProp72 = Object.defineProperty;
17149
+ var __getOwnPropSymbols72 = Object.getOwnPropertySymbols;
17150
+ var __hasOwnProp73 = Object.prototype.hasOwnProperty;
17151
+ var __propIsEnum72 = Object.prototype.propertyIsEnumerable;
17152
+ var __defNormalProp71 = (obj, key, value) => key in obj ? __defProp72(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17153
+ var __spreadValues71 = (a4, b6) => {
17098
17154
  for (var prop in b6 || (b6 = {}))
17099
- if (__hasOwnProp72.call(b6, prop))
17100
- __defNormalProp70(a4, prop, b6[prop]);
17101
- if (__getOwnPropSymbols71)
17102
- for (var prop of __getOwnPropSymbols71(b6)) {
17103
- if (__propIsEnum71.call(b6, prop))
17104
- __defNormalProp70(a4, prop, b6[prop]);
17155
+ if (__hasOwnProp73.call(b6, prop))
17156
+ __defNormalProp71(a4, prop, b6[prop]);
17157
+ if (__getOwnPropSymbols72)
17158
+ for (var prop of __getOwnPropSymbols72(b6)) {
17159
+ if (__propIsEnum72.call(b6, prop))
17160
+ __defNormalProp71(a4, prop, b6[prop]);
17105
17161
  }
17106
17162
  return a4;
17107
17163
  };
@@ -17148,7 +17204,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17148
17204
  exiting: outState,
17149
17205
  exited: outState
17150
17206
  };
17151
- return __spreadValues70(__spreadValues70({}, commonStyles), transitionStyles[state]);
17207
+ return __spreadValues71(__spreadValues71({}, commonStyles), transitionStyles[state]);
17152
17208
  }
17153
17209
  var get_notification_state_styles_default = getNotificationStateStyles;
17154
17210
 
@@ -17165,33 +17221,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17165
17221
  var get_auto_close_default = getAutoClose;
17166
17222
 
17167
17223
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationContainer/NotificationContainer.js
17168
- var __defProp72 = Object.defineProperty;
17224
+ var __defProp73 = Object.defineProperty;
17169
17225
  var __defProps38 = Object.defineProperties;
17170
17226
  var __getOwnPropDescs38 = Object.getOwnPropertyDescriptors;
17171
- var __getOwnPropSymbols72 = Object.getOwnPropertySymbols;
17172
- var __hasOwnProp73 = Object.prototype.hasOwnProperty;
17173
- var __propIsEnum72 = Object.prototype.propertyIsEnumerable;
17174
- var __defNormalProp71 = (obj, key, value) => key in obj ? __defProp72(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17175
- var __spreadValues71 = (a4, b6) => {
17227
+ var __getOwnPropSymbols73 = Object.getOwnPropertySymbols;
17228
+ var __hasOwnProp74 = Object.prototype.hasOwnProperty;
17229
+ var __propIsEnum73 = Object.prototype.propertyIsEnumerable;
17230
+ var __defNormalProp72 = (obj, key, value) => key in obj ? __defProp73(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17231
+ var __spreadValues72 = (a4, b6) => {
17176
17232
  for (var prop in b6 || (b6 = {}))
17177
- if (__hasOwnProp73.call(b6, prop))
17178
- __defNormalProp71(a4, prop, b6[prop]);
17179
- if (__getOwnPropSymbols72)
17180
- for (var prop of __getOwnPropSymbols72(b6)) {
17181
- if (__propIsEnum72.call(b6, prop))
17182
- __defNormalProp71(a4, prop, b6[prop]);
17233
+ if (__hasOwnProp74.call(b6, prop))
17234
+ __defNormalProp72(a4, prop, b6[prop]);
17235
+ if (__getOwnPropSymbols73)
17236
+ for (var prop of __getOwnPropSymbols73(b6)) {
17237
+ if (__propIsEnum73.call(b6, prop))
17238
+ __defNormalProp72(a4, prop, b6[prop]);
17183
17239
  }
17184
17240
  return a4;
17185
17241
  };
17186
17242
  var __spreadProps38 = (a4, b6) => __defProps38(a4, __getOwnPropDescs38(b6));
17187
- var __objRest42 = (source, exclude) => {
17243
+ var __objRest43 = (source, exclude) => {
17188
17244
  var target = {};
17189
17245
  for (var prop in source)
17190
- if (__hasOwnProp73.call(source, prop) && exclude.indexOf(prop) < 0)
17246
+ if (__hasOwnProp74.call(source, prop) && exclude.indexOf(prop) < 0)
17191
17247
  target[prop] = source[prop];
17192
- if (source != null && __getOwnPropSymbols72)
17193
- for (var prop of __getOwnPropSymbols72(source)) {
17194
- if (exclude.indexOf(prop) < 0 && __propIsEnum72.call(source, prop))
17248
+ if (source != null && __getOwnPropSymbols73)
17249
+ for (var prop of __getOwnPropSymbols73(source)) {
17250
+ if (exclude.indexOf(prop) < 0 && __propIsEnum73.call(source, prop))
17195
17251
  target[prop] = source[prop];
17196
17252
  }
17197
17253
  return target;
@@ -17202,13 +17258,13 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17202
17258
  autoClose,
17203
17259
  onHide,
17204
17260
  innerRef
17205
- } = _b, others = __objRest42(_b, [
17261
+ } = _b, others = __objRest43(_b, [
17206
17262
  "notification",
17207
17263
  "autoClose",
17208
17264
  "onHide",
17209
17265
  "innerRef"
17210
17266
  ]);
17211
- const _a22 = notification, { autoClose: notificationAutoClose } = _a22, notificationProps = __objRest42(_a22, ["autoClose"]);
17267
+ const _a22 = notification, { autoClose: notificationAutoClose } = _a22, notificationProps = __objRest43(_a22, ["autoClose"]);
17212
17268
  const autoCloseTimeout = get_auto_close_default(autoClose, notificationAutoClose);
17213
17269
  const hideTimeout = A2();
17214
17270
  const handleHide = () => {
@@ -17232,7 +17288,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17232
17288
  handleDelayedHide();
17233
17289
  return cancelDelayedHide;
17234
17290
  }, [autoClose, notification.autoClose]);
17235
- return /* @__PURE__ */ _n.createElement(Notification, __spreadProps38(__spreadValues71(__spreadValues71({}, notificationProps), others), {
17291
+ return /* @__PURE__ */ _n.createElement(Notification, __spreadProps38(__spreadValues72(__spreadValues72({}, notificationProps), others), {
17236
17292
  onClose: handleHide,
17237
17293
  onMouseEnter: cancelDelayedHide,
17238
17294
  onMouseLeave: handleDelayedHide,
@@ -17243,7 +17299,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17243
17299
  var NotificationContainer_default = NotificationContainer;
17244
17300
 
17245
17301
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.styles.js
17246
- var useStyles30 = createStyles((theme) => ({
17302
+ var useStyles31 = createStyles((theme) => ({
17247
17303
  notifications: {
17248
17304
  width: `calc(100% - ${theme.spacing.md * 2}px)`,
17249
17305
  boxSizing: "border-box",
@@ -17256,24 +17312,24 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17256
17312
  }
17257
17313
  }
17258
17314
  }));
17259
- var NotificationsProvider_styles_default = useStyles30;
17315
+ var NotificationsProvider_styles_default = useStyles31;
17260
17316
 
17261
17317
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/use-notifications-state/use-notifications-state.js
17262
- var __defProp73 = Object.defineProperty;
17318
+ var __defProp74 = Object.defineProperty;
17263
17319
  var __defProps39 = Object.defineProperties;
17264
17320
  var __getOwnPropDescs39 = Object.getOwnPropertyDescriptors;
17265
- var __getOwnPropSymbols73 = Object.getOwnPropertySymbols;
17266
- var __hasOwnProp74 = Object.prototype.hasOwnProperty;
17267
- var __propIsEnum73 = Object.prototype.propertyIsEnumerable;
17268
- var __defNormalProp72 = (obj, key, value) => key in obj ? __defProp73(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17269
- var __spreadValues72 = (a4, b6) => {
17321
+ var __getOwnPropSymbols74 = Object.getOwnPropertySymbols;
17322
+ var __hasOwnProp75 = Object.prototype.hasOwnProperty;
17323
+ var __propIsEnum74 = Object.prototype.propertyIsEnumerable;
17324
+ var __defNormalProp73 = (obj, key, value) => key in obj ? __defProp74(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17325
+ var __spreadValues73 = (a4, b6) => {
17270
17326
  for (var prop in b6 || (b6 = {}))
17271
- if (__hasOwnProp74.call(b6, prop))
17272
- __defNormalProp72(a4, prop, b6[prop]);
17273
- if (__getOwnPropSymbols73)
17274
- for (var prop of __getOwnPropSymbols73(b6)) {
17275
- if (__propIsEnum73.call(b6, prop))
17276
- __defNormalProp72(a4, prop, b6[prop]);
17327
+ if (__hasOwnProp75.call(b6, prop))
17328
+ __defNormalProp73(a4, prop, b6[prop]);
17329
+ if (__getOwnPropSymbols74)
17330
+ for (var prop of __getOwnPropSymbols74(b6)) {
17331
+ if (__propIsEnum74.call(b6, prop))
17332
+ __defNormalProp73(a4, prop, b6[prop]);
17277
17333
  }
17278
17334
  return a4;
17279
17335
  };
@@ -17289,7 +17345,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17289
17345
  if (notification.id && notifications.some((n3) => n3.id === notification.id)) {
17290
17346
  return notifications;
17291
17347
  }
17292
- return [...notifications, __spreadProps39(__spreadValues72({}, notification), { id: id2 })];
17348
+ return [...notifications, __spreadProps39(__spreadValues73({}, notification), { id: id2 })];
17293
17349
  });
17294
17350
  return id2;
17295
17351
  };
@@ -17323,30 +17379,30 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17323
17379
  var use_notifications_state_default = useNotificationsState;
17324
17380
 
17325
17381
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.js
17326
- var __defProp74 = Object.defineProperty;
17327
- var __getOwnPropSymbols74 = Object.getOwnPropertySymbols;
17328
- var __hasOwnProp75 = Object.prototype.hasOwnProperty;
17329
- var __propIsEnum74 = Object.prototype.propertyIsEnumerable;
17330
- var __defNormalProp73 = (obj, key, value) => key in obj ? __defProp74(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17331
- var __spreadValues73 = (a4, b6) => {
17382
+ var __defProp75 = Object.defineProperty;
17383
+ var __getOwnPropSymbols75 = Object.getOwnPropertySymbols;
17384
+ var __hasOwnProp76 = Object.prototype.hasOwnProperty;
17385
+ var __propIsEnum75 = Object.prototype.propertyIsEnumerable;
17386
+ var __defNormalProp74 = (obj, key, value) => key in obj ? __defProp75(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17387
+ var __spreadValues74 = (a4, b6) => {
17332
17388
  for (var prop in b6 || (b6 = {}))
17333
- if (__hasOwnProp75.call(b6, prop))
17334
- __defNormalProp73(a4, prop, b6[prop]);
17335
- if (__getOwnPropSymbols74)
17336
- for (var prop of __getOwnPropSymbols74(b6)) {
17337
- if (__propIsEnum74.call(b6, prop))
17338
- __defNormalProp73(a4, prop, b6[prop]);
17389
+ if (__hasOwnProp76.call(b6, prop))
17390
+ __defNormalProp74(a4, prop, b6[prop]);
17391
+ if (__getOwnPropSymbols75)
17392
+ for (var prop of __getOwnPropSymbols75(b6)) {
17393
+ if (__propIsEnum75.call(b6, prop))
17394
+ __defNormalProp74(a4, prop, b6[prop]);
17339
17395
  }
17340
17396
  return a4;
17341
17397
  };
17342
- var __objRest43 = (source, exclude) => {
17398
+ var __objRest44 = (source, exclude) => {
17343
17399
  var target = {};
17344
17400
  for (var prop in source)
17345
- if (__hasOwnProp75.call(source, prop) && exclude.indexOf(prop) < 0)
17401
+ if (__hasOwnProp76.call(source, prop) && exclude.indexOf(prop) < 0)
17346
17402
  target[prop] = source[prop];
17347
- if (source != null && __getOwnPropSymbols74)
17348
- for (var prop of __getOwnPropSymbols74(source)) {
17349
- if (exclude.indexOf(prop) < 0 && __propIsEnum74.call(source, prop))
17403
+ if (source != null && __getOwnPropSymbols75)
17404
+ for (var prop of __getOwnPropSymbols75(source)) {
17405
+ if (exclude.indexOf(prop) < 0 && __propIsEnum75.call(source, prop))
17350
17406
  target[prop] = source[prop];
17351
17407
  }
17352
17408
  return target;
@@ -17371,7 +17427,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17371
17427
  zIndex = getDefaultZIndex("overlay"),
17372
17428
  style,
17373
17429
  children
17374
- } = _b, others = __objRest43(_b, [
17430
+ } = _b, others = __objRest44(_b, [
17375
17431
  "className",
17376
17432
  "position",
17377
17433
  "autoClose",
@@ -17429,7 +17485,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17429
17485
  className: classes.notification,
17430
17486
  autoClose,
17431
17487
  sx: [
17432
- __spreadValues73({}, get_notification_state_styles_default({
17488
+ __spreadValues74({}, get_notification_state_styles_default({
17433
17489
  state,
17434
17490
  positioning,
17435
17491
  transitionDuration: duration,
@@ -17442,10 +17498,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17442
17498
  value: ctx
17443
17499
  }, /* @__PURE__ */ _n.createElement(Portal, {
17444
17500
  zIndex
17445
- }, /* @__PURE__ */ _n.createElement(Box, __spreadValues73({
17501
+ }, /* @__PURE__ */ _n.createElement(Box, __spreadValues74({
17446
17502
  className: cx(classes.notifications, className),
17447
17503
  style,
17448
- sx: __spreadValues73({
17504
+ sx: __spreadValues74({
17449
17505
  maxWidth: containerWidth
17450
17506
  }, get_position_styles_default(positioning, containerWidth, theme.spacing.md))
17451
17507
  }, others), /* @__PURE__ */ _n.createElement(TransitionGroup_default, null, items))), children);
@@ -37598,7 +37654,7 @@ ${this.customData.serverResponse}`;
37598
37654
  );
37599
37655
  }
37600
37656
 
37601
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/defaultAttributes.js
37657
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/defaultAttributes.js
37602
37658
  var defaultAttributes = {
37603
37659
  xmlns: "http://www.w3.org/2000/svg",
37604
37660
  width: 24,
@@ -37611,44 +37667,44 @@ ${this.customData.serverResponse}`;
37611
37667
  "stroke-linejoin": "round"
37612
37668
  };
37613
37669
 
37614
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/createPreactComponent.js
37615
- var __defProp75 = Object.defineProperty;
37670
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/createPreactComponent.js
37671
+ var __defProp76 = Object.defineProperty;
37616
37672
  var __defProps40 = Object.defineProperties;
37617
37673
  var __getOwnPropDescs40 = Object.getOwnPropertyDescriptors;
37618
- var __getOwnPropSymbols75 = Object.getOwnPropertySymbols;
37619
- var __hasOwnProp76 = Object.prototype.hasOwnProperty;
37620
- var __propIsEnum75 = Object.prototype.propertyIsEnumerable;
37621
- var __defNormalProp74 = (obj, key, value) => key in obj ? __defProp75(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37622
- var __spreadValues74 = (a4, b6) => {
37674
+ var __getOwnPropSymbols76 = Object.getOwnPropertySymbols;
37675
+ var __hasOwnProp77 = Object.prototype.hasOwnProperty;
37676
+ var __propIsEnum76 = Object.prototype.propertyIsEnumerable;
37677
+ var __defNormalProp75 = (obj, key, value) => key in obj ? __defProp76(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
37678
+ var __spreadValues75 = (a4, b6) => {
37623
37679
  for (var prop in b6 || (b6 = {}))
37624
- if (__hasOwnProp76.call(b6, prop))
37625
- __defNormalProp74(a4, prop, b6[prop]);
37626
- if (__getOwnPropSymbols75)
37627
- for (var prop of __getOwnPropSymbols75(b6)) {
37628
- if (__propIsEnum75.call(b6, prop))
37629
- __defNormalProp74(a4, prop, b6[prop]);
37680
+ if (__hasOwnProp77.call(b6, prop))
37681
+ __defNormalProp75(a4, prop, b6[prop]);
37682
+ if (__getOwnPropSymbols76)
37683
+ for (var prop of __getOwnPropSymbols76(b6)) {
37684
+ if (__propIsEnum76.call(b6, prop))
37685
+ __defNormalProp75(a4, prop, b6[prop]);
37630
37686
  }
37631
37687
  return a4;
37632
37688
  };
37633
37689
  var __spreadProps40 = (a4, b6) => __defProps40(a4, __getOwnPropDescs40(b6));
37634
- var __objRest44 = (source, exclude) => {
37690
+ var __objRest45 = (source, exclude) => {
37635
37691
  var target = {};
37636
37692
  for (var prop in source)
37637
- if (__hasOwnProp76.call(source, prop) && exclude.indexOf(prop) < 0)
37693
+ if (__hasOwnProp77.call(source, prop) && exclude.indexOf(prop) < 0)
37638
37694
  target[prop] = source[prop];
37639
- if (source != null && __getOwnPropSymbols75)
37640
- for (var prop of __getOwnPropSymbols75(source)) {
37641
- if (exclude.indexOf(prop) < 0 && __propIsEnum75.call(source, prop))
37695
+ if (source != null && __getOwnPropSymbols76)
37696
+ for (var prop of __getOwnPropSymbols76(source)) {
37697
+ if (exclude.indexOf(prop) < 0 && __propIsEnum76.call(source, prop))
37642
37698
  target[prop] = source[prop];
37643
37699
  }
37644
37700
  return target;
37645
37701
  };
37646
37702
  var createPreactComponent = (iconName, iconNamePascal, iconNode) => {
37647
37703
  const Component2 = (_a2) => {
37648
- var _b = _a2, { color = "currentColor", size: size2 = 24, stroke = 2, children } = _b, rest = __objRest44(_b, ["color", "size", "stroke", "children"]);
37704
+ var _b = _a2, { color = "currentColor", size: size2 = 24, stroke = 2, children } = _b, rest = __objRest45(_b, ["color", "size", "stroke", "children"]);
37649
37705
  return h(
37650
37706
  "svg",
37651
- __spreadValues74(__spreadProps40(__spreadValues74({}, defaultAttributes), {
37707
+ __spreadValues75(__spreadProps40(__spreadValues75({}, defaultAttributes), {
37652
37708
  width: size2,
37653
37709
  height: size2,
37654
37710
  stroke: color,
@@ -37662,14 +37718,14 @@ ${this.customData.serverResponse}`;
37662
37718
  return Component2;
37663
37719
  };
37664
37720
 
37665
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconArrowLeft.js
37721
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconArrowLeft.js
37666
37722
  var IconArrowLeft = createPreactComponent("arrow-left", "IconArrowLeft", [
37667
37723
  ["path", { d: "M5 12l14 0", key: "svg-0" }],
37668
37724
  ["path", { d: "M5 12l6 6", key: "svg-1" }],
37669
37725
  ["path", { d: "M5 12l6 -6", key: "svg-2" }]
37670
37726
  ]);
37671
37727
 
37672
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconArrowRoundaboutRight.js
37728
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconArrowRoundaboutRight.js
37673
37729
  var IconArrowRoundaboutRight = createPreactComponent(
37674
37730
  "arrow-roundabout-right",
37675
37731
  "IconArrowRoundaboutRight",
@@ -37679,13 +37735,18 @@ ${this.customData.serverResponse}`;
37679
37735
  ]
37680
37736
  );
37681
37737
 
37682
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconArrowUpRight.js
37738
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconArrowUpRight.js
37683
37739
  var IconArrowUpRight = createPreactComponent("arrow-up-right", "IconArrowUpRight", [
37684
37740
  ["path", { d: "M17 7l-10 10", key: "svg-0" }],
37685
37741
  ["path", { d: "M8 7l9 0l0 9", key: "svg-1" }]
37686
37742
  ]);
37687
37743
 
37688
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCircleArrowDown.js
37744
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconChevronDown.js
37745
+ var IconChevronDown = createPreactComponent("chevron-down", "IconChevronDown", [
37746
+ ["path", { d: "M6 9l6 6l6 -6", key: "svg-0" }]
37747
+ ]);
37748
+
37749
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCircleArrowDown.js
37689
37750
  var IconCircleArrowDown = createPreactComponent(
37690
37751
  "circle-arrow-down",
37691
37752
  "IconCircleArrowDown",
@@ -37697,7 +37758,7 @@ ${this.customData.serverResponse}`;
37697
37758
  ]
37698
37759
  );
37699
37760
 
37700
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCircleArrowUp.js
37761
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCircleArrowUp.js
37701
37762
  var IconCircleArrowUp = createPreactComponent("circle-arrow-up", "IconCircleArrowUp", [
37702
37763
  ["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }],
37703
37764
  ["path", { d: "M12 8l-4 4", key: "svg-1" }],
@@ -37705,26 +37766,26 @@ ${this.customData.serverResponse}`;
37705
37766
  ["path", { d: "M16 12l-4 -4", key: "svg-3" }]
37706
37767
  ]);
37707
37768
 
37708
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCirclePlus.js
37769
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCirclePlus.js
37709
37770
  var IconCirclePlus = createPreactComponent("circle-plus", "IconCirclePlus", [
37710
37771
  ["path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", key: "svg-0" }],
37711
37772
  ["path", { d: "M9 12l6 0", key: "svg-1" }],
37712
37773
  ["path", { d: "M12 9l0 6", key: "svg-2" }]
37713
37774
  ]);
37714
37775
 
37715
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCloudOff.js
37776
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCloudOff.js
37716
37777
  var IconCloudOff = createPreactComponent("cloud-off", "IconCloudOff", [
37717
- ["path", { d: "M3 3l18 18", key: "svg-0" }],
37718
37778
  [
37719
37779
  "path",
37720
37780
  {
37721
- d: "M18 18h-11c-2.598 0 -4.705 -2.015 -4.705 -4.5s2.107 -4.5 4.705 -4.5c.112 -.5 .305 -.973 .568 -1.408m2.094 -1.948c.329 -.174 .68 -.319 1.05 -.43c1.9 -.576 4 -.194 5.5 1c1.503 1.192 2.185 3.017 1.788 4.786h1a3.5 3.5 0 0 1 2.212 6.212",
37722
- key: "svg-1"
37781
+ d: "M9.58 5.548c.24 -.11 .492 -.207 .752 -.286c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 .957 -.383 1.824 -1.003 2.454m-2.997 1.033h-11.343c-2.572 -.004 -4.657 -2.011 -4.657 -4.487c0 -2.475 2.085 -4.482 4.657 -4.482c.13 -.582 .37 -1.128 .7 -1.62",
37782
+ key: "svg-0"
37723
37783
  }
37724
- ]
37784
+ ],
37785
+ ["path", { d: "M3 3l18 18", key: "svg-1" }]
37725
37786
  ]);
37726
37787
 
37727
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCopy.js
37788
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconCopy.js
37728
37789
  var IconCopy = createPreactComponent("copy", "IconCopy", [
37729
37790
  [
37730
37791
  "path",
@@ -37742,60 +37803,73 @@ ${this.customData.serverResponse}`;
37742
37803
  ]
37743
37804
  ]);
37744
37805
 
37745
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDatabase.js
37806
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDatabase.js
37746
37807
  var IconDatabase = createPreactComponent("database", "IconDatabase", [
37747
37808
  ["path", { d: "M12 6m-8 0a8 3 0 1 0 16 0a8 3 0 1 0 -16 0", key: "svg-0" }],
37748
37809
  ["path", { d: "M4 6v6a8 3 0 0 0 16 0v-6", key: "svg-1" }],
37749
37810
  ["path", { d: "M4 12v6a8 3 0 0 0 16 0v-6", key: "svg-2" }]
37750
37811
  ]);
37751
37812
 
37752
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDeviceDesktop.js
37813
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDeviceDesktop.js
37753
37814
  var IconDeviceDesktop = createPreactComponent("device-desktop", "IconDeviceDesktop", [
37754
37815
  [
37755
37816
  "path",
37756
37817
  {
37757
- d: "M3 4m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1z",
37818
+ d: "M3 5a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-10z",
37758
37819
  key: "svg-0"
37759
37820
  }
37760
37821
  ],
37761
- ["path", { d: "M7 20l10 0", key: "svg-1" }],
37762
- ["path", { d: "M9 16l0 4", key: "svg-2" }],
37763
- ["path", { d: "M15 16l0 4", key: "svg-3" }]
37822
+ ["path", { d: "M7 20h10", key: "svg-1" }],
37823
+ ["path", { d: "M9 16v4", key: "svg-2" }],
37824
+ ["path", { d: "M15 16v4", key: "svg-3" }]
37764
37825
  ]);
37765
37826
 
37766
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDeviceIpad.js
37827
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDeviceIpad.js
37767
37828
  var IconDeviceIpad = createPreactComponent("device-ipad", "IconDeviceIpad", [
37768
37829
  [
37769
37830
  "path",
37770
37831
  {
37771
- d: "M20 4v16a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-16a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2z",
37832
+ d: "M18 2a3 3 0 0 1 2.995 2.824l.005 .176v14a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-14a3 3 0 0 1 2.824 -2.995l.176 -.005h12zm-3 15h-6l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h6l.117 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z",
37772
37833
  key: "svg-0"
37773
37834
  }
37774
- ],
37775
- ["path", { d: "M9 19h6", key: "svg-1" }]
37835
+ ]
37776
37836
  ]);
37777
37837
 
37778
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDeviceMobile.js
37838
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDeviceMobile.js
37779
37839
  var IconDeviceMobile = createPreactComponent("device-mobile", "IconDeviceMobile", [
37780
37840
  [
37781
37841
  "path",
37782
37842
  {
37783
- d: "M6 3m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",
37843
+ d: "M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",
37784
37844
  key: "svg-0"
37785
37845
  }
37786
37846
  ],
37787
- ["path", { d: "M11 4l2 0", key: "svg-1" }],
37788
- ["path", { d: "M12 17l0 .01", key: "svg-2" }]
37847
+ ["path", { d: "M11 4h2", key: "svg-1" }],
37848
+ ["path", { d: "M12 17v.01", key: "svg-2" }]
37789
37849
  ]);
37790
37850
 
37791
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDotsVertical.js
37851
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconDotsVertical.js
37792
37852
  var IconDotsVertical = createPreactComponent("dots-vertical", "IconDotsVertical", [
37793
37853
  ["path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-0" }],
37794
37854
  ["path", { d: "M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }],
37795
37855
  ["path", { d: "M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-2" }]
37796
37856
  ]);
37797
37857
 
37798
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconFileUpload.js
37858
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconFileDownload.js
37859
+ var IconFileDownload = createPreactComponent("file-download", "IconFileDownload", [
37860
+ ["path", { d: "M14 3v4a1 1 0 0 0 1 1h4", key: "svg-0" }],
37861
+ [
37862
+ "path",
37863
+ {
37864
+ d: "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",
37865
+ key: "svg-1"
37866
+ }
37867
+ ],
37868
+ ["path", { d: "M12 17v-6", key: "svg-2" }],
37869
+ ["path", { d: "M9.5 14.5l2.5 2.5l2.5 -2.5", key: "svg-3" }]
37870
+ ]);
37871
+
37872
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconFileUpload.js
37799
37873
  var IconFileUpload = createPreactComponent("file-upload", "IconFileUpload", [
37800
37874
  ["path", { d: "M14 3v4a1 1 0 0 0 1 1h4", key: "svg-0" }],
37801
37875
  [
@@ -37809,7 +37883,7 @@ ${this.customData.serverResponse}`;
37809
37883
  ["path", { d: "M9.5 13.5l2.5 -2.5l2.5 2.5", key: "svg-3" }]
37810
37884
  ]);
37811
37885
 
37812
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconFolder.js
37886
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconFolder.js
37813
37887
  var IconFolder = createPreactComponent("folder", "IconFolder", [
37814
37888
  [
37815
37889
  "path",
@@ -37820,14 +37894,14 @@ ${this.customData.serverResponse}`;
37820
37894
  ]
37821
37895
  ]);
37822
37896
 
37823
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconHome.js
37897
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconHome.js
37824
37898
  var IconHome = createPreactComponent("home", "IconHome", [
37825
37899
  ["path", { d: "M5 12l-2 0l9 -9l9 9l-2 0", key: "svg-0" }],
37826
37900
  ["path", { d: "M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7", key: "svg-1" }],
37827
37901
  ["path", { d: "M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6", key: "svg-2" }]
37828
37902
  ]);
37829
37903
 
37830
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconLanguage.js
37904
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconLanguage.js
37831
37905
  var IconLanguage = createPreactComponent("language", "IconLanguage", [
37832
37906
  ["path", { d: "M4 5h7", key: "svg-0" }],
37833
37907
  ["path", { d: "M9 3v2c0 4.418 -2.239 8 -5 8", key: "svg-1" }],
@@ -37836,40 +37910,67 @@ ${this.customData.serverResponse}`;
37836
37910
  ["path", { d: "M19.1 18h-6.2", key: "svg-4" }]
37837
37911
  ]);
37838
37912
 
37839
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconPhotoUp.js
37913
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconMapPin.js
37914
+ var IconMapPin = createPreactComponent("map-pin", "IconMapPin", [
37915
+ ["path", { d: "M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0", key: "svg-0" }],
37916
+ [
37917
+ "path",
37918
+ {
37919
+ d: "M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z",
37920
+ key: "svg-1"
37921
+ }
37922
+ ]
37923
+ ]);
37924
+
37925
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconPhotoUp.js
37840
37926
  var IconPhotoUp = createPreactComponent("photo-up", "IconPhotoUp", [
37841
37927
  ["path", { d: "M15 8h.01", key: "svg-0" }],
37842
37928
  [
37843
37929
  "path",
37844
37930
  {
37845
- d: "M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5",
37931
+ d: "M12.5 21h-6.5a3 3 0 0 1 -3 -3v-12a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v6.5",
37846
37932
  key: "svg-1"
37847
37933
  }
37848
37934
  ],
37849
- ["path", { d: "M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4", key: "svg-2" }],
37850
37935
  [
37851
37936
  "path",
37852
- { d: "M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598", key: "svg-3" }
37937
+ { d: "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l3.5 3.5", key: "svg-2" }
37938
+ ],
37939
+ [
37940
+ "path",
37941
+ { d: "M14 14l1 -1c.679 -.653 1.473 -.829 2.214 -.526", key: "svg-3" }
37853
37942
  ],
37854
37943
  ["path", { d: "M19 22v-6", key: "svg-4" }],
37855
37944
  ["path", { d: "M22 19l-3 -3l-3 3", key: "svg-5" }]
37856
37945
  ]);
37857
37946
 
37858
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconPhoto.js
37947
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconPhoto.js
37859
37948
  var IconPhoto = createPreactComponent("photo", "IconPhoto", [
37860
- ["path", { d: "M15 8l.01 0", key: "svg-0" }],
37949
+ ["path", { d: "M15 8h.01", key: "svg-0" }],
37861
37950
  [
37862
37951
  "path",
37863
37952
  {
37864
- d: "M4 4m0 3a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3z",
37953
+ d: "M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z",
37865
37954
  key: "svg-1"
37866
37955
  }
37867
37956
  ],
37868
- ["path", { d: "M4 15l4 -4a3 5 0 0 1 3 0l5 5", key: "svg-2" }],
37869
- ["path", { d: "M14 14l1 -1a3 5 0 0 1 3 0l2 2", key: "svg-3" }]
37957
+ ["path", { d: "M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5", key: "svg-2" }],
37958
+ ["path", { d: "M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3", key: "svg-3" }]
37959
+ ]);
37960
+
37961
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconPlanet.js
37962
+ var IconPlanet = createPreactComponent("planet", "IconPlanet", [
37963
+ [
37964
+ "path",
37965
+ {
37966
+ d: "M18.816 13.58c2.292 2.138 3.546 4 3.092 4.9c-.745 1.46 -5.783 -.259 -11.255 -3.838c-5.47 -3.579 -9.304 -7.664 -8.56 -9.123c.464 -.91 2.926 -.444 5.803 .805",
37967
+ key: "svg-0"
37968
+ }
37969
+ ],
37970
+ ["path", { d: "M12 12m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", key: "svg-1" }]
37870
37971
  ]);
37871
37972
 
37872
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconReload.js
37973
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconReload.js
37873
37974
  var IconReload = createPreactComponent("reload", "IconReload", [
37874
37975
  [
37875
37976
  "path",
@@ -37881,7 +37982,7 @@ ${this.customData.serverResponse}`;
37881
37982
  ["path", { d: "M20 4v5h-5", key: "svg-1" }]
37882
37983
  ]);
37883
37984
 
37884
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconRocket.js
37985
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconRocket.js
37885
37986
  var IconRocket = createPreactComponent("rocket", "IconRocket", [
37886
37987
  [
37887
37988
  "path",
@@ -37894,7 +37995,7 @@ ${this.customData.serverResponse}`;
37894
37995
  ["path", { d: "M15 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-2" }]
37895
37996
  ]);
37896
37997
 
37897
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconRowInsertBottom.js
37998
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconRowInsertBottom.js
37898
37999
  var IconRowInsertBottom = createPreactComponent(
37899
38000
  "row-insert-bottom",
37900
38001
  "IconRowInsertBottom",
@@ -37911,7 +38012,7 @@ ${this.customData.serverResponse}`;
37911
38012
  ]
37912
38013
  );
37913
38014
 
37914
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconRowInsertTop.js
38015
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconRowInsertTop.js
37915
38016
  var IconRowInsertTop = createPreactComponent("row-insert-top", "IconRowInsertTop", [
37916
38017
  [
37917
38018
  "path",
@@ -37924,7 +38025,7 @@ ${this.customData.serverResponse}`;
37924
38025
  ["path", { d: "M10 7l4 0", key: "svg-2" }]
37925
38026
  ]);
37926
38027
 
37927
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconSettings.js
38028
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconSettings.js
37928
38029
  var IconSettings = createPreactComponent("settings", "IconSettings", [
37929
38030
  [
37930
38031
  "path",
@@ -37933,10 +38034,10 @@ ${this.customData.serverResponse}`;
37933
38034
  key: "svg-0"
37934
38035
  }
37935
38036
  ],
37936
- ["path", { d: "M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-1" }]
38037
+ ["path", { d: "M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0", key: "svg-1" }]
37937
38038
  ]);
37938
38039
 
37939
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconSitemap.js
38040
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconSitemap.js
37940
38041
  var IconSitemap = createPreactComponent("sitemap", "IconSitemap", [
37941
38042
  [
37942
38043
  "path",
@@ -37963,7 +38064,20 @@ ${this.customData.serverResponse}`;
37963
38064
  ["path", { d: "M12 9l0 3", key: "svg-4" }]
37964
38065
  ]);
37965
38066
 
37966
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconTrash.js
38067
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconTable.js
38068
+ var IconTable = createPreactComponent("table", "IconTable", [
38069
+ [
38070
+ "path",
38071
+ {
38072
+ d: "M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14z",
38073
+ key: "svg-0"
38074
+ }
38075
+ ],
38076
+ ["path", { d: "M3 10h18", key: "svg-1" }],
38077
+ ["path", { d: "M10 3v18", key: "svg-2" }]
38078
+ ]);
38079
+
38080
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconTrash.js
37967
38081
  var IconTrash = createPreactComponent("trash", "IconTrash", [
37968
38082
  ["path", { d: "M4 7l16 0", key: "svg-0" }],
37969
38083
  ["path", { d: "M10 11l0 6", key: "svg-1" }],
@@ -37975,7 +38089,7 @@ ${this.customData.serverResponse}`;
37975
38089
  ["path", { d: "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3", key: "svg-4" }]
37976
38090
  ]);
37977
38091
 
37978
- // ../../node_modules/.pnpm/@tabler+icons-preact@2.7.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconTriangleFilled.js
38092
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconTriangleFilled.js
37979
38093
  var IconTriangleFilled = createPreactComponent("triangle-filled", "IconTriangleFilled", [
37980
38094
  [
37981
38095
  "path",
@@ -37991,7 +38105,7 @@ ${this.customData.serverResponse}`;
37991
38105
  // package.json
37992
38106
  var package_default = {
37993
38107
  name: "@blinkk/root-cms",
37994
- version: "1.0.0-beta.21",
38108
+ version: "1.0.0-beta.23",
37995
38109
  author: "s@blinkk.com",
37996
38110
  license: "MIT",
37997
38111
  engines: {
@@ -38040,6 +38154,7 @@ ${this.customData.serverResponse}`;
38040
38154
  "body-parser": "^1.20.0",
38041
38155
  commander: "^10.0.0",
38042
38156
  "cookie-parser": "^1.4.6",
38157
+ "csv-writer": "^1.6.0",
38043
38158
  dotenv: "^16.0.0",
38044
38159
  "dts-dom": "^3.7.0",
38045
38160
  "firebase-admin": "^11.5.0",
@@ -38061,7 +38176,7 @@ ${this.customData.serverResponse}`;
38061
38176
  "@mantine/notifications": "4.2.12",
38062
38177
  "@mantine/spotlight": "4.2.12",
38063
38178
  "@preact/compat": "^17.1.2",
38064
- "@tabler/icons-preact": "^2.7.0",
38179
+ "@tabler/icons-preact": "^2.17.0",
38065
38180
  "@types/body-parser": "^1.19.2",
38066
38181
  "@types/cookie-parser": "^1.4.3",
38067
38182
  "@types/jsonwebtoken": "^9.0.1",
@@ -38081,7 +38196,7 @@ ${this.customData.serverResponse}`;
38081
38196
  vitest: "^0.18.1"
38082
38197
  },
38083
38198
  peerDependencies: {
38084
- "@blinkk/root": "1.0.0-beta.21",
38199
+ "@blinkk/root": "1.0.0-beta.23",
38085
38200
  "firebase-admin": ">=11",
38086
38201
  preact: "*"
38087
38202
  }
@@ -41548,6 +41663,7 @@ ${content}</tr>
41548
41663
  * Removes a key.
41549
41664
  */
41550
41665
  async removeKey(key) {
41666
+ this.pendingUpdates.set(key, ff());
41551
41667
  applyUpdates(this.cachedData, { [key]: void 0 });
41552
41668
  if (this.onChangeCallback) {
41553
41669
  this.onChangeCallback({ ...this.cachedData });
@@ -41605,6 +41721,15 @@ ${content}</tr>
41605
41721
  }
41606
41722
  }
41607
41723
  }
41724
+ getLocales() {
41725
+ if (this.cachedData && this.cachedData.sys?.locales) {
41726
+ return this.cachedData.sys.locales;
41727
+ }
41728
+ return ["en"];
41729
+ }
41730
+ setLocales(locales) {
41731
+ this.updateKey("sys.locales", locales);
41732
+ }
41608
41733
  /**
41609
41734
  * Stops all listeners and disposes the controller.
41610
41735
  */
@@ -41695,6 +41820,452 @@ ${content}</tr>
41695
41820
  return Array.from(template.matchAll(/\{(.+?)\}/g)).map((match3) => match3[1]);
41696
41821
  }
41697
41822
 
41823
+ // ui/components/LocalizationModal/LocalizationModal.tsx
41824
+ function LocalizationModal(props) {
41825
+ const theme = useMantineTheme();
41826
+ function onClose() {
41827
+ props.draft.flush();
41828
+ if (props.onClose) {
41829
+ props.onClose();
41830
+ }
41831
+ }
41832
+ return /* @__PURE__ */ o4(
41833
+ Modal,
41834
+ {
41835
+ className: "LocalizationModal",
41836
+ opened: props.opened || false,
41837
+ onClose: () => onClose(),
41838
+ size: "clamp(80%, 1024px, 1280px)",
41839
+ overlayColor: theme.colorScheme === "dark" ? theme.colors.dark[9] : theme.colors.gray[2],
41840
+ overlayOpacity: 0.55,
41841
+ overlayBlur: 3,
41842
+ children: /* @__PURE__ */ o4("div", { className: "LocalizationModal__layout", children: [
41843
+ /* @__PURE__ */ o4(LocalizationModal.ConfigLocales, { ...props }),
41844
+ /* @__PURE__ */ o4(LocalizationModal.Translations, { ...props })
41845
+ ] })
41846
+ }
41847
+ );
41848
+ }
41849
+ LocalizationModal.ConfigLocales = (props) => {
41850
+ const [enabledLocales, setEnabledLocales] = y2(["en"]);
41851
+ const i18nConfig = window.__ROOT_CTX.rootConfig.i18n || {};
41852
+ const podLocales = i18nConfig.locales || ["en"];
41853
+ const localeGroups = i18nConfig.groups || {
41854
+ default: {
41855
+ label: "",
41856
+ locales: podLocales
41857
+ }
41858
+ };
41859
+ s2(() => {
41860
+ if (props.opened) {
41861
+ setEnabledLocales(props.draft.getLocales());
41862
+ }
41863
+ }, [props.opened]);
41864
+ function enabledLocalesFor(groupId) {
41865
+ return enabledLocales.filter((l6) => {
41866
+ const groupLocales = localeGroups[groupId].locales || [];
41867
+ return groupLocales.includes(l6);
41868
+ });
41869
+ }
41870
+ function setGroupEnabledLocales(groupId, locales) {
41871
+ const localeSet = new Set(enabledLocales);
41872
+ const groupLocales = localeGroups[groupId].locales || [];
41873
+ for (const locale of groupLocales) {
41874
+ if (locales.includes(locale)) {
41875
+ localeSet.add(locale);
41876
+ } else {
41877
+ localeSet.delete(locale);
41878
+ }
41879
+ }
41880
+ localeSet.add("en");
41881
+ const newLocales = Array.from(localeSet.values()).sort();
41882
+ updateEnabledLocales(newLocales);
41883
+ }
41884
+ function updateEnabledLocales(newLocales) {
41885
+ setEnabledLocales(newLocales);
41886
+ props.draft.setLocales(newLocales);
41887
+ }
41888
+ return /* @__PURE__ */ o4("div", { className: "LocalizationModal__locales", children: /* @__PURE__ */ o4(Stack, { spacing: 30, children: [
41889
+ /* @__PURE__ */ o4(Group, { children: [
41890
+ /* @__PURE__ */ o4(
41891
+ Heading,
41892
+ {
41893
+ className: "LocalizationModal__iconTitle LocalizationModal__locales__title",
41894
+ size: "h2",
41895
+ children: [
41896
+ /* @__PURE__ */ o4(IconMapPin, { strokeWidth: 1.5 }),
41897
+ /* @__PURE__ */ o4("span", { children: "Locales" })
41898
+ ]
41899
+ }
41900
+ ),
41901
+ /* @__PURE__ */ o4(
41902
+ LocalizationModal.AllNoneButtons,
41903
+ {
41904
+ onAllClicked: () => updateEnabledLocales(podLocales),
41905
+ onNoneClicked: () => updateEnabledLocales([])
41906
+ }
41907
+ )
41908
+ ] }),
41909
+ /* @__PURE__ */ o4(Stack, { spacing: 40, children: Object.keys(localeGroups).map((groupId) => {
41910
+ const group = localeGroups[groupId];
41911
+ const enabledLocales2 = enabledLocalesFor(groupId);
41912
+ return /* @__PURE__ */ o4(
41913
+ LocalizationModal.LocaleGroup,
41914
+ {
41915
+ group,
41916
+ enabledLocales: enabledLocales2,
41917
+ onChange: (locales) => setGroupEnabledLocales(groupId, locales)
41918
+ }
41919
+ );
41920
+ }) })
41921
+ ] }) });
41922
+ };
41923
+ function getLocaleLabel(locale) {
41924
+ const langNames = new Intl.DisplayNames(["en"], {
41925
+ type: "language"
41926
+ });
41927
+ const parts = locale.split("_");
41928
+ const langCode = parts[0];
41929
+ const langName = langNames.of(langCode) || locale;
41930
+ return `${langName} (${locale})`;
41931
+ }
41932
+ LocalizationModal.LocaleGroup = (props) => {
41933
+ const enabledLocales = props.enabledLocales || [];
41934
+ const groupLocales = props.group.locales || [];
41935
+ function setEnabledLocales(locales) {
41936
+ if (props.onChange) {
41937
+ props.onChange(locales);
41938
+ }
41939
+ }
41940
+ function toggleLocale(locale) {
41941
+ const index3 = enabledLocales.indexOf(locale);
41942
+ if (index3 === -1) {
41943
+ enabledLocales.push(locale);
41944
+ } else {
41945
+ enabledLocales.splice(index3, 1);
41946
+ }
41947
+ setEnabledLocales(enabledLocales);
41948
+ }
41949
+ return /* @__PURE__ */ o4(Stack, { spacing: 16, children: [
41950
+ props.group.label && /* @__PURE__ */ o4(Group, { position: "apart", children: [
41951
+ /* @__PURE__ */ o4(Heading, { size: "h4", weight: "semi-bold", children: props.group.label }),
41952
+ /* @__PURE__ */ o4(
41953
+ LocalizationModal.AllNoneButtons,
41954
+ {
41955
+ onAllClicked: () => setEnabledLocales(groupLocales),
41956
+ onNoneClicked: () => setEnabledLocales([])
41957
+ }
41958
+ )
41959
+ ] }),
41960
+ /* @__PURE__ */ o4(Group, { children: groupLocales.map((locale) => /* @__PURE__ */ o4(
41961
+ Checkbox,
41962
+ {
41963
+ value: locale,
41964
+ checked: enabledLocales.includes(locale) || locale === "en",
41965
+ disabled: locale === "en",
41966
+ label: getLocaleLabel(locale),
41967
+ onChange: () => toggleLocale(locale),
41968
+ size: "xs"
41969
+ }
41970
+ )) })
41971
+ ] });
41972
+ };
41973
+ LocalizationModal.AllNoneButtons = (props) => {
41974
+ return /* @__PURE__ */ o4(Group, { spacing: "8px", children: [
41975
+ /* @__PURE__ */ o4(
41976
+ Button,
41977
+ {
41978
+ variant: "subtle",
41979
+ size: "xs",
41980
+ compact: true,
41981
+ onClick: props.onAllClicked,
41982
+ sx: (theme) => ({
41983
+ "&:hover": {
41984
+ backgroundColor: theme.colors.gray[0]
41985
+ }
41986
+ }),
41987
+ children: "All"
41988
+ }
41989
+ ),
41990
+ "/",
41991
+ /* @__PURE__ */ o4(
41992
+ Button,
41993
+ {
41994
+ variant: "subtle",
41995
+ size: "xs",
41996
+ compact: true,
41997
+ onClick: props.onNoneClicked,
41998
+ sx: (theme) => ({
41999
+ "&:hover": {
42000
+ backgroundColor: theme.colors.gray[0]
42001
+ }
42002
+ }),
42003
+ children: "None"
42004
+ }
42005
+ )
42006
+ ] });
42007
+ };
42008
+ LocalizationModal.Translations = (props) => {
42009
+ const [loading, setLoading] = y2(true);
42010
+ const [sourceStrings, setSourceStrings] = y2([]);
42011
+ const [selectedLocale, setSelectedLocale] = y2("");
42012
+ const locales = window.__ROOT_CTX.rootConfig.i18n.locales || [];
42013
+ const localeOptions = locales.map((locale) => ({
42014
+ value: locale,
42015
+ label: getLocaleLabel(locale)
42016
+ }));
42017
+ s2(() => {
42018
+ if (!props.opened) {
42019
+ return;
42020
+ }
42021
+ setLoading(true);
42022
+ extractStrings(props.collection, props.docId).then((strings) => {
42023
+ setSourceStrings(strings);
42024
+ setLoading(false);
42025
+ });
42026
+ }, [props.opened]);
42027
+ async function downloadCsv() {
42028
+ const headers = ["source", "en"];
42029
+ const rows = [];
42030
+ sourceStrings.forEach((source) => {
42031
+ rows.push({
42032
+ source,
42033
+ en: source
42034
+ });
42035
+ });
42036
+ const res = await window.fetch("/cms/api/csv.download", {
42037
+ method: "POST",
42038
+ headers: { "Content-Type": "application/json" },
42039
+ body: JSON.stringify({ headers, rows })
42040
+ });
42041
+ if (res.status !== 200) {
42042
+ console.error("csv.download failed:");
42043
+ const text = await res.text();
42044
+ console.error(text);
42045
+ }
42046
+ const blob = await res.blob();
42047
+ const file = window.URL.createObjectURL(blob);
42048
+ window.location.assign(file);
42049
+ window.URL.revokeObjectURL(file);
42050
+ }
42051
+ function onAction(action) {
42052
+ switch (action) {
42053
+ case "export-download-csv": {
42054
+ downloadCsv();
42055
+ return;
42056
+ }
42057
+ }
42058
+ }
42059
+ if (loading) {
42060
+ return /* @__PURE__ */ o4("div", { className: "LocalizationModal__translations__loading", children: /* @__PURE__ */ o4(Loader, { color: "gray", size: "xl" }) });
42061
+ }
42062
+ return /* @__PURE__ */ o4("div", { className: "LocalizationModal__translations", children: [
42063
+ /* @__PURE__ */ o4("div", { className: "LocalizationModal__translations__header", children: [
42064
+ /* @__PURE__ */ o4(
42065
+ Heading,
42066
+ {
42067
+ className: "LocalizationModal__translations__title LocalizationModal__iconTitle",
42068
+ size: "h2",
42069
+ children: [
42070
+ /* @__PURE__ */ o4(IconLanguage, { strokeWidth: 1.5 }),
42071
+ " ",
42072
+ /* @__PURE__ */ o4("span", { children: "Translations" })
42073
+ ]
42074
+ }
42075
+ ),
42076
+ /* @__PURE__ */ o4("div", { className: "LocalizationModal__translations__header__buttons", children: [
42077
+ /* @__PURE__ */ o4(Tooltip, { label: "Link Google Sheet", children: /* @__PURE__ */ o4(ActionIcon, { children: /* @__PURE__ */ o4(IconTable, { size: 16, strokeWidth: 2.25 }) }) }),
42078
+ /* @__PURE__ */ o4(ImportMenuButton, { onAction }),
42079
+ /* @__PURE__ */ o4(ExportMenuButton, { onAction })
42080
+ ] })
42081
+ ] }),
42082
+ /* @__PURE__ */ o4("table", { className: "LocalizationModal__translations__table", children: [
42083
+ /* @__PURE__ */ o4("tr", { className: "LocalizationModal__translations__table__row LocalizationModal__translations__table__row--header", children: [
42084
+ /* @__PURE__ */ o4("th", { className: "LocalizationModal__translations__table__header", children: /* @__PURE__ */ o4(Heading, { size: "h4", weight: "semi-bold", children: "SOURCE STRING" }) }),
42085
+ /* @__PURE__ */ o4("th", { className: "LocalizationModal__translations__table__header", children: /* @__PURE__ */ o4(
42086
+ Heading,
42087
+ {
42088
+ className: "LocalizationModal__translations__localeSelect",
42089
+ size: "h4",
42090
+ weight: "semi-bold",
42091
+ children: [
42092
+ /* @__PURE__ */ o4("span", { children: "LOCALE: " }),
42093
+ " ",
42094
+ /* @__PURE__ */ o4(
42095
+ Select,
42096
+ {
42097
+ data: localeOptions,
42098
+ size: "xs",
42099
+ placeholder: "select locale",
42100
+ allowDeselect: true,
42101
+ onChange: (value) => setSelectedLocale(value)
42102
+ }
42103
+ )
42104
+ ]
42105
+ }
42106
+ ) })
42107
+ ] }),
42108
+ sourceStrings.map((source, i3) => /* @__PURE__ */ o4("tr", { className: "LocalizationModal__translations__table__row", children: [
42109
+ /* @__PURE__ */ o4("td", { className: "LocalizationModal__translations__table__col", children: /* @__PURE__ */ o4(
42110
+ Box,
42111
+ {
42112
+ sx: (theme) => ({
42113
+ backgroundColor: theme.colors.gray[0],
42114
+ border: `1px solid ${theme.colors.gray[3]}`,
42115
+ padding: "10px 20px",
42116
+ borderRadius: 4,
42117
+ height: "100%"
42118
+ }),
42119
+ children: /* @__PURE__ */ o4(Text, { size: "xs", sx: { whiteSpace: "pre-wrap" }, children: source })
42120
+ }
42121
+ ) }),
42122
+ /* @__PURE__ */ o4("td", { className: "LocalizationModal__translations__table__col", children: /* @__PURE__ */ o4(
42123
+ Box,
42124
+ {
42125
+ sx: (theme) => ({
42126
+ backgroundColor: theme.colors.gray[0],
42127
+ border: `1px solid ${theme.colors.gray[3]}`,
42128
+ padding: "10px 20px",
42129
+ borderRadius: 4,
42130
+ height: "100%"
42131
+ }),
42132
+ children: /* @__PURE__ */ o4(Text, { size: "xs", sx: { whiteSpace: "pre-wrap" }, children: "\xA0" })
42133
+ }
42134
+ ) })
42135
+ ] }, i3))
42136
+ ] })
42137
+ ] });
42138
+ };
42139
+ async function extractStrings(collection, docId) {
42140
+ const db3 = window.firebase.db;
42141
+ const projectId = window.__ROOT_CTX.rootConfig.projectId;
42142
+ const [collectionId, slug] = docId.split("/", 2);
42143
+ const docRef = Za(
42144
+ db3,
42145
+ "Projects",
42146
+ projectId,
42147
+ "Collections",
42148
+ collectionId,
42149
+ "Drafts",
42150
+ slug
42151
+ );
42152
+ const snapshot = await Kl(docRef);
42153
+ const data = snapshot.data() || {};
42154
+ const strings = /* @__PURE__ */ new Set();
42155
+ extractFields(strings, collection.fields, data.fields || {});
42156
+ return Array.from(strings);
42157
+ }
42158
+ function extractFields(strings, fields, data) {
42159
+ fields.forEach((field) => {
42160
+ if (!field.id) {
42161
+ return;
42162
+ }
42163
+ const fieldValue = data[field.id];
42164
+ extractField(strings, field, fieldValue);
42165
+ });
42166
+ }
42167
+ function extractField(strings, field, fieldValue) {
42168
+ if (!fieldValue) {
42169
+ return;
42170
+ }
42171
+ if (field.type === "object") {
42172
+ extractFields(strings, field.fields || [], fieldValue);
42173
+ } else if (field.type === "array") {
42174
+ const arrayKeys = fieldValue._array || [];
42175
+ for (const arrayKey of arrayKeys) {
42176
+ extractField(strings, field.of, fieldValue[arrayKey]);
42177
+ }
42178
+ } else if (field.type === "string" || field.type === "select") {
42179
+ if (field.translate) {
42180
+ strings.add(normalizeString(fieldValue));
42181
+ }
42182
+ } else if (field.type === "multiselect") {
42183
+ if (field.translate && Array.isArray(fieldValue)) {
42184
+ for (const value of fieldValue) {
42185
+ strings.add(normalizeString(value));
42186
+ }
42187
+ }
42188
+ } else if (field.type === "oneof") {
42189
+ const types = field.types || [];
42190
+ const fieldValueType = types.find((item) => item.name === fieldValue._type);
42191
+ if (fieldValueType) {
42192
+ extractFields(strings, fieldValueType.fields || [], fieldValue);
42193
+ }
42194
+ } else {
42195
+ console.log(`extract: ignoring field, id=${field.id}, type=${field.type}`);
42196
+ }
42197
+ }
42198
+ function ImportMenuButton(props) {
42199
+ function dispatch(action) {
42200
+ if (props.onAction) {
42201
+ props.onAction(action);
42202
+ }
42203
+ }
42204
+ return /* @__PURE__ */ o4(
42205
+ Menu,
42206
+ {
42207
+ className: "",
42208
+ position: "bottom",
42209
+ placement: "end",
42210
+ control: /* @__PURE__ */ o4(
42211
+ Button,
42212
+ {
42213
+ variant: "default",
42214
+ color: "dark",
42215
+ size: "xs",
42216
+ leftIcon: /* @__PURE__ */ o4(IconFileUpload, { size: 16, strokeWidth: 1.75 }),
42217
+ rightIcon: /* @__PURE__ */ o4(IconChevronDown, { size: 16, strokeWidth: 1.75 }),
42218
+ children: "Import"
42219
+ }
42220
+ ),
42221
+ children: [
42222
+ /* @__PURE__ */ o4(Menu.Label, { children: "Google Sheets" }),
42223
+ /* @__PURE__ */ o4(Menu.Item, { disabled: true, onClick: () => dispatch("import-google-sheet"), children: "Import Google Sheet" }),
42224
+ /* @__PURE__ */ o4(Divider, {}),
42225
+ /* @__PURE__ */ o4(Menu.Label, { children: "File" }),
42226
+ /* @__PURE__ */ o4(Menu.Item, { onClick: () => dispatch("import-upload-csv"), children: "Upload .csv" })
42227
+ ]
42228
+ }
42229
+ );
42230
+ }
42231
+ function ExportMenuButton(props) {
42232
+ function dispatch(action) {
42233
+ if (props.onAction) {
42234
+ props.onAction(action);
42235
+ }
42236
+ }
42237
+ return /* @__PURE__ */ o4(
42238
+ Menu,
42239
+ {
42240
+ className: "",
42241
+ position: "bottom",
42242
+ placement: "start",
42243
+ control: /* @__PURE__ */ o4(
42244
+ Button,
42245
+ {
42246
+ variant: "default",
42247
+ color: "dark",
42248
+ size: "xs",
42249
+ leftIcon: /* @__PURE__ */ o4(IconFileDownload, { size: 16, strokeWidth: 1.75 }),
42250
+ rightIcon: /* @__PURE__ */ o4(IconChevronDown, { size: 16, strokeWidth: 1.75 }),
42251
+ children: "Export"
42252
+ }
42253
+ ),
42254
+ children: [
42255
+ /* @__PURE__ */ o4(Menu.Label, { children: "Google Sheets" }),
42256
+ /* @__PURE__ */ o4(Menu.Item, { onClick: () => dispatch("export-google-sheet-create"), children: "Create Google Sheet" }),
42257
+ /* @__PURE__ */ o4(Menu.Item, { onClick: () => dispatch("export-google-sheet-add-tab"), children: "Add tab in Google Sheet" }),
42258
+ /* @__PURE__ */ o4(Divider, {}),
42259
+ /* @__PURE__ */ o4(Menu.Label, { children: "File" }),
42260
+ /* @__PURE__ */ o4(Menu.Item, { onClick: () => dispatch("export-download-csv"), children: "Download .csv" })
42261
+ ]
42262
+ }
42263
+ );
42264
+ }
42265
+ function normalizeString(s4) {
42266
+ return String(s4).trim();
42267
+ }
42268
+
41698
42269
  // ui/components/PublishDocModal/PublishDocModal.tsx
41699
42270
  function PublishDocModal(props) {
41700
42271
  const [collectionId, slug] = props.docId.split("/");
@@ -41866,6 +42437,12 @@ ${content}</tr>
41866
42437
  const fields = props.collection.fields || [];
41867
42438
  const { loading, draft, saveState, data } = useDraft(props.docId);
41868
42439
  const [publishDocModalOpen, setPublishDocModalOpen] = y2(false);
42440
+ const [l10nModalOpen, setL10nModalOpen] = y2(false);
42441
+ s2(() => {
42442
+ if (draft && props.onDraftController) {
42443
+ props.onDraftController(draft);
42444
+ }
42445
+ }, [draft]);
41869
42446
  function goBack() {
41870
42447
  const collectionId = props.docId.split("/")[0];
41871
42448
  $4(`/cms/content/${collectionId}`);
@@ -41879,6 +42456,16 @@ ${content}</tr>
41879
42456
  onClose: () => setPublishDocModalOpen(false)
41880
42457
  }
41881
42458
  ),
42459
+ /* @__PURE__ */ o4(
42460
+ LocalizationModal,
42461
+ {
42462
+ draft,
42463
+ collection: props.collection,
42464
+ docId: props.docId,
42465
+ opened: l10nModalOpen,
42466
+ onClose: () => setL10nModalOpen(false)
42467
+ }
42468
+ ),
41882
42469
  /* @__PURE__ */ o4("div", { className: "DocEditor", children: [
41883
42470
  /* @__PURE__ */ o4(
41884
42471
  LoadingOverlay,
@@ -41895,6 +42482,17 @@ ${content}</tr>
41895
42482
  saveState === "ERROR" /* ERROR */ && "error saving"
41896
42483
  ] }),
41897
42484
  !loading && data?.sys && /* @__PURE__ */ o4("div", { className: "DocEditor__statusBar__statusBadges", children: /* @__PURE__ */ o4(DocStatusBadges, { doc: data }) }),
42485
+ /* @__PURE__ */ o4("div", { className: "DocEditor__statusBar__i18n", children: /* @__PURE__ */ o4(
42486
+ Button,
42487
+ {
42488
+ variant: "default",
42489
+ color: "dark",
42490
+ size: "xs",
42491
+ leftIcon: /* @__PURE__ */ o4(IconPlanet, { size: 16 }),
42492
+ onClick: () => setL10nModalOpen(true),
42493
+ children: "Localization"
42494
+ }
42495
+ ) }),
41898
42496
  /* @__PURE__ */ o4("div", { className: "DocEditor__statusBar__publishButton", children: /* @__PURE__ */ o4(
41899
42497
  Button,
41900
42498
  {
@@ -41975,7 +42573,7 @@ ${content}</tr>
41975
42573
  radius: 0,
41976
42574
  autosize: true,
41977
42575
  minRows: 2,
41978
- maxRows: field.maxRows || 20,
42576
+ maxRows: field.maxRows || 12,
41979
42577
  value,
41980
42578
  onChange: (e3) => onChange(e3.currentTarget.value)
41981
42579
  }
@@ -42105,8 +42703,20 @@ ${content}</tr>
42105
42703
  });
42106
42704
  props.draft.updateKey(`${props.deepKey}.alt`, newValue);
42107
42705
  }
42706
+ async function removeImage() {
42707
+ setImg({});
42708
+ props.draft.removeKey(props.deepKey);
42709
+ }
42108
42710
  return /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField", children: [
42109
42711
  img && img.src ? /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField__imagePreview", children: [
42712
+ /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField__imagePreview__controls", children: /* @__PURE__ */ o4(Tooltip, { label: "Remove image", children: /* @__PURE__ */ o4(
42713
+ ActionIcon,
42714
+ {
42715
+ className: "DocEditor__ImageField__imagePreview__controls__trash",
42716
+ onClick: () => removeImage(),
42717
+ children: /* @__PURE__ */ o4(IconTrash, { size: 16 })
42718
+ }
42719
+ ) }) }),
42110
42720
  /* @__PURE__ */ o4("div", { className: "DocEditor__ImageField__imagePreview__image", children: [
42111
42721
  /* @__PURE__ */ o4(
42112
42722
  "img",
@@ -42552,7 +43162,7 @@ ${content}</tr>
42552
43162
  size: "xs",
42553
43163
  leftIcon: /* @__PURE__ */ o4(IconCirclePlus, { size: 16 }),
42554
43164
  onClick: () => add(),
42555
- children: "Add"
43165
+ children: field.buttonLabel || "Add"
42556
43166
  }
42557
43167
  ) })
42558
43168
  ] });
@@ -42813,6 +43423,7 @@ ${content}</tr>
42813
43423
  const slug = props.slug;
42814
43424
  const docId = `${collectionId}/${slug}`;
42815
43425
  const collection = window.__ROOT_CTX.collections[collectionId];
43426
+ const [draft, setDraft] = y2(null);
42816
43427
  if (!collection) {
42817
43428
  return /* @__PURE__ */ o4("div", { children: "Could not find collection." });
42818
43429
  }
@@ -42822,9 +43433,16 @@ ${content}</tr>
42822
43433
  /* @__PURE__ */ o4("a", { href: `/cms/content/${collectionId}`, children: /* @__PURE__ */ o4(ActionIcon, { className: "DocumentPage__side__header__back", children: /* @__PURE__ */ o4(IconArrowLeft, { size: 16 }) }) }),
42823
43434
  /* @__PURE__ */ o4("div", { className: "DocumentPage__side__header__docId", children: docId })
42824
43435
  ] }),
42825
- /* @__PURE__ */ o4("div", { className: "DocumentPage__side__editor", children: /* @__PURE__ */ o4(DocEditor, { collection, docId }) })
43436
+ /* @__PURE__ */ o4("div", { className: "DocumentPage__side__editor", children: /* @__PURE__ */ o4(
43437
+ DocEditor,
43438
+ {
43439
+ collection,
43440
+ docId,
43441
+ onDraftController: (draft2) => setDraft(draft2)
43442
+ }
43443
+ ) })
42826
43444
  ] }),
42827
- /* @__PURE__ */ o4(SplitPanel.Item, { className: "DocumentPage__main", fluid: true, children: /* @__PURE__ */ o4(DocumentPage.Preview, { docId }) })
43445
+ /* @__PURE__ */ o4(SplitPanel.Item, { className: "DocumentPage__main", fluid: true, children: /* @__PURE__ */ o4(DocumentPage.Preview, { docId, draft }) })
42828
43446
  ] }) });
42829
43447
  }
42830
43448
  var DeviceResolution = {
@@ -42872,15 +43490,22 @@ ${content}</tr>
42872
43490
  });
42873
43491
  }
42874
43492
  function reload2() {
42875
- const iframe = iframeRef.current;
42876
- iframe.src = "about:blank";
42877
- window.setTimeout(() => {
42878
- if (iframe.src !== previewPath) {
42879
- iframe.src = previewPath;
42880
- } else {
42881
- iframe.contentWindow.location.reload();
42882
- }
42883
- }, 10);
43493
+ const reloadIframe = () => {
43494
+ const iframe = iframeRef.current;
43495
+ iframe.src = "about:blank";
43496
+ window.setTimeout(() => {
43497
+ if (iframe.src !== previewPath) {
43498
+ iframe.src = previewPath;
43499
+ } else {
43500
+ iframe.contentWindow.location.reload();
43501
+ }
43502
+ }, 20);
43503
+ };
43504
+ if (props.draft) {
43505
+ props.draft.flush().then(() => reloadIframe());
43506
+ } else {
43507
+ reloadIframe();
43508
+ }
42884
43509
  }
42885
43510
  function openNewTab() {
42886
43511
  const tab = window.open(previewPath, "_blank");