@blinkk/root-cms 1.0.0-beta.62 → 1.0.0-beta.64

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, defaultProps29, props) {
4191
+ function useMantineDefaultProps(component, defaultProps30, 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({}, defaultProps29), contextProps), filterProps(props));
4194
+ return __spreadValues4(__spreadValues4(__spreadValues4({}, defaultProps30), contextProps), filterProps(props));
4195
4195
  }
4196
4196
  function MantineProvider({
4197
4197
  theme,
4198
4198
  styles: styles2 = {},
4199
4199
  classNames = {},
4200
- defaultProps: defaultProps29 = {},
4200
+ defaultProps: defaultProps30 = {},
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), defaultProps29) : defaultProps29
4214
+ defaultProps: inherit ? __spreadValues4(__spreadValues4({}, ctx.defaultProps), defaultProps30) : defaultProps30
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 useStyles33(params, options2) {
5536
+ function useStyles34(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 useStyles33;
5556
+ return useStyles34;
5557
5557
  }
5558
5558
 
5559
5559
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Transition/transitions.js
@@ -15695,7 +15695,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15695
15695
  });
15696
15696
  Stack.displayName = "@mantine/core/Stack";
15697
15697
 
15698
- // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/TabControl/TabControl.styles.js
15698
+ // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Table/Table.styles.js
15699
15699
  var __defProp67 = Object.defineProperty;
15700
15700
  var __defProps35 = Object.defineProperties;
15701
15701
  var __getOwnPropDescs35 = Object.getOwnPropertyDescriptors;
@@ -15715,12 +15715,157 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15715
15715
  return a4;
15716
15716
  };
15717
15717
  var __spreadProps35 = (a4, b6) => __defProps35(a4, __getOwnPropDescs35(b6));
