@layers-app/shared 0.2.8 → 0.3.1
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/api/giphy/slice.d.ts +1 -1
- package/dist/api/giphy/slice.d.ts.map +1 -1
- package/dist/api/unsplash/slice.d.ts +1 -1
- package/dist/api/unsplash/slice.d.ts.map +1 -1
- package/dist/assets/default-workspace-avatar.jpg.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +2 -3
- package/dist/assets/layers-logo-full.svg2.js +5 -0
- package/dist/assets/layers-logo-icon.svg.js +2 -3
- package/dist/assets/layers-logo-icon.svg2.js +5 -0
- package/dist/assets/projects/figureA.svg.js +4 -0
- package/dist/assets/projects/figureB.svg.js +4 -0
- package/dist/assets/qwebchannel.d.ts +15 -0
- package/dist/assets/qwebchannel.d.ts.map +1 -0
- package/dist/assets/taskPriorities/high.svg.js +5 -0
- package/dist/assets/taskPriorities/low.svg.js +5 -0
- package/dist/assets/taskPriorities/none.svg.js +5 -0
- package/dist/assets/taskPriorities/normal.svg.js +5 -0
- package/dist/assets/taskPriorities/urgent.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
- package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
- package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +37 -36
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +120 -120
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
- package/dist/components/AppContainer/types.d.ts +3 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +115 -111
- package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/index.js +47 -46
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +8 -7
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
- package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +47 -45
- package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
- package/dist/components/EntityIcon.d.ts +3 -3
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +59 -35
- package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +34 -34
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +144 -152
- package/dist/components/FilePicker/FilePicker.module.css.js +10 -10
- package/dist/components/FilePicker/FilePickerGallery.js +13 -13
- package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +46 -48
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +16 -16
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +49 -51
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +44 -42
- package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
- package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/giphyApi.js +11 -14
- package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
- package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/unsplashApi.js +14 -19
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
- package/dist/components/FormViewer/helpers/conditions.d.ts +84 -84
- package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/steps.js +22 -21
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts +357 -357
- package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
- package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
- package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
- package/dist/components/Logotype.d.ts +6 -4
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +62 -30
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/OnBoarding/OnBoardingPage.js +35 -35
- package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
- package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
- package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
- package/dist/components/TreeIndent/TreeIndent.js +15 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
- package/dist/components/TreeIndent/index.d.ts +2 -0
- package/dist/components/TreeIndent/index.d.ts.map +1 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +6 -6
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/config/brand.d.ts +49 -0
- package/dist/config/brand.d.ts.map +1 -0
- package/dist/config/brand.js +77 -0
- package/dist/config/envConfig.d.ts +110 -0
- package/dist/config/envConfig.d.ts.map +1 -0
- package/dist/config/envConfig.js +48 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +19 -7
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +34 -29
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +3 -3
- package/dist/helpers/hotjar.d.ts.map +1 -1
- package/dist/helpers/hotjar.js +11 -7
- package/dist/helpers/platform.js +4 -4
- package/dist/helpers/showNotifications.d.ts +3 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +79 -44
- package/dist/hooks/useDateFnsLocale.d.ts +2 -0
- package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
- package/dist/hooks/useDateFnsLocale.js +9 -8
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -19
- package/dist/hooks/useDisableWindowScroll.js +3 -3
- package/dist/hooks/useFormatDistance.d.ts.map +1 -1
- package/dist/hooks/useFormatDistance.js +6 -6
- package/dist/hooks/useNumberQueryParam.d.ts +1 -1
- package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +505 -487
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +5 -5
- package/dist/lang/locales/ui_ru.json.js +5 -5
- package/dist/utils/formatStorage.d.ts +9 -0
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +14 -10
- package/package.json +3 -6
- package/dist/assets/svg/default_icon.svg.js +0 -4
- package/dist/assets/svg/layers-logo-full.svg.js +0 -4
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Avatar as
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
import { DEFAULT_VALUES as
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { Avatar as d, Text as y } from "@mantine/core";
|
|
4
|
+
import { omit as x, isString as S, isNil as j } from "lodash-es";
|
|
5
|
+
import L from "query-string";
|
|
6
|
+
import { DEFAULT_VALUES as w } from "../../constants.js";
|
|
7
7
|
import { customIcons as v } from "../EmojiPicker/custom-icons/customIcons.js";
|
|
8
8
|
var I = /* @__PURE__ */ ((r) => (r.OUTLINED = "o", r.FILLED = "f", r))(I || {}), c;
|
|
9
9
|
((r) => {
|
|
10
10
|
r.parse = (t) => {
|
|
11
|
-
if (!
|
|
11
|
+
if (!S(t) || t.trim() === "") return null;
|
|
12
12
|
const e = new URLSearchParams(t);
|
|
13
13
|
return {
|
|
14
14
|
icon: e.get("i") || "",
|
|
@@ -17,7 +17,7 @@ var I = /* @__PURE__ */ ((r) => (r.OUTLINED = "o", r.FILLED = "f", r))(I || {}),
|
|
|
17
17
|
type: e.get("t") || "o"
|
|
18
18
|
/* OUTLINED */
|
|
19
19
|
};
|
|
20
|
-
}, r.stringify = (t) =>
|
|
20
|
+
}, r.stringify = (t) => j(t) ? "" : L.stringify({
|
|
21
21
|
i: t.icon || void 0,
|
|
22
22
|
c: t.color || void 0,
|
|
23
23
|
e: t.emoji || void 0,
|
|
@@ -25,7 +25,7 @@ var I = /* @__PURE__ */ ((r) => (r.OUTLINED = "o", r.FILLED = "f", r))(I || {}),
|
|
|
25
25
|
/* OUTLINED */
|
|
26
26
|
});
|
|
27
27
|
})(c || (c = {}));
|
|
28
|
-
const O =
|
|
28
|
+
const O = u(
|
|
29
29
|
({
|
|
30
30
|
icon: r,
|
|
31
31
|
name: t,
|
|
@@ -39,20 +39,20 @@ const O = d(
|
|
|
39
39
|
}, p) => {
|
|
40
40
|
const m = c.parse(r);
|
|
41
41
|
if (!m && !e) return null;
|
|
42
|
-
const
|
|
42
|
+
const h = m?.color || (f ? "initials" : g) || w.COLORS[0];
|
|
43
43
|
return /* @__PURE__ */ o(
|
|
44
|
-
|
|
44
|
+
d,
|
|
45
45
|
{
|
|
46
46
|
ref: p,
|
|
47
47
|
variant: "transparent",
|
|
48
|
-
color:
|
|
48
|
+
color: h,
|
|
49
49
|
name: f,
|
|
50
50
|
size: i || 20,
|
|
51
51
|
style: {
|
|
52
52
|
overflow: s.radius ? "hidden" : "visible",
|
|
53
53
|
...s.style
|
|
54
54
|
},
|
|
55
|
-
...
|
|
55
|
+
...x(s, ["style"]),
|
|
56
56
|
children: /* @__PURE__ */ o(
|
|
57
57
|
y,
|
|
58
58
|
{
|
|
@@ -73,7 +73,7 @@ const O = d(
|
|
|
73
73
|
}
|
|
74
74
|
), A = (r, t, e, i) => {
|
|
75
75
|
const n = v?.[r?.icon || ""];
|
|
76
|
-
return n ? /* @__PURE__ */ o(n, { width: "1em", height: "1em" }) : r?.icon ? /* @__PURE__ */ o("svg", { width: "1em", height: "1em", children: /* @__PURE__ */ o(
|
|
76
|
+
return n ? /* @__PURE__ */ o(n, { width: "1em", height: "1em", style: { flexShrink: 0 } }) : r?.icon ? /* @__PURE__ */ o("svg", { width: "1em", height: "1em", style: { flexShrink: 0 }, children: /* @__PURE__ */ o(
|
|
77
77
|
"use",
|
|
78
78
|
{
|
|
79
79
|
xlinkHref: `/tabler-sprite${r.type === "f" ? "-filled" : ""}.svg#tabler-${r.type === "f" ? "filled-" : ""}${r.icon}`
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export declare const TreeIndentContainer: import("react").MemoExoticComponent<({ children }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
5
|
+
export declare const TreeIndentItem: import("react").MemoExoticComponent<({ depth, children }: {
|
|
6
|
+
depth?: number;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
9
|
+
//# sourceMappingURL=TreeIndent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeIndent.d.ts","sourceRoot":"","sources":["../../../src/components/TreeIndent/TreeIndent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,OAAO,CAAC;AAI7C,eAAO,MAAM,mBAAmB,qDACf;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,6CAGvC,CAAC;AAEF,eAAO,MAAM,cAAc,4DACC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,6CAUlE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { memo as m } from "react";
|
|
3
|
+
import r from "./TreeIndent.module.css.js";
|
|
4
|
+
const l = m(
|
|
5
|
+
({ children: e }) => /* @__PURE__ */ t("div", { className: r.container, children: e })
|
|
6
|
+
), p = m(
|
|
7
|
+
({ depth: e = 0, children: n }) => /* @__PURE__ */ s("div", { className: r.item, children: [
|
|
8
|
+
Array.from({ length: e }).map((a, o) => /* @__PURE__ */ t("div", { className: r.depthBox }, o)),
|
|
9
|
+
n
|
|
10
|
+
] })
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
l as TreeIndentContainer,
|
|
14
|
+
p as TreeIndentItem
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TreeIndent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as e } from "react";
|
|
3
3
|
import { Avatar as i } from "@mantine/core";
|
|
4
|
-
import m from "../../assets/
|
|
5
|
-
const
|
|
6
|
-
({ workspace: r, ...a },
|
|
4
|
+
import m from "../../assets/default-workspace-avatar.jpg.js";
|
|
5
|
+
const c = e(
|
|
6
|
+
({ workspace: r, ...a }, t) => /* @__PURE__ */ o(
|
|
7
7
|
i,
|
|
8
8
|
{
|
|
9
9
|
src: r?.workspaceIcon || m,
|
|
@@ -13,10 +13,10 @@ const n = e(
|
|
|
13
13
|
name: r?.workspaceId,
|
|
14
14
|
radius: "var(--mantine-radius-default)",
|
|
15
15
|
...a,
|
|
16
|
-
ref:
|
|
16
|
+
ref: t
|
|
17
17
|
}
|
|
18
18
|
)
|
|
19
19
|
);
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
c as WorkspaceAvatar
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceMenu.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"WorkspaceMenu.d.ts","sourceRoot":"","sources":["../../../src/components/WorkspaceMenu/WorkspaceMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAiCpD,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,KAAK,CAAC;QACxB,IAAI,EACA,QAAQ,GACR,WAAW,GACX,QAAQ,GACR,OAAO,GACP,OAAO,GACP,UAAU,GACV,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,uBAAuB,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI;IACxE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,MAAM,EAAE,CAAC,CAAC;IACV,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,aAAa,EAAE,iHAWpD,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,4CAwE1C,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,aAAa,EAAE,gEAMtD,IAAI,CACL,kBAAkB,CAAC,CAAC,CAAC,EACrB,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,GAAG,SAAS,CACxE,4CA8DA,CAAC"}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsxs as o, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { useState as K } from "react";
|
|
3
3
|
import { useTranslation as u } from "react-i18next";
|
|
4
|
-
import { Link as
|
|
5
|
-
import { Setting07Icon as
|
|
6
|
-
import { HugeiconsIcon as
|
|
7
|
-
import { Stack as a, Flex as l, Text as d, Box as
|
|
8
|
-
import { useMenu as
|
|
9
|
-
import { usePlatform as
|
|
10
|
-
import { formatStoragePercent as
|
|
4
|
+
import { Link as S } from "react-router-dom";
|
|
5
|
+
import { Setting07Icon as U, UserMultiple02Icon as j, Add01Icon as A } from "@hugeicons/core-free-icons";
|
|
6
|
+
import { HugeiconsIcon as b } from "@hugeicons/react";
|
|
7
|
+
import { Stack as a, Flex as l, Text as d, Box as h, Button as z, Menu as m, Tooltip as N, Progress as $, ScrollArea as P } from "@mantine/core";
|
|
8
|
+
import { useMenu as T } from "../../hooks/useMenu.js";
|
|
9
|
+
import { usePlatform as B } from "../../hooks/usePlatform.js";
|
|
10
|
+
import { formatStoragePercent as D, formatStorage as k, resolveStorageLimit as F } from "../../utils/formatStorage.js";
|
|
11
11
|
import { Logotype as O } from "../Logotype.js";
|
|
12
12
|
import { WorkspaceAvatar as x } from "../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
13
13
|
import { WorkspaceItem as E } from "./WorkspaceItem.js";
|
|
14
|
-
const
|
|
14
|
+
const te = ({
|
|
15
15
|
children: r,
|
|
16
|
-
onCreate:
|
|
17
|
-
onClick:
|
|
18
|
-
active:
|
|
19
|
-
items:
|
|
20
|
-
workspaceLink:
|
|
16
|
+
onCreate: c,
|
|
17
|
+
onClick: s,
|
|
18
|
+
active: n,
|
|
19
|
+
items: i,
|
|
20
|
+
workspaceLink: t,
|
|
21
21
|
settingsLink: p,
|
|
22
22
|
membersLink: y,
|
|
23
23
|
isAnonym: I,
|
|
24
|
-
publicMode:
|
|
24
|
+
publicMode: L
|
|
25
25
|
}) => {
|
|
26
|
-
const { t:
|
|
27
|
-
return I ||
|
|
26
|
+
const { t: W } = u("workspaceMenu"), { isMobile: g } = T(), [C, f] = K(!1);
|
|
27
|
+
return I || L ? /* @__PURE__ */ e(l, { w: "100%", justify: g ? "start" : "center", children: /* @__PURE__ */ e("a", { href: "/", children: /* @__PURE__ */ e(
|
|
28
28
|
O,
|
|
29
29
|
{
|
|
30
|
-
minified: !
|
|
31
|
-
w:
|
|
30
|
+
minified: !g,
|
|
31
|
+
w: g ? 65 : 24,
|
|
32
32
|
isLink: !1
|
|
33
33
|
}
|
|
34
|
-
) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */
|
|
34
|
+
) }) }) : /* @__PURE__ */ e(M, { children: /* @__PURE__ */ o(
|
|
35
35
|
m,
|
|
36
36
|
{
|
|
37
|
-
opened:
|
|
38
|
-
onChange:
|
|
37
|
+
opened: C,
|
|
38
|
+
onChange: f,
|
|
39
39
|
position: "right-start",
|
|
40
40
|
keepMounted: !1,
|
|
41
41
|
clickOutsideEvents: ["mousedown", "click"],
|
|
42
42
|
offset: 17,
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */ e(m.Target, { children: r ?? /* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */ e(x, { size: 30, workspace:
|
|
46
|
-
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(
|
|
44
|
+
/* @__PURE__ */ e(m.Target, { children: r ?? /* @__PURE__ */ o(l, { onClick: () => f((w) => !w), children: [
|
|
45
|
+
/* @__PURE__ */ e(x, { size: 30, workspace: n }),
|
|
46
|
+
/* @__PURE__ */ e(l, { justify: "space-between", align: "center", w: "100%", miw: 0, children: /* @__PURE__ */ e(N, { label: n.workspaceName, children: /* @__PURE__ */ e(d, { size: "md", truncate: !0, children: n?.workspaceName || W("noName") }) }) })
|
|
47
47
|
] }) }),
|
|
48
|
-
/* @__PURE__ */ e(m.Dropdown, { w: 338, children: /* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ e(m.Dropdown, { w: 338, children: /* @__PURE__ */ o(a, { gap: 6, children: [
|
|
49
49
|
/* @__PURE__ */ e(
|
|
50
50
|
H,
|
|
51
51
|
{
|
|
52
|
-
active:
|
|
53
|
-
workspaceLink:
|
|
52
|
+
active: n,
|
|
53
|
+
workspaceLink: t,
|
|
54
54
|
settingsLink: p,
|
|
55
55
|
membersLink: y,
|
|
56
|
-
onClose: () =>
|
|
56
|
+
onClose: () => f(!1)
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
/* @__PURE__ */ e(
|
|
59
|
+
/* @__PURE__ */ e(h, { px: 4, children: /* @__PURE__ */ e(m.Divider, {}) }),
|
|
60
60
|
/* @__PURE__ */ e(
|
|
61
|
-
|
|
61
|
+
q,
|
|
62
62
|
{
|
|
63
|
-
onCreate:
|
|
64
|
-
onClick:
|
|
65
|
-
items:
|
|
66
|
-
(
|
|
63
|
+
onCreate: c,
|
|
64
|
+
onClick: s,
|
|
65
|
+
items: i.filter(
|
|
66
|
+
(w) => w.workspaceId !== n?.workspaceId
|
|
67
67
|
),
|
|
68
|
-
onClose: () =>
|
|
68
|
+
onClose: () => f(!1)
|
|
69
69
|
}
|
|
70
70
|
)
|
|
71
71
|
] }) })
|
|
@@ -74,22 +74,22 @@ const oe = ({
|
|
|
74
74
|
) });
|
|
75
75
|
}, H = ({
|
|
76
76
|
active: r,
|
|
77
|
-
workspaceLink:
|
|
78
|
-
settingsLink:
|
|
79
|
-
membersLink:
|
|
80
|
-
onClose:
|
|
77
|
+
workspaceLink: c,
|
|
78
|
+
settingsLink: s,
|
|
79
|
+
membersLink: n,
|
|
80
|
+
onClose: i
|
|
81
81
|
}) => {
|
|
82
|
-
const { t
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
82
|
+
const { t } = u("workspaceMenu"), p = B();
|
|
83
|
+
return /* @__PURE__ */ o(a, { p: 4, pb: 5, gap: 12, children: [
|
|
84
|
+
/* @__PURE__ */ o(l, { gap: 10, children: [
|
|
85
85
|
/* @__PURE__ */ e(x, { size: 48, workspace: r }),
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */ e(d, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright)", children: r.workspaceName ||
|
|
88
|
-
/* @__PURE__ */ e(d, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */
|
|
89
|
-
r.totalMembers ? /* @__PURE__ */
|
|
90
|
-
|
|
86
|
+
/* @__PURE__ */ o(a, { gap: 0, miw: 0, children: [
|
|
87
|
+
/* @__PURE__ */ e(d, { truncate: !0, size: "md", fw: 500, c: "var(--mantine-color-bright)", children: r.workspaceName || t("noName") }),
|
|
88
|
+
/* @__PURE__ */ e(d, { c: "gray", size: "sm", fw: 500, component: "span", children: /* @__PURE__ */ o(l, { gap: 6, component: "span", children: [
|
|
89
|
+
r.totalMembers ? /* @__PURE__ */ o(M, { children: [
|
|
90
|
+
t("member", { count: r.totalMembers }),
|
|
91
91
|
/* @__PURE__ */ e(
|
|
92
|
-
|
|
92
|
+
h,
|
|
93
93
|
{
|
|
94
94
|
w: 2,
|
|
95
95
|
h: 2,
|
|
@@ -99,36 +99,36 @@ const oe = ({
|
|
|
99
99
|
}
|
|
100
100
|
)
|
|
101
101
|
] }) : null,
|
|
102
|
-
p.has("planBadges") &&
|
|
102
|
+
p.has("planBadges") && t(`plans.${r.plan}`)
|
|
103
103
|
] }) })
|
|
104
104
|
] })
|
|
105
105
|
] }),
|
|
106
106
|
p.has("plans") && /* @__PURE__ */ e(R, { active: r }),
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ o(l, { children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
|
-
|
|
109
|
+
z,
|
|
110
110
|
{
|
|
111
111
|
flex: 1,
|
|
112
|
-
component:
|
|
112
|
+
component: S,
|
|
113
113
|
variant: "default",
|
|
114
114
|
size: "sm",
|
|
115
|
-
leftSection: /* @__PURE__ */ e(
|
|
116
|
-
to:
|
|
117
|
-
onClick:
|
|
118
|
-
children:
|
|
115
|
+
leftSection: /* @__PURE__ */ e(b, { size: 16, icon: U }),
|
|
116
|
+
to: c ?? s ?? "",
|
|
117
|
+
onClick: i,
|
|
118
|
+
children: t("settings")
|
|
119
119
|
}
|
|
120
120
|
),
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
n && p.has("inviteUsers") && /* @__PURE__ */ e(
|
|
122
|
+
z,
|
|
123
123
|
{
|
|
124
124
|
flex: 1,
|
|
125
|
-
component:
|
|
125
|
+
component: S,
|
|
126
126
|
variant: "default",
|
|
127
127
|
size: "sm",
|
|
128
|
-
leftSection: /* @__PURE__ */ e(
|
|
129
|
-
to:
|
|
130
|
-
onClick:
|
|
131
|
-
children:
|
|
128
|
+
leftSection: /* @__PURE__ */ e(b, { size: 16, icon: j }),
|
|
129
|
+
to: n,
|
|
130
|
+
onClick: i,
|
|
131
|
+
children: t("members")
|
|
132
132
|
}
|
|
133
133
|
)
|
|
134
134
|
] })
|
|
@@ -136,37 +136,33 @@ const oe = ({
|
|
|
136
136
|
}, R = ({
|
|
137
137
|
active: r
|
|
138
138
|
}) => {
|
|
139
|
-
const { t:
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
const { t: c } = u("workspaceMenu"), { isUnlimited: s, effectiveLimitKb: n } = F(
|
|
140
|
+
r?.storageLimitKb || 0,
|
|
141
|
+
r?.storageUsedKb || 0
|
|
142
|
+
), i = (r?.storageUsedKb || 0) / n, t = D(i * 100);
|
|
143
|
+
return /* @__PURE__ */ o(a, { gap: 4, w: "100%", children: [
|
|
144
|
+
/* @__PURE__ */ o(l, { justify: "space-between", children: [
|
|
145
|
+
/* @__PURE__ */ o(d, { size: "sm", fw: 500, children: [
|
|
146
|
+
c("usedStorage"),
|
|
144
147
|
": ",
|
|
145
|
-
|
|
146
|
-
"%"
|
|
148
|
+
s ? "" : `${t}%`
|
|
147
149
|
] }),
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
S(r?.storageUsedKb),
|
|
150
|
-
" ",
|
|
151
|
-
i("of"),
|
|
152
|
-
" ",
|
|
153
|
-
S(r?.storageLimitKb)
|
|
154
|
-
] })
|
|
150
|
+
/* @__PURE__ */ e(d, { size: "sm", fw: 500, c: "gray", children: s ? k(r?.storageUsedKb) : `${k(r?.storageUsedKb)} ${c("of")} ${k(r?.storageLimitKb)}` })
|
|
155
151
|
] }),
|
|
156
|
-
/* @__PURE__ */ e(
|
|
152
|
+
!s && /* @__PURE__ */ e($, { h: 4, value: i * 100 })
|
|
157
153
|
] });
|
|
158
|
-
},
|
|
154
|
+
}, q = ({
|
|
159
155
|
onCreate: r,
|
|
160
|
-
onClick:
|
|
161
|
-
items:
|
|
162
|
-
onClose:
|
|
156
|
+
onClick: c,
|
|
157
|
+
items: s,
|
|
158
|
+
onClose: n
|
|
163
159
|
}) => {
|
|
164
|
-
const { t:
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */ e(m.Label, { fw: 600, px: 4, py: 5, fz: "sm", children:
|
|
168
|
-
/* @__PURE__ */ e(
|
|
169
|
-
|
|
160
|
+
const { t: i } = u("workspaceMenu");
|
|
161
|
+
return /* @__PURE__ */ o(a, { gap: 12, children: [
|
|
162
|
+
s?.length > 0 && /* @__PURE__ */ o(a, { gap: 0, children: [
|
|
163
|
+
/* @__PURE__ */ e(m.Label, { fw: 600, px: 4, py: 5, fz: "sm", children: i("switchWorkspace") }),
|
|
164
|
+
/* @__PURE__ */ e(h, { w: "100%", px: 4, children: /* @__PURE__ */ e(
|
|
165
|
+
P.Autosize,
|
|
170
166
|
{
|
|
171
167
|
mah: 200,
|
|
172
168
|
w: "100%",
|
|
@@ -175,39 +171,39 @@ const oe = ({
|
|
|
175
171
|
type: "always",
|
|
176
172
|
styles: {
|
|
177
173
|
viewport: {
|
|
178
|
-
paddingRight:
|
|
174
|
+
paddingRight: s.length > 4 ? 12 : 0
|
|
179
175
|
},
|
|
180
176
|
content: {
|
|
181
177
|
minWidth: 0
|
|
182
178
|
}
|
|
183
179
|
},
|
|
184
|
-
children: /* @__PURE__ */ e(a, { gap: 6, miw: 0, children:
|
|
180
|
+
children: /* @__PURE__ */ e(a, { gap: 6, miw: 0, children: s.map((t) => /* @__PURE__ */ e(
|
|
185
181
|
E,
|
|
186
182
|
{
|
|
187
|
-
workspace:
|
|
188
|
-
onClick:
|
|
183
|
+
workspace: t,
|
|
184
|
+
onClick: c
|
|
189
185
|
},
|
|
190
|
-
|
|
186
|
+
t.workspaceId
|
|
191
187
|
)) })
|
|
192
188
|
}
|
|
193
189
|
) })
|
|
194
190
|
] }),
|
|
195
|
-
/* @__PURE__ */ e(
|
|
196
|
-
|
|
191
|
+
/* @__PURE__ */ e(h, { p: 4, pt: 0, children: /* @__PURE__ */ e(
|
|
192
|
+
z,
|
|
197
193
|
{
|
|
198
194
|
fullWidth: !0,
|
|
199
195
|
variant: "default",
|
|
200
196
|
size: "sm",
|
|
201
197
|
onClick: () => {
|
|
202
|
-
r?.(),
|
|
198
|
+
r?.(), n?.();
|
|
203
199
|
},
|
|
204
|
-
leftSection: /* @__PURE__ */ e(
|
|
205
|
-
children:
|
|
200
|
+
leftSection: /* @__PURE__ */ e(b, { icon: A, size: 16 }),
|
|
201
|
+
children: i("newWorkspace")
|
|
206
202
|
}
|
|
207
203
|
) })
|
|
208
204
|
] });
|
|
209
205
|
};
|
|
210
206
|
export {
|
|
211
207
|
H as ActiveWorkspace,
|
|
212
|
-
|
|
208
|
+
te as WorkspaceMenu
|
|
213
209
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoveConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/RemoveConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,sBAAsB,GACjC,OAAO,UAAU,CAAC,OAAO,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrD,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB,
|
|
1
|
+
{"version":3,"file":"RemoveConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/RemoveConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,sBAAsB,GACjC,OAAO,UAAU,CAAC,OAAO,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG;IACrD,MAAM,CAAC,EAAE;QACP,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CACzB,SAsFF,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const brand: {
|
|
2
|
+
readonly name: string;
|
|
3
|
+
LogoFull: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
4
|
+
title?: string;
|
|
5
|
+
titleId?: string;
|
|
6
|
+
desc?: string;
|
|
7
|
+
descId?: string;
|
|
8
|
+
}>;
|
|
9
|
+
LogoIcon: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
10
|
+
title?: string;
|
|
11
|
+
titleId?: string;
|
|
12
|
+
desc?: string;
|
|
13
|
+
descId?: string;
|
|
14
|
+
}>;
|
|
15
|
+
LogoCopyright: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
16
|
+
title?: string;
|
|
17
|
+
titleId?: string;
|
|
18
|
+
desc?: string;
|
|
19
|
+
descId?: string;
|
|
20
|
+
}>;
|
|
21
|
+
readonly customIconUrl: string | null;
|
|
22
|
+
readonly customIconDarkUrl: string | null;
|
|
23
|
+
readonly customLogoUrl: string | null;
|
|
24
|
+
readonly logoFullUrl: string;
|
|
25
|
+
readonly logoIconUrl: string;
|
|
26
|
+
readonly websiteUrl: string;
|
|
27
|
+
readonly appUrl: string;
|
|
28
|
+
readonly social: {
|
|
29
|
+
facebook: string;
|
|
30
|
+
facebookEnabled: boolean;
|
|
31
|
+
instagram: string;
|
|
32
|
+
instagramEnabled: boolean;
|
|
33
|
+
linkedin: string;
|
|
34
|
+
linkedinEnabled: boolean;
|
|
35
|
+
whatsapp: string;
|
|
36
|
+
whatsappEnabled: boolean;
|
|
37
|
+
telegram: string;
|
|
38
|
+
telegramEnabled: boolean;
|
|
39
|
+
discord: string;
|
|
40
|
+
discordEnabled: boolean;
|
|
41
|
+
};
|
|
42
|
+
readonly copyrightHolder: string;
|
|
43
|
+
};
|
|
44
|
+
export declare const brandI18nVariables: {
|
|
45
|
+
readonly appName: string;
|
|
46
|
+
readonly appUrl: string;
|
|
47
|
+
readonly websiteUrl: string;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/config/brand.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DjB,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;CAU9B,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import g from "../assets/layers-logo-full.svg.js";
|
|
2
|
+
import s from "../assets/layers-logo-full.svg2.js";
|
|
3
|
+
import i from "../assets/layers-logo-icon.svg.js";
|
|
4
|
+
import p from "../assets/layers-logo-icon.svg2.js";
|
|
5
|
+
import c from "../assets/logo-copyright.svg.js";
|
|
6
|
+
import { resolveNonBlankString as o, normalizeUrl as n, getEnvConfig as m } from "./envConfig.js";
|
|
7
|
+
const d = { VITE_APP_NAME: "Layers" }, t = d, e = () => m(), l = {
|
|
8
|
+
get name() {
|
|
9
|
+
return o(e().appName, t.VITE_APP_NAME) || "Layers";
|
|
10
|
+
},
|
|
11
|
+
// Bundled SVG components (support currentColor for theme switching)
|
|
12
|
+
LogoFull: s,
|
|
13
|
+
LogoIcon: p,
|
|
14
|
+
LogoCopyright: c,
|
|
15
|
+
// Custom URLs from admin panel (null if not configured)
|
|
16
|
+
get customIconUrl() {
|
|
17
|
+
return o(e().logoIconUrl) || o(e().logoFullUrl) || null;
|
|
18
|
+
},
|
|
19
|
+
get customIconDarkUrl() {
|
|
20
|
+
return o(e().branding?.logoDarkUrl) || null;
|
|
21
|
+
},
|
|
22
|
+
get customLogoUrl() {
|
|
23
|
+
return o(e().logoFullUrl) || null;
|
|
24
|
+
},
|
|
25
|
+
// Static URLs (always filled — custom or bundled fallback)
|
|
26
|
+
get logoFullUrl() {
|
|
27
|
+
return o(e().logoFullUrl) || g;
|
|
28
|
+
},
|
|
29
|
+
get logoIconUrl() {
|
|
30
|
+
return o(e().logoIconUrl) || i;
|
|
31
|
+
},
|
|
32
|
+
get websiteUrl() {
|
|
33
|
+
return n(
|
|
34
|
+
o(e().websiteUrl) || "https://layers.md"
|
|
35
|
+
);
|
|
36
|
+
},
|
|
37
|
+
get appUrl() {
|
|
38
|
+
return n(
|
|
39
|
+
o(e().appUrl, t.VITE_APP_URL) || "https://app.layers.md/",
|
|
40
|
+
{ trailingSlash: !0 }
|
|
41
|
+
);
|
|
42
|
+
},
|
|
43
|
+
get social() {
|
|
44
|
+
const r = e().social, a = e().region?.toUpperCase() === "RU";
|
|
45
|
+
return {
|
|
46
|
+
facebook: r?.facebook ?? "",
|
|
47
|
+
facebookEnabled: !a && r?.facebookEnabled !== !1,
|
|
48
|
+
instagram: r?.instagram ?? "",
|
|
49
|
+
instagramEnabled: !a && r?.instagramEnabled !== !1,
|
|
50
|
+
linkedin: r?.linkedin ?? "",
|
|
51
|
+
linkedinEnabled: r?.linkedinEnabled !== !1,
|
|
52
|
+
whatsapp: r?.whatsapp ?? "",
|
|
53
|
+
whatsappEnabled: r?.whatsappEnabled !== !1,
|
|
54
|
+
telegram: r?.telegram ?? "",
|
|
55
|
+
telegramEnabled: r?.telegramEnabled !== !1,
|
|
56
|
+
discord: r?.discord ?? "",
|
|
57
|
+
discordEnabled: r?.discordEnabled !== !1
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
get copyrightHolder() {
|
|
61
|
+
return o(e().copyrightHolder) || "Layers Web Application";
|
|
62
|
+
}
|
|
63
|
+
}, I = {
|
|
64
|
+
get appName() {
|
|
65
|
+
return l.name;
|
|
66
|
+
},
|
|
67
|
+
get appUrl() {
|
|
68
|
+
return l.appUrl;
|
|
69
|
+
},
|
|
70
|
+
get websiteUrl() {
|
|
71
|
+
return l.websiteUrl;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
export {
|
|
75
|
+
l as brand,
|
|
76
|
+
I as brandI18nVariables
|
|
77
|
+
};
|