@blinkk/root-cms 1.0.0-beta.62 → 1.0.0-beta.63
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.css +36 -0
- package/dist/ui/ui.js +499 -240
- package/package.json +3 -3
package/dist/ui/ui.css
CHANGED
|
@@ -375,6 +375,42 @@
|
|
|
375
375
|
max-width: 70ch;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
+
/* ui/components/VersionHistoryModal/VersionHistoryModal.css */
|
|
379
|
+
.VersionHistoryModal {
|
|
380
|
+
margin-top: -30px;
|
|
381
|
+
padding: 10px;
|
|
382
|
+
}
|
|
383
|
+
.VersionHistoryModal__title {
|
|
384
|
+
display: flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
gap: 8px;
|
|
387
|
+
}
|
|
388
|
+
.VersionHistoryModal__docId {
|
|
389
|
+
margin-top: 8px;
|
|
390
|
+
}
|
|
391
|
+
.VersionHistoryModal__docId code {
|
|
392
|
+
background: #efefef;
|
|
393
|
+
padding: 4px 8px;
|
|
394
|
+
border-radius: 4px;
|
|
395
|
+
font-size: 15px;
|
|
396
|
+
line-height: 1;
|
|
397
|
+
font-weight: 600;
|
|
398
|
+
color: #333;
|
|
399
|
+
}
|
|
400
|
+
.VersionHistoryModal__versions {
|
|
401
|
+
margin-top: 20px;
|
|
402
|
+
margin-left: -10px;
|
|
403
|
+
margin-right: -10px;
|
|
404
|
+
}
|
|
405
|
+
.VersionHistoryModal__versionsEmpty {
|
|
406
|
+
margin-top: 20px;
|
|
407
|
+
}
|
|
408
|
+
.VersionHistoryModal__versionsEmpty__developer {
|
|
409
|
+
margin-top: 10px;
|
|
410
|
+
font-style: italic;
|
|
411
|
+
font-size: 12px;
|
|
412
|
+
}
|
|
413
|
+
|
|
378
414
|
/* ui/components/NewDocModal/NewDocModal.css */
|
|
379
415
|
.NewDocModal__body {
|
|
380
416
|
font-size: 12px;
|
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,
|
|
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({},
|
|
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:
|
|
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),
|
|
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
|
|
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
|
|
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/
|
|
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, {
|
|
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:
|
|
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 =
|
|
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
|
|
15800
|
-
var
|
|
15801
|
-
var
|
|
15802
|
-
var
|
|
15803
|
-
var
|
|
15804
|
-
var
|
|
15805
|
-
var
|
|
15806
|
-
var
|
|
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 (
|
|
15809
|
-
|
|
15810
|
-
if (
|
|
15811
|
-
for (var prop of
|
|
15812
|
-
if (
|
|
15813
|
-
|
|
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
|
|
15818
|
-
var
|
|
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 (
|
|
15966
|
+
if (__hasOwnProp71.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
15822
15967
|
target[prop] = source[prop];
|
|
15823
|
-
if (source != null &&
|
|
15824
|
-
for (var prop of
|
|
15825
|
-
if (exclude.indexOf(prop) < 0 &&
|
|
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 =
|
|
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,
|
|
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
|
|
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 =
|
|
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
|
|
15915
|
-
var
|
|
15916
|
-
var
|
|
15917
|
-
var
|
|
15918
|
-
var
|
|
15919
|
-
var
|
|
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 (
|
|
15922
|
-
|
|
15923
|
-
if (
|
|
15924
|
-
for (var prop of
|
|
15925
|
-
if (
|
|
15926
|
-
|
|
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
|
|
16075
|
+
var __objRest42 = (source, exclude) => {
|
|
15931
16076
|
var target = {};
|
|
15932
16077
|
for (var prop in source)
|
|
15933
|
-
if (
|
|
16078
|
+
if (__hasOwnProp72.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
15934
16079
|
target[prop] = source[prop];
|
|
15935
|
-
if (source != null &&
|
|
15936
|
-
for (var prop of
|
|
15937
|
-
if (exclude.indexOf(prop) < 0 &&
|
|
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
|
|
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",
|
|
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 =
|
|
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,
|
|
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
|
|
16073
|
-
var
|
|
16074
|
-
var
|
|
16075
|
-
var
|
|
16076
|
-
var
|
|
16077
|
-
var
|
|
16078
|
-
var
|
|
16079
|
-
var
|
|
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 (
|
|
16082
|
-
|
|
16083
|
-
if (
|
|
16084
|
-
for (var prop of
|
|
16085
|
-
if (
|
|
16086
|
-
|
|
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
|
|
16091
|
-
var
|
|
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:
|
|
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 =
|
|
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
|
|
16117
|
-
var
|
|
16118
|
-
var
|
|
16119
|
-
var
|
|
16120
|
-
var
|
|
16121
|
-
var
|
|
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 (
|
|
16124
|
-
|
|
16125
|
-
if (
|
|
16126
|
-
for (var prop of
|
|
16127
|
-
if (
|
|
16128
|
-
|
|
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
|
|
16277
|
+
var __objRest43 = (source, exclude) => {
|
|
16133
16278
|
var target = {};
|
|
16134
16279
|
for (var prop in source)
|
|
16135
|
-
if (
|
|
16280
|
+
if (__hasOwnProp74.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16136
16281
|
target[prop] = source[prop];
|
|
16137
|
-
if (source != null &&
|
|
16138
|
-
for (var prop of
|
|
16139
|
-
if (exclude.indexOf(prop) < 0 &&
|
|
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
|
|
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",
|
|
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 =
|
|
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,
|
|
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
|
|
16311
|
-
var
|
|
16312
|
-
var
|
|
16313
|
-
var
|
|
16314
|
-
var
|
|
16315
|
-
var
|
|
16316
|
-
var
|
|
16317
|
-
var
|
|
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 (
|
|
16320
|
-
|
|
16321
|
-
if (
|
|
16322
|
-
for (var prop of
|
|
16323
|
-
if (
|
|
16324
|
-
|
|
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
|
|
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,
|
|
16500
|
+
}, children), /* @__PURE__ */ _n.createElement(Group, __spreadValues73({
|
|
16356
16501
|
position: "right"
|
|
16357
|
-
}, groupProps), /* @__PURE__ */ _n.createElement(Button,
|
|
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,
|
|
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
|
|
16395
|
-
var
|
|
16396
|
-
var
|
|
16397
|
-
var
|
|
16398
|
-
var
|
|
16399
|
-
var
|
|
16400
|
-
var
|
|
16401
|
-
var
|
|
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 (
|
|
16404
|
-
|
|
16405
|
-
if (
|
|
16406
|
-
for (var prop of
|
|
16407
|
-
if (
|
|
16408
|
-
|
|
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
|
|
16413
|
-
var
|
|
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 (
|
|
16561
|
+
if (__hasOwnProp76.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
16417
16562
|
target[prop] = source[prop];
|
|
16418
|
-
if (source != null &&
|
|
16419
|
-
for (var prop of
|
|
16420
|
-
if (exclude.indexOf(prop) < 0 &&
|
|
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 =
|
|
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:
|
|
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 =
|
|
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,
|
|
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 =
|
|
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,
|
|
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
|
|
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 =
|
|
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
|
|
17351
|
-
var
|
|
17352
|
-
var
|
|
17353
|
-
var
|
|
17354
|
-
var
|
|
17355
|
-
var
|
|
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 (
|
|
17358
|
-
|
|
17359
|
-
if (
|
|
17360
|
-
for (var prop of
|
|
17361
|
-
if (
|
|
17362
|
-
|
|
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
|
|
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
|
|
17427
|
-
var
|
|
17428
|
-
var
|
|
17429
|
-
var
|
|
17430
|
-
var
|
|
17431
|
-
var
|
|
17432
|
-
var
|
|
17433
|
-
var
|
|
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 (
|
|
17436
|
-
|
|
17437
|
-
if (
|
|
17438
|
-
for (var prop of
|
|
17439
|
-
if (
|
|
17440
|
-
|
|
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
|
|
17445
|
-
var
|
|
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 (
|
|
17593
|
+
if (__hasOwnProp78.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
17449
17594
|
target[prop] = source[prop];
|
|
17450
|
-
if (source != null &&
|
|
17451
|
-
for (var prop of
|
|
17452
|
-
if (exclude.indexOf(prop) < 0 &&
|
|
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 =
|
|
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 =
|
|
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,
|
|
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
|
|
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 =
|
|
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
|
|
17521
|
-
var
|
|
17522
|
-
var
|
|
17523
|
-
var
|
|
17524
|
-
var
|
|
17525
|
-
var
|
|
17526
|
-
var
|
|
17527
|
-
var
|
|
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 (
|
|
17530
|
-
|
|
17531
|
-
if (
|
|
17532
|
-
for (var prop of
|
|
17533
|
-
if (
|
|
17534
|
-
|
|
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
|
|
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,
|
|
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
|
|
17585
|
-
var
|
|
17586
|
-
var
|
|
17587
|
-
var
|
|
17588
|
-
var
|
|
17589
|
-
var
|
|
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 (
|
|
17592
|
-
|
|
17593
|
-
if (
|
|
17594
|
-
for (var prop of
|
|
17595
|
-
if (
|
|
17596
|
-
|
|
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
|
|
17745
|
+
var __objRest46 = (source, exclude) => {
|
|
17601
17746
|
var target = {};
|
|
17602
17747
|
for (var prop in source)
|
|
17603
|
-
if (
|
|
17748
|
+
if (__hasOwnProp80.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
17604
17749
|
target[prop] = source[prop];
|
|
17605
|
-
if (source != null &&
|
|
17606
|
-
for (var prop of
|
|
17607
|
-
if (exclude.indexOf(prop) < 0 &&
|
|
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 =
|
|
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
|
-
|
|
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,
|
|
17848
|
+
}, /* @__PURE__ */ _n.createElement(Box, __spreadValues78({
|
|
17704
17849
|
className: cx(classes.notifications, className),
|
|
17705
17850
|
style,
|
|
17706
|
-
sx:
|
|
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
|
|
38492
|
-
var
|
|
38493
|
-
var
|
|
38494
|
-
var
|
|
38495
|
-
var
|
|
38496
|
-
var
|
|
38497
|
-
var
|
|
38498
|
-
var
|
|
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 (
|
|
38501
|
-
|
|
38502
|
-
if (
|
|
38503
|
-
for (var prop of
|
|
38504
|
-
if (
|
|
38505
|
-
|
|
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
|
|
38510
|
-
var
|
|
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 (
|
|
38679
|
+
if (__hasOwnProp81.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
38514
38680
|
target[prop] = source[prop];
|
|
38515
|
-
if (source != null &&
|
|
38516
|
-
for (var prop of
|
|
38517
|
-
if (exclude.indexOf(prop) < 0 &&
|
|
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 =
|
|
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
|
-
|
|
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" }],
|
|
@@ -39859,7 +40031,7 @@ ${this.customData.serverResponse}`;
|
|
|
39859
40031
|
// package.json
|
|
39860
40032
|
var package_default = {
|
|
39861
40033
|
name: "@blinkk/root-cms",
|
|
39862
|
-
version: "1.0.0-beta.
|
|
40034
|
+
version: "1.0.0-beta.63",
|
|
39863
40035
|
author: "s@blinkk.com",
|
|
39864
40036
|
license: "MIT",
|
|
39865
40037
|
engines: {
|
|
@@ -39960,7 +40132,7 @@ ${this.customData.serverResponse}`;
|
|
|
39960
40132
|
vitest: "^0.18.1"
|
|
39961
40133
|
},
|
|
39962
40134
|
peerDependencies: {
|
|
39963
|
-
"@blinkk/root": "1.0.0-beta.
|
|
40135
|
+
"@blinkk/root": "1.0.0-beta.63",
|
|
39964
40136
|
"firebase-admin": ">=11",
|
|
39965
40137
|
"firebase-functions": ">=4",
|
|
39966
40138
|
preact: "10.x",
|
|
@@ -40088,6 +40260,83 @@ ${this.customData.serverResponse}`;
|
|
|
40088
40260
|
] }) });
|
|
40089
40261
|
}
|
|
40090
40262
|
|
|
40263
|
+
// ui/components/VersionHistoryModal/VersionHistoryModal.tsx
|
|
40264
|
+
var MODAL_ID5 = "VersionHistoryModal";
|
|
40265
|
+
function useVersionHistoryModal(props) {
|
|
40266
|
+
const modals = useModals();
|
|
40267
|
+
const modalTheme = useModalTheme();
|
|
40268
|
+
return {
|
|
40269
|
+
open: () => {
|
|
40270
|
+
modals.openContextModal(MODAL_ID5, {
|
|
40271
|
+
...modalTheme,
|
|
40272
|
+
innerProps: props,
|
|
40273
|
+
size: "min(calc(100% - 32px), 720px)"
|
|
40274
|
+
});
|
|
40275
|
+
}
|
|
40276
|
+
};
|
|
40277
|
+
}
|
|
40278
|
+
function VersionHistoryModal(modalProps) {
|
|
40279
|
+
const { innerProps: props, context, id: id2 } = modalProps;
|
|
40280
|
+
const docId = props.docId;
|
|
40281
|
+
const [loading, setLoading] = y2(true);
|
|
40282
|
+
const [versions, setVersions] = y2([]);
|
|
40283
|
+
const dateFormat = new Intl.DateTimeFormat("en-US", {
|
|
40284
|
+
year: "numeric",
|
|
40285
|
+
month: "short",
|
|
40286
|
+
day: "numeric",
|
|
40287
|
+
hour: "2-digit",
|
|
40288
|
+
minute: "2-digit"
|
|
40289
|
+
});
|
|
40290
|
+
async function fetchVersions() {
|
|
40291
|
+
setLoading(true);
|
|
40292
|
+
const versions2 = await cmsListVersions(docId);
|
|
40293
|
+
setLoading(false);
|
|
40294
|
+
setVersions(versions2);
|
|
40295
|
+
}
|
|
40296
|
+
async function restore(version5) {
|
|
40297
|
+
await cmsRestoreVersion(docId, version5);
|
|
40298
|
+
showNotification({
|
|
40299
|
+
title: "Saved!",
|
|
40300
|
+
message: `Restored ${docId} to ${dateFormat.format(
|
|
40301
|
+
version5.sys.modifiedAt.toDate()
|
|
40302
|
+
)}.`,
|
|
40303
|
+
autoClose: 5e3
|
|
40304
|
+
});
|
|
40305
|
+
if (props.onRestore) {
|
|
40306
|
+
props.onRestore({ version: version5 });
|
|
40307
|
+
}
|
|
40308
|
+
}
|
|
40309
|
+
s2(() => {
|
|
40310
|
+
fetchVersions();
|
|
40311
|
+
}, []);
|
|
40312
|
+
if (loading) {
|
|
40313
|
+
return /* @__PURE__ */ o4(Loader, {});
|
|
40314
|
+
}
|
|
40315
|
+
return /* @__PURE__ */ o4("div", { className: "VersionHistoryModal", children: [
|
|
40316
|
+
/* @__PURE__ */ o4(Heading, { className: "VersionHistoryModal__title", size: "h2", children: [
|
|
40317
|
+
/* @__PURE__ */ o4(IconHistory, { strokeWidth: 1.5 }),
|
|
40318
|
+
/* @__PURE__ */ o4("span", { children: "Version history" })
|
|
40319
|
+
] }),
|
|
40320
|
+
/* @__PURE__ */ o4("div", { className: "VersionHistoryModal__docId", children: /* @__PURE__ */ o4("code", { children: docId }) }),
|
|
40321
|
+
versions.length === 0 ? /* @__PURE__ */ o4(Text2, { className: "VersionHistoryModal__versionsEmpty", size: "body", children: [
|
|
40322
|
+
/* @__PURE__ */ o4("p", { children: "No versions found." }),
|
|
40323
|
+
/* @__PURE__ */ o4("p", { className: "VersionHistoryModal__versionsEmpty__developer", children: "For developers: Configure the Root CMS cron job to populate versions." })
|
|
40324
|
+
] }) : /* @__PURE__ */ o4(Table, { className: "VersionHistoryModal__versions", children: [
|
|
40325
|
+
/* @__PURE__ */ o4("thead", { children: /* @__PURE__ */ o4("tr", { children: [
|
|
40326
|
+
/* @__PURE__ */ o4("th", { children: "modified at" }),
|
|
40327
|
+
/* @__PURE__ */ o4("th", { children: "modified by" }),
|
|
40328
|
+
/* @__PURE__ */ o4("th", { children: "actions" })
|
|
40329
|
+
] }) }),
|
|
40330
|
+
/* @__PURE__ */ o4("tbody", { children: versions.map((version5) => /* @__PURE__ */ o4("tr", { children: [
|
|
40331
|
+
/* @__PURE__ */ o4("td", { children: /* @__PURE__ */ o4(Text2, { size: "body-sm", children: dateFormat.format(version5.sys.modifiedAt.toDate()) }) }),
|
|
40332
|
+
/* @__PURE__ */ o4("td", { children: /* @__PURE__ */ o4(Text2, { size: "body-sm", children: version5.sys.modifiedBy }) }),
|
|
40333
|
+
/* @__PURE__ */ o4("td", { children: /* @__PURE__ */ o4(Button, { size: "xs", compact: true, onClick: () => restore(version5), children: "restore" }) })
|
|
40334
|
+
] })) })
|
|
40335
|
+
] })
|
|
40336
|
+
] });
|
|
40337
|
+
}
|
|
40338
|
+
VersionHistoryModal.id = MODAL_ID5;
|
|
40339
|
+
|
|
40091
40340
|
// ui/components/DocActionsMenu/DocActionsMenu.tsx
|
|
40092
40341
|
function DocActionsMenu(props) {
|
|
40093
40342
|
const docId = props.docId;
|
|
@@ -40096,6 +40345,7 @@ ${this.customData.serverResponse}`;
|
|
|
40096
40345
|
const modals = useModals();
|
|
40097
40346
|
const copyDocModal = useCopyDocModal({ fromDocId: docId });
|
|
40098
40347
|
const modalTheme = useModalTheme();
|
|
40348
|
+
const versionHistoryModal = useVersionHistoryModal({ docId });
|
|
40099
40349
|
const onRevertDraft = () => {
|
|
40100
40350
|
const notificationId = `revert-draft-${docId}`;
|
|
40101
40351
|
const modalId = modals.openConfirmModal({
|
|
@@ -40265,6 +40515,14 @@ ${this.customData.serverResponse}`;
|
|
|
40265
40515
|
position: "bottom",
|
|
40266
40516
|
control: /* @__PURE__ */ o4(ActionIcon, { className: "DocEditor__ArrayField__item__header__controls__dots", children: /* @__PURE__ */ o4(IconDotsVertical, { size: 16 }) }),
|
|
40267
40517
|
children: [
|
|
40518
|
+
/* @__PURE__ */ o4(
|
|
40519
|
+
Menu.Item,
|
|
40520
|
+
{
|
|
40521
|
+
icon: /* @__PURE__ */ o4(IconHistory, { size: 20 }),
|
|
40522
|
+
onClick: () => versionHistoryModal.open(),
|
|
40523
|
+
children: "Version history"
|
|
40524
|
+
}
|
|
40525
|
+
),
|
|
40268
40526
|
/* @__PURE__ */ o4(
|
|
40269
40527
|
Menu.Item,
|
|
40270
40528
|
{
|
|
@@ -45371,7 +45629,8 @@ ${content}</tr>
|
|
|
45371
45629
|
[CopyDocModal.id]: CopyDocModal,
|
|
45372
45630
|
[EditJsonModal.id]: EditJsonModal,
|
|
45373
45631
|
[LocalizationModal.id]: LocalizationModal,
|
|
45374
|
-
[PublishDocModal.id]: PublishDocModal
|
|
45632
|
+
[PublishDocModal.id]: PublishDocModal,
|
|
45633
|
+
[VersionHistoryModal.id]: VersionHistoryModal
|
|
45375
45634
|
},
|
|
45376
45635
|
children: /* @__PURE__ */ o4(FirebaseContext.Provider, { value: window.firebase, children: /* @__PURE__ */ o4(D4, { children: [
|
|
45377
45636
|
/* @__PURE__ */ o4(L6, { path: "/cms", component: ProjectPage }),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blinkk/root-cms",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.63",
|
|
4
4
|
"author": "s@blinkk.com",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"//": "NOTE(stevenle): due to compat issues with mantine and preact, mantine is pinned to v4.2.12",
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@babel/core": "^7.17.9",
|
|
58
|
-
"@blinkk/root": "1.0.0-beta.
|
|
58
|
+
"@blinkk/root": "1.0.0-beta.63",
|
|
59
59
|
"@emotion/react": "^11.10.5",
|
|
60
60
|
"@firebase/app-compat": "^0.1.33",
|
|
61
61
|
"@firebase/app-types": "^0.7.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"vitest": "^0.18.1"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@blinkk/root": "1.0.0-beta.
|
|
91
|
+
"@blinkk/root": "1.0.0-beta.63",
|
|
92
92
|
"firebase-admin": ">=11",
|
|
93
93
|
"firebase-functions": ">=4",
|
|
94
94
|
"preact": "10.x",
|