15718
- var useStyles29 = createStyles((theme, { color, orientation }, getRef2) => {
15718
+ var useStyles29 = createStyles((theme, { captionSide, horizontalSpacing, verticalSpacing, fontSize }, getRef2) => {
15719
+ const striped = { ref: getRef2("striped") };
15720
+ const hover2 = { ref: getRef2("hover") };
15721
+ return {
15722
+ striped,
15723
+ hover: hover2,
15724
+ root: __spreadProps35(__spreadValues66({}, theme.fn.fontStyles()), {
15725
+ width: "100%",
15726
+ borderCollapse: "collapse",
15727
+ captionSide,
15728
+ color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black,
15729
+ lineHeight: theme.lineHeight,
15730
+ "& caption": {
15731
+ marginTop: captionSide === "top" ? 0 : theme.spacing.xs,
15732
+ marginBottom: captionSide === "bottom" ? 0 : theme.spacing.xs,
15733
+ fontSize: theme.fontSizes.sm,
15734
+ color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6]
15735
+ },
15736
+ "& thead tr th, & tfoot tr th": {
15737
+ textAlign: "left",
15738
+ fontWeight: "bold",
15739
+ color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.gray[7],
15740
+ fontSize: theme.fn.size({ size: fontSize, sizes: theme.fontSizes }),
15741
+ padding: `${theme.fn.size({
15742
+ size: verticalSpacing,
15743
+ sizes: theme.spacing
15744
+ })}px ${theme.fn.size({ size: horizontalSpacing, sizes: theme.spacing })}px`
15745
+ },
15746
+ "& thead tr th": {
15747
+ borderBottom: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]}`
15748
+ },
15749
+ "& tfoot tr th": {
15750
+ borderTop: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]}`
15751
+ },
15752
+ "& tbody tr td": {
15753
+ padding: `${theme.fn.size({
15754
+ size: verticalSpacing,
15755
+ sizes: theme.spacing
15756
+ })}px ${theme.fn.size({ size: horizontalSpacing, sizes: theme.spacing })}px`,
15757
+ borderBottom: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]}`,
15758
+ fontSize: theme.fn.size({ size: fontSize, sizes: theme.fontSizes })
15759
+ },
15760
+ "& tbody tr:last-of-type td": {
15761
+ borderBottom: "none"
15762
+ },
15763
+ [`&.${striped.ref} tbody tr:nth-of-type(odd)`]: {
15764
+ backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[0]
15765
+ },
15766
+ [`&.${hover2.ref} tbody tr:hover`]: {
15767
+ backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[1]
15768
+ }
15769
+ })
15770
+ };
15771
+ });
15772
+ var Table_styles_default = useStyles29;
15773
+
15774
+ // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Table/Table.js
15775
+ var __defProp68 = Object.defineProperty;
15776
+ var __defProps36 = Object.defineProperties;
15777
+ var __getOwnPropDescs36 = Object.getOwnPropertyDescriptors;
15778
+ var __getOwnPropSymbols68 = Object.getOwnPropertySymbols;
15779
+ var __hasOwnProp69 = Object.prototype.hasOwnProperty;
15780
+ var __propIsEnum68 = Object.prototype.propertyIsEnumerable;
15781
+ var __defNormalProp67 = (obj, key, value) => key in obj ? __defProp68(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15782
+ var __spreadValues67 = (a4, b6) => {
15783
+ for (var prop in b6 || (b6 = {}))
15784
+ if (__hasOwnProp69.call(b6, prop))
15785
+ __defNormalProp67(a4, prop, b6[prop]);
15786
+ if (__getOwnPropSymbols68)
15787
+ for (var prop of __getOwnPropSymbols68(b6)) {
15788
+ if (__propIsEnum68.call(b6, prop))
15789
+ __defNormalProp67(a4, prop, b6[prop]);
15790
+ }
15791
+ return a4;
15792
+ };
15793
+ var __spreadProps36 = (a4, b6) => __defProps36(a4, __getOwnPropDescs36(b6));
15794
+ var __objRest40 = (source, exclude) => {
15795
+ var target = {};
15796
+ for (var prop in source)
15797
+ if (__hasOwnProp69.call(source, prop) && exclude.indexOf(prop) < 0)
15798
+ target[prop] = source[prop];
15799
+ if (source != null && __getOwnPropSymbols68)
15800
+ for (var prop of __getOwnPropSymbols68(source)) {
15801
+ if (exclude.indexOf(prop) < 0 && __propIsEnum68.call(source, prop))
15802
+ target[prop] = source[prop];
15803
+ }
15804
+ return target;
15805
+ };
15806
+ var defaultProps26 = {
15807
+ striped: false,
15808
+ highlightOnHover: false,
15809
+ captionSide: "top",
15810
+ horizontalSpacing: "xs",
15811
+ fontSize: "sm",
15812
+ verticalSpacing: 7
15813
+ };
15814
+ var Table = N2((props, ref2) => {
15815
+ const _a2 = useMantineDefaultProps("Table", defaultProps26, props), {
15816
+ className,
15817
+ children,
15818
+ striped,
15819
+ highlightOnHover,
15820
+ captionSide,
15821
+ horizontalSpacing,
15822
+ verticalSpacing,
15823
+ fontSize
15824
+ } = _a2, others = __objRest40(_a2, [
15825
+ "className",
15826
+ "children",
15827
+ "striped",
15828
+ "highlightOnHover",
15829
+ "captionSide",
15830
+ "horizontalSpacing",
15831
+ "verticalSpacing",
15832
+ "fontSize"
15833
+ ]);
15834
+ const { classes, cx } = Table_styles_default({ captionSide, verticalSpacing, horizontalSpacing, fontSize }, { name: "Table" });
15835
+ return /* @__PURE__ */ _n.createElement(Box, __spreadProps36(__spreadValues67({}, others), {
15836
+ component: "table",
15837
+ ref: ref2,
15838
+ className: cx(classes.root, { [classes.striped]: striped, [classes.hover]: highlightOnHover }, className)
15839
+ }), children);
15840
+ });
15841
+ Table.displayName = "@mantine/core/Table";
15842
+
15843
+ // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/TabControl/TabControl.styles.js
15844
+ var __defProp69 = Object.defineProperty;
15845
+ var __defProps37 = Object.defineProperties;
15846
+ var __getOwnPropDescs37 = Object.getOwnPropertyDescriptors;
15847
+ var __getOwnPropSymbols69 = Object.getOwnPropertySymbols;
15848
+ var __hasOwnProp70 = Object.prototype.hasOwnProperty;
15849
+ var __propIsEnum69 = Object.prototype.propertyIsEnumerable;
15850
+ var __defNormalProp68 = (obj, key, value) => key in obj ? __defProp69(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15851
+ var __spreadValues68 = (a4, b6) => {
15852
+ for (var prop in b6 || (b6 = {}))
15853
+ if (__hasOwnProp70.call(b6, prop))
15854
+ __defNormalProp68(a4, prop, b6[prop]);
15855
+ if (__getOwnPropSymbols69)
15856
+ for (var prop of __getOwnPropSymbols69(b6)) {
15857
+ if (__propIsEnum69.call(b6, prop))
15858
+ __defNormalProp68(a4, prop, b6[prop]);
15859
+ }
15860
+ return a4;
15861
+ };
15862
+ var __spreadProps37 = (a4, b6) => __defProps37(a4, __getOwnPropDescs37(b6));
15863
+ var useStyles30 = createStyles((theme, { color, orientation }, getRef2) => {
15719
15864
  const tabActive = { ref: getRef2("tabActive") };
15720
15865
  return {
15721
15866
  tabActive,
15722
15867
  tabLabel: {},
15723
- tabControl: __spreadProps35(__spreadValues66(__spreadValues66({}, theme.fn.fontStyles()), theme.fn.focusStyles()), {
15868
+ tabControl: __spreadProps37(__spreadValues68(__spreadValues68({}, theme.fn.fontStyles()), theme.fn.focusStyles()), {
15724
15869
  WebkitTapHighlightColor: "transparent",
15725
15870
  boxSizing: "border-box",
15726
15871
  display: "block",
@@ -15793,36 +15938,36 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15793
15938
  }
15794
15939
  };
15795
15940
  });
15796
- var TabControl_styles_default = useStyles29;
15941
+ var TabControl_styles_default = useStyles30;
15797
15942
 
15798
15943
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/TabControl/TabControl.js
15799
- var __defProp68 = Object.defineProperty;
15800
- var __defProps36 = Object.defineProperties;
15801
- var __getOwnPropDescs36 = Object.getOwnPropertyDescriptors;
15802
- var __getOwnPropSymbols68 = Object.getOwnPropertySymbols;
15803
- var __hasOwnProp69 = Object.prototype.hasOwnProperty;
15804
- var __propIsEnum68 = Object.prototype.propertyIsEnumerable;
15805
- var __defNormalProp67 = (obj, key, value) => key in obj ? __defProp68(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15806
- var __spreadValues67 = (a4, b6) => {
15944
+ var __defProp70 = Object.defineProperty;
15945
+ var __defProps38 = Object.defineProperties;
15946
+ var __getOwnPropDescs38 = Object.getOwnPropertyDescriptors;
15947
+ var __getOwnPropSymbols70 = Object.getOwnPropertySymbols;
15948
+ var __hasOwnProp71 = Object.prototype.hasOwnProperty;
15949
+ var __propIsEnum70 = Object.prototype.propertyIsEnumerable;
15950
+ var __defNormalProp69 = (obj, key, value) => key in obj ? __defProp70(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15951
+ var __spreadValues69 = (a4, b6) => {
15807
15952
  for (var prop in b6 || (b6 = {}))
15808
- if (__hasOwnProp69.call(b6, prop))
15809
- __defNormalProp67(a4, prop, b6[prop]);
15810
- if (__getOwnPropSymbols68)
15811
- for (var prop of __getOwnPropSymbols68(b6)) {
15812
- if (__propIsEnum68.call(b6, prop))
15813
- __defNormalProp67(a4, prop, b6[prop]);
15953
+ if (__hasOwnProp71.call(b6, prop))
15954
+ __defNormalProp69(a4, prop, b6[prop]);
15955
+ if (__getOwnPropSymbols70)
15956
+ for (var prop of __getOwnPropSymbols70(b6)) {
15957
+ if (__propIsEnum70.call(b6, prop))
15958
+ __defNormalProp69(a4, prop, b6[prop]);
15814
15959
  }
15815
15960
  return a4;
15816
15961
  };
15817
- var __spreadProps36 = (a4, b6) => __defProps36(a4, __getOwnPropDescs36(b6));
15818
- var __objRest40 = (source, exclude) => {
15962
+ var __spreadProps38 = (a4, b6) => __defProps38(a4, __getOwnPropDescs38(b6));
15963
+ var __objRest41 = (source, exclude) => {
15819
15964
  var target = {};
15820
15965
  for (var prop in source)
15821
- if (__hasOwnProp69.call(source, prop) && exclude.indexOf(prop) < 0)
15966
+ if (__hasOwnProp71.call(source, prop) && exclude.indexOf(prop) < 0)
15822
15967
  target[prop] = source[prop];
15823
- if (source != null && __getOwnPropSymbols68)
15824
- for (var prop of __getOwnPropSymbols68(source)) {
15825
- if (exclude.indexOf(prop) < 0 && __propIsEnum68.call(source, prop))
15968
+ if (source != null && __getOwnPropSymbols70)
15969
+ for (var prop of __getOwnPropSymbols70(source)) {
15970
+ if (exclude.indexOf(prop) < 0 && __propIsEnum70.call(source, prop))
15826
15971
  target[prop] = source[prop];
15827
15972
  }
15828
15973
  return target;
@@ -15842,7 +15987,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15842
15987
  tabKey,
15843
15988
  color: overrideColor,
15844
15989
  elementRef
15845
- } = _b, others = __objRest40(_b, [
15990
+ } = _b, others = __objRest41(_b, [
15846
15991
  "className",
15847
15992
  "active",
15848
15993
  "color",
@@ -15858,7 +16003,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15858
16003
  "elementRef"
15859
16004
  ]);
15860
16005
  const { classes, cx } = TabControl_styles_default({ color: overrideColor || color, orientation }, { classNames, styles: styles2, name: "Tabs" });
15861
- return /* @__PURE__ */ _n.createElement(Box, __spreadProps36(__spreadValues67({}, others), {
16006
+ return /* @__PURE__ */ _n.createElement(Box, __spreadProps38(__spreadValues69({}, others), {
15862
16007
  component: "button",
15863
16008
  tabIndex: active ? 0 : -1,
15864
16009
  className: cx(classes.tabControl, classes[variant2], { [classes.tabActive]: active }, className),
@@ -15877,7 +16022,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15877
16022
  TabControl.displayName = "@mantine/core/TabControl";
15878
16023
 
15879
16024
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/Tabs.styles.js
15880
- var useStyles30 = createStyles((theme, { tabPadding, orientation }, getRef2) => {
16025
+ var useStyles31 = createStyles((theme, { tabPadding, orientation }, getRef2) => {
15881
16026
  const tabsList = { ref: getRef2("tabsList") };
15882
16027
  return {
15883
16028
  tabsListWrapper: {},
@@ -15908,33 +16053,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15908
16053
  }
15909
16054
  };
15910
16055
  });
15911
- var Tabs_styles_default = useStyles30;
16056
+ var Tabs_styles_default = useStyles31;
15912
16057
 
15913
16058
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tabs/Tabs.js
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) => {
16059
+ var __defProp71 = Object.defineProperty;
16060
+ var __getOwnPropSymbols71 = Object.getOwnPropertySymbols;
16061
+ var __hasOwnProp72 = Object.prototype.hasOwnProperty;
16062
+ var __propIsEnum71 = Object.prototype.propertyIsEnumerable;
16063
+ var __defNormalProp70 = (obj, key, value) => key in obj ? __defProp71(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16064
+ var __spreadValues70 = (a4, b6) => {
15920
16065
  for (var prop in b6 || (b6 = {}))
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]);
16066
+ if (__hasOwnProp72.call(b6, prop))
16067
+ __defNormalProp70(a4, prop, b6[prop]);
16068
+ if (__getOwnPropSymbols71)
16069
+ for (var prop of __getOwnPropSymbols71(b6)) {
16070
+ if (__propIsEnum71.call(b6, prop))
16071
+ __defNormalProp70(a4, prop, b6[prop]);
15927
16072
  }
15928
16073
  return a4;
15929
16074
  };
15930
- var __objRest41 = (source, exclude) => {
16075
+ var __objRest42 = (source, exclude) => {
15931
16076
  var target = {};
15932
16077
  for (var prop in source)
15933
- if (__hasOwnProp70.call(source, prop) && exclude.indexOf(prop) < 0)
16078
+ if (__hasOwnProp72.call(source, prop) && exclude.indexOf(prop) < 0)
15934
16079
  target[prop] = source[prop];
15935
- if (source != null && __getOwnPropSymbols69)
15936
- for (var prop of __getOwnPropSymbols69(source)) {
15937
- if (exclude.indexOf(prop) < 0 && __propIsEnum69.call(source, prop))
16080
+ if (source != null && __getOwnPropSymbols71)
16081
+ for (var prop of __getOwnPropSymbols71(source)) {
16082
+ if (exclude.indexOf(prop) < 0 && __propIsEnum71.call(source, prop))
15938
16083
  target[prop] = source[prop];
15939
16084
  }
15940
16085
  return target;
@@ -15963,7 +16108,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15963
16108
  }
15964
16109
  return -1;
15965
16110
  }
15966
- var defaultProps26 = {
16111
+ var defaultProps27 = {
15967
16112
  position: "left",
15968
16113
  grow: false,
15969
16114
  variant: "default",
@@ -15971,7 +16116,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15971
16116
  orientation: "horizontal"
15972
16117
  };
15973
16118
  var Tabs = N2((props, ref2) => {
15974
- const _a2 = useMantineDefaultProps("Tabs", defaultProps26, props), {
16119
+ const _a2 = useMantineDefaultProps("Tabs", defaultProps27, props), {
15975
16120
  className,
15976
16121
  children,
15977
16122
  initialTab,
@@ -15985,7 +16130,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
15985
16130
  styles: styles2,
15986
16131
  tabPadding,
15987
16132
  orientation
15988
- } = _a2, others = __objRest41(_a2, [
16133
+ } = _a2, others = __objRest42(_a2, [
15989
16134
  "className",
15990
16135
  "children",
15991
16136
  "initialTab",
@@ -16046,7 +16191,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16046
16191
  styles: styles2
16047
16192
  }));
16048
16193
  const content = tabs[activeTab].props.children;
16049
- return /* @__PURE__ */ _n.createElement(Box, __spreadValues68({
16194
+ return /* @__PURE__ */ _n.createElement(Box, __spreadValues70({
16050
16195
  ref: ref2,
16051
16196
  className: cx(classes.root, className)
16052
16197
  }, others), /* @__PURE__ */ _n.createElement("div", {
@@ -16069,31 +16214,31 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16069
16214
  Tabs.Tab = TabControl;
16070
16215
 
16071
16216
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.styles.js
16072
- var __defProp70 = Object.defineProperty;
16073
- var __defProps37 = Object.defineProperties;
16074
- var __getOwnPropDescs37 = Object.getOwnPropertyDescriptors;
16075
- var __getOwnPropSymbols70 = Object.getOwnPropertySymbols;
16076
- var __hasOwnProp71 = Object.prototype.hasOwnProperty;
16077
- var __propIsEnum70 = Object.prototype.propertyIsEnumerable;
16078
- var __defNormalProp69 = (obj, key, value) => key in obj ? __defProp70(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16079
- var __spreadValues69 = (a4, b6) => {
16217
+ var __defProp72 = Object.defineProperty;
16218
+ var __defProps39 = Object.defineProperties;
16219
+ var __getOwnPropDescs39 = Object.getOwnPropertyDescriptors;
16220
+ var __getOwnPropSymbols72 = Object.getOwnPropertySymbols;
16221
+ var __hasOwnProp73 = Object.prototype.hasOwnProperty;
16222
+ var __propIsEnum72 = Object.prototype.propertyIsEnumerable;
16223
+ var __defNormalProp71 = (obj, key, value) => key in obj ? __defProp72(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16224
+ var __spreadValues71 = (a4, b6) => {
16080
16225
  for (var prop in b6 || (b6 = {}))
16081
- if (__hasOwnProp71.call(b6, prop))
16082
- __defNormalProp69(a4, prop, b6[prop]);
16083
- if (__getOwnPropSymbols70)
16084
- for (var prop of __getOwnPropSymbols70(b6)) {
16085
- if (__propIsEnum70.call(b6, prop))
16086
- __defNormalProp69(a4, prop, b6[prop]);
16226
+ if (__hasOwnProp73.call(b6, prop))
16227
+ __defNormalProp71(a4, prop, b6[prop]);
16228
+ if (__getOwnPropSymbols72)
16229
+ for (var prop of __getOwnPropSymbols72(b6)) {
16230
+ if (__propIsEnum72.call(b6, prop))
16231
+ __defNormalProp71(a4, prop, b6[prop]);
16087
16232
  }
16088
16233
  return a4;
16089
16234
  };
16090
- var __spreadProps37 = (a4, b6) => __defProps37(a4, __getOwnPropDescs37(b6));
16091
- var useStyles31 = createStyles((theme, { color, radius: radius2 }) => ({
16235
+ var __spreadProps39 = (a4, b6) => __defProps39(a4, __getOwnPropDescs39(b6));
16236
+ var useStyles32 = createStyles((theme, { color, radius: radius2 }) => ({
16092
16237
  root: {
16093
16238
  position: "relative",
16094
16239
  display: "inline-block"
16095
16240
  },
16096
- body: __spreadProps37(__spreadValues69({}, theme.fn.fontStyles()), {
16241
+ body: __spreadProps39(__spreadValues71({}, theme.fn.fontStyles()), {
16097
16242
  backgroundColor: theme.fn.themeColor(color, theme.colorScheme === "dark" ? 3 : 9),
16098
16243
  lineHeight: theme.lineHeight,
16099
16244
  fontSize: theme.fontSizes.sm,
@@ -16110,38 +16255,38 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16110
16255
  zIndex: 1
16111
16256
  }
16112
16257
  }));
16113
- var Tooltip_styles_default = useStyles31;
16258
+ var Tooltip_styles_default = useStyles32;
16114
16259
 
16115
16260
  // ../../node_modules/.pnpm/@mantine+core@4.2.12_bbsc5s62p6ptydl6k4m2gpkxl4/node_modules/@mantine/core/esm/components/Tooltip/Tooltip.js
16116
- var __defProp71 = Object.defineProperty;
16117
- var __getOwnPropSymbols71 = Object.getOwnPropertySymbols;
16118
- var __hasOwnProp72 = Object.prototype.hasOwnProperty;
16119
- var __propIsEnum71 = Object.prototype.propertyIsEnumerable;
16120
- var __defNormalProp70 = (obj, key, value) => key in obj ? __defProp71(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16121
- var __spreadValues70 = (a4, b6) => {
16261
+ var __defProp73 = Object.defineProperty;
16262
+ var __getOwnPropSymbols73 = Object.getOwnPropertySymbols;
16263
+ var __hasOwnProp74 = Object.prototype.hasOwnProperty;
16264
+ var __propIsEnum73 = Object.prototype.propertyIsEnumerable;
16265
+ var __defNormalProp72 = (obj, key, value) => key in obj ? __defProp73(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16266
+ var __spreadValues72 = (a4, b6) => {
16122
16267
  for (var prop in b6 || (b6 = {}))
16123
- if (__hasOwnProp72.call(b6, prop))
16124
- __defNormalProp70(a4, prop, b6[prop]);
16125
- if (__getOwnPropSymbols71)
16126
- for (var prop of __getOwnPropSymbols71(b6)) {
16127
- if (__propIsEnum71.call(b6, prop))
16128
- __defNormalProp70(a4, prop, b6[prop]);
16268
+ if (__hasOwnProp74.call(b6, prop))
16269
+ __defNormalProp72(a4, prop, b6[prop]);
16270
+ if (__getOwnPropSymbols73)
16271
+ for (var prop of __getOwnPropSymbols73(b6)) {
16272
+ if (__propIsEnum73.call(b6, prop))
16273
+ __defNormalProp72(a4, prop, b6[prop]);
16129
16274
  }
16130
16275
  return a4;
16131
16276
  };
16132
- var __objRest42 = (source, exclude) => {
16277
+ var __objRest43 = (source, exclude) => {
16133
16278
  var target = {};
16134
16279
  for (var prop in source)
16135
- if (__hasOwnProp72.call(source, prop) && exclude.indexOf(prop) < 0)
16280
+ if (__hasOwnProp74.call(source, prop) && exclude.indexOf(prop) < 0)
16136
16281
  target[prop] = source[prop];
16137
- if (source != null && __getOwnPropSymbols71)
16138
- for (var prop of __getOwnPropSymbols71(source)) {
16139
- if (exclude.indexOf(prop) < 0 && __propIsEnum71.call(source, prop))
16282
+ if (source != null && __getOwnPropSymbols73)
16283
+ for (var prop of __getOwnPropSymbols73(source)) {
16284
+ if (exclude.indexOf(prop) < 0 && __propIsEnum73.call(source, prop))
16140
16285
  target[prop] = source[prop];
16141
16286
  }
16142
16287
  return target;
16143
16288
  };
16144
- var defaultProps27 = {
16289
+ var defaultProps28 = {
16145
16290
  openDelay: 0,
16146
16291
  closeDelay: 0,
16147
16292
  gutter: 5,
@@ -16161,7 +16306,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16161
16306
  withinPortal: true
16162
16307
  };
16163
16308
  var Tooltip = N2((props, ref2) => {
16164
- const _a2 = useMantineDefaultProps("Tooltip", defaultProps27, props), {
16309
+ const _a2 = useMantineDefaultProps("Tooltip", defaultProps28, props), {
16165
16310
  className,
16166
16311
  label,
16167
16312
  children,
@@ -16191,7 +16336,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16191
16336
  styles: styles2,
16192
16337
  onMouseLeave,
16193
16338
  onMouseEnter
16194
- } = _a2, others = __objRest42(_a2, [
16339
+ } = _a2, others = __objRest43(_a2, [
16195
16340
  "className",
16196
16341
  "label",
16197
16342
  "children",
@@ -16253,7 +16398,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16253
16398
  window.clearTimeout(openTimeoutRef.current);
16254
16399
  window.clearTimeout(closeTimeoutRef.current);
16255
16400
  }, []);
16256
- return /* @__PURE__ */ _n.createElement(Box, __spreadValues70({
16401
+ return /* @__PURE__ */ _n.createElement(Box, __spreadValues72({
16257
16402
  className: cx(classes.root, className),
16258
16403
  onPointerEnter: (event) => {
16259
16404
  handleOpen();
@@ -16307,25 +16452,25 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16307
16452
  }
16308
16453
 
16309
16454
  // ../../node_modules/.pnpm/@mantine+modals@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/modals/esm/ConfirmModal.js
16310
- var __defProp72 = Object.defineProperty;
16311
- var __defProps38 = Object.defineProperties;
16312
- var __getOwnPropDescs38 = Object.getOwnPropertyDescriptors;
16313
- var __getOwnPropSymbols72 = Object.getOwnPropertySymbols;
16314
- var __hasOwnProp73 = Object.prototype.hasOwnProperty;
16315
- var __propIsEnum72 = Object.prototype.propertyIsEnumerable;
16316
- var __defNormalProp71 = (obj, key, value) => key in obj ? __defProp72(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16317
- var __spreadValues71 = (a4, b6) => {
16455
+ var __defProp74 = Object.defineProperty;
16456
+ var __defProps40 = Object.defineProperties;
16457
+ var __getOwnPropDescs40 = Object.getOwnPropertyDescriptors;
16458
+ var __getOwnPropSymbols74 = Object.getOwnPropertySymbols;
16459
+ var __hasOwnProp75 = Object.prototype.hasOwnProperty;
16460
+ var __propIsEnum74 = Object.prototype.propertyIsEnumerable;
16461
+ var __defNormalProp73 = (obj, key, value) => key in obj ? __defProp74(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16462
+ var __spreadValues73 = (a4, b6) => {
16318
16463
  for (var prop in b6 || (b6 = {}))
16319
- if (__hasOwnProp73.call(b6, prop))
16320
- __defNormalProp71(a4, prop, b6[prop]);
16321
- if (__getOwnPropSymbols72)
16322
- for (var prop of __getOwnPropSymbols72(b6)) {
16323
- if (__propIsEnum72.call(b6, prop))
16324
- __defNormalProp71(a4, prop, b6[prop]);
16464
+ if (__hasOwnProp75.call(b6, prop))
16465
+ __defNormalProp73(a4, prop, b6[prop]);
16466
+ if (__getOwnPropSymbols74)
16467
+ for (var prop of __getOwnPropSymbols74(b6)) {
16468
+ if (__propIsEnum74.call(b6, prop))
16469
+ __defNormalProp73(a4, prop, b6[prop]);
16325
16470
  }
16326
16471
  return a4;
16327
16472
  };
16328
- var __spreadProps38 = (a4, b6) => __defProps38(a4, __getOwnPropDescs38(b6));
16473
+ var __spreadProps40 = (a4, b6) => __defProps40(a4, __getOwnPropDescs40(b6));
16329
16474
  function ConfirmModal({
16330
16475
  id: id2,
16331
16476
  cancelProps,
@@ -16352,13 +16497,13 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16352
16497
  };
16353
16498
  return /* @__PURE__ */ _n.createElement(_n.Fragment, null, children && /* @__PURE__ */ _n.createElement(Box, {
16354
16499
  mb: "md"
16355
- }, children), /* @__PURE__ */ _n.createElement(Group, __spreadValues71({
16500
+ }, children), /* @__PURE__ */ _n.createElement(Group, __spreadValues73({
16356
16501
  position: "right"
16357
- }, groupProps), /* @__PURE__ */ _n.createElement(Button, __spreadProps38(__spreadValues71({
16502
+ }, groupProps), /* @__PURE__ */ _n.createElement(Button, __spreadProps40(__spreadValues73({
16358
16503
  variant: "default"
16359
16504
  }, cancelProps), {
16360
16505
  onClick: handleCancel
16361
- }), (cancelProps == null ? void 0 : cancelProps.children) || cancelLabel), /* @__PURE__ */ _n.createElement(Button, __spreadProps38(__spreadValues71({}, confirmProps), {
16506
+ }), (cancelProps == null ? void 0 : cancelProps.children) || cancelLabel), /* @__PURE__ */ _n.createElement(Button, __spreadProps40(__spreadValues73({}, confirmProps), {
16362
16507
  onClick: handleConfirm
16363
16508
  }), (confirmProps == null ? void 0 : confirmProps.children) || confirmLabel)));
16364
16509
  }
@@ -16391,33 +16536,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16391
16536
  }
16392
16537
 
16393
16538
  // ../../node_modules/.pnpm/@mantine+modals@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/modals/esm/ModalsProvider.js
16394
- var __defProp73 = Object.defineProperty;
16395
- var __defProps39 = Object.defineProperties;
16396
- var __getOwnPropDescs39 = Object.getOwnPropertyDescriptors;
16397
- var __getOwnPropSymbols73 = Object.getOwnPropertySymbols;
16398
- var __hasOwnProp74 = Object.prototype.hasOwnProperty;
16399
- var __propIsEnum73 = Object.prototype.propertyIsEnumerable;
16400
- var __defNormalProp72 = (obj, key, value) => key in obj ? __defProp73(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16401
- var __spreadValues72 = (a4, b6) => {
16539
+ var __defProp75 = Object.defineProperty;
16540
+ var __defProps41 = Object.defineProperties;
16541
+ var __getOwnPropDescs41 = Object.getOwnPropertyDescriptors;
16542
+ var __getOwnPropSymbols75 = Object.getOwnPropertySymbols;
16543
+ var __hasOwnProp76 = Object.prototype.hasOwnProperty;
16544
+ var __propIsEnum75 = Object.prototype.propertyIsEnumerable;
16545
+ var __defNormalProp74 = (obj, key, value) => key in obj ? __defProp75(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16546
+ var __spreadValues74 = (a4, b6) => {
16402
16547
  for (var prop in b6 || (b6 = {}))
16403
- if (__hasOwnProp74.call(b6, prop))
16404
- __defNormalProp72(a4, prop, b6[prop]);
16405
- if (__getOwnPropSymbols73)
16406
- for (var prop of __getOwnPropSymbols73(b6)) {
16407
- if (__propIsEnum73.call(b6, prop))
16408
- __defNormalProp72(a4, prop, b6[prop]);
16548
+ if (__hasOwnProp76.call(b6, prop))
16549
+ __defNormalProp74(a4, prop, b6[prop]);
16550
+ if (__getOwnPropSymbols75)
16551
+ for (var prop of __getOwnPropSymbols75(b6)) {
16552
+ if (__propIsEnum75.call(b6, prop))
16553
+ __defNormalProp74(a4, prop, b6[prop]);
16409
16554
  }
16410
16555
  return a4;
16411
16556
  };
16412
- var __spreadProps39 = (a4, b6) => __defProps39(a4, __getOwnPropDescs39(b6));
16413
- var __objRest43 = (source, exclude) => {
16557
+ var __spreadProps41 = (a4, b6) => __defProps41(a4, __getOwnPropDescs41(b6));
16558
+ var __objRest44 = (source, exclude) => {
16414
16559
  var target = {};
16415
16560
  for (var prop in source)
16416
- if (__hasOwnProp74.call(source, prop) && exclude.indexOf(prop) < 0)
16561
+ if (__hasOwnProp76.call(source, prop) && exclude.indexOf(prop) < 0)
16417
16562
  target[prop] = source[prop];
16418
- if (source != null && __getOwnPropSymbols73)
16419
- for (var prop of __getOwnPropSymbols73(source)) {
16420
- if (exclude.indexOf(prop) < 0 && __propIsEnum73.call(source, prop))
16563
+ if (source != null && __getOwnPropSymbols75)
16564
+ for (var prop of __getOwnPropSymbols75(source)) {
16565
+ if (exclude.indexOf(prop) < 0 && __propIsEnum75.call(source, prop))
16421
16566
  target[prop] = source[prop];
16422
16567
  }
16423
16568
  return target;
@@ -16437,7 +16582,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16437
16582
  confirmProps,
16438
16583
  groupProps,
16439
16584
  labels
16440
- } = _a2, others = __objRest43(_a2, [
16585
+ } = _a2, others = __objRest44(_a2, [
16441
16586
  "id",
16442
16587
  "children",
16443
16588
  "onCancel",
@@ -16462,7 +16607,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16462
16607
  groupProps,
16463
16608
  labels
16464
16609
  },
16465
- modalProps: __spreadValues72({
16610
+ modalProps: __spreadValues74({
16466
16611
  id: id2
16467
16612
  }, others)
16468
16613
  };
@@ -16541,7 +16686,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16541
16686
  var _a2;
16542
16687
  switch ((_a2 = state.current) == null ? void 0 : _a2.type) {
16543
16688
  case "context": {
16544
- const _b = state.current.props, { innerProps } = _b, rest = __objRest43(_b, ["innerProps"]);
16689
+ const _b = state.current.props, { innerProps } = _b, rest = __objRest44(_b, ["innerProps"]);
16545
16690
  const ContextModal = modals[state.current.ctx];
16546
16691
  return {
16547
16692
  modalProps: rest,
@@ -16556,14 +16701,14 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16556
16701
  const { modalProps: separatedModalProps, confirmProps: separatedConfirmProps } = separateConfirmModalProps(state.current.props);
16557
16702
  return {
16558
16703
  modalProps: separatedModalProps,
16559
- content: /* @__PURE__ */ _n.createElement(ConfirmModal, __spreadProps39(__spreadValues72({}, separatedConfirmProps), {
16704
+ content: /* @__PURE__ */ _n.createElement(ConfirmModal, __spreadProps41(__spreadValues74({}, separatedConfirmProps), {
16560
16705
  id: state.current.id,
16561
16706
  labels: state.current.props.labels || labels
16562
16707
  }))
16563
16708
  };
16564
16709
  }
16565
16710
  case "content": {
16566
- const _c2 = state.current.props, { children: currentModalChildren } = _c2, rest = __objRest43(_c2, ["children"]);
16711
+ const _c2 = state.current.props, { children: currentModalChildren } = _c2, rest = __objRest44(_c2, ["children"]);
16567
16712
  return {
16568
16713
  modalProps: rest,
16569
16714
  content: /* @__PURE__ */ _n.createElement(_n.Fragment, null, currentModalChildren)
@@ -16580,7 +16725,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
16580
16725
  const { modalProps: currentModalProps, content } = getCurrentModal();
16581
16726
  return /* @__PURE__ */ _n.createElement(ModalsContext.Provider, {
16582
16727
  value: ctx
16583
- }, /* @__PURE__ */ _n.createElement(Modal, __spreadProps39(__spreadValues72(__spreadValues72({}, modalProps), currentModalProps), {
16728
+ }, /* @__PURE__ */ _n.createElement(Modal, __spreadProps41(__spreadValues74(__spreadValues74({}, modalProps), currentModalProps), {
16584
16729
  opened: state.modals.length > 0,
16585
16730
  onClose: () => closeModal(state.current.id)
16586
16731
  }), content), children);
@@ -17166,7 +17311,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17166
17311
  return obj[k7];
17167
17312
  });
17168
17313
  };
17169
- var defaultProps28 = {
17314
+ var defaultProps29 = {
17170
17315
  component: "div",
17171
17316
  childFactory: function childFactory(child2) {
17172
17317
  return child2;
@@ -17294,7 +17439,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17294
17439
  */
17295
17440
  childFactory: import_prop_types3.default.func
17296
17441
  } : {};
17297
- TransitionGroup.defaultProps = defaultProps28;
17442
+ TransitionGroup.defaultProps = defaultProps29;
17298
17443
  var TransitionGroup_default = TransitionGroup;
17299
17444
 
17300
17445
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/events.js
@@ -17347,19 +17492,19 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17347
17492
  var get_position_styles_default = getPositionStyles;
17348
17493
 
17349
17494
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/get-notification-state-styles/get-notification-state-styles.js
17350
- var __defProp74 = Object.defineProperty;
17351
- var __getOwnPropSymbols74 = Object.getOwnPropertySymbols;
17352
- var __hasOwnProp75 = Object.prototype.hasOwnProperty;
17353
- var __propIsEnum74 = Object.prototype.propertyIsEnumerable;
17354
- var __defNormalProp73 = (obj, key, value) => key in obj ? __defProp74(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17355
- var __spreadValues73 = (a4, b6) => {
17495
+ var __defProp76 = Object.defineProperty;
17496
+ var __getOwnPropSymbols76 = Object.getOwnPropertySymbols;
17497
+ var __hasOwnProp77 = Object.prototype.hasOwnProperty;
17498
+ var __propIsEnum76 = Object.prototype.propertyIsEnumerable;
17499
+ var __defNormalProp75 = (obj, key, value) => key in obj ? __defProp76(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17500
+ var __spreadValues75 = (a4, b6) => {
17356
17501
  for (var prop in b6 || (b6 = {}))
17357
- if (__hasOwnProp75.call(b6, prop))
17358
- __defNormalProp73(a4, prop, b6[prop]);
17359
- if (__getOwnPropSymbols74)
17360
- for (var prop of __getOwnPropSymbols74(b6)) {
17361
- if (__propIsEnum74.call(b6, prop))
17362
- __defNormalProp73(a4, prop, b6[prop]);
17502
+ if (__hasOwnProp77.call(b6, prop))
17503
+ __defNormalProp75(a4, prop, b6[prop]);
17504
+ if (__getOwnPropSymbols76)
17505
+ for (var prop of __getOwnPropSymbols76(b6)) {
17506
+ if (__propIsEnum76.call(b6, prop))
17507
+ __defNormalProp75(a4, prop, b6[prop]);
17363
17508
  }
17364
17509
  return a4;
17365
17510
  };
@@ -17406,7 +17551,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17406
17551
  exiting: outState,
17407
17552
  exited: outState
17408
17553
  };
17409
- return __spreadValues73(__spreadValues73({}, commonStyles), transitionStyles[state]);
17554
+ return __spreadValues75(__spreadValues75({}, commonStyles), transitionStyles[state]);
17410
17555
  }
17411
17556
  var get_notification_state_styles_default = getNotificationStateStyles;
17412
17557
 
@@ -17423,33 +17568,33 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17423
17568
  var get_auto_close_default = getAutoClose;
17424
17569
 
17425
17570
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationContainer/NotificationContainer.js
17426
- var __defProp75 = Object.defineProperty;
17427
- var __defProps40 = Object.defineProperties;
17428
- var __getOwnPropDescs40 = Object.getOwnPropertyDescriptors;
17429
- var __getOwnPropSymbols75 = Object.getOwnPropertySymbols;
17430
- var __hasOwnProp76 = Object.prototype.hasOwnProperty;
17431
- var __propIsEnum75 = Object.prototype.propertyIsEnumerable;
17432
- var __defNormalProp74 = (obj, key, value) => key in obj ? __defProp75(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17433
- var __spreadValues74 = (a4, b6) => {
17571
+ var __defProp77 = Object.defineProperty;
17572
+ var __defProps42 = Object.defineProperties;
17573
+ var __getOwnPropDescs42 = Object.getOwnPropertyDescriptors;
17574
+ var __getOwnPropSymbols77 = Object.getOwnPropertySymbols;
17575
+ var __hasOwnProp78 = Object.prototype.hasOwnProperty;
17576
+ var __propIsEnum77 = Object.prototype.propertyIsEnumerable;
17577
+ var __defNormalProp76 = (obj, key, value) => key in obj ? __defProp77(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17578
+ var __spreadValues76 = (a4, b6) => {
17434
17579
  for (var prop in b6 || (b6 = {}))
17435
- if (__hasOwnProp76.call(b6, prop))
17436
- __defNormalProp74(a4, prop, b6[prop]);
17437
- if (__getOwnPropSymbols75)
17438
- for (var prop of __getOwnPropSymbols75(b6)) {
17439
- if (__propIsEnum75.call(b6, prop))
17440
- __defNormalProp74(a4, prop, b6[prop]);
17580
+ if (__hasOwnProp78.call(b6, prop))
17581
+ __defNormalProp76(a4, prop, b6[prop]);
17582
+ if (__getOwnPropSymbols77)
17583
+ for (var prop of __getOwnPropSymbols77(b6)) {
17584
+ if (__propIsEnum77.call(b6, prop))
17585
+ __defNormalProp76(a4, prop, b6[prop]);
17441
17586
  }
17442
17587
  return a4;
17443
17588
  };
17444
- var __spreadProps40 = (a4, b6) => __defProps40(a4, __getOwnPropDescs40(b6));
17445
- var __objRest44 = (source, exclude) => {
17589
+ var __spreadProps42 = (a4, b6) => __defProps42(a4, __getOwnPropDescs42(b6));
17590
+ var __objRest45 = (source, exclude) => {
17446
17591
  var target = {};
17447
17592
  for (var prop in source)
17448
- if (__hasOwnProp76.call(source, prop) && exclude.indexOf(prop) < 0)
17593
+ if (__hasOwnProp78.call(source, prop) && exclude.indexOf(prop) < 0)
17449
17594
  target[prop] = source[prop];
17450
- if (source != null && __getOwnPropSymbols75)
17451
- for (var prop of __getOwnPropSymbols75(source)) {
17452
- if (exclude.indexOf(prop) < 0 && __propIsEnum75.call(source, prop))
17595
+ if (source != null && __getOwnPropSymbols77)
17596
+ for (var prop of __getOwnPropSymbols77(source)) {
17597
+ if (exclude.indexOf(prop) < 0 && __propIsEnum77.call(source, prop))
17453
17598
  target[prop] = source[prop];
17454
17599
  }
17455
17600
  return target;
@@ -17460,13 +17605,13 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17460
17605
  autoClose,
17461
17606
  onHide,
17462
17607
  innerRef
17463
- } = _b, others = __objRest44(_b, [
17608
+ } = _b, others = __objRest45(_b, [
17464
17609
  "notification",
17465
17610
  "autoClose",
17466
17611
  "onHide",
17467
17612
  "innerRef"
17468
17613
  ]);
17469
- const _a22 = notification, { autoClose: notificationAutoClose } = _a22, notificationProps = __objRest44(_a22, ["autoClose"]);
17614
+ const _a22 = notification, { autoClose: notificationAutoClose } = _a22, notificationProps = __objRest45(_a22, ["autoClose"]);
17470
17615
  const autoCloseTimeout = get_auto_close_default(autoClose, notificationAutoClose);
17471
17616
  const hideTimeout = A2();
17472
17617
  const handleHide = () => {
@@ -17490,7 +17635,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17490
17635
  handleDelayedHide();
17491
17636
  return cancelDelayedHide;
17492
17637
  }, [autoClose, notification.autoClose]);
17493
- return /* @__PURE__ */ _n.createElement(Notification, __spreadProps40(__spreadValues74(__spreadValues74({}, notificationProps), others), {
17638
+ return /* @__PURE__ */ _n.createElement(Notification, __spreadProps42(__spreadValues76(__spreadValues76({}, notificationProps), others), {
17494
17639
  onClose: handleHide,
17495
17640
  onMouseEnter: cancelDelayedHide,
17496
17641
  onMouseLeave: handleDelayedHide,
@@ -17501,7 +17646,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17501
17646
  var NotificationContainer_default = NotificationContainer;
17502
17647
 
17503
17648
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.styles.js
17504
- var useStyles32 = createStyles((theme) => ({
17649
+ var useStyles33 = createStyles((theme) => ({
17505
17650
  notifications: {
17506
17651
  width: `calc(100% - ${theme.spacing.md * 2}px)`,
17507
17652
  boxSizing: "border-box",
@@ -17514,28 +17659,28 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17514
17659
  }
17515
17660
  }
17516
17661
  }));
17517
- var NotificationsProvider_styles_default = useStyles32;
17662
+ var NotificationsProvider_styles_default = useStyles33;
17518
17663
 
17519
17664
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/use-notifications-state/use-notifications-state.js
17520
- var __defProp76 = Object.defineProperty;
17521
- var __defProps41 = Object.defineProperties;
17522
- var __getOwnPropDescs41 = Object.getOwnPropertyDescriptors;
17523
- var __getOwnPropSymbols76 = Object.getOwnPropertySymbols;
17524
- var __hasOwnProp77 = Object.prototype.hasOwnProperty;
17525
- var __propIsEnum76 = Object.prototype.propertyIsEnumerable;
17526
- var __defNormalProp75 = (obj, key, value) => key in obj ? __defProp76(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17527
- var __spreadValues75 = (a4, b6) => {
17665
+ var __defProp78 = Object.defineProperty;
17666
+ var __defProps43 = Object.defineProperties;
17667
+ var __getOwnPropDescs43 = Object.getOwnPropertyDescriptors;
17668
+ var __getOwnPropSymbols78 = Object.getOwnPropertySymbols;
17669
+ var __hasOwnProp79 = Object.prototype.hasOwnProperty;
17670
+ var __propIsEnum78 = Object.prototype.propertyIsEnumerable;
17671
+ var __defNormalProp77 = (obj, key, value) => key in obj ? __defProp78(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17672
+ var __spreadValues77 = (a4, b6) => {
17528
17673
  for (var prop in b6 || (b6 = {}))
17529
- if (__hasOwnProp77.call(b6, prop))
17530
- __defNormalProp75(a4, prop, b6[prop]);
17531
- if (__getOwnPropSymbols76)
17532
- for (var prop of __getOwnPropSymbols76(b6)) {
17533
- if (__propIsEnum76.call(b6, prop))
17534
- __defNormalProp75(a4, prop, b6[prop]);
17674
+ if (__hasOwnProp79.call(b6, prop))
17675
+ __defNormalProp77(a4, prop, b6[prop]);
17676
+ if (__getOwnPropSymbols78)
17677
+ for (var prop of __getOwnPropSymbols78(b6)) {
17678
+ if (__propIsEnum78.call(b6, prop))
17679
+ __defNormalProp77(a4, prop, b6[prop]);
17535
17680
  }
17536
17681
  return a4;
17537
17682
  };
17538
- var __spreadProps41 = (a4, b6) => __defProps41(a4, __getOwnPropDescs41(b6));
17683
+ var __spreadProps43 = (a4, b6) => __defProps43(a4, __getOwnPropDescs43(b6));
17539
17684
  function useNotificationsState({ limit }) {
17540
17685
  const { state, queue, update, cleanQueue } = useQueue({
17541
17686
  initialValues: [],
@@ -17547,7 +17692,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17547
17692
  if (notification.id && notifications.some((n3) => n3.id === notification.id)) {
17548
17693
  return notifications;
17549
17694
  }
17550
- return [...notifications, __spreadProps41(__spreadValues75({}, notification), { id: id2 })];
17695
+ return [...notifications, __spreadProps43(__spreadValues77({}, notification), { id: id2 })];
17551
17696
  });
17552
17697
  return id2;
17553
17698
  };
@@ -17581,30 +17726,30 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17581
17726
  var use_notifications_state_default = useNotificationsState;
17582
17727
 
17583
17728
  // ../../node_modules/.pnpm/@mantine+notifications@4.2.12_weuwcj7e2xqup6j7fbypmbmgre/node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.js
17584
- var __defProp77 = Object.defineProperty;
17585
- var __getOwnPropSymbols77 = Object.getOwnPropertySymbols;
17586
- var __hasOwnProp78 = Object.prototype.hasOwnProperty;
17587
- var __propIsEnum77 = Object.prototype.propertyIsEnumerable;
17588
- var __defNormalProp76 = (obj, key, value) => key in obj ? __defProp77(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17589
- var __spreadValues76 = (a4, b6) => {
17729
+ var __defProp79 = Object.defineProperty;
17730
+ var __getOwnPropSymbols79 = Object.getOwnPropertySymbols;
17731
+ var __hasOwnProp80 = Object.prototype.hasOwnProperty;
17732
+ var __propIsEnum79 = Object.prototype.propertyIsEnumerable;
17733
+ var __defNormalProp78 = (obj, key, value) => key in obj ? __defProp79(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17734
+ var __spreadValues78 = (a4, b6) => {
17590
17735
  for (var prop in b6 || (b6 = {}))
17591
- if (__hasOwnProp78.call(b6, prop))
17592
- __defNormalProp76(a4, prop, b6[prop]);
17593
- if (__getOwnPropSymbols77)
17594
- for (var prop of __getOwnPropSymbols77(b6)) {
17595
- if (__propIsEnum77.call(b6, prop))
17596
- __defNormalProp76(a4, prop, b6[prop]);
17736
+ if (__hasOwnProp80.call(b6, prop))
17737
+ __defNormalProp78(a4, prop, b6[prop]);
17738
+ if (__getOwnPropSymbols79)
17739
+ for (var prop of __getOwnPropSymbols79(b6)) {
17740
+ if (__propIsEnum79.call(b6, prop))
17741
+ __defNormalProp78(a4, prop, b6[prop]);
17597
17742
  }
17598
17743
  return a4;
17599
17744
  };
17600
- var __objRest45 = (source, exclude) => {
17745
+ var __objRest46 = (source, exclude) => {
17601
17746
  var target = {};
17602
17747
  for (var prop in source)
17603
- if (__hasOwnProp78.call(source, prop) && exclude.indexOf(prop) < 0)
17748
+ if (__hasOwnProp80.call(source, prop) && exclude.indexOf(prop) < 0)
17604
17749
  target[prop] = source[prop];
17605
- if (source != null && __getOwnPropSymbols77)
17606
- for (var prop of __getOwnPropSymbols77(source)) {
17607
- if (exclude.indexOf(prop) < 0 && __propIsEnum77.call(source, prop))
17750
+ if (source != null && __getOwnPropSymbols79)
17751
+ for (var prop of __getOwnPropSymbols79(source)) {
17752
+ if (exclude.indexOf(prop) < 0 && __propIsEnum79.call(source, prop))
17608
17753
  target[prop] = source[prop];
17609
17754
  }
17610
17755
  return target;
@@ -17629,7 +17774,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17629
17774
  zIndex = getDefaultZIndex("overlay"),
17630
17775
  style,
17631
17776
  children
17632
- } = _b, others = __objRest45(_b, [
17777
+ } = _b, others = __objRest46(_b, [
17633
17778
  "className",
17634
17779
  "position",
17635
17780
  "autoClose",
@@ -17687,7 +17832,7 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17687
17832
  className: classes.notification,
17688
17833
  autoClose,
17689
17834
  sx: [
17690
- __spreadValues76({}, get_notification_state_styles_default({
17835
+ __spreadValues78({}, get_notification_state_styles_default({
17691
17836
  state,
17692
17837
  positioning,
17693
17838
  transitionDuration: duration,
@@ -17700,10 +17845,10 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_liter
17700
17845
  value: ctx
17701
17846
  }, /* @__PURE__ */ _n.createElement(Portal, {
17702
17847
  zIndex
17703
- }, /* @__PURE__ */ _n.createElement(Box, __spreadValues76({
17848
+ }, /* @__PURE__ */ _n.createElement(Box, __spreadValues78({
17704
17849
  className: cx(classes.notifications, className),
17705
17850
  style,
17706
- sx: __spreadValues76({
17851
+ sx: __spreadValues78({
17707
17852
  maxWidth: containerWidth
17708
17853
  }, get_position_styles_default(positioning, containerWidth, theme.spacing.md))
17709
17854
  }, others), /* @__PURE__ */ _n.createElement(TransitionGroup_default, null, items))), children);
@@ -38231,6 +38376,27 @@ ${this.customData.serverResponse}`;
38231
38376
  slug
38232
38377
  );
38233
38378
  }
38379
+ async function cmsListVersions(docId) {
38380
+ const db3 = window.firebase.db;
38381
+ const docRef = getDraftDocRef(docId);
38382
+ const versionsCollection = Ja2(db3, docRef.path, "Versions");
38383
+ const q6 = ol(versionsCollection, dl("sys.modifiedAt", "desc"));
38384
+ const querySnapshot = await zl(q6);
38385
+ const versions = [];
38386
+ querySnapshot.forEach((doc) => {
38387
+ versions.push(doc.data());
38388
+ });
38389
+ return versions;
38390
+ }
38391
+ async function cmsRestoreVersion(docId, version5) {
38392
+ const docRef = getDraftDocRef(docId);
38393
+ const updates = {
38394
+ "sys.modifiedAt": df(),
38395
+ "sys.modifiedBy": window.firebase.user.email,
38396
+ fields: version5.fields || {}
38397
+ };
38398
+ await Yl(docRef, updates);
38399
+ }
38234
38400
 
38235
38401
  // ui/utils/slug.ts
38236
38402
  function isSlugValid(slug) {
@@ -38488,43 +38654,43 @@ ${this.customData.serverResponse}`;
38488
38654
  };
38489
38655
 
38490
38656
  // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/createPreactComponent.js
38491
- var __defProp78 = Object.defineProperty;
38492
- var __defProps42 = Object.defineProperties;
38493
- var __getOwnPropDescs42 = Object.getOwnPropertyDescriptors;
38494
- var __getOwnPropSymbols78 = Object.getOwnPropertySymbols;
38495
- var __hasOwnProp79 = Object.prototype.hasOwnProperty;
38496
- var __propIsEnum78 = Object.prototype.propertyIsEnumerable;
38497
- var __defNormalProp77 = (obj, key, value) => key in obj ? __defProp78(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
38498
- var __spreadValues77 = (a4, b6) => {
38657
+ var __defProp80 = Object.defineProperty;
38658
+ var __defProps44 = Object.defineProperties;
38659
+ var __getOwnPropDescs44 = Object.getOwnPropertyDescriptors;
38660
+ var __getOwnPropSymbols80 = Object.getOwnPropertySymbols;
38661
+ var __hasOwnProp81 = Object.prototype.hasOwnProperty;
38662
+ var __propIsEnum80 = Object.prototype.propertyIsEnumerable;
38663
+ var __defNormalProp79 = (obj, key, value) => key in obj ? __defProp80(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
38664
+ var __spreadValues79 = (a4, b6) => {
38499
38665
  for (var prop in b6 || (b6 = {}))
38500
- if (__hasOwnProp79.call(b6, prop))
38501
- __defNormalProp77(a4, prop, b6[prop]);
38502
- if (__getOwnPropSymbols78)
38503
- for (var prop of __getOwnPropSymbols78(b6)) {
38504
- if (__propIsEnum78.call(b6, prop))
38505
- __defNormalProp77(a4, prop, b6[prop]);
38666
+ if (__hasOwnProp81.call(b6, prop))
38667
+ __defNormalProp79(a4, prop, b6[prop]);
38668
+ if (__getOwnPropSymbols80)
38669
+ for (var prop of __getOwnPropSymbols80(b6)) {
38670
+ if (__propIsEnum80.call(b6, prop))
38671
+ __defNormalProp79(a4, prop, b6[prop]);
38506
38672
  }
38507
38673
  return a4;
38508
38674
  };
38509
- var __spreadProps42 = (a4, b6) => __defProps42(a4, __getOwnPropDescs42(b6));
38510
- var __objRest46 = (source, exclude) => {
38675
+ var __spreadProps44 = (a4, b6) => __defProps44(a4, __getOwnPropDescs44(b6));
38676
+ var __objRest47 = (source, exclude) => {
38511
38677
  var target = {};
38512
38678
  for (var prop in source)
38513
- if (__hasOwnProp79.call(source, prop) && exclude.indexOf(prop) < 0)
38679
+ if (__hasOwnProp81.call(source, prop) && exclude.indexOf(prop) < 0)
38514
38680
  target[prop] = source[prop];
38515
- if (source != null && __getOwnPropSymbols78)
38516
- for (var prop of __getOwnPropSymbols78(source)) {
38517
- if (exclude.indexOf(prop) < 0 && __propIsEnum78.call(source, prop))
38681
+ if (source != null && __getOwnPropSymbols80)
38682
+ for (var prop of __getOwnPropSymbols80(source)) {
38683
+ if (exclude.indexOf(prop) < 0 && __propIsEnum80.call(source, prop))
38518
38684
  target[prop] = source[prop];
38519
38685
  }
38520
38686
  return target;
38521
38687
  };
38522
38688
  var createPreactComponent = (iconName, iconNamePascal, iconNode) => {
38523
38689
  const Component2 = (_a2) => {
38524
- var _b = _a2, { color = "currentColor", size: size2 = 24, stroke = 2, children } = _b, rest = __objRest46(_b, ["color", "size", "stroke", "children"]);
38690
+ var _b = _a2, { color = "currentColor", size: size2 = 24, stroke = 2, children } = _b, rest = __objRest47(_b, ["color", "size", "stroke", "children"]);
38525
38691
  return h(
38526
38692
  "svg",
38527
- __spreadValues77(__spreadProps42(__spreadValues77({}, defaultAttributes), {
38693
+ __spreadValues79(__spreadProps44(__spreadValues79({}, defaultAttributes), {
38528
38694
  width: size2,
38529
38695
  height: size2,
38530
38696
  stroke: color,
@@ -38783,6 +38949,12 @@ ${this.customData.serverResponse}`;
38783
38949
  ]
38784
38950
  ]);
