@lokalise/harmony 1.39.1 → 1.39.3

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.
Files changed (234) hide show
  1. package/dist/harmony.cjs +1 -0
  2. package/dist/harmony.cjs.map +1 -1
  3. package/dist/harmony.mjs +2 -1
  4. package/dist/harmony103.cjs +1 -1
  5. package/dist/harmony103.mjs +1 -1
  6. package/dist/harmony104.cjs +1 -1
  7. package/dist/harmony104.mjs +1 -1
  8. package/dist/harmony109.cjs +1 -1
  9. package/dist/harmony109.mjs +1 -1
  10. package/dist/harmony111.cjs +9 -10
  11. package/dist/harmony111.cjs.map +1 -1
  12. package/dist/harmony111.mjs +11 -12
  13. package/dist/harmony111.mjs.map +1 -1
  14. package/dist/harmony112.cjs +20 -11
  15. package/dist/harmony112.cjs.map +1 -1
  16. package/dist/harmony112.mjs +20 -11
  17. package/dist/harmony112.mjs.map +1 -1
  18. package/dist/harmony113.cjs +11 -96
  19. package/dist/harmony113.cjs.map +1 -1
  20. package/dist/harmony113.mjs +11 -79
  21. package/dist/harmony113.mjs.map +1 -1
  22. package/dist/harmony114.cjs +18 -14
  23. package/dist/harmony114.cjs.map +1 -1
  24. package/dist/harmony114.mjs +18 -14
  25. package/dist/harmony114.mjs.map +1 -1
  26. package/dist/harmony115.cjs +22 -19
  27. package/dist/harmony115.cjs.map +1 -1
  28. package/dist/harmony115.mjs +21 -18
  29. package/dist/harmony115.mjs.map +1 -1
  30. package/dist/harmony116.cjs +5 -86
  31. package/dist/harmony116.cjs.map +1 -1
  32. package/dist/harmony116.mjs +5 -86
  33. package/dist/harmony116.mjs.map +1 -1
  34. package/dist/harmony117.cjs +87 -30
  35. package/dist/harmony117.cjs.map +1 -1
  36. package/dist/harmony117.mjs +87 -30
  37. package/dist/harmony117.mjs.map +1 -1
  38. package/dist/harmony118.cjs +31 -22
  39. package/dist/harmony118.cjs.map +1 -1
  40. package/dist/harmony118.mjs +30 -21
  41. package/dist/harmony118.mjs.map +1 -1
  42. package/dist/harmony119.cjs +98 -5
  43. package/dist/harmony119.cjs.map +1 -1
  44. package/dist/harmony119.mjs +81 -5
  45. package/dist/harmony119.mjs.map +1 -1
  46. package/dist/harmony120.cjs +133 -6
  47. package/dist/harmony120.cjs.map +1 -1
  48. package/dist/harmony120.mjs +132 -5
  49. package/dist/harmony120.mjs.map +1 -1
  50. package/dist/harmony121.cjs +12 -5
  51. package/dist/harmony121.cjs.map +1 -1
  52. package/dist/harmony121.mjs +12 -5
  53. package/dist/harmony121.mjs.map +1 -1
  54. package/dist/harmony122.cjs +5 -132
  55. package/dist/harmony122.cjs.map +1 -1
  56. package/dist/harmony122.mjs +5 -132
  57. package/dist/harmony122.mjs.map +1 -1
  58. package/dist/harmony123.cjs +40 -12
  59. package/dist/harmony123.cjs.map +1 -1
  60. package/dist/harmony123.mjs +39 -11
  61. package/dist/harmony123.mjs.map +1 -1
  62. package/dist/harmony124.cjs +59 -4
  63. package/dist/harmony124.cjs.map +1 -1
  64. package/dist/harmony124.mjs +60 -5
  65. package/dist/harmony124.mjs.map +1 -1
  66. package/dist/harmony125.cjs +6 -39
  67. package/dist/harmony125.cjs.map +1 -1
  68. package/dist/harmony125.mjs +6 -39
  69. package/dist/harmony125.mjs.map +1 -1
  70. package/dist/harmony126.cjs +6 -60
  71. package/dist/harmony126.cjs.map +1 -1
  72. package/dist/harmony126.mjs +5 -59
  73. package/dist/harmony126.mjs.map +1 -1
  74. package/dist/harmony127.cjs +6 -8
  75. package/dist/harmony127.cjs.map +1 -1
  76. package/dist/harmony127.mjs +5 -7
  77. package/dist/harmony127.mjs.map +1 -1
  78. package/dist/harmony128.cjs +5 -6
  79. package/dist/harmony128.cjs.map +1 -1
  80. package/dist/harmony128.mjs +5 -6
  81. package/dist/harmony129.cjs +10 -96
  82. package/dist/harmony129.cjs.map +1 -1
  83. package/dist/harmony129.mjs +10 -96
  84. package/dist/harmony129.mjs.map +1 -1
  85. package/dist/harmony130.cjs +62 -13
  86. package/dist/harmony130.cjs.map +1 -1
  87. package/dist/harmony130.mjs +61 -12
  88. package/dist/harmony130.mjs.map +1 -1
  89. package/dist/harmony131.cjs +87 -13
  90. package/dist/harmony131.cjs.map +1 -1
  91. package/dist/harmony131.mjs +87 -13
  92. package/dist/harmony131.mjs.map +1 -1
  93. package/dist/harmony132.cjs +19 -37
  94. package/dist/harmony132.cjs.map +1 -1
  95. package/dist/harmony132.mjs +18 -36
  96. package/dist/harmony132.mjs.map +1 -1
  97. package/dist/harmony133.cjs +87 -19
  98. package/dist/harmony133.cjs.map +1 -1
  99. package/dist/harmony133.mjs +87 -19
  100. package/dist/harmony133.mjs.map +1 -1
  101. package/dist/harmony134.cjs +13 -10
  102. package/dist/harmony134.cjs.map +1 -1
  103. package/dist/harmony134.mjs +13 -10
  104. package/dist/harmony134.mjs.map +1 -1
  105. package/dist/harmony135.cjs +12 -60
  106. package/dist/harmony135.cjs.map +1 -1
  107. package/dist/harmony135.mjs +12 -60
  108. package/dist/harmony135.mjs.map +1 -1
  109. package/dist/harmony136.cjs +36 -88
  110. package/dist/harmony136.cjs.map +1 -1
  111. package/dist/harmony136.mjs +36 -88
  112. package/dist/harmony136.mjs.map +1 -1
  113. package/dist/harmony137.cjs +29 -19
  114. package/dist/harmony137.cjs.map +1 -1
  115. package/dist/harmony137.mjs +28 -18
  116. package/dist/harmony137.mjs.map +1 -1
  117. package/dist/harmony138.cjs +7 -13
  118. package/dist/harmony138.cjs.map +1 -1
  119. package/dist/harmony138.mjs +7 -13
  120. package/dist/harmony138.mjs.map +1 -1
  121. package/dist/harmony139.cjs +57 -15
  122. package/dist/harmony139.cjs.map +1 -1
  123. package/dist/harmony139.mjs +57 -15
  124. package/dist/harmony139.mjs.map +1 -1
  125. package/dist/harmony14.cjs +1 -1
  126. package/dist/harmony14.mjs +1 -1
  127. package/dist/harmony140.cjs +59 -15
  128. package/dist/harmony140.cjs.map +1 -1
  129. package/dist/harmony140.mjs +59 -15
  130. package/dist/harmony140.mjs.map +1 -1
  131. package/dist/harmony141.cjs +19 -12
  132. package/dist/harmony141.cjs.map +1 -1
  133. package/dist/harmony141.mjs +18 -11
  134. package/dist/harmony141.mjs.map +1 -1
  135. package/dist/harmony142.cjs +12 -15
  136. package/dist/harmony142.cjs.map +1 -1
  137. package/dist/harmony142.mjs +12 -15
  138. package/dist/harmony142.mjs.map +1 -1
  139. package/dist/harmony143.cjs +13 -19
  140. package/dist/harmony143.cjs.map +1 -1
  141. package/dist/harmony143.mjs +13 -19
  142. package/dist/harmony143.mjs.map +1 -1
  143. package/dist/harmony144.cjs +14 -10
  144. package/dist/harmony144.cjs.map +1 -1
  145. package/dist/harmony144.mjs +14 -10
  146. package/dist/harmony144.mjs.map +1 -1
  147. package/dist/harmony145.cjs +11 -7
  148. package/dist/harmony145.cjs.map +1 -1
  149. package/dist/harmony145.mjs +11 -7
  150. package/dist/harmony145.mjs.map +1 -1
  151. package/dist/harmony146.cjs +15 -56
  152. package/dist/harmony146.cjs.map +1 -1
  153. package/dist/harmony146.mjs +15 -56
  154. package/dist/harmony146.mjs.map +1 -1
  155. package/dist/harmony147.cjs +20 -59
  156. package/dist/harmony147.cjs.map +1 -1
  157. package/dist/harmony147.mjs +20 -59
  158. package/dist/harmony147.mjs.map +1 -1
  159. package/dist/harmony148.cjs +13 -19
  160. package/dist/harmony148.cjs.map +1 -1
  161. package/dist/harmony148.mjs +12 -18
  162. package/dist/harmony148.mjs.map +1 -1
  163. package/dist/harmony149.cjs +46 -6
  164. package/dist/harmony149.cjs.map +1 -1
  165. package/dist/harmony149.mjs +46 -6
  166. package/dist/harmony149.mjs.map +1 -1
  167. package/dist/harmony150.cjs +13 -13
  168. package/dist/harmony150.cjs.map +1 -1
  169. package/dist/harmony150.mjs +12 -12
  170. package/dist/harmony150.mjs.map +1 -1
  171. package/dist/harmony151.cjs +5 -31
  172. package/dist/harmony151.cjs.map +1 -1
  173. package/dist/harmony151.mjs +5 -31
  174. package/dist/harmony151.mjs.map +1 -1
  175. package/dist/harmony152.cjs +11 -13
  176. package/dist/harmony152.cjs.map +1 -1
  177. package/dist/harmony152.mjs +11 -13
  178. package/dist/harmony152.mjs.map +1 -1
  179. package/dist/harmony153.cjs +31 -45
  180. package/dist/harmony153.cjs.map +1 -1
  181. package/dist/harmony153.mjs +31 -45
  182. package/dist/harmony153.mjs.map +1 -1
  183. package/dist/harmony154.cjs +15 -13
  184. package/dist/harmony154.cjs.map +1 -1
  185. package/dist/harmony154.mjs +14 -12
  186. package/dist/harmony154.mjs.map +1 -1
  187. package/dist/harmony17.cjs +1 -1
  188. package/dist/harmony17.mjs +1 -1
  189. package/dist/harmony25.cjs +1 -1
  190. package/dist/harmony25.mjs +1 -1
  191. package/dist/harmony26.cjs +1 -1
  192. package/dist/harmony26.mjs +1 -1
  193. package/dist/harmony35.cjs +1 -1
  194. package/dist/harmony35.cjs.map +1 -1
  195. package/dist/harmony35.mjs +1 -1
  196. package/dist/harmony35.mjs.map +1 -1
  197. package/dist/harmony58.cjs +9 -5
  198. package/dist/harmony58.cjs.map +1 -1
  199. package/dist/harmony58.mjs +10 -6
  200. package/dist/harmony58.mjs.map +1 -1
  201. package/dist/harmony71.cjs +2 -2
  202. package/dist/harmony71.cjs.map +1 -1
  203. package/dist/harmony71.mjs +2 -2
  204. package/dist/harmony71.mjs.map +1 -1
  205. package/dist/harmony75.cjs +1 -1
  206. package/dist/harmony75.mjs +1 -1
  207. package/dist/harmony85.cjs +6 -6
  208. package/dist/harmony85.mjs +6 -6
  209. package/dist/harmony88.cjs +2 -2
  210. package/dist/harmony88.mjs +2 -2
  211. package/dist/harmony90.cjs +2 -2
  212. package/dist/harmony90.mjs +2 -2
  213. package/dist/harmony92.cjs +2 -2
  214. package/dist/harmony92.mjs +2 -2
  215. package/dist/harmony96.cjs +11 -165
  216. package/dist/harmony96.cjs.map +1 -1
  217. package/dist/harmony96.mjs +11 -165
  218. package/dist/harmony96.mjs.map +1 -1
  219. package/dist/harmony97.cjs +12 -44
  220. package/dist/harmony97.cjs.map +1 -1
  221. package/dist/harmony97.mjs +11 -43
  222. package/dist/harmony97.mjs.map +1 -1
  223. package/dist/harmony98.cjs +166 -11
  224. package/dist/harmony98.cjs.map +1 -1
  225. package/dist/harmony98.mjs +166 -11
  226. package/dist/harmony98.mjs.map +1 -1
  227. package/dist/harmony99.cjs +44 -21
  228. package/dist/harmony99.cjs.map +1 -1
  229. package/dist/harmony99.mjs +43 -20
  230. package/dist/harmony99.mjs.map +1 -1
  231. package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +15 -7
  232. package/dist/types/src/features/publicApi/teamUsers.d.ts +16 -16
  233. package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +6 -6
  234. package/package.json +1 -1
