intlayer-editor 7.0.6 → 7.0.8-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/dist/assets/{CodeBlockShiki-siMgr_hH.js → CodeBlockShiki-BD9incJt.js} +3 -3
- package/client/dist/assets/{bundle-web-B8pMQVWe.js → bundle-web-BpNxvicp.js} +115 -115
- package/client/dist/assets/{index-D1dxQq2J.js → index-BLpSOJjm.js} +302 -420
- package/client/dist/assets/{index-19yEMRvc.css → index-yUZ4ks9F.css} +34 -0
- package/client/dist/index.html +2 -2
- package/package.json +34 -36
- package/server/dist/controllers/configuration.controller.cjs +0 -1
- package/server/dist/controllers/configuration.controller.cjs.map +1 -1
- package/server/dist/controllers/dictionary.controller.cjs +0 -4
- package/server/dist/controllers/dictionary.controller.cjs.map +1 -1
- package/server/dist/index.cjs +0 -5
- package/server/dist/index.cjs.map +1 -1
- package/server/dist/routes/config.routes.cjs +0 -2
- package/server/dist/routes/config.routes.cjs.map +1 -1
- package/server/dist/routes/dictionary.routes.cjs +0 -2
- package/server/dist/routes/dictionary.routes.cjs.map +1 -1
|
@@ -51,15 +51,6 @@ function getDefaultExportFromCjs(x) {
|
|
|
51
51
|
}
|
|
52
52
|
var jsxRuntime = { exports: {} };
|
|
53
53
|
var reactJsxRuntime_production = {};
|
|
54
|
-
/**
|
|
55
|
-
* @license React
|
|
56
|
-
* react-jsx-runtime.production.js
|
|
57
|
-
*
|
|
58
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the MIT license found in the
|
|
61
|
-
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*/
|
|
63
54
|
var hasRequiredReactJsxRuntime_production;
|
|
64
55
|
function requireReactJsxRuntime_production() {
|
|
65
56
|
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
@@ -100,15 +91,6 @@ function requireJsxRuntime() {
|
|
|
100
91
|
var jsxRuntimeExports = /* @__PURE__ */ requireJsxRuntime();
|
|
101
92
|
var react = { exports: {} };
|
|
102
93
|
var react_production = {};
|
|
103
|
-
/**
|
|
104
|
-
* @license React
|
|
105
|
-
* react.production.js
|
|
106
|
-
*
|
|
107
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the MIT license found in the
|
|
110
|
-
* LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/
|
|
112
94
|
var hasRequiredReact_production;
|
|
113
95
|
function requireReact_production() {
|
|
114
96
|
if (hasRequiredReact_production) return react_production;
|
|
@@ -552,15 +534,6 @@ var client = { exports: {} };
|
|
|
552
534
|
var reactDomClient_production = {};
|
|
553
535
|
var scheduler = { exports: {} };
|
|
554
536
|
var scheduler_production = {};
|
|
555
|
-
/**
|
|
556
|
-
* @license React
|
|
557
|
-
* scheduler.production.js
|
|
558
|
-
*
|
|
559
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
560
|
-
*
|
|
561
|
-
* This source code is licensed under the MIT license found in the
|
|
562
|
-
* LICENSE file in the root directory of this source tree.
|
|
563
|
-
*/
|
|
564
537
|
var hasRequiredScheduler_production;
|
|
565
538
|
function requireScheduler_production() {
|
|
566
539
|
if (hasRequiredScheduler_production) return scheduler_production;
|
|
@@ -827,15 +800,6 @@ function requireScheduler() {
|
|
|
827
800
|
}
|
|
828
801
|
var reactDom = { exports: {} };
|
|
829
802
|
var reactDom_production = {};
|
|
830
|
-
/**
|
|
831
|
-
* @license React
|
|
832
|
-
* react-dom.production.js
|
|
833
|
-
*
|
|
834
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
835
|
-
*
|
|
836
|
-
* This source code is licensed under the MIT license found in the
|
|
837
|
-
* LICENSE file in the root directory of this source tree.
|
|
838
|
-
*/
|
|
839
803
|
var hasRequiredReactDom_production;
|
|
840
804
|
function requireReactDom_production() {
|
|
841
805
|
if (hasRequiredReactDom_production) return reactDom_production;
|
|
@@ -1003,15 +967,6 @@ function requireReactDom() {
|
|
|
1003
967
|
}
|
|
1004
968
|
return reactDom.exports;
|
|
1005
969
|
}
|
|
1006
|
-
/**
|
|
1007
|
-
* @license React
|
|
1008
|
-
* react-dom-client.production.js
|
|
1009
|
-
*
|
|
1010
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1011
|
-
*
|
|
1012
|
-
* This source code is licensed under the MIT license found in the
|
|
1013
|
-
* LICENSE file in the root directory of this source tree.
|
|
1014
|
-
*/
|
|
1015
970
|
var hasRequiredReactDomClient_production;
|
|
1016
971
|
function requireReactDomClient_production() {
|
|
1017
972
|
if (hasRequiredReactDomClient_production) return reactDomClient_production;
|
|
@@ -12552,15 +12507,6 @@ function requireClient() {
|
|
|
12552
12507
|
var clientExports = /* @__PURE__ */ requireClient();
|
|
12553
12508
|
var compilerRuntime = { exports: {} };
|
|
12554
12509
|
var reactCompilerRuntime_production = {};
|
|
12555
|
-
/**
|
|
12556
|
-
* @license React
|
|
12557
|
-
* react-compiler-runtime.production.js
|
|
12558
|
-
*
|
|
12559
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12560
|
-
*
|
|
12561
|
-
* This source code is licensed under the MIT license found in the
|
|
12562
|
-
* LICENSE file in the root directory of this source tree.
|
|
12563
|
-
*/
|
|
12564
12510
|
var hasRequiredReactCompilerRuntime_production;
|
|
12565
12511
|
function requireReactCompilerRuntime_production() {
|
|
12566
12512
|
if (hasRequiredReactCompilerRuntime_production) return reactCompilerRuntime_production;
|
|
@@ -12581,7 +12527,7 @@ function requireCompilerRuntime() {
|
|
|
12581
12527
|
return compilerRuntime.exports;
|
|
12582
12528
|
}
|
|
12583
12529
|
var compilerRuntimeExports = /* @__PURE__ */ requireCompilerRuntime();
|
|
12584
|
-
let ANSIColors = /* @__PURE__ */ function(ANSIColors$1) {
|
|
12530
|
+
let ANSIColors = /* @__PURE__ */ (function(ANSIColors$1) {
|
|
12585
12531
|
ANSIColors$1["RESET"] = "\x1B[0m";
|
|
12586
12532
|
ANSIColors$1["GREY"] = "\x1B[90m";
|
|
12587
12533
|
ANSIColors$1["GREY_DARK"] = "\x1B[38;5;239m";
|
|
@@ -12597,7 +12543,7 @@ let ANSIColors = /* @__PURE__ */ function(ANSIColors$1) {
|
|
|
12597
12543
|
ANSIColors$1["WHITE"] = "\x1B[37m";
|
|
12598
12544
|
ANSIColors$1["BOLD"] = "\x1B[1m";
|
|
12599
12545
|
return ANSIColors$1;
|
|
12600
|
-
}({});
|
|
12546
|
+
})({});
|
|
12601
12547
|
var __defProp$2 = Object.defineProperty;
|
|
12602
12548
|
var __export$1 = (all) => {
|
|
12603
12549
|
let target = {};
|
|
@@ -13547,7 +13493,7 @@ const ALL_LOCALES = {
|
|
|
13547
13493
|
ARABIC_CHAD,
|
|
13548
13494
|
ARABIC_COMOROS
|
|
13549
13495
|
};
|
|
13550
|
-
let NodeType = /* @__PURE__ */ function(NodeType$1) {
|
|
13496
|
+
let NodeType = /* @__PURE__ */ (function(NodeType$1) {
|
|
13551
13497
|
NodeType$1["Translation"] = "translation";
|
|
13552
13498
|
NodeType$1["Enumeration"] = "enumeration";
|
|
13553
13499
|
NodeType$1["Condition"] = "condition";
|
|
@@ -13565,7 +13511,7 @@ let NodeType = /* @__PURE__ */ function(NodeType$1) {
|
|
|
13565
13511
|
NodeType$1["Null"] = "null";
|
|
13566
13512
|
NodeType$1["Unknown"] = "unknown";
|
|
13567
13513
|
return NodeType$1;
|
|
13568
|
-
}({});
|
|
13514
|
+
})({});
|
|
13569
13515
|
var internationalization_exports = /* @__PURE__ */ __export$1({
|
|
13570
13516
|
DEFAULT_LOCALE: () => DEFAULT_LOCALE,
|
|
13571
13517
|
LOCALES: () => LOCALES,
|
|
@@ -15057,7 +15003,7 @@ const mergeIframeClick = (event) => {
|
|
|
15057
15003
|
window.dispatchEvent(simulatedClickEvent);
|
|
15058
15004
|
window.dispatchEvent(simulatedMouseDownEvent);
|
|
15059
15005
|
};
|
|
15060
|
-
let MessageKey = /* @__PURE__ */ function(MessageKey$1) {
|
|
15006
|
+
let MessageKey = /* @__PURE__ */ (function(MessageKey$1) {
|
|
15061
15007
|
MessageKey$1["INTLAYER_CONFIGURATION"] = "INTLAYER_CONFIGURATION";
|
|
15062
15008
|
MessageKey$1["INTLAYER_CURRENT_LOCALE"] = "INTLAYER_CURRENT_LOCALE";
|
|
15063
15009
|
MessageKey$1["INTLAYER_EDITOR_ENABLED"] = "INTLAYER_EDITOR_ENABLED";
|
|
@@ -15069,7 +15015,7 @@ let MessageKey = /* @__PURE__ */ function(MessageKey$1) {
|
|
|
15069
15015
|
MessageKey$1["INTLAYER_EDITED_CONTENT_CHANGED"] = "INTLAYER_EDITED_CONTENT_CHANGED";
|
|
15070
15016
|
MessageKey$1["INTLAYER_IFRAME_CLICKED"] = "INTLAYER_IFRAME_CLICKED";
|
|
15071
15017
|
return MessageKey$1;
|
|
15072
|
-
}({});
|
|
15018
|
+
})({});
|
|
15073
15019
|
const useCrossFrameMessageListener = (key2, onEventTriggered, revalidator) => {
|
|
15074
15020
|
const { allowedOrigins, postMessage, senderId } = useCommunicator();
|
|
15075
15021
|
reactExports.useEffect(() => {
|
|
@@ -15443,22 +15389,12 @@ const EditorProvider$1 = ({ children, configuration: configuration2, ...props })
|
|
|
15443
15389
|
}) });
|
|
15444
15390
|
const useCrossURLPathState = (initialState, options) => useCrossFrameState(MessageKey.INTLAYER_URL_CHANGE, initialState, options);
|
|
15445
15391
|
const mergedKeyPathToUnmergedKeyPath = (keyPath, dictionaries2, locale) => {
|
|
15446
|
-
|
|
15447
|
-
keyPath,
|
|
15448
|
-
|
|
15449
|
-
|
|
15450
|
-
|
|
15451
|
-
|
|
15452
|
-
console.log("test2", { dictionary });
|
|
15453
|
-
try {
|
|
15454
|
-
const result = getContentNodeByKeyPath(dictionary.content, keyPath ?? [], locale);
|
|
15455
|
-
console.log("test2", { result });
|
|
15456
|
-
if (result) return {
|
|
15457
|
-
keyPath,
|
|
15458
|
-
dictionaryLocalId: dictionary.localId
|
|
15459
|
-
};
|
|
15460
|
-
} catch {
|
|
15461
|
-
}
|
|
15392
|
+
for (const dictionary of dictionaries2) try {
|
|
15393
|
+
if (getContentNodeByKeyPath(dictionary.content, keyPath ?? [], locale)) return {
|
|
15394
|
+
keyPath,
|
|
15395
|
+
dictionaryLocalId: dictionary.localId
|
|
15396
|
+
};
|
|
15397
|
+
} catch {
|
|
15462
15398
|
}
|
|
15463
15399
|
};
|
|
15464
15400
|
const useFocusUnmergedDictionary = () => {
|
|
@@ -15857,16 +15793,6 @@ const useLocale = ({ isCookieEnabled, onLocaleChange } = {}) => {
|
|
|
15857
15793
|
])
|
|
15858
15794
|
};
|
|
15859
15795
|
};
|
|
15860
|
-
/**
|
|
15861
|
-
* react-router v7.9.4
|
|
15862
|
-
*
|
|
15863
|
-
* Copyright (c) Remix Software Inc.
|
|
15864
|
-
*
|
|
15865
|
-
* This source code is licensed under the MIT license found in the
|
|
15866
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
15867
|
-
*
|
|
15868
|
-
* @license MIT
|
|
15869
|
-
*/
|
|
15870
15796
|
var PopStateEventType = "popstate";
|
|
15871
15797
|
function createBrowserHistory(options = {}) {
|
|
15872
15798
|
function createBrowserLocation(window2, globalHistory) {
|
|
@@ -16426,6 +16352,7 @@ var normalizeHash = (hash) => !hash || hash === "#" ? "" : hash.startsWith("#")
|
|
|
16426
16352
|
function isRouteErrorResponse(error) {
|
|
16427
16353
|
return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
|
|
16428
16354
|
}
|
|
16355
|
+
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
16429
16356
|
var validMutationMethodsArr = [
|
|
16430
16357
|
"POST",
|
|
16431
16358
|
"PUT",
|
|
@@ -17570,7 +17497,7 @@ var isBrowser$1 = typeof window !== "undefined" && typeof window.document !== "u
|
|
|
17570
17497
|
try {
|
|
17571
17498
|
if (isBrowser$1) {
|
|
17572
17499
|
window.__reactRouterVersion = // @ts-expect-error
|
|
17573
|
-
"7.9.
|
|
17500
|
+
"7.9.5";
|
|
17574
17501
|
}
|
|
17575
17502
|
} catch (e) {
|
|
17576
17503
|
}
|
|
@@ -21022,7 +20949,7 @@ const cva = (base, config2) => (props) => {
|
|
|
21022
20949
|
}, []);
|
|
21023
20950
|
return cx$1(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
21024
20951
|
};
|
|
21025
|
-
let ButtonSize = /* @__PURE__ */ function(ButtonSize$1) {
|
|
20952
|
+
let ButtonSize = /* @__PURE__ */ (function(ButtonSize$1) {
|
|
21026
20953
|
ButtonSize$1["SM"] = "sm";
|
|
21027
20954
|
ButtonSize$1["MD"] = "md";
|
|
21028
20955
|
ButtonSize$1["LG"] = "lg";
|
|
@@ -21032,12 +20959,12 @@ let ButtonSize = /* @__PURE__ */ function(ButtonSize$1) {
|
|
|
21032
20959
|
ButtonSize$1["ICON_LG"] = "icon-lg";
|
|
21033
20960
|
ButtonSize$1["ICON_XL"] = "icon-xl";
|
|
21034
20961
|
return ButtonSize$1;
|
|
21035
|
-
}({});
|
|
21036
|
-
let ButtonIconPosition = /* @__PURE__ */ function(ButtonIconPosition$1) {
|
|
20962
|
+
})({});
|
|
20963
|
+
let ButtonIconPosition = /* @__PURE__ */ (function(ButtonIconPosition$1) {
|
|
21037
20964
|
ButtonIconPosition$1["LEFT"] = "left";
|
|
21038
20965
|
ButtonIconPosition$1["RIGHT"] = "right";
|
|
21039
20966
|
return ButtonIconPosition$1;
|
|
21040
|
-
}({});
|
|
20967
|
+
})({});
|
|
21041
20968
|
const buttonIconVariants = cva("", {
|
|
21042
20969
|
variants: {
|
|
21043
20970
|
size: {
|
|
@@ -21057,17 +20984,18 @@ const buttonIconVariants = cva("", {
|
|
|
21057
20984
|
},
|
|
21058
20985
|
defaultVariants: { size: ButtonSize.MD }
|
|
21059
20986
|
});
|
|
21060
|
-
let ButtonVariant = /* @__PURE__ */ function(ButtonVariant$1) {
|
|
20987
|
+
let ButtonVariant = /* @__PURE__ */ (function(ButtonVariant$1) {
|
|
21061
20988
|
ButtonVariant$1["DEFAULT"] = "default";
|
|
21062
20989
|
ButtonVariant$1["NONE"] = "none";
|
|
21063
20990
|
ButtonVariant$1["OUTLINE"] = "outline";
|
|
21064
20991
|
ButtonVariant$1["LINK"] = "link";
|
|
21065
20992
|
ButtonVariant$1["INVISIBLE_LINK"] = "invisible-link";
|
|
21066
20993
|
ButtonVariant$1["HOVERABLE"] = "hoverable";
|
|
20994
|
+
ButtonVariant$1["FADE"] = "fade";
|
|
21067
20995
|
ButtonVariant$1["INPUT"] = "input";
|
|
21068
20996
|
return ButtonVariant$1;
|
|
21069
|
-
}({});
|
|
21070
|
-
let ButtonColor = /* @__PURE__ */ function(ButtonColor$1) {
|
|
20997
|
+
})({});
|
|
20998
|
+
let ButtonColor = /* @__PURE__ */ (function(ButtonColor$1) {
|
|
21071
20999
|
ButtonColor$1["PRIMARY"] = "primary";
|
|
21072
21000
|
ButtonColor$1["SECONDARY"] = "secondary";
|
|
21073
21001
|
ButtonColor$1["DESTRUCTIVE"] = "destructive";
|
|
@@ -21075,18 +21003,20 @@ let ButtonColor = /* @__PURE__ */ function(ButtonColor$1) {
|
|
|
21075
21003
|
ButtonColor$1["LIGHT"] = "light";
|
|
21076
21004
|
ButtonColor$1["DARK"] = "dark";
|
|
21077
21005
|
ButtonColor$1["TEXT"] = "text";
|
|
21006
|
+
ButtonColor$1["CARD"] = "card";
|
|
21078
21007
|
ButtonColor$1["TEXT_INVERSE"] = "text-inverse";
|
|
21008
|
+
ButtonColor$1["CURRENT"] = "current";
|
|
21079
21009
|
ButtonColor$1["ERROR"] = "error";
|
|
21080
21010
|
ButtonColor$1["SUCCESS"] = "success";
|
|
21081
21011
|
ButtonColor$1["CUSTOM"] = "custom";
|
|
21082
21012
|
return ButtonColor$1;
|
|
21083
|
-
}({});
|
|
21084
|
-
let ButtonTextAlign = /* @__PURE__ */ function(ButtonTextAlign$1) {
|
|
21013
|
+
})({});
|
|
21014
|
+
let ButtonTextAlign = /* @__PURE__ */ (function(ButtonTextAlign$1) {
|
|
21085
21015
|
ButtonTextAlign$1["LEFT"] = "left";
|
|
21086
21016
|
ButtonTextAlign$1["CENTER"] = "center";
|
|
21087
21017
|
ButtonTextAlign$1["RIGHT"] = "right";
|
|
21088
21018
|
return ButtonTextAlign$1;
|
|
21089
|
-
}({});
|
|
21019
|
+
})({});
|
|
21090
21020
|
const buttonVariants = cva("relative cursor-pointer truncate whitespace-nowrap font-medium transition-all duration-200 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50", {
|
|
21091
21021
|
variants: {
|
|
21092
21022
|
size: {
|
|
@@ -21104,9 +21034,11 @@ const buttonVariants = cva("relative cursor-pointer truncate whitespace-nowrap f
|
|
|
21104
21034
|
[`${ButtonColor.SECONDARY}`]: "text-secondary *:text-text-light focus:ring-secondary-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-secondary-500/50",
|
|
21105
21035
|
[`${ButtonColor.DESTRUCTIVE}`]: "text-destructive *:text-text-light focus:ring-destructive-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-destructive-500/50",
|
|
21106
21036
|
[`${ButtonColor.NEUTRAL}`]: "text-neutral *:text-text-light focus:ring-neutral-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-500/50",
|
|
21037
|
+
[`${ButtonColor.CARD}`]: "text-card *:text-text-light focus:ring-card-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-card-500/50",
|
|
21107
21038
|
[`${ButtonColor.LIGHT}`]: "text-white *:text-text-light focus:ring-white/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-white/50",
|
|
21108
21039
|
[`${ButtonColor.DARK}`]: "text-neutral-800 *:text-text-light focus:ring-neutral-800/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-800/50",
|
|
21109
21040
|
[`${ButtonColor.TEXT}`]: "text-text *:text-text-opposite focus:ring-neutral-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-500/50",
|
|
21041
|
+
[`${ButtonColor.CURRENT}`]: "text-current *:text-text-light focus:ring-current/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-current/50",
|
|
21110
21042
|
[`${ButtonColor.TEXT_INVERSE}`]: "text-text-opposite *:text-text focus:ring-neutral-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-500/50",
|
|
21111
21043
|
[`${ButtonColor.ERROR}`]: "text-error *:text-text-light focus:ring-error/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-error/50",
|
|
21112
21044
|
[`${ButtonColor.SUCCESS}`]: "text-success *:text-text-light focus:ring-success/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-success/50",
|
|
@@ -21119,6 +21051,7 @@ const buttonVariants = cva("relative cursor-pointer truncate whitespace-nowrap f
|
|
|
21119
21051
|
[`${ButtonVariant.LINK}`]: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline",
|
|
21120
21052
|
[`${ButtonVariant.INVISIBLE_LINK}`]: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",
|
|
21121
21053
|
[`${ButtonVariant.HOVERABLE}`]: "*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",
|
|
21054
|
+
[`${ButtonVariant.FADE}`]: "*:!text-current rounded-lg border-none bg-current/10 transition hover:bg-current/20 aria-[current]:bg-current/5",
|
|
21122
21055
|
[`${ButtonVariant.INPUT}`]: [
|
|
21123
21056
|
"*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-input-text text-sm shadow-none outline-0 transition-all",
|
|
21124
21057
|
"border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]",
|
|
@@ -21232,12 +21165,6 @@ const MaxHeightSmoother = ({ children, isHidden: isHidden2, className = "", isOv
|
|
|
21232
21165
|
children
|
|
21233
21166
|
})
|
|
21234
21167
|
});
|
|
21235
|
-
/**
|
|
21236
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21237
|
-
*
|
|
21238
|
-
* This source code is licensed under the ISC license.
|
|
21239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21240
|
-
*/
|
|
21241
21168
|
const toKebabCase = (string2) => string2.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
21242
21169
|
const toCamelCase = (string2) => string2.replace(
|
|
21243
21170
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
@@ -21257,12 +21184,6 @@ const hasA11yProp = (props) => {
|
|
|
21257
21184
|
}
|
|
21258
21185
|
}
|
|
21259
21186
|
};
|
|
21260
|
-
/**
|
|
21261
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21262
|
-
*
|
|
21263
|
-
* This source code is licensed under the ISC license.
|
|
21264
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21265
|
-
*/
|
|
21266
21187
|
var defaultAttributes = {
|
|
21267
21188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21268
21189
|
width: 24,
|
|
@@ -21274,12 +21195,6 @@ var defaultAttributes = {
|
|
|
21274
21195
|
strokeLinecap: "round",
|
|
21275
21196
|
strokeLinejoin: "round"
|
|
21276
21197
|
};
|
|
21277
|
-
/**
|
|
21278
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21279
|
-
*
|
|
21280
|
-
* This source code is licensed under the ISC license.
|
|
21281
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21282
|
-
*/
|
|
21283
21198
|
const Icon$1 = reactExports.forwardRef(
|
|
21284
21199
|
({
|
|
21285
21200
|
color: color2 = "currentColor",
|
|
@@ -21309,12 +21224,6 @@ const Icon$1 = reactExports.forwardRef(
|
|
|
21309
21224
|
]
|
|
21310
21225
|
)
|
|
21311
21226
|
);
|
|
21312
|
-
/**
|
|
21313
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21314
|
-
*
|
|
21315
|
-
* This source code is licensed under the ISC license.
|
|
21316
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21317
|
-
*/
|
|
21318
21227
|
const createLucideIcon = (iconName, iconNode) => {
|
|
21319
21228
|
const Component = reactExports.forwardRef(
|
|
21320
21229
|
({ className, ...props }, ref) => reactExports.createElement(Icon$1, {
|
|
@@ -21331,133 +21240,55 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
21331
21240
|
Component.displayName = toPascalCase(iconName);
|
|
21332
21241
|
return Component;
|
|
21333
21242
|
};
|
|
21334
|
-
/**
|
|
21335
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21336
|
-
*
|
|
21337
|
-
* This source code is licensed under the ISC license.
|
|
21338
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21339
|
-
*/
|
|
21340
21243
|
const __iconNode$p = [
|
|
21341
21244
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
21342
21245
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
21343
21246
|
];
|
|
21344
21247
|
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$p);
|
|
21345
|
-
/**
|
|
21346
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21347
|
-
*
|
|
21348
|
-
* This source code is licensed under the ISC license.
|
|
21349
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21350
|
-
*/
|
|
21351
21248
|
const __iconNode$o = [
|
|
21352
21249
|
["path", { d: "m18 9-6-6-6 6", key: "kcunyi" }],
|
|
21353
21250
|
["path", { d: "M12 3v14", key: "7cf3v8" }],
|
|
21354
21251
|
["path", { d: "M5 21h14", key: "11awu3" }]
|
|
21355
21252
|
];
|
|
21356
21253
|
const ArrowUpFromLine = createLucideIcon("arrow-up-from-line", __iconNode$o);
|
|
21357
|
-
/**
|
|
21358
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21359
|
-
*
|
|
21360
|
-
* This source code is licensed under the ISC license.
|
|
21361
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21362
|
-
*/
|
|
21363
21254
|
const __iconNode$n = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
21364
21255
|
const Check = createLucideIcon("check", __iconNode$n);
|
|
21365
|
-
/**
|
|
21366
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21367
|
-
*
|
|
21368
|
-
* This source code is licensed under the ISC license.
|
|
21369
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21370
|
-
*/
|
|
21371
21256
|
const __iconNode$m = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
21372
21257
|
const ChevronDown = createLucideIcon("chevron-down", __iconNode$m);
|
|
21373
|
-
/**
|
|
21374
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21375
|
-
*
|
|
21376
|
-
* This source code is licensed under the ISC license.
|
|
21377
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21378
|
-
*/
|
|
21379
21258
|
const __iconNode$l = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
21380
21259
|
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$l);
|
|
21381
|
-
/**
|
|
21382
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21383
|
-
*
|
|
21384
|
-
* This source code is licensed under the ISC license.
|
|
21385
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21386
|
-
*/
|
|
21387
21260
|
const __iconNode$k = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
21388
21261
|
const ChevronRight = createLucideIcon("chevron-right", __iconNode$k);
|
|
21389
|
-
/**
|
|
21390
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21391
|
-
*
|
|
21392
|
-
* This source code is licensed under the ISC license.
|
|
21393
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21394
|
-
*/
|
|
21395
21262
|
const __iconNode$j = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
21396
21263
|
const ChevronUp = createLucideIcon("chevron-up", __iconNode$j);
|
|
21397
|
-
/**
|
|
21398
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21399
|
-
*
|
|
21400
|
-
* This source code is licensed under the ISC license.
|
|
21401
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21402
|
-
*/
|
|
21403
21264
|
const __iconNode$i = [
|
|
21404
21265
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
21405
21266
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
21406
21267
|
];
|
|
21407
21268
|
const ChevronsUpDown = createLucideIcon("chevrons-up-down", __iconNode$i);
|
|
21408
|
-
/**
|
|
21409
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21410
|
-
*
|
|
21411
|
-
* This source code is licensed under the ISC license.
|
|
21412
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21413
|
-
*/
|
|
21414
21269
|
const __iconNode$h = [
|
|
21415
21270
|
["path", { d: "m12 15 2 2 4-4", key: "2c609p" }],
|
|
21416
21271
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
21417
21272
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
21418
21273
|
];
|
|
21419
21274
|
const CopyCheck = createLucideIcon("copy-check", __iconNode$h);
|
|
21420
|
-
/**
|
|
21421
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21422
|
-
*
|
|
21423
|
-
* This source code is licensed under the ISC license.
|
|
21424
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21425
|
-
*/
|
|
21426
21275
|
const __iconNode$g = [
|
|
21427
21276
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
21428
21277
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
21429
21278
|
];
|
|
21430
21279
|
const Copy = createLucideIcon("copy", __iconNode$g);
|
|
21431
|
-
/**
|
|
21432
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21433
|
-
*
|
|
21434
|
-
* This source code is licensed under the ISC license.
|
|
21435
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21436
|
-
*/
|
|
21437
21280
|
const __iconNode$f = [
|
|
21438
21281
|
["path", { d: "M12 15V3", key: "m9g1x1" }],
|
|
21439
21282
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
21440
21283
|
["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
|
|
21441
21284
|
];
|
|
21442
21285
|
const Download = createLucideIcon("download", __iconNode$f);
|
|
21443
|
-
/**
|
|
21444
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21445
|
-
*
|
|
21446
|
-
* This source code is licensed under the ISC license.
|
|
21447
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21448
|
-
*/
|
|
21449
21286
|
const __iconNode$e = [
|
|
21450
21287
|
["path", { d: "M15 3h6v6", key: "1q9fwt" }],
|
|
21451
21288
|
["path", { d: "M10 14 21 3", key: "gplh6r" }],
|
|
21452
21289
|
["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
|
|
21453
21290
|
];
|
|
21454
21291
|
const ExternalLink = createLucideIcon("external-link", __iconNode$e);
|
|
21455
|
-
/**
|
|
21456
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21457
|
-
*
|
|
21458
|
-
* This source code is licensed under the ISC license.
|
|
21459
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21460
|
-
*/
|
|
21461
21292
|
const __iconNode$d = [
|
|
21462
21293
|
[
|
|
21463
21294
|
"path",
|
|
@@ -21477,12 +21308,6 @@ const __iconNode$d = [
|
|
|
21477
21308
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
21478
21309
|
];
|
|
21479
21310
|
const EyeOff = createLucideIcon("eye-off", __iconNode$d);
|
|
21480
|
-
/**
|
|
21481
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21482
|
-
*
|
|
21483
|
-
* This source code is licensed under the ISC license.
|
|
21484
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21485
|
-
*/
|
|
21486
21311
|
const __iconNode$c = [
|
|
21487
21312
|
[
|
|
21488
21313
|
"path",
|
|
@@ -21494,59 +21319,29 @@ const __iconNode$c = [
|
|
|
21494
21319
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
21495
21320
|
];
|
|
21496
21321
|
const Eye = createLucideIcon("eye", __iconNode$c);
|
|
21497
|
-
/**
|
|
21498
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21499
|
-
*
|
|
21500
|
-
* This source code is licensed under the ISC license.
|
|
21501
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21502
|
-
*/
|
|
21503
21322
|
const __iconNode$b = [
|
|
21504
21323
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
21505
21324
|
["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
|
|
21506
21325
|
["path", { d: "M2 12h20", key: "9i4pu4" }]
|
|
21507
21326
|
];
|
|
21508
21327
|
const Globe = createLucideIcon("globe", __iconNode$b);
|
|
21509
|
-
/**
|
|
21510
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21511
|
-
*
|
|
21512
|
-
* This source code is licensed under the ISC license.
|
|
21513
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21514
|
-
*/
|
|
21515
21328
|
const __iconNode$a = [
|
|
21516
21329
|
["path", { d: "M11 19H5v-6", key: "8awifj" }],
|
|
21517
21330
|
["path", { d: "M13 5h6v6", key: "7voy1q" }],
|
|
21518
21331
|
["path", { d: "M19 5 5 19", key: "wwaj1z" }]
|
|
21519
21332
|
];
|
|
21520
21333
|
const MoveDiagonal = createLucideIcon("move-diagonal", __iconNode$a);
|
|
21521
|
-
/**
|
|
21522
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21523
|
-
*
|
|
21524
|
-
* This source code is licensed under the ISC license.
|
|
21525
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21526
|
-
*/
|
|
21527
21334
|
const __iconNode$9 = [
|
|
21528
21335
|
["path", { d: "M18 8L22 12L18 16", key: "1r0oui" }],
|
|
21529
21336
|
["path", { d: "M2 12H22", key: "1m8cig" }]
|
|
21530
21337
|
];
|
|
21531
21338
|
const MoveRight = createLucideIcon("move-right", __iconNode$9);
|
|
21532
|
-
/**
|
|
21533
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21534
|
-
*
|
|
21535
|
-
* This source code is licensed under the ISC license.
|
|
21536
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21537
|
-
*/
|
|
21538
21339
|
const __iconNode$8 = [
|
|
21539
21340
|
["path", { d: "M12 2v20", key: "t6zp3m" }],
|
|
21540
21341
|
["path", { d: "m8 18 4 4 4-4", key: "bh5tu3" }],
|
|
21541
21342
|
["path", { d: "m8 6 4-4 4 4", key: "ybng9g" }]
|
|
21542
21343
|
];
|
|
21543
21344
|
const MoveVertical = createLucideIcon("move-vertical", __iconNode$8);
|
|
21544
|
-
/**
|
|
21545
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21546
|
-
*
|
|
21547
|
-
* This source code is licensed under the ISC license.
|
|
21548
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21549
|
-
*/
|
|
21550
21345
|
const __iconNode$7 = [
|
|
21551
21346
|
[
|
|
21552
21347
|
"path",
|
|
@@ -21558,34 +21353,16 @@ const __iconNode$7 = [
|
|
|
21558
21353
|
["path", { d: "m15 5 4 4", key: "1mk7zo" }]
|
|
21559
21354
|
];
|
|
21560
21355
|
const Pencil = createLucideIcon("pencil", __iconNode$7);
|
|
21561
|
-
/**
|
|
21562
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21563
|
-
*
|
|
21564
|
-
* This source code is licensed under the ISC license.
|
|
21565
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21566
|
-
*/
|
|
21567
21356
|
const __iconNode$6 = [
|
|
21568
21357
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
21569
21358
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
21570
21359
|
];
|
|
21571
21360
|
const Plus = createLucideIcon("plus", __iconNode$6);
|
|
21572
|
-
/**
|
|
21573
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21574
|
-
*
|
|
21575
|
-
* This source code is licensed under the ISC license.
|
|
21576
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21577
|
-
*/
|
|
21578
21361
|
const __iconNode$5 = [
|
|
21579
21362
|
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
|
|
21580
21363
|
["path", { d: "M3 3v5h5", key: "1xhq8a" }]
|
|
21581
21364
|
];
|
|
21582
21365
|
const RotateCcw = createLucideIcon("rotate-ccw", __iconNode$5);
|
|
21583
|
-
/**
|
|
21584
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21585
|
-
*
|
|
21586
|
-
* This source code is licensed under the ISC license.
|
|
21587
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21588
|
-
*/
|
|
21589
21366
|
const __iconNode$4 = [
|
|
21590
21367
|
[
|
|
21591
21368
|
"path",
|
|
@@ -21598,35 +21375,17 @@ const __iconNode$4 = [
|
|
|
21598
21375
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
21599
21376
|
];
|
|
21600
21377
|
const Save = createLucideIcon("save", __iconNode$4);
|
|
21601
|
-
/**
|
|
21602
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21603
|
-
*
|
|
21604
|
-
* This source code is licensed under the ISC license.
|
|
21605
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21606
|
-
*/
|
|
21607
21378
|
const __iconNode$3 = [
|
|
21608
21379
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
21609
21380
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
21610
21381
|
];
|
|
21611
21382
|
const Search = createLucideIcon("search", __iconNode$3);
|
|
21612
|
-
/**
|
|
21613
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21614
|
-
*
|
|
21615
|
-
* This source code is licensed under the ISC license.
|
|
21616
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21617
|
-
*/
|
|
21618
21383
|
const __iconNode$2 = [
|
|
21619
21384
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
21620
21385
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
21621
21386
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
21622
21387
|
];
|
|
21623
21388
|
const Trash = createLucideIcon("trash", __iconNode$2);
|
|
21624
|
-
/**
|
|
21625
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21626
|
-
*
|
|
21627
|
-
* This source code is licensed under the ISC license.
|
|
21628
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21629
|
-
*/
|
|
21630
21389
|
const __iconNode$1 = [
|
|
21631
21390
|
[
|
|
21632
21391
|
"path",
|
|
@@ -21644,12 +21403,6 @@ const __iconNode$1 = [
|
|
|
21644
21403
|
["path", { d: "M11 3H9", key: "1obp7u" }]
|
|
21645
21404
|
];
|
|
21646
21405
|
const WandSparkles = createLucideIcon("wand-sparkles", __iconNode$1);
|
|
21647
|
-
/**
|
|
21648
|
-
* @license lucide-react v0.547.0 - ISC
|
|
21649
|
-
*
|
|
21650
|
-
* This source code is licensed under the ISC license.
|
|
21651
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
21652
|
-
*/
|
|
21653
21406
|
const __iconNode = [
|
|
21654
21407
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
21655
21408
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
@@ -21704,7 +21457,7 @@ const Accordion = ({ children, header, isOpen, defaultIsOpen = false, onToggle,
|
|
|
21704
21457
|
})]
|
|
21705
21458
|
});
|
|
21706
21459
|
};
|
|
21707
|
-
let BadgeColor = /* @__PURE__ */ function(BadgeColor$1) {
|
|
21460
|
+
let BadgeColor = /* @__PURE__ */ (function(BadgeColor$1) {
|
|
21708
21461
|
BadgeColor$1["PRIMARY"] = "primary";
|
|
21709
21462
|
BadgeColor$1["SECONDARY"] = "secondary";
|
|
21710
21463
|
BadgeColor$1["DESTRUCTIVE"] = "destructive";
|
|
@@ -21716,20 +21469,20 @@ let BadgeColor = /* @__PURE__ */ function(BadgeColor$1) {
|
|
|
21716
21469
|
BadgeColor$1["TEXT"] = "text";
|
|
21717
21470
|
BadgeColor$1["CUSTOM"] = "custom";
|
|
21718
21471
|
return BadgeColor$1;
|
|
21719
|
-
}({});
|
|
21720
|
-
let BadgeVariant = /* @__PURE__ */ function(BadgeVariant$1) {
|
|
21472
|
+
})({});
|
|
21473
|
+
let BadgeVariant = /* @__PURE__ */ (function(BadgeVariant$1) {
|
|
21721
21474
|
BadgeVariant$1["DEFAULT"] = "default";
|
|
21722
21475
|
BadgeVariant$1["NONE"] = "none";
|
|
21723
21476
|
BadgeVariant$1["OUTLINE"] = "outline";
|
|
21724
21477
|
BadgeVariant$1["HOVERABLE"] = "hoverable";
|
|
21725
21478
|
return BadgeVariant$1;
|
|
21726
|
-
}({});
|
|
21727
|
-
let BadgeSize = /* @__PURE__ */ function(BadgeSize$1) {
|
|
21479
|
+
})({});
|
|
21480
|
+
let BadgeSize = /* @__PURE__ */ (function(BadgeSize$1) {
|
|
21728
21481
|
BadgeSize$1["SMALL"] = "sm";
|
|
21729
21482
|
BadgeSize$1["MEDIUM"] = "md";
|
|
21730
21483
|
BadgeSize$1["LARGE"] = "lg";
|
|
21731
21484
|
return BadgeSize$1;
|
|
21732
|
-
}({});
|
|
21485
|
+
})({});
|
|
21733
21486
|
const badgeVariants = cva("inline-flex items-center rounded-md border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
21734
21487
|
variants: {
|
|
21735
21488
|
color: {
|
|
@@ -21805,15 +21558,15 @@ const Badge = ({ className, variant = BadgeVariant.DEFAULT, color: color2 = Badg
|
|
|
21805
21558
|
})]
|
|
21806
21559
|
});
|
|
21807
21560
|
};
|
|
21808
|
-
let LinkVariant = /* @__PURE__ */ function(LinkVariant$1) {
|
|
21561
|
+
let LinkVariant = /* @__PURE__ */ (function(LinkVariant$1) {
|
|
21809
21562
|
LinkVariant$1["DEFAULT"] = "default";
|
|
21810
21563
|
LinkVariant$1["INVISIBLE_LINK"] = "invisible-link";
|
|
21811
21564
|
LinkVariant$1["BUTTON"] = "button";
|
|
21812
21565
|
LinkVariant$1["BUTTON_OUTLINED"] = "button-outlined";
|
|
21813
21566
|
LinkVariant$1["HOVERABLE"] = "hoverable";
|
|
21814
21567
|
return LinkVariant$1;
|
|
21815
|
-
}({});
|
|
21816
|
-
let LinkColor = /* @__PURE__ */ function(LinkColor$1) {
|
|
21568
|
+
})({});
|
|
21569
|
+
let LinkColor = /* @__PURE__ */ (function(LinkColor$1) {
|
|
21817
21570
|
LinkColor$1["PRIMARY"] = "primary";
|
|
21818
21571
|
LinkColor$1["SECONDARY"] = "secondary";
|
|
21819
21572
|
LinkColor$1["DESTRUCTIVE"] = "destructive";
|
|
@@ -21826,13 +21579,13 @@ let LinkColor = /* @__PURE__ */ function(LinkColor$1) {
|
|
|
21826
21579
|
LinkColor$1["SUCCESS"] = "success";
|
|
21827
21580
|
LinkColor$1["CUSTOM"] = "custom";
|
|
21828
21581
|
return LinkColor$1;
|
|
21829
|
-
}({});
|
|
21830
|
-
let LinkUnderlined = /* @__PURE__ */ function(LinkUnderlined$1) {
|
|
21582
|
+
})({});
|
|
21583
|
+
let LinkUnderlined = /* @__PURE__ */ (function(LinkUnderlined$1) {
|
|
21831
21584
|
LinkUnderlined$1["DEFAULT"] = "default";
|
|
21832
21585
|
LinkUnderlined$1["TRUE"] = "true";
|
|
21833
21586
|
LinkUnderlined$1["FALSE"] = "false";
|
|
21834
21587
|
return LinkUnderlined$1;
|
|
21835
|
-
}({});
|
|
21588
|
+
})({});
|
|
21836
21589
|
const linkVariants = cva("gap-3 transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50", {
|
|
21837
21590
|
variants: {
|
|
21838
21591
|
variant: {
|
|
@@ -24602,15 +24355,6 @@ var withSelector = { exports: {} };
|
|
|
24602
24355
|
var withSelector_production = {};
|
|
24603
24356
|
var shim = { exports: {} };
|
|
24604
24357
|
var useSyncExternalStoreShim_production = {};
|
|
24605
|
-
/**
|
|
24606
|
-
* @license React
|
|
24607
|
-
* use-sync-external-store-shim.production.js
|
|
24608
|
-
*
|
|
24609
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
24610
|
-
*
|
|
24611
|
-
* This source code is licensed under the MIT license found in the
|
|
24612
|
-
* LICENSE file in the root directory of this source tree.
|
|
24613
|
-
*/
|
|
24614
24358
|
var hasRequiredUseSyncExternalStoreShim_production;
|
|
24615
24359
|
function requireUseSyncExternalStoreShim_production() {
|
|
24616
24360
|
if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
|
|
@@ -24668,15 +24412,6 @@ function requireShim() {
|
|
|
24668
24412
|
}
|
|
24669
24413
|
return shim.exports;
|
|
24670
24414
|
}
|
|
24671
|
-
/**
|
|
24672
|
-
* @license React
|
|
24673
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
24674
|
-
*
|
|
24675
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
24676
|
-
*
|
|
24677
|
-
* This source code is licensed under the MIT license found in the
|
|
24678
|
-
* LICENSE file in the root directory of this source tree.
|
|
24679
|
-
*/
|
|
24680
24415
|
var hasRequiredWithSelector_production;
|
|
24681
24416
|
function requireWithSelector_production() {
|
|
24682
24417
|
if (hasRequiredWithSelector_production) return withSelector_production;
|
|
@@ -30224,7 +29959,7 @@ class VisualElementDragControls {
|
|
|
30224
29959
|
}
|
|
30225
29960
|
frame.read(measureDragConstraints);
|
|
30226
29961
|
const stopResizeListener = addDomEvent(window, "resize", () => this.scalePositionWithinConstraints());
|
|
30227
|
-
const stopLayoutUpdateListener = projection.addEventListener("didUpdate", ({ delta, hasLayoutChanged }) => {
|
|
29962
|
+
const stopLayoutUpdateListener = projection.addEventListener("didUpdate", (({ delta, hasLayoutChanged }) => {
|
|
30228
29963
|
if (this.isDragging && hasLayoutChanged) {
|
|
30229
29964
|
eachAxis((axis) => {
|
|
30230
29965
|
const motionValue2 = this.getAxisMotionValue(axis);
|
|
@@ -30235,7 +29970,7 @@ class VisualElementDragControls {
|
|
|
30235
29970
|
});
|
|
30236
29971
|
this.visualElement.render();
|
|
30237
29972
|
}
|
|
30238
|
-
});
|
|
29973
|
+
}));
|
|
30239
29974
|
return () => {
|
|
30240
29975
|
stopResizeListener();
|
|
30241
29976
|
stopPointerListener();
|
|
@@ -32044,14 +31779,14 @@ const domAnimation = {
|
|
|
32044
31779
|
...animations,
|
|
32045
31780
|
...gestureAnimations
|
|
32046
31781
|
};
|
|
32047
|
-
let ModalSize = /* @__PURE__ */ function(ModalSize$1) {
|
|
31782
|
+
let ModalSize = /* @__PURE__ */ (function(ModalSize$1) {
|
|
32048
31783
|
ModalSize$1["SM"] = "sm";
|
|
32049
31784
|
ModalSize$1["MD"] = "md";
|
|
32050
31785
|
ModalSize$1["LG"] = "lg";
|
|
32051
31786
|
ModalSize$1["XL"] = "xl";
|
|
32052
31787
|
ModalSize$1["UNSET"] = "unset";
|
|
32053
31788
|
return ModalSize$1;
|
|
32054
|
-
}({});
|
|
31789
|
+
})({});
|
|
32055
31790
|
const modalVariants = cva("cursor-default justify-center overflow-auto py-3 shadow-sm", {
|
|
32056
31791
|
variants: { size: {
|
|
32057
31792
|
sm: "h-auto max-h-[30vh] w-[95vw] max-w-xl",
|
|
@@ -32174,7 +31909,7 @@ const checkboxVariants = cva("", {
|
|
|
32174
31909
|
size: "md"
|
|
32175
31910
|
}
|
|
32176
31911
|
});
|
|
32177
|
-
const Input$1 = ({ validationStyleEnabled = false, label, size: size2, color: color2, name, variant, className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("input", {
|
|
31912
|
+
const Input$1 = ({ validationStyleEnabled = false, label, size: size2, color: color2, name, variant, className, labelClassName, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("input", {
|
|
32178
31913
|
type: "checkbox",
|
|
32179
31914
|
className: checkboxVariants({
|
|
32180
31915
|
variant,
|
|
@@ -32189,7 +31924,7 @@ const Checkbox = (props) => {
|
|
|
32189
31924
|
const { label, name, id: id2 } = props;
|
|
32190
31925
|
return label ? /* @__PURE__ */ jsxRuntimeExports.jsxs("label", {
|
|
32191
31926
|
htmlFor: id2 ?? name,
|
|
32192
|
-
className: "flex cursor-pointer items-center gap-x-4 font-medium text-sm",
|
|
31927
|
+
className: cn$1("flex w-full cursor-pointer items-center gap-x-4 font-medium text-sm", props.labelClassName),
|
|
32193
31928
|
children: [/* @__PURE__ */ jsxRuntimeExports.jsx(Input$1, {
|
|
32194
31929
|
id: id2 ?? name,
|
|
32195
31930
|
...props
|
|
@@ -32225,11 +31960,11 @@ const inputVariants = cva("", {
|
|
|
32225
31960
|
validationStyleEnabled: "disabled"
|
|
32226
31961
|
}
|
|
32227
31962
|
});
|
|
32228
|
-
let InputVariant = /* @__PURE__ */ function(InputVariant$1) {
|
|
31963
|
+
let InputVariant = /* @__PURE__ */ (function(InputVariant$1) {
|
|
32229
31964
|
InputVariant$1["DEFAULT"] = "default";
|
|
32230
31965
|
InputVariant$1["INVISIBLE"] = "invisible";
|
|
32231
31966
|
return InputVariant$1;
|
|
32232
|
-
}({});
|
|
31967
|
+
})({});
|
|
32233
31968
|
const Input = ({ validationStyleEnabled = false, variant, size: size2, className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("input", {
|
|
32234
31969
|
className: inputVariants({
|
|
32235
31970
|
variant,
|
|
@@ -32594,32 +32329,60 @@ function useWatch(props) {
|
|
|
32594
32329
|
const _defaultValue = We.useRef(defaultValue);
|
|
32595
32330
|
const _compute = We.useRef(compute);
|
|
32596
32331
|
const _computeFormValues = We.useRef(void 0);
|
|
32332
|
+
const _prevControl = We.useRef(control);
|
|
32333
|
+
const _prevName = We.useRef(name);
|
|
32597
32334
|
_compute.current = compute;
|
|
32598
|
-
const
|
|
32599
|
-
|
|
32600
|
-
|
|
32601
|
-
|
|
32602
|
-
|
|
32603
|
-
|
|
32604
|
-
|
|
32605
|
-
|
|
32606
|
-
|
|
32607
|
-
|
|
32608
|
-
|
|
32609
|
-
|
|
32610
|
-
|
|
32611
|
-
|
|
32612
|
-
|
|
32613
|
-
|
|
32614
|
-
}
|
|
32615
|
-
} else {
|
|
32616
|
-
updateValue(formValues);
|
|
32335
|
+
const [value, updateValue] = We.useState(() => {
|
|
32336
|
+
const defaultValue2 = control._getWatch(name, _defaultValue.current);
|
|
32337
|
+
return _compute.current ? _compute.current(defaultValue2) : defaultValue2;
|
|
32338
|
+
});
|
|
32339
|
+
const getCurrentOutput = We.useCallback((values) => {
|
|
32340
|
+
const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
|
|
32341
|
+
return _compute.current ? _compute.current(formValues) : formValues;
|
|
32342
|
+
}, [control._formValues, control._names, name]);
|
|
32343
|
+
const refreshValue = We.useCallback((values) => {
|
|
32344
|
+
if (!disabled) {
|
|
32345
|
+
const formValues = generateWatchOutput(name, control._names, values || control._formValues, false, _defaultValue.current);
|
|
32346
|
+
if (_compute.current) {
|
|
32347
|
+
const computedFormValues = _compute.current(formValues);
|
|
32348
|
+
if (!deepEqual$1(computedFormValues, _computeFormValues.current)) {
|
|
32349
|
+
updateValue(computedFormValues);
|
|
32350
|
+
_computeFormValues.current = computedFormValues;
|
|
32617
32351
|
}
|
|
32352
|
+
} else {
|
|
32353
|
+
updateValue(formValues);
|
|
32618
32354
|
}
|
|
32619
32355
|
}
|
|
32620
|
-
}
|
|
32356
|
+
}, [control._formValues, control._names, disabled, name]);
|
|
32357
|
+
useIsomorphicLayoutEffect(() => {
|
|
32358
|
+
if (_prevControl.current !== control || !deepEqual$1(_prevName.current, name)) {
|
|
32359
|
+
_prevControl.current = control;
|
|
32360
|
+
_prevName.current = name;
|
|
32361
|
+
refreshValue();
|
|
32362
|
+
}
|
|
32363
|
+
return control._subscribe({
|
|
32364
|
+
name,
|
|
32365
|
+
formState: {
|
|
32366
|
+
values: true
|
|
32367
|
+
},
|
|
32368
|
+
exact,
|
|
32369
|
+
callback: (formState) => {
|
|
32370
|
+
refreshValue(formState.values);
|
|
32371
|
+
}
|
|
32372
|
+
});
|
|
32373
|
+
}, [control, exact, name, refreshValue]);
|
|
32621
32374
|
We.useEffect(() => control._removeUnmounted());
|
|
32622
|
-
|
|
32375
|
+
const controlChanged = _prevControl.current !== control;
|
|
32376
|
+
const prevName = _prevName.current;
|
|
32377
|
+
const computedOutput = We.useMemo(() => {
|
|
32378
|
+
if (disabled) {
|
|
32379
|
+
return null;
|
|
32380
|
+
}
|
|
32381
|
+
const nameChanged = !controlChanged && !deepEqual$1(prevName, name);
|
|
32382
|
+
const shouldReturnImmediate = controlChanged || nameChanged;
|
|
32383
|
+
return shouldReturnImmediate ? getCurrentOutput() : null;
|
|
32384
|
+
}, [disabled, controlChanged, name, prevName, getCurrentOutput]);
|
|
32385
|
+
return computedOutput !== null ? computedOutput : value;
|
|
32623
32386
|
}
|
|
32624
32387
|
function useController(props) {
|
|
32625
32388
|
const methods2 = useFormContext();
|
|
@@ -33939,7 +33702,7 @@ function createFormControl(props = {}) {
|
|
|
33939
33702
|
watchAll: false,
|
|
33940
33703
|
focus: ""
|
|
33941
33704
|
};
|
|
33942
|
-
_state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid || !!keepStateOptions.keepDirtyValues;
|
|
33705
|
+
_state.mount = !_proxyFormState.isValid || !!keepStateOptions.keepIsValid || !!keepStateOptions.keepDirtyValues || !_options.shouldUnregister && !isEmptyObject(values);
|
|
33943
33706
|
_state.watch = !!_options.shouldUnregister;
|
|
33944
33707
|
_subjects.state.next({
|
|
33945
33708
|
submitCount: keepStateOptions.keepSubmitCount ? _formState.submitCount : 0,
|
|
@@ -34918,10 +34681,9 @@ var Query = class extends Removable {
|
|
|
34918
34681
|
if (this.state && this.state.data === void 0) {
|
|
34919
34682
|
const defaultState = getDefaultState$1(this.options);
|
|
34920
34683
|
if (defaultState.data !== void 0) {
|
|
34921
|
-
this.
|
|
34922
|
-
|
|
34923
|
-
|
|
34924
|
-
});
|
|
34684
|
+
this.setState(
|
|
34685
|
+
successState(defaultState.data, defaultState.dataUpdatedAt)
|
|
34686
|
+
);
|
|
34925
34687
|
this.#initialState = defaultState;
|
|
34926
34688
|
}
|
|
34927
34689
|
}
|
|
@@ -35205,12 +34967,8 @@ var Query = class extends Removable {
|
|
|
35205
34967
|
case "success":
|
|
35206
34968
|
const newState = {
|
|
35207
34969
|
...state,
|
|
35208
|
-
data
|
|
34970
|
+
...successState(action.data, action.dataUpdatedAt),
|
|
35209
34971
|
dataUpdateCount: state.dataUpdateCount + 1,
|
|
35210
|
-
dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),
|
|
35211
|
-
error: null,
|
|
35212
|
-
isInvalidated: false,
|
|
35213
|
-
status: "success",
|
|
35214
34972
|
...!action.manual && {
|
|
35215
34973
|
fetchStatus: "idle",
|
|
35216
34974
|
fetchFailureCount: 0,
|
|
@@ -35263,6 +35021,15 @@ function fetchState(data, options) {
|
|
|
35263
35021
|
}
|
|
35264
35022
|
};
|
|
35265
35023
|
}
|
|
35024
|
+
function successState(data, dataUpdatedAt) {
|
|
35025
|
+
return {
|
|
35026
|
+
data,
|
|
35027
|
+
dataUpdatedAt: dataUpdatedAt ?? Date.now(),
|
|
35028
|
+
error: null,
|
|
35029
|
+
isInvalidated: false,
|
|
35030
|
+
status: "success"
|
|
35031
|
+
};
|
|
35032
|
+
}
|
|
35266
35033
|
function getDefaultState$1(options) {
|
|
35267
35034
|
const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
|
|
35268
35035
|
const hasData = data !== void 0;
|
|
@@ -37031,6 +36798,25 @@ const getAiAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
|
37031
36798
|
getDiscussions
|
|
37032
36799
|
};
|
|
37033
36800
|
};
|
|
36801
|
+
const getAuditAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
36802
|
+
const backendURL = intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;
|
|
36803
|
+
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
36804
|
+
const AUDIT_API_ROUTE = `${backendURL}/api/audit`;
|
|
36805
|
+
const createAudit = async (audit, otherOptions = {}) => await fetcher(`${AUDIT_API_ROUTE}`, authAPIOptions, otherOptions, {
|
|
36806
|
+
method: "POST",
|
|
36807
|
+
body: audit
|
|
36808
|
+
});
|
|
36809
|
+
const getAudits = async (params, otherOptions = {}) => await fetcher(AUDIT_API_ROUTE, authAPIOptions, otherOptions, {
|
|
36810
|
+
cache: "no-store",
|
|
36811
|
+
params
|
|
36812
|
+
});
|
|
36813
|
+
const getAuditById = async (auditId, otherOptions = {}) => await fetcher(`${AUDIT_API_ROUTE}/${String(auditId)}`, authAPIOptions, otherOptions, { cache: "no-store" });
|
|
36814
|
+
return {
|
|
36815
|
+
createAudit,
|
|
36816
|
+
getAudits,
|
|
36817
|
+
getAuditById
|
|
36818
|
+
};
|
|
36819
|
+
};
|
|
37034
36820
|
const getDictionaryAPI = (authAPIOptions = {}, intlayerConfig) => {
|
|
37035
36821
|
const backendURL = intlayerConfig?.editor?.backendURL ?? configuration?.editor?.backendURL;
|
|
37036
36822
|
if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
|
|
@@ -37314,7 +37100,8 @@ const getIntlayerAPI = (authAPIOptions = {}, intlayerConfig) => ({
|
|
|
37314
37100
|
tag: getTagAPI(authAPIOptions, intlayerConfig),
|
|
37315
37101
|
search: getSearchAPI(authAPIOptions, intlayerConfig),
|
|
37316
37102
|
editor: getEditorAPI(authAPIOptions, intlayerConfig),
|
|
37317
|
-
newsletter: getNewsletterAPI(authAPIOptions, intlayerConfig)
|
|
37103
|
+
newsletter: getNewsletterAPI(authAPIOptions, intlayerConfig),
|
|
37104
|
+
audit: getAuditAPI(authAPIOptions, intlayerConfig)
|
|
37318
37105
|
});
|
|
37319
37106
|
const useOAuth2 = (intlayerConfiguration) => {
|
|
37320
37107
|
const configuration$1 = useConfiguration();
|
|
@@ -42859,11 +42646,11 @@ var ItemIndicator = SelectItemIndicator;
|
|
|
42859
42646
|
var ScrollUpButton = SelectScrollUpButton$1;
|
|
42860
42647
|
var ScrollDownButton = SelectScrollDownButton$1;
|
|
42861
42648
|
var Separator = SelectSeparator$1;
|
|
42862
|
-
let SelectContentPosition = /* @__PURE__ */ function(SelectContentPosition$1) {
|
|
42649
|
+
let SelectContentPosition = /* @__PURE__ */ (function(SelectContentPosition$1) {
|
|
42863
42650
|
SelectContentPosition$1["POPPER"] = "popper";
|
|
42864
42651
|
SelectContentPosition$1["ITEM_ALIGNED"] = "item-aligned";
|
|
42865
42652
|
return SelectContentPosition$1;
|
|
42866
|
-
}({});
|
|
42653
|
+
})({});
|
|
42867
42654
|
const SelectRoot = Root2$1;
|
|
42868
42655
|
const SelectGroup = Group;
|
|
42869
42656
|
const SelectValue = Value;
|
|
@@ -43024,7 +42811,7 @@ const defaultChoices = [{
|
|
|
43024
42811
|
content: "On",
|
|
43025
42812
|
value: true
|
|
43026
42813
|
}];
|
|
43027
|
-
let SwitchSelectorColor = /* @__PURE__ */ function(SwitchSelectorColor$1) {
|
|
42814
|
+
let SwitchSelectorColor = /* @__PURE__ */ (function(SwitchSelectorColor$1) {
|
|
43028
42815
|
SwitchSelectorColor$1["PRIMARY"] = "primary";
|
|
43029
42816
|
SwitchSelectorColor$1["SECONDARY"] = "secondary";
|
|
43030
42817
|
SwitchSelectorColor$1["DESTRUCTIVE"] = "destructive";
|
|
@@ -43033,7 +42820,7 @@ let SwitchSelectorColor = /* @__PURE__ */ function(SwitchSelectorColor$1) {
|
|
|
43033
42820
|
SwitchSelectorColor$1["DARK"] = "dark";
|
|
43034
42821
|
SwitchSelectorColor$1["TEXT"] = "text";
|
|
43035
42822
|
return SwitchSelectorColor$1;
|
|
43036
|
-
}({});
|
|
42823
|
+
})({});
|
|
43037
42824
|
const switchSelectorVariant = cva("flex w-fit flex-row gap-2 rounded-full border-[1.5px] p-[1.5px]", {
|
|
43038
42825
|
variants: { color: {
|
|
43039
42826
|
[SwitchSelectorColor.PRIMARY]: "border-primary text-primary",
|
|
@@ -43046,12 +42833,12 @@ const switchSelectorVariant = cva("flex w-fit flex-row gap-2 rounded-full border
|
|
|
43046
42833
|
} },
|
|
43047
42834
|
defaultVariants: { color: SwitchSelectorColor.PRIMARY }
|
|
43048
42835
|
});
|
|
43049
|
-
let SwitchSelectorSize = /* @__PURE__ */ function(SwitchSelectorSize$1) {
|
|
42836
|
+
let SwitchSelectorSize = /* @__PURE__ */ (function(SwitchSelectorSize$1) {
|
|
43050
42837
|
SwitchSelectorSize$1["SM"] = "sm";
|
|
43051
42838
|
SwitchSelectorSize$1["MD"] = "md";
|
|
43052
42839
|
SwitchSelectorSize$1["LG"] = "lg";
|
|
43053
42840
|
return SwitchSelectorSize$1;
|
|
43054
|
-
}({});
|
|
42841
|
+
})({});
|
|
43055
42842
|
const choiceVariant = cva("z-1 w-full flex-1 cursor-pointer font-medium text-sm transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-opposite motion-reduce:transition-none", {
|
|
43056
42843
|
variants: { size: {
|
|
43057
42844
|
[SwitchSelectorSize.SM]: "px-2 py-1 text-xs",
|
|
@@ -45564,36 +45351,36 @@ function i(r2, e) {
|
|
|
45564
45351
|
return n2;
|
|
45565
45352
|
}
|
|
45566
45353
|
function a(o$1, a2, u2) {
|
|
45567
|
-
if (void 0 === u2 && (u2 = {}), function(r2) {
|
|
45354
|
+
if (void 0 === u2 && (u2 = {}), (function(r2) {
|
|
45568
45355
|
return "_def" in r2 && "object" == typeof r2._def && "typeName" in r2._def;
|
|
45569
|
-
}(o$1)) return function(n2, i2, c) {
|
|
45356
|
+
})(o$1)) return function(n2, i2, c) {
|
|
45570
45357
|
try {
|
|
45571
45358
|
return Promise.resolve(t(function() {
|
|
45572
45359
|
return Promise.resolve(o$1["sync" === u2.mode ? "parse" : "parseAsync"](n2, a2)).then(function(e) {
|
|
45573
45360
|
return c.shouldUseNativeValidation && o({}, c), { errors: {}, values: u2.raw ? Object.assign({}, n2) : e };
|
|
45574
45361
|
});
|
|
45575
45362
|
}, function(r2) {
|
|
45576
|
-
if (function(r3) {
|
|
45363
|
+
if ((function(r3) {
|
|
45577
45364
|
return Array.isArray(null == r3 ? void 0 : r3.issues);
|
|
45578
|
-
}(r2)) return { values: {}, errors: s$1(s(r2.errors, !c.shouldUseNativeValidation && "all" === c.criteriaMode), c) };
|
|
45365
|
+
})(r2)) return { values: {}, errors: s$1(s(r2.errors, !c.shouldUseNativeValidation && "all" === c.criteriaMode), c) };
|
|
45579
45366
|
throw r2;
|
|
45580
45367
|
}));
|
|
45581
45368
|
} catch (r2) {
|
|
45582
45369
|
return Promise.reject(r2);
|
|
45583
45370
|
}
|
|
45584
45371
|
};
|
|
45585
|
-
if (function(r2) {
|
|
45372
|
+
if ((function(r2) {
|
|
45586
45373
|
return "_zod" in r2 && "object" == typeof r2._zod;
|
|
45587
|
-
}(o$1)) return function(s2, c, f) {
|
|
45374
|
+
})(o$1)) return function(s2, c, f) {
|
|
45588
45375
|
try {
|
|
45589
45376
|
return Promise.resolve(t(function() {
|
|
45590
45377
|
return Promise.resolve(("sync" === u2.mode ? parse$2 : parseAsync$1)(o$1, s2, a2)).then(function(e) {
|
|
45591
45378
|
return f.shouldUseNativeValidation && o({}, f), { errors: {}, values: u2.raw ? Object.assign({}, s2) : e };
|
|
45592
45379
|
});
|
|
45593
45380
|
}, function(r2) {
|
|
45594
|
-
if (function(r3) {
|
|
45381
|
+
if ((function(r3) {
|
|
45595
45382
|
return r3 instanceof $ZodError;
|
|
45596
|
-
}(r2)) return { values: {}, errors: s$1(i(r2.issues, !f.shouldUseNativeValidation && "all" === f.criteriaMode), f) };
|
|
45383
|
+
})(r2)) return { values: {}, errors: s$1(i(r2.issues, !f.shouldUseNativeValidation && "all" === f.criteriaMode), f) };
|
|
45597
45384
|
throw r2;
|
|
45598
45385
|
}));
|
|
45599
45386
|
} catch (r2) {
|
|
@@ -45927,13 +45714,13 @@ const SaveForm = ({ dictionary, mode, className, onDelete, onSave, ...props }) =
|
|
|
45927
45714
|
} });
|
|
45928
45715
|
};
|
|
45929
45716
|
const handlePushDictionary = () => {
|
|
45930
|
-
|
|
45931
|
-
pushDictionaries({ dictionaries: [{
|
|
45717
|
+
const updatedDictionary = {
|
|
45932
45718
|
...dictionary,
|
|
45933
45719
|
...editedContent?.[dictionary.localId]
|
|
45934
|
-
}
|
|
45720
|
+
};
|
|
45721
|
+
pushDictionaries({ dictionaries: [updatedDictionary] }, { onSuccess: (res) => {
|
|
45935
45722
|
if (res) {
|
|
45936
|
-
setLocaleDictionary(
|
|
45723
|
+
setLocaleDictionary(updatedDictionary);
|
|
45937
45724
|
restoreEditedContent(dictionary.localId);
|
|
45938
45725
|
onSave?.();
|
|
45939
45726
|
}
|
|
@@ -46431,10 +46218,10 @@ const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
46431
46218
|
};
|
|
46432
46219
|
inst.clone = (def2, params) => clone(inst, def2, params);
|
|
46433
46220
|
inst.brand = () => inst;
|
|
46434
|
-
inst.register = (reg, meta) => {
|
|
46221
|
+
inst.register = ((reg, meta) => {
|
|
46435
46222
|
reg.add(inst, meta);
|
|
46436
46223
|
return inst;
|
|
46437
|
-
};
|
|
46224
|
+
});
|
|
46438
46225
|
inst.parse = (data, params) => parse$1(inst, data, params, { callee: inst.parse });
|
|
46439
46226
|
inst.safeParse = (data, params) => safeParse(inst, data, params);
|
|
46440
46227
|
inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
|
|
@@ -46918,11 +46705,11 @@ const Trigger = ({ children, identifier, className, label, ...props }) => /* @__
|
|
|
46918
46705
|
...props,
|
|
46919
46706
|
children
|
|
46920
46707
|
});
|
|
46921
|
-
let DropDownAlign = /* @__PURE__ */ function(DropDownAlign$1) {
|
|
46708
|
+
let DropDownAlign = /* @__PURE__ */ (function(DropDownAlign$1) {
|
|
46922
46709
|
DropDownAlign$1["START"] = "start";
|
|
46923
46710
|
DropDownAlign$1["END"] = "end";
|
|
46924
46711
|
return DropDownAlign$1;
|
|
46925
|
-
}({});
|
|
46712
|
+
})({});
|
|
46926
46713
|
const Panel = ({ children, isHidden: isHidden2 = void 0, isOverable = false, isFocusable = false, align = DropDownAlign.START, identifier, className, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
46927
46714
|
className: cn$1("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full", align === DropDownAlign.START && "left-0", align === DropDownAlign.END && "right-0", className),
|
|
46928
46715
|
"aria-hidden": isHidden2,
|
|
@@ -47518,7 +47305,7 @@ function createPatternAlphabet(pattern) {
|
|
|
47518
47305
|
}
|
|
47519
47306
|
return mask;
|
|
47520
47307
|
}
|
|
47521
|
-
const stripDiacritics = String.prototype.normalize ? (str) => str.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "") : (str) => str;
|
|
47308
|
+
const stripDiacritics = String.prototype.normalize ? ((str) => str.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, "")) : ((str) => str);
|
|
47522
47309
|
class BitapSearch {
|
|
47523
47310
|
constructor(pattern, {
|
|
47524
47311
|
location = Config.location,
|
|
@@ -48503,34 +48290,6 @@ const ExpandCollapse = ({ isRollable = true, minHeight = DEFAULT_MIN_HEIGHT, chi
|
|
|
48503
48290
|
})]
|
|
48504
48291
|
});
|
|
48505
48292
|
};
|
|
48506
|
-
let PopoverXAlign = /* @__PURE__ */ function(PopoverXAlign$1) {
|
|
48507
|
-
PopoverXAlign$1["START"] = "start";
|
|
48508
|
-
PopoverXAlign$1["END"] = "end";
|
|
48509
|
-
return PopoverXAlign$1;
|
|
48510
|
-
}({});
|
|
48511
|
-
let PopoverYAlign = /* @__PURE__ */ function(PopoverYAlign$1) {
|
|
48512
|
-
PopoverYAlign$1["BELOW"] = "bellow";
|
|
48513
|
-
PopoverYAlign$1["ABOVE"] = "above";
|
|
48514
|
-
return PopoverYAlign$1;
|
|
48515
|
-
}({});
|
|
48516
|
-
const Popover = ({ children, className, identifier, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
48517
|
-
className: cn$1("group/popover relative flex cursor-pointer", className),
|
|
48518
|
-
id: `unrollable-panel-button-${identifier}`,
|
|
48519
|
-
"aria-haspopup": true,
|
|
48520
|
-
...props,
|
|
48521
|
-
children
|
|
48522
|
-
});
|
|
48523
|
-
const Detail = ({ children, isHidden: isHidden2 = void 0, isOverable = true, isFocusable = false, xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, identifier, className, displayArrow = true, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(Container, {
|
|
48524
|
-
transparency: "sm",
|
|
48525
|
-
role: "group",
|
|
48526
|
-
"aria-hidden": isHidden2,
|
|
48527
|
-
"aria-labelledby": `unrollable-panel-button-${identifier}`,
|
|
48528
|
-
id: `unrollable-panel-${identifier}`,
|
|
48529
|
-
className: cn$1("absolute z-[1000] min-w-full rounded-md ring-1 ring-neutral", xAlign === "start" && "left-0", xAlign === "end" && "right-0", yAlign === "bellow" && "top-[calc(100%+1rem)]", yAlign === "above" && "bottom-[calc(100%+1rem)]", displayArrow && 'before:absolute before:z-[999] before:h-0 before:w-0 before:content-[""]', displayArrow && xAlign === "start" && "before:left-2", displayArrow && xAlign === "end" && "before:right-2", displayArrow && yAlign === "bellow" && "before:-top-[10px] before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral before:border-l-[10px] before:border-l-transparent", displayArrow && yAlign === "above" && "before:-bottom-[10px] before:border-t-[10px] before:border-t-neutral before:border-r-[10px] before:border-r-transparent before:border-l-[10px] before:border-l-transparent", "overflow-x-visible opacity-0 transition-all duration-400 ease-in-out", isHidden2 !== false ? "invisible" : "visible opacity-100 delay-800", isOverable && "group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800", isFocusable && "group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800", className),
|
|
48530
|
-
...props,
|
|
48531
|
-
children
|
|
48532
|
-
});
|
|
48533
|
-
Popover.Detail = Detail;
|
|
48534
48293
|
const scriptRel = "modulepreload";
|
|
48535
48294
|
const assetsURL = function(dep) {
|
|
48536
48295
|
return "/" + dep;
|
|
@@ -48595,7 +48354,7 @@ const CodeDefault = ({ children }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div
|
|
|
48595
48354
|
}, `line-${index2}-${line.slice(0, 10)}`)) })
|
|
48596
48355
|
})
|
|
48597
48356
|
});
|
|
48598
|
-
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
48357
|
+
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BD9incJt.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
|
|
48599
48358
|
const CodeBlock = ({ className, onChange, isEditable, children, lang, isDarkMode, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
48600
48359
|
className: cn$1("flex w-full min-w-0 max-w-full overflow-x-auto", className),
|
|
48601
48360
|
...props,
|
|
@@ -48608,6 +48367,129 @@ const CodeBlock = ({ className, onChange, isEditable, children, lang, isDarkMode
|
|
|
48608
48367
|
})
|
|
48609
48368
|
})
|
|
48610
48369
|
});
|
|
48370
|
+
let PopoverXAlign = /* @__PURE__ */ (function(PopoverXAlign$1) {
|
|
48371
|
+
PopoverXAlign$1["START"] = "start";
|
|
48372
|
+
PopoverXAlign$1["END"] = "end";
|
|
48373
|
+
return PopoverXAlign$1;
|
|
48374
|
+
})({});
|
|
48375
|
+
let PopoverYAlign = /* @__PURE__ */ (function(PopoverYAlign$1) {
|
|
48376
|
+
PopoverYAlign$1["BELOW"] = "bellow";
|
|
48377
|
+
PopoverYAlign$1["ABOVE"] = "above";
|
|
48378
|
+
return PopoverYAlign$1;
|
|
48379
|
+
})({});
|
|
48380
|
+
const PopoverStatic = ({ children, className, identifier, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
48381
|
+
className: cn$1("group/popover relative flex cursor-pointer", className),
|
|
48382
|
+
id: `unrollable-panel-button-${identifier}`,
|
|
48383
|
+
"aria-haspopup": true,
|
|
48384
|
+
...props,
|
|
48385
|
+
children
|
|
48386
|
+
});
|
|
48387
|
+
const Detail = reactExports.forwardRef(({ children, isHidden: isHidden2 = void 0, isOverable = true, isFocusable = false, xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, identifier, className, displayArrow = true, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(Container, {
|
|
48388
|
+
ref,
|
|
48389
|
+
transparency: "sm",
|
|
48390
|
+
role: "group",
|
|
48391
|
+
"aria-hidden": isHidden2,
|
|
48392
|
+
"aria-labelledby": `unrollable-panel-button-${identifier}`,
|
|
48393
|
+
id: `unrollable-panel-${identifier}`,
|
|
48394
|
+
className: cn$1("absolute z-[1000] min-w-full rounded-md ring-1 ring-neutral", xAlign === "start" && "left-0", xAlign === "end" && "right-0", yAlign === "bellow" && "top-[calc(100%+1rem)]", yAlign === "above" && "bottom-[calc(100%+1rem)]", displayArrow && 'before:absolute before:z-[999] before:h-0 before:w-0 before:content-[""]', displayArrow && xAlign === "start" && "before:left-2", displayArrow && xAlign === "end" && "before:right-2", displayArrow && yAlign === "bellow" && "before:-top-[10px] before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral before:border-l-[10px] before:border-l-transparent", displayArrow && yAlign === "above" && "before:-bottom-[10px] before:border-t-[10px] before:border-t-neutral before:border-r-[10px] before:border-r-transparent before:border-l-[10px] before:border-l-transparent", "overflow-x-visible opacity-0 transition-all duration-400 ease-in-out", isHidden2 !== false ? "invisible" : "visible opacity-100 delay-800", isOverable && "group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800", isFocusable && "group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800", className),
|
|
48395
|
+
...props,
|
|
48396
|
+
children
|
|
48397
|
+
}));
|
|
48398
|
+
Detail.displayName = "Popover.Detail";
|
|
48399
|
+
PopoverStatic.Detail = Detail;
|
|
48400
|
+
const PopoverComponent = (props) => {
|
|
48401
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PopoverStatic, { ...props });
|
|
48402
|
+
};
|
|
48403
|
+
const Detail$1 = ({ xAlign = PopoverXAlign.START, yAlign = PopoverYAlign.BELOW, ...props }) => {
|
|
48404
|
+
const popoverRef = reactExports.useRef(null);
|
|
48405
|
+
const [computedXAlign, setComputedXAlign] = reactExports.useState(xAlign);
|
|
48406
|
+
const [computedYAlign, setComputedYAlign] = reactExports.useState(yAlign);
|
|
48407
|
+
const [maxWidth, setMaxWidth] = reactExports.useState(void 0);
|
|
48408
|
+
reactExports.useEffect(() => {
|
|
48409
|
+
const adjustPosition = () => {
|
|
48410
|
+
if (!popoverRef.current) return;
|
|
48411
|
+
const popoverElement = popoverRef.current;
|
|
48412
|
+
const triggerElement$1 = document.getElementById(`unrollable-panel-button-${props.identifier}`);
|
|
48413
|
+
if (!triggerElement$1) return;
|
|
48414
|
+
const triggerRect = triggerElement$1.getBoundingClientRect();
|
|
48415
|
+
const viewportWidth = window.innerWidth;
|
|
48416
|
+
const viewportHeight = window.innerHeight;
|
|
48417
|
+
const gap = 16;
|
|
48418
|
+
const padding = 16;
|
|
48419
|
+
const maxWidthFromLeft = viewportWidth - triggerRect.left - padding;
|
|
48420
|
+
const maxWidthFromRight = triggerRect.right - padding;
|
|
48421
|
+
setMaxWidth(Math.max(maxWidthFromLeft, maxWidthFromRight));
|
|
48422
|
+
const wasInvisible = popoverElement.classList.contains("invisible");
|
|
48423
|
+
if (wasInvisible) {
|
|
48424
|
+
popoverElement.style.visibility = "hidden";
|
|
48425
|
+
popoverElement.classList.remove("invisible");
|
|
48426
|
+
}
|
|
48427
|
+
requestAnimationFrame(() => {
|
|
48428
|
+
const popoverRect = popoverElement.getBoundingClientRect();
|
|
48429
|
+
if (wasInvisible) {
|
|
48430
|
+
popoverElement.style.visibility = "";
|
|
48431
|
+
popoverElement.classList.add("invisible");
|
|
48432
|
+
}
|
|
48433
|
+
let newYAlign = yAlign;
|
|
48434
|
+
const spaceBelow = viewportHeight - triggerRect.bottom - gap;
|
|
48435
|
+
const spaceAbove = triggerRect.top - gap;
|
|
48436
|
+
if (yAlign === PopoverYAlign.BELOW && spaceBelow < popoverRect.height) {
|
|
48437
|
+
if (spaceAbove >= popoverRect.height) newYAlign = PopoverYAlign.ABOVE;
|
|
48438
|
+
} else if (yAlign === PopoverYAlign.ABOVE && spaceAbove < popoverRect.height) {
|
|
48439
|
+
if (spaceBelow >= popoverRect.height) newYAlign = PopoverYAlign.BELOW;
|
|
48440
|
+
}
|
|
48441
|
+
let newXAlign = xAlign;
|
|
48442
|
+
const spaceRight = viewportWidth - triggerRect.left - padding;
|
|
48443
|
+
const spaceLeft = triggerRect.right - padding;
|
|
48444
|
+
if (xAlign === PopoverXAlign.START && spaceRight < popoverRect.width) {
|
|
48445
|
+
if (spaceLeft >= popoverRect.width) newXAlign = PopoverXAlign.END;
|
|
48446
|
+
} else if (xAlign === PopoverXAlign.END && spaceLeft < popoverRect.width) {
|
|
48447
|
+
if (spaceRight >= popoverRect.width) newXAlign = PopoverXAlign.START;
|
|
48448
|
+
}
|
|
48449
|
+
setComputedYAlign(newYAlign);
|
|
48450
|
+
setComputedXAlign(newXAlign);
|
|
48451
|
+
});
|
|
48452
|
+
};
|
|
48453
|
+
const timeoutId = setTimeout(adjustPosition, 0);
|
|
48454
|
+
const triggerElement = document.getElementById(`unrollable-panel-button-${props.identifier}`);
|
|
48455
|
+
if (triggerElement) {
|
|
48456
|
+
triggerElement.addEventListener("mouseenter", adjustPosition);
|
|
48457
|
+
triggerElement.addEventListener("focusin", adjustPosition);
|
|
48458
|
+
}
|
|
48459
|
+
const resizeObserver = new ResizeObserver(() => {
|
|
48460
|
+
adjustPosition();
|
|
48461
|
+
});
|
|
48462
|
+
if (popoverRef.current) resizeObserver.observe(popoverRef.current);
|
|
48463
|
+
window.addEventListener("resize", adjustPosition);
|
|
48464
|
+
window.addEventListener("scroll", adjustPosition, true);
|
|
48465
|
+
return () => {
|
|
48466
|
+
clearTimeout(timeoutId);
|
|
48467
|
+
if (triggerElement) {
|
|
48468
|
+
triggerElement.removeEventListener("mouseenter", adjustPosition);
|
|
48469
|
+
triggerElement.removeEventListener("focusin", adjustPosition);
|
|
48470
|
+
}
|
|
48471
|
+
resizeObserver.disconnect();
|
|
48472
|
+
window.removeEventListener("resize", adjustPosition);
|
|
48473
|
+
window.removeEventListener("scroll", adjustPosition, true);
|
|
48474
|
+
};
|
|
48475
|
+
}, [
|
|
48476
|
+
props.identifier,
|
|
48477
|
+
xAlign,
|
|
48478
|
+
yAlign
|
|
48479
|
+
]);
|
|
48480
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Detail, {
|
|
48481
|
+
...props,
|
|
48482
|
+
xAlign: computedXAlign,
|
|
48483
|
+
yAlign: computedYAlign,
|
|
48484
|
+
ref: popoverRef,
|
|
48485
|
+
style: {
|
|
48486
|
+
...props.style,
|
|
48487
|
+
maxWidth: maxWidth ? `${maxWidth}px` : void 0
|
|
48488
|
+
}
|
|
48489
|
+
});
|
|
48490
|
+
};
|
|
48491
|
+
const Popover = PopoverComponent;
|
|
48492
|
+
Popover.Detail = Detail$1;
|
|
48611
48493
|
const CodeContext = reactExports.createContext({
|
|
48612
48494
|
packageManager: "npm",
|
|
48613
48495
|
setPackageManager: () => {
|
|
@@ -48780,7 +48662,7 @@ const Code = ({ children, language, isDarkMode, showHeader = true, showLineNumbe
|
|
|
48780
48662
|
})
|
|
48781
48663
|
});
|
|
48782
48664
|
};
|
|
48783
|
-
let TabSelectorColor = /* @__PURE__ */ function(TabSelectorColor$1) {
|
|
48665
|
+
let TabSelectorColor = /* @__PURE__ */ (function(TabSelectorColor$1) {
|
|
48784
48666
|
TabSelectorColor$1["PRIMARY"] = "primary";
|
|
48785
48667
|
TabSelectorColor$1["SECONDARY"] = "secondary";
|
|
48786
48668
|
TabSelectorColor$1["DESTRUCTIVE"] = "destructive";
|
|
@@ -48789,7 +48671,7 @@ let TabSelectorColor = /* @__PURE__ */ function(TabSelectorColor$1) {
|
|
|
48789
48671
|
TabSelectorColor$1["DARK"] = "dark";
|
|
48790
48672
|
TabSelectorColor$1["TEXT"] = "text";
|
|
48791
48673
|
return TabSelectorColor$1;
|
|
48792
|
-
}({});
|
|
48674
|
+
})({});
|
|
48793
48675
|
const tabSelectorVariant = cva("relative flex size-full flex-row items-center gap-2", {
|
|
48794
48676
|
variants: { color: {
|
|
48795
48677
|
primary: "border-primary text-primary",
|
|
@@ -48966,8 +48848,8 @@ const useHorizontalSwipe = (config2) => {
|
|
|
48966
48848
|
};
|
|
48967
48849
|
const TabContext$1 = reactExports.createContext({
|
|
48968
48850
|
tabsValues: {},
|
|
48969
|
-
setTabsValues: () => {
|
|
48970
|
-
}
|
|
48851
|
+
setTabsValues: (() => {
|
|
48852
|
+
})
|
|
48971
48853
|
});
|
|
48972
48854
|
const useTabContext = () => reactExports.useContext(TabContext$1);
|
|
48973
48855
|
const TabProvider = ({ children }) => {
|
|
@@ -51169,11 +51051,11 @@ const ObjectTextEditor = ({ section, keyPath, dictionary, renderSection }) => /*
|
|
|
51169
51051
|
})
|
|
51170
51052
|
})
|
|
51171
51053
|
}) });
|
|
51172
|
-
var MarkdownViewMode = /* @__PURE__ */ function(MarkdownViewMode$1) {
|
|
51054
|
+
var MarkdownViewMode = /* @__PURE__ */ (function(MarkdownViewMode$1) {
|
|
51173
51055
|
MarkdownViewMode$1[MarkdownViewMode$1["Edit"] = 0] = "Edit";
|
|
51174
51056
|
MarkdownViewMode$1[MarkdownViewMode$1["Preview"] = 1] = "Preview";
|
|
51175
51057
|
return MarkdownViewMode$1;
|
|
51176
|
-
}(MarkdownViewMode || {});
|
|
51058
|
+
})(MarkdownViewMode || {});
|
|
51177
51059
|
const MarkdownTextEditor = ({ section, keyPath, dictionary, isDarkMode }) => {
|
|
51178
51060
|
const [mode, setMode] = reactExports.useState(MarkdownViewMode.Edit);
|
|
51179
51061
|
const toggleContent$1 = [{
|
|
@@ -52745,13 +52627,13 @@ const StructureEditor = ({ dictionary }) => {
|
|
|
52745
52627
|
dictionaryLocalId: localId
|
|
52746
52628
|
});
|
|
52747
52629
|
};
|
|
52748
|
-
var EditorViewType = /* @__PURE__ */ function(EditorViewType$1) {
|
|
52630
|
+
var EditorViewType = /* @__PURE__ */ (function(EditorViewType$1) {
|
|
52749
52631
|
EditorViewType$1[EditorViewType$1["DetailsEditor"] = 0] = "DetailsEditor";
|
|
52750
52632
|
EditorViewType$1[EditorViewType$1["ContentEditor"] = 1] = "ContentEditor";
|
|
52751
52633
|
EditorViewType$1[EditorViewType$1["StructureEditor"] = 2] = "StructureEditor";
|
|
52752
52634
|
EditorViewType$1[EditorViewType$1["JSONEditor"] = 3] = "JSONEditor";
|
|
52753
52635
|
return EditorViewType$1;
|
|
52754
|
-
}(EditorViewType || {});
|
|
52636
|
+
})(EditorViewType || {});
|
|
52755
52637
|
const DictionaryFieldEditor = ({ dictionary, onClickDictionaryList, isDarkMode, mode, onDelete, onSave }) => {
|
|
52756
52638
|
const config2 = useConfiguration();
|
|
52757
52639
|
const [editorView, setEditorView] = reactExports.useState(EditorViewType.ContentEditor);
|
|
@@ -53032,7 +52914,7 @@ const RightDrawer = ({ title, identifier, children, header, closeOnOutsideClick
|
|
|
53032
52914
|
})
|
|
53033
52915
|
});
|
|
53034
52916
|
};
|
|
53035
|
-
let TagRoundedSize = /* @__PURE__ */ function(TagRoundedSize$1) {
|
|
52917
|
+
let TagRoundedSize = /* @__PURE__ */ (function(TagRoundedSize$1) {
|
|
53036
52918
|
TagRoundedSize$1["NONE"] = "none";
|
|
53037
52919
|
TagRoundedSize$1["SM"] = "sm";
|
|
53038
52920
|
TagRoundedSize$1["MD"] = "md";
|
|
@@ -53042,8 +52924,8 @@ let TagRoundedSize = /* @__PURE__ */ function(TagRoundedSize$1) {
|
|
|
53042
52924
|
TagRoundedSize$1["XXXL"] = "3xl";
|
|
53043
52925
|
TagRoundedSize$1["FULL"] = "full";
|
|
53044
52926
|
return TagRoundedSize$1;
|
|
53045
|
-
}({});
|
|
53046
|
-
let TagColor = /* @__PURE__ */ function(TagColor$1) {
|
|
52927
|
+
})({});
|
|
52928
|
+
let TagColor = /* @__PURE__ */ (function(TagColor$1) {
|
|
53047
52929
|
TagColor$1["SUCCESS"] = "success";
|
|
53048
52930
|
TagColor$1["ERROR"] = "error";
|
|
53049
52931
|
TagColor$1["WARNING"] = "warning";
|
|
@@ -53061,25 +52943,25 @@ let TagColor = /* @__PURE__ */ function(TagColor$1) {
|
|
|
53061
52943
|
TagColor$1["BLACK"] = "black";
|
|
53062
52944
|
TagColor$1["WHITE"] = "white";
|
|
53063
52945
|
return TagColor$1;
|
|
53064
|
-
}({});
|
|
53065
|
-
let TagSize = /* @__PURE__ */ function(TagSize$1) {
|
|
52946
|
+
})({});
|
|
52947
|
+
let TagSize = /* @__PURE__ */ (function(TagSize$1) {
|
|
53066
52948
|
TagSize$1["XS"] = "xs";
|
|
53067
52949
|
TagSize$1["SM"] = "sm";
|
|
53068
52950
|
TagSize$1["MD"] = "md";
|
|
53069
52951
|
TagSize$1["LG"] = "lg";
|
|
53070
52952
|
TagSize$1["XL"] = "xl";
|
|
53071
52953
|
return TagSize$1;
|
|
53072
|
-
}({});
|
|
53073
|
-
let TagBorder = /* @__PURE__ */ function(TagBorder$1) {
|
|
52954
|
+
})({});
|
|
52955
|
+
let TagBorder = /* @__PURE__ */ (function(TagBorder$1) {
|
|
53074
52956
|
TagBorder$1["NONE"] = "none";
|
|
53075
52957
|
TagBorder$1["WITH"] = "with";
|
|
53076
52958
|
return TagBorder$1;
|
|
53077
|
-
}({});
|
|
53078
|
-
let TagBackground = /* @__PURE__ */ function(TagBackground$1) {
|
|
52959
|
+
})({});
|
|
52960
|
+
let TagBackground = /* @__PURE__ */ (function(TagBackground$1) {
|
|
53079
52961
|
TagBackground$1["NONE"] = "none";
|
|
53080
52962
|
TagBackground$1["WITH"] = "with";
|
|
53081
52963
|
return TagBackground$1;
|
|
53082
|
-
}({});
|
|
52964
|
+
})({});
|
|
53083
52965
|
const containerVariants = cva("w-fit backdrop-blur", {
|
|
53084
52966
|
variants: {
|
|
53085
52967
|
roundedSize: {
|
|
@@ -53115,7 +52997,7 @@ const containerVariants = cva("w-fit backdrop-blur", {
|
|
|
53115
52997
|
[`${TagSize.SM}`]: "border-[1.5px] px-2 py-0.5 text-sm",
|
|
53116
52998
|
[`${TagSize.MD}`]: "border-2 px-2 py-1 text-base",
|
|
53117
52999
|
[`${TagSize.LG}`]: "border-2 px-3 py-2 text-lg",
|
|
53118
|
-
[`${TagSize.XL}`]: "border-2 px-
|
|
53000
|
+
[`${TagSize.XL}`]: "border-2 px-3 py-2 text-xl"
|
|
53119
53001
|
},
|
|
53120
53002
|
border: {
|
|
53121
53003
|
[`${TagBorder.NONE}`]: "border-none",
|
|
@@ -53809,13 +53691,13 @@ const ToastDescription = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime
|
|
|
53809
53691
|
});
|
|
53810
53692
|
const TOAST_LIMIT = 1;
|
|
53811
53693
|
const TOAST_REMOVE_DELAY = 900 * 1e3;
|
|
53812
|
-
var ActionTypes = /* @__PURE__ */ function(ActionTypes$1) {
|
|
53694
|
+
var ActionTypes = /* @__PURE__ */ (function(ActionTypes$1) {
|
|
53813
53695
|
ActionTypes$1["ADD_TOAST"] = "ADD_TOAST";
|
|
53814
53696
|
ActionTypes$1["UPDATE_TOAST"] = "UPDATE_TOAST";
|
|
53815
53697
|
ActionTypes$1["DISMISS_TOAST"] = "DISMISS_TOAST";
|
|
53816
53698
|
ActionTypes$1["REMOVE_TOAST"] = "REMOVE_TOAST";
|
|
53817
53699
|
return ActionTypes$1;
|
|
53818
|
-
}(ActionTypes || {});
|
|
53700
|
+
})(ActionTypes || {});
|
|
53819
53701
|
let count = 0;
|
|
53820
53702
|
const genId = () => {
|
|
53821
53703
|
count = (count + 1) % Number.MAX_SAFE_INTEGER;
|