38785
38951
 
38952
+ // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconHistory.js
38953
+ var IconHistory = createPreactComponent("history", "IconHistory", [
38954
+ ["path", { d: "M12 8l0 4l2 2", key: "svg-0" }],
38955
+ ["path", { d: "M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5", key: "svg-1" }]
38956
+ ]);
38957
+
38786
38958
  // ../../node_modules/.pnpm/@tabler+icons-preact@2.17.0_preact@10.11.0/node_modules/@tabler/icons-preact/dist/esm/icons/IconHome.js
38787
38959
  var IconHome = createPreactComponent("home", "IconHome", [
38788
38960
  ["path", { d: "M5 12l-2 0l9 -9l9 9l-2 0", key: "svg-0" }],
@@ -39312,6 +39484,13 @@ ${this.customData.serverResponse}`;
39312
39484
  const [selectedLocale, setSelectedLocale] = y2("en");
39313
39485
  const [localeTranslations, setLocaleTranslations] = y2({});
39314
39486
  const [translationsMap, setTranslationsMap] = y2({});
39487
+ const sourceToTranslationsMap = T2(() => {
39488
+ const results = {};
39489
+ Object.values(translationsMap).forEach((row) => {
39490
+ results[row.source] = row;
39491
+ });
39492
+ return results;
39493
+ }, [translationsMap]);
39315
39494
  const locales = window.__ROOT_CTX.rootConfig.i18n.locales || [];
39316
39495
  const localeOptions = locales.map((locale) => ({
39317
39496
  value: locale,
@@ -39342,14 +39521,26 @@ ${this.customData.serverResponse}`;
39342
39521
  );
39343
39522
  setLocaleTranslations(localeTranslations2);
39344
39523
  }, [selectedLocale, translationsMap]);
