@lokalise/harmony 1.27.3-exp-fixTeamsTypes.8 → 1.27.3-exp-teamTypes.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/harmony100.cjs +7 -5
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +7 -5
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +18 -40
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +18 -40
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +13 -59
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -59
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +16 -7
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +16 -7
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -5
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +6 -5
- package/dist/harmony105.cjs +5 -5
- package/dist/harmony105.mjs +5 -5
- package/dist/harmony106.cjs +5 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -6
- package/dist/harmony107.cjs +61 -95
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +61 -95
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +88 -13
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +88 -13
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +19 -15
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +18 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +94 -34
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +94 -34
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +11 -26
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +11 -26
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +12 -60
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +12 -60
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +36 -88
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +36 -88
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +29 -19
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +28 -18
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +7 -13
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +7 -13
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +57 -15
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +57 -15
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +59 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +59 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +19 -12
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +18 -11
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +12 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +12 -15
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +13 -19
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +13 -19
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +14 -10
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +14 -10
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +11 -7
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +11 -7
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +15 -56
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +15 -56
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -59
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -59
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +13 -19
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +12 -18
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +46 -6
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +46 -6
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +13 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +12 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +5 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +5 -31
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +11 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -13
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +31 -45
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +31 -45
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +15 -13
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +1 -1
- package/dist/harmony22.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony30.cjs +1 -1
- package/dist/harmony30.mjs +1 -1
- package/dist/harmony66.cjs +1 -1
- package/dist/harmony66.mjs +1 -1
- package/dist/harmony67.cjs +1 -1
- package/dist/harmony67.mjs +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony69.cjs +2 -2
- package/dist/harmony69.mjs +2 -2
- package/dist/harmony70.cjs +2 -2
- package/dist/harmony70.mjs +2 -2
- package/dist/harmony71.cjs +2 -2
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +2 -2
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +3 -3
- package/dist/harmony73.mjs +3 -3
- package/dist/harmony74.cjs +6 -6
- package/dist/harmony74.mjs +6 -6
- package/dist/harmony77.cjs +2 -2
- package/dist/harmony77.mjs +2 -2
- package/dist/harmony79.cjs +7 -12
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +6 -11
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +8 -20
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +8 -20
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +6 -3
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +6 -3
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +57 -9
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +56 -8
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +33 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +32 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +5 -57
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +5 -57
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -32
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -31
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +25 -6
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +24 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +3 -6
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +3 -6
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +21 -24
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +20 -23
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +9 -3
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +9 -3
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +9 -19
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +11 -21
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +20 -11
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +20 -11
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +2 -2
- package/dist/harmony92.mjs +2 -2
- package/dist/harmony93.cjs +22 -17
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +21 -16
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +6 -18
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +6 -18
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +130 -12
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +130 -12
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +9 -18
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +9 -18
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -5
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -5
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +37 -129
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +37 -129
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +60 -12
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +59 -11
- package/dist/harmony99.mjs.map +1 -1
- package/package.json +1 -1
package/dist/harmony117.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony117.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony117.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/utils/content.ts"],"sourcesContent":["import {\n\ttype SidebarTask,\n\ttype SidebarTaskLanguage,\n\ttype SidebarTaskLanguageStatus,\n\tSidebarTaskLanguageStatuses,\n\ttype SidebarTaskStatus,\n\tSidebarTaskStatuses,\n\ttype SidebarTaskTypeOption,\n\tSidebarTaskTypeOptions,\n} from '../types'\n\nexport const getStatusText = (status: SidebarTaskLanguageStatus, progressValue: number) => {\n\tswitch (status) {\n\t\tcase SidebarTaskLanguageStatuses.Completed:\n\t\t\treturn progressValue < 100 ? 'Closed' : 'Completed'\n\t\tcase SidebarTaskLanguageStatuses.Created:\n\t\t\t// For some reason project task lang status is not correctly updated to \"in progress\". So instead\n\t\t\t// we need to rely on `created` status and progress value is not 0.\n\t\t\treturn progressValue > 0 ? 'In progress' : 'Not started'\n\t\tcase SidebarTaskLanguageStatuses.InProgress:\n\t\t\treturn 'In progress'\n\t\tcase SidebarTaskLanguageStatuses.Queued:\n\t\t\treturn 'Queued'\n\t\tcase SidebarTaskLanguageStatuses.NotStarted:\n\t\t\treturn 'Not started'\n\t\tdefault:\n\t\t\treturn '-'\n\t}\n}\n\nexport const resolveStatus = (language: SidebarTaskLanguage): SidebarTaskLanguageStatus => {\n\tconst progress = language.progress ?? 0\n\n\tif (language.status === SidebarTaskLanguageStatuses.Created && progress > 0) {\n\t\t// For some reason project task lang status is not correctly updated to \"in progress\". So instead\n\t\t// we need to rely on `created` status and progress value is not 0.\n\t\treturn SidebarTaskLanguageStatuses.InProgress\n\t}\n\n\treturn language.status\n}\n\n/**\n * TODO - these should be taken from louis\n */\nexport const tagColor: Record<SidebarTaskTypeOption, string> = {\n\t[SidebarTaskTypeOptions.translation]: '#0891B2',\n\t[SidebarTaskTypeOptions.review]: '#16922D',\n\t[SidebarTaskTypeOptions.lqa_by_ai]: '#8B5CF6',\n\t[SidebarTaskTypeOptions.automatic_translation]: '#60A5FA',\n}\n\nexport const getTaskLanguages = (langs: SidebarTaskLanguage[]) => {\n\tconst statusSortOrder: SidebarTaskLanguageStatus[] = [\n\t\tSidebarTaskLanguageStatuses.InProgress,\n\t\tSidebarTaskLanguageStatuses.Created,\n\t\tSidebarTaskLanguageStatuses.Completed,\n\t]\n\n\treturn langs\n\t\t.filter((language) => language.status !== 'queued')\n\t\t.map((lang) => ({ ...lang, status: resolveStatus(lang) }))\n\t\t.sort((a, b) => {\n\t\t\tif (a.status === SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {\n\t\t\t\treturn -1\n\t\t\t}\n\n\t\t\tif (b.status === SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {\n\t\t\t\treturn 1\n\t\t\t}\n\n\t\t\tif (a.status === b.status) {\n\t\t\t\t// Order by lang id\n\t\t\t\treturn a.name < b.name ? 1 : -1\n\t\t\t}\n\n\t\t\t// The index of array will serve as sorting order so if we get `in_progress` for \"a\" and `created`\n\t\t\t// for b, they will have `0` and `1` indices. So `0 - 1` will result in `-1` which means\n\t\t\t// \"a\" will be sorted before \"b\".\n\t\t\treturn statusSortOrder.indexOf(a.status) - statusSortOrder.indexOf(b.status)\n\t\t})\n}\n\nconst isInProgressOrCreated = (status: SidebarTaskLanguageStatus | SidebarTaskStatus): boolean => {\n\t// @ts-ignore - complaints about status missing completed and other statuses\n\treturn [SidebarTaskStatuses.InProgress, SidebarTaskStatuses.Created].includes(status)\n}\n\nexport const isLanguageProgressCompleted = (\n\ttask: SidebarTask,\n\tlanguage: SidebarTaskLanguage,\n): boolean => {\n\treturn (\n\t\tisInProgressOrCreated(task.status) &&\n\t\tisInProgressOrCreated(language.status) &&\n\t\t(language.progress ?? 0) >= 100\n\t)\n}\n"],"names":[],"mappings":";AAWa,MAAA,gBAAgB,CAAC,QAAmC,kBAA0B;AAC1F,UAAQ,QAAQ;AAAA,IACf,KAAK,4BAA4B;AACzB,aAAA,gBAAgB,MAAM,WAAW;AAAA,IACzC,KAAK,4BAA4B;AAGzB,aAAA,gBAAgB,IAAI,gBAAgB;AAAA,IAC5C,KAAK,4BAA4B;AACzB,aAAA;AAAA,IACR,KAAK,4BAA4B;AACzB,aAAA;AAAA,IACR,KAAK,4BAA4B;AACzB,aAAA;AAAA,IACR;AACQ,aAAA;AAAA,EAAA;AAEV;AAEa,MAAA,gBAAgB,CAAC,aAA6D;AACpF,QAAA,WAAW,SAAS,YAAY;AAEtC,MAAI,SAAS,WAAW,4BAA4B,WAAW,WAAW,GAAG;AAG5E,WAAO,4BAA4B;AAAA,EAAA;AAGpC,SAAO,SAAS;AACjB;AAKO,MAAM,WAAkD;AAAA,EAC9D,CAAC,uBAAuB,WAAW,GAAG;AAAA,EACtC,CAAC,uBAAuB,MAAM,GAAG;AAAA,EACjC,CAAC,uBAAuB,SAAS,GAAG;AAAA,EACpC,CAAC,uBAAuB,qBAAqB,GAAG;AACjD;AAEa,MAAA,mBAAmB,CAAC,UAAiC;AACjE,QAAM,kBAA+C;AAAA,IACpD,4BAA4B;AAAA,IAC5B,4BAA4B;AAAA,IAC5B,4BAA4B;AAAA,EAC7B;AAEO,SAAA,MACL,OAAO,CAAC,aAAa,SAAS,WAAW,QAAQ,EACjD,IAAI,CAAC,UAAU,EAAE,GAAG,MAAM,QAAQ,cAAc,IAAI,EAAA,EAAI,EACxD,KAAK,CAAC,GAAG,MAAM;AACf,QAAI,EAAE,WAAW,4BAA4B,cAAc,EAAE,aAAa,KAAK;AACvE,aAAA;AAAA,IAAA;AAGR,QAAI,EAAE,WAAW,4BAA4B,cAAc,EAAE,aAAa,KAAK;AACvE,aAAA;AAAA,IAAA;AAGJ,QAAA,EAAE,WAAW,EAAE,QAAQ;AAE1B,aAAO,EAAE,OAAO,EAAE,OAAO,IAAI;AAAA,IAAA;AAMvB,WAAA,gBAAgB,QAAQ,EAAE,MAAM,IAAI,gBAAgB,QAAQ,EAAE,MAAM;AAAA,EAAA,CAC3E;AACH;AAEA,MAAM,wBAAwB,CAAC,WAAmE;AAEjG,SAAO,CAAC,oBAAoB,YAAY,oBAAoB,OAAO,EAAE,SAAS,MAAM;AACrF;AAEa,MAAA,8BAA8B,CAC1C,MACA,aACa;AAEZ,SAAA,sBAAsB,KAAK,MAAM,KACjC,sBAAsB,SAAS,MAAM,MACpC,SAAS,YAAY,MAAM;AAE9B;"}
|
package/dist/harmony118.cjs
CHANGED
@@ -1,14 +1,21 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const taskContainer = "_taskContainer_mt2or_1";
|
4
|
+
const taskTitle = "_taskTitle_mt2or_21";
|
5
|
+
const taskDescription = "_taskDescription_mt2or_28";
|
6
|
+
const languagesTable = "_languagesTable_mt2or_35";
|
7
|
+
const metadata = "_metadata_mt2or_87";
|
8
|
+
const styles = {
|
9
|
+
taskContainer,
|
10
|
+
taskTitle,
|
11
|
+
taskDescription,
|
12
|
+
languagesTable,
|
13
|
+
metadata
|
14
|
+
};
|
15
|
+
exports.default = styles;
|
16
|
+
exports.languagesTable = languagesTable;
|
17
|
+
exports.metadata = metadata;
|
18
|
+
exports.taskContainer = taskContainer;
|
19
|
+
exports.taskDescription = taskDescription;
|
20
|
+
exports.taskTitle = taskTitle;
|
14
21
|
//# sourceMappingURL=harmony118.cjs.map
|
package/dist/harmony118.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony118.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony118.mjs
CHANGED
@@ -1,14 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
const taskContainer = "_taskContainer_mt2or_1";
|
2
|
+
const taskTitle = "_taskTitle_mt2or_21";
|
3
|
+
const taskDescription = "_taskDescription_mt2or_28";
|
4
|
+
const languagesTable = "_languagesTable_mt2or_35";
|
5
|
+
const metadata = "_metadata_mt2or_87";
|
6
|
+
const styles = {
|
7
|
+
taskContainer,
|
8
|
+
taskTitle,
|
9
|
+
taskDescription,
|
10
|
+
languagesTable,
|
11
|
+
metadata
|
12
|
+
};
|
11
13
|
export {
|
12
|
-
|
14
|
+
styles as default,
|
15
|
+
languagesTable,
|
16
|
+
metadata,
|
17
|
+
taskContainer,
|
18
|
+
taskDescription,
|
19
|
+
taskTitle
|
13
20
|
};
|
14
21
|
//# sourceMappingURL=harmony118.mjs.map
|
package/dist/harmony118.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony118.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/harmony119.cjs
CHANGED
@@ -1,19 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
var
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
_trimmedEndIndex = trimmedEndIndex;
|
16
|
-
return _trimmedEndIndex;
|
3
|
+
const _freeGlobal = require("./harmony122.cjs");
|
4
|
+
var _root;
|
5
|
+
var hasRequired_root;
|
6
|
+
function require_root() {
|
7
|
+
if (hasRequired_root) return _root;
|
8
|
+
hasRequired_root = 1;
|
9
|
+
var freeGlobal = _freeGlobal.__require();
|
10
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
11
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
12
|
+
_root = root;
|
13
|
+
return _root;
|
17
14
|
}
|
18
|
-
exports.__require =
|
15
|
+
exports.__require = require_root;
|
19
16
|
//# sourceMappingURL=harmony119.cjs.map
|
package/dist/harmony119.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony119.cjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony119.mjs
CHANGED
@@ -1,19 +1,16 @@
|
|
1
|
-
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
_trimmedEndIndex = trimmedEndIndex;
|
14
|
-
return _trimmedEndIndex;
|
1
|
+
import { __require as require_freeGlobal } from "./harmony122.mjs";
|
2
|
+
var _root;
|
3
|
+
var hasRequired_root;
|
4
|
+
function require_root() {
|
5
|
+
if (hasRequired_root) return _root;
|
6
|
+
hasRequired_root = 1;
|
7
|
+
var freeGlobal = require_freeGlobal();
|
8
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
9
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
10
|
+
_root = root;
|
11
|
+
return _root;
|
15
12
|
}
|
16
13
|
export {
|
17
|
-
|
14
|
+
require_root as __require
|
18
15
|
};
|
19
16
|
//# sourceMappingURL=harmony119.mjs.map
|
package/dist/harmony119.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony119.mjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,aAAaA,mBAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony120.cjs
CHANGED
@@ -1,24 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
14
|
-
function baseGetTag(value) {
|
15
|
-
if (value == null) {
|
16
|
-
return value === void 0 ? undefinedTag : nullTag;
|
17
|
-
}
|
18
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
3
|
+
const _trimmedEndIndex = require("./harmony123.cjs");
|
4
|
+
var _baseTrim;
|
5
|
+
var hasRequired_baseTrim;
|
6
|
+
function require_baseTrim() {
|
7
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
8
|
+
hasRequired_baseTrim = 1;
|
9
|
+
var trimmedEndIndex = _trimmedEndIndex.__require();
|
10
|
+
var reTrimStart = /^\s+/;
|
11
|
+
function baseTrim(string) {
|
12
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
19
13
|
}
|
20
|
-
|
21
|
-
return
|
14
|
+
_baseTrim = baseTrim;
|
15
|
+
return _baseTrim;
|
22
16
|
}
|
23
|
-
exports.__require =
|
17
|
+
exports.__require = require_baseTrim;
|
24
18
|
//# sourceMappingURL=harmony120.cjs.map
|
package/dist/harmony120.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony120.cjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,kBAAkBA,iBAAAA,UAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony120.mjs
CHANGED
@@ -1,24 +1,18 @@
|
|
1
|
-
import { __require as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
12
|
-
function baseGetTag(value) {
|
13
|
-
if (value == null) {
|
14
|
-
return value === void 0 ? undefinedTag : nullTag;
|
15
|
-
}
|
16
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
1
|
+
import { __require as require_trimmedEndIndex } from "./harmony123.mjs";
|
2
|
+
var _baseTrim;
|
3
|
+
var hasRequired_baseTrim;
|
4
|
+
function require_baseTrim() {
|
5
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
6
|
+
hasRequired_baseTrim = 1;
|
7
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
8
|
+
var reTrimStart = /^\s+/;
|
9
|
+
function baseTrim(string) {
|
10
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
17
11
|
}
|
18
|
-
|
19
|
-
return
|
12
|
+
_baseTrim = baseTrim;
|
13
|
+
return _baseTrim;
|
20
14
|
}
|
21
15
|
export {
|
22
|
-
|
16
|
+
require_baseTrim as __require
|
23
17
|
};
|
24
18
|
//# sourceMappingURL=harmony120.mjs.map
|
package/dist/harmony120.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony120.mjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,kBAAkBA,wBAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony121.cjs
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
const _baseGetTag = require("./harmony124.cjs");
|
4
|
+
const isObjectLike = require("./harmony125.cjs");
|
5
|
+
var isSymbol_1;
|
6
|
+
var hasRequiredIsSymbol;
|
7
|
+
function requireIsSymbol() {
|
8
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
9
|
+
hasRequiredIsSymbol = 1;
|
10
|
+
var baseGetTag = _baseGetTag.__require(), isObjectLike$1 = isObjectLike.__require();
|
11
|
+
var symbolTag = "[object Symbol]";
|
12
|
+
function isSymbol(value) {
|
13
|
+
return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag(value) == symbolTag;
|
10
14
|
}
|
11
|
-
|
12
|
-
return
|
15
|
+
isSymbol_1 = isSymbol;
|
16
|
+
return isSymbol_1;
|
13
17
|
}
|
14
|
-
exports.__require =
|
18
|
+
exports.__require = requireIsSymbol;
|
15
19
|
//# sourceMappingURL=harmony121.cjs.map
|
package/dist/harmony121.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony121.cjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","isObjectLike","require$$1"],"mappings":";;;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB,GACrCC,iBAAeC,aAAAA,UAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpBD,eAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony121.mjs
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { __require as require_baseGetTag } from "./harmony124.mjs";
|
2
|
+
import { __require as requireIsObjectLike } from "./harmony125.mjs";
|
3
|
+
var isSymbol_1;
|
4
|
+
var hasRequiredIsSymbol;
|
5
|
+
function requireIsSymbol() {
|
6
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
7
|
+
hasRequiredIsSymbol = 1;
|
8
|
+
var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
|
9
|
+
var symbolTag = "[object Symbol]";
|
10
|
+
function isSymbol(value) {
|
11
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
8
12
|
}
|
9
|
-
|
10
|
-
return
|
13
|
+
isSymbol_1 = isSymbol;
|
14
|
+
return isSymbol_1;
|
11
15
|
}
|
12
16
|
export {
|
13
|
-
|
17
|
+
requireIsSymbol as __require
|
14
18
|
};
|
15
19
|
//# sourceMappingURL=harmony121.mjs.map
|
package/dist/harmony121.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony121.mjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,aAAaA,mBAAwB,GACrC,eAAeC,oBAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpB,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony122.cjs
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
const _commonjsHelpers = require("./harmony128.cjs");
|
4
|
+
var _freeGlobal;
|
5
|
+
var hasRequired_freeGlobal;
|
6
|
+
function require_freeGlobal() {
|
7
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
8
|
+
hasRequired_freeGlobal = 1;
|
9
|
+
var freeGlobal = typeof _commonjsHelpers.commonjsGlobal == "object" && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
|
10
|
+
_freeGlobal = freeGlobal;
|
11
|
+
return _freeGlobal;
|
12
|
+
}
|
13
|
+
exports.__require = require_freeGlobal;
|
10
14
|
//# sourceMappingURL=harmony122.cjs.map
|
package/dist/harmony122.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony122.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony122.cjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;;;AACA,MAAI,aAAa,OAAOA,iBAAAA,kBAAU,YAAYA,iBAAM,kBAAIA,gCAAO,WAAW,UAAUA,iBAAM;AAE1F,gBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony122.mjs
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { commonjsGlobal } from "./harmony128.mjs";
|
2
|
+
var _freeGlobal;
|
3
|
+
var hasRequired_freeGlobal;
|
4
|
+
function require_freeGlobal() {
|
5
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
6
|
+
hasRequired_freeGlobal = 1;
|
7
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
8
|
+
_freeGlobal = freeGlobal;
|
9
|
+
return _freeGlobal;
|
10
|
+
}
|
7
11
|
export {
|
8
|
-
|
12
|
+
require_freeGlobal as __require
|
9
13
|
};
|
10
14
|
//# sourceMappingURL=harmony122.mjs.map
|
package/dist/harmony122.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony122.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony122.mjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;AACA,MAAI,aAAa,OAAOA,kBAAU,YAAYA,kBAAUA,eAAO,WAAW,UAAUA;AAEpF,gBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony123.cjs
CHANGED
@@ -1,60 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
const { getProjectUrl, langNameOnClick, langProgressOnClick } = TasksContext.useTasks();
|
13
|
-
const progressValue = language.progress ?? 0;
|
14
|
-
const isLanguageCompleted = language.status === types.SidebarTaskLanguageStatuses.Completed;
|
15
|
-
const languageProgressCompleted = content.isLanguageProgressCompleted(task, language);
|
16
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
17
|
-
"tr",
|
18
|
-
{
|
19
|
-
className: clsx.clsx({
|
20
|
-
[TaskLanguage_module.default.langRowCompleted]: languageProgressCompleted
|
21
|
-
}),
|
22
|
-
children: [
|
23
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
24
|
-
louis.Link,
|
25
|
-
{
|
26
|
-
href: getProjectUrl({ task, language }),
|
27
|
-
onClick: () => {
|
28
|
-
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
29
|
-
},
|
30
|
-
children: language.name
|
31
|
-
}
|
32
|
-
) }) }),
|
33
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { className: TaskLanguage_module.default.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsxRuntime.jsx(
|
34
|
-
louis.Link,
|
35
|
-
{
|
36
|
-
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
37
|
-
onClick: () => {
|
38
|
-
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
39
|
-
},
|
40
|
-
children: language.base_words_total - language.base_words_done
|
41
|
-
}
|
42
|
-
) }) }),
|
43
|
-
/* @__PURE__ */ jsxRuntime.jsxs("td", { children: [
|
44
|
-
progressValue,
|
45
|
-
"%"
|
46
|
-
] }),
|
47
|
-
/* @__PURE__ */ jsxRuntime.jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsxRuntime.jsx(TaskLanguageCompleted.TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsxRuntime.jsx(
|
48
|
-
"span",
|
49
|
-
{
|
50
|
-
className: `${TaskLanguage_module.default.langStatus} flex-row items-center justify-start`,
|
51
|
-
"data-status": language.status,
|
52
|
-
children: content.getStatusText(language.status, progressValue)
|
53
|
-
}
|
54
|
-
) })
|
55
|
-
]
|
3
|
+
var _trimmedEndIndex;
|
4
|
+
var hasRequired_trimmedEndIndex;
|
5
|
+
function require_trimmedEndIndex() {
|
6
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
7
|
+
hasRequired_trimmedEndIndex = 1;
|
8
|
+
var reWhitespace = /\s/;
|
9
|
+
function trimmedEndIndex(string) {
|
10
|
+
var index = string.length;
|
11
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
56
12
|
}
|
57
|
-
|
58
|
-
}
|
59
|
-
|
13
|
+
return index;
|
14
|
+
}
|
15
|
+
_trimmedEndIndex = trimmedEndIndex;
|
16
|
+
return _trimmedEndIndex;
|
17
|
+
}
|
18
|
+
exports.__require = require_trimmedEndIndex;
|
60
19
|
//# sourceMappingURL=harmony123.cjs.map
|
package/dist/harmony123.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony123.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony123.cjs","sources":["../node_modules/lodash/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,eAAe;AAUnB,WAAS,gBAAgB,QAAQ;AAC/B,QAAI,QAAQ,OAAO;AAEnB,WAAO,WAAW,aAAa,KAAK,OAAO,OAAO,KAAK,CAAC,GAAG;AAAA,IAAA;AAC3D,WAAO;AAAA,EACT;AAEA,qBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony123.mjs
CHANGED
@@ -1,60 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
const { getProjectUrl, langNameOnClick, langProgressOnClick } = useTasks();
|
11
|
-
const progressValue = language.progress ?? 0;
|
12
|
-
const isLanguageCompleted = language.status === SidebarTaskLanguageStatuses.Completed;
|
13
|
-
const languageProgressCompleted = isLanguageProgressCompleted(task, language);
|
14
|
-
return /* @__PURE__ */ jsxs(
|
15
|
-
"tr",
|
16
|
-
{
|
17
|
-
className: clsx({
|
18
|
-
[styles.langRowCompleted]: languageProgressCompleted
|
19
|
-
}),
|
20
|
-
children: [
|
21
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsx(
|
22
|
-
Link,
|
23
|
-
{
|
24
|
-
href: getProjectUrl({ task, language }),
|
25
|
-
onClick: () => {
|
26
|
-
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
27
|
-
},
|
28
|
-
children: language.name
|
29
|
-
}
|
30
|
-
) }) }),
|
31
|
-
/* @__PURE__ */ jsx("td", { className: styles.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsx(
|
32
|
-
Link,
|
33
|
-
{
|
34
|
-
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
35
|
-
onClick: () => {
|
36
|
-
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
37
|
-
},
|
38
|
-
children: language.base_words_total - language.base_words_done
|
39
|
-
}
|
40
|
-
) }) }),
|
41
|
-
/* @__PURE__ */ jsxs("td", { children: [
|
42
|
-
progressValue,
|
43
|
-
"%"
|
44
|
-
] }),
|
45
|
-
/* @__PURE__ */ jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsx(TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsx(
|
46
|
-
"span",
|
47
|
-
{
|
48
|
-
className: `${styles.langStatus} flex-row items-center justify-start`,
|
49
|
-
"data-status": language.status,
|
50
|
-
children: getStatusText(language.status, progressValue)
|
51
|
-
}
|
52
|
-
) })
|
53
|
-
]
|
1
|
+
var _trimmedEndIndex;
|
2
|
+
var hasRequired_trimmedEndIndex;
|
3
|
+
function require_trimmedEndIndex() {
|
4
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
5
|
+
hasRequired_trimmedEndIndex = 1;
|
6
|
+
var reWhitespace = /\s/;
|
7
|
+
function trimmedEndIndex(string) {
|
8
|
+
var index = string.length;
|
9
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
54
10
|
}
|
55
|
-
|
56
|
-
}
|
11
|
+
return index;
|
12
|
+
}
|
13
|
+
_trimmedEndIndex = trimmedEndIndex;
|
14
|
+
return _trimmedEndIndex;
|
15
|
+
}
|
57
16
|
export {
|
58
|
-
|
17
|
+
require_trimmedEndIndex as __require
|
59
18
|
};
|
60
19
|
//# sourceMappingURL=harmony123.mjs.map
|