@@ -1,91 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const louis = require("@lokalise/louis");
5
- const text = require("./harmony10.cjs");
6
- const url = require("./harmony11.cjs");
7
- const date = require("./harmony12.cjs");
8
- const dateFns = require("date-fns");
9
- const index = require("./harmony145.cjs");
10
- const TaskLanguage = require("./harmony146.cjs");
11
- const TasksContext = require("./harmony124.cjs");
12
- const content = require("./harmony147.cjs");
13
- const TaskOverview_module = require("./harmony148.cjs");
14
- const TaskOverview = ({ task }) => {
15
- const { getProjectUrl, taskTitleOnClick } = TasksContext.useTasks();
16
- const taskLanguages = content.getTaskLanguages(task.langs);
17
- const handleDownloadStyleGuide = (styleGuide) => {
18
- window.open(
19
- `/style-guide/${task.team_id}/download/${styleGuide.id}/link`,
20
- "_blank",
21
- "noopener,noreferrer"
22
- );
23
- };
24
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: TaskOverview_module.default.taskContainer, children: [
25
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-row gap-1 items-center", children: [
26
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
27
- /* @__PURE__ */ jsxRuntime.jsx(louis.Tag, { color: content.tagColor[task.task_type], variant: "solid", children: task.task_type.toLocaleUpperCase() }),
28
- task.due_date && /* @__PURE__ */ jsxRuntime.jsxs(louis.Tag, { color: "#EAB308", children: [
29
- "DUE ",
30
- date.formatDate(dateFns.parseISO(task.due_date), "yyyy-MM-dd")
31
- ] })
32
- ] }),
33
- task.style_guides.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-row", children: task.style_guides.length === 1 ? /* @__PURE__ */ jsxRuntime.jsx(
34
- louis.Button,
35
- {
36
- size: "sm",
37
- variant: "secondary",
38
- onClick: () => handleDownloadStyleGuide(task.style_guides[0]),
39
- children: "Download style guide"
40
- }
41
- ) : /* @__PURE__ */ jsxRuntime.jsx(
42
- louis.Menu,
43
- {
44
- menuButton: /* @__PURE__ */ jsxRuntime.jsx(louis.Button, { variant: "secondary", size: "sm", children: "Download style guide" }),
45
- children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { children: task.style_guides.map((styleGuide) => /* @__PURE__ */ jsxRuntime.jsx(
46
- louis.MenuItem,
47
- {
48
- onClick: () => handleDownloadStyleGuide(styleGuide),
49
- children: index.splitFileName(styleGuide.name).name
50
- },
51
- styleGuide.id
52
- )) })
53
- }
54
- ) })
55
- ] }),
56
- /* @__PURE__ */ jsxRuntime.jsx("h4", { className: TaskOverview_module.default.taskTitle, children: /* @__PURE__ */ jsxRuntime.jsx(
57
- louis.Link,
58
- {
59
- href: getProjectUrl({ task, view: "multi" }),
60
- onClick: () => {
61
- taskTitleOnClick == null ? void 0 : taskTitleOnClick({ task });
62
- },
63
- children: task.title
64
- }
65
- ) }),
66
- task.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TaskOverview_module.default.taskDescription, children: text.convertNewLineToBreakTag(url.makeUrlClickable(task.description)) }),
67
- /* @__PURE__ */ jsxRuntime.jsxs("table", { className: TaskOverview_module.default.languagesTable, children: [
68
- /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
69
- /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Languages" }),
70
- /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Words to do" }),
71
- /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Progress" }),
72
- /* @__PURE__ */ jsxRuntime.jsx("th", { children: "Status" })
73
- ] }) }),
74
- /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: taskLanguages.map((language) => /* @__PURE__ */ jsxRuntime.jsx(TaskLanguage.TaskLanguage, { language, task }, language.lang_id)) })
75
- ] }),
76
- /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": "sidebar-task-overview-metadata", className: TaskOverview_module.default.metadata, children: [
77
- /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
78
- "Source: ",
79
- task.source_lang_name
80
- ] }),
81
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: task.created_by_fullname }),
82
- /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
83
- "In ",
84
- task.project_name,
85
- task.master_branching_enabled === "1" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TaskOverview_module.default.tag, children: task.branch_name ? task.branch_name : "master" })
86
- ] })
87
- ] })
88
- ] });
89
- };
90
- exports.TaskOverview = TaskOverview;
3
+ const _baseTrim = require("./harmony143.cjs");
4
+ const isObject = require("./harmony134.cjs");
5
+ const isSymbol = require("./harmony144.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;
91
39
  //# sourceMappingURL=harmony136.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony136.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskOverview/TaskOverview.tsx"],"sourcesContent":["import { Button, Link, Menu, MenuItem, MenuList, Tag } from '@lokalise/louis'\nimport { convertNewLineToBreakTag, formatDate, makeUrlClickable } from '@utils'\nimport { parseISO } from 'date-fns'\nimport { splitFileName } from '../../../utils'\nimport { TaskLanguage } from '../TaskLanguage/TaskLanguage'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskStyleGuide } from '../types'\nimport { getTaskLanguages, tagColor } from '../utils/content'\nimport styles from './TaskOverview.module.css'\n\nexport type TaskProps = {\n\ttask: SidebarTask\n}\n\nexport const TaskOverview = ({ task }: TaskProps) => {\n\tconst { getProjectUrl, taskTitleOnClick } = useTasks()\n\n\tconst taskLanguages = getTaskLanguages(task.langs)\n\n\tconst handleDownloadStyleGuide = (styleGuide: SidebarTaskStyleGuide) => {\n\t\twindow.open(\n\t\t\t`/style-guide/${task.team_id}/download/${styleGuide.id}/link`,\n\t\t\t'_blank',\n\t\t\t'noopener,noreferrer',\n\t\t)\n\t}\n\n\treturn (\n\t\t<div className={styles.taskContainer}>\n\t\t\t<div className=\"flex-row gap-1 items-center\">\n\t\t\t\t<div className=\"flex-row gap-1 items-start flex-wrap\">\n\t\t\t\t\t<Tag color={tagColor[task.task_type]} variant=\"solid\">\n\t\t\t\t\t\t{task.task_type.toLocaleUpperCase()}\n\t\t\t\t\t</Tag>\n\t\t\t\t\t{task.due_date && (\n\t\t\t\t\t\t<Tag color={'#EAB308'}>DUE {formatDate(parseISO(task.due_date), 'yyyy-MM-dd')}</Tag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{task.style_guides.length > 0 && (\n\t\t\t\t\t<div className=\"flex-row\">\n\t\t\t\t\t\t{task.style_guides.length === 1 ? (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\tonClick={() => handleDownloadStyleGuide(task.style_guides[0])}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tDownload style guide\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Menu\n\t\t\t\t\t\t\t\tmenuButton={\n\t\t\t\t\t\t\t\t\t<Button variant=\"secondary\" size=\"sm\">\n\t\t\t\t\t\t\t\t\t\tDownload style guide\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<MenuList>\n\t\t\t\t\t\t\t\t\t{task.style_guides.map((styleGuide) => (\n\t\t\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\t\t\tkey={styleGuide.id}\n\t\t\t\t\t\t\t\t\t\t\tonClick={() => handleDownloadStyleGuide(styleGuide)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{splitFileName(styleGuide.name).name}\n\t\t\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</MenuList>\n\t\t\t\t\t\t\t</Menu>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\n\t\t\t<h4 className={styles.taskTitle}>\n\t\t\t\t<Link\n\t\t\t\t\thref={getProjectUrl({ task, view: 'multi' })}\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\ttaskTitleOnClick?.({ task })\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{task.title}\n\t\t\t\t</Link>\n\t\t\t</h4>\n\n\t\t\t{task.description && (\n\t\t\t\t<div className={styles.taskDescription}>\n\t\t\t\t\t{convertNewLineToBreakTag(makeUrlClickable(task.description))}\n\t\t\t\t</div>\n\t\t\t)}\n\n\t\t\t<table className={styles.languagesTable}>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Languages</th>\n\t\t\t\t\t\t<th>Words to do</th>\n\t\t\t\t\t\t<th>Progress</th>\n\t\t\t\t\t\t<th>Status</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t{taskLanguages.map((language) => (\n\t\t\t\t\t\t<TaskLanguage key={language.lang_id} language={language} task={task} />\n\t\t\t\t\t))}\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div data-testid=\"sidebar-task-overview-metadata\" className={styles.metadata}>\n\t\t\t\t<span>Source: {task.source_lang_name}</span>\n\t\t\t\t<span>{task.created_by_fullname}</span>\n\t\t\t\t<span>\n\t\t\t\t\tIn {task.project_name}\n\t\t\t\t\t{task.master_branching_enabled === '1' && (\n\t\t\t\t\t\t<div className={styles.tag}>{task.branch_name ? task.branch_name : 'master'}</div>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":["useTasks","getTaskLanguages","jsxs","styles","jsx","Tag","tagColor","formatDate","parseISO","Button","Menu","MenuList","MenuItem","splitFileName","Link","convertNewLineToBreakTag","makeUrlClickable","TaskLanguage"],"mappings":"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"}
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]}
@@ -1,91 +1,39 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { Tag, Button, Menu, MenuList, MenuItem, Link } from "@lokalise/louis";
3
- import { convertNewLineToBreakTag } from "./harmony10.mjs";
4
- import { makeUrlClickable } from "./harmony11.mjs";
5
- import { formatDate } from "./harmony12.mjs";
6
- import { parseISO } from "date-fns";
7
- import { splitFileName } from "./harmony145.mjs";
8
- import { TaskLanguage } from "./harmony146.mjs";
9
- import { useTasks } from "./harmony124.mjs";
10
- import { getTaskLanguages, tagColor } from "./harmony147.mjs";
11
- import styles from "./harmony148.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
- );
21
- };
22
- return /* @__PURE__ */ jsxs("div", { className: styles.taskContainer, children: [
23
- /* @__PURE__ */ jsxs("div", { className: "flex-row gap-1 items-center", children: [
24
- /* @__PURE__ */ jsxs("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
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
- };
1
+ import { __require as require_baseTrim } from "./harmony143.mjs";
2
+ import { __require as requireIsObject } from "./harmony134.mjs";
3
+ import { __require as requireIsSymbol } from "./harmony144.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
+ }
88
36
  export {
89
- TaskOverview
37
+ requireToNumber as __require
90
38
  };
91
39
  //# sourceMappingURL=harmony136.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony136.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskOverview/TaskOverview.tsx"],"sourcesContent":["import { Button, Link, Menu, MenuItem, MenuList, Tag } from '@lokalise/louis'\nimport { convertNewLineToBreakTag, formatDate, makeUrlClickable } from '@utils'\nimport { parseISO } from 'date-fns'\nimport { splitFileName } from '../../../utils'\nimport { TaskLanguage } from '../TaskLanguage/TaskLanguage'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskStyleGuide } from '../types'\nimport { getTaskLanguages, tagColor } from '../utils/content'\nimport styles from './TaskOverview.module.css'\n\nexport type TaskProps = {\n\ttask: SidebarTask\n}\n\nexport const TaskOverview = ({ task }: TaskProps) => {\n\tconst { getProjectUrl, taskTitleOnClick } = useTasks()\n\n\tconst taskLanguages = getTaskLanguages(task.langs)\n\n\tconst handleDownloadStyleGuide = (styleGuide: SidebarTaskStyleGuide) => {\n\t\twindow.open(\n\t\t\t`/style-guide/${task.team_id}/download/${styleGuide.id}/link`,\n\t\t\t'_blank',\n\t\t\t'noopener,noreferrer',\n\t\t)\n\t}\n\n\treturn (\n\t\t<div className={styles.taskContainer}>\n\t\t\t<div className=\"flex-row gap-1 items-center\">\n\t\t\t\t<div className=\"flex-row gap-1 items-start flex-wrap\">\n\t\t\t\t\t<Tag color={tagColor[task.task_type]} variant=\"solid\">\n\t\t\t\t\t\t{task.task_type.toLocaleUpperCase()}\n\t\t\t\t\t</Tag>\n\t\t\t\t\t{task.due_date && (\n\t\t\t\t\t\t<Tag color={'#EAB308'}>DUE {formatDate(parseISO(task.due_date), 'yyyy-MM-dd')}</Tag>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{task.style_guides.length > 0 && (\n\t\t\t\t\t<div className=\"flex-row\">\n\t\t\t\t\t\t{task.style_guides.length === 1 ? (\n\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t\tonClick={() => handleDownloadStyleGuide(task.style_guides[0])}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\tDownload style guide\n\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Menu\n\t\t\t\t\t\t\t\tmenuButton={\n\t\t\t\t\t\t\t\t\t<Button variant=\"secondary\" size=\"sm\">\n\t\t\t\t\t\t\t\t\t\tDownload style guide\n\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<MenuList>\n\t\t\t\t\t\t\t\t\t{task.style_guides.map((styleGuide) => (\n\t\t\t\t\t\t\t\t\t\t<MenuItem\n\t\t\t\t\t\t\t\t\t\t\tkey={styleGuide.id}\n\t\t\t\t\t\t\t\t\t\t\tonClick={() => handleDownloadStyleGuide(styleGuide)}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{splitFileName(styleGuide.name).name}\n\t\t\t\t\t\t\t\t\t\t</MenuItem>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</MenuList>\n\t\t\t\t\t\t\t</Menu>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\n\t\t\t<h4 className={styles.taskTitle}>\n\t\t\t\t<Link\n\t\t\t\t\thref={getProjectUrl({ task, view: 'multi' })}\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\ttaskTitleOnClick?.({ task })\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{task.title}\n\t\t\t\t</Link>\n\t\t\t</h4>\n\n\t\t\t{task.description && (\n\t\t\t\t<div className={styles.taskDescription}>\n\t\t\t\t\t{convertNewLineToBreakTag(makeUrlClickable(task.description))}\n\t\t\t\t</div>\n\t\t\t)}\n\n\t\t\t<table className={styles.languagesTable}>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<th>Languages</th>\n\t\t\t\t\t\t<th>Words to do</th>\n\t\t\t\t\t\t<th>Progress</th>\n\t\t\t\t\t\t<th>Status</th>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\n\t\t\t\t\t{taskLanguages.map((language) => (\n\t\t\t\t\t\t<TaskLanguage key={language.lang_id} language={language} task={task} />\n\t\t\t\t\t))}\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<div data-testid=\"sidebar-task-overview-metadata\" className={styles.metadata}>\n\t\t\t\t<span>Source: {task.source_lang_name}</span>\n\t\t\t\t<span>{task.created_by_fullname}</span>\n\t\t\t\t<span>\n\t\t\t\t\tIn {task.project_name}\n\t\t\t\t\t{task.master_branching_enabled === '1' && (\n\t\t\t\t\t\t<div className={styles.tag}>{task.branch_name ? task.branch_name : 'master'}</div>\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":"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"}
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]}
@@ -1,21 +1,31 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const loadingContainer = "_loadingContainer_19d6m_1";
4
- const noTasksContainer = "_noTasksContainer_19d6m_7";
5
- const noTasksHeading = "_noTasksHeading_19d6m_14";
6
- const noTasksText = "_noTasksText_19d6m_18";
7
- const tasksContainer = "_tasksContainer_19d6m_23";
8
- const styles = {
9
- loadingContainer,
10
- noTasksContainer,
11
- noTasksHeading,
12
- noTasksText,
13
- tasksContainer
14
- };
15
- exports.default = styles;
16
- exports.loadingContainer = loadingContainer;
17
- exports.noTasksContainer = noTasksContainer;
18
- exports.noTasksHeading = noTasksHeading;
19
- exports.noTasksText = noTasksText;
20
- exports.tasksContainer = tasksContainer;
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
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;
21
31
  //# sourceMappingURL=harmony137.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony137.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
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]}
@@ -1,21 +1,31 @@
1
- const loadingContainer = "_loadingContainer_19d6m_1";
2
- const noTasksContainer = "_noTasksContainer_19d6m_7";
3
- const noTasksHeading = "_noTasksHeading_19d6m_14";
4
- const noTasksText = "_noTasksText_19d6m_18";
5
- const tasksContainer = "_tasksContainer_19d6m_23";
6
- const styles = {
7
- loadingContainer,
8
- noTasksContainer,
9
- noTasksHeading,
10
- noTasksText,
11
- tasksContainer
12
- };
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
+ }
13
28
  export {
14
- styles as default,
15
- loadingContainer,
16
- noTasksContainer,
17
- noTasksHeading,
18
- noTasksText,
19
- tasksContainer
29
+ requireThrottle as __require
20
30
  };
21
31
  //# sourceMappingURL=harmony137.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony137.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
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]}
@@ -1,16 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const _freeGlobal = require("./harmony141.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;
14
- }
15
- exports.__require = require_root;
3
+ const splitFileName = (fileName) => {
4
+ const lastDotIndex = fileName.lastIndexOf(".");
5
+ const name = fileName.slice(0, lastDotIndex);
6
+ const extension = fileName.slice(lastDotIndex + 1);
7
+ return { name, extension };
8
+ };
9
+ exports.splitFileName = splitFileName;
16
10
  //# sourceMappingURL=harmony138.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony138.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]}
1
+ {"version":3,"file":"harmony138.cjs","sources":["../src/components/Sidebar/utils/index.ts"],"sourcesContent":["export const splitFileName = (fileName: string) => {\n\tconst lastDotIndex = fileName.lastIndexOf('.')\n\tconst name = fileName.slice(0, lastDotIndex)\n\tconst extension = fileName.slice(lastDotIndex + 1)\n\n\treturn { name, extension }\n}\n"],"names":[],"mappings":";;AAAa,MAAA,gBAAgB,CAAC,aAAqB;AAC5C,QAAA,eAAe,SAAS,YAAY,GAAG;AAC7C,QAAM,OAAO,SAAS,MAAM,GAAG,YAAY;AAC3C,QAAM,YAAY,SAAS,MAAM,eAAe,CAAC;AAE1C,SAAA,EAAE,MAAM,UAAU;AAC1B;;"}
@@ -1,16 +1,10 @@
1
- import { __require as require_freeGlobal } from "./harmony141.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;
12
- }
1
+ const splitFileName = (fileName) => {
2
+ const lastDotIndex = fileName.lastIndexOf(".");
3
+ const name = fileName.slice(0, lastDotIndex);
4
+ const extension = fileName.slice(lastDotIndex + 1);
5
+ return { name, extension };
6
+ };
13
7
  export {
14
- require_root as __require
8
+ splitFileName
15
9
  };
16
10
  //# sourceMappingURL=harmony138.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony138.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]}
1
+ {"version":3,"file":"harmony138.mjs","sources":["../src/components/Sidebar/utils/index.ts"],"sourcesContent":["export const splitFileName = (fileName: string) => {\n\tconst lastDotIndex = fileName.lastIndexOf('.')\n\tconst name = fileName.slice(0, lastDotIndex)\n\tconst extension = fileName.slice(lastDotIndex + 1)\n\n\treturn { name, extension }\n}\n"],"names":[],"mappings":"AAAa,MAAA,gBAAgB,CAAC,aAAqB;AAC5C,QAAA,eAAe,SAAS,YAAY,GAAG;AAC7C,QAAM,OAAO,SAAS,MAAM,GAAG,YAAY;AAC3C,QAAM,YAAY,SAAS,MAAM,eAAe,CAAC;AAE1C,SAAA,EAAE,MAAM,UAAU;AAC1B;"}
@@ -1,18 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const _trimmedEndIndex = require("./harmony142.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;
13
- }
14
- _baseTrim = baseTrim;
15
- return _baseTrim;
16
- }
17
- exports.__require = require_baseTrim;
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const louis = require("@lokalise/louis");
5
+ const content = require("./harmony140.cjs");
6
+ const types = require("./harmony2.cjs");
7
+ const clsx = require("./harmony73.cjs");
8
+ const TaskLanguageCompleted = require("./harmony149.cjs");
9
+ const TasksContext = require("./harmony122.cjs");
10
+ const TaskLanguage_module = require("./harmony150.cjs");
11
+ const TaskLanguage = ({ language, task }) => {
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
+ ]
56
+ }
57
+ );
58
+ };
59
+ exports.TaskLanguage = TaskLanguage;
18
60
  //# sourceMappingURL=harmony139.cjs.map