39524
+ function getTranslation(source, locale) {
39525
+ const row = sourceToTranslationsMap[source];
39526
+ if (row) {
39527
+ return row[locale] || "";
39528
+ }
39529
+ return "";
39530
+ }
39345
39531
  async function downloadCsv() {
39346
- const headers = ["source", "en"];
39532
+ const nonEnLocales = locales.filter((l6) => l6 !== "en");
39533
+ const headers = ["source", "en", ...nonEnLocales];
39347
39534
  const rows = [];
39348
39535
  sourceStrings.forEach((source) => {
39349
- rows.push({
39536
+ const row = {
39350
39537
  source,
39351
- en: source
39538
+ en: getTranslation(source, "en") || source
39539
+ };
39540
+ nonEnLocales.forEach((l6) => {
39541
+ row[l6] = getTranslation(source, l6);
39352
39542
  });
39543
+ rows.push(row);
39353
39544
  });
39354
39545
  const res = await window.fetch("/cms/api/csv.download", {
39355
39546
  method: "POST",
@@ -39859,7 +40050,7 @@ ${this.customData.serverResponse}`;
39859
40050
  // package.json
39860
40051
  var package_default = {
39861
40052
  name: "@blinkk/root-cms",
39862
- version: "1.0.0-beta.62",
40053
+ version: "1.0.0-beta.64",
39863
40054
  author: "s@blinkk.com",
39864
40055
  license: "MIT",
39865
40056
  engines: {
@@ -39960,7 +40151,7 @@ ${this.customData.serverResponse}`;
39960
40151
  vitest: "^0.18.1"
39961
40152
  },
39962
40153
  peerDependencies: {
39963
- "@blinkk/root": "1.0.0-beta.62",
40154
+ "@blinkk/root": "1.0.0-beta.64",
39964
40155
  "firebase-admin": ">=11",
39965
40156
  "firebase-functions": ">=4",
39966
40157
  preact: "10.x",
@@ -40088,6 +40279,83 @@ ${this.customData.serverResponse}`;
40088
40279
  ] }) });
40089
40280
  }
40090
40281
 
40282
+ // ui/components/VersionHistoryModal/VersionHistoryModal.tsx
40283
+ var MODAL_ID5 = "VersionHistoryModal";
40284
+ function useVersionHistoryModal(props) {
40285
+ const modals = useModals();
40286
+ const modalTheme = useModalTheme();
40287
+ return {
40288
+ open: () => {
40289
+ modals.openContextModal(MODAL_ID5, {
40290
+ ...modalTheme,
40291
+ innerProps: props,
40292
+ size: "min(calc(100% - 32px), 720px)"
40293
+ });
40294
+ }
40295
+ };
40296
+ }
40297
+ function VersionHistoryModal(modalProps) {
40298
+ const { innerProps: props, context, id: id2 } = modalProps;
40299
+ const docId = props.docId;
40300
+ const [loading, setLoading] = y2(true);
40301
+ const [versions, setVersions] = y2([]);
40302
+ const dateFormat = new Intl.DateTimeFormat("en-US", {
40303
+ year: "numeric",
40304
+ month: "short",
40305
+ day: "numeric",
40306
+ hour: "2-digit",
40307
+ minute: "2-digit"
40308
+ });
40309
+ async function fetchVersions() {
40310
+ setLoading(true);
40311
+ const versions2 = await cmsListVersions(docId);
40312
+ setLoading(false);
40313
+ setVersions(versions2);
40314
+ }
40315
+ async function restore(version5) {
40316
+ await cmsRestoreVersion(docId, version5);
40317
+ showNotification({
40318
+ title: "Saved!",
40319
+ message: `Restored ${docId} to ${dateFormat.format(
40320
+ version5.sys.modifiedAt.toDate()
40321
+ )}.`,
40322
+ autoClose: 5e3
40323
+ });
40324
+ if (props.onRestore) {
40325
+ props.onRestore({ version: version5 });
40326
+ }
40327
+ }
40328
+ s2(() => {
40329
+ fetchVersions();
40330
+ }, []);
40331
+ if (loading) {
40332
+ return /* @__PURE__ */ o4(Loader, {});
40333
+ }
40334
+ return /* @__PURE__ */ o4("div", { className: "VersionHistoryModal", children: [
40335
+ /* @__PURE__ */ o4(Heading, { className: "VersionHistoryModal__title", size: "h2", children: [
40336
+ /* @__PURE__ */ o4(IconHistory, { strokeWidth: 1.5 }),
40337
+ /* @__PURE__ */ o4("span", { children: "Version history" })
40338
+ ] }),
40339
+ /* @__PURE__ */ o4("div", { className: "VersionHistoryModal__docId", children: /* @__PURE__ */ o4("code", { children: docId }) }),
40340
+ versions.length === 0 ? /* @__PURE__ */ o4(Text2, { className: "VersionHistoryModal__versionsEmpty", size: "body", children: [
40341
+ /* @__PURE__ */ o4("p", { children: "No versions found." }),
40342
+ /* @__PURE__ */ o4("p", { className: "VersionHistoryModal__versionsEmpty__developer", children: "For developers: Configure the Root CMS cron job to populate versions." })
40343
+ ] }) : /* @__PURE__ */ o4(Table, { className: "VersionHistoryModal__versions", children: [
40344
+ /* @__PURE__ */ o4("thead", { children: /* @__PURE__ */ o4("tr", { children: [
40345
+ /* @__PURE__ */ o4("th", { children: "modified at" }),
40346
+ /* @__PURE__ */ o4("th", { children: "modified by" }),
40347
+ /* @__PURE__ */ o4("th", { children: "actions" })
40348
+ ] }) }),
40349
+ /* @__PURE__ */ o4("tbody", { children: versions.map((version5) => /* @__PURE__ */ o4("tr", { children: [
40350
+ /* @__PURE__ */ o4("td", { children: /* @__PURE__ */ o4(Text2, { size: "body-sm", children: dateFormat.format(version5.sys.modifiedAt.toDate()) }) }),
40351
+ /* @__PURE__ */ o4("td", { children: /* @__PURE__ */ o4(Text2, { size: "body-sm", children: version5.sys.modifiedBy }) }),
40352
+ /* @__PURE__ */ o4("td", { children: /* @__PURE__ */ o4(Button, { size: "xs", compact: true, onClick: () => restore(version5), children: "restore" }) })
40353
+ ] })) })
40354
+ ] })
40355
+ ] });
40356
+ }
40357
+ VersionHistoryModal.id = MODAL_ID5;
40358
+
40091
40359
  // ui/components/DocActionsMenu/DocActionsMenu.tsx
40092
40360
  function DocActionsMenu(props) {
40093
40361
  const docId = props.docId;
@@ -40096,6 +40364,7 @@ ${this.customData.serverResponse}`;
40096
40364
  const modals = useModals();
40097
40365
  const copyDocModal = useCopyDocModal({ fromDocId: docId });
40098
40366
  const modalTheme = useModalTheme();
40367
+ const versionHistoryModal = useVersionHistoryModal({ docId });
40099
40368
  const onRevertDraft = () => {
40100
40369
  const notificationId = `revert-draft-${docId}`;
40101
40370
  const modalId = modals.openConfirmModal({
@@ -40265,6 +40534,14 @@ ${this.customData.serverResponse}`;
40265
40534
  position: "bottom",
40266
40535
  control: /* @__PURE__ */ o4(ActionIcon, { className: "DocEditor__ArrayField__item__header__controls__dots", children: /* @__PURE__ */ o4(IconDotsVertical, { size: 16 }) }),
40267
40536
  children: [
40537
+ /* @__PURE__ */ o4(
40538
+ Menu.Item,
40539
+ {
40540
+ icon: /* @__PURE__ */ o4(IconHistory, { size: 20 }),
40541
+ onClick: () => versionHistoryModal.open(),
40542
+ children: "Version history"
40543
+ }
40544
+ ),
40268
40545
  /* @__PURE__ */ o4(
40269
40546
  Menu.Item,
40270
40547
  {
@@ -45371,7 +45648,8 @@ ${content}</tr>
45371
45648
  [CopyDocModal.id]: CopyDocModal,
45372
45649
  [EditJsonModal.id]: EditJsonModal,
45373
45650
  [LocalizationModal.id]: LocalizationModal,
45374
- [PublishDocModal.id]: PublishDocModal
45651
+ [PublishDocModal.id]: PublishDocModal,
45652
+ [VersionHistoryModal.id]: VersionHistoryModal
45375
45653
  },
45376
45654
  children: /* @__PURE__ */ o4(FirebaseContext.Provider, { value: window.firebase, children: /* @__PURE__ */ o4(D4, { children: [
45377
45655
  /* @__PURE__ */ o4(L6, { path: "/cms", component: ProjectPage }),