@lokalise/harmony 1.26.0 → 1.26.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 (499) hide show
  1. package/dist/harmony.cjs +182 -1
  2. package/dist/harmony.cjs.map +1 -0
  3. package/dist/harmony.css +639 -1
  4. package/dist/harmony.mjs +180 -1993
  5. package/dist/harmony.mjs.map +1 -0
  6. package/dist/harmony10.cjs +9 -0
  7. package/dist/harmony10.cjs.map +1 -0
  8. package/dist/harmony10.mjs +9 -0
  9. package/dist/harmony10.mjs.map +1 -0
  10. package/dist/harmony100.cjs +65 -0
  11. package/dist/harmony100.cjs.map +1 -0
  12. package/dist/harmony100.mjs +65 -0
  13. package/dist/harmony100.mjs.map +1 -0
  14. package/dist/harmony101.cjs +91 -0
  15. package/dist/harmony101.cjs.map +1 -0
  16. package/dist/harmony101.mjs +91 -0
  17. package/dist/harmony101.mjs.map +1 -0
  18. package/dist/harmony102.cjs +21 -0
  19. package/dist/harmony102.cjs.map +1 -0
  20. package/dist/harmony102.mjs +21 -0
  21. package/dist/harmony102.mjs.map +1 -0
  22. package/dist/harmony103.cjs +99 -0
  23. package/dist/harmony103.cjs.map +1 -0
  24. package/dist/harmony103.mjs +99 -0
  25. package/dist/harmony103.mjs.map +1 -0
  26. package/dist/harmony104.cjs +16 -0
  27. package/dist/harmony104.cjs.map +1 -0
  28. package/dist/harmony104.mjs +16 -0
  29. package/dist/harmony104.mjs.map +1 -0
  30. package/dist/harmony105.cjs +17 -0
  31. package/dist/harmony105.cjs.map +1 -0
  32. package/dist/harmony105.mjs +17 -0
  33. package/dist/harmony105.mjs.map +1 -0
  34. package/dist/harmony106.cjs +39 -0
  35. package/dist/harmony106.cjs.map +1 -0
  36. package/dist/harmony106.mjs +39 -0
  37. package/dist/harmony106.mjs.map +1 -0
  38. package/dist/harmony107.cjs +31 -0
  39. package/dist/harmony107.cjs.map +1 -0
  40. package/dist/harmony107.mjs +31 -0
  41. package/dist/harmony107.mjs.map +1 -0
  42. package/dist/harmony108.cjs +10 -0
  43. package/dist/harmony108.cjs.map +1 -0
  44. package/dist/harmony108.mjs +10 -0
  45. package/dist/harmony108.mjs.map +1 -0
  46. package/dist/harmony109.cjs +60 -0
  47. package/dist/harmony109.cjs.map +1 -0
  48. package/dist/harmony109.mjs +60 -0
  49. package/dist/harmony109.mjs.map +1 -0
  50. package/dist/harmony11.cjs +8 -0
  51. package/dist/harmony11.cjs.map +1 -0
  52. package/dist/harmony11.mjs +8 -0
  53. package/dist/harmony11.mjs.map +1 -0
  54. package/dist/harmony110.cjs +63 -0
  55. package/dist/harmony110.cjs.map +1 -0
  56. package/dist/harmony110.mjs +63 -0
  57. package/dist/harmony110.mjs.map +1 -0
  58. package/dist/harmony111.cjs +21 -0
  59. package/dist/harmony111.cjs.map +1 -0
  60. package/dist/harmony111.mjs +21 -0
  61. package/dist/harmony111.mjs.map +1 -0
  62. package/dist/harmony112.cjs +16 -0
  63. package/dist/harmony112.cjs.map +1 -0
  64. package/dist/harmony112.mjs +16 -0
  65. package/dist/harmony112.mjs.map +1 -0
  66. package/dist/harmony113.cjs +18 -0
  67. package/dist/harmony113.cjs.map +1 -0
  68. package/dist/harmony113.mjs +18 -0
  69. package/dist/harmony113.mjs.map +1 -0
  70. package/dist/harmony114.cjs +19 -0
  71. package/dist/harmony114.cjs.map +1 -0
  72. package/dist/harmony114.mjs +19 -0
  73. package/dist/harmony114.mjs.map +1 -0
  74. package/dist/harmony115.cjs +14 -0
  75. package/dist/harmony115.cjs.map +1 -0
  76. package/dist/harmony115.mjs +14 -0
  77. package/dist/harmony115.mjs.map +1 -0
  78. package/dist/harmony116.cjs +19 -0
  79. package/dist/harmony116.cjs.map +1 -0
  80. package/dist/harmony116.mjs +19 -0
  81. package/dist/harmony116.mjs.map +1 -0
  82. package/dist/harmony117.cjs +24 -0
  83. package/dist/harmony117.cjs.map +1 -0
  84. package/dist/harmony117.mjs +24 -0
  85. package/dist/harmony117.mjs.map +1 -0
  86. package/dist/harmony118.cjs +15 -0
  87. package/dist/harmony118.cjs.map +1 -0
  88. package/dist/harmony118.mjs +15 -0
  89. package/dist/harmony118.mjs.map +1 -0
  90. package/dist/harmony119.cjs +49 -0
  91. package/dist/harmony119.cjs.map +1 -0
  92. package/dist/harmony119.mjs +49 -0
  93. package/dist/harmony119.mjs.map +1 -0
  94. package/dist/harmony12.cjs +27 -0
  95. package/dist/harmony12.cjs.map +1 -0
  96. package/dist/harmony12.mjs +27 -0
  97. package/dist/harmony12.mjs.map +1 -0
  98. package/dist/harmony120.cjs +15 -0
  99. package/dist/harmony120.cjs.map +1 -0
  100. package/dist/harmony120.mjs +15 -0
  101. package/dist/harmony120.mjs.map +1 -0
  102. package/dist/harmony121.cjs +9 -0
  103. package/dist/harmony121.cjs.map +1 -0
  104. package/dist/harmony121.mjs +9 -0
  105. package/dist/harmony121.mjs.map +1 -0
  106. package/dist/harmony122.cjs +15 -0
  107. package/dist/harmony122.cjs.map +1 -0
  108. package/dist/harmony122.mjs +15 -0
  109. package/dist/harmony122.mjs.map +1 -0
  110. package/dist/harmony123.cjs +35 -0
  111. package/dist/harmony123.cjs.map +1 -0
  112. package/dist/harmony123.mjs +35 -0
  113. package/dist/harmony123.mjs.map +1 -0
  114. package/dist/harmony124.cjs +17 -0
  115. package/dist/harmony124.cjs.map +1 -0
  116. package/dist/harmony124.mjs +17 -0
  117. package/dist/harmony124.mjs.map +1 -0
  118. package/dist/harmony13.cjs +8 -0
  119. package/dist/harmony13.cjs.map +1 -0
  120. package/dist/harmony13.mjs +8 -0
  121. package/dist/harmony13.mjs.map +1 -0
  122. package/dist/harmony14.cjs +14 -0
  123. package/dist/harmony14.cjs.map +1 -0
  124. package/dist/harmony14.mjs +14 -0
  125. package/dist/harmony14.mjs.map +1 -0
  126. package/dist/harmony15.cjs +14 -0
  127. package/dist/harmony15.cjs.map +1 -0
  128. package/dist/harmony15.mjs +14 -0
  129. package/dist/harmony15.mjs.map +1 -0
  130. package/dist/harmony16.cjs +21 -0
  131. package/dist/harmony16.cjs.map +1 -0
  132. package/dist/harmony16.mjs +21 -0
  133. package/dist/harmony16.mjs.map +1 -0
  134. package/dist/harmony17.cjs +19 -0
  135. package/dist/harmony17.cjs.map +1 -0
  136. package/dist/harmony17.mjs +19 -0
  137. package/dist/harmony17.mjs.map +1 -0
  138. package/dist/harmony18.cjs +145 -0
  139. package/dist/harmony18.cjs.map +1 -0
  140. package/dist/harmony18.mjs +145 -0
  141. package/dist/harmony18.mjs.map +1 -0
  142. package/dist/harmony19.cjs +17 -0
  143. package/dist/harmony19.cjs.map +1 -0
  144. package/dist/harmony19.mjs +17 -0
  145. package/dist/harmony19.mjs.map +1 -0
  146. package/dist/harmony2.cjs +22 -0
  147. package/dist/harmony2.cjs.map +1 -0
  148. package/dist/harmony2.mjs +22 -0
  149. package/dist/harmony2.mjs.map +1 -0
  150. package/dist/harmony20.cjs +20 -0
  151. package/dist/harmony20.cjs.map +1 -0
  152. package/dist/harmony20.mjs +20 -0
  153. package/dist/harmony20.mjs.map +1 -0
  154. package/dist/harmony21.cjs +21 -0
  155. package/dist/harmony21.cjs.map +1 -0
  156. package/dist/harmony21.mjs +21 -0
  157. package/dist/harmony21.mjs.map +1 -0
  158. package/dist/harmony22.cjs +23 -0
  159. package/dist/harmony22.cjs.map +1 -0
  160. package/dist/harmony22.mjs +23 -0
  161. package/dist/harmony22.mjs.map +1 -0
  162. package/dist/harmony23.cjs +23 -0
  163. package/dist/harmony23.cjs.map +1 -0
  164. package/dist/harmony23.mjs +23 -0
  165. package/dist/harmony23.mjs.map +1 -0
  166. package/dist/harmony24.cjs +13 -0
  167. package/dist/harmony24.cjs.map +1 -0
  168. package/dist/harmony24.mjs +13 -0
  169. package/dist/harmony24.mjs.map +1 -0
  170. package/dist/harmony25.cjs +14 -0
  171. package/dist/harmony25.cjs.map +1 -0
  172. package/dist/harmony25.mjs +14 -0
  173. package/dist/harmony25.mjs.map +1 -0
  174. package/dist/harmony26.cjs +30 -0
  175. package/dist/harmony26.cjs.map +1 -0
  176. package/dist/harmony26.mjs +30 -0
  177. package/dist/harmony26.mjs.map +1 -0
  178. package/dist/harmony27.cjs +34 -0
  179. package/dist/harmony27.cjs.map +1 -0
  180. package/dist/harmony27.mjs +34 -0
  181. package/dist/harmony27.mjs.map +1 -0
  182. package/dist/harmony28.cjs +14 -0
  183. package/dist/harmony28.cjs.map +1 -0
  184. package/dist/harmony28.mjs +14 -0
  185. package/dist/harmony28.mjs.map +1 -0
  186. package/dist/harmony29.cjs +41 -0
  187. package/dist/harmony29.cjs.map +1 -0
  188. package/dist/harmony29.mjs +41 -0
  189. package/dist/harmony29.mjs.map +1 -0
  190. package/dist/harmony3.cjs +47 -0
  191. package/dist/harmony3.cjs.map +1 -0
  192. package/dist/harmony3.mjs +47 -0
  193. package/dist/harmony3.mjs.map +1 -0
  194. package/dist/harmony30.cjs +14 -0
  195. package/dist/harmony30.cjs.map +1 -0
  196. package/dist/harmony30.mjs +14 -0
  197. package/dist/harmony30.mjs.map +1 -0
  198. package/dist/harmony31.cjs +13 -0
  199. package/dist/harmony31.cjs.map +1 -0
  200. package/dist/harmony31.mjs +13 -0
  201. package/dist/harmony31.mjs.map +1 -0
  202. package/dist/harmony32.cjs +17 -0
  203. package/dist/harmony32.cjs.map +1 -0
  204. package/dist/harmony32.mjs +17 -0
  205. package/dist/harmony32.mjs.map +1 -0
  206. package/dist/harmony33.cjs +17 -0
  207. package/dist/harmony33.cjs.map +1 -0
  208. package/dist/harmony33.mjs +17 -0
  209. package/dist/harmony33.mjs.map +1 -0
  210. package/dist/harmony34.cjs +17 -0
  211. package/dist/harmony34.cjs.map +1 -0
  212. package/dist/harmony34.mjs +17 -0
  213. package/dist/harmony34.mjs.map +1 -0
  214. package/dist/harmony35.cjs +16 -0
  215. package/dist/harmony35.cjs.map +1 -0
  216. package/dist/harmony35.mjs +16 -0
  217. package/dist/harmony35.mjs.map +1 -0
  218. package/dist/harmony36.cjs +20 -0
  219. package/dist/harmony36.cjs.map +1 -0
  220. package/dist/harmony36.mjs +20 -0
  221. package/dist/harmony36.mjs.map +1 -0
  222. package/dist/harmony37.cjs +18 -0
  223. package/dist/harmony37.cjs.map +1 -0
  224. package/dist/harmony37.mjs +18 -0
  225. package/dist/harmony37.mjs.map +1 -0
  226. package/dist/harmony38.cjs +18 -0
  227. package/dist/harmony38.cjs.map +1 -0
  228. package/dist/harmony38.mjs +18 -0
  229. package/dist/harmony38.mjs.map +1 -0
  230. package/dist/harmony39.cjs +18 -0
  231. package/dist/harmony39.cjs.map +1 -0
  232. package/dist/harmony39.mjs +18 -0
  233. package/dist/harmony39.mjs.map +1 -0
  234. package/dist/harmony4.cjs +29 -0
  235. package/dist/harmony4.cjs.map +1 -0
  236. package/dist/harmony4.mjs +29 -0
  237. package/dist/harmony4.mjs.map +1 -0
  238. package/dist/harmony40.cjs +20 -0
  239. package/dist/harmony40.cjs.map +1 -0
  240. package/dist/harmony40.mjs +20 -0
  241. package/dist/harmony40.mjs.map +1 -0
  242. package/dist/harmony41.cjs +20 -0
  243. package/dist/harmony41.cjs.map +1 -0
  244. package/dist/harmony41.mjs +20 -0
  245. package/dist/harmony41.mjs.map +1 -0
  246. package/dist/harmony42.cjs +20 -0
  247. package/dist/harmony42.cjs.map +1 -0
  248. package/dist/harmony42.mjs +20 -0
  249. package/dist/harmony42.mjs.map +1 -0
  250. package/dist/harmony43.cjs +18 -0
  251. package/dist/harmony43.cjs.map +1 -0
  252. package/dist/harmony43.mjs +18 -0
  253. package/dist/harmony43.mjs.map +1 -0
  254. package/dist/harmony44.cjs +20 -0
  255. package/dist/harmony44.cjs.map +1 -0
  256. package/dist/harmony44.mjs +20 -0
  257. package/dist/harmony44.mjs.map +1 -0
  258. package/dist/harmony45.cjs +17 -0
  259. package/dist/harmony45.cjs.map +1 -0
  260. package/dist/harmony45.mjs +17 -0
  261. package/dist/harmony45.mjs.map +1 -0
  262. package/dist/harmony46.cjs +59 -0
  263. package/dist/harmony46.cjs.map +1 -0
  264. package/dist/harmony46.mjs +59 -0
  265. package/dist/harmony46.mjs.map +1 -0
  266. package/dist/harmony47.cjs +83 -0
  267. package/dist/harmony47.cjs.map +1 -0
  268. package/dist/harmony47.mjs +83 -0
  269. package/dist/harmony47.mjs.map +1 -0
  270. package/dist/harmony48.cjs +23 -0
  271. package/dist/harmony48.cjs.map +1 -0
  272. package/dist/harmony48.mjs +23 -0
  273. package/dist/harmony48.mjs.map +1 -0
  274. package/dist/harmony49.cjs +113 -0
  275. package/dist/harmony49.cjs.map +1 -0
  276. package/dist/harmony49.mjs +113 -0
  277. package/dist/harmony49.mjs.map +1 -0
  278. package/dist/harmony5.cjs +14 -0
  279. package/dist/harmony5.cjs.map +1 -0
  280. package/dist/harmony5.mjs +14 -0
  281. package/dist/harmony5.mjs.map +1 -0
  282. package/dist/harmony50.cjs +24 -0
  283. package/dist/harmony50.cjs.map +1 -0
  284. package/dist/harmony50.mjs +24 -0
  285. package/dist/harmony50.mjs.map +1 -0
  286. package/dist/harmony51.cjs +29 -0
  287. package/dist/harmony51.cjs.map +1 -0
  288. package/dist/harmony51.mjs +29 -0
  289. package/dist/harmony51.mjs.map +1 -0
  290. package/dist/harmony52.cjs +11 -0
  291. package/dist/harmony52.cjs.map +1 -0
  292. package/dist/harmony52.mjs +11 -0
  293. package/dist/harmony52.mjs.map +1 -0
  294. package/dist/harmony53.cjs +27 -0
  295. package/dist/harmony53.cjs.map +1 -0
  296. package/dist/harmony53.mjs +27 -0
  297. package/dist/harmony53.mjs.map +1 -0
  298. package/dist/harmony54.cjs +21 -0
  299. package/dist/harmony54.cjs.map +1 -0
  300. package/dist/harmony54.mjs +21 -0
  301. package/dist/harmony54.mjs.map +1 -0
  302. package/dist/harmony55.cjs +18 -0
  303. package/dist/harmony55.cjs.map +1 -0
  304. package/dist/harmony55.mjs +18 -0
  305. package/dist/harmony55.mjs.map +1 -0
  306. package/dist/harmony56.cjs +21 -0
  307. package/dist/harmony56.cjs.map +1 -0
  308. package/dist/harmony56.mjs +21 -0
  309. package/dist/harmony56.mjs.map +1 -0
  310. package/dist/harmony57.cjs +64 -0
  311. package/dist/harmony57.cjs.map +1 -0
  312. package/dist/harmony57.mjs +64 -0
  313. package/dist/harmony57.mjs.map +1 -0
  314. package/dist/harmony58.cjs +9 -0
  315. package/dist/harmony58.cjs.map +1 -0
  316. package/dist/harmony58.mjs +9 -0
  317. package/dist/harmony58.mjs.map +1 -0
  318. package/dist/harmony59.cjs +12 -0
  319. package/dist/harmony59.cjs.map +1 -0
  320. package/dist/harmony59.mjs +12 -0
  321. package/dist/harmony59.mjs.map +1 -0
  322. package/dist/harmony6.cjs +52 -0
  323. package/dist/harmony6.cjs.map +1 -0
  324. package/dist/harmony6.mjs +52 -0
  325. package/dist/harmony6.mjs.map +1 -0
  326. package/dist/harmony60.cjs +21 -0
  327. package/dist/harmony60.cjs.map +1 -0
  328. package/dist/harmony60.mjs +21 -0
  329. package/dist/harmony60.mjs.map +1 -0
  330. package/dist/harmony61.cjs +26 -0
  331. package/dist/harmony61.cjs.map +1 -0
  332. package/dist/harmony61.mjs +26 -0
  333. package/dist/harmony61.mjs.map +1 -0
  334. package/dist/harmony62.cjs +8 -0
  335. package/dist/harmony62.cjs.map +1 -0
  336. package/dist/harmony62.mjs +8 -0
  337. package/dist/harmony62.mjs.map +1 -0
  338. package/dist/harmony63.cjs +35 -0
  339. package/dist/harmony63.cjs.map +1 -0
  340. package/dist/harmony63.mjs +35 -0
  341. package/dist/harmony63.mjs.map +1 -0
  342. package/dist/harmony64.cjs +35 -0
  343. package/dist/harmony64.cjs.map +1 -0
  344. package/dist/harmony64.mjs +35 -0
  345. package/dist/harmony64.mjs.map +1 -0
  346. package/dist/harmony65.cjs +22 -0
  347. package/dist/harmony65.cjs.map +1 -0
  348. package/dist/harmony65.mjs +22 -0
  349. package/dist/harmony65.mjs.map +1 -0
  350. package/dist/harmony66.cjs +34 -0
  351. package/dist/harmony66.cjs.map +1 -0
  352. package/dist/harmony66.mjs +34 -0
  353. package/dist/harmony66.mjs.map +1 -0
  354. package/dist/harmony67.cjs +62 -0
  355. package/dist/harmony67.cjs.map +1 -0
  356. package/dist/harmony67.mjs +62 -0
  357. package/dist/harmony67.mjs.map +1 -0
  358. package/dist/harmony68.cjs +12 -0
  359. package/dist/harmony68.cjs.map +1 -0
  360. package/dist/harmony68.mjs +12 -0
  361. package/dist/harmony68.mjs.map +1 -0
  362. package/dist/harmony69.cjs +11 -0
  363. package/dist/harmony69.cjs.map +1 -0
  364. package/dist/harmony69.mjs +11 -0
  365. package/dist/harmony69.mjs.map +1 -0
  366. package/dist/harmony7.cjs +33 -0
  367. package/dist/harmony7.cjs.map +1 -0
  368. package/dist/harmony7.mjs +33 -0
  369. package/dist/harmony7.mjs.map +1 -0
  370. package/dist/harmony70.cjs +32 -0
  371. package/dist/harmony70.cjs.map +1 -0
  372. package/dist/harmony70.mjs +32 -0
  373. package/dist/harmony70.mjs.map +1 -0
  374. package/dist/harmony71.cjs +6 -0
  375. package/dist/harmony71.cjs.map +1 -0
  376. package/dist/harmony71.mjs +6 -0
  377. package/dist/harmony71.mjs.map +1 -0
  378. package/dist/harmony72.cjs +14 -0
  379. package/dist/harmony72.cjs.map +1 -0
  380. package/dist/harmony72.mjs +14 -0
  381. package/dist/harmony72.mjs.map +1 -0
  382. package/dist/harmony73.cjs +24 -0
  383. package/dist/harmony73.cjs.map +1 -0
  384. package/dist/harmony73.mjs +24 -0
  385. package/dist/harmony73.mjs.map +1 -0
  386. package/dist/harmony74.cjs +9 -0
  387. package/dist/harmony74.cjs.map +1 -0
  388. package/dist/harmony74.mjs +9 -0
  389. package/dist/harmony74.mjs.map +1 -0
  390. package/dist/harmony75.cjs +12 -0
  391. package/dist/harmony75.cjs.map +1 -0
  392. package/dist/harmony75.mjs +12 -0
  393. package/dist/harmony75.mjs.map +1 -0
  394. package/dist/harmony76.cjs +12 -0
  395. package/dist/harmony76.cjs.map +1 -0
  396. package/dist/harmony76.mjs +12 -0
  397. package/dist/harmony76.mjs.map +1 -0
  398. package/dist/harmony77.cjs +60 -0
  399. package/dist/harmony77.cjs.map +1 -0
  400. package/dist/harmony77.mjs +60 -0
  401. package/dist/harmony77.mjs.map +1 -0
  402. package/dist/harmony78.cjs +35 -0
  403. package/dist/harmony78.cjs.map +1 -0
  404. package/dist/harmony78.mjs +35 -0
  405. package/dist/harmony78.mjs.map +1 -0
  406. package/dist/harmony79.cjs +8 -0
  407. package/dist/harmony79.cjs.map +1 -0
  408. package/dist/harmony79.mjs +8 -0
  409. package/dist/harmony79.mjs.map +1 -0
  410. package/dist/harmony8.cjs +26 -0
  411. package/dist/harmony8.cjs.map +1 -0
  412. package/dist/harmony8.mjs +26 -0
  413. package/dist/harmony8.mjs.map +1 -0
  414. package/dist/harmony80.cjs +12 -0
  415. package/dist/harmony80.cjs.map +1 -0
  416. package/dist/harmony80.mjs +12 -0
  417. package/dist/harmony80.mjs.map +1 -0
  418. package/dist/harmony81.cjs +27 -0
  419. package/dist/harmony81.cjs.map +1 -0
  420. package/dist/harmony81.mjs +27 -0
  421. package/dist/harmony81.mjs.map +1 -0
  422. package/dist/harmony82.cjs +9 -0
  423. package/dist/harmony82.cjs.map +1 -0
  424. package/dist/harmony82.mjs +9 -0
  425. package/dist/harmony82.mjs.map +1 -0
  426. package/dist/harmony83.cjs +24 -0
  427. package/dist/harmony83.cjs.map +1 -0
  428. package/dist/harmony83.mjs +24 -0
  429. package/dist/harmony83.mjs.map +1 -0
  430. package/dist/harmony84.cjs +15 -0
  431. package/dist/harmony84.cjs.map +1 -0
  432. package/dist/harmony84.mjs +15 -0
  433. package/dist/harmony84.mjs.map +1 -0
  434. package/dist/harmony85.cjs +21 -0
  435. package/dist/harmony85.cjs.map +1 -0
  436. package/dist/harmony85.mjs +21 -0
  437. package/dist/harmony85.mjs.map +1 -0
  438. package/dist/harmony86.cjs +17 -0
  439. package/dist/harmony86.cjs.map +1 -0
  440. package/dist/harmony86.mjs +17 -0
  441. package/dist/harmony86.mjs.map +1 -0
  442. package/dist/harmony87.cjs +19 -0
  443. package/dist/harmony87.cjs.map +1 -0
  444. package/dist/harmony87.mjs +19 -0
  445. package/dist/harmony87.mjs.map +1 -0
  446. package/dist/harmony88.cjs +24 -0
  447. package/dist/harmony88.cjs.map +1 -0
  448. package/dist/harmony88.mjs +24 -0
  449. package/dist/harmony88.mjs.map +1 -0
  450. package/dist/harmony89.cjs +8 -0
  451. package/dist/harmony89.cjs.map +1 -0
  452. package/dist/harmony89.mjs +8 -0
  453. package/dist/harmony89.mjs.map +1 -0
  454. package/dist/harmony9.cjs +55 -0
  455. package/dist/harmony9.cjs.map +1 -0
  456. package/dist/harmony9.mjs +55 -0
  457. package/dist/harmony9.mjs.map +1 -0
  458. package/dist/harmony90.cjs +102 -0
  459. package/dist/harmony90.cjs.map +1 -0
  460. package/dist/harmony90.mjs +85 -0
  461. package/dist/harmony90.mjs.map +1 -0
  462. package/dist/harmony91.cjs +135 -0
  463. package/dist/harmony91.cjs.map +1 -0
  464. package/dist/harmony91.mjs +135 -0
  465. package/dist/harmony91.mjs.map +1 -0
  466. package/dist/harmony92.cjs +15 -0
  467. package/dist/harmony92.cjs.map +1 -0
  468. package/dist/harmony92.mjs +15 -0
  469. package/dist/harmony92.mjs.map +1 -0
  470. package/dist/harmony93.cjs +8 -0
  471. package/dist/harmony93.cjs.map +1 -0
  472. package/dist/harmony93.mjs +8 -0
  473. package/dist/harmony93.mjs.map +1 -0
  474. package/dist/harmony94.cjs +43 -0
  475. package/dist/harmony94.cjs.map +1 -0
  476. package/dist/harmony94.mjs +43 -0
  477. package/dist/harmony94.mjs.map +1 -0
  478. package/dist/harmony95.cjs +63 -0
  479. package/dist/harmony95.cjs.map +1 -0
  480. package/dist/harmony95.mjs +63 -0
  481. package/dist/harmony95.mjs.map +1 -0
  482. package/dist/harmony96.cjs +10 -0
  483. package/dist/harmony96.cjs.map +1 -0
  484. package/dist/harmony96.mjs +10 -0
  485. package/dist/harmony96.mjs.map +1 -0
  486. package/dist/harmony97.cjs +9 -0
  487. package/dist/harmony97.cjs.map +1 -0
  488. package/dist/harmony97.mjs +9 -0
  489. package/dist/harmony97.mjs.map +1 -0
  490. package/dist/harmony98.cjs +8 -0
  491. package/dist/harmony98.cjs.map +1 -0
  492. package/dist/harmony98.mjs +8 -0
  493. package/dist/harmony98.mjs.map +1 -0
  494. package/dist/harmony99.cjs +8 -0
  495. package/dist/harmony99.cjs.map +1 -0
  496. package/dist/harmony99.mjs +8 -0
  497. package/dist/harmony99.mjs.map +1 -0
  498. package/dist/types/src/features/publicApi/node.d.ts +16 -9
  499. package/package.json +1 -1
package/dist/harmony.mjs CHANGED
@@ -1,1995 +1,182 @@
1
- var rn = Object.defineProperty;
2
- var sn = (e, t, r) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var re = (e, t, r) => sn(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as a, jsxs as p, Fragment as He } from "react/jsx-runtime";
5
- import * as J from "react";
6
- import { useRef as Ct, useState as k, useCallback as Qe, useEffect as W, useContext as Pt, createContext as At, cloneElement as on, Fragment as Rt, forwardRef as an } from "react";
7
- import { Tooltip as D, Link as U, Menu as le, MenuList as ue, CaretUpIcon as cn, UserIcon as wt, MenuItem as Y, MenuDivider as It, ConfirmModal as ln, Alert as un, Tag as Oe, Button as xe, Loading as dn, Popover as mn, JobIcon as _n } from "@lokalise/louis";
8
- import { format as kt, parseISO as gn, isThisSecond as hn } from "date-fns";
9
- import { toZonedTime as pn } from "date-fns-tz";
10
- import { z as n } from "zod";
11
- import { buildPayloadRoute as X, buildGetRoute as $ } from "@lokalise/api-contracts";
12
- import { sendByPayloadRoute as G, sendByGetRoute as F } from "@lokalise/frontend-http-client";
13
- import { useQuery as H, useMutation as Be } from "@tanstack/react-query";
14
- const Le = {
15
- Completed: "completed",
16
- InProgress: "in_progress",
17
- Created: "created",
18
- Queued: "queued"
19
- }, R = {
20
- ...Le,
21
- NotStarted: "not_started"
22
- }, se = {
23
- translation: "translation",
24
- review: "review",
25
- lqa_by_ai: "lqa_by_ai",
26
- automatic_translation: "automatic_translation"
27
- };
28
- var oe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
29
- function jt(e) {
30
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
31
- }
32
- var he, We;
33
- function qe() {
34
- if (We) return he;
35
- We = 1;
36
- function e(t) {
37
- var r = typeof t;
38
- return t != null && (r == "object" || r == "function");
39
- }
40
- return he = e, he;
41
- }
42
- var pe, Ye;
43
- function fn() {
44
- if (Ye) return pe;
45
- Ye = 1;
46
- var e = typeof oe == "object" && oe && oe.Object === Object && oe;
47
- return pe = e, pe;
48
- }
49
- var fe, Xe;
50
- function Nt() {
51
- if (Xe) return fe;
52
- Xe = 1;
53
- var e = fn(), t = typeof self == "object" && self && self.Object === Object && self, r = e || t || Function("return this")();
54
- return fe = r, fe;
55
- }
56
- var be, Ve;
57
- function bn() {
58
- if (Ve) return be;
59
- Ve = 1;
60
- var e = Nt(), t = function() {
61
- return e.Date.now();
62
- };
63
- return be = t, be;
64
- }
65
- var Te, Ze;
66
- function Tn() {
67
- if (Ze) return Te;
68
- Ze = 1;
69
- var e = /\s/;
70
- function t(r) {
71
- for (var s = r.length; s-- && e.test(r.charAt(s)); )
72
- ;
73
- return s;
74
- }
75
- return Te = t, Te;
76
- }
77
- var ve, et;
78
- function vn() {
79
- if (et) return ve;
80
- et = 1;
81
- var e = Tn(), t = /^\s+/;
82
- function r(s) {
83
- return s && s.slice(0, e(s) + 1).replace(t, "");
84
- }
85
- return ve = r, ve;
86
- }
87
- var Se, tt;
88
- function Ot() {
89
- if (tt) return Se;
90
- tt = 1;
91
- var e = Nt(), t = e.Symbol;
92
- return Se = t, Se;
93
- }
94
- var Ee, nt;
95
- function Sn() {
96
- if (nt) return Ee;
97
- nt = 1;
98
- var e = Ot(), t = Object.prototype, r = t.hasOwnProperty, s = t.toString, o = e ? e.toStringTag : void 0;
99
- function i(c) {
100
- var u = r.call(c, o), d = c[o];
101
- try {
102
- c[o] = void 0;
103
- var l = !0;
104
- } catch {
105
- }
106
- var m = s.call(c);
107
- return l && (u ? c[o] = d : delete c[o]), m;
108
- }
109
- return Ee = i, Ee;
110
- }
111
- var ye, rt;
112
- function En() {
113
- if (rt) return ye;
114
- rt = 1;
115
- var e = Object.prototype, t = e.toString;
116
- function r(s) {
117
- return t.call(s);
118
- }
119
- return ye = r, ye;
120
- }
121
- var Ce, st;
122
- function yn() {
123
- if (st) return Ce;
124
- st = 1;
125
- var e = Ot(), t = Sn(), r = En(), s = "[object Null]", o = "[object Undefined]", i = e ? e.toStringTag : void 0;
126
- function c(u) {
127
- return u == null ? u === void 0 ? o : s : i && i in Object(u) ? t(u) : r(u);
128
- }
129
- return Ce = c, Ce;
130
- }
131
- var Pe, ot;
132
- function Cn() {
133
- if (ot) return Pe;
134
- ot = 1;
135
- function e(t) {
136
- return t != null && typeof t == "object";
137
- }
138
- return Pe = e, Pe;
139
- }
140
- var Ae, at;
141
- function Pn() {
142
- if (at) return Ae;
143
- at = 1;
144
- var e = yn(), t = Cn(), r = "[object Symbol]";
145
- function s(o) {
146
- return typeof o == "symbol" || t(o) && e(o) == r;
147
- }
148
- return Ae = s, Ae;
149
- }
150
- var Re, it;
151
- function An() {
152
- if (it) return Re;
153
- it = 1;
154
- var e = vn(), t = qe(), r = Pn(), s = NaN, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, c = /^0o[0-7]+$/i, u = parseInt;
155
- function d(l) {
156
- if (typeof l == "number")
157
- return l;
158
- if (r(l))
159
- return s;
160
- if (t(l)) {
161
- var m = typeof l.valueOf == "function" ? l.valueOf() : l;
162
- l = t(m) ? m + "" : m;
163
- }
164
- if (typeof l != "string")
165
- return l === 0 ? l : +l;
166
- l = e(l);
167
- var g = i.test(l);
168
- return g || c.test(l) ? u(l.slice(2), g ? 2 : 8) : o.test(l) ? s : +l;
169
- }
170
- return Re = d, Re;
171
- }
172
- var we, ct;
173
- function xt() {
174
- if (ct) return we;
175
- ct = 1;
176
- var e = qe(), t = bn(), r = An(), s = "Expected a function", o = Math.max, i = Math.min;
177
- function c(u, d, l) {
178
- var m, g, v, S, _, y, b = 0, h = !1, f = !1, T = !0;
179
- if (typeof u != "function")
180
- throw new TypeError(s);
181
- d = r(d) || 0, e(l) && (h = !!l.leading, f = "maxWait" in l, v = f ? o(r(l.maxWait) || 0, d) : v, T = "trailing" in l ? !!l.trailing : T);
182
- function P(E) {
183
- var O = m, K = g;
184
- return m = g = void 0, b = E, S = u.apply(K, O), S;
185
- }
186
- function C(E) {
187
- return b = E, _ = setTimeout(ne, d), h ? P(E) : S;
188
- }
189
- function te(E) {
190
- var O = E - y, K = E - b, Je = d - O;
191
- return f ? i(Je, v - K) : Je;
192
- }
193
- function Ke(E) {
194
- var O = E - y, K = E - b;
195
- return y === void 0 || O >= d || O < 0 || f && K >= v;
196
- }
197
- function ne() {
198
- var E = t();
199
- if (Ke(E))
200
- return ze(E);
201
- _ = setTimeout(ne, te(E));
202
- }
203
- function ze(E) {
204
- return _ = void 0, T && m ? P(E) : (m = g = void 0, S);
205
- }
206
- function tn() {
207
- _ !== void 0 && clearTimeout(_), b = 0, m = y = g = _ = void 0;
208
- }
209
- function nn() {
210
- return _ === void 0 ? S : ze(t());
211
- }
212
- function ge() {
213
- var E = t(), O = Ke(E);
214
- if (m = arguments, g = this, y = E, O) {
215
- if (_ === void 0)
216
- return C(y);
217
- if (f)
218
- return clearTimeout(_), _ = setTimeout(ne, d), P(y);
219
- }
220
- return _ === void 0 && (_ = setTimeout(ne, d)), S;
221
- }
222
- return ge.cancel = tn, ge.flush = nn, ge;
223
- }
224
- return we = c, we;
225
- }
226
- var Rn = xt();
227
- const wn = /* @__PURE__ */ jt(Rn);
228
- var Ie, lt;
229
- function In() {
230
- if (lt) return Ie;
231
- lt = 1;
232
- var e = xt(), t = qe(), r = "Expected a function";
233
- function s(o, i, c) {
234
- var u = !0, d = !0;
235
- if (typeof o != "function")
236
- throw new TypeError(r);
237
- return t(c) && (u = "leading" in c ? !!c.leading : u, d = "trailing" in c ? !!c.trailing : d), e(o, i, {
238
- leading: u,
239
- maxWait: i,
240
- trailing: d
241
- });
242
- }
243
- return Ie = s, Ie;
244
- }
245
- var kn = In();
246
- const jn = /* @__PURE__ */ jt(kn), Nn = (e, t, r, s) => {
247
- switch (t) {
248
- case "debounce":
249
- return wn(e, r, s);
250
- case "throttle":
251
- return jn(e, r, s);
252
- default:
253
- return e;
254
- }
255
- }, On = (
256
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
257
- (e) => {
258
- const t = J.useRef(e);
259
- return J.useEffect(() => {
260
- t.current = e;
261
- }), J.useMemo(() => (...r) => {
262
- var s;
263
- return (s = t.current) === null || s === void 0 ? void 0 : s.call(t, ...r);
264
- }, []);
265
- }
266
- ), xn = (
267
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
268
- (e) => {
269
- const [t, r] = J.useState((e == null ? void 0 : e.current) || null);
270
- return e && setTimeout(() => {
271
- e.current !== t && r(e.current);
272
- }, 0), { refProxy: J.useMemo(() => new Proxy((o) => {
273
- o !== t && r(o);
274
- }, {
275
- get(o, i) {
276
- return i === "current" ? t : o[i];
277
- },
278
- set(o, i, c) {
279
- return i === "current" ? r(c) : o[i] = c, !0;
280
- }
281
- }), [t]), refElement: t, setRefElement: r };
282
- }
283
- ), Ln = (e, t) => t === "border-box" ? {
284
- width: e.borderBoxSize[0].inlineSize,
285
- height: e.borderBoxSize[0].blockSize
286
- } : t === "content-box" ? {
287
- width: e.contentBoxSize[0].inlineSize,
288
- height: e.contentBoxSize[0].blockSize
289
- } : {
290
- width: e.contentRect.width,
291
- height: e.contentRect.height
292
- };
293
- function Mn({ skipOnMount: e = !1, refreshMode: t, refreshRate: r = 1e3, refreshOptions: s, handleWidth: o = !0, handleHeight: i = !0, targetRef: c, observerOptions: u, onResize: d } = {}) {
294
- const l = Ct(e), m = On(d), [g, v] = k({
295
- width: void 0,
296
- height: void 0
297
- }), { refProxy: S, refElement: _ } = xn(c), { box: y } = u || {}, b = Qe((f) => {
298
- if (!o && !i)
299
- return;
300
- if (l.current) {
301
- l.current = !1;
302
- return;
303
- }
304
- const T = (P, C) => o && P.width !== C.width || i && P.height !== C.height;
305
- f.forEach((P) => {
306
- const C = Ln(P, y);
307
- v((te) => T(te, C) ? (m == null || m({
308
- width: C.width,
309
- height: C.height,
310
- entry: P
311
- }), C) : te);
312
- });
313
- }, [o, i, l, y]), h = Qe(Nn(b, t, r, s), [
314
- b,
315
- t,
316
- r,
317
- s
318
- ]);
319
- return W(() => {
320
- let f;
321
- return _ ? (f = new window.ResizeObserver(h), f.observe(_, u)) : (g.width || g.height) && (m == null || m({
322
- width: null,
323
- height: null,
324
- entry: null
325
- }), v({ width: void 0, height: void 0 })), () => {
326
- var T, P, C;
327
- (T = f == null ? void 0 : f.disconnect) === null || T === void 0 || T.call(f), (C = (P = h).cancel) === null || C === void 0 || C.call(P);
328
- };
329
- }, [h, _]), Object.assign({ ref: S }, g);
330
- }
331
- function Lt(e) {
332
- var t, r, s = "";
333
- if (typeof e == "string" || typeof e == "number") s += e;
334
- else if (typeof e == "object") if (Array.isArray(e)) {
335
- var o = e.length;
336
- for (t = 0; t < o; t++) e[t] && (r = Lt(e[t])) && (s && (s += " "), s += r);
337
- } else for (r in e) e[r] && (s && (s += " "), s += r);
338
- return s;
339
- }
340
- function j() {
341
- for (var e, t, r = 0, s = "", o = arguments.length; r < o; r++) (e = arguments[r]) && (t = Lt(e)) && (s && (s += " "), s += t);
342
- return s;
343
- }
344
- const Un = "_headerContainer_1cubo_1", Hn = "_navigationTabList_1cubo_8", Bn = "_navigationTab_1cubo_8", qn = "_headerContent_1cubo_34", Dn = "_staticEnabled_1cubo_50", q = {
345
- headerContainer: Un,
346
- navigationTabList: Hn,
347
- navigationTab: Bn,
348
- headerContent: qn,
349
- staticEnabled: Dn
350
- }, $n = 77, ae = ({ sticky: e, children: t }) => {
351
- const { ref: r, height: s } = Mn({
352
- refreshMode: "debounce",
353
- refreshRate: 0
354
- }), [o, i] = k(!1), c = () => o ? !e : !0;
355
- W(() => {
356
- const d = () => {
357
- i(window.scrollY > 0);
358
- };
359
- return window.addEventListener("scroll", d), () => window.removeEventListener("scroll", d);
360
- }, []);
361
- const u = `${s || $n}px`;
362
- return /* @__PURE__ */ a("div", { style: { minHeight: u }, children: /* @__PURE__ */ a("div", { children: /* @__PURE__ */ p(
363
- "div",
364
- {
365
- ref: r,
366
- className: j(q.headerContent, {
367
- [q.staticEnabled]: c()
368
- }),
369
- children: [
370
- /* @__PURE__ */ a(ae.Header, {}),
371
- /* @__PURE__ */ a(ae.Tabs, {}),
372
- t
373
- ]
374
- }
375
- ) }) });
376
- };
377
- ae.Header = ({ children: e }) => /* @__PURE__ */ a("div", { className: q.headerContainer, children: e });
378
- ae.Tabs = ({ children: e }) => /* @__PURE__ */ a("div", { className: "flex justify-between gap-2 nowrap", children: e });
379
- const Gn = "_sidebarContainer_bmdti_1", Fn = {
380
- sidebarContainer: Gn
381
- }, Kn = "_logoLink_1baxb_1", zn = {
382
- logoLink: Kn
383
- }, Jn = ({
384
- src: e,
385
- href: t = "/",
386
- ariaLabel: r = "Lokalise App Home",
387
- alt: s = "Lokalise Logo"
388
- }) => /* @__PURE__ */ a("a", { className: zn.logoLink, href: t, "aria-label": r, children: /* @__PURE__ */ a("img", { src: e, alt: s }) }), Qn = "_link_18vhx_1", Wn = "_active_18vhx_18", ut = {
389
- link: Qn,
390
- active: Wn
391
- }, Yn = ({ label: e, to: t, icon: r }) => /* @__PURE__ */ a(D, { placement: "right", tooltip: e, children: /* @__PURE__ */ a(
392
- U,
393
- {
394
- "aria-label": e,
395
- className: j(ut.link, {
396
- [ut.active]: window.location.pathname.startsWith(t)
397
- }),
398
- href: t,
399
- children: /* @__PURE__ */ a(r, { size: "25px" })
400
- }
401
- ) }), Xn = "_dropdownButton_13l5r_1", Vn = "_dropdownButtonActive_13l5r_18", dt = {
402
- dropdownButton: Xn,
403
- dropdownButtonActive: Vn
404
- }, Zn = ({ children: e, icon: t }) => /* @__PURE__ */ a(
405
- le,
406
- {
407
- menuButton: ({ opened: r }) => /* @__PURE__ */ a(D, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ a(
408
- "button",
409
- {
410
- type: "button",
411
- className: j(dt.dropdownButton, {
412
- [dt.dropdownButtonActive]: r
413
- }),
414
- children: /* @__PURE__ */ a(t, { size: "25px" })
415
- }
416
- ) }),
417
- children: /* @__PURE__ */ a(ue, { placement: "right-start", children: e })
418
- }
419
- ), er = "_iconContainer_nz34m_1", tr = {
420
- iconContainer: er
421
- }, Mt = ({ className: e = "" }) => /* @__PURE__ */ a(
422
- "div",
423
- {
424
- "aria-label": "Upgrade Icon",
425
- className: j(
426
- tr.iconContainer,
427
- "flex-row",
428
- "items-center",
429
- "justify-center",
430
- e
431
- ),
432
- children: /* @__PURE__ */ a(cn, {})
433
- }
434
- ), nr = "_menuContainer_1phdw_10", rr = "_profileButton_1phdw_20", sr = "_profileImage_1phdw_33", or = "_profileImageHighlight_1phdw_41", ar = "_profileImageUpgradeIcon_1phdw_45", ir = "_userIconWrapper_1phdw_51", L = {
435
- menuContainer: nr,
436
- profileButton: rr,
437
- profileImage: sr,
438
- profileImageHighlight: or,
439
- profileImageUpgradeIcon: ar,
440
- userIconWrapper: ir
441
- }, Ut = At({}), V = () => Pt(Ut), cr = ({ children: e }) => {
442
- const {
443
- currentTeam: t,
444
- otherTeams: r,
445
- showUpgradeCta: s,
446
- showBillingButton: o,
447
- allowTeamCreation: i,
448
- isProviderAlpha: c,
449
- canAccessTeamSettings: u,
450
- isEndOfTrialActive: d,
451
- isTeamSuspended: l,
452
- isFullyAuthenticated: m
453
- } = V();
454
- return /* @__PURE__ */ a(
455
- le,
456
- {
457
- menuButton: () => /* @__PURE__ */ p("button", { className: L.profileButton, "aria-label": "Profile menu", type: "button", children: [
458
- t != null && t.logoUrl ? /* @__PURE__ */ a(
459
- "img",
460
- {
461
- src: t.logoUrl,
462
- className: j(L.profileImage, {
463
- [L.profileImageHighlight]: s
464
- }),
465
- alt: "Team Logo"
466
- }
467
- ) : /* @__PURE__ */ a(
468
- "div",
469
- {
470
- className: j(L.userIconWrapper, "flex-row", "align-center", "items-center", {
471
- [L.profileImageHighlight]: s
472
- }),
473
- children: /* @__PURE__ */ a(wt, { size: "25px" })
474
- }
475
- ),
476
- s && /* @__PURE__ */ a(Mt, { className: L.profileImageUpgradeIcon })
477
- ] }),
478
- children: /* @__PURE__ */ a(ue, { placement: "right-end", className: L.menuContainer, children: e({
479
- allowTeamCreation: i,
480
- otherTeams: r,
481
- canAccessTeamSettings: u,
482
- isEndOfTrialActive: d,
483
- isTeamSuspended: l,
484
- showBillingButton: o,
485
- isProviderAlpha: c,
486
- isFullyAuthenticated: m
487
- }) })
488
- }
489
- );
490
- }, Ht = 0, lr = 9999, ur = [150, 151, 250, 251], dr = [152, 153, 252, 253], mr = [154, 155, 157, 158, 254, 255, 258, 354, 355, 358], _r = [156, 159, 160, 256, 259, 260], Bt = 9998, De = (e) => e === Ht, qt = (e) => e === lr, ea = (e) => ur.includes(e), ta = (e) => dr.includes(e), na = (e) => mr.includes(e), ra = (e) => _r.includes(e), sa = (e) => e > Ht && e < Bt, oa = (e) => e === Bt, gr = /\n/, mt = (e, t, r) => e.split(t).flatMap((s, o) => o !== 0 ? [on(r, { key: Math.random().toString(32).slice(0, 10) }), s] : s), hr = (e, t, r) => typeof e == "string" ? mt(e, t, r) : e.flatMap((s) => typeof s == "string" ? mt(s, t, r) : s), pr = (e) => hr(e, gr, /* @__PURE__ */ a("br", {})), fr = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi, br = (e) => e.match(fr) ?? [], _t = (e, t, r) => {
491
- const s = e.split(t);
492
- if (s.length === 1)
493
- return e;
494
- const o = [];
495
- return s[0] !== "" && o.push(s[0]), s.shift(), s[s.length - 1] === "" && s.pop(), o.push(
496
- /* @__PURE__ */ a("a", { href: t, target: "_blank", rel: "noreferrer noopener", children: t }, t + r)
497
- ), o.push(s.join(t)), o.filter((i) => i !== "");
498
- }, gt = (e) => {
499
- const t = br(e);
500
- return t != null && t.length ? t.reduce((r, s, o) => typeof r == "string" ? _t(r, s, o) : r.flatMap((i) => typeof i == "string" ? _t(i, s, o) : i), e) : e;
501
- }, Tr = (e) => typeof e == "string" ? gt(e) : e.flatMap((t) => typeof t == "string" ? gt(t) : t, e), vr = (e, t = "PP") => kt(e, t), aa = (e, t, r = "PP") => kt(pn(e, t), r), $e = (e) => {
502
- W(e, []);
503
- }, ht = {
504
- biller: "biller",
505
- owner: "owner"
506
- }, pt = [
507
- ht.biller,
508
- ht.owner
509
- ], Sr = ({ children: e, config: t }) => {
510
- const { teams: r, currentTeamId: s, planId: o, isEndOfTrialActive: i, isFullyAuthenticated: c, userTeamRole: u } = t, d = r.find((h) => h.id === s), l = r.filter((h) => h.id !== s), m = pt.includes(u), g = pt.includes(u), v = De(o) || qt(o), b = {
511
- ...t,
512
- currentTeam: d,
513
- otherTeams: l,
514
- canChangeBilling: m,
515
- canAccessTeamSettings: g,
516
- isOnFreeOrTrialPlan: v,
517
- showUpgradeCta: c && v && m,
518
- showBillingButton: c && g && m,
519
- allowTeamCreation: c && !i
520
- };
521
- return /* @__PURE__ */ a(Ut.Provider, { value: b, children: e });
522
- }, Er = ({ config: e, children: t }) => /* @__PURE__ */ a(Sr, { config: e, children: /* @__PURE__ */ a(cr, { children: t }) }), yr = "_container_q5pot_1", Cr = "_profileEmail_q5pot_5", ft = {
523
- container: yr,
524
- profileEmail: Cr
525
- }, Pr = ({
526
- href: e,
527
- onClick: t,
528
- userEmail: r,
529
- hideBottomDivider: s
530
- }) => {
531
- const { isEndOfTrialActive: o, isTeamSuspended: i } = V();
532
- return o || i ? null : /* @__PURE__ */ p(He, { children: [
533
- /* @__PURE__ */ a(
534
- Y,
535
- {
536
- href: e,
537
- onClick: () => {
538
- t == null || t();
539
- },
540
- children: /* @__PURE__ */ p("div", { className: `flex-col ${ft.container}`, children: [
541
- /* @__PURE__ */ a("span", { children: "Profile Settings" }),
542
- /* @__PURE__ */ a("span", { className: ft.profileEmail, children: r })
543
- ] })
544
- }
545
- ),
546
- !s && /* @__PURE__ */ a(It, {})
547
- ] });
548
- }, Ar = "_wrapper_1in7x_5", Rr = "_profileImage_1in7x_11", wr = "_teamDetails_1in7x_19", Ir = "_planWrapper_1in7x_28", kr = "_teamName_1in7x_36", jr = "_membership_1in7x_53", Nr = "_defaultProfileImage_1in7x_59", x = {
549
- wrapper: Ar,
550
- profileImage: Rr,
551
- teamDetails: wr,
552
- planWrapper: Ir,
553
- teamName: kr,
554
- membership: jr,
555
- defaultProfileImage: Nr
556
- }, Dt = ({ team: e, onClick: t, hidePlanLabel: r }) => {
557
- const { currentTeam: s, planId: o } = V(), i = e || s;
558
- if (!i)
559
- return null;
560
- const c = De(o) ? "Free" : qt(o) ? "Trial" : void 0;
561
- return /* @__PURE__ */ p(
562
- t ? Y : "div",
563
- {
564
- className: x.wrapper,
565
- ...t && { onClick: () => t(i) },
566
- children: [
567
- i.logoUrl ? /* @__PURE__ */ a("img", { className: x.profileImage, src: i.logoUrl, alt: "Team logo" }) : /* @__PURE__ */ a("span", { className: `${x.defaultProfileImage}`, children: /* @__PURE__ */ a(wt, { size: "25px" }) }),
568
- /* @__PURE__ */ p("div", { className: x.teamDetails, children: [
569
- /* @__PURE__ */ p("div", { className: x.planWrapper, children: [
570
- /* @__PURE__ */ a("span", { title: i.name, className: x.teamName, children: i.name }),
571
- c && !r && /* @__PURE__ */ a("span", { className: x.teamName, children: c })
572
- ] }),
573
- /* @__PURE__ */ a("span", { className: x.membership, children: i.role })
574
- ] })
575
- ]
576
- }
577
- );
578
- }, Or = "_teamsContainer_1ncrr_5", xr = {
579
- teamsContainer: Or
580
- }, Lr = ({ onSwitchTeam: e }) => {
581
- const { otherTeams: t } = V();
582
- return t.length === 0 ? null : /* @__PURE__ */ a(
583
- "div",
584
- {
585
- "data-testid": "sidebar-team-switch",
586
- className: `flex-col items-stretch ${xr.teamsContainer}`,
587
- children: t.map((r) => /* @__PURE__ */ a(Dt, { team: r, onClick: e, hidePlanLabel: !0 }, r.id))
588
- }
589
- );
590
- }, Mr = "_container_1u995_1", Ur = "_planCta_1u995_15", Hr = "_upgradeIconWrapper_1u995_19", ke = {
591
- container: Mr,
592
- planCta: Ur,
593
- upgradeIconWrapper: Hr
594
- }, Br = ({ upgradeOptionHref: e }) => {
595
- const { planId: t, trialDaysLeft: r, showUpgradeCta: s } = V();
596
- if (!s)
597
- return null;
598
- const c = De(t) ? "Your team is currently on the Free plan" : `Free trial ends in ${r} ${r === 1 ? "day" : "days"}`;
599
- return /* @__PURE__ */ p(
600
- Y,
601
- {
602
- "data-testid": "sidebar-upgrade-menu-item",
603
- href: e,
604
- className: `flex-col gap-1 items-start ${ke.container}`,
605
- children: [
606
- /* @__PURE__ */ a("span", { className: ke.planCta, children: c }),
607
- /* @__PURE__ */ p("div", { className: `flex-row items-center gap-1 ${ke.upgradeIconWrapper}`, children: [
608
- /* @__PURE__ */ a(Mt, {}),
609
- /* @__PURE__ */ a("span", { children: "See upgrade options" })
610
- ] })
611
- ]
612
- }
613
- );
614
- }, qr = Math.min, Dr = Math.max;
615
- function bt(e, t, r) {
616
- return Dr(e, qr(t, r));
617
- }
618
- function $t(e, t) {
619
- return typeof e == "function" ? e(t) : e;
620
- }
621
- function Gt(e) {
622
- return e.split("-")[0];
623
- }
624
- function $r(e) {
625
- return e === "x" ? "y" : "x";
626
- }
627
- function Gr(e) {
628
- return ["top", "bottom"].includes(Gt(e)) ? "y" : "x";
629
- }
630
- function Fr(e) {
631
- return {
632
- top: 0,
633
- right: 0,
634
- bottom: 0,
635
- left: 0,
636
- ...e
637
- };
638
- }
639
- function Kr(e) {
640
- return typeof e != "number" ? Fr(e) : {
641
- top: e,
642
- right: e,
643
- bottom: e,
644
- left: e
645
- };
646
- }
647
- function Tt(e) {
648
- const {
649
- x: t,
650
- y: r,
651
- width: s,
652
- height: o
653
- } = e;
654
- return {
655
- width: s,
656
- height: o,
657
- top: r,
658
- left: t,
659
- right: t + s,
660
- bottom: r + o,
661
- x: t,
662
- y: r
663
- };
664
- }
665
- async function zr(e, t) {
666
- var r;
667
- t === void 0 && (t = {});
668
- const {
669
- x: s,
670
- y: o,
671
- platform: i,
672
- rects: c,
673
- elements: u,
674
- strategy: d
675
- } = e, {
676
- boundary: l = "clippingAncestors",
677
- rootBoundary: m = "viewport",
678
- elementContext: g = "floating",
679
- altBoundary: v = !1,
680
- padding: S = 0
681
- } = $t(t, e), _ = Kr(S), b = u[v ? g === "floating" ? "reference" : "floating" : g], h = Tt(await i.getClippingRect({
682
- element: (r = await (i.isElement == null ? void 0 : i.isElement(b))) == null || r ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(u.floating)),
683
- boundary: l,
684
- rootBoundary: m,
685
- strategy: d
686
- })), f = g === "floating" ? {
687
- x: s,
688
- y: o,
689
- width: c.floating.width,
690
- height: c.floating.height
691
- } : c.reference, T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u.floating)), P = await (i.isElement == null ? void 0 : i.isElement(T)) ? await (i.getScale == null ? void 0 : i.getScale(T)) || {
692
- x: 1,
693
- y: 1
694
- } : {
695
- x: 1,
696
- y: 1
697
- }, C = Tt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
698
- elements: u,
699
- rect: f,
700
- offsetParent: T,
701
- strategy: d
702
- }) : f);
703
- return {
704
- top: (h.top - C.top + _.top) / P.y,
705
- bottom: (C.bottom - h.bottom + _.bottom) / P.y,
706
- left: (h.left - C.left + _.left) / P.x,
707
- right: (C.right - h.right + _.right) / P.x
708
- };
709
- }
710
- const Jr = function(e) {
711
- return e === void 0 && (e = {}), {
712
- name: "shift",
713
- options: e,
714
- async fn(t) {
715
- const {
716
- x: r,
717
- y: s,
718
- placement: o
719
- } = t, {
720
- mainAxis: i = !0,
721
- crossAxis: c = !1,
722
- limiter: u = {
723
- fn: (b) => {
724
- let {
725
- x: h,
726
- y: f
727
- } = b;
728
- return {
729
- x: h,
730
- y: f
731
- };
732
- }
733
- },
734
- ...d
735
- } = $t(e, t), l = {
736
- x: r,
737
- y: s
738
- }, m = await zr(t, d), g = Gr(Gt(o)), v = $r(g);
739
- let S = l[v], _ = l[g];
740
- if (i) {
741
- const b = v === "y" ? "top" : "left", h = v === "y" ? "bottom" : "right", f = S + m[b], T = S - m[h];
742
- S = bt(f, S, T);
743
- }
744
- if (c) {
745
- const b = g === "y" ? "top" : "left", h = g === "y" ? "bottom" : "right", f = _ + m[b], T = _ - m[h];
746
- _ = bt(f, _, T);
747
- }
748
- const y = u.fn({
749
- ...t,
750
- [v]: S,
751
- [g]: _
752
- });
753
- return {
754
- ...y,
755
- data: {
756
- x: y.x - r,
757
- y: y.y - s,
758
- enabled: {
759
- [v]: i,
760
- [g]: c
761
- }
762
- }
763
- };
764
- }
765
- };
766
- }, Qr = "_navItem_1dudv_1", Wr = "_activeNavItem_1dudv_18", Yr = "_badge_1dudv_23", je = {
767
- navItem: Qr,
768
- activeNavItem: Wr,
769
- badge: Yr
770
- }, Ft = At({}), Z = () => Pt(Ft), Xr = (e) => {
771
- const t = e.lastIndexOf("."), r = e.slice(0, t), s = e.slice(t + 1);
772
- return { name: r, extension: s };
773
- }, Vr = (e, t) => {
774
- switch (e) {
775
- case R.Completed:
776
- return t < 100 ? "Closed" : "Completed";
777
- case R.Created:
778
- return t > 0 ? "In progress" : "Not started";
779
- case R.InProgress:
780
- return "In progress";
781
- case R.Queued:
782
- return "Queued";
783
- case R.NotStarted:
784
- return "Not started";
785
- default:
786
- return "-";
787
- }
788
- }, Zr = (e) => {
789
- const t = e.progress ?? 0;
790
- return e.status === R.Created && t > 0 ? R.InProgress : e.status;
791
- }, es = {
792
- [se.translation]: "#0891B2",
793
- [se.review]: "#16922D",
794
- [se.lqa_by_ai]: "#8B5CF6",
795
- [se.automatic_translation]: "#60A5FA"
796
- }, ts = (e) => {
797
- const t = [
798
- R.InProgress,
799
- R.Created,
800
- R.Completed
801
- ];
802
- return e.filter((r) => r.status !== "queued").map((r) => ({ ...r, status: Zr(r) })).sort((r, s) => r.status === R.InProgress && r.progress === 100 ? -1 : s.status === R.InProgress && s.progress === 100 ? 1 : r.status === s.status ? r.name < s.name ? 1 : -1 : t.indexOf(r.status) - t.indexOf(s.status));
803
- }, vt = (e) => [Le.InProgress, Le.Created].includes(e), ns = (e, t) => vt(e.status) && vt(t.status) && (t.progress ?? 0) >= 100, rs = ({ task: e, language: t }) => {
804
- const [r, s] = k(!1), [o, i] = k(!1), { onLanguageCompleteConfirm: c, fetchTasks: u } = Z(), d = () => {
805
- i(!1);
806
- };
807
- return /* @__PURE__ */ p(He, { children: [
808
- o && /* @__PURE__ */ a(
809
- ln,
810
- {
811
- opened: !0,
812
- loading: r,
813
- title: `Are you finished with ${t.name}?`,
814
- confirmText: "Mark as done",
815
- closeText: "Cancel",
816
- onClose: d,
817
- onConfirm: async () => {
818
- s(!0), await c({ task: e, language: t, closePrompt: d }), u();
819
- },
820
- children: /* @__PURE__ */ p(un, { status: "info", children: [
821
- "Make sure you are finished and ",
822
- /* @__PURE__ */ a("strong", { children: "mark it as done" }),
823
- " to notify your team admin. This action cannot be undone, and the language might no longer be available for you to edit."
824
- ] })
825
- }
826
- ),
827
- /* @__PURE__ */ a(
828
- U,
829
- {
830
- disabled: r,
831
- onClick: () => {
832
- i(!0);
833
- },
834
- children: "Mark as done"
835
- }
836
- )
837
- ] });
838
- }, ss = "_langRowCompleted_vpgdi_1", os = "_langCellSecondary_vpgdi_15", as = "_langStatus_vpgdi_20", Ne = {
839
- langRowCompleted: ss,
840
- langCellSecondary: os,
841
- langStatus: as
842
- }, is = ({ language: e, task: t }) => {
843
- const { getProjectUrl: r, langNameOnClick: s, langProgressOnClick: o } = Z(), i = e.progress ?? 0, c = e.status === R.Completed, u = ns(t, e);
844
- return /* @__PURE__ */ p(
845
- "tr",
846
- {
847
- className: j({
848
- [Ne.langRowCompleted]: u
849
- }),
850
- children: [
851
- /* @__PURE__ */ a("td", { children: /* @__PURE__ */ a(D, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ a(
852
- U,
853
- {
854
- href: r({ task: t, language: e }),
855
- onClick: () => {
856
- s == null || s({ task: t, language: e });
857
- },
858
- children: e.name
859
- }
860
- ) }) }),
861
- /* @__PURE__ */ a("td", { className: Ne.langCellSecondary, children: u || c ? "0" : /* @__PURE__ */ a(D, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ a(
862
- U,
863
- {
864
- href: r({ task: t, language: e, taskUncompleted: !0 }),
865
- onClick: () => {
866
- o == null || o({ task: t, language: e });
867
- },
868
- children: e.base_words_total - e.base_words_done
869
- }
870
- ) }) }),
871
- /* @__PURE__ */ p("td", { children: [
872
- i,
873
- "%"
874
- ] }),
875
- /* @__PURE__ */ a("td", { children: u ? /* @__PURE__ */ a(rs, { task: t, language: e }) : /* @__PURE__ */ a(
876
- "span",
877
- {
878
- className: `${Ne.langStatus} flex-row items-center justify-start`,
879
- "data-status": e.status,
880
- children: Vr(e.status, i)
881
- }
882
- ) })
883
- ]
884
- }
885
- );
886
- }, cs = "_taskContainer_mt2or_1", ls = "_taskTitle_mt2or_21", us = "_taskDescription_mt2or_28", ds = "_languagesTable_mt2or_35", ms = "_metadata_mt2or_87", B = {
887
- taskContainer: cs,
888
- taskTitle: ls,
889
- taskDescription: us,
890
- languagesTable: ds,
891
- metadata: ms
892
- }, _s = ({ task: e }) => {
893
- const { getProjectUrl: t, taskTitleOnClick: r } = Z(), s = ts(e.langs), o = (i) => {
894
- window.open(
895
- `/style-guide/${e.team_id}/download/${i.id}/link`,
896
- "_blank",
897
- "noopener,noreferrer"
898
- );
899
- };
900
- return /* @__PURE__ */ p("div", { className: B.taskContainer, children: [
901
- /* @__PURE__ */ p("div", { className: "flex-row gap-1 items-center", children: [
902
- /* @__PURE__ */ p("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
903
- /* @__PURE__ */ a(Oe, { color: es[e.task_type], variant: "solid", children: e.task_type.toLocaleUpperCase() }),
904
- e.due_date && /* @__PURE__ */ p(Oe, { color: "#EAB308", children: [
905
- "DUE ",
906
- vr(gn(e.due_date), "yyyy-MM-dd")
907
- ] })
908
- ] }),
909
- e.style_guides.length > 0 && /* @__PURE__ */ a("div", { className: "flex-row", children: e.style_guides.length === 1 ? /* @__PURE__ */ a(
910
- xe,
911
- {
912
- size: "sm",
913
- variant: "secondary",
914
- onClick: () => o(e.style_guides[0]),
915
- children: "Download style guide"
916
- }
917
- ) : /* @__PURE__ */ a(
918
- le,
919
- {
920
- menuButton: /* @__PURE__ */ a(xe, { variant: "secondary", size: "sm", children: "Download style guide" }),
921
- children: /* @__PURE__ */ a(ue, { children: e.style_guides.map((i) => /* @__PURE__ */ a(
922
- Y,
923
- {
924
- onClick: () => o(i),
925
- children: Xr(i.name).name
926
- },
927
- i.id
928
- )) })
929
- }
930
- ) })
931
- ] }),
932
- /* @__PURE__ */ a("h4", { className: B.taskTitle, children: /* @__PURE__ */ a(
933
- U,
934
- {
935
- href: t({ task: e, view: "multi" }),
936
- onClick: () => {
937
- r == null || r({ task: e });
938
- },
939
- children: e.title
940
- }
941
- ) }),
942
- e.description && /* @__PURE__ */ a("div", { className: B.taskDescription, children: pr(Tr(e.description)) }),
943
- /* @__PURE__ */ p("table", { className: B.languagesTable, children: [
944
- /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ p("tr", { children: [
945
- /* @__PURE__ */ a("th", { children: "Languages" }),
946
- /* @__PURE__ */ a("th", { children: "Words to do" }),
947
- /* @__PURE__ */ a("th", { children: "Progress" }),
948
- /* @__PURE__ */ a("th", { children: "Status" })
949
- ] }) }),
950
- /* @__PURE__ */ a("tbody", { children: s.map((i) => /* @__PURE__ */ a(is, { language: i, task: e }, i.lang_id)) })
951
- ] }),
952
- /* @__PURE__ */ p("div", { "data-testid": "sidebar-task-overview-metadata", className: B.metadata, children: [
953
- /* @__PURE__ */ p("span", { children: [
954
- "Source: ",
955
- e.source_lang_name
956
- ] }),
957
- /* @__PURE__ */ a("span", { children: e.created_by_fullname }),
958
- /* @__PURE__ */ p("span", { children: [
959
- "In ",
960
- e.project_name,
961
- e.master_branching_enabled === "1" && /* @__PURE__ */ a("div", { className: B.tag, children: e.branch_name ? e.branch_name : "master" })
962
- ] })
963
- ] })
964
- ] });
965
- }, A = {
966
- TaskCompleted: "task_completed",
967
- TaskClosed: "task_closed",
968
- Refresh: "refresh",
969
- ShowDialog: "show_dialog"
970
- }, gs = "_loadingContainer_19d6m_1", hs = "_noTasksContainer_19d6m_7", ps = "_noTasksHeading_19d6m_14", fs = "_noTasksText_19d6m_18", bs = "_tasksContainer_19d6m_23", z = {
971
- loadingContainer: gs,
972
- noTasksContainer: hs,
973
- noTasksHeading: ps,
974
- noTasksText: fs,
975
- tasksContainer: bs
976
- }, Ts = () => {
977
- const { tasks: e, onTasksWidgetOpen: t, loadingTasks: r, fetchTasks: s } = Z();
978
- return $e(() => ((async () => {
979
- const i = await s();
980
- t == null || t({ tasks: i });
981
- })(), document.addEventListener(A.TaskCompleted, s), document.addEventListener(A.TaskClosed, s), document.addEventListener(A.Refresh, s), () => {
982
- document.removeEventListener(A.TaskCompleted, s), document.removeEventListener(A.TaskClosed, s), document.removeEventListener(A.Refresh, s);
983
- })), r ? /* @__PURE__ */ a("div", { "data-testid": "sidebar-tasks-loading-popover", className: z.loadingContainer, children: /* @__PURE__ */ a(dn, {}) }) : e.length === 0 ? /* @__PURE__ */ p("div", { "data-testid": "sidebar-no-tasks-popover", className: z.noTasksContainer, children: [
984
- /* @__PURE__ */ a("h3", { className: z.noTasksHeading, children: "No tasks" }),
985
- /* @__PURE__ */ p("div", { className: z.noTasksText, children: [
986
- "Your incoming tasks will appear here.",
987
- /* @__PURE__ */ a("br", {}),
988
- /* @__PURE__ */ a(U, { href: "https://docs.lokalise.com/translation-workflow/tasks", target: "_new", children: "Learn more" })
989
- ] })
990
- ] }) : /* @__PURE__ */ a("div", { "data-testid": "sidebar-tasks-popover", className: z.tasksContainer, children: e.map((o) => /* @__PURE__ */ a(_s, { task: o }, o.id)) });
991
- }, vs = ({ children: e, config: t }) => {
992
- const [r, s] = k([]), [o, i] = k(!0), [c, u] = k(0), {
993
- getProjectUrl: d,
994
- onLanguageCompleteConfirm: l,
995
- onTasksWidgetOpen: m,
996
- langNameOnClick: g,
997
- langProgressOnClick: v,
998
- taskTitleOnClick: S
999
- } = t, { getTasks: _, getTasksCount: y } = t, b = async () => {
1000
- i(!0);
1001
- const T = await _();
1002
- return s(T), i(!1), T;
1003
- }, h = async () => {
1004
- const T = await y();
1005
- u(T);
1006
- };
1007
- $e(() => (h(), document.addEventListener(A.TaskCompleted, h), document.addEventListener(A.TaskClosed, h), document.addEventListener(A.Refresh, h), () => {
1008
- document.removeEventListener(A.TaskCompleted, h), document.removeEventListener(A.TaskClosed, h), document.removeEventListener(A.Refresh, h);
1009
- }));
1010
- const f = {
1011
- fetchTasks: b,
1012
- tasks: r,
1013
- tasksCount: c,
1014
- loadingTasks: o,
1015
- getProjectUrl: d,
1016
- onLanguageCompleteConfirm: l,
1017
- onTasksWidgetOpen: m,
1018
- langNameOnClick: g,
1019
- langProgressOnClick: v,
1020
- taskTitleOnClick: S
1021
- };
1022
- return /* @__PURE__ */ a(Ft.Provider, { value: f, children: e });
1023
- }, Ss = (e) => function(r) {
1024
- const { config: s, ...o } = r;
1025
- return /* @__PURE__ */ a(vs, { config: s, children: /* @__PURE__ */ a(e, { ...o }) });
1026
- }, Es = Ss(() => {
1027
- const [e, t] = k(!1), { tasksCount: r } = Z();
1028
- return $e(() => {
1029
- const s = () => {
1030
- t(!0);
1031
- };
1032
- return document.addEventListener(A.ShowDialog, s), () => {
1033
- document.removeEventListener(A.ShowDialog, s);
1034
- };
1035
- }), /* @__PURE__ */ a(D, { tooltip: "Tasks", placement: "right", children: /* @__PURE__ */ a(
1036
- mn,
1037
- {
1038
- content: /* @__PURE__ */ a(Ts, {}),
1039
- placement: "right",
1040
- open: e,
1041
- onOpenChange: t,
1042
- middlewares: [
1043
- Jr({
1044
- // Adding some spacing to the top and bottom so the popover
1045
- // doesn't extend to the edges of the screen.
1046
- padding: {
1047
- top: 32,
1048
- bottom: 32
1049
- }
1050
- })
1051
- ],
1052
- children: (s) => /* @__PURE__ */ p(
1053
- xe,
1054
- {
1055
- type: "button",
1056
- "data-testid": "sidebar-tasks-widget-button",
1057
- "aria-label": "Tasks",
1058
- className: j(je.navItem, {
1059
- [je.activeNavItem]: s
1060
- }),
1061
- children: [
1062
- /* @__PURE__ */ a(_n, { size: "25px" }),
1063
- r > 0 && /* @__PURE__ */ a("div", { className: je.badge, "aria-label": `${r} items requiring attention`, children: r > 9 ? "9+" : r })
1064
- ]
1065
- }
1066
- )
1067
- }
1068
- ) });
1069
- }), w = ({ children: e, ...t }) => /* @__PURE__ */ a("nav", { ...t, className: Fn.sidebarContainer, children: e }), ys = ({ children: e }) => /* @__PURE__ */ a("div", { children: e });
1070
- w.Top = ys;
1071
- const Cs = ({ children: e }) => /* @__PURE__ */ a("div", { children: e });
1072
- w.Bottom = Cs;
1073
- w.Avatar = Jn;
1074
- w.IconLink = Yn;
1075
- w.Menu = Zn;
1076
- w.ProfileMenu = Er;
1077
- w.TeamSwitch = Lr;
1078
- w.TeamMenuItem = Dt;
1079
- w.UpgradeMenuItem = Br;
1080
- w.ProfileSettingsMenuItem = Pr;
1081
- w.Tasks = Es;
1082
- const Ps = "_breadcrumbsItem_1hm6a_1", As = "_breadcrumbs_1hm6a_1", St = {
1083
- breadcrumbsItem: Ps,
1084
- breadcrumbs: As
1085
- }, ia = ({ items: e }) => /* @__PURE__ */ a("nav", { "aria-label": "breadcrumb", className: St.breadcrumbs, children: e.map((t, r) => /* @__PURE__ */ p(Rt, { children: [
1086
- /* @__PURE__ */ a(U, { className: St.breadcrumbsItem, href: t.link, rel: "noreferrer", children: t.name }),
1087
- r < e.length - 1 && /* @__PURE__ */ a("span", { children: " — " })
1088
- ] }, `${t.link}-${t.name}`)) }), Rs = ({ items: e }) => /* @__PURE__ */ a(He, { children: e.map((t, r) => /* @__PURE__ */ p(Rt, { children: [
1089
- !!r && t.some((s) => s.visible) && /* @__PURE__ */ a(It, {}),
1090
- t.filter(({ visible: s }) => s).map(({ link: s, label: o, onClick: i }) => /* @__PURE__ */ a(Y, { href: s || "#", "aria-label": o, onClick: i, children: o }, o))
1091
- ] }, t[0].label)) }), ws = "_badge_1pc1v_1", Is = "_tag_1pc1v_15", ks = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21", js = "_disabled_1pc1v_57", Ns = "_projectNavigationItem_1pc1v_61", Os = "_projectNavigationItemDisabled_1pc1v_67", M = {
1092
- badge: ws,
1093
- tag: Is,
1094
- withNavLinkStyle: ks,
1095
- disabled: js,
1096
- projectNavigationItem: Ns,
1097
- projectNavigationItemDisabled: Os
1098
- }, Et = ({ label: e, badge: t, novel: r }) => /* @__PURE__ */ p("div", { className: "flex gap-1", children: [
1099
- /* @__PURE__ */ p("div", { children: [
1100
- /* @__PURE__ */ a("span", { children: e }),
1101
- !!t && /* @__PURE__ */ a("div", { className: M.badge, "aria-label": `${t} items requiring attention`, children: t > 9 ? "9+" : t })
1102
- ] }),
1103
- !!r && /* @__PURE__ */ a(Oe, { className: M.tag, children: r })
1104
- ] }), Me = an(
1105
- ({ label: e, href: t = "", disabled: r = !1, badge: s, onClick: o, novel: i }, c) => /* @__PURE__ */ a(D, { tooltip: "You do not have access to this function", show: r, children: /* @__PURE__ */ a(
1106
- "div",
1107
- {
1108
- className: r ? M.projectNavigationItemDisabled : M.projectNavigationItem,
1109
- children: o || r || !t ? /* @__PURE__ */ a(
1110
- "button",
1111
- {
1112
- type: "button",
1113
- ref: c,
1114
- className: j(M.withNavLinkStyle, {
1115
- [M.disabled]: r
1116
- }),
1117
- disabled: r,
1118
- onClick: o,
1119
- children: /* @__PURE__ */ a(Et, { label: e, badge: s, novel: i })
1120
- }
1121
- ) : /* @__PURE__ */ a("a", { href: t, className: M.withNavLinkStyle, children: /* @__PURE__ */ a(Et, { label: e, badge: s, novel: i }) })
1122
- }
1123
- ) })
1124
- );
1125
- Me.displayName = "NavigationTabsItem";
1126
- const xs = (e) => (e == null ? void 0 : e.some((t) => t.some((r) => r.visible))) ?? !1, Ls = (e) => e.visible && (!e.dropdown || xs(e.dropdown)), ca = ({ navigation: e, activeItem: t }) => /* @__PURE__ */ a("nav", { "aria-label": "Project", children: /* @__PURE__ */ a("ul", { className: q.navigationTabList, "aria-orientation": "horizontal", children: e.filter(Ls).map((r) => {
1127
- var s, o, i;
1128
- return r.dropdown ? /* @__PURE__ */ a(
1129
- "li",
1130
- {
1131
- className: q.navigationTab,
1132
- "data-testid": r.key,
1133
- "aria-selected": (s = r.isActive) == null ? void 0 : s.call(r, t),
1134
- children: /* @__PURE__ */ a(
1135
- le,
1136
- {
1137
- menuButton: ({ opened: c }) => /* @__PURE__ */ a(Me, { label: r.label, disabled: r.disabled, active: c }),
1138
- children: /* @__PURE__ */ a(ue, { children: /* @__PURE__ */ a(Rs, { items: r.dropdown }) })
1139
- }
1140
- )
1141
- },
1142
- r.key
1143
- ) : /* @__PURE__ */ a(
1144
- "li",
1145
- {
1146
- className: q.navigationTab,
1147
- "data-testid": r.key,
1148
- "aria-selected": (o = r.isActive) == null ? void 0 : o.call(r, t),
1149
- children: /* @__PURE__ */ a(
1150
- Me,
1151
- {
1152
- label: r.label,
1153
- href: r.link,
1154
- onClick: r.onClick,
1155
- disabled: r.disabled,
1156
- badge: r.badge,
1157
- novel: r.novel,
1158
- active: (i = r.isActive) == null ? void 0 : i.call(r, t)
1159
- }
1160
- )
1161
- },
1162
- r.key
1163
- );
1164
- }) }) });
1165
- class I {
1166
- /**
1167
- * This constructor is private to prevent the creation of a HeaderBuilder, it's an implementation detail
1168
- * that users of this class should not be aware of. The only way to create a HeaderBuilder is through the
1169
- * static create method.
1170
- *
1171
- * @private
1172
- */
1173
- constructor(t) {
1174
- this.factories = t;
1175
- }
1176
- static create(t = {}) {
1177
- return new I([() => t]);
1178
- }
1179
- /**
1180
- * Adds a single header to the builder by providing a key and a value.
1181
- *
1182
- * @example
1183
- * ```typescript
1184
- * const builder = HeaderBuilder.create()
1185
- * .add('Content-Type', 'application/json')
1186
- * .add('authorization', 'Bearer token')
1187
- *
1188
- * const headers = await builder.resolve()
1189
- * console.log(headers)
1190
- * // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
1191
- * ```
1192
- *
1193
- * @param key - The key of the header
1194
- * @param value - The value of the header
1195
- */
1196
- add(t, r) {
1197
- return new I([...this.factories, () => ({ [t]: r })]);
1198
- }
1199
- /**
1200
- * Adds multiple headers to the builder by providing an object or a promise of an object with the headers.
1201
- *
1202
- * @example
1203
- * ```typescript
1204
- * const builder = HeaderBuilder.create()
1205
- * .and({ 'Content-Type': 'application/json', 'authorization': 'Bearer token' })
1206
- * .and(Promise.resolve({ 'X-Custom-Header': 'custom', 'X-Another-Header': 'another' }))
1207
- *
1208
- * const headers = await builder.resolve()
1209
- * console.log(headers)
1210
- * // Prints: {
1211
- * // 'Content-Type': 'application/json',
1212
- * // 'authorization': 'Bearer token',
1213
- * // 'X-Custom-Header': 'custom',
1214
- * // 'X-Another-Header': 'another'
1215
- * // }
1216
- * ```
1217
- *
1218
- * @param extension - An object with the headers to add
1219
- */
1220
- and(t) {
1221
- return new I([...this.factories, () => t]);
1222
- }
1223
- /**
1224
- * Adds a factory function that returns a promise of headers to the builder.
1225
- * This is useful when you need to fetch some data asynchronously to build the headers.
1226
- *
1227
- * @example
1228
- * ```typescript
1229
- * const builder = HeaderBuilder.create()
1230
- * .from(async () => {
1231
- * const token = await fetchToken()
1232
- * return { 'authorization': `Bearer ${token}` }
1233
- * })
1234
- *
1235
- * const headers = await builder.resolve()
1236
- * console.log(headers) // { 'authorization': 'Bearer <token>' }
1237
- * ```
1238
- *
1239
- * @param factory - A function that returns a promise of headers
1240
- */
1241
- from(t) {
1242
- return new I([...this.factories, t]);
1243
- }
1244
- /**
1245
- * Takes a middleware function that receives the current builder and returns a new, modified, builder.
1246
- *
1247
- * @example
1248
- * ```typescript
1249
- * const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
1250
- * const token = await fetchToken()
1251
- * return builder.add('authorization', `Bearer ${token}`)
1252
- * })
1253
- *
1254
- * const builder = HeaderBuilder.create()
1255
- * .with(authMiddleware)
1256
- *
1257
- * const headers = await builder.resolve() // Type of headers is { 'authorization': string }
1258
- * console.log(headers) // { 'authorization': 'Bearer <token>' }
1259
- * ```
1260
- *
1261
- * @param middleware
1262
- */
1263
- with(t) {
1264
- return t.apply(this);
1265
- }
1266
- /**
1267
- * Merges the current builder with another builder.
1268
- *
1269
- * @example
1270
- * ```typescript
1271
- * const builderA = HeaderBuilder.create()
1272
- * .add('Content-Type', 'application/json')
1273
- *
1274
- * const builderB = HeaderBuilder.create()
1275
- * .add('authorization', 'Bearer token')
1276
- *
1277
- * const mergedBuilder = builderA.merge(builderB)
1278
- *
1279
- * const headers = await mergedBuilder.resolve()
1280
- * console.log(headers)
1281
- * // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
1282
- * ```
1283
- *
1284
- * @param builder - The builder to merge with
1285
- */
1286
- merge(t) {
1287
- return new I([...this.factories, ...t.factories]);
1288
- }
1289
- /**
1290
- * Resolves the headers by waiting for all the promises to resolve and merging them together.
1291
- *
1292
- * @example
1293
- * ```typescript
1294
- * const builder = HeaderBuilder.create()
1295
- * .add('Content-Type', 'application/json')
1296
- *
1297
- * const headers = await builder.resolve()
1298
- * console.log(headers) // { 'Content-Type': 'application/json' }
1299
- */
1300
- async resolve() {
1301
- const t = this.factories.map((s) => s()), r = await Promise.all(t);
1302
- return Object.assign({}, ...r);
1303
- }
1304
- }
1305
- function Kt(e) {
1306
- return new Ms(e);
1307
- }
1308
- class Ms {
1309
- constructor(t) {
1310
- this.middleware = t;
1311
- }
1312
- apply(t) {
1313
- return t.from(async () => {
1314
- const r = this.middleware(I.create());
1315
- return r instanceof Promise ? r.then((s) => s.resolve()) : r.resolve();
1316
- });
1317
- }
1318
- }
1319
- const zt = n.union([
1320
- n.literal("owner"),
1321
- n.literal("admin"),
1322
- n.literal("biller"),
1323
- n.literal("member")
1324
- ]), Us = n.object({
1325
- userId: n.number(),
1326
- userUuid: n.string().uuid(),
1327
- teamId: n.number(),
1328
- teamUuid: n.string().uuid(),
1329
- userTeamRole: zt,
1330
- userEmail: n.string().email(),
1331
- userName: n.string(),
1332
- userCurrentTeamId: n.number(),
1333
- planId: n.number(),
1334
- planName: n.string(),
1335
- isProviderAlpha: n.boolean(),
1336
- isFullyAuthenticated: n.boolean(),
1337
- exp: n.number()
1338
- });
1339
- function ee(e) {
1340
- try {
1341
- const t = e.split(".")[1], r = atob(t);
1342
- return Us.parse(JSON.parse(r));
1343
- } catch {
1344
- return;
1345
- }
1346
- }
1347
- class ie extends Error {
1348
- constructor() {
1349
- super(...arguments);
1350
- re(this, "name", "UnauthorizedError");
1351
- re(this, "status", 401);
1352
- }
1353
- }
1354
- function la(e) {
1355
- return Kt(async (t) => {
1356
- var i, c;
1357
- const r = e.getCurrentToken() ?? await ((i = e.generateNewToken) == null ? void 0 : i.call(e));
1358
- if (!r)
1359
- throw new ie();
1360
- const { exp: s } = ee(r.accessToken) ?? { exp: 0 };
1361
- if (!hn(new Date(s)))
1362
- return t.add("authorization", `Bearer ${r.accessToken}`);
1363
- const o = await e.refreshToken(r);
1364
- if (!o)
1365
- throw new ie();
1366
- return (c = e.onNewTokenIssued) == null || c.call(e, o), t.add("authorization", `Bearer ${o.accessToken}`);
1367
- });
1368
- }
1369
- const ua = Kt(
1370
- (e) => e.and({ "x-lokalise-plugin": "true" })
1371
- );
1372
- function Jt() {
1373
- const e = Ue(document.cookie, "accessToken"), t = Ue(document.cookie, "refreshToken");
1374
- return !e || !t ? null : { accessToken: e, refreshToken: t };
1375
- }
1376
- function Hs() {
1377
- return Ue(document.cookie, "csrf_token") ?? null;
1378
- }
1379
- function Ue(e, t) {
1380
- var r, s;
1381
- return (s = (r = e.split(";").find((o) => o.trim().startsWith(`${t}=`))) == null ? void 0 : r.trim()) == null ? void 0 : s.substring(t.length + 1);
1382
- }
1383
- function da() {
1384
- const e = Jt();
1385
- if (!e)
1386
- return;
1387
- const t = ee(e.accessToken);
1388
- if (t)
1389
- return { ...e, payload: t };
1390
- }
1391
- const Qt = n.union([
1392
- n.object({ authorization: n.string() }),
1393
- n.object({ AUTHORIZATION: n.string() })
1394
- ]), Bs = n.union([
1395
- n.object({ "X-API-Token": n.string() }),
1396
- n.object({ "X-Api-Token": n.string() }),
1397
- n.object({ "x-api-token": n.string() }),
1398
- n.object({ "X-API-TOKEN": n.string() })
1399
- ]), qs = n.union([
1400
- Qt,
1401
- Bs
1402
- ]), Ds = n.union([
1403
- n.object({ "X-Lokalise-Plugin": n.string() }),
1404
- n.object({ "x-lokalise-plugin": n.string() }),
1405
- n.object({ "X-LOKALISE-PLUGIN": n.string() })
1406
- ]), N = qs.and(Ds), $s = n.object({
1407
- accessToken: n.string(),
1408
- refreshToken: n.string()
1409
- }), Gs = n.union([
1410
- n.object({ "X-Csrf-Token": n.string() }),
1411
- n.object({ "X-CSRF-Token": n.string() }),
1412
- n.object({ "x-csrf-token": n.string() }),
1413
- n.object({ "X-CSRF-TOKEN": n.string() })
1414
- ]), Fs = n.union([
1415
- Qt,
1416
- Gs
1417
- ]), Ge = X({
1418
- description: "Takes a teamId and returns a JWT token access and refresh token for the user",
1419
- method: "post",
1420
- requestPathParamsSchema: n.object({ teamId: n.number() }),
1421
- pathResolver: (e) => `/team/${e.teamId}/actions/get-user-token`,
1422
- requestHeaderSchema: Fs,
1423
- requestBodySchema: n.undefined(),
1424
- isEmptyResponseExpected: !0,
1425
- successResponseBodySchema: $s
1426
- });
1427
- function ma(e, t, r) {
1428
- return async () => {
1429
- const s = t();
1430
- if (!s)
1431
- throw new ie();
1432
- return G(e, Ge, {
1433
- pathParams: { teamId: Number(await r()) },
1434
- headers: await I.create().add("x-csrf-token", s).resolve()
1435
- });
1436
- };
1437
- }
1438
- function _a(e) {
1439
- return async ({ accessToken: t, refreshToken: r }) => {
1440
- const s = ee(t);
1441
- if (!s)
1442
- throw new ie();
1443
- return G(e, Ge, {
1444
- pathParams: { teamId: s.teamId },
1445
- headers: await I.create().add("authorization", `Bearer ${r}`).resolve()
1446
- });
1447
- };
1448
- }
1449
- const Ks = {
1450
- teamKey: (e) => ["getUserToken", e]
1451
- }, zs = (e, t, r) => H({
1452
- ...r,
1453
- queryFn: async ({ queryKey: [s, o] }) => G(e, Ge, {
1454
- headers: await t.resolve(),
1455
- pathParams: { teamId: o }
1456
- })
1457
- }), ce = class ce extends CustomEvent {
1458
- constructor(t) {
1459
- super(ce.eventName, {
1460
- detail: { token: t, payload: ee(t.accessToken) }
1461
- });
1462
- }
1463
- };
1464
- re(ce, "eventName", "new-jwt-issued");
1465
- let Q = ce;
1466
- function ga(e, t, r) {
1467
- const s = Hs(), o = zs(e, t.add("x-csrf-token", s ?? ""), {
1468
- queryKey: Ks.teamKey(r),
1469
- enabled: s !== void 0
1470
- }), i = Ct();
1471
- return W(() => {
1472
- o.data && o.data.accessToken !== i.current && (window.dispatchEvent(new Q(o.data)), i.current = o.data.accessToken);
1473
- }, [o.data]), o;
1474
- }
1475
- function Wt() {
1476
- const [e, t] = k();
1477
- return W(() => {
1478
- const r = (o) => {
1479
- t(o.detail.payload);
1480
- }, s = Jt();
1481
- return t(s ? ee(s.accessToken) : void 0), window.addEventListener(Q.eventName, r), () => {
1482
- window.removeEventListener(Q.eventName, r);
1483
- };
1484
- }, []), e;
1485
- }
1486
- const Js = N, Qs = n.object({
1487
- user_id: n.number(),
1488
- email: n.string().email(),
1489
- fullname: n.string(),
1490
- created_at: n.string(),
1491
- created_at_timestamp: n.number(),
1492
- role: zt
1493
- }), Ws = n.object({
1494
- teamId: n.number(),
1495
- userId: n.number()
1496
- }), Ys = n.object({
1497
- team_id: n.number(),
1498
- team_user: Qs
1499
- }), Xs = $({
1500
- description: "Get the details of a team user",
1501
- requestHeaderSchema: Js,
1502
- requestPathParamsSchema: Ws,
1503
- pathResolver: ({ teamId: e, userId: t }) => `/teams/${e}/users/${t}`,
1504
- successResponseBodySchema: Ys
1505
- }), Vs = {
1506
- teamUserKey: (e, t) => ["GetTeamUsers", e, t]
1507
- }, Zs = (e, t, r) => H({
1508
- ...r,
1509
- queryFn: async ({ queryKey: [s, o, i] }) => F(e, Xs, {
1510
- headers: await t.resolve(),
1511
- pathParams: { teamId: o, userId: i }
1512
- })
1513
- });
1514
- function ha(e, t) {
1515
- const r = Wt();
1516
- return Zs(e, t, {
1517
- queryKey: Vs.teamUserKey((r == null ? void 0 : r.teamId) ?? 0, (r == null ? void 0 : r.userId) ?? 0),
1518
- enabled: (r == null ? void 0 : r.userId) !== void 0 && r.teamId !== void 0
1519
- });
1520
- }
1521
- const pa = N, eo = n.object({
1522
- lang_id: n.number(),
1523
- lang_iso: n.string(),
1524
- lang_name: n.string(),
1525
- is_writable: n.union([
1526
- n.literal(0),
1527
- n.literal(1),
1528
- n.boolean()
1529
- // (╥﹏╥) this is a workaround for the API returning boolean instead of 0/1, as the API spec says
1530
- ])
1531
- }), Yt = n.object({
1532
- user_id: n.number(),
1533
- email: n.string().email(),
1534
- fullname: n.string(),
1535
- created_at: n.string(),
1536
- created_at_timestamp: n.number(),
1537
- admin_rights: n.array(n.string()),
1538
- languages: n.array(eo),
1539
- is_admin: n.boolean(),
1540
- is_reviewer: n.boolean()
1541
- }), to = n.object({ id: n.string() }), no = n.object({ id: n.number() }), Xt = n.object({ uuid: n.string().uuid() }), Vt = n.union([Xt, to]), ro = n.union([
1542
- n.object({ authenticatedUser: n.literal(!0) }),
1543
- Xt,
1544
- no
1545
- ]), so = n.object({
1546
- project: Vt
1547
- }), oo = n.object({
1548
- project_id: n.string(),
1549
- contributors: n.array(Yt)
1550
- }), ao = n.object({
1551
- project: Vt,
1552
- contributor: ro
1553
- }), io = n.object({
1554
- project_id: n.string(),
1555
- contributor: Yt
1556
- }), co = (e) => "authenticatedUser" in e ? "me" : "uuid" in e ? e.uuid : `${e.id}`, Zt = (e) => "uuid" in e ? e.uuid : e.id, fa = $({
1557
- description: "List all contributors for a project",
1558
- requestHeaderSchema: N,
1559
- requestPathParamsSchema: so,
1560
- pathResolver: ({ project: e }) => `/projects/${Zt(e)}/contributors`,
1561
- successResponseBodySchema: oo
1562
- }), lo = $({
1563
- description: "Get the details of a project contributor",
1564
- requestHeaderSchema: N,
1565
- requestPathParamsSchema: ao,
1566
- pathResolver: ({ project: e, contributor: t }) => `/projects/${Zt(e)}/contributors/${co(t)}`,
1567
- successResponseBodySchema: io
1568
- }), uo = {
1569
- projectUserKey: (e) => ["RetrieveContributor", e]
1570
- }, mo = (e, t, r) => H({
1571
- ...r,
1572
- queryFn: async ({ queryKey: [s, o] }) => F(e, lo, {
1573
- pathParams: o,
1574
- headers: await t.resolve()
1575
- })
1576
- });
1577
- function ba(e, t, r) {
1578
- const s = Wt(), o = s != null && s.userId ? { id: s.userId } : { authenticatedUser: !0 };
1579
- return mo(e, t, {
1580
- queryKey: uo.projectUserKey({ project: { id: r }, contributor: o }),
1581
- enabled: s !== void 0
1582
- });
1583
- }
1584
- const _o = n.object({
1585
- lang_iso: n.string(),
1586
- custom_iso: n.string().optional()
1587
- }), go = n.object({
1588
- language_id: n.number(),
1589
- language_iso: n.string(),
1590
- progress: n.number(),
1591
- words_to_do: n.number(),
1592
- project_language_id: n.number(),
1593
- project_language_uuid: n.string().uuid()
1594
- }), ho = n.object({
1595
- projectId: n.string()
1596
- }), en = n.object({
1597
- lang_id: n.number(),
1598
- lang_iso: n.string(),
1599
- lang_name: n.string(),
1600
- is_rtl: n.boolean(),
1601
- plural_forms: n.array(n.string().optional()),
1602
- project_language_id: n.string(),
1603
- project_language_uuid: n.string().uuid()
1604
- }), po = n.object({
1605
- project_id: n.string(),
1606
- project_uuid: n.string().uuid(),
1607
- languages: n.array(en)
1608
- }), fo = n.object({
1609
- projectId: n.string()
1610
- }), bo = n.object({
1611
- languages: n.array(
1612
- n.object({
1613
- lang_iso: n.string(),
1614
- custom_iso: n.string().optional(),
1615
- custom_name: n.string().optional(),
1616
- custom_plural_forms: n.array(n.string()).optional()
1617
- })
1618
- )
1619
- }), To = n.object({
1620
- project_id: n.string(),
1621
- project_uuid: n.string().uuid(),
1622
- languages: n.array(en),
1623
- errors: n.array(
1624
- n.object({
1625
- message: n.string(),
1626
- code: n.number(),
1627
- lang_iso: n.string()
1628
- })
1629
- ).optional()
1630
- }), vo = n.object({
1631
- projectId: n.string()
1632
- }), So = n.object({
1633
- langs: n.array(
1634
- n.object({
1635
- lang_iso: n.string(),
1636
- base_lang: n.boolean()
1637
- })
1638
- )
1639
- }), Eo = n.object({
1640
- result: n.boolean()
1641
- }), yo = $({
1642
- description: "List of project languages",
1643
- requestHeaderSchema: N,
1644
- requestPathParamsSchema: ho,
1645
- pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
1646
- successResponseBodySchema: po
1647
- }), Ta = X({
1648
- description: "Add languages to existing project",
1649
- requestHeaderSchema: N,
1650
- method: "post",
1651
- requestPathParamsSchema: fo,
1652
- pathResolver: ({ projectId: e }) => `/projects/${e}/languages`,
1653
- requestBodySchema: bo,
1654
- successResponseBodySchema: To
1655
- }), Co = X({
1656
- description: "Bulk update project languages",
1657
- requestHeaderSchema: N,
1658
- method: "put",
1659
- requestPathParamsSchema: vo,
1660
- pathResolver: ({ projectId: e }) => `/projects/${e}/languages/bulk-update`,
1661
- requestBodySchema: So,
1662
- successResponseBodySchema: Eo
1663
- }), de = N, Fe = n.union([
1664
- n.literal("localization_files"),
1665
- n.literal("paged_documents"),
1666
- n.literal("marketing")
1667
- ]), Po = n.object({
1668
- per_platform_key_names: n.boolean(),
1669
- reviewing: n.boolean(),
1670
- auto_toggle_unverified: n.boolean(),
1671
- offline_translation: n.boolean(),
1672
- key_editing: n.boolean(),
1673
- inline_machine_translations: n.boolean(),
1674
- custom_translation_statuses: n.boolean(),
1675
- custom_translation_statuses_allow_multiple: n.boolean(),
1676
- segmentation: n.boolean(),
1677
- contributor_preview_download_enabled: n.boolean()
1678
- }), Ao = n.object({
1679
- not_reviewed: n.number(),
1680
- unverified: n.number(),
1681
- spelling_grammar: n.number(),
1682
- inconsistent_placeholders: n.number(),
1683
- inconsistent_html: n.number(),
1684
- different_number_of_urls: n.number(),
1685
- different_urls: n.number(),
1686
- leading_whitespace: n.number(),
1687
- trailing_whitespace: n.number(),
1688
- different_number_of_email_address: n.number(),
1689
- different_email_address: n.number(),
1690
- different_brackets: n.number(),
1691
- different_numbers: n.number(),
1692
- double_space: n.number(),
1693
- special_placeholder: n.number(),
1694
- unbalanced_brackets: n.number()
1695
- }), Ro = n.object({
1696
- progress_total: n.number(),
1697
- keys_total: n.number(),
1698
- team: n.number(),
1699
- base_words: n.number(),
1700
- qa_issues_total: n.number(),
1701
- qa_issues: Ao,
1702
- languages: n.array(go)
1703
- }), me = n.object({
1704
- project_id: n.string(),
1705
- uuid: n.string().uuid(),
1706
- project_type: Fe,
1707
- name: n.string(),
1708
- description: n.string(),
1709
- created_at: n.string(),
1710
- created_at_timestamp: n.number(),
1711
- created_by: n.number(),
1712
- created_by_email: n.string(),
1713
- team_id: n.number(),
1714
- team_uuid: n.string().uuid(),
1715
- base_language_id: n.number(),
1716
- base_language_iso: n.string(),
1717
- base_project_language_id: n.number(),
1718
- base_project_language_uuid: n.string().uuid(),
1719
- settings: Po.optional(),
1720
- statistics: Ro.optional()
1721
- }), wo = n.object({
1722
- name: n.string(),
1723
- team_id: n.string(),
1724
- base_lang_iso: n.string(),
1725
- languages: n.array(_o),
1726
- project_type: Fe,
1727
- is_segmentation_enabled: n.boolean()
1728
- }), yt = n.union([n.literal(0), n.literal(1)]), Io = n.object({
1729
- filter_type: Fe.optional(),
1730
- filter_team_id: n.number().optional(),
1731
- filter_names: n.string().optional(),
1732
- include_statistics: yt.optional(),
1733
- include_settings: yt.optional(),
1734
- limit: n.number().optional(),
1735
- page: n.number().optional()
1736
- }), ko = n.object({
1737
- projects: n.array(me)
1738
- }), jo = n.object({
1739
- project_id: n.string()
1740
- }), No = n.object({
1741
- project_id: n.string()
1742
- }), Oo = n.object({
1743
- name: n.string().min(1),
1744
- description: n.string().optional()
1745
- }), _e = () => "/projects", xo = X({
1746
- description: "Create a new project",
1747
- requestHeaderSchema: de,
1748
- method: "post",
1749
- pathResolver: _e,
1750
- requestBodySchema: wo,
1751
- successResponseBodySchema: me
1752
- }), Lo = $({
1753
- description: "List all projects",
1754
- requestHeaderSchema: de,
1755
- pathResolver: _e,
1756
- requestQuerySchema: Io,
1757
- successResponseBodySchema: ko
1758
- }), Mo = $({
1759
- description: "Retrieve a project",
1760
- requestHeaderSchema: de,
1761
- requestPathParamsSchema: jo,
1762
- pathResolver: ({ project_id: e }) => `${_e()}/${e}`,
1763
- successResponseBodySchema: me
1764
- }), Uo = X({
1765
- description: "Update a project",
1766
- requestHeaderSchema: de,
1767
- method: "put",
1768
- requestPathParamsSchema: No,
1769
- pathResolver: ({ project_id: e }) => `${_e()}/${e}`,
1770
- requestBodySchema: Oo,
1771
- successResponseBodySchema: me
1772
- }), Ho = n.object({
1773
- projectId: n.string(),
1774
- translationId: n.number()
1775
- }), Bo = n.enum(["critical", "major", "minor", "neutral"]), qo = n.object({
1776
- category: n.string(),
1777
- comment: n.string(),
1778
- severity: Bo
1779
- }), Do = n.object({
1780
- score: n.number(),
1781
- hasMajorIssue: n.boolean(),
1782
- hasCriticalIssue: n.boolean(),
1783
- issues: n.array(qo)
1784
- });
1785
- function va(e, t, r = {}) {
1786
- return Be({
1787
- ...r,
1788
- mutationFn: async (s) => G(e, xo, {
1789
- headers: await t.resolve(),
1790
- body: s
1791
- })
1792
- });
1793
- }
1794
- const Sa = {
1795
- projectIdKey: (e) => ["listProjectLanguages", e]
1796
- };
1797
- function Ea(e, t, r) {
1798
- return H({
1799
- ...r,
1800
- queryFn: async ({ queryKey: [s, o] }) => F(e, yo, {
1801
- headers: await t.resolve(),
1802
- pathParams: { projectId: o }
1803
- })
1804
- });
1805
- }
1806
- const ya = {
1807
- paramsKey: (e) => ["listProjects", e]
1808
- };
1809
- function Ca(e, t, r) {
1810
- return H({
1811
- ...r,
1812
- queryFn: async ({ queryKey: [s, o] }) => F(e, Lo, {
1813
- headers: await t.resolve(),
1814
- queryParams: o
1815
- })
1816
- });
1817
- }
1818
- const Pa = {
1819
- projectIdKey: (e) => ["retrieveProject", e]
1820
- };
1821
- function Aa(e, t, r) {
1822
- return H({
1823
- ...r,
1824
- queryFn: async ({ queryKey: [s, o] }) => F(e, Mo, {
1825
- headers: await t.resolve(),
1826
- pathParams: { project_id: o }
1827
- })
1828
- });
1829
- }
1830
- function Ra(e, t, r, s = {}) {
1831
- return Be({
1832
- ...s,
1833
- mutationFn: async (o) => G(e, Uo, {
1834
- headers: await t.resolve(),
1835
- body: o,
1836
- pathParams: r
1837
- })
1838
- });
1839
- }
1840
- function wa(e, t, r, s = {}) {
1841
- return Be({
1842
- ...s,
1843
- mutationFn: async (o) => G(e, Co, {
1844
- pathParams: t,
1845
- headers: await r.resolve(),
1846
- body: o
1847
- })
1848
- });
1849
- }
1850
- function $o(e) {
1851
- return {
1852
- isEmptyResponseExpected: e.isEmptyResponseExpected ?? !1,
1853
- isNonJSONResponseExpected: e.isNonJSONResponseExpected ?? !1,
1854
- method: "get",
1855
- pathResolver: e.pathResolver,
1856
- requestHeaderSchema: e.requestHeaderSchema,
1857
- requestPathParamsSchema: e.requestPathParamsSchema,
1858
- requestQuerySchema: e.requestQuerySchema,
1859
- successResponseBodySchema: e.successResponseBodySchema,
1860
- description: e.description,
1861
- responseSchemasByStatusCode: e.responseSchemasByStatusCode,
1862
- metadata: e.metadata
1863
- };
1864
- }
1865
- const Go = $o({
1866
- description: "Generate translation quality score",
1867
- requestHeaderSchema: N,
1868
- requestPathParamsSchema: Ho,
1869
- pathResolver: ({ projectId: e, translationId: t }) => `/projects/${e}/translations/${t}/scoring-guidance`,
1870
- successResponseBodySchema: Do
1871
- }), Ia = {
1872
- paramsKey: (e) => ["getScore", e]
1873
- };
1874
- function ka(e, t, r) {
1875
- return H({
1876
- ...r,
1877
- queryFn: async ({ queryKey: [s, o] }) => F(e, Go, {
1878
- headers: await t.resolve(),
1879
- pathParams: o
1880
- })
1881
- });
1882
- }
1
+ import { SidebarTaskLanguageStatuses, SidebarTaskStatuses, SidebarTaskTypeOptions } from "./harmony2.mjs";
2
+ import { NavigationPanel } from "./harmony3.mjs";
3
+ import { Sidebar } from "./harmony4.mjs";
4
+ import { Breadcrumbs } from "./harmony5.mjs";
5
+ import { NavigationTabs } from "./harmony6.mjs";
6
+ import { ENTERPRISE_OPENSOURCE_PLAN_ID, ENTERPRISE_PLAN_IDS, ESSENTIAL_PLAN_IDS, FREE_PLAN_ID, PRO_PLAN_IDS, START_PLAN_IDS, TRIAL_PLAN_ID, isEnterpriseOpenSourcePlan, isEnterprisePlan, isEssentialPlan, isFreePlan, isPaidPlan, isProPlan, isStartPlan, isTrialPlan } from "./harmony7.mjs";
7
+ import { convertNewLineToBreakTag } from "./harmony8.mjs";
8
+ import { makeUrlClickable } from "./harmony9.mjs";
9
+ import { formatDate, formatDateTz } from "./harmony10.mjs";
10
+ import { useEffectOnce } from "./harmony11.mjs";
11
+ import { JwtAuthHeaderBuilderMiddleware } from "./harmony12.mjs";
12
+ import { PublicApiHeaderBuilderMiddleware } from "./harmony13.mjs";
13
+ import { UnauthorizedError } from "./harmony14.mjs";
14
+ import { parseJwtTokenPayload } from "./harmony15.mjs";
15
+ import { getCsrfTokenFromCookie, getJwtTokenFromCookie } from "./harmony16.mjs";
16
+ import { createHeaderBuilderMiddleware } from "./harmony17.mjs";
17
+ import { HeaderBuilder } from "./harmony18.mjs";
18
+ import { getAuthenticatedSessionDetailFromRequest } from "./harmony19.mjs";
19
+ import { generateTokenFromClassicSession } from "./harmony20.mjs";
20
+ import { refreshExpiredToken } from "./harmony21.mjs";
21
+ import { useGetPromotedClassicSessionJwtQuery } from "./harmony22.mjs";
22
+ import { useAuthenticatedSessionPayload } from "./harmony23.mjs";
23
+ import { useAuthenticatedUser } from "./harmony24.mjs";
24
+ import { useAuthenticatedProjectContributor } from "./harmony25.mjs";
25
+ import { listContributors, retrieveContributor } from "./harmony26.mjs";
26
+ import { addLanguagesToProject, bulkUpdateProjectLanguages, listProjectLanguages } from "./harmony27.mjs";
27
+ import { listPermissionTemplates } from "./harmony28.mjs";
28
+ import { createProject, listProjects, retrieveProject, updateProject } from "./harmony29.mjs";
29
+ import { getScore } from "./harmony30.mjs";
30
+ import { getTeamUser } from "./harmony31.mjs";
31
+ import { getUserToken } from "./harmony32.mjs";
32
+ import { useAddLanguagesToProjectMutation } from "./harmony33.mjs";
33
+ import { useBulkUpdateProjectLanguagesMutation } from "./harmony34.mjs";
34
+ import { useCreateProjectMutation } from "./harmony35.mjs";
35
+ import { getScoreKey, useGetScoreQuery } from "./harmony36.mjs";
36
+ import { getTeamUsersQueryKey, useGetTeamUsersQuery } from "./harmony37.mjs";
37
+ import { getUserTokenKey, useGetUserTokenQuery } from "./harmony38.mjs";
38
+ import { listContributorsKeys, useListContributorsQuery } from "./harmony39.mjs";
39
+ import { listPermissionTemplatesKeys, useListPermissionTemplatesQuery } from "./harmony40.mjs";
40
+ import { listProjectLanguagesKey, useListProjectLanguagesQuery } from "./harmony41.mjs";
41
+ import { listProjectsKey, useListProjectsQuery } from "./harmony42.mjs";
42
+ import { retrieveContributorKeys, useRetrieveContributorQuery } from "./harmony43.mjs";
43
+ import { retrieveProjectQueryKey, useRetrieveProjectQuery } from "./harmony44.mjs";
44
+ import { useUpdateProjectMutation } from "./harmony45.mjs";
45
+ import { CONTRIBUTOR_API_BASE_HEADER_SCHEMA, CONTRIBUTOR_LANGUAGE_SCHEMA, CONTRIBUTOR_SCHEMA, LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA, LIST_CONTRIBUTORS_RESPONSE_SCHEMA, RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA, RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA } from "./harmony46.mjs";
46
+ import { ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA, ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA, ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA, LANGUAGE_ISO_SCHEMA, LANGUAGE_SCHEMA, LANGUAGE_STATISTICS_SCHEMA, LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA, LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA } from "./harmony47.mjs";
47
+ import { LIST_PERMISSION_TEMPLATES_PATH_PARAMS, LIST_PERMISSION_TEMPLATES_RESPONSE, PERMISSION_TEMPLATE_SCHEMA } from "./harmony48.mjs";
48
+ import { CREATE_PROJECT_REQUEST_BODY_SCHEMA, LIST_PROJECTS_REQUEST_QUERY_SCHEMA, LIST_PROJECTS_SUCCESS_RESPONSE_BODY, PROJECT_API_BASE_HEADERS_SCHEMA, PROJECT_QA_ISSUES_SCHEMA, PROJECT_SCHEMA, PROJECT_SETTINGS_SCHEMA, PROJECT_STATISTICS_SCHEMA, PROJECT_TYPE_SCHEMA, RETRIEVE_PROJECT_PATH_PARAM_SCHEMA, UPDATE_PROJECT_PATH_PARAMS_SCHEMA, UPDATE_PROJECT_REQUEST_BODY_SCHEMA } from "./harmony49.mjs";
49
+ import { GET_SCORE_REQUEST_QUERY_SCHEMA, GET_SCORE_RESPONSE_SCHEMA, ISSUE_SCHEMA, SEVERITY_ENUM } from "./harmony50.mjs";
50
+ import { API_PLUGIN_HEADER_SCHEMA, APU_TOKEN_AUTH_HEADER_SCHEMA, AUTHENTICATION_HEADERS_SCHEMA, AUTHORIZATION_HEADER_SCHEMA, BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony51.mjs";
51
+ import { TEAM_ROLE_SCHEMA } from "./harmony52.mjs";
52
+ import { TEAM_USER_API_BASE_HEADERS_SCHEMA, TEAM_USER_PATH_PARAMS_SCHEMA, TEAM_USER_RESPONSE_SCHEMA, TEAM_USER_SCHEMA } from "./harmony53.mjs";
53
+ import { JWT_TOKEN_SCHEMA, USER_TOKEN_REQUEST_HEADER_SCHEMA } from "./harmony54.mjs";
1883
54
  export {
1884
- fo as ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA,
1885
- bo as ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
1886
- To as ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA,
1887
- vo as BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
1888
- So as BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA,
1889
- Eo as BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
1890
- ia as Breadcrumbs,
1891
- pa as CONTRIBUTOR_API_BASE_HEADER_SCHEMA,
1892
- eo as CONTRIBUTOR_LANGUAGE_SCHEMA,
1893
- Yt as CONTRIBUTOR_SCHEMA,
1894
- wo as CREATE_PROJECT_REQUEST_BODY_SCHEMA,
1895
- Bt as ENTERPRISE_OPENSOURCE_PLAN_ID,
1896
- _r as ENTERPRISE_PLAN_IDS,
1897
- dr as ESSENTIAL_PLAN_IDS,
1898
- Ht as FREE_PLAN_ID,
1899
- Ho as GET_SCORE_REQUEST_QUERY_SCHEMA,
1900
- Do as GET_SCORE_RESPONSE_SCHEMA,
1901
- I as HeaderBuilder,
1902
- qo as ISSUE_SCHEMA,
1903
- $s as JWT_TOKEN_SCHEMA,
1904
- la as JwtAuthHeaderBuilderMiddleware,
1905
- _o as LANGUAGE_ISO_SCHEMA,
1906
- en as LANGUAGE_SCHEMA,
1907
- go as LANGUAGE_STATISTICS_SCHEMA,
1908
- so as LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA,
1909
- oo as LIST_CONTRIBUTORS_RESPONSE_SCHEMA,
1910
- Io as LIST_PROJECTS_REQUEST_QUERY_SCHEMA,
1911
- ko as LIST_PROJECTS_SUCCESS_RESPONSE_BODY,
1912
- ho as LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
1913
- po as LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
1914
- ae as NavigationPanel,
1915
- ca as NavigationTabs,
1916
- de as PROJECT_API_BASE_HEADERS_SCHEMA,
1917
- Ao as PROJECT_QA_ISSUES_SCHEMA,
1918
- me as PROJECT_SCHEMA,
1919
- Po as PROJECT_SETTINGS_SCHEMA,
1920
- Ro as PROJECT_STATISTICS_SCHEMA,
1921
- Fe as PROJECT_TYPE_SCHEMA,
1922
- mr as PRO_PLAN_IDS,
1923
- ua as PublicApiHeaderBuilderMiddleware,
1924
- ao as RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA,
1925
- io as RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA,
1926
- jo as RETRIEVE_PROJECT_PATH_PARAM_SCHEMA,
1927
- Bo as SEVERITY_ENUM,
1928
- ur as START_PLAN_IDS,
1929
- w as Sidebar,
1930
- R as SidebarTaskLanguageStatuses,
1931
- Le as SidebarTaskStatuses,
1932
- se as SidebarTaskTypeOptions,
1933
- zt as TEAM_ROLE_SCHEMA,
1934
- Js as TEAM_USER_API_BASE_HEADERS_SCHEMA,
1935
- Ws as TEAM_USER_PATH_PARAMS_SCHEMA,
1936
- Ys as TEAM_USER_RESPONSE_SCHEMA,
1937
- Qs as TEAM_USER_SCHEMA,
1938
- lr as TRIAL_PLAN_ID,
1939
- No as UPDATE_PROJECT_PATH_PARAMS_SCHEMA,
1940
- Oo as UPDATE_PROJECT_REQUEST_BODY_SCHEMA,
1941
- Fs as USER_TOKEN_REQUEST_HEADER_SCHEMA,
1942
- ie as UnauthorizedError,
1943
- Ta as addLanguagesToProject,
1944
- Co as bulkUpdateProjectLanguages,
1945
- pr as convertNewLineToBreakTag,
1946
- Kt as createHeaderBuilderMiddleware,
1947
- xo as createProject,
1948
- vr as formatDate,
1949
- aa as formatDateTz,
1950
- ma as generateTokenFromClassicSession,
1951
- da as getAuthenticatedSessionDetailFromRequest,
1952
- Hs as getCsrfTokenFromCookie,
1953
- Jt as getJwtTokenFromCookie,
1954
- Ia as getScoreKey,
1955
- Xs as getTeamUser,
1956
- Vs as getTeamUsersQueryKey,
1957
- Ge as getUserToken,
1958
- Ks as getUserTokenKey,
1959
- oa as isEnterpriseOpenSourcePlan,
1960
- ra as isEnterprisePlan,
1961
- ta as isEssentialPlan,
1962
- De as isFreePlan,
1963
- sa as isPaidPlan,
1964
- na as isProPlan,
1965
- ea as isStartPlan,
1966
- qt as isTrialPlan,
1967
- fa as listContributors,
1968
- yo as listProjectLanguages,
1969
- Sa as listProjectLanguagesKey,
1970
- Lo as listProjects,
1971
- ya as listProjectsKey,
1972
- Tr as makeUrlClickable,
1973
- ee as parseJwtTokenPayload,
1974
- _a as refreshExpiredToken,
1975
- lo as retrieveContributor,
1976
- uo as retrieveContributorKeys,
1977
- Mo as retrieveProject,
1978
- Pa as retrieveProjectQueryKey,
1979
- Uo as updateProject,
1980
- ba as useAuthenticatedProjectContributor,
1981
- Wt as useAuthenticatedSessionPayload,
1982
- ha as useAuthenticatedUser,
1983
- wa as useBulkUpdateProjectLanguagesMutation,
1984
- va as useCreateProjectMutation,
1985
- $e as useEffectOnce,
1986
- ga as useGetPromotedClassicSessionJwtQuery,
1987
- ka as useGetScoreQuery,
1988
- Zs as useGetTeamUsersQuery,
1989
- zs as useGetUserTokenQuery,
1990
- Ea as useListProjectLanguagesQuery,
1991
- Ca as useListProjectsQuery,
1992
- mo as useRetrieveContributorQuery,
1993
- Aa as useRetrieveProjectQuery,
1994
- Ra as useUpdateProjectMutation
55
+ ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA,
56
+ ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA,
57
+ ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA,
58
+ API_PLUGIN_HEADER_SCHEMA,
59
+ APU_TOKEN_AUTH_HEADER_SCHEMA,
60
+ AUTHENTICATION_HEADERS_SCHEMA,
61
+ AUTHORIZATION_HEADER_SCHEMA,
62
+ BASE_API_ENDPOINT_HEADER_SCHEMA,
63
+ BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
64
+ BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA,
65
+ BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
66
+ Breadcrumbs,
67
+ CONTRIBUTOR_API_BASE_HEADER_SCHEMA,
68
+ CONTRIBUTOR_LANGUAGE_SCHEMA,
69
+ CONTRIBUTOR_SCHEMA,
70
+ CREATE_PROJECT_REQUEST_BODY_SCHEMA,
71
+ ENTERPRISE_OPENSOURCE_PLAN_ID,
72
+ ENTERPRISE_PLAN_IDS,
73
+ ESSENTIAL_PLAN_IDS,
74
+ FREE_PLAN_ID,
75
+ GET_SCORE_REQUEST_QUERY_SCHEMA,
76
+ GET_SCORE_RESPONSE_SCHEMA,
77
+ HeaderBuilder,
78
+ ISSUE_SCHEMA,
79
+ JWT_TOKEN_SCHEMA,
80
+ JwtAuthHeaderBuilderMiddleware,
81
+ LANGUAGE_ISO_SCHEMA,
82
+ LANGUAGE_SCHEMA,
83
+ LANGUAGE_STATISTICS_SCHEMA,
84
+ LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA,
85
+ LIST_CONTRIBUTORS_RESPONSE_SCHEMA,
86
+ LIST_PERMISSION_TEMPLATES_PATH_PARAMS,
87
+ LIST_PERMISSION_TEMPLATES_RESPONSE,
88
+ LIST_PROJECTS_REQUEST_QUERY_SCHEMA,
89
+ LIST_PROJECTS_SUCCESS_RESPONSE_BODY,
90
+ LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA,
91
+ LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA,
92
+ NavigationPanel,
93
+ NavigationTabs,
94
+ PERMISSION_TEMPLATE_SCHEMA,
95
+ PROJECT_API_BASE_HEADERS_SCHEMA,
96
+ PROJECT_QA_ISSUES_SCHEMA,
97
+ PROJECT_SCHEMA,
98
+ PROJECT_SETTINGS_SCHEMA,
99
+ PROJECT_STATISTICS_SCHEMA,
100
+ PROJECT_TYPE_SCHEMA,
101
+ PRO_PLAN_IDS,
102
+ PublicApiHeaderBuilderMiddleware,
103
+ RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA,
104
+ RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA,
105
+ RETRIEVE_PROJECT_PATH_PARAM_SCHEMA,
106
+ SEVERITY_ENUM,
107
+ START_PLAN_IDS,
108
+ Sidebar,
109
+ SidebarTaskLanguageStatuses,
110
+ SidebarTaskStatuses,
111
+ SidebarTaskTypeOptions,
112
+ TEAM_ROLE_SCHEMA,
113
+ TEAM_USER_API_BASE_HEADERS_SCHEMA,
114
+ TEAM_USER_PATH_PARAMS_SCHEMA,
115
+ TEAM_USER_RESPONSE_SCHEMA,
116
+ TEAM_USER_SCHEMA,
117
+ TRIAL_PLAN_ID,
118
+ UPDATE_PROJECT_PATH_PARAMS_SCHEMA,
119
+ UPDATE_PROJECT_REQUEST_BODY_SCHEMA,
120
+ USER_TOKEN_REQUEST_HEADER_SCHEMA,
121
+ UnauthorizedError,
122
+ addLanguagesToProject,
123
+ bulkUpdateProjectLanguages,
124
+ convertNewLineToBreakTag,
125
+ createHeaderBuilderMiddleware,
126
+ createProject,
127
+ formatDate,
128
+ formatDateTz,
129
+ generateTokenFromClassicSession,
130
+ getAuthenticatedSessionDetailFromRequest,
131
+ getCsrfTokenFromCookie,
132
+ getJwtTokenFromCookie,
133
+ getScore,
134
+ getScoreKey,
135
+ getTeamUser,
136
+ getTeamUsersQueryKey,
137
+ getUserToken,
138
+ getUserTokenKey,
139
+ isEnterpriseOpenSourcePlan,
140
+ isEnterprisePlan,
141
+ isEssentialPlan,
142
+ isFreePlan,
143
+ isPaidPlan,
144
+ isProPlan,
145
+ isStartPlan,
146
+ isTrialPlan,
147
+ listContributors,
148
+ listContributorsKeys,
149
+ listPermissionTemplates,
150
+ listPermissionTemplatesKeys,
151
+ listProjectLanguages,
152
+ listProjectLanguagesKey,
153
+ listProjects,
154
+ listProjectsKey,
155
+ makeUrlClickable,
156
+ parseJwtTokenPayload,
157
+ refreshExpiredToken,
158
+ retrieveContributor,
159
+ retrieveContributorKeys,
160
+ retrieveProject,
161
+ retrieveProjectQueryKey,
162
+ updateProject,
163
+ useAddLanguagesToProjectMutation,
164
+ useAuthenticatedProjectContributor,
165
+ useAuthenticatedSessionPayload,
166
+ useAuthenticatedUser,
167
+ useBulkUpdateProjectLanguagesMutation,
168
+ useCreateProjectMutation,
169
+ useEffectOnce,
170
+ useGetPromotedClassicSessionJwtQuery,
171
+ useGetScoreQuery,
172
+ useGetTeamUsersQuery,
173
+ useGetUserTokenQuery,
174
+ useListContributorsQuery,
175
+ useListPermissionTemplatesQuery,
176
+ useListProjectLanguagesQuery,
177
+ useListProjectsQuery,
178
+ useRetrieveContributorQuery,
179
+ useRetrieveProjectQuery,
180
+ useUpdateProjectMutation
1995
181
  };
182
+ //# sourceMappingURL=harmony.mjs.map