@lokalise/harmony 1.34.0 → 1.34.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.
Files changed (240) hide show
  1. package/dist/harmony100.cjs +2 -2
  2. package/dist/harmony100.mjs +2 -2
  3. package/dist/harmony101.cjs +132 -18
  4. package/dist/harmony101.cjs.map +1 -1
  5. package/dist/harmony101.mjs +132 -18
  6. package/dist/harmony101.mjs.map +1 -1
  7. package/dist/harmony102.cjs +12 -14
  8. package/dist/harmony102.cjs.map +1 -1
  9. package/dist/harmony102.mjs +11 -13
  10. package/dist/harmony102.mjs.map +1 -1
  11. package/dist/harmony103.cjs +6 -22
  12. package/dist/harmony103.cjs.map +1 -1
  13. package/dist/harmony103.mjs +5 -21
  14. package/dist/harmony103.mjs.map +1 -1
  15. package/dist/harmony104.cjs +39 -5
  16. package/dist/harmony104.cjs.map +1 -1
  17. package/dist/harmony104.mjs +39 -5
  18. package/dist/harmony104.mjs.map +1 -1
  19. package/dist/harmony105.cjs +61 -6
  20. package/dist/harmony105.cjs.map +1 -1
  21. package/dist/harmony105.mjs +60 -5
  22. package/dist/harmony105.mjs.map +1 -1
  23. package/dist/harmony106.cjs +8 -6
  24. package/dist/harmony106.cjs.map +1 -1
  25. package/dist/harmony106.mjs +7 -5
  26. package/dist/harmony106.mjs.map +1 -1
  27. package/dist/harmony107.cjs +21 -132
  28. package/dist/harmony107.cjs.map +1 -1
  29. package/dist/harmony107.mjs +20 -131
  30. package/dist/harmony107.mjs.map +1 -1
  31. package/dist/harmony108.cjs +6 -12
  32. package/dist/harmony108.cjs.map +1 -1
  33. package/dist/harmony108.mjs +5 -11
  34. package/dist/harmony108.mjs.map +1 -1
  35. package/dist/harmony109.cjs +7 -6
  36. package/dist/harmony109.cjs.map +1 -1
  37. package/dist/harmony109.mjs +6 -5
  38. package/dist/harmony109.mjs.map +1 -1
  39. package/dist/harmony110.cjs +12 -38
  40. package/dist/harmony110.cjs.map +1 -1
  41. package/dist/harmony110.mjs +12 -38
  42. package/dist/harmony110.mjs.map +1 -1
  43. package/dist/harmony111.cjs +18 -60
  44. package/dist/harmony111.cjs.map +1 -1
  45. package/dist/harmony111.mjs +18 -60
  46. package/dist/harmony111.mjs.map +1 -1
  47. package/dist/harmony112.cjs +6 -8
  48. package/dist/harmony112.cjs.map +1 -1
  49. package/dist/harmony112.mjs +5 -7
  50. package/dist/harmony112.mjs.map +1 -1
  51. package/dist/harmony113.cjs +5 -6
  52. package/dist/harmony113.cjs.map +1 -1
  53. package/dist/harmony113.mjs +5 -6
  54. package/dist/harmony114.cjs +61 -95
  55. package/dist/harmony114.cjs.map +1 -1
  56. package/dist/harmony114.mjs +61 -95
  57. package/dist/harmony114.mjs.map +1 -1
  58. package/dist/harmony115.cjs +88 -13
  59. package/dist/harmony115.cjs.map +1 -1
  60. package/dist/harmony115.mjs +88 -13
  61. package/dist/harmony115.mjs.map +1 -1
  62. package/dist/harmony116.cjs +19 -15
  63. package/dist/harmony116.cjs.map +1 -1
  64. package/dist/harmony116.mjs +18 -14
  65. package/dist/harmony116.mjs.map +1 -1
  66. package/dist/harmony117.cjs +94 -34
  67. package/dist/harmony117.cjs.map +1 -1
  68. package/dist/harmony117.mjs +94 -34
  69. package/dist/harmony117.mjs.map +1 -1
  70. package/dist/harmony118.cjs +11 -26
  71. package/dist/harmony118.cjs.map +1 -1
  72. package/dist/harmony118.mjs +11 -26
  73. package/dist/harmony118.mjs.map +1 -1
  74. package/dist/harmony119.cjs +12 -60
  75. package/dist/harmony119.cjs.map +1 -1
  76. package/dist/harmony119.mjs +12 -60
  77. package/dist/harmony119.mjs.map +1 -1
  78. package/dist/harmony120.cjs +36 -88
  79. package/dist/harmony120.cjs.map +1 -1
  80. package/dist/harmony120.mjs +36 -88
  81. package/dist/harmony120.mjs.map +1 -1
  82. package/dist/harmony121.cjs +29 -19
  83. package/dist/harmony121.cjs.map +1 -1
  84. package/dist/harmony121.mjs +28 -18
  85. package/dist/harmony121.mjs.map +1 -1
  86. package/dist/harmony122.cjs +7 -13
  87. package/dist/harmony122.cjs.map +1 -1
  88. package/dist/harmony122.mjs +7 -13
  89. package/dist/harmony122.mjs.map +1 -1
  90. package/dist/harmony123.cjs +57 -15
  91. package/dist/harmony123.cjs.map +1 -1
  92. package/dist/harmony123.mjs +57 -15
  93. package/dist/harmony123.mjs.map +1 -1
  94. package/dist/harmony124.cjs +59 -15
  95. package/dist/harmony124.cjs.map +1 -1
  96. package/dist/harmony124.mjs +59 -15
  97. package/dist/harmony124.mjs.map +1 -1
  98. package/dist/harmony125.cjs +19 -12
  99. package/dist/harmony125.cjs.map +1 -1
  100. package/dist/harmony125.mjs +18 -11
  101. package/dist/harmony125.mjs.map +1 -1
  102. package/dist/harmony126.cjs +12 -15
  103. package/dist/harmony126.cjs.map +1 -1
  104. package/dist/harmony126.mjs +12 -15
  105. package/dist/harmony126.mjs.map +1 -1
  106. package/dist/harmony127.cjs +13 -19
  107. package/dist/harmony127.cjs.map +1 -1
  108. package/dist/harmony127.mjs +13 -19
  109. package/dist/harmony127.mjs.map +1 -1
  110. package/dist/harmony128.cjs +14 -10
  111. package/dist/harmony128.cjs.map +1 -1
  112. package/dist/harmony128.mjs +14 -10
  113. package/dist/harmony128.mjs.map +1 -1
  114. package/dist/harmony129.cjs +11 -7
  115. package/dist/harmony129.cjs.map +1 -1
  116. package/dist/harmony129.mjs +11 -7
  117. package/dist/harmony129.mjs.map +1 -1
  118. package/dist/harmony13.cjs +8 -1
  119. package/dist/harmony13.cjs.map +1 -1
  120. package/dist/harmony13.mjs +8 -1
  121. package/dist/harmony13.mjs.map +1 -1
  122. package/dist/harmony130.cjs +15 -56
  123. package/dist/harmony130.cjs.map +1 -1
  124. package/dist/harmony130.mjs +15 -56
  125. package/dist/harmony130.mjs.map +1 -1
  126. package/dist/harmony131.cjs +20 -59
  127. package/dist/harmony131.cjs.map +1 -1
  128. package/dist/harmony131.mjs +20 -59
  129. package/dist/harmony131.mjs.map +1 -1
  130. package/dist/harmony132.cjs +13 -19
  131. package/dist/harmony132.cjs.map +1 -1
  132. package/dist/harmony132.mjs +12 -18
  133. package/dist/harmony132.mjs.map +1 -1
  134. package/dist/harmony133.cjs +46 -6
  135. package/dist/harmony133.cjs.map +1 -1
  136. package/dist/harmony133.mjs +46 -6
  137. package/dist/harmony133.mjs.map +1 -1
  138. package/dist/harmony134.cjs +13 -13
  139. package/dist/harmony134.cjs.map +1 -1
  140. package/dist/harmony134.mjs +12 -12
  141. package/dist/harmony134.mjs.map +1 -1
  142. package/dist/harmony135.cjs +5 -31
  143. package/dist/harmony135.cjs.map +1 -1
  144. package/dist/harmony135.mjs +5 -31
  145. package/dist/harmony135.mjs.map +1 -1
  146. package/dist/harmony136.cjs +11 -13
  147. package/dist/harmony136.cjs.map +1 -1
  148. package/dist/harmony136.mjs +11 -13
  149. package/dist/harmony136.mjs.map +1 -1
  150. package/dist/harmony137.cjs +31 -45
  151. package/dist/harmony137.cjs.map +1 -1
  152. package/dist/harmony137.mjs +31 -45
  153. package/dist/harmony137.mjs.map +1 -1
  154. package/dist/harmony138.cjs +15 -13
  155. package/dist/harmony138.cjs.map +1 -1
  156. package/dist/harmony138.mjs +14 -12
  157. package/dist/harmony138.mjs.map +1 -1
  158. package/dist/harmony16.cjs +1 -1
  159. package/dist/harmony16.mjs +1 -1
  160. package/dist/harmony23.cjs +1 -1
  161. package/dist/harmony23.mjs +1 -1
  162. package/dist/harmony24.cjs +1 -1
  163. package/dist/harmony24.mjs +1 -1
  164. package/dist/harmony39.cjs +1 -0
  165. package/dist/harmony39.cjs.map +1 -1
  166. package/dist/harmony39.mjs +1 -0
  167. package/dist/harmony39.mjs.map +1 -1
  168. package/dist/harmony71.cjs +1 -1
  169. package/dist/harmony71.mjs +1 -1
  170. package/dist/harmony72.cjs +1 -1
  171. package/dist/harmony72.mjs +1 -1
  172. package/dist/harmony73.cjs +1 -1
  173. package/dist/harmony73.mjs +1 -1
  174. package/dist/harmony74.cjs +2 -2
  175. package/dist/harmony74.mjs +2 -2
  176. package/dist/harmony75.cjs +2 -2
  177. package/dist/harmony75.mjs +2 -2
  178. package/dist/harmony76.cjs +2 -2
  179. package/dist/harmony76.mjs +2 -2
  180. package/dist/harmony77.cjs +2 -2
  181. package/dist/harmony77.mjs +2 -2
  182. package/dist/harmony78.cjs +3 -3
  183. package/dist/harmony78.mjs +3 -3
  184. package/dist/harmony79.cjs +6 -6
  185. package/dist/harmony79.mjs +6 -6
  186. package/dist/harmony82.cjs +2 -2
  187. package/dist/harmony82.mjs +2 -2
  188. package/dist/harmony85.cjs +7 -12
  189. package/dist/harmony85.cjs.map +1 -1
  190. package/dist/harmony85.mjs +6 -11
  191. package/dist/harmony85.mjs.map +1 -1
  192. package/dist/harmony86.cjs +8 -20
  193. package/dist/harmony86.cjs.map +1 -1
  194. package/dist/harmony86.mjs +8 -20
  195. package/dist/harmony86.mjs.map +1 -1
  196. package/dist/harmony87.cjs +6 -3
  197. package/dist/harmony87.cjs.map +1 -1
  198. package/dist/harmony87.mjs +6 -3
  199. package/dist/harmony87.mjs.map +1 -1
  200. package/dist/harmony88.cjs +57 -9
  201. package/dist/harmony88.cjs.map +1 -1
  202. package/dist/harmony88.mjs +56 -8
  203. package/dist/harmony88.mjs.map +1 -1
  204. package/dist/harmony89.cjs +42 -9
  205. package/dist/harmony89.cjs.map +1 -1
  206. package/dist/harmony89.mjs +41 -8
  207. package/dist/harmony89.mjs.map +1 -1
  208. package/dist/harmony90.cjs +5 -57
  209. package/dist/harmony90.cjs.map +1 -1
  210. package/dist/harmony90.mjs +5 -57
  211. package/dist/harmony90.mjs.map +1 -1
  212. package/dist/harmony91.cjs +9 -42
  213. package/dist/harmony91.cjs.map +1 -1
  214. package/dist/harmony91.mjs +8 -41
  215. package/dist/harmony91.mjs.map +1 -1
  216. package/dist/harmony92.cjs +25 -6
  217. package/dist/harmony92.cjs.map +1 -1
  218. package/dist/harmony92.mjs +24 -5
  219. package/dist/harmony92.mjs.map +1 -1
  220. package/dist/harmony93.cjs +3 -6
  221. package/dist/harmony93.cjs.map +1 -1
  222. package/dist/harmony93.mjs +3 -6
  223. package/dist/harmony93.mjs.map +1 -1
  224. package/dist/harmony94.cjs +21 -24
  225. package/dist/harmony94.cjs.map +1 -1
  226. package/dist/harmony94.mjs +20 -23
  227. package/dist/harmony94.mjs.map +1 -1
  228. package/dist/harmony95.cjs +9 -3
  229. package/dist/harmony95.cjs.map +1 -1
  230. package/dist/harmony95.mjs +9 -3
  231. package/dist/harmony95.mjs.map +1 -1
  232. package/dist/harmony96.cjs +9 -19
  233. package/dist/harmony96.cjs.map +1 -1
  234. package/dist/harmony96.mjs +11 -21
  235. package/dist/harmony96.mjs.map +1 -1
  236. package/dist/harmony97.cjs +20 -11
  237. package/dist/harmony97.cjs.map +1 -1
  238. package/dist/harmony97.mjs +20 -11
  239. package/dist/harmony97.mjs.map +1 -1
  240. package/package.json +2 -2
@@ -1,49 +1,35 @@
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 React = require("react");
6
- const TasksContext = require("./harmony109.cjs");
7
- const TaskLanguageCompleted = ({ task, language }) => {
8
- const [loading, setLoading] = React.useState(false);
9
- const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = React.useState(false);
10
- const { onLanguageCompleteConfirm, fetchTasks } = TasksContext.useTasks();
11
- const closePrompt = () => {
12
- setIsMarkAsDonePromptShown(false);
13
- };
14
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
15
- isMarkAsDonePromptShown && /* @__PURE__ */ jsxRuntime.jsx(
16
- louis.ConfirmModal,
17
- {
18
- opened: true,
19
- loading,
20
- title: `Are you finished with ${language.name}?`,
21
- confirmText: "Mark as done",
22
- closeText: "Cancel",
23
- onClose: closePrompt,
24
- onConfirm: async () => {
25
- setLoading(true);
26
- await onLanguageCompleteConfirm({ task, language, closePrompt });
27
- fetchTasks();
28
- },
29
- children: /* @__PURE__ */ jsxRuntime.jsxs(louis.Alert, { status: "info", children: [
30
- "Make sure you are finished and ",
31
- /* @__PURE__ */ jsxRuntime.jsx("strong", { children: "mark it as done" }),
32
- " to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
33
- ] })
3
+ const _Symbol = require("./harmony136.cjs");
4
+ var _getRawTag;
5
+ var hasRequired_getRawTag;
6
+ function require_getRawTag() {
7
+ if (hasRequired_getRawTag) return _getRawTag;
8
+ hasRequired_getRawTag = 1;
9
+ var Symbol2 = _Symbol.__require();
10
+ var objectProto = Object.prototype;
11
+ var hasOwnProperty = objectProto.hasOwnProperty;
12
+ var nativeObjectToString = objectProto.toString;
13
+ var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
14
+ function getRawTag(value) {
15
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
16
+ try {
17
+ value[symToStringTag] = void 0;
18
+ var unmasked = true;
19
+ } catch (e) {
20
+ }
21
+ var result = nativeObjectToString.call(value);
22
+ if (unmasked) {
23
+ if (isOwn) {
24
+ value[symToStringTag] = tag;
25
+ } else {
26
+ delete value[symToStringTag];
34
27
  }
35
- ),
36
- /* @__PURE__ */ jsxRuntime.jsx(
37
- louis.Link,
38
- {
39
- disabled: loading,
40
- onClick: () => {
41
- setIsMarkAsDonePromptShown(true);
42
- },
43
- children: "Mark as done"
44
- }
45
- )
46
- ] });
47
- };
48
- exports.TaskLanguageCompleted = TaskLanguageCompleted;
28
+ }
29
+ return result;
30
+ }
31
+ _getRawTag = getRawTag;
32
+ return _getRawTag;
33
+ }
34
+ exports.__require = require_getRawTag;
49
35
  //# sourceMappingURL=harmony137.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony137.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguageCompleted/TaskLanguageCompleted.tsx"],"sourcesContent":["import { Alert, ConfirmModal, Link } from '@lokalise/louis'\nimport { useState } from 'react'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskLanguage } from '../types'\n\ntype TaskLanguageCompletedProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguageCompleted = ({ task, language }: TaskLanguageCompletedProps) => {\n\tconst [loading, setLoading] = useState(false)\n\n\tconst [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false)\n\n\tconst { onLanguageCompleteConfirm, fetchTasks } = useTasks()\n\n\tconst closePrompt = () => {\n\t\tsetIsMarkAsDonePromptShown(false)\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{isMarkAsDonePromptShown && (\n\t\t\t\t<ConfirmModal\n\t\t\t\t\topened\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttitle={`Are you finished with ${language.name}?`}\n\t\t\t\t\tconfirmText=\"Mark as done\"\n\t\t\t\t\tcloseText=\"Cancel\"\n\t\t\t\t\tonClose={closePrompt}\n\t\t\t\t\tonConfirm={async () => {\n\t\t\t\t\t\tsetLoading(true)\n\t\t\t\t\t\tawait onLanguageCompleteConfirm({ task, language, closePrompt })\n\t\t\t\t\t\tfetchTasks()\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Alert status=\"info\">\n\t\t\t\t\t\tMake sure you are finished and <strong>mark it as done</strong> to notify your team\n\t\t\t\t\t\tadmin. This action cannot be undone, and the language might no longer be available for\n\t\t\t\t\t\tyou to edit.\n\t\t\t\t\t</Alert>\n\t\t\t\t</ConfirmModal>\n\t\t\t)}\n\t\t\t<Link\n\t\t\t\tdisabled={loading}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tsetIsMarkAsDonePromptShown(true)\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tMark as done\n\t\t\t</Link>\n\t\t</>\n\t)\n}\n"],"names":["useState","useTasks","jsxs","Fragment","jsx","ConfirmModal","Alert","Link"],"mappings":";;;;;;AAUO,MAAM,wBAAwB,CAAC,EAAE,MAAM,eAA2C;AACxF,QAAM,CAAC,SAAS,UAAU,IAAIA,MAAAA,SAAS,KAAK;AAE5C,QAAM,CAAC,yBAAyB,0BAA0B,IAAIA,MAAAA,SAAS,KAAK;AAE5E,QAAM,EAAE,2BAA2B,WAAW,IAAIC,sBAAS;AAE3D,QAAM,cAAc,MAAM;AACzB,+BAA2B,KAAK;AAAA,EACjC;AAEA,SAEGC,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IACA,2BAAAC,2BAAA;AAAA,MAACC,MAAA;AAAA,MAAA;AAAA,QACA,QAAM;AAAA,QACN;AAAA,QACA,OAAO,yBAAyB,SAAS,IAAI;AAAA,QAC7C,aAAY;AAAA,QACZ,WAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW,YAAY;AACtB,qBAAW,IAAI;AACf,gBAAM,0BAA0B,EAAE,MAAM,UAAU,aAAa;AACpD,qBAAA;AAAA,QACZ;AAAA,QAEA,UAAAH,2BAAA,KAACI,MAAM,OAAA,EAAA,QAAO,QAAO,UAAA;AAAA,UAAA;AAAA,UACWF,2BAAAA,IAAC,YAAO,UAAe,kBAAA,CAAA;AAAA,UAAS;AAAA,QAAA,EAGhE,CAAA;AAAA,MAAA;AAAA,IACD;AAAA,IAEDA,2BAAA;AAAA,MAACG,MAAA;AAAA,MAAA;AAAA,QACA,UAAU;AAAA,QACV,SAAS,MAAM;AACd,qCAA2B,IAAI;AAAA,QAChC;AAAA,QACA,UAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAED,GACD;AAEF;;"}
1
+ {"version":3,"file":"harmony137.cjs","sources":["../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["Symbol","require$$0"],"mappings":";;;;;;;;AAAA,MAAIA,UAASC,QAAAA,UAAoB;AAGjC,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiBD,UAASA,QAAO,cAAc;AASnD,WAAS,UAAU,OAAO;AACxB,QAAI,QAAQ,eAAe,KAAK,OAAO,cAAc,GACjD,MAAM,MAAM,cAAc;AAE9B,QAAI;AACF,YAAM,cAAc,IAAI;AACxB,UAAI,WAAW;AAAA,IAChB,SAAQ,GAAG;AAAA,IAAA;AAEZ,QAAI,SAAS,qBAAqB,KAAK,KAAK;AAC5C,QAAI,UAAU;AACZ,UAAI,OAAO;AACT,cAAM,cAAc,IAAI;AAAA,MAC9B,OAAW;AACL,eAAO,MAAM,cAAc;AAAA,MACjC;AAAA,IACA;AACE,WAAO;AAAA,EACT;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,49 +1,35 @@
1
- import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
- import { ConfirmModal, Alert, Link } from "@lokalise/louis";
3
- import { useState } from "react";
4
- import { useTasks } from "./harmony109.mjs";
5
- const TaskLanguageCompleted = ({ task, language }) => {
6
- const [loading, setLoading] = useState(false);
7
- const [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false);
8
- const { onLanguageCompleteConfirm, fetchTasks } = useTasks();
9
- const closePrompt = () => {
10
- setIsMarkAsDonePromptShown(false);
11
- };
12
- return /* @__PURE__ */ jsxs(Fragment, { children: [
13
- isMarkAsDonePromptShown && /* @__PURE__ */ jsx(
14
- ConfirmModal,
15
- {
16
- opened: true,
17
- loading,
18
- title: `Are you finished with ${language.name}?`,
19
- confirmText: "Mark as done",
20
- closeText: "Cancel",
21
- onClose: closePrompt,
22
- onConfirm: async () => {
23
- setLoading(true);
24
- await onLanguageCompleteConfirm({ task, language, closePrompt });
25
- fetchTasks();
26
- },
27
- children: /* @__PURE__ */ jsxs(Alert, { status: "info", children: [
28
- "Make sure you are finished and ",
29
- /* @__PURE__ */ jsx("strong", { children: "mark it as done" }),
30
- " to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
31
- ] })
1
+ import { __require as require_Symbol } from "./harmony136.mjs";
2
+ var _getRawTag;
3
+ var hasRequired_getRawTag;
4
+ function require_getRawTag() {
5
+ if (hasRequired_getRawTag) return _getRawTag;
6
+ hasRequired_getRawTag = 1;
7
+ var Symbol = require_Symbol();
8
+ var objectProto = Object.prototype;
9
+ var hasOwnProperty = objectProto.hasOwnProperty;
10
+ var nativeObjectToString = objectProto.toString;
11
+ var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
12
+ function getRawTag(value) {
13
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
14
+ try {
15
+ value[symToStringTag] = void 0;
16
+ var unmasked = true;
17
+ } catch (e) {
18
+ }
19
+ var result = nativeObjectToString.call(value);
20
+ if (unmasked) {
21
+ if (isOwn) {
22
+ value[symToStringTag] = tag;
23
+ } else {
24
+ delete value[symToStringTag];
32
25
  }
33
- ),
34
- /* @__PURE__ */ jsx(
35
- Link,
36
- {
37
- disabled: loading,
38
- onClick: () => {
39
- setIsMarkAsDonePromptShown(true);
40
- },
41
- children: "Mark as done"
42
- }
43
- )
44
- ] });
45
- };
26
+ }
27
+ return result;
28
+ }
29
+ _getRawTag = getRawTag;
30
+ return _getRawTag;
31
+ }
46
32
  export {
47
- TaskLanguageCompleted
33
+ require_getRawTag as __require
48
34
  };
49
35
  //# sourceMappingURL=harmony137.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony137.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguageCompleted/TaskLanguageCompleted.tsx"],"sourcesContent":["import { Alert, ConfirmModal, Link } from '@lokalise/louis'\nimport { useState } from 'react'\nimport { useTasks } from '../TasksContext'\nimport type { SidebarTask, SidebarTaskLanguage } from '../types'\n\ntype TaskLanguageCompletedProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguageCompleted = ({ task, language }: TaskLanguageCompletedProps) => {\n\tconst [loading, setLoading] = useState(false)\n\n\tconst [isMarkAsDonePromptShown, setIsMarkAsDonePromptShown] = useState(false)\n\n\tconst { onLanguageCompleteConfirm, fetchTasks } = useTasks()\n\n\tconst closePrompt = () => {\n\t\tsetIsMarkAsDonePromptShown(false)\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t{isMarkAsDonePromptShown && (\n\t\t\t\t<ConfirmModal\n\t\t\t\t\topened\n\t\t\t\t\tloading={loading}\n\t\t\t\t\ttitle={`Are you finished with ${language.name}?`}\n\t\t\t\t\tconfirmText=\"Mark as done\"\n\t\t\t\t\tcloseText=\"Cancel\"\n\t\t\t\t\tonClose={closePrompt}\n\t\t\t\t\tonConfirm={async () => {\n\t\t\t\t\t\tsetLoading(true)\n\t\t\t\t\t\tawait onLanguageCompleteConfirm({ task, language, closePrompt })\n\t\t\t\t\t\tfetchTasks()\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<Alert status=\"info\">\n\t\t\t\t\t\tMake sure you are finished and <strong>mark it as done</strong> to notify your team\n\t\t\t\t\t\tadmin. This action cannot be undone, and the language might no longer be available for\n\t\t\t\t\t\tyou to edit.\n\t\t\t\t\t</Alert>\n\t\t\t\t</ConfirmModal>\n\t\t\t)}\n\t\t\t<Link\n\t\t\t\tdisabled={loading}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tsetIsMarkAsDonePromptShown(true)\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\tMark as done\n\t\t\t</Link>\n\t\t</>\n\t)\n}\n"],"names":[],"mappings":";;;;AAUO,MAAM,wBAAwB,CAAC,EAAE,MAAM,eAA2C;AACxF,QAAM,CAAC,SAAS,UAAU,IAAI,SAAS,KAAK;AAE5C,QAAM,CAAC,yBAAyB,0BAA0B,IAAI,SAAS,KAAK;AAE5E,QAAM,EAAE,2BAA2B,WAAW,IAAI,SAAS;AAE3D,QAAM,cAAc,MAAM;AACzB,+BAA2B,KAAK;AAAA,EACjC;AAEA,SAEG,qBAAA,UAAA,EAAA,UAAA;AAAA,IACA,2BAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,QAAM;AAAA,QACN;AAAA,QACA,OAAO,yBAAyB,SAAS,IAAI;AAAA,QAC7C,aAAY;AAAA,QACZ,WAAU;AAAA,QACV,SAAS;AAAA,QACT,WAAW,YAAY;AACtB,qBAAW,IAAI;AACf,gBAAM,0BAA0B,EAAE,MAAM,UAAU,aAAa;AACpD,qBAAA;AAAA,QACZ;AAAA,QAEA,UAAA,qBAAC,OAAM,EAAA,QAAO,QAAO,UAAA;AAAA,UAAA;AAAA,UACW,oBAAC,YAAO,UAAe,kBAAA,CAAA;AAAA,UAAS;AAAA,QAAA,EAGhE,CAAA;AAAA,MAAA;AAAA,IACD;AAAA,IAED;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,UAAU;AAAA,QACV,SAAS,MAAM;AACd,qCAA2B,IAAI;AAAA,QAChC;AAAA,QACA,UAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAED,GACD;AAEF;"}
1
+ {"version":3,"file":"harmony137.mjs","sources":["../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,SAASA,eAAoB;AAGjC,MAAI,cAAc,OAAO;AAGzB,MAAI,iBAAiB,YAAY;AAOjC,MAAI,uBAAuB,YAAY;AAGvC,MAAI,iBAAiB,SAAS,OAAO,cAAc;AASnD,WAAS,UAAU,OAAO;AACxB,QAAI,QAAQ,eAAe,KAAK,OAAO,cAAc,GACjD,MAAM,MAAM,cAAc;AAE9B,QAAI;AACF,YAAM,cAAc,IAAI;AACxB,UAAI,WAAW;AAAA,IAChB,SAAQ,GAAG;AAAA,IAAA;AAEZ,QAAI,SAAS,qBAAqB,KAAK,KAAK;AAC5C,QAAI,UAAU;AACZ,UAAI,OAAO;AACT,cAAM,cAAc,IAAI;AAAA,MAC9B,OAAW;AACL,eAAO,MAAM,cAAc;AAAA,MACjC;AAAA,IACA;AACE,WAAO;AAAA,EACT;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const langRowCompleted = "_langRowCompleted_vpgdi_1";
4
- const langCellSecondary = "_langCellSecondary_vpgdi_15";
5
- const langStatus = "_langStatus_vpgdi_20";
6
- const styles = {
7
- langRowCompleted,
8
- langCellSecondary,
9
- langStatus
10
- };
11
- exports.default = styles;
12
- exports.langCellSecondary = langCellSecondary;
13
- exports.langRowCompleted = langRowCompleted;
14
- exports.langStatus = langStatus;
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ var _objectToString;
4
+ var hasRequired_objectToString;
5
+ function require_objectToString() {
6
+ if (hasRequired_objectToString) return _objectToString;
7
+ hasRequired_objectToString = 1;
8
+ var objectProto = Object.prototype;
9
+ var nativeObjectToString = objectProto.toString;
10
+ function objectToString(value) {
11
+ return nativeObjectToString.call(value);
12
+ }
13
+ _objectToString = objectToString;
14
+ return _objectToString;
15
+ }
16
+ exports.__require = require_objectToString;
15
17
  //# sourceMappingURL=harmony138.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony138.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"harmony138.cjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,15 +1,17 @@
1
- const langRowCompleted = "_langRowCompleted_vpgdi_1";
2
- const langCellSecondary = "_langCellSecondary_vpgdi_15";
3
- const langStatus = "_langStatus_vpgdi_20";
4
- const styles = {
5
- langRowCompleted,
6
- langCellSecondary,
7
- langStatus
8
- };
1
+ var _objectToString;
2
+ var hasRequired_objectToString;
3
+ function require_objectToString() {
4
+ if (hasRequired_objectToString) return _objectToString;
5
+ hasRequired_objectToString = 1;
6
+ var objectProto = Object.prototype;
7
+ var nativeObjectToString = objectProto.toString;
8
+ function objectToString(value) {
9
+ return nativeObjectToString.call(value);
10
+ }
11
+ _objectToString = objectToString;
12
+ return _objectToString;
13
+ }
9
14
  export {
10
- styles as default,
11
- langCellSecondary,
12
- langRowCompleted,
13
- langStatus
15
+ require_objectToString as __require
14
16
  };
15
17
  //# sourceMappingURL=harmony138.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony138.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"harmony138.mjs","sources":["../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;AACA,MAAI,cAAc,OAAO;AAOzB,MAAI,uBAAuB,YAAY;AASvC,WAAS,eAAe,OAAO;AAC7B,WAAO,qBAAqB,KAAK,KAAK;AAAA,EACxC;AAEA,oBAAiB;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jwtTokenPayload = require("./harmony101.cjs");
3
+ const jwtTokenPayload = require("./harmony111.cjs");
4
4
  function parseJwtTokenPayload(token) {
5
5
  try {
6
6
  const payload = token.split(".")[1];
@@ -1,4 +1,4 @@
1
- import { JWT_TOKEN_PAYLOAD_SCHEMA } from "./harmony101.mjs";
1
+ import { JWT_TOKEN_PAYLOAD_SCHEMA } from "./harmony111.mjs";
2
2
  function parseJwtTokenPayload(token) {
3
3
  try {
4
4
  const payload = token.split(".")[1];
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const useGetUserTokenQuery = require("./harmony44.cjs");
4
4
  const React = require("react");
5
- const NewJwtIssuedEvent = require("./harmony102.cjs");
5
+ const NewJwtIssuedEvent = require("./harmony110.cjs");
6
6
  const cookieTokenUtils = require("./harmony17.cjs");
7
7
  function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
8
8
  const csrf = cookieTokenUtils.getCsrfTokenFromCookie();
@@ -1,6 +1,6 @@
1
1
  import { useGetUserTokenQuery, getUserTokenKey } from "./harmony44.mjs";
2
2
  import { useRef, useEffect } from "react";
3
- import { NewJwtIssuedEvent } from "./harmony102.mjs";
3
+ import { NewJwtIssuedEvent } from "./harmony110.mjs";
4
4
  import { getCsrfTokenFromCookie } from "./harmony17.mjs";
5
5
  function useGetPromotedClassicSessionJwtQuery(wretchClient, headers, teamId) {
6
6
  const csrf = getCsrfTokenFromCookie();
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const React = require("react");
4
4
  const jwtTokenPayload = require("./harmony16.cjs");
5
- const NewJwtIssuedEvent = require("./harmony102.cjs");
5
+ const NewJwtIssuedEvent = require("./harmony110.cjs");
6
6
  const cookieTokenUtils = require("./harmony17.cjs");
7
7
  function useAuthenticatedSessionPayload() {
8
8
  const [payload, setPayload] = React.useState();
@@ -1,6 +1,6 @@
1
1
  import { useState, useEffect } from "react";
2
2
  import { parseJwtTokenPayload } from "./harmony16.mjs";
3
- import { NewJwtIssuedEvent } from "./harmony102.mjs";
3
+ import { NewJwtIssuedEvent } from "./harmony110.mjs";
4
4
  import { getJwtTokenFromCookie } from "./harmony17.mjs";
5
5
  function useAuthenticatedSessionPayload() {
6
6
  const [payload, setPayload] = useState();
@@ -17,6 +17,7 @@ function useDeleteScoreMutation(wretchClient, headers, overrides = {}) {
17
17
  * https://github.com/TanStack/query/discussions/4964
18
18
  * https://github.com/TanStack/query/discussions/6380
19
19
  **/
20
+ // @ts-expect-error react-query requires non-undefined return
20
21
  onSuccess: () => null
21
22
  });
22
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"harmony39.cjs","sources":["../src/features/publicApi/hooks/useDeleteScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByDeleteRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { deleteScore } from '../score'\nimport type { DeleteScorePathParms, DeleteScoreResponseBody } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the deleteScore API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the mutation.\n */\nexport function useDeleteScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<DeleteScoreResponseBody, DeleteScorePathParms> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByDeleteRoute(wretchClient, deleteScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: variables,\n\t\t\t}),\n\t\t/**\n\t\t * When the request is successful, we expect to receive a 204 with no response body (i.e undefined)\n\t\t * react-query doesn't allow for undefined to be returned, so we need to return null instead\n\t\t * See references for more information:\n\t\t * https://github.com/TanStack/query/discussions/4964\n\t\t * https://github.com/TanStack/query/discussions/6380\n\t\t **/\n\t\tonSuccess: () => null,\n\t})\n}\n"],"names":["useMutation","sendByDeleteRoute","deleteScore"],"mappings":";;;;;AAgBO,SAAS,uBACf,cACA,SACA,YAAiF,CAAA,GAChF;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,qCAAkB,cAAcC,MAAAA,aAAa;AAAA,MAC5C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IAAA,CACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQF,WAAW,MAAM;AAAA,EAAA,CACjB;AACF;;"}
1
+ {"version":3,"file":"harmony39.cjs","sources":["../src/features/publicApi/hooks/useDeleteScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByDeleteRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { deleteScore } from '../score'\nimport type { DeleteScorePathParms, DeleteScoreResponseBody } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the deleteScore API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the mutation.\n */\nexport function useDeleteScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<DeleteScoreResponseBody, DeleteScorePathParms> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByDeleteRoute(wretchClient, deleteScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: variables,\n\t\t\t}),\n\t\t/**\n\t\t * When the request is successful, we expect to receive a 204 with no response body (i.e undefined)\n\t\t * react-query doesn't allow for undefined to be returned, so we need to return null instead\n\t\t * See references for more information:\n\t\t * https://github.com/TanStack/query/discussions/4964\n\t\t * https://github.com/TanStack/query/discussions/6380\n\t\t **/\n\t\t// @ts-expect-error react-query requires non-undefined return\n\t\tonSuccess: () => null,\n\t})\n}\n"],"names":["useMutation","sendByDeleteRoute","deleteScore"],"mappings":";;;;;AAgBO,SAAS,uBACf,cACA,SACA,YAAiF,CAAA,GAChF;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,qCAAkB,cAAcC,MAAAA,aAAa;AAAA,MAC5C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IAAA,CACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASF,WAAW,MAAM;AAAA,EAAA,CACjB;AACF;;"}
@@ -15,6 +15,7 @@ function useDeleteScoreMutation(wretchClient, headers, overrides = {}) {
15
15
  * https://github.com/TanStack/query/discussions/4964
16
16
  * https://github.com/TanStack/query/discussions/6380
17
17
  **/
18
+ // @ts-expect-error react-query requires non-undefined return
18
19
  onSuccess: () => null
19
20
  });
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"harmony39.mjs","sources":["../src/features/publicApi/hooks/useDeleteScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByDeleteRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { deleteScore } from '../score'\nimport type { DeleteScorePathParms, DeleteScoreResponseBody } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the deleteScore API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the mutation.\n */\nexport function useDeleteScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<DeleteScoreResponseBody, DeleteScorePathParms> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByDeleteRoute(wretchClient, deleteScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: variables,\n\t\t\t}),\n\t\t/**\n\t\t * When the request is successful, we expect to receive a 204 with no response body (i.e undefined)\n\t\t * react-query doesn't allow for undefined to be returned, so we need to return null instead\n\t\t * See references for more information:\n\t\t * https://github.com/TanStack/query/discussions/4964\n\t\t * https://github.com/TanStack/query/discussions/6380\n\t\t **/\n\t\tonSuccess: () => null,\n\t})\n}\n"],"names":[],"mappings":";;;AAgBO,SAAS,uBACf,cACA,SACA,YAAiF,CAAA,GAChF;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,kBAAkB,cAAc,aAAa;AAAA,MAC5C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IAAA,CACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQF,WAAW,MAAM;AAAA,EAAA,CACjB;AACF;"}
1
+ {"version":3,"file":"harmony39.mjs","sources":["../src/features/publicApi/hooks/useDeleteScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByDeleteRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { deleteScore } from '../score'\nimport type { DeleteScorePathParms, DeleteScoreResponseBody } from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the deleteScore API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Instance of the header builder for the public API.\n * @param overrides - Additional options to pass to the mutation.\n */\nexport function useDeleteScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<DeleteScoreResponseBody, DeleteScorePathParms> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByDeleteRoute(wretchClient, deleteScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: variables,\n\t\t\t}),\n\t\t/**\n\t\t * When the request is successful, we expect to receive a 204 with no response body (i.e undefined)\n\t\t * react-query doesn't allow for undefined to be returned, so we need to return null instead\n\t\t * See references for more information:\n\t\t * https://github.com/TanStack/query/discussions/4964\n\t\t * https://github.com/TanStack/query/discussions/6380\n\t\t **/\n\t\t// @ts-expect-error react-query requires non-undefined return\n\t\tonSuccess: () => null,\n\t})\n}\n"],"names":[],"mappings":";;;AAgBO,SAAS,uBACf,cACA,SACA,YAAiF,CAAA,GAChF;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,kBAAkB,cAAc,aAAa;AAAA,MAC5C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY;AAAA,IAAA,CACZ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASF,WAAW,MAAM;AAAA,EAAA,CACjB;AACF;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const Avatar_module = require("./harmony87.cjs");
4
+ const Avatar_module = require("./harmony85.cjs");
5
5
  const Avatar = ({
6
6
  src,
7
7
  href = "/",
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import styles from "./harmony87.mjs";
2
+ import styles from "./harmony85.mjs";
3
3
  const Avatar = ({
4
4
  src,
5
5
  href = "/",
@@ -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 clsx = require("./harmony67.cjs");
6
- const IconLink_module = require("./harmony88.cjs");
6
+ const IconLink_module = require("./harmony86.cjs");
7
7
  const IconLink = ({ label, to, icon: Icon }) => {
8
8
  return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
9
9
  louis.Link,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Tooltip, Link } from "@lokalise/louis";
3
3
  import { clsx } from "./harmony67.mjs";
4
- import styles from "./harmony88.mjs";
4
+ import styles from "./harmony86.mjs";
5
5
  const IconLink = ({ label, to, icon: Icon }) => {
6
6
  return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
7
7
  Link,
@@ -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 clsx = require("./harmony67.cjs");
6
- const Menu_module = require("./harmony89.cjs");
6
+ const Menu_module = require("./harmony87.cjs");
7
7
  const Menu = ({ children, icon: Icon }) => {
8
8
  return /* @__PURE__ */ jsxRuntime.jsx(
9
9
  louis.Menu,
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
3
3
  import { clsx } from "./harmony67.mjs";
4
- import styles from "./harmony89.mjs";
4
+ import styles from "./harmony87.mjs";
5
5
  const Menu = ({ children, icon: Icon }) => {
6
6
  return /* @__PURE__ */ jsx(
7
7
  Menu$1,
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ProfileMenuContent = require("./harmony90.cjs");
5
- const ProfileMenuProvider = require("./harmony91.cjs");
4
+ const ProfileMenuContent = require("./harmony88.cjs");
5
+ const ProfileMenuProvider = require("./harmony89.cjs");
6
6
  const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
7
7
  exports.ProfileMenu = ProfileMenu;
8
8
  //# sourceMappingURL=harmony74.cjs.map
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { ProfileMenuContent } from "./harmony90.mjs";
3
- import { ProfileMenuProvider } from "./harmony91.mjs";
2
+ import { ProfileMenuContent } from "./harmony88.mjs";
3
+ import { ProfileMenuProvider } from "./harmony89.mjs";
4
4
  const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
5
5
  export {
6
6
  ProfileMenu
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const louis = require("@lokalise/louis");
5
- const ProfileMenuContext = require("./harmony92.cjs");
6
- const ProfileSettingsMenuItem_module = require("./harmony93.cjs");
5
+ const ProfileMenuContext = require("./harmony90.cjs");
6
+ const ProfileSettingsMenuItem_module = require("./harmony91.cjs");
7
7
  const ProfileSettingsMenuItem = ({
8
8
  href,
9
9
  onClick,
@@ -1,7 +1,7 @@
1
1
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { MenuItem, MenuDivider } from "@lokalise/louis";
3
- import { useProfileMenu } from "./harmony92.mjs";
4
- import styles from "./harmony93.mjs";
3
+ import { useProfileMenu } from "./harmony90.mjs";
4
+ import styles from "./harmony91.mjs";
5
5
  const ProfileSettingsMenuItem = ({
6
6
  href,
7
7
  onClick,
@@ -3,8 +3,8 @@ 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 plan = require("./harmony8.cjs");
6
- const ProfileMenuContext = require("./harmony92.cjs");
7
- const TeamMenuItem_module = require("./harmony94.cjs");
6
+ const ProfileMenuContext = require("./harmony90.cjs");
7
+ const TeamMenuItem_module = require("./harmony92.cjs");
8
8
  const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
9
9
  const { currentTeam, planId } = ProfileMenuContext.useProfileMenu();
10
10
  const contextTeam = team || currentTeam;
@@ -1,8 +1,8 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { MenuItem, UserIcon } from "@lokalise/louis";
3
3
  import { isFreePlan, isTrialPlan } from "./harmony8.mjs";
4
- import { useProfileMenu } from "./harmony92.mjs";
5
- import styles from "./harmony94.mjs";
4
+ import { useProfileMenu } from "./harmony90.mjs";
5
+ import styles from "./harmony92.mjs";
6
6
  const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
7
7
  const { currentTeam, planId } = useProfileMenu();
8
8
  const contextTeam = team || currentTeam;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ProfileMenuContext = require("./harmony92.cjs");
4
+ const ProfileMenuContext = require("./harmony90.cjs");
5
5
  const TeamMenuItem = require("./harmony76.cjs");
6
- const TeamSwitch_module = require("./harmony95.cjs");
6
+ const TeamSwitch_module = require("./harmony93.cjs");
7
7
  const TeamSwitch = ({ onSwitchTeam }) => {
8
8
  const { otherTeams } = ProfileMenuContext.useProfileMenu();
9
9
  if (otherTeams.length === 0) {
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { useProfileMenu } from "./harmony92.mjs";
2
+ import { useProfileMenu } from "./harmony90.mjs";
3
3
  import { TeamMenuItem } from "./harmony76.mjs";
4
- import styles from "./harmony95.mjs";
4
+ import styles from "./harmony93.mjs";
5
5
  const TeamSwitch = ({ onSwitchTeam }) => {
6
6
  const { otherTeams } = useProfileMenu();
7
7
  if (otherTeams.length === 0) {
@@ -3,9 +3,9 @@ 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 plan = require("./harmony8.cjs");
6
- const UpgradeIcon = require("./harmony96.cjs");
7
- const ProfileMenuContext = require("./harmony92.cjs");
8
- const UpgradeMenuItem_module = require("./harmony97.cjs");
6
+ const UpgradeIcon = require("./harmony94.cjs");
7
+ const ProfileMenuContext = require("./harmony90.cjs");
8
+ const UpgradeMenuItem_module = require("./harmony95.cjs");
9
9
  const UpgradeMenuItem = ({ upgradeOptionHref }) => {
10
10
  const { planId, trialDaysLeft, showUpgradeCta } = ProfileMenuContext.useProfileMenu();
11
11
  if (!showUpgradeCta) {
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { MenuItem } from "@lokalise/louis";
3
3
  import { isFreePlan } from "./harmony8.mjs";
4
- import { UpgradeIcon } from "./harmony96.mjs";
5
- import { useProfileMenu } from "./harmony92.mjs";
6
- import styles from "./harmony97.mjs";
4
+ import { UpgradeIcon } from "./harmony94.mjs";
5
+ import { useProfileMenu } from "./harmony90.mjs";
6
+ import styles from "./harmony95.mjs";
7
7
  const UpgradeMenuItem = ({ upgradeOptionHref }) => {
8
8
  const { planId, trialDaysLeft, showUpgradeCta } = useProfileMenu();
9
9
  if (!showUpgradeCta) {
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const floatingUi_core = require("./harmony107.cjs");
4
+ const floatingUi_core = require("./harmony101.cjs");
5
5
  const louis = require("@lokalise/louis");
6
6
  const useEffectOnce = require("./harmony12.cjs");
7
7
  const clsx = require("./harmony67.cjs");
8
8
  const React = require("react");
9
- const Tasks_module = require("./harmony108.cjs");
10
- const TasksContext = require("./harmony109.cjs");
11
- const TasksPopover = require("./harmony110.cjs");
12
- const TasksProvider = require("./harmony111.cjs");
13
- const taskEvents = require("./harmony112.cjs");
9
+ const Tasks_module = require("./harmony102.cjs");
10
+ const TasksContext = require("./harmony103.cjs");
11
+ const TasksPopover = require("./harmony104.cjs");
12
+ const TasksProvider = require("./harmony105.cjs");
13
+ const taskEvents = require("./harmony106.cjs");
14
14
  const Tasks = TasksProvider.withTasksContext(() => {
15
15
  const [open, setOpen] = React.useState(false);
16
16
  const { tasksCount } = TasksContext.useTasks();