@lokalise/harmony 1.40.0 → 1.40.2
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/harmony100.cjs +12 -9
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +11 -8
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +12 -57
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +11 -56
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +6 -42
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +5 -41
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +10 -6
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +9 -5
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -6
- package/dist/harmony104.mjs +6 -6
- package/dist/harmony105.cjs +57 -24
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +56 -23
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +42 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +41 -5
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +5 -21
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +5 -21
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +4 -7
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +4 -7
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +25 -12
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +24 -11
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +5 -20
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +5 -20
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +19 -164
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +19 -164
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +12 -44
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +11 -43
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +11 -96
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +11 -79
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +18 -14
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +18 -14
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +99 -18
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +82 -18
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +87 -21
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +86 -20
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +30 -6
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +30 -6
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +21 -132
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +20 -131
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +6 -12
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +5 -11
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +132 -5
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +132 -5
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +12 -40
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +11 -39
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +4 -59
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +5 -60
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +39 -6
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +39 -6
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +60 -6
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +59 -5
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +8 -6
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -5
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +6 -5
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +6 -5
- package/dist/harmony127.cjs +6 -88
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +5 -87
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +6 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +5 -30
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +10 -96
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +10 -96
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +62 -13
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +61 -12
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +87 -13
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +87 -13
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +19 -37
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +18 -36
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +87 -19
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +87 -19
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +13 -62
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +12 -61
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +13 -87
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +13 -87
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +37 -19
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +36 -18
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +28 -10
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +28 -10
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony14.cjs +1 -1
- package/dist/harmony14.mjs +1 -1
- package/dist/harmony142.cjs +1 -1
- package/dist/harmony142.mjs +1 -1
- package/dist/harmony153.cjs +1 -1
- package/dist/harmony153.mjs +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony26.cjs +1 -1
- package/dist/harmony26.mjs +1 -1
- package/dist/harmony66.cjs +1 -0
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +1 -0
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony75.cjs +1 -1
- package/dist/harmony75.mjs +1 -1
- package/dist/harmony77.cjs +1 -1
- package/dist/harmony77.mjs +1 -1
- package/dist/harmony78.cjs +1 -1
- package/dist/harmony78.mjs +1 -1
- package/dist/harmony79.cjs +1 -1
- package/dist/harmony79.mjs +1 -1
- package/dist/harmony80.cjs +2 -2
- package/dist/harmony80.mjs +2 -2
- package/dist/harmony81.cjs +2 -2
- package/dist/harmony81.mjs +2 -2
- package/dist/harmony82.cjs +2 -2
- package/dist/harmony82.mjs +2 -2
- package/dist/harmony83.cjs +2 -2
- package/dist/harmony83.mjs +2 -2
- package/dist/harmony84.cjs +3 -3
- package/dist/harmony84.mjs +3 -3
- package/dist/harmony85.cjs +6 -6
- package/dist/harmony85.mjs +6 -6
- package/dist/harmony88.cjs +2 -2
- package/dist/harmony88.mjs +2 -2
- package/dist/harmony90.cjs +2 -2
- package/dist/harmony90.mjs +2 -2
- package/dist/harmony92.cjs +2 -2
- package/dist/harmony92.mjs +2 -2
- package/dist/harmony96.cjs +9 -10
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +11 -12
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +20 -11
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +20 -11
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +166 -6
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +165 -5
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +44 -9
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +43 -8
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/navigation/hooks/useNavigation.d.ts +1 -1
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/projects.d.ts +20 -20
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +15 -15
- package/package.json +1 -1
package/dist/harmony135.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony135.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony135.cjs","sources":["../node_modules/lodash/now.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,OAAOA,MAAAA,UAAkB;AAkB7B,MAAI,MAAM,WAAW;AACnB,WAAO,KAAK,KAAK,IAAK;AAAA,EACvB;AAED,UAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony135.mjs
CHANGED
@@ -1,91 +1,17 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
import { getTaskLanguages, tagColor } from "./harmony143.mjs";
|
11
|
-
import styles from "./harmony144.mjs";
|
12
|
-
const TaskOverview = ({ task }) => {
|
13
|
-
const { getProjectUrl, taskTitleOnClick } = useTasks();
|
14
|
-
const taskLanguages = getTaskLanguages(task.langs);
|
15
|
-
const handleDownloadStyleGuide = (styleGuide) => {
|
16
|
-
window.open(
|
17
|
-
`/style-guide/${task.team_id}/download/${styleGuide.id}/link`,
|
18
|
-
"_blank",
|
19
|
-
"noopener,noreferrer"
|
20
|
-
);
|
1
|
+
import { __require as require_root } from "./harmony138.mjs";
|
2
|
+
var now_1;
|
3
|
+
var hasRequiredNow;
|
4
|
+
function requireNow() {
|
5
|
+
if (hasRequiredNow) return now_1;
|
6
|
+
hasRequiredNow = 1;
|
7
|
+
var root = require_root();
|
8
|
+
var now = function() {
|
9
|
+
return root.Date.now();
|
21
10
|
};
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
/* @__PURE__ */ jsx(Tag, { color: tagColor[task.task_type], variant: "solid", children: task.task_type.toLocaleUpperCase() }),
|
26
|
-
task.due_date && /* @__PURE__ */ jsxs(Tag, { color: "#EAB308", children: [
|
27
|
-
"DUE ",
|
28
|
-
formatDate(parseISO(task.due_date), "yyyy-MM-dd")
|
29
|
-
] })
|
30
|
-
] }),
|
31
|
-
task.style_guides.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex-row", children: task.style_guides.length === 1 ? /* @__PURE__ */ jsx(
|
32
|
-
Button,
|
33
|
-
{
|
34
|
-
size: "sm",
|
35
|
-
variant: "secondary",
|
36
|
-
onClick: () => handleDownloadStyleGuide(task.style_guides[0]),
|
37
|
-
children: "Download style guide"
|
38
|
-
}
|
39
|
-
) : /* @__PURE__ */ jsx(
|
40
|
-
Menu,
|
41
|
-
{
|
42
|
-
menuButton: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "sm", children: "Download style guide" }),
|
43
|
-
children: /* @__PURE__ */ jsx(MenuList, { children: task.style_guides.map((styleGuide) => /* @__PURE__ */ jsx(
|
44
|
-
MenuItem,
|
45
|
-
{
|
46
|
-
onClick: () => handleDownloadStyleGuide(styleGuide),
|
47
|
-
children: splitFileName(styleGuide.name).name
|
48
|
-
},
|
49
|
-
styleGuide.id
|
50
|
-
)) })
|
51
|
-
}
|
52
|
-
) })
|
53
|
-
] }),
|
54
|
-
/* @__PURE__ */ jsx("h4", { className: styles.taskTitle, children: /* @__PURE__ */ jsx(
|
55
|
-
Link,
|
56
|
-
{
|
57
|
-
href: getProjectUrl({ task, view: "multi" }),
|
58
|
-
onClick: () => {
|
59
|
-
taskTitleOnClick == null ? void 0 : taskTitleOnClick({ task });
|
60
|
-
},
|
61
|
-
children: task.title
|
62
|
-
}
|
63
|
-
) }),
|
64
|
-
task.description && /* @__PURE__ */ jsx("div", { className: styles.taskDescription, children: convertNewLineToBreakTag(makeUrlClickable(task.description)) }),
|
65
|
-
/* @__PURE__ */ jsxs("table", { className: styles.languagesTable, children: [
|
66
|
-
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
67
|
-
/* @__PURE__ */ jsx("th", { children: "Languages" }),
|
68
|
-
/* @__PURE__ */ jsx("th", { children: "Words to do" }),
|
69
|
-
/* @__PURE__ */ jsx("th", { children: "Progress" }),
|
70
|
-
/* @__PURE__ */ jsx("th", { children: "Status" })
|
71
|
-
] }) }),
|
72
|
-
/* @__PURE__ */ jsx("tbody", { children: taskLanguages.map((language) => /* @__PURE__ */ jsx(TaskLanguage, { language, task }, language.lang_id)) })
|
73
|
-
] }),
|
74
|
-
/* @__PURE__ */ jsxs("div", { "data-testid": "sidebar-task-overview-metadata", className: styles.metadata, children: [
|
75
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
76
|
-
"Source: ",
|
77
|
-
task.source_lang_name
|
78
|
-
] }),
|
79
|
-
/* @__PURE__ */ jsx("span", { children: task.created_by_fullname }),
|
80
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
81
|
-
"In ",
|
82
|
-
task.project_name,
|
83
|
-
task.master_branching_enabled === "1" && /* @__PURE__ */ jsx("div", { className: styles.tag, children: task.branch_name ? task.branch_name : "master" })
|
84
|
-
] })
|
85
|
-
] })
|
86
|
-
] });
|
87
|
-
};
|
11
|
+
now_1 = now;
|
12
|
+
return now_1;
|
13
|
+
}
|
88
14
|
export {
|
89
|
-
|
15
|
+
requireNow as __require
|
90
16
|
};
|
91
17
|
//# sourceMappingURL=harmony135.mjs.map
|
package/dist/harmony135.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony135.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony135.mjs","sources":["../node_modules/lodash/now.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,OAAOA,aAAkB;AAkB7B,MAAI,MAAM,WAAW;AACnB,WAAO,KAAK,KAAK,IAAK;AAAA,EACvB;AAED,UAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony136.cjs
CHANGED
@@ -1,21 +1,39 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const _baseTrim = require("./harmony139.cjs");
|
4
|
+
const isObject = require("./harmony134.cjs");
|
5
|
+
const isSymbol = require("./harmony140.cjs");
|
6
|
+
var toNumber_1;
|
7
|
+
var hasRequiredToNumber;
|
8
|
+
function requireToNumber() {
|
9
|
+
if (hasRequiredToNumber) return toNumber_1;
|
10
|
+
hasRequiredToNumber = 1;
|
11
|
+
var baseTrim = _baseTrim.__require(), isObject$1 = isObject.__require(), isSymbol$1 = isSymbol.__require();
|
12
|
+
var NAN = 0 / 0;
|
13
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
14
|
+
var reIsBinary = /^0b[01]+$/i;
|
15
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
16
|
+
var freeParseInt = parseInt;
|
17
|
+
function toNumber(value) {
|
18
|
+
if (typeof value == "number") {
|
19
|
+
return value;
|
20
|
+
}
|
21
|
+
if (isSymbol$1(value)) {
|
22
|
+
return NAN;
|
23
|
+
}
|
24
|
+
if (isObject$1(value)) {
|
25
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
26
|
+
value = isObject$1(other) ? other + "" : other;
|
27
|
+
}
|
28
|
+
if (typeof value != "string") {
|
29
|
+
return value === 0 ? value : +value;
|
30
|
+
}
|
31
|
+
value = baseTrim(value);
|
32
|
+
var isBinary = reIsBinary.test(value);
|
33
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
34
|
+
}
|
35
|
+
toNumber_1 = toNumber;
|
36
|
+
return toNumber_1;
|
37
|
+
}
|
38
|
+
exports.__require = requireToNumber;
|
21
39
|
//# sourceMappingURL=harmony136.cjs.map
|
package/dist/harmony136.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony136.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony136.cjs","sources":["../node_modules/lodash/toNumber.js"],"sourcesContent":["var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["require$$0","isObject","require$$1","isSymbol","require$$2"],"mappings":";;;;;;;;;;AAAA,MAAI,WAAWA,UAAAA,UAAsB,GACjCC,aAAWC,SAAAA,UAAqB,GAChCC,aAAWC,SAAAA,UAAqB;AAGpC,MAAI,MAAM,IAAI;AAGd,MAAI,aAAa;AAGjB,MAAI,aAAa;AAGjB,MAAI,YAAY;AAGhB,MAAI,eAAe;AAyBnB,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO;AAAA,IACX;AACE,QAAID,WAAS,KAAK,GAAG;AACnB,aAAO;AAAA,IACX;AACE,QAAIF,WAAS,KAAK,GAAG;AACnB,UAAI,QAAQ,OAAO,MAAM,WAAW,aAAa,MAAM,QAAO,IAAK;AACnE,cAAQA,WAAS,KAAK,IAAK,QAAQ,KAAM;AAAA,IAC7C;AACE,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO,UAAU,IAAI,QAAQ,CAAC;AAAA,IAClC;AACE,YAAQ,SAAS,KAAK;AACtB,QAAI,WAAW,WAAW,KAAK,KAAK;AACpC,WAAQ,YAAY,UAAU,KAAK,KAAK,IACpC,aAAa,MAAM,MAAM,CAAC,GAAG,WAAW,IAAI,CAAC,IAC5C,WAAW,KAAK,KAAK,IAAI,MAAM,CAAC;AAAA,EACvC;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony136.mjs
CHANGED
@@ -1,21 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import { __require as require_baseTrim } from "./harmony139.mjs";
|
2
|
+
import { __require as requireIsObject } from "./harmony134.mjs";
|
3
|
+
import { __require as requireIsSymbol } from "./harmony140.mjs";
|
4
|
+
var toNumber_1;
|
5
|
+
var hasRequiredToNumber;
|
6
|
+
function requireToNumber() {
|
7
|
+
if (hasRequiredToNumber) return toNumber_1;
|
8
|
+
hasRequiredToNumber = 1;
|
9
|
+
var baseTrim = require_baseTrim(), isObject = requireIsObject(), isSymbol = requireIsSymbol();
|
10
|
+
var NAN = 0 / 0;
|
11
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
12
|
+
var reIsBinary = /^0b[01]+$/i;
|
13
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
14
|
+
var freeParseInt = parseInt;
|
15
|
+
function toNumber(value) {
|
16
|
+
if (typeof value == "number") {
|
17
|
+
return value;
|
18
|
+
}
|
19
|
+
if (isSymbol(value)) {
|
20
|
+
return NAN;
|
21
|
+
}
|
22
|
+
if (isObject(value)) {
|
23
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
24
|
+
value = isObject(other) ? other + "" : other;
|
25
|
+
}
|
26
|
+
if (typeof value != "string") {
|
27
|
+
return value === 0 ? value : +value;
|
28
|
+
}
|
29
|
+
value = baseTrim(value);
|
30
|
+
var isBinary = reIsBinary.test(value);
|
31
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
32
|
+
}
|
33
|
+
toNumber_1 = toNumber;
|
34
|
+
return toNumber_1;
|
35
|
+
}
|
13
36
|
export {
|
14
|
-
|
15
|
-
loadingContainer,
|
16
|
-
noTasksContainer,
|
17
|
-
noTasksHeading,
|
18
|
-
noTasksText,
|
19
|
-
tasksContainer
|
37
|
+
requireToNumber as __require
|
20
38
|
};
|
21
39
|
//# sourceMappingURL=harmony136.mjs.map
|
package/dist/harmony136.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony136.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony136.mjs","sources":["../node_modules/lodash/toNumber.js"],"sourcesContent":["var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;AAAA,MAAI,WAAWA,iBAAsB,GACjC,WAAWC,gBAAqB,GAChC,WAAWC,gBAAqB;AAGpC,MAAI,MAAM,IAAI;AAGd,MAAI,aAAa;AAGjB,MAAI,aAAa;AAGjB,MAAI,YAAY;AAGhB,MAAI,eAAe;AAyBnB,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO;AAAA,IACX;AACE,QAAI,SAAS,KAAK,GAAG;AACnB,aAAO;AAAA,IACX;AACE,QAAI,SAAS,KAAK,GAAG;AACnB,UAAI,QAAQ,OAAO,MAAM,WAAW,aAAa,MAAM,QAAO,IAAK;AACnE,cAAQ,SAAS,KAAK,IAAK,QAAQ,KAAM;AAAA,IAC7C;AACE,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO,UAAU,IAAI,QAAQ,CAAC;AAAA,IAClC;AACE,YAAQ,SAAS,KAAK;AACtB,QAAI,WAAW,WAAW,KAAK,KAAK;AACpC,WAAQ,YAAY,UAAU,KAAK,KAAK,IACpC,aAAa,MAAM,MAAM,CAAC,GAAG,WAAW,IAAI,CAAC,IAC5C,WAAW,KAAK,KAAK,IAAI,MAAM,CAAC;AAAA,EACvC;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony137.cjs
CHANGED
@@ -1,13 +1,31 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
if (
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
const debounce = require("./harmony133.cjs");
|
4
|
+
const isObject = require("./harmony134.cjs");
|
5
|
+
var throttle_1;
|
6
|
+
var hasRequiredThrottle;
|
7
|
+
function requireThrottle() {
|
8
|
+
if (hasRequiredThrottle) return throttle_1;
|
9
|
+
hasRequiredThrottle = 1;
|
10
|
+
var debounce$1 = debounce.__require(), isObject$1 = isObject.__require();
|
11
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
12
|
+
function throttle(func, wait, options) {
|
13
|
+
var leading = true, trailing = true;
|
14
|
+
if (typeof func != "function") {
|
15
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
16
|
+
}
|
17
|
+
if (isObject$1(options)) {
|
18
|
+
leading = "leading" in options ? !!options.leading : leading;
|
19
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
20
|
+
}
|
21
|
+
return debounce$1(func, wait, {
|
22
|
+
"leading": leading,
|
23
|
+
"maxWait": wait,
|
24
|
+
"trailing": trailing
|
25
|
+
});
|
26
|
+
}
|
27
|
+
throttle_1 = throttle;
|
28
|
+
return throttle_1;
|
29
|
+
}
|
30
|
+
exports.__require = requireThrottle;
|
13
31
|
//# sourceMappingURL=harmony137.cjs.map
|
package/dist/harmony137.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony137.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony137.cjs","sources":["../node_modules/lodash/throttle.js"],"sourcesContent":["var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["debounce","require$$0","isObject","require$$1"],"mappings":";;;;;;;;;AAAA,MAAIA,aAAWC,SAAAA,UAAqB,GAChCC,aAAWC,SAAAA,UAAqB;AAGpC,MAAI,kBAAkB;AA8CtB,WAAS,SAAS,MAAM,MAAM,SAAS;AACrC,QAAI,UAAU,MACV,WAAW;AAEf,QAAI,OAAO,QAAQ,YAAY;AAC7B,YAAM,IAAI,UAAU,eAAe;AAAA,IACvC;AACE,QAAID,WAAS,OAAO,GAAG;AACrB,gBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,iBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,IAC5D;AACE,WAAOF,WAAS,MAAM,MAAM;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,MACX,YAAY;AAAA,IAChB,CAAG;AAAA,EACH;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony137.mjs
CHANGED
@@ -1,13 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
if (
|
7
|
-
|
8
|
-
|
1
|
+
import { __require as requireDebounce } from "./harmony133.mjs";
|
2
|
+
import { __require as requireIsObject } from "./harmony134.mjs";
|
3
|
+
var throttle_1;
|
4
|
+
var hasRequiredThrottle;
|
5
|
+
function requireThrottle() {
|
6
|
+
if (hasRequiredThrottle) return throttle_1;
|
7
|
+
hasRequiredThrottle = 1;
|
8
|
+
var debounce = requireDebounce(), isObject = requireIsObject();
|
9
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
10
|
+
function throttle(func, wait, options) {
|
11
|
+
var leading = true, trailing = true;
|
12
|
+
if (typeof func != "function") {
|
13
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
14
|
+
}
|
15
|
+
if (isObject(options)) {
|
16
|
+
leading = "leading" in options ? !!options.leading : leading;
|
17
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
18
|
+
}
|
19
|
+
return debounce(func, wait, {
|
20
|
+
"leading": leading,
|
21
|
+
"maxWait": wait,
|
22
|
+
"trailing": trailing
|
23
|
+
});
|
24
|
+
}
|
25
|
+
throttle_1 = throttle;
|
26
|
+
return throttle_1;
|
27
|
+
}
|
9
28
|
export {
|
10
|
-
|
11
|
-
hasAnyAdminRight
|
29
|
+
requireThrottle as __require
|
12
30
|
};
|
13
31
|
//# sourceMappingURL=harmony137.mjs.map
|
package/dist/harmony137.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony137.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony137.mjs","sources":["../node_modules/lodash/throttle.js"],"sourcesContent":["var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,WAAWA,gBAAqB,GAChC,WAAWC,gBAAqB;AAGpC,MAAI,kBAAkB;AA8CtB,WAAS,SAAS,MAAM,MAAM,SAAS;AACrC,QAAI,UAAU,MACV,WAAW;AAEf,QAAI,OAAO,QAAQ,YAAY;AAC7B,YAAM,IAAI,UAAU,eAAe;AAAA,IACvC;AACE,QAAI,SAAS,OAAO,GAAG;AACrB,gBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,iBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,IAC5D;AACE,WAAO,SAAS,MAAM,MAAM;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,MACX,YAAY;AAAA,IAChB,CAAG;AAAA,EACH;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony14.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const createHeaderBuilderMiddleware = require("./harmony19.cjs");
|
4
4
|
const jwtTokenPayload = require("./harmony17.cjs");
|
5
5
|
const UnauthorizedError = require("./harmony16.cjs");
|
6
|
-
const NewJwtIssuedEvent = require("./
|
6
|
+
const NewJwtIssuedEvent = require("./harmony113.cjs");
|
7
7
|
function JwtAuthHeaderBuilderMiddleware(props) {
|
8
8
|
return createHeaderBuilderMiddleware.createHeaderBuilderMiddleware(async (builder) => {
|
9
9
|
var _a, _b;
|
package/dist/harmony14.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createHeaderBuilderMiddleware } from "./harmony19.mjs";
|
2
2
|
import { parseJwtTokenPayload } from "./harmony17.mjs";
|
3
3
|
import { UnauthorizedError } from "./harmony16.mjs";
|
4
|
-
import { NewJwtIssuedEvent } from "./
|
4
|
+
import { NewJwtIssuedEvent } from "./harmony113.mjs";
|
5
5
|
function JwtAuthHeaderBuilderMiddleware(props) {
|
6
6
|
return createHeaderBuilderMiddleware(async (builder) => {
|
7
7
|
var _a, _b;
|
package/dist/harmony142.cjs
CHANGED
@@ -6,7 +6,7 @@ const content = require("./harmony143.cjs");
|
|
6
6
|
const types = require("./harmony2.cjs");
|
7
7
|
const clsx = require("./harmony73.cjs");
|
8
8
|
const TaskLanguageCompleted = require("./harmony153.cjs");
|
9
|
-
const TasksContext = require("./
|
9
|
+
const TasksContext = require("./harmony122.cjs");
|
10
10
|
const TaskLanguage_module = require("./harmony154.cjs");
|
11
11
|
const TaskLanguage = ({ language, task }) => {
|
12
12
|
const { getProjectUrl, langNameOnClick, langProgressOnClick } = TasksContext.useTasks();
|
package/dist/harmony142.mjs
CHANGED
@@ -4,7 +4,7 @@ import { isLanguageProgressCompleted, getStatusText } from "./harmony143.mjs";
|
|
4
4
|
import { SidebarTaskLanguageStatuses } from "./harmony2.mjs";
|
5
5
|
import { clsx } from "./harmony73.mjs";
|
6
6
|
import { TaskLanguageCompleted } from "./harmony153.mjs";
|
7
|
-
import { useTasks } from "./
|
7
|
+
import { useTasks } from "./harmony122.mjs";
|
8
8
|
import styles from "./harmony154.mjs";
|
9
9
|
const TaskLanguage = ({ language, task }) => {
|
10
10
|
const { getProjectUrl, langNameOnClick, langProgressOnClick } = useTasks();
|
package/dist/harmony153.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const React = require("react");
|
6
|
-
const TasksContext = require("./
|
6
|
+
const TasksContext = require("./harmony122.cjs");
|
7
7
|
const TaskLanguageCompleted = ({ task, language }) => {
|
8
8
|
const [loading, setLoading] = React.useState(false);
|
9
9
|
const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = React.useState(false);
|
package/dist/harmony153.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
2
|
import { ConfirmModal, Alert, Link } from "@lokalise/louis";
|
3
3
|
import { useState } from "react";
|
4
|
-
import { useTasks } from "./
|
4
|
+
import { useTasks } from "./harmony122.mjs";
|
5
5
|
const TaskLanguageCompleted = ({ task, language }) => {
|
6
6
|
const [loading, setLoading] = useState(false);
|
7
7
|
const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false);
|
package/dist/harmony17.cjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const jwtTokenPayload = require("./
|
3
|
+
const jwtTokenPayload = require("./harmony114.cjs");
|
4
4
|
function parseJwtTokenPayload(token) {
|
5
5
|
try {
|
6
6
|
const payload = token.split(".")[1];
|
package/dist/harmony17.mjs
CHANGED
package/dist/harmony25.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const useGetUserTokenQuery = require("./harmony48.cjs");
|
4
4
|
const React = require("react");
|
5
|
-
const NewJwtIssuedEvent = require("./
|
5
|
+
const NewJwtIssuedEvent = require("./harmony113.cjs");
|
6
6
|
const cookieTokenUtils = require("./harmony18.cjs");
|
7
7
|
function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
|
8
8
|
const csrf = cookieTokenUtils.getCsrfTokenFromCookie();
|
package/dist/harmony25.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useGetUserTokenQuery, getUserTokenKey } from "./harmony48.mjs";
|
2
2
|
import { useRef, useEffect } from "react";
|
3
|
-
import { NewJwtIssuedEvent } from "./
|
3
|
+
import { NewJwtIssuedEvent } from "./harmony113.mjs";
|
4
4
|
import { getCsrfTokenFromCookie } from "./harmony18.mjs";
|
5
5
|
function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
|
6
6
|
const csrf = getCsrfTokenFromCookie();
|
package/dist/harmony26.cjs
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const React = require("react");
|
4
4
|
const jwtTokenPayload = require("./harmony17.cjs");
|
5
|
-
const NewJwtIssuedEvent = require("./
|
5
|
+
const NewJwtIssuedEvent = require("./harmony113.cjs");
|
6
6
|
const cookieTokenUtils = require("./harmony18.cjs");
|
7
7
|
function useAuthenticatedSessionPayload() {
|
8
8
|
const [payload, setPayload] = React.useState();
|
package/dist/harmony26.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { useState, useEffect } from "react";
|
2
2
|
import { parseJwtTokenPayload } from "./harmony17.mjs";
|
3
|
-
import { NewJwtIssuedEvent } from "./
|
3
|
+
import { NewJwtIssuedEvent } from "./harmony113.mjs";
|
4
4
|
import { getJwtTokenFromCookie } from "./harmony18.mjs";
|
5
5
|
function useAuthenticatedSessionPayload() {
|
6
6
|
const [payload, setPayload] = useState();
|
package/dist/harmony66.cjs
CHANGED
@@ -11,6 +11,7 @@ const PROJECT_TYPE_SCHEMA = zod.z.union([
|
|
11
11
|
zod.z.literal("localization_files"),
|
12
12
|
zod.z.literal("paged_documents"),
|
13
13
|
zod.z.literal("marketing"),
|
14
|
+
zod.z.literal("marketing_integrations"),
|
14
15
|
zod.z.literal("content_integration")
|
15
16
|
]);
|
16
17
|
const PROJECT_SETTINGS_SCHEMA = zod.z.object({
|
package/dist/harmony66.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony66.cjs","sources":["../src/features/publicApi/types/projectTypes.ts"],"sourcesContent":["import {\n\tPERMISSION_ID_SCHEMA,\n\tPERMISSION_SCOPE_SCHEMA,\n} from '@features/publicApi/types/permissionTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\nimport { LANGUAGE_ISO_SCHEMA, LANGUAGE_STATISTICS_SCHEMA } from './languageTypes'\n\nexport const PROJECT_ID_SCHEMA = z.string().regex(/^[a-zA-Z0-9]{22}\\.\\d{8}$/)\nexport type ProjectId = z.infer<typeof PROJECT_ID_SCHEMA>\n\nexport const PROJECT_ID_OR_UUID_SCHEMA = z.union([PROJECT_ID_SCHEMA, z.string().uuid()])\nexport type ProjectIdOrUuid = z.infer<typeof PROJECT_ID_OR_UUID_SCHEMA>\n\nexport const PROJECT_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type ProjectApiBaseHeaders = z.infer<typeof PROJECT_API_BASE_HEADERS_SCHEMA>\n\nexport const PROJECT_TYPE_SCHEMA = z.union([\n\tz.literal('localization_files'),\n\tz.literal('paged_documents'),\n\tz.literal('marketing'),\n\tz.literal('content_integration'),\n])\n\nexport type ProjectType = z.infer<typeof PROJECT_TYPE_SCHEMA>\n\nexport const PROJECT_SETTINGS_SCHEMA = z.object({\n\tper_platform_key_names: z.boolean(),\n\treviewing: z.boolean(),\n\tauto_toggle_unverified: z.boolean(),\n\toffline_translation: z.boolean(),\n\tkey_editing: z.boolean(),\n\tbranching: z.boolean(),\n\tinline_machine_translations: z.boolean(),\n\tcustom_translation_statuses: z.boolean(),\n\tcustom_translation_statuses_allow_multiple: z.boolean(),\n\tsegmentation: z.boolean(),\n\tcontributor_preview_download_enabled: z.boolean(),\n})\n\nexport type ProjectSettings = z.infer<typeof PROJECT_SETTINGS_SCHEMA>\n\nexport const PROJECT_QA_ISSUES_SCHEMA = z.object({\n\tnot_reviewed: z.number(),\n\tunverified: z.number(),\n\tspelling_grammar: z.number(),\n\tinconsistent_placeholders: z.number(),\n\tinconsistent_html: z.number(),\n\tdifferent_number_of_urls: z.number(),\n\tdifferent_urls: z.number(),\n\tleading_whitespace: z.number(),\n\ttrailing_whitespace: z.number(),\n\tdifferent_number_of_email_address: z.number(),\n\tdifferent_email_address: z.number(),\n\tdifferent_brackets: z.number(),\n\tdifferent_numbers: z.number(),\n\tdouble_space: z.number(),\n\tspecial_placeholder: z.number(),\n\tunbalanced_brackets: z.number(),\n})\n\nexport type ProjectQaIssues = z.infer<typeof PROJECT_QA_ISSUES_SCHEMA>\n\nexport const PROJECT_STATISTICS_SCHEMA = z.object({\n\tprogress_total: z.number(),\n\tkeys_total: z.number(),\n\tteam: z.number(),\n\tbase_words: z.number(),\n\tqa_issues_total: z.number(),\n\tqa_issues: PROJECT_QA_ISSUES_SCHEMA,\n\tlanguages: z.array(LANGUAGE_STATISTICS_SCHEMA),\n})\n\nexport const PROJECT_SCHEMA = z.object({\n\tproject_id: PROJECT_ID_SCHEMA,\n\tuuid: z.string().uuid(),\n\tproject_type: PROJECT_TYPE_SCHEMA,\n\tname: z.string(),\n\tdescription: z.string(),\n\tcreated_at: z.string(),\n\tcreated_at_timestamp: z.number(),\n\tcreated_by: z.number(),\n\tcreated_by_email: z.string(),\n\tteam_id: z.number(),\n\tteam_uuid: z.string().uuid(),\n\tbase_language_id: z.number(),\n\tbase_language_iso: z.string(),\n\tbase_project_language_id: z.number(),\n\tbase_project_language_uuid: z.string().uuid(),\n\tsettings: PROJECT_SETTINGS_SCHEMA.optional(),\n\tstatistics: PROJECT_STATISTICS_SCHEMA.optional(),\n})\n\nexport type Project = z.infer<typeof PROJECT_SCHEMA>\n\nexport const CREATE_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tname: z.string(),\n\tteam_id: z.string(),\n\tbase_lang_iso: z.string(),\n\tlanguages: z.array(LANGUAGE_ISO_SCHEMA),\n\tproject_type: PROJECT_TYPE_SCHEMA,\n\tis_segmentation_enabled: z.boolean(),\n})\n\nexport type CreateProjectRequestBody = z.infer<typeof CREATE_PROJECT_REQUEST_BODY_SCHEMA>\n\nconst NUMBER_BOOLEAN_SCHEMA = z.union([z.literal(0), z.literal(1)])\n\nexport const LIST_PROJECTS_REQUEST_QUERY_SCHEMA = z.object({\n\tfilter_type: PROJECT_TYPE_SCHEMA.optional(),\n\tfilter_team_id: z.number().optional(),\n\tfilter_names: z.string().optional(),\n\tinclude_statistics: NUMBER_BOOLEAN_SCHEMA.optional(),\n\tinclude_settings: NUMBER_BOOLEAN_SCHEMA.optional(),\n\tlimit: z.number().optional(),\n\tpage: z.number().optional(),\n})\n\nexport type ListProjectsRequestQuery = z.infer<typeof LIST_PROJECTS_REQUEST_QUERY_SCHEMA>\n\nexport const LIST_PROJECTS_SUCCESS_RESPONSE_BODY = z.object({\n\tprojects: z.array(PROJECT_SCHEMA),\n})\n\nexport type ListProjectsSuccessResponseBody = z.infer<typeof LIST_PROJECTS_SUCCESS_RESPONSE_BODY>\n\nexport const PROJECT_ID_PATH_PARAM_SCHEMA = z.object({ projectId: PROJECT_ID_OR_UUID_SCHEMA })\nexport type ProjectIdPathParam = z.infer<typeof PROJECT_ID_PATH_PARAM_SCHEMA>\n\nexport const UPDATE_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tname: z.string().min(1),\n\tdescription: z.string().optional(),\n})\n\nexport type UpdateProjectRequestBody = z.infer<typeof UPDATE_PROJECT_REQUEST_BODY_SCHEMA>\n\nconst PROJECT_PERMISSION_DETAILS_META_SCHEMA = z.object({\n\tid: PERMISSION_ID_SCHEMA,\n\tscope: PERMISSION_SCOPE_SCHEMA,\n\ttitle: z.string(),\n\tgroup: z.string(),\n\tdescription: z.string().nullable(),\n\tdependentPermissions: z.array(PERMISSION_ID_SCHEMA).optional(),\n\tdoesSetAllReadOnlyLanguages: z.boolean(),\n\tnewPermission: z.boolean().optional(),\n\tisHidden: z.boolean().optional(),\n})\n\nexport type ProjectPermissionDetailsMeta = z.infer<typeof PROJECT_PERMISSION_DETAILS_META_SCHEMA>\n\nconst PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA = z.object({\n\tid: z.number(),\n\trole: z.string(),\n\tpermissions: z.array(PERMISSION_ID_SCHEMA),\n\tdescription: z.string().nullable(),\n\ttag: z.string().nullable(),\n\ttagColor: z.string().nullable(),\n\ttagInfo: z.string().nullable(),\n\tisForMarketingProjects: z.boolean(),\n\tdoesEnableAllReadOnlyLanguages: z.boolean(),\n})\n\nexport type ProjectPermissionTemplateDetailsMeta = z.infer<\n\ttypeof PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA\n>\n\nexport const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA = z.object({\n\tproject_id: PROJECT_ID_SCHEMA,\n\tproject_uuid: z.string().uuid(),\n\tpermissions: z.array(PROJECT_PERMISSION_DETAILS_META_SCHEMA),\n\troles: z.array(PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA),\n})\n\nexport type GetProjectPermissionMetaResponseBody = z.infer<\n\ttypeof GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA\n>\n\nexport const DELETE_PROJECT_RESPONSE_SCHEMA = z.object({\n\tproject_id: PROJECT_ID_SCHEMA,\n\tproject_deleted: z.boolean(),\n})\n\nexport type DeleteProjectResponse = z.infer<typeof DELETE_PROJECT_RESPONSE_SCHEMA>\n"],"names":["z","BASE_API_ENDPOINT_HEADER_SCHEMA","LANGUAGE_STATISTICS_SCHEMA","LANGUAGE_ISO_SCHEMA","PERMISSION_ID_SCHEMA","PERMISSION_SCOPE_SCHEMA"],"mappings":";;;;;;AAQO,MAAM,oBAAoBA,IAAA,EAAE,OAAO,EAAE,MAAM,0BAA0B;AAG/D,MAAA,4BAA4BA,IAAAA,EAAE,MAAM,CAAC,mBAAmBA,IAAAA,EAAE,OAAO,EAAE,MAAM,CAAC;AAGhF,MAAM,kCAAkCC,YAAAA;AAIlC,MAAA,sBAAsBD,MAAE,MAAM;AAAA,EAC1CA,IAAA,EAAE,QAAQ,oBAAoB;AAAA,EAC9BA,IAAA,EAAE,QAAQ,iBAAiB;AAAA,EAC3BA,IAAA,EAAE,QAAQ,WAAW;AAAA,EACrBA,IAAA,EAAE,QAAQ,qBAAqB;AAChC,CAAC;AAIY,MAAA,0BAA0BA,MAAE,OAAO;AAAA,EAC/C,wBAAwBA,MAAE,QAAQ;AAAA,EAClC,WAAWA,MAAE,QAAQ;AAAA,EACrB,wBAAwBA,MAAE,QAAQ;AAAA,EAClC,qBAAqBA,MAAE,QAAQ;AAAA,EAC/B,aAAaA,MAAE,QAAQ;AAAA,EACvB,WAAWA,MAAE,QAAQ;AAAA,EACrB,6BAA6BA,MAAE,QAAQ;AAAA,EACvC,6BAA6BA,MAAE,QAAQ;AAAA,EACvC,4CAA4CA,MAAE,QAAQ;AAAA,EACtD,cAAcA,MAAE,QAAQ;AAAA,EACxB,sCAAsCA,MAAE,QAAQ;AACjD,CAAC;AAIY,MAAA,2BAA2BA,MAAE,OAAO;AAAA,EAChD,cAAcA,MAAE,OAAO;AAAA,EACvB,YAAYA,MAAE,OAA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COPE_SCHEMA,\n} from '@features/publicApi/types/permissionTypes'\nimport { BASE_API_ENDPOINT_HEADER_SCHEMA } from '@features/publicApi/types/sharedTypes'\nimport { z } from 'zod'\nimport { LANGUAGE_ISO_SCHEMA, LANGUAGE_STATISTICS_SCHEMA } from './languageTypes'\n\nexport const PROJECT_ID_SCHEMA = z.string().regex(/^[a-zA-Z0-9]{22}\\.\\d{8}$/)\nexport type ProjectId = z.infer<typeof PROJECT_ID_SCHEMA>\n\nexport const PROJECT_ID_OR_UUID_SCHEMA = z.union([PROJECT_ID_SCHEMA, z.string().uuid()])\nexport type ProjectIdOrUuid = z.infer<typeof PROJECT_ID_OR_UUID_SCHEMA>\n\nexport const PROJECT_API_BASE_HEADERS_SCHEMA = BASE_API_ENDPOINT_HEADER_SCHEMA\n\nexport type ProjectApiBaseHeaders = z.infer<typeof PROJECT_API_BASE_HEADERS_SCHEMA>\n\nexport const PROJECT_TYPE_SCHEMA = z.union([\n\tz.literal('localization_files'),\n\tz.literal('paged_documents'),\n\tz.literal('marketing'),\n\tz.literal('marketing_integrations'),\n\tz.literal('content_integration'),\n])\n\nexport type ProjectType = z.infer<typeof PROJECT_TYPE_SCHEMA>\n\nexport const PROJECT_SETTINGS_SCHEMA = z.object({\n\tper_platform_key_names: z.boolean(),\n\treviewing: z.boolean(),\n\tauto_toggle_unverified: z.boolean(),\n\toffline_translation: z.boolean(),\n\tkey_editing: z.boolean(),\n\tbranching: z.boolean(),\n\tinline_machine_translations: z.boolean(),\n\tcustom_translation_statuses: z.boolean(),\n\tcustom_translation_statuses_allow_multiple: z.boolean(),\n\tsegmentation: z.boolean(),\n\tcontributor_preview_download_enabled: z.boolean(),\n})\n\nexport type ProjectSettings = z.infer<typeof PROJECT_SETTINGS_SCHEMA>\n\nexport const PROJECT_QA_ISSUES_SCHEMA = z.object({\n\tnot_reviewed: z.number(),\n\tunverified: z.number(),\n\tspelling_grammar: z.number(),\n\tinconsistent_placeholders: z.number(),\n\tinconsistent_html: z.number(),\n\tdifferent_number_of_urls: z.number(),\n\tdifferent_urls: z.number(),\n\tleading_whitespace: z.number(),\n\ttrailing_whitespace: z.number(),\n\tdifferent_number_of_email_address: z.number(),\n\tdifferent_email_address: z.number(),\n\tdifferent_brackets: z.number(),\n\tdifferent_numbers: z.number(),\n\tdouble_space: z.number(),\n\tspecial_placeholder: z.number(),\n\tunbalanced_brackets: z.number(),\n})\n\nexport type ProjectQaIssues = z.infer<typeof PROJECT_QA_ISSUES_SCHEMA>\n\nexport const PROJECT_STATISTICS_SCHEMA = z.object({\n\tprogress_total: z.number(),\n\tkeys_total: z.number(),\n\tteam: z.number(),\n\tbase_words: z.number(),\n\tqa_issues_total: z.number(),\n\tqa_issues: PROJECT_QA_ISSUES_SCHEMA,\n\tlanguages: z.array(LANGUAGE_STATISTICS_SCHEMA),\n})\n\nexport const PROJECT_SCHEMA = z.object({\n\tproject_id: PROJECT_ID_SCHEMA,\n\tuuid: z.string().uuid(),\n\tproject_type: PROJECT_TYPE_SCHEMA,\n\tname: z.string(),\n\tdescription: z.string(),\n\tcreated_at: z.string(),\n\tcreated_at_timestamp: z.number(),\n\tcreated_by: z.number(),\n\tcreated_by_email: z.string(),\n\tteam_id: z.number(),\n\tteam_uuid: z.string().uuid(),\n\tbase_language_id: z.number(),\n\tbase_language_iso: z.string(),\n\tbase_project_language_id: z.number(),\n\tbase_project_language_uuid: z.string().uuid(),\n\tsettings: PROJECT_SETTINGS_SCHEMA.optional(),\n\tstatistics: PROJECT_STATISTICS_SCHEMA.optional(),\n})\n\nexport type Project = z.infer<typeof PROJECT_SCHEMA>\n\nexport const CREATE_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tname: z.string(),\n\tteam_id: z.string(),\n\tbase_lang_iso: z.string(),\n\tlanguages: z.array(LANGUAGE_ISO_SCHEMA),\n\tproject_type: PROJECT_TYPE_SCHEMA,\n\tis_segmentation_enabled: z.boolean(),\n})\n\nexport type CreateProjectRequestBody = z.infer<typeof CREATE_PROJECT_REQUEST_BODY_SCHEMA>\n\nconst NUMBER_BOOLEAN_SCHEMA = z.union([z.literal(0), z.literal(1)])\n\nexport const LIST_PROJECTS_REQUEST_QUERY_SCHEMA = z.object({\n\tfilter_type: PROJECT_TYPE_SCHEMA.optional(),\n\tfilter_team_id: z.number().optional(),\n\tfilter_names: z.string().optional(),\n\tinclude_statistics: NUMBER_BOOLEAN_SCHEMA.optional(),\n\tinclude_settings: NUMBER_BOOLEAN_SCHEMA.optional(),\n\tlimit: z.number().optional(),\n\tpage: z.number().optional(),\n})\n\nexport type ListProjectsRequestQuery = z.infer<typeof LIST_PROJECTS_REQUEST_QUERY_SCHEMA>\n\nexport const LIST_PROJECTS_SUCCESS_RESPONSE_BODY = z.object({\n\tprojects: z.array(PROJECT_SCHEMA),\n})\n\nexport type ListProjectsSuccessResponseBody = z.infer<typeof LIST_PROJECTS_SUCCESS_RESPONSE_BODY>\n\nexport const PROJECT_ID_PATH_PARAM_SCHEMA = z.object({ projectId: PROJECT_ID_OR_UUID_SCHEMA })\nexport type ProjectIdPathParam = z.infer<typeof PROJECT_ID_PATH_PARAM_SCHEMA>\n\nexport const UPDATE_PROJECT_REQUEST_BODY_SCHEMA = z.object({\n\tname: z.string().min(1),\n\tdescription: z.string().optional(),\n})\n\nexport type UpdateProjectRequestBody = z.infer<typeof UPDATE_PROJECT_REQUEST_BODY_SCHEMA>\n\nconst PROJECT_PERMISSION_DETAILS_META_SCHEMA = z.object({\n\tid: PERMISSION_ID_SCHEMA,\n\tscope: PERMISSION_SCOPE_SCHEMA,\n\ttitle: z.string(),\n\tgroup: z.string(),\n\tdescription: z.string().nullable(),\n\tdependentPermissions: z.array(PERMISSION_ID_SCHEMA).optional(),\n\tdoesSetAllReadOnlyLanguages: z.boolean(),\n\tnewPermission: z.boolean().optional(),\n\tisHidden: z.boolean().optional(),\n})\n\nexport type ProjectPermissionDetailsMeta = z.infer<typeof PROJECT_PERMISSION_DETAILS_META_SCHEMA>\n\nconst PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA = z.object({\n\tid: z.number(),\n\trole: z.string(),\n\tpermissions: z.array(PERMISSION_ID_SCHEMA),\n\tdescription: z.string().nullable(),\n\ttag: z.string().nullable(),\n\ttagColor: z.string().nullable(),\n\ttagInfo: z.string().nullable(),\n\tisForMarketingProjects: z.boolean(),\n\tdoesEnableAllReadOnlyLanguages: z.boolean(),\n})\n\nexport type ProjectPermissionTemplateDetailsMeta = z.infer<\n\ttypeof PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA\n>\n\nexport const GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA = z.object({\n\tproject_id: PROJECT_ID_SCHEMA,\n\tproject_uuid: z.string().uuid(),\n\tpermissions: z.array(PROJECT_PERMISSION_DETAILS_META_SCHEMA),\n\troles: z.array(PROJECT_PERMISSION_TEMPLATE_DETAILS_META_SCHEMA),\n})\n\nexport type GetProjectPermissionMetaResponseBody = z.infer<\n\ttypeof GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA\n>\n\nexport const DELETE_PROJECT_RESPONSE_SCHEMA = z.object({\n\tproject_id: PROJECT_ID_SCHEMA,\n\tproject_deleted: z.boolean(),\n})\n\nexport type DeleteProjectResponse = z.infer<typeof DELETE_PROJECT_RESPONSE_SCHEMA>\n"],"names":["z","BASE_API_ENDPOINT_HEADER_SCHEMA","LANGUAGE_STATISTICS_SCHEMA","LANGUAGE_ISO_SCHEMA","PERMISSION_ID_SCHEMA","PERMISSION_SCOPE_SCHEMA"],"mappings":";;;;;;AAQO,MAAM,oBAAoBA,IAAA,EAAE,OAAO,EAAE,MAAM,0BAA0B;AAG/D,MAAA,4BAA4BA,IAAAA,EAAE,MAAM,CAAC,mBAAmBA,IAAAA,EAAE,OAAO,EAAE,MAAM,CAAC;AAGhF,MAAM,kCAAkCC,YAAAA;AAIlC,MAAA,sBAAsBD,MAAE,MAAM;AAAA,EAC1CA,IAAA,EAAE,QAAQ,oBAAoB;AAAA,EAC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