@lokalise/harmony 2.0.5 → 2.0.7

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 (619) hide show
  1. package/dist/harmony.cjs +135 -135
  2. package/dist/harmony.mjs +79 -79
  3. package/dist/harmony102.cjs +1 -1
  4. package/dist/harmony102.mjs +1 -1
  5. package/dist/harmony103.cjs +7 -7
  6. package/dist/harmony103.mjs +7 -7
  7. package/dist/harmony105.cjs +2 -2
  8. package/dist/harmony105.mjs +2 -2
  9. package/dist/harmony106.cjs +13 -165
  10. package/dist/harmony106.cjs.map +1 -1
  11. package/dist/harmony106.mjs +13 -165
  12. package/dist/harmony106.mjs.map +1 -1
  13. package/dist/harmony107.cjs +2 -43
  14. package/dist/harmony107.cjs.map +1 -1
  15. package/dist/harmony107.mjs +3 -44
  16. package/dist/harmony107.mjs.map +1 -1
  17. package/dist/harmony108.cjs +17 -13
  18. package/dist/harmony108.cjs.map +1 -1
  19. package/dist/harmony108.mjs +17 -13
  20. package/dist/harmony108.mjs.map +1 -1
  21. package/dist/harmony109.cjs +74 -9
  22. package/dist/harmony109.cjs.map +1 -1
  23. package/dist/harmony109.mjs +76 -11
  24. package/dist/harmony109.mjs.map +1 -1
  25. package/dist/harmony11.cjs +55 -30
  26. package/dist/harmony11.cjs.map +1 -1
  27. package/dist/harmony11.mjs +55 -30
  28. package/dist/harmony11.mjs.map +1 -1
  29. package/dist/harmony110.cjs +12 -21
  30. package/dist/harmony110.cjs.map +1 -1
  31. package/dist/harmony110.mjs +11 -20
  32. package/dist/harmony110.mjs.map +1 -1
  33. package/dist/harmony111.cjs +34 -3
  34. package/dist/harmony111.cjs.map +1 -1
  35. package/dist/harmony111.mjs +34 -3
  36. package/dist/harmony111.mjs.map +1 -1
  37. package/dist/harmony112.cjs +8 -17
  38. package/dist/harmony112.cjs.map +1 -1
  39. package/dist/harmony112.mjs +8 -17
  40. package/dist/harmony112.mjs.map +1 -1
  41. package/dist/harmony113.cjs +36 -65
  42. package/dist/harmony113.cjs.map +1 -1
  43. package/dist/harmony113.mjs +37 -66
  44. package/dist/harmony113.mjs.map +1 -1
  45. package/dist/harmony114.cjs +9 -12
  46. package/dist/harmony114.cjs.map +1 -1
  47. package/dist/harmony114.mjs +8 -11
  48. package/dist/harmony114.mjs.map +1 -1
  49. package/dist/harmony115.cjs +12 -34
  50. package/dist/harmony115.cjs.map +1 -1
  51. package/dist/harmony115.mjs +12 -34
  52. package/dist/harmony115.mjs.map +1 -1
  53. package/dist/harmony116.cjs +13 -10
  54. package/dist/harmony116.cjs.map +1 -1
  55. package/dist/harmony116.mjs +12 -9
  56. package/dist/harmony116.mjs.map +1 -1
  57. package/dist/harmony117.cjs +9 -45
  58. package/dist/harmony117.cjs.map +1 -1
  59. package/dist/harmony117.mjs +11 -47
  60. package/dist/harmony117.mjs.map +1 -1
  61. package/dist/harmony118.cjs +20 -8
  62. package/dist/harmony118.cjs.map +1 -1
  63. package/dist/harmony118.mjs +20 -8
  64. package/dist/harmony118.mjs.map +1 -1
  65. package/dist/harmony119.cjs +165 -11
  66. package/dist/harmony119.cjs.map +1 -1
  67. package/dist/harmony119.mjs +165 -11
  68. package/dist/harmony119.mjs.map +1 -1
  69. package/dist/harmony12.cjs +30 -22
  70. package/dist/harmony12.cjs.map +1 -1
  71. package/dist/harmony12.mjs +30 -22
  72. package/dist/harmony12.mjs.map +1 -1
  73. package/dist/harmony120.cjs +44 -12
  74. package/dist/harmony120.cjs.map +1 -1
  75. package/dist/harmony120.mjs +43 -11
  76. package/dist/harmony120.mjs.map +1 -1
  77. package/dist/harmony121.cjs +2 -2
  78. package/dist/harmony121.mjs +2 -2
  79. package/dist/harmony122.cjs +20 -87
  80. package/dist/harmony122.cjs.map +1 -1
  81. package/dist/harmony122.mjs +20 -87
  82. package/dist/harmony122.mjs.map +1 -1
  83. package/dist/harmony123.cjs +10 -31
  84. package/dist/harmony123.cjs.map +1 -1
  85. package/dist/harmony123.mjs +9 -30
  86. package/dist/harmony123.mjs.map +1 -1
  87. package/dist/harmony124.cjs +13 -6
  88. package/dist/harmony124.cjs.map +1 -1
  89. package/dist/harmony124.mjs +12 -5
  90. package/dist/harmony124.mjs.map +1 -1
  91. package/dist/harmony125.cjs +16 -6
  92. package/dist/harmony125.cjs.map +1 -1
  93. package/dist/harmony125.mjs +15 -5
  94. package/dist/harmony125.mjs.map +1 -1
  95. package/dist/harmony126.cjs +19 -20
  96. package/dist/harmony126.cjs.map +1 -1
  97. package/dist/harmony126.mjs +19 -20
  98. package/dist/harmony126.mjs.map +1 -1
  99. package/dist/harmony127.cjs +10 -7
  100. package/dist/harmony127.cjs.map +1 -1
  101. package/dist/harmony127.mjs +10 -7
  102. package/dist/harmony127.mjs.map +1 -1
  103. package/dist/harmony128.cjs +24 -15
  104. package/dist/harmony128.cjs.map +1 -1
  105. package/dist/harmony128.mjs +24 -15
  106. package/dist/harmony128.mjs.map +1 -1
  107. package/dist/harmony129.cjs +11 -7
  108. package/dist/harmony129.cjs.map +1 -1
  109. package/dist/harmony129.mjs +11 -7
  110. package/dist/harmony129.mjs.map +1 -1
  111. package/dist/harmony13.cjs +11 -52
  112. package/dist/harmony13.cjs.map +1 -1
  113. package/dist/harmony13.mjs +11 -52
  114. package/dist/harmony13.mjs.map +1 -1
  115. package/dist/harmony130.cjs +37 -7
  116. package/dist/harmony130.cjs.map +1 -1
  117. package/dist/harmony130.mjs +37 -7
  118. package/dist/harmony130.mjs.map +1 -1
  119. package/dist/harmony131.cjs +11 -14
  120. package/dist/harmony131.cjs.map +1 -1
  121. package/dist/harmony131.mjs +11 -14
  122. package/dist/harmony131.mjs.map +1 -1
  123. package/dist/harmony132.cjs +22 -9
  124. package/dist/harmony132.cjs.map +1 -1
  125. package/dist/harmony132.mjs +21 -8
  126. package/dist/harmony132.mjs.map +1 -1
  127. package/dist/harmony133.cjs +31 -7
  128. package/dist/harmony133.cjs.map +1 -1
  129. package/dist/harmony133.mjs +32 -8
  130. package/dist/harmony133.mjs.map +1 -1
  131. package/dist/harmony134.cjs +21 -15
  132. package/dist/harmony134.cjs.map +1 -1
  133. package/dist/harmony134.mjs +20 -14
  134. package/dist/harmony134.mjs.map +1 -1
  135. package/dist/harmony135.cjs +18 -16
  136. package/dist/harmony135.cjs.map +1 -1
  137. package/dist/harmony135.mjs +20 -18
  138. package/dist/harmony135.mjs.map +1 -1
  139. package/dist/harmony136.cjs +6 -10
  140. package/dist/harmony136.cjs.map +1 -1
  141. package/dist/harmony136.mjs +5 -9
  142. package/dist/harmony136.mjs.map +1 -1
  143. package/dist/harmony137.cjs +15 -26
  144. package/dist/harmony137.cjs.map +1 -1
  145. package/dist/harmony137.mjs +14 -25
  146. package/dist/harmony137.mjs.map +1 -1
  147. package/dist/harmony138.cjs +7 -12
  148. package/dist/harmony138.cjs.map +1 -1
  149. package/dist/harmony138.mjs +7 -12
  150. package/dist/harmony138.mjs.map +1 -1
  151. package/dist/harmony139.cjs +15 -36
  152. package/dist/harmony139.cjs.map +1 -1
  153. package/dist/harmony139.mjs +15 -36
  154. package/dist/harmony139.mjs.map +1 -1
  155. package/dist/harmony14.cjs +55 -9
  156. package/dist/harmony14.cjs.map +1 -1
  157. package/dist/harmony14.mjs +55 -9
  158. package/dist/harmony14.mjs.map +1 -1
  159. package/dist/harmony140.cjs +7 -11
  160. package/dist/harmony140.cjs.map +1 -1
  161. package/dist/harmony140.mjs +7 -11
  162. package/dist/harmony140.mjs.map +1 -1
  163. package/dist/harmony141.cjs +7 -21
  164. package/dist/harmony141.cjs.map +1 -1
  165. package/dist/harmony141.mjs +7 -21
  166. package/dist/harmony141.mjs.map +1 -1
  167. package/dist/harmony142.cjs +14 -35
  168. package/dist/harmony142.cjs.map +1 -1
  169. package/dist/harmony142.mjs +14 -35
  170. package/dist/harmony142.mjs.map +1 -1
  171. package/dist/harmony143.cjs +87 -21
  172. package/dist/harmony143.cjs.map +1 -1
  173. package/dist/harmony143.mjs +86 -20
  174. package/dist/harmony143.mjs.map +1 -1
  175. package/dist/harmony144.cjs +30 -21
  176. package/dist/harmony144.cjs.map +1 -1
  177. package/dist/harmony144.mjs +30 -21
  178. package/dist/harmony144.mjs.map +1 -1
  179. package/dist/harmony145.cjs +5 -6
  180. package/dist/harmony145.cjs.map +1 -1
  181. package/dist/harmony145.mjs +5 -6
  182. package/dist/harmony146.cjs +5 -15
  183. package/dist/harmony146.cjs.map +1 -1
  184. package/dist/harmony146.mjs +5 -15
  185. package/dist/harmony146.mjs.map +1 -1
  186. package/dist/harmony147.cjs +9 -10
  187. package/dist/harmony147.cjs.map +1 -1
  188. package/dist/harmony147.mjs +8 -9
  189. package/dist/harmony147.mjs.map +1 -1
  190. package/dist/harmony148.cjs +7 -97
  191. package/dist/harmony148.cjs.map +1 -1
  192. package/dist/harmony148.mjs +6 -96
  193. package/dist/harmony148.mjs.map +1 -1
  194. package/dist/harmony149.cjs +10 -14
  195. package/dist/harmony149.cjs.map +1 -1
  196. package/dist/harmony149.mjs +9 -13
  197. package/dist/harmony149.mjs.map +1 -1
  198. package/dist/harmony15.cjs +30 -5
  199. package/dist/harmony15.cjs.map +1 -1
  200. package/dist/harmony15.mjs +30 -5
  201. package/dist/harmony15.mjs.map +1 -1
  202. package/dist/harmony150.cjs +25 -15
  203. package/dist/harmony150.cjs.map +1 -1
  204. package/dist/harmony150.mjs +24 -14
  205. package/dist/harmony150.mjs.map +1 -1
  206. package/dist/harmony151.cjs +7 -37
  207. package/dist/harmony151.cjs.map +1 -1
  208. package/dist/harmony151.mjs +6 -36
  209. package/dist/harmony151.mjs.map +1 -1
  210. package/dist/harmony152.cjs +13 -29
  211. package/dist/harmony152.cjs.map +1 -1
  212. package/dist/harmony152.mjs +12 -28
  213. package/dist/harmony152.mjs.map +1 -1
  214. package/dist/harmony153.cjs +7 -4
  215. package/dist/harmony153.cjs.map +1 -1
  216. package/dist/harmony153.mjs +6 -3
  217. package/dist/harmony153.mjs.map +1 -1
  218. package/dist/harmony154.cjs +96 -3
  219. package/dist/harmony154.cjs.map +1 -1
  220. package/dist/harmony154.mjs +96 -3
  221. package/dist/harmony154.mjs.map +1 -1
  222. package/dist/harmony155.cjs +13 -3
  223. package/dist/harmony155.cjs.map +1 -1
  224. package/dist/harmony155.mjs +13 -3
  225. package/dist/harmony155.mjs.map +1 -1
  226. package/dist/harmony156.cjs +14 -14
  227. package/dist/harmony156.cjs.map +1 -1
  228. package/dist/harmony156.mjs +14 -14
  229. package/dist/harmony156.mjs.map +1 -1
  230. package/dist/harmony157.cjs +36 -14
  231. package/dist/harmony157.cjs.map +1 -1
  232. package/dist/harmony157.mjs +36 -14
  233. package/dist/harmony157.mjs.map +1 -1
  234. package/dist/harmony158.cjs +28 -3
  235. package/dist/harmony158.cjs.map +1 -1
  236. package/dist/harmony158.mjs +28 -3
  237. package/dist/harmony158.mjs.map +1 -1
  238. package/dist/harmony159.cjs +10 -13
  239. package/dist/harmony159.cjs.map +1 -1
  240. package/dist/harmony159.mjs +10 -13
  241. package/dist/harmony159.mjs.map +1 -1
  242. package/dist/harmony16.cjs +18 -15
  243. package/dist/harmony16.cjs.map +1 -1
  244. package/dist/harmony16.mjs +18 -15
  245. package/dist/harmony16.mjs.map +1 -1
  246. package/dist/harmony160.cjs +3 -15
  247. package/dist/harmony160.cjs.map +1 -1
  248. package/dist/harmony160.mjs +3 -15
  249. package/dist/harmony160.mjs.map +1 -1
  250. package/dist/harmony161.cjs +3 -16
  251. package/dist/harmony161.cjs.map +1 -1
  252. package/dist/harmony161.mjs +3 -16
  253. package/dist/harmony161.mjs.map +1 -1
  254. package/dist/harmony162.cjs +4 -10
  255. package/dist/harmony162.cjs.map +1 -1
  256. package/dist/harmony162.mjs +3 -9
  257. package/dist/harmony162.mjs.map +1 -1
  258. package/dist/harmony163.cjs +15 -7
  259. package/dist/harmony163.cjs.map +1 -1
  260. package/dist/harmony163.mjs +14 -6
  261. package/dist/harmony163.mjs.map +1 -1
  262. package/dist/harmony164.cjs +15 -10
  263. package/dist/harmony164.cjs.map +1 -1
  264. package/dist/harmony164.mjs +14 -9
  265. package/dist/harmony164.mjs.map +1 -1
  266. package/dist/harmony165.cjs +4 -25
  267. package/dist/harmony165.cjs.map +1 -1
  268. package/dist/harmony165.mjs +3 -24
  269. package/dist/harmony165.mjs.map +1 -1
  270. package/dist/harmony166.cjs +14 -7
  271. package/dist/harmony166.cjs.map +1 -1
  272. package/dist/harmony166.mjs +13 -6
  273. package/dist/harmony166.mjs.map +1 -1
  274. package/dist/harmony167.cjs +16 -13
  275. package/dist/harmony167.cjs.map +1 -1
  276. package/dist/harmony167.mjs +15 -12
  277. package/dist/harmony167.mjs.map +1 -1
  278. package/dist/harmony168.cjs +17 -7
  279. package/dist/harmony168.cjs.map +1 -1
  280. package/dist/harmony168.mjs +16 -6
  281. package/dist/harmony168.mjs.map +1 -1
  282. package/dist/harmony169.cjs +10 -15
  283. package/dist/harmony169.cjs.map +1 -1
  284. package/dist/harmony169.mjs +10 -15
  285. package/dist/harmony169.mjs.map +1 -1
  286. package/dist/harmony17.cjs +28 -32
  287. package/dist/harmony17.cjs.map +1 -1
  288. package/dist/harmony17.mjs +28 -32
  289. package/dist/harmony17.mjs.map +1 -1
  290. package/dist/harmony170.cjs +13 -18
  291. package/dist/harmony170.cjs.map +1 -1
  292. package/dist/harmony170.mjs +13 -18
  293. package/dist/harmony170.mjs.map +1 -1
  294. package/dist/harmony171.cjs +19 -10
  295. package/dist/harmony171.cjs.map +1 -1
  296. package/dist/harmony171.mjs +19 -10
  297. package/dist/harmony171.mjs.map +1 -1
  298. package/dist/harmony172.cjs +11 -10
  299. package/dist/harmony172.cjs.map +1 -1
  300. package/dist/harmony172.mjs +11 -10
  301. package/dist/harmony172.mjs.map +1 -1
  302. package/dist/harmony174.cjs +5 -11
  303. package/dist/harmony174.cjs.map +1 -1
  304. package/dist/harmony174.mjs +5 -11
  305. package/dist/harmony174.mjs.map +1 -1
  306. package/dist/harmony175.cjs +11 -31
  307. package/dist/harmony175.cjs.map +1 -1
  308. package/dist/harmony175.mjs +11 -31
  309. package/dist/harmony175.mjs.map +1 -1
  310. package/dist/harmony176.cjs +28 -10
  311. package/dist/harmony176.cjs.map +1 -1
  312. package/dist/harmony176.mjs +28 -10
  313. package/dist/harmony176.mjs.map +1 -1
  314. package/dist/harmony177.cjs +13 -5
  315. package/dist/harmony177.cjs.map +1 -1
  316. package/dist/harmony177.mjs +13 -5
  317. package/dist/harmony177.mjs.map +1 -1
  318. package/dist/harmony18.cjs +14 -5
  319. package/dist/harmony18.cjs.map +1 -1
  320. package/dist/harmony18.mjs +14 -5
  321. package/dist/harmony18.mjs.map +1 -1
  322. package/dist/harmony19.cjs +13 -10
  323. package/dist/harmony19.cjs.map +1 -1
  324. package/dist/harmony19.mjs +13 -10
  325. package/dist/harmony19.mjs.map +1 -1
  326. package/dist/harmony20.cjs +13 -10
  327. package/dist/harmony20.cjs.map +1 -1
  328. package/dist/harmony20.mjs +13 -10
  329. package/dist/harmony20.mjs.map +1 -1
  330. package/dist/harmony21.cjs +13 -17
  331. package/dist/harmony21.cjs.map +1 -1
  332. package/dist/harmony21.mjs +13 -17
  333. package/dist/harmony21.mjs.map +1 -1
  334. package/dist/harmony22.cjs +13 -15
  335. package/dist/harmony22.cjs.map +1 -1
  336. package/dist/harmony22.mjs +13 -15
  337. package/dist/harmony22.mjs.map +1 -1
  338. package/dist/harmony23.cjs +12 -141
  339. package/dist/harmony23.cjs.map +1 -1
  340. package/dist/harmony23.mjs +12 -141
  341. package/dist/harmony23.mjs.map +1 -1
  342. package/dist/harmony24.cjs +22 -20
  343. package/dist/harmony24.cjs.map +1 -1
  344. package/dist/harmony24.mjs +22 -20
  345. package/dist/harmony24.mjs.map +1 -1
  346. package/dist/harmony25.cjs +13 -14
  347. package/dist/harmony25.cjs.map +1 -1
  348. package/dist/harmony25.mjs +13 -14
  349. package/dist/harmony25.mjs.map +1 -1
  350. package/dist/harmony26.cjs +12 -16
  351. package/dist/harmony26.cjs.map +1 -1
  352. package/dist/harmony26.mjs +13 -17
  353. package/dist/harmony26.mjs.map +1 -1
  354. package/dist/harmony27.cjs +15 -16
  355. package/dist/harmony27.cjs.map +1 -1
  356. package/dist/harmony27.mjs +16 -17
  357. package/dist/harmony27.mjs.map +1 -1
  358. package/dist/harmony28.cjs +15 -18
  359. package/dist/harmony28.cjs.map +1 -1
  360. package/dist/harmony28.mjs +15 -18
  361. package/dist/harmony28.mjs.map +1 -1
  362. package/dist/harmony29.cjs +15 -20
  363. package/dist/harmony29.cjs.map +1 -1
  364. package/dist/harmony29.mjs +15 -20
  365. package/dist/harmony29.mjs.map +1 -1
  366. package/dist/harmony30.cjs +15 -10
  367. package/dist/harmony30.cjs.map +1 -1
  368. package/dist/harmony30.mjs +15 -10
  369. package/dist/harmony30.mjs.map +1 -1
  370. package/dist/harmony31.cjs +15 -11
  371. package/dist/harmony31.cjs.map +1 -1
  372. package/dist/harmony31.mjs +15 -11
  373. package/dist/harmony31.mjs.map +1 -1
  374. package/dist/harmony32.cjs +16 -8
  375. package/dist/harmony32.cjs.map +1 -1
  376. package/dist/harmony32.mjs +16 -8
  377. package/dist/harmony32.mjs.map +1 -1
  378. package/dist/harmony33.cjs +16 -8
  379. package/dist/harmony33.cjs.map +1 -1
  380. package/dist/harmony33.mjs +16 -8
  381. package/dist/harmony33.mjs.map +1 -1
  382. package/dist/harmony34.cjs +16 -14
  383. package/dist/harmony34.cjs.map +1 -1
  384. package/dist/harmony34.mjs +16 -14
  385. package/dist/harmony34.mjs.map +1 -1
  386. package/dist/harmony35.cjs +16 -9
  387. package/dist/harmony35.cjs.map +1 -1
  388. package/dist/harmony35.mjs +16 -9
  389. package/dist/harmony35.mjs.map +1 -1
  390. package/dist/harmony36.cjs +16 -12
  391. package/dist/harmony36.cjs.map +1 -1
  392. package/dist/harmony36.mjs +16 -12
  393. package/dist/harmony36.mjs.map +1 -1
  394. package/dist/harmony37.cjs +14 -9
  395. package/dist/harmony37.cjs.map +1 -1
  396. package/dist/harmony37.mjs +14 -9
  397. package/dist/harmony37.mjs.map +1 -1
  398. package/dist/harmony38.cjs +16 -13
  399. package/dist/harmony38.cjs.map +1 -1
  400. package/dist/harmony38.mjs +16 -13
  401. package/dist/harmony38.mjs.map +1 -1
  402. package/dist/harmony39.cjs +16 -7
  403. package/dist/harmony39.cjs.map +1 -1
  404. package/dist/harmony39.mjs +16 -7
  405. package/dist/harmony39.mjs.map +1 -1
  406. package/dist/harmony40.cjs +17 -10
  407. package/dist/harmony40.cjs.map +1 -1
  408. package/dist/harmony40.mjs +17 -10
  409. package/dist/harmony40.mjs.map +1 -1
  410. package/dist/harmony41.cjs +14 -11
  411. package/dist/harmony41.cjs.map +1 -1
  412. package/dist/harmony41.mjs +14 -11
  413. package/dist/harmony41.mjs.map +1 -1
  414. package/dist/harmony42.cjs +14 -9
  415. package/dist/harmony42.cjs.map +1 -1
  416. package/dist/harmony42.mjs +14 -9
  417. package/dist/harmony42.mjs.map +1 -1
  418. package/dist/harmony43.cjs +124 -9
  419. package/dist/harmony43.cjs.map +1 -1
  420. package/dist/harmony43.mjs +124 -9
  421. package/dist/harmony43.mjs.map +1 -1
  422. package/dist/harmony44.cjs +82 -9
  423. package/dist/harmony44.cjs.map +1 -1
  424. package/dist/harmony44.mjs +82 -9
  425. package/dist/harmony44.mjs.map +1 -1
  426. package/dist/harmony45.cjs +6 -88
  427. package/dist/harmony45.cjs.map +1 -1
  428. package/dist/harmony45.mjs +6 -88
  429. package/dist/harmony45.mjs.map +1 -1
  430. package/dist/harmony46.cjs +25 -52
  431. package/dist/harmony46.cjs.map +1 -1
  432. package/dist/harmony46.mjs +25 -52
  433. package/dist/harmony46.mjs.map +1 -1
  434. package/dist/harmony47.cjs +23 -30
  435. package/dist/harmony47.cjs.map +1 -1
  436. package/dist/harmony47.mjs +23 -30
  437. package/dist/harmony47.mjs.map +1 -1
  438. package/dist/harmony48.cjs +141 -11
  439. package/dist/harmony48.cjs.map +1 -1
  440. package/dist/harmony48.mjs +140 -10
  441. package/dist/harmony48.mjs.map +1 -1
  442. package/dist/harmony49.cjs +32 -50
  443. package/dist/harmony49.cjs.map +1 -1
  444. package/dist/harmony49.mjs +32 -50
  445. package/dist/harmony49.mjs.map +1 -1
  446. package/dist/harmony5.cjs +5 -5
  447. package/dist/harmony5.mjs +5 -5
  448. package/dist/harmony50.cjs +26 -30
  449. package/dist/harmony50.cjs.map +1 -1
  450. package/dist/harmony50.mjs +26 -30
  451. package/dist/harmony50.mjs.map +1 -1
  452. package/dist/harmony51.cjs +4 -18
  453. package/dist/harmony51.cjs.map +1 -1
  454. package/dist/harmony51.mjs +4 -18
  455. package/dist/harmony51.mjs.map +1 -1
  456. package/dist/harmony52.cjs +81 -25
  457. package/dist/harmony52.cjs.map +1 -1
  458. package/dist/harmony52.mjs +81 -25
  459. package/dist/harmony52.mjs.map +1 -1
  460. package/dist/harmony53.cjs +57 -13
  461. package/dist/harmony53.cjs.map +1 -1
  462. package/dist/harmony53.mjs +56 -12
  463. package/dist/harmony53.mjs.map +1 -1
  464. package/dist/harmony54.cjs +18 -14
  465. package/dist/harmony54.cjs.map +1 -1
  466. package/dist/harmony54.mjs +18 -14
  467. package/dist/harmony54.mjs.map +1 -1
  468. package/dist/harmony55.cjs +30 -14
  469. package/dist/harmony55.cjs.map +1 -1
  470. package/dist/harmony55.mjs +30 -14
  471. package/dist/harmony55.mjs.map +1 -1
  472. package/dist/harmony56.cjs +22 -13
  473. package/dist/harmony56.cjs.map +1 -1
  474. package/dist/harmony56.mjs +22 -13
  475. package/dist/harmony56.mjs.map +1 -1
  476. package/dist/harmony57.cjs +52 -14
  477. package/dist/harmony57.cjs.map +1 -1
  478. package/dist/harmony57.mjs +52 -14
  479. package/dist/harmony57.mjs.map +1 -1
  480. package/dist/harmony58.cjs +9 -13
  481. package/dist/harmony58.cjs.map +1 -1
  482. package/dist/harmony58.mjs +9 -13
  483. package/dist/harmony58.mjs.map +1 -1
  484. package/dist/harmony59.cjs +5 -22
  485. package/dist/harmony59.cjs.map +1 -1
  486. package/dist/harmony59.mjs +5 -22
  487. package/dist/harmony59.mjs.map +1 -1
  488. package/dist/harmony6.cjs +1 -1
  489. package/dist/harmony6.mjs +2 -2
  490. package/dist/harmony60.cjs +14 -12
  491. package/dist/harmony60.cjs.map +1 -1
  492. package/dist/harmony60.mjs +14 -12
  493. package/dist/harmony60.mjs.map +1 -1
  494. package/dist/harmony61.cjs +31 -12
  495. package/dist/harmony61.cjs.map +1 -1
  496. package/dist/harmony61.mjs +31 -12
  497. package/dist/harmony61.mjs.map +1 -1
  498. package/dist/harmony62.cjs +5 -17
  499. package/dist/harmony62.cjs.map +1 -1
  500. package/dist/harmony62.mjs +5 -17
  501. package/dist/harmony62.mjs.map +1 -1
  502. package/dist/harmony63.cjs +10 -16
  503. package/dist/harmony63.cjs.map +1 -1
  504. package/dist/harmony63.mjs +10 -16
  505. package/dist/harmony63.mjs.map +1 -1
  506. package/dist/harmony64.cjs +11 -15
  507. package/dist/harmony64.cjs.map +1 -1
  508. package/dist/harmony64.mjs +11 -15
  509. package/dist/harmony64.mjs.map +1 -1
  510. package/dist/harmony65.cjs +18 -15
  511. package/dist/harmony65.cjs.map +1 -1
  512. package/dist/harmony65.mjs +18 -15
  513. package/dist/harmony65.mjs.map +1 -1
  514. package/dist/harmony66.cjs +16 -15
  515. package/dist/harmony66.cjs.map +1 -1
  516. package/dist/harmony66.mjs +16 -15
  517. package/dist/harmony66.mjs.map +1 -1
  518. package/dist/harmony67.cjs +142 -17
  519. package/dist/harmony67.cjs.map +1 -1
  520. package/dist/harmony67.mjs +142 -17
  521. package/dist/harmony67.mjs.map +1 -1
  522. package/dist/harmony68.cjs +19 -16
  523. package/dist/harmony68.cjs.map +1 -1
  524. package/dist/harmony68.mjs +19 -16
  525. package/dist/harmony68.mjs.map +1 -1
  526. package/dist/harmony69.cjs +13 -16
  527. package/dist/harmony69.cjs.map +1 -1
  528. package/dist/harmony69.mjs +13 -16
  529. package/dist/harmony69.mjs.map +1 -1
  530. package/dist/harmony70.cjs +15 -15
  531. package/dist/harmony70.cjs.map +1 -1
  532. package/dist/harmony70.mjs +16 -16
  533. package/dist/harmony70.mjs.map +1 -1
  534. package/dist/harmony71.cjs +16 -15
  535. package/dist/harmony71.cjs.map +1 -1
  536. package/dist/harmony71.mjs +17 -16
  537. package/dist/harmony71.mjs.map +1 -1
  538. package/dist/harmony72.cjs +20 -15
  539. package/dist/harmony72.cjs.map +1 -1
  540. package/dist/harmony72.mjs +20 -15
  541. package/dist/harmony72.mjs.map +1 -1
  542. package/dist/harmony73.cjs +19 -16
  543. package/dist/harmony73.cjs.map +1 -1
  544. package/dist/harmony73.mjs +19 -16
  545. package/dist/harmony73.mjs.map +1 -1
  546. package/dist/harmony74.cjs +8 -15
  547. package/dist/harmony74.cjs.map +1 -1
  548. package/dist/harmony74.mjs +8 -15
  549. package/dist/harmony74.mjs.map +1 -1
  550. package/dist/harmony75.cjs +9 -16
  551. package/dist/harmony75.cjs.map +1 -1
  552. package/dist/harmony75.mjs +9 -16
  553. package/dist/harmony75.mjs.map +1 -1
  554. package/dist/harmony76.cjs +9 -14
  555. package/dist/harmony76.cjs.map +1 -1
  556. package/dist/harmony76.mjs +9 -14
  557. package/dist/harmony76.mjs.map +1 -1
  558. package/dist/harmony77.cjs +9 -14
  559. package/dist/harmony77.cjs.map +1 -1
  560. package/dist/harmony77.mjs +9 -14
  561. package/dist/harmony77.mjs.map +1 -1
  562. package/dist/harmony78.cjs +15 -124
  563. package/dist/harmony78.cjs.map +1 -1
  564. package/dist/harmony78.mjs +15 -124
  565. package/dist/harmony78.mjs.map +1 -1
  566. package/dist/harmony79.cjs +10 -82
  567. package/dist/harmony79.cjs.map +1 -1
  568. package/dist/harmony79.mjs +10 -82
  569. package/dist/harmony79.mjs.map +1 -1
  570. package/dist/harmony80.cjs +13 -6
  571. package/dist/harmony80.cjs.map +1 -1
  572. package/dist/harmony80.mjs +13 -6
  573. package/dist/harmony80.mjs.map +1 -1
  574. package/dist/harmony81.cjs +10 -28
  575. package/dist/harmony81.cjs.map +1 -1
  576. package/dist/harmony81.mjs +10 -28
  577. package/dist/harmony81.mjs.map +1 -1
  578. package/dist/harmony82.cjs +14 -24
  579. package/dist/harmony82.cjs.map +1 -1
  580. package/dist/harmony82.mjs +14 -24
  581. package/dist/harmony82.mjs.map +1 -1
  582. package/dist/harmony83.cjs +8 -141
  583. package/dist/harmony83.cjs.map +1 -1
  584. package/dist/harmony83.mjs +8 -141
  585. package/dist/harmony83.mjs.map +1 -1
  586. package/dist/harmony84.cjs +11 -37
  587. package/dist/harmony84.cjs.map +1 -1
  588. package/dist/harmony84.mjs +11 -37
  589. package/dist/harmony84.mjs.map +1 -1
  590. package/dist/harmony85.cjs +11 -26
  591. package/dist/harmony85.cjs.map +1 -1
  592. package/dist/harmony85.mjs +11 -26
  593. package/dist/harmony85.mjs.map +1 -1
  594. package/dist/harmony86.cjs +9 -4
  595. package/dist/harmony86.cjs.map +1 -1
  596. package/dist/harmony86.mjs +9 -4
  597. package/dist/harmony86.mjs.map +1 -1
  598. package/dist/harmony87.cjs +9 -84
  599. package/dist/harmony87.cjs.map +1 -1
  600. package/dist/harmony87.mjs +9 -84
  601. package/dist/harmony87.mjs.map +1 -1
  602. package/dist/harmony88.cjs +9 -58
  603. package/dist/harmony88.cjs.map +1 -1
  604. package/dist/harmony88.mjs +9 -58
  605. package/dist/harmony88.mjs.map +1 -1
  606. package/dist/harmony89.cjs +88 -18
  607. package/dist/harmony89.cjs.map +1 -1
  608. package/dist/harmony89.mjs +88 -18
  609. package/dist/harmony89.mjs.map +1 -1
  610. package/dist/harmony96.cjs +2 -2
  611. package/dist/harmony96.mjs +2 -2
  612. package/dist/harmony98.cjs +2 -2
  613. package/dist/harmony98.mjs +2 -2
  614. package/dist/harmony99.cjs +4 -4
  615. package/dist/harmony99.mjs +4 -4
  616. package/dist/types/src/features/permissions/components/ProjectActionResolverContextProvider.d.ts +2 -2
  617. package/dist/types/src/features/permissions/context/ActionsContext.d.ts +2 -2
  618. package/dist/types/src/features/permissions/types.d.ts +3 -1
  619. package/package.json +1 -1
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const has = require("./harmony130.cjs");
4
- const manageContributors = ({ projectPermissions }) => has.has(projectPermissions, "contributors");
5
- exports.manageContributors = manageContributors;
3
+ var isObject_1;
4
+ var hasRequiredIsObject;
5
+ function requireIsObject() {
6
+ if (hasRequiredIsObject) return isObject_1;
7
+ hasRequiredIsObject = 1;
8
+ function isObject(value) {
9
+ var type = typeof value;
10
+ return value != null && (type == "object" || type == "function");
11
+ }
12
+ isObject_1 = isObject;
13
+ return isObject_1;
14
+ }
15
+ exports.__require = requireIsObject;
6
16
  //# sourceMappingURL=harmony155.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony155.cjs","sources":["../src/features/permissions/action-resolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types'\nimport { has } from '../utils/has'\n\nexport const manageContributors: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'contributors')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,qBAAqC,CAAC,EAAE,mBACpD,MAAAA,IAAA,IAAI,oBAAoB,cAAc;;"}
1
+ {"version":3,"file":"harmony155.cjs","sources":["../node_modules/lodash/isObject.js"],"sourcesContent":["/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n"],"names":[],"mappings":";;;;;;;AAyBA,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,OAAO;AAClB,WAAO,SAAS,SAAS,QAAQ,YAAY,QAAQ;AAAA,EACvD;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,16 @@
1
- import { has } from "./harmony130.mjs";
2
- const manageContributors = ({ projectPermissions }) => has(projectPermissions, "contributors");
1
+ var isObject_1;
2
+ var hasRequiredIsObject;
3
+ function requireIsObject() {
4
+ if (hasRequiredIsObject) return isObject_1;
5
+ hasRequiredIsObject = 1;
6
+ function isObject(value) {
7
+ var type = typeof value;
8
+ return value != null && (type == "object" || type == "function");
9
+ }
10
+ isObject_1 = isObject;
11
+ return isObject_1;
12
+ }
3
13
  export {
4
- manageContributors
14
+ requireIsObject as __require
5
15
  };
6
16
  //# sourceMappingURL=harmony155.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony155.mjs","sources":["../src/features/permissions/action-resolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types'\nimport { has } from '../utils/has'\n\nexport const manageContributors: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'contributors')\n"],"names":[],"mappings":";AAGO,MAAM,qBAAqC,CAAC,EAAE,mBACpD,MAAA,IAAI,oBAAoB,cAAc;"}
1
+ {"version":3,"file":"harmony155.mjs","sources":["../node_modules/lodash/isObject.js"],"sourcesContent":["/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n"],"names":[],"mappings":";;;;;AAyBA,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,OAAO;AAClB,WAAO,SAAS,SAAS,QAAQ,YAAY,QAAQ;AAAA,EACvD;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const canPerformActionByProjectType = require("./harmony173.cjs");
4
- const hasAny = require("./harmony129.cjs");
5
- const has = require("./harmony130.cjs");
6
- const canDownloadFiles = ({ projectType, projectPermissions }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
7
- classic: () => has.has(projectPermissions, "download"),
8
- // This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
9
- // so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.
10
- // The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively
11
- // simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).
12
- // The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,
13
- // but will need to remove this first part of the check.
14
- marketing: () => hasAny.hasAny(projectPermissions, "contributors", "settings", "manage_languages") || has.has(projectPermissions, "download")
15
- });
16
- exports.canDownloadFiles = canDownloadFiles;
3
+ const _root = require("./harmony166.cjs");
4
+ var now_1;
5
+ var hasRequiredNow;
6
+ function requireNow() {
7
+ if (hasRequiredNow) return now_1;
8
+ hasRequiredNow = 1;
9
+ var root = _root.__require();
10
+ var now = function() {
11
+ return root.Date.now();
12
+ };
13
+ now_1 = now;
14
+ return now_1;
15
+ }
16
+ exports.__require = requireNow;
17
17
  //# sourceMappingURL=harmony156.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony156.cjs","sources":["../src/features/permissions/action-resolvers/canDownloadFiles.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport { hasAny } from '@features/permissions/utils/hasAny'\nimport type { ActionResolver } from '../types'\nimport { has } from '../utils/has'\n\nexport const canDownloadFiles: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, 'download'),\n\n\t\t// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported\n\t\t// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.\n\t\t// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively\n\t\t// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).\n\t\t// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,\n\t\t// but will need to remove this first part of the check.\n\t\tmarketing: () =>\n\t\t\thasAny(projectPermissions, 'contributors', 'settings', 'manage_languages') ||\n\t\t\thas(projectPermissions, 'download'),\n\t})\n"],"names":["canPerformActionByProjectType","has","hasAny"],"mappings":";;;;;AAKO,MAAM,mBAAmC,CAAC,EAAE,aAAa,mBAAmB,MAClFA,8BAAAA,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAMC,IAAAA,IAAI,oBAAoB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjD,WAAW,MACVC,cAAO,oBAAoB,gBAAgB,YAAY,kBAAkB,KACzED,QAAI,oBAAoB,UAAU;AACpC,CAAC;;"}
1
+ {"version":3,"file":"harmony156.cjs","sources":["../node_modules/lodash/now.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,OAAOA,MAAAA,UAAkB;AAkB7B,MAAI,MAAM,WAAW;AACnB,WAAO,KAAK,KAAK,IAAK;AAAA,EACvB;AAED,UAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,17 @@
1
- import { canPerformActionByProjectType } from "./harmony173.mjs";
2
- import { hasAny } from "./harmony129.mjs";
3
- import { has } from "./harmony130.mjs";
4
- const canDownloadFiles = ({ projectType, projectPermissions }) => canPerformActionByProjectType(projectType, {
5
- classic: () => has(projectPermissions, "download"),
6
- // This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
7
- // so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.
8
- // The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively
9
- // simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).
10
- // The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,
11
- // but will need to remove this first part of the check.
12
- marketing: () => hasAny(projectPermissions, "contributors", "settings", "manage_languages") || has(projectPermissions, "download")
13
- });
1
+ import { __require as require_root } from "./harmony166.mjs";
2
+ var now_1;
3
+ var hasRequiredNow;
4
+ function requireNow() {
5
+ if (hasRequiredNow) return now_1;
6
+ hasRequiredNow = 1;
7
+ var root = require_root();
8
+ var now = function() {
9
+ return root.Date.now();
10
+ };
11
+ now_1 = now;
12
+ return now_1;
13
+ }
14
14
  export {
15
- canDownloadFiles
15
+ requireNow as __require
16
16
  };
17
17
  //# sourceMappingURL=harmony156.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony156.mjs","sources":["../src/features/permissions/action-resolvers/canDownloadFiles.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport { hasAny } from '@features/permissions/utils/hasAny'\nimport type { ActionResolver } from '../types'\nimport { has } from '../utils/has'\n\nexport const canDownloadFiles: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, 'download'),\n\n\t\t// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported\n\t\t// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.\n\t\t// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively\n\t\t// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).\n\t\t// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,\n\t\t// but will need to remove this first part of the check.\n\t\tmarketing: () =>\n\t\t\thasAny(projectPermissions, 'contributors', 'settings', 'manage_languages') ||\n\t\t\thas(projectPermissions, 'download'),\n\t})\n"],"names":[],"mappings":";;;AAKO,MAAM,mBAAmC,CAAC,EAAE,aAAa,mBAAmB,MAClF,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAM,IAAI,oBAAoB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjD,WAAW,MACV,OAAO,oBAAoB,gBAAgB,YAAY,kBAAkB,KACzE,IAAI,oBAAoB,UAAU;AACpC,CAAC;"}
1
+ {"version":3,"file":"harmony156.mjs","sources":["../node_modules/lodash/now.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,OAAOA,aAAkB;AAkB7B,MAAI,MAAM,WAAW;AACnB,WAAO,KAAK,KAAK,IAAK;AAAA,EACvB;AAED,UAAiB;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,39 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const canPerformActionByProjectType = require("./harmony173.cjs");
4
- const hasAny = require("./harmony129.cjs");
5
- const has = require("./harmony130.cjs");
6
- const canUploadFiles = ({ projectPermissions, projectType }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
7
- classic: () => has.has(projectPermissions, "upload"),
8
- // This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
9
- // so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.
10
- // The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively
11
- // simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).
12
- // The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,
13
- // but will need to remove this first part of the check.
14
- marketing: () => hasAny.hasAny(projectPermissions, "contributors", "settings", "manage_languages") || has.has(projectPermissions, "upload")
15
- });
16
- exports.canUploadFiles = canUploadFiles;
3
+ const _baseTrim = require("./harmony167.cjs");
4
+ const isObject = require("./harmony155.cjs");
5
+ const isSymbol = require("./harmony168.cjs");
6
+ var toNumber_1;
7
+ var hasRequiredToNumber;
8
+ function requireToNumber() {
9
+ if (hasRequiredToNumber) return toNumber_1;
10
+ hasRequiredToNumber = 1;
11
+ var baseTrim = _baseTrim.__require(), isObject$1 = isObject.__require(), isSymbol$1 = isSymbol.__require();
12
+ var NAN = 0 / 0;
13
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
14
+ var reIsBinary = /^0b[01]+$/i;
15
+ var reIsOctal = /^0o[0-7]+$/i;
16
+ var freeParseInt = parseInt;
17
+ function toNumber(value) {
18
+ if (typeof value == "number") {
19
+ return value;
20
+ }
21
+ if (isSymbol$1(value)) {
22
+ return NAN;
23
+ }
24
+ if (isObject$1(value)) {
25
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
26
+ value = isObject$1(other) ? other + "" : other;
27
+ }
28
+ if (typeof value != "string") {
29
+ return value === 0 ? value : +value;
30
+ }
31
+ value = baseTrim(value);
32
+ var isBinary = reIsBinary.test(value);
33
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
34
+ }
35
+ toNumber_1 = toNumber;
36
+ return toNumber_1;
37
+ }
38
+ exports.__require = requireToNumber;
17
39
  //# sourceMappingURL=harmony157.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony157.cjs","sources":["../src/features/permissions/action-resolvers/canUploadFiles.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport { hasAny } from '@features/permissions/utils/hasAny'\nimport type { ActionResolver } from '../types'\nimport { has } from '../utils/has'\n\nexport const canUploadFiles: ActionResolver = ({ projectPermissions, projectType }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, 'upload'),\n\n\t\t// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported\n\t\t// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.\n\t\t// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively\n\t\t// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).\n\t\t// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,\n\t\t// but will need to remove this first part of the check.\n\t\tmarketing: () =>\n\t\t\thasAny(projectPermissions, 'contributors', 'settings', 'manage_languages') ||\n\t\t\thas(projectPermissions, 'upload'),\n\t})\n"],"names":["canPerformActionByProjectType","has","hasAny"],"mappings":";;;;;AAKO,MAAM,iBAAiC,CAAC,EAAE,oBAAoB,YAAY,MAChFA,8BAAAA,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAMC,IAAAA,IAAI,oBAAoB,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ/C,WAAW,MACVC,cAAO,oBAAoB,gBAAgB,YAAY,kBAAkB,KACzED,QAAI,oBAAoB,QAAQ;AAClC,CAAC;;"}
1
+ {"version":3,"file":"harmony157.cjs","sources":["../node_modules/lodash/toNumber.js"],"sourcesContent":["var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["require$$0","isObject","require$$1","isSymbol","require$$2"],"mappings":";;;;;;;;;;AAAA,MAAI,WAAWA,UAAAA,UAAsB,GACjCC,aAAWC,SAAAA,UAAqB,GAChCC,aAAWC,SAAAA,UAAqB;AAGpC,MAAI,MAAM,IAAI;AAGd,MAAI,aAAa;AAGjB,MAAI,aAAa;AAGjB,MAAI,YAAY;AAGhB,MAAI,eAAe;AAyBnB,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO;AAAA,IACX;AACE,QAAID,WAAS,KAAK,GAAG;AACnB,aAAO;AAAA,IACX;AACE,QAAIF,WAAS,KAAK,GAAG;AACnB,UAAI,QAAQ,OAAO,MAAM,WAAW,aAAa,MAAM,QAAO,IAAK;AACnE,cAAQA,WAAS,KAAK,IAAK,QAAQ,KAAM;AAAA,IAC7C;AACE,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO,UAAU,IAAI,QAAQ,CAAC;AAAA,IAClC;AACE,YAAQ,SAAS,KAAK;AACtB,QAAI,WAAW,WAAW,KAAK,KAAK;AACpC,WAAQ,YAAY,UAAU,KAAK,KAAK,IACpC,aAAa,MAAM,MAAM,CAAC,GAAG,WAAW,IAAI,CAAC,IAC5C,WAAW,KAAK,KAAK,IAAI,MAAM,CAAC;AAAA,EACvC;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,17 +1,39 @@
1
- import { canPerformActionByProjectType } from "./harmony173.mjs";
2
- import { hasAny } from "./harmony129.mjs";
3
- import { has } from "./harmony130.mjs";
4
- const canUploadFiles = ({ projectPermissions, projectType }) => canPerformActionByProjectType(projectType, {
5
- classic: () => has(projectPermissions, "upload"),
6
- // This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported
7
- // so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.
8
- // The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively
9
- // simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).
10
- // The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,
11
- // but will need to remove this first part of the check.
12
- marketing: () => hasAny(projectPermissions, "contributors", "settings", "manage_languages") || has(projectPermissions, "upload")
13
- });
1
+ import { __require as require_baseTrim } from "./harmony167.mjs";
2
+ import { __require as requireIsObject } from "./harmony155.mjs";
3
+ import { __require as requireIsSymbol } from "./harmony168.mjs";
4
+ var toNumber_1;
5
+ var hasRequiredToNumber;
6
+ function requireToNumber() {
7
+ if (hasRequiredToNumber) return toNumber_1;
8
+ hasRequiredToNumber = 1;
9
+ var baseTrim = require_baseTrim(), isObject = requireIsObject(), isSymbol = requireIsSymbol();
10
+ var NAN = 0 / 0;
11
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
12
+ var reIsBinary = /^0b[01]+$/i;
13
+ var reIsOctal = /^0o[0-7]+$/i;
14
+ var freeParseInt = parseInt;
15
+ function toNumber(value) {
16
+ if (typeof value == "number") {
17
+ return value;
18
+ }
19
+ if (isSymbol(value)) {
20
+ return NAN;
21
+ }
22
+ if (isObject(value)) {
23
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
24
+ value = isObject(other) ? other + "" : other;
25
+ }
26
+ if (typeof value != "string") {
27
+ return value === 0 ? value : +value;
28
+ }
29
+ value = baseTrim(value);
30
+ var isBinary = reIsBinary.test(value);
31
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
32
+ }
33
+ toNumber_1 = toNumber;
34
+ return toNumber_1;
35
+ }
14
36
  export {
15
- canUploadFiles
37
+ requireToNumber as __require
16
38
  };
17
39
  //# sourceMappingURL=harmony157.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony157.mjs","sources":["../src/features/permissions/action-resolvers/canUploadFiles.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport { hasAny } from '@features/permissions/utils/hasAny'\nimport type { ActionResolver } from '../types'\nimport { has } from '../utils/has'\n\nexport const canUploadFiles: ActionResolver = ({ projectPermissions, projectType }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, 'upload'),\n\n\t\t// This is a temporary workaround for the marketing project type - upload and download permissions are not yet supported\n\t\t// so to restrict translators from accessing the upload/download page we are checking that they have any permissions at all.\n\t\t// The reason for this is that, at the moment, the Translators role will assign no permissions to the user. So we are effectively\n\t\t// simulating a check for 'is this user a translator?' (since project 'roles' don't actually exist).\n\t\t// The correct check is to check for upload permission, so when that is implemented this will continue to work as expected,\n\t\t// but will need to remove this first part of the check.\n\t\tmarketing: () =>\n\t\t\thasAny(projectPermissions, 'contributors', 'settings', 'manage_languages') ||\n\t\t\thas(projectPermissions, 'upload'),\n\t})\n"],"names":[],"mappings":";;;AAKO,MAAM,iBAAiC,CAAC,EAAE,oBAAoB,YAAY,MAChF,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAM,IAAI,oBAAoB,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ/C,WAAW,MACV,OAAO,oBAAoB,gBAAgB,YAAY,kBAAkB,KACzE,IAAI,oBAAoB,QAAQ;AAClC,CAAC;"}
1
+ {"version":3,"file":"harmony157.mjs","sources":["../node_modules/lodash/toNumber.js"],"sourcesContent":["var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;AAAA,MAAI,WAAWA,iBAAsB,GACjC,WAAWC,gBAAqB,GAChC,WAAWC,gBAAqB;AAGpC,MAAI,MAAM,IAAI;AAGd,MAAI,aAAa;AAGjB,MAAI,aAAa;AAGjB,MAAI,YAAY;AAGhB,MAAI,eAAe;AAyBnB,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO;AAAA,IACX;AACE,QAAI,SAAS,KAAK,GAAG;AACnB,aAAO;AAAA,IACX;AACE,QAAI,SAAS,KAAK,GAAG;AACnB,UAAI,QAAQ,OAAO,MAAM,WAAW,aAAa,MAAM,QAAO,IAAK;AACnE,cAAQ,SAAS,KAAK,IAAK,QAAQ,KAAM;AAAA,IAC7C;AACE,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO,UAAU,IAAI,QAAQ,CAAC;AAAA,IAClC;AACE,YAAQ,SAAS,KAAK;AACtB,QAAI,WAAW,WAAW,KAAK,KAAK;AACpC,WAAQ,YAAY,UAAU,KAAK,KAAK,IACpC,aAAa,MAAM,MAAM,CAAC,GAAG,WAAW,IAAI,CAAC,IAC5C,WAAW,KAAK,KAAK,IAAI,MAAM,CAAC;AAAA,EACvC;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const hasAny = require("./harmony129.cjs");
4
- const createProjects = ({ teamRole }) => hasAny.hasAny(teamRole, "owner", "biller", "admin");
5
- exports.createProjects = createProjects;
3
+ const debounce = require("./harmony154.cjs");
4
+ const isObject = require("./harmony155.cjs");
5
+ var throttle_1;
6
+ var hasRequiredThrottle;
7
+ function requireThrottle() {
8
+ if (hasRequiredThrottle) return throttle_1;
9
+ hasRequiredThrottle = 1;
10
+ var debounce$1 = debounce.__require(), isObject$1 = isObject.__require();
11
+ var FUNC_ERROR_TEXT = "Expected a function";
12
+ function throttle(func, wait, options) {
13
+ var leading = true, trailing = true;
14
+ if (typeof func != "function") {
15
+ throw new TypeError(FUNC_ERROR_TEXT);
16
+ }
17
+ if (isObject$1(options)) {
18
+ leading = "leading" in options ? !!options.leading : leading;
19
+ trailing = "trailing" in options ? !!options.trailing : trailing;
20
+ }
21
+ return debounce$1(func, wait, {
22
+ "leading": leading,
23
+ "maxWait": wait,
24
+ "trailing": trailing
25
+ });
26
+ }
27
+ throttle_1 = throttle;
28
+ return throttle_1;
29
+ }
30
+ exports.__require = requireThrottle;
6
31
  //# sourceMappingURL=harmony158.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony158.cjs","sources":["../src/features/permissions/action-resolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '@features/permissions/utils/hasAny'\nimport type { ActionResolver } from '../types'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":["hasAny"],"mappings":";;;AAGa,MAAA,iBAAiC,CAAC,EAAE,eAChDA,OAAO,OAAA,UAAU,SAAS,UAAU,OAAO;;"}
1
+ {"version":3,"file":"harmony158.cjs","sources":["../node_modules/lodash/throttle.js"],"sourcesContent":["var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["debounce","require$$0","isObject","require$$1"],"mappings":";;;;;;;;;AAAA,MAAIA,aAAWC,SAAAA,UAAqB,GAChCC,aAAWC,SAAAA,UAAqB;AAGpC,MAAI,kBAAkB;AA8CtB,WAAS,SAAS,MAAM,MAAM,SAAS;AACrC,QAAI,UAAU,MACV,WAAW;AAEf,QAAI,OAAO,QAAQ,YAAY;AAC7B,YAAM,IAAI,UAAU,eAAe;AAAA,IACvC;AACE,QAAID,WAAS,OAAO,GAAG;AACrB,gBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,iBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,IAC5D;AACE,WAAOF,WAAS,MAAM,MAAM;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,MACX,YAAY;AAAA,IAChB,CAAG;AAAA,EACH;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,6 +1,31 @@
1
- import { hasAny } from "./harmony129.mjs";
2
- const createProjects = ({ teamRole }) => hasAny(teamRole, "owner", "biller", "admin");
1
+ import { __require as requireDebounce } from "./harmony154.mjs";
2
+ import { __require as requireIsObject } from "./harmony155.mjs";
3
+ var throttle_1;
4
+ var hasRequiredThrottle;
5
+ function requireThrottle() {
6
+ if (hasRequiredThrottle) return throttle_1;
7
+ hasRequiredThrottle = 1;
8
+ var debounce = requireDebounce(), isObject = requireIsObject();
9
+ var FUNC_ERROR_TEXT = "Expected a function";
10
+ function throttle(func, wait, options) {
11
+ var leading = true, trailing = true;
12
+ if (typeof func != "function") {
13
+ throw new TypeError(FUNC_ERROR_TEXT);
14
+ }
15
+ if (isObject(options)) {
16
+ leading = "leading" in options ? !!options.leading : leading;
17
+ trailing = "trailing" in options ? !!options.trailing : trailing;
18
+ }
19
+ return debounce(func, wait, {
20
+ "leading": leading,
21
+ "maxWait": wait,
22
+ "trailing": trailing
23
+ });
24
+ }
25
+ throttle_1 = throttle;
26
+ return throttle_1;
27
+ }
3
28
  export {
4
- createProjects
29
+ requireThrottle as __require
5
30
  };
6
31
  //# sourceMappingURL=harmony158.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony158.mjs","sources":["../src/features/permissions/action-resolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '@features/permissions/utils/hasAny'\nimport type { ActionResolver } from '../types'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":[],"mappings":";AAGa,MAAA,iBAAiC,CAAC,EAAE,eAChD,OAAO,UAAU,SAAS,UAAU,OAAO;"}
1
+ {"version":3,"file":"harmony158.mjs","sources":["../node_modules/lodash/throttle.js"],"sourcesContent":["var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,WAAWA,gBAAqB,GAChC,WAAWC,gBAAqB;AAGpC,MAAI,kBAAkB;AA8CtB,WAAS,SAAS,MAAM,MAAM,SAAS;AACrC,QAAI,UAAU,MACV,WAAW;AAEf,QAAI,OAAO,QAAQ,YAAY;AAC7B,YAAM,IAAI,UAAU,eAAe;AAAA,IACvC;AACE,QAAI,SAAS,OAAO,GAAG;AACrB,gBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,iBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,IAC5D;AACE,WAAO,SAAS,MAAM,MAAM;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,MACX,YAAY;AAAA,IAChB,CAAG;AAAA,EACH;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
@@ -1,16 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const _freeGlobal = require("./harmony172.cjs");
4
- var _root;
5
- var hasRequired_root;
6
- function require_root() {
7
- if (hasRequired_root) return _root;
8
- hasRequired_root = 1;
9
- var freeGlobal = _freeGlobal.__require();
10
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
11
- var root = freeGlobal || freeSelf || Function("return this")();
12
- _root = root;
13
- return _root;
14
- }
15
- exports.__require = require_root;
3
+ const hasAdminRight = (adminRights, right) => {
4
+ if (!Array.isArray(adminRights)) return false;
5
+ return adminRights.includes(right);
6
+ };
7
+ const hasAnyAdminRight = (adminRights, rights) => {
8
+ if (!Array.isArray(adminRights)) return false;
9
+ return rights.some((right) => adminRights.includes(right));
10
+ };
11
+ exports.hasAdminRight = hasAdminRight;
12
+ exports.hasAnyAdminRight = hasAnyAdminRight;
16
13
  //# sourceMappingURL=harmony159.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony159.cjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"harmony159.cjs","sources":["../src/features/auth/utils/permissions.ts"],"sourcesContent":["// Helper function to check if user has a specific admin right\nexport const hasAdminRight = (adminRights: string[], right: string): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn adminRights.includes(right)\n}\n\n// Helper function to check if user has any of the specified admin rights\nexport const hasAnyAdminRight = (adminRights: string[], rights: string[]): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn rights.some((right) => adminRights.includes(right))\n}\n"],"names":[],"mappings":";;AACa,MAAA,gBAAgB,CAAC,aAAuB,UAA2B;AAC/E,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACjC,SAAA,YAAY,SAAS,KAAK;AAClC;AAGa,MAAA,mBAAmB,CAAC,aAAuB,WAA8B;AACrF,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACxC,SAAO,OAAO,KAAK,CAAC,UAAU,YAAY,SAAS,KAAK,CAAC;AAC1D;;;"}
@@ -1,16 +1,13 @@
1
- import { __require as require_freeGlobal } from "./harmony172.mjs";
2
- var _root;
3
- var hasRequired_root;
4
- function require_root() {
5
- if (hasRequired_root) return _root;
6
- hasRequired_root = 1;
7
- var freeGlobal = require_freeGlobal();
8
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
9
- var root = freeGlobal || freeSelf || Function("return this")();
10
- _root = root;
11
- return _root;
12
- }
1
+ const hasAdminRight = (adminRights, right) => {
2
+ if (!Array.isArray(adminRights)) return false;
3
+ return adminRights.includes(right);
4
+ };
5
+ const hasAnyAdminRight = (adminRights, rights) => {
6
+ if (!Array.isArray(adminRights)) return false;
7
+ return rights.some((right) => adminRights.includes(right));
8
+ };
13
9
  export {
14
- require_root as __require
10
+ hasAdminRight,
11
+ hasAnyAdminRight
15
12
  };
16
13
  //# sourceMappingURL=harmony159.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony159.mjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,aAAaA,mBAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"harmony159.mjs","sources":["../src/features/auth/utils/permissions.ts"],"sourcesContent":["// Helper function to check if user has a specific admin right\nexport const hasAdminRight = (adminRights: string[], right: string): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn adminRights.includes(right)\n}\n\n// Helper function to check if user has any of the specified admin rights\nexport const hasAnyAdminRight = (adminRights: string[], rights: string[]): boolean => {\n\tif (!Array.isArray(adminRights)) return false\n\treturn rights.some((right) => adminRights.includes(right))\n}\n"],"names":[],"mappings":"AACa,MAAA,gBAAgB,CAAC,aAAuB,UAA2B;AAC/E,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACjC,SAAA,YAAY,SAAS,KAAK;AAClC;AAGa,MAAA,mBAAmB,CAAC,aAAuB,WAA8B;AACrF,MAAI,CAAC,MAAM,QAAQ,WAAW,EAAU,QAAA;AACxC,SAAO,OAAO,KAAK,CAAC,UAAU,YAAY,SAAS,KAAK,CAAC;AAC1D;"}
@@ -1,18 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const React = require("react");
5
- const NavigationClientContext = React.createContext(void 0);
6
- const NavigationClientProvider = ({ client, children }) => {
7
- return /* @__PURE__ */ jsxRuntime.jsx(NavigationClientContext.Provider, { value: client, children });
8
- };
9
- const useNavigationClient = () => {
10
- const context = React.useContext(NavigationClientContext);
11
- if (context === void 0) {
12
- throw new Error("useNavigationClient must be used within a NavigationClientProvider");
13
- }
14
- return context;
15
- };
16
- exports.NavigationClientProvider = NavigationClientProvider;
17
- exports.useNavigationClient = useNavigationClient;
3
+ const teamTypes = require("./harmony52.cjs");
4
+ const apiContracts = require("@lokalise/api-contracts");
5
+ const listTeams = apiContracts.buildGetRoute({
6
+ description: "List all teams available for the user",
7
+ requestHeaderSchema: teamTypes.TEAM_API_BASE_HEADERS_SCHEMA,
8
+ requestQuerySchema: teamTypes.LIST_TEAMS_QUERY_SCHEMA,
9
+ pathResolver: () => "/teams",
10
+ successResponseBodySchema: teamTypes.LIST_TEAMS_RESPONSE_SCHEMA
11
+ });
12
+ const retrieveTeam = apiContracts.buildGetRoute({
13
+ description: "Retrieve a team by ID",
14
+ requestHeaderSchema: teamTypes.TEAM_API_BASE_HEADERS_SCHEMA,
15
+ requestPathParamsSchema: teamTypes.RETRIEVE_TEAM_PATH_PARAMS_SCHEMA,
16
+ pathResolver: ({ teamId }) => `/teams/${teamId}`,
17
+ successResponseBodySchema: teamTypes.RETRIEVE_TEAM_RESPONSE_SCHEMA
18
+ });
19
+ exports.listTeams = listTeams;
20
+ exports.retrieveTeam = retrieveTeam;
18
21
  //# sourceMappingURL=harmony16.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony16.cjs","sources":["../src/features/navigation/providers/NavigationClientProvider.tsx"],"sourcesContent":["import { type ReactNode, createContext, useContext } from 'react'\nimport type { NavigationClient } from '../core/NavigationClient'\n\ninterface NavigationClientProviderProps {\n\tclient: NavigationClient\n\tchildren: ReactNode\n}\n\nconst NavigationClientContext = createContext<NavigationClient | undefined>(undefined)\n\nexport const NavigationClientProvider = ({ client, children }: NavigationClientProviderProps) => {\n\treturn (\n\t\t<NavigationClientContext.Provider value={client}>{children}</NavigationClientContext.Provider>\n\t)\n}\n\nexport const useNavigationClient = (): NavigationClient => {\n\tconst context = useContext(NavigationClientContext)\n\tif (context === undefined) {\n\t\tthrow new Error('useNavigationClient must be used within a NavigationClientProvider')\n\t}\n\treturn context\n}\n"],"names":["createContext","useContext"],"mappings":";;;;AAQA,MAAM,0BAA0BA,oBAA4C,MAAS;AAE9E,MAAM,2BAA2B,CAAC,EAAE,QAAQ,eAA8C;AAChG,wCACE,wBAAwB,UAAxB,EAAiC,OAAO,QAAS,UAAS;AAE7D;AAEO,MAAM,sBAAsB,MAAwB;AACpD,QAAA,UAAUC,iBAAW,uBAAuB;AAClD,MAAI,YAAY,QAAW;AACpB,UAAA,IAAI,MAAM,oEAAoE;AAAA,EAAA;AAE9E,SAAA;AACR;;;"}
1
+ {"version":3,"file":"harmony16.cjs","sources":["../src/features/publicApi/team.ts"],"sourcesContent":["import {\n\tLIST_TEAMS_QUERY_SCHEMA,\n\tLIST_TEAMS_RESPONSE_SCHEMA,\n\tRETRIEVE_TEAM_PATH_PARAMS_SCHEMA,\n\tRETRIEVE_TEAM_RESPONSE_SCHEMA,\n\tTEAM_API_BASE_HEADERS_SCHEMA,\n} from '@features/publicApi/types/teamTypes'\nimport { buildGetRoute } from '@lokalise/api-contracts'\n\nexport const listTeams = buildGetRoute({\n\tdescription: 'List all teams available for the user',\n\n\trequestHeaderSchema: TEAM_API_BASE_HEADERS_SCHEMA,\n\n\trequestQuerySchema: LIST_TEAMS_QUERY_SCHEMA,\n\tpathResolver: () => '/teams',\n\n\tsuccessResponseBodySchema: LIST_TEAMS_RESPONSE_SCHEMA,\n})\n\nexport const retrieveTeam = buildGetRoute({\n\tdescription: 'Retrieve a team by ID',\n\n\trequestHeaderSchema: TEAM_API_BASE_HEADERS_SCHEMA,\n\n\trequestPathParamsSchema: RETRIEVE_TEAM_PATH_PARAMS_SCHEMA,\n\tpathResolver: ({ teamId }) => `/teams/${teamId}`,\n\n\tsuccessResponseBodySchema: RETRIEVE_TEAM_RESPONSE_SCHEMA,\n})\n"],"names":["buildGetRoute","TEAM_API_BASE_HEADERS_SCHEMA","LIST_TEAMS_QUERY_SCHEMA","LIST_TEAMS_RESPONSE_SCHEMA","RETRIEVE_TEAM_PATH_PARAMS_SCHEMA","RETRIEVE_TEAM_RESPONSE_SCHEMA"],"mappings":";;;;AASO,MAAM,YAAYA,aAAAA,cAAc;AAAA,EACtC,aAAa;AAAA,EAEb,qBAAqBC,UAAA;AAAA,EAErB,oBAAoBC,UAAA;AAAA,EACpB,cAAc,MAAM;AAAA,EAEpB,2BAA2BC,UAAAA;AAC5B,CAAC;AAEM,MAAM,eAAeH,aAAAA,cAAc;AAAA,EACzC,aAAa;AAAA,EAEb,qBAAqBC,UAAA;AAAA,EAErB,yBAAyBG,UAAA;AAAA,EACzB,cAAc,CAAC,EAAE,OAAO,MAAM,UAAU,MAAM;AAAA,EAE9C,2BAA2BC,UAAAA;AAC5B,CAAC;;;"}
@@ -1,18 +1,21 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useContext, createContext } from "react";
3
- const NavigationClientContext = createContext(void 0);
4
- const NavigationClientProvider = ({ client, children }) => {
5
- return /* @__PURE__ */ jsx(NavigationClientContext.Provider, { value: client, children });
6
- };
7
- const useNavigationClient = () => {
8
- const context = useContext(NavigationClientContext);
9
- if (context === void 0) {
10
- throw new Error("useNavigationClient must be used within a NavigationClientProvider");
11
- }
12
- return context;
13
- };
1
+ import { LIST_TEAMS_RESPONSE_SCHEMA, LIST_TEAMS_QUERY_SCHEMA, TEAM_API_BASE_HEADERS_SCHEMA, RETRIEVE_TEAM_RESPONSE_SCHEMA, RETRIEVE_TEAM_PATH_PARAMS_SCHEMA } from "./harmony52.mjs";
2
+ import { buildGetRoute } from "@lokalise/api-contracts";
3
+ const listTeams = buildGetRoute({
4
+ description: "List all teams available for the user",
5
+ requestHeaderSchema: TEAM_API_BASE_HEADERS_SCHEMA,
6
+ requestQuerySchema: LIST_TEAMS_QUERY_SCHEMA,
7
+ pathResolver: () => "/teams",
8
+ successResponseBodySchema: LIST_TEAMS_RESPONSE_SCHEMA
9
+ });
10
+ const retrieveTeam = buildGetRoute({
11
+ description: "Retrieve a team by ID",
12
+ requestHeaderSchema: TEAM_API_BASE_HEADERS_SCHEMA,
13
+ requestPathParamsSchema: RETRIEVE_TEAM_PATH_PARAMS_SCHEMA,
14
+ pathResolver: ({ teamId }) => `/teams/${teamId}`,
15
+ successResponseBodySchema: RETRIEVE_TEAM_RESPONSE_SCHEMA
16
+ });
14
17
  export {
15
- NavigationClientProvider,
16
- useNavigationClient
18
+ listTeams,
19
+ retrieveTeam
17
20
  };
18
21
  //# sourceMappingURL=harmony16.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony16.mjs","sources":["../src/features/navigation/providers/NavigationClientProvider.tsx"],"sourcesContent":["import { type ReactNode, createContext, useContext } from 'react'\nimport type { NavigationClient } from '../core/NavigationClient'\n\ninterface NavigationClientProviderProps {\n\tclient: NavigationClient\n\tchildren: ReactNode\n}\n\nconst NavigationClientContext = createContext<NavigationClient | undefined>(undefined)\n\nexport const NavigationClientProvider = ({ client, children }: NavigationClientProviderProps) => {\n\treturn (\n\t\t<NavigationClientContext.Provider value={client}>{children}</NavigationClientContext.Provider>\n\t)\n}\n\nexport const useNavigationClient = (): NavigationClient => {\n\tconst context = useContext(NavigationClientContext)\n\tif (context === undefined) {\n\t\tthrow new Error('useNavigationClient must be used within a NavigationClientProvider')\n\t}\n\treturn context\n}\n"],"names":[],"mappings":";;AAQA,MAAM,0BAA0B,cAA4C,MAAS;AAE9E,MAAM,2BAA2B,CAAC,EAAE,QAAQ,eAA8C;AAChG,6BACE,wBAAwB,UAAxB,EAAiC,OAAO,QAAS,UAAS;AAE7D;AAEO,MAAM,sBAAsB,MAAwB;AACpD,QAAA,UAAU,WAAW,uBAAuB;AAClD,MAAI,YAAY,QAAW;AACpB,UAAA,IAAI,MAAM,oEAAoE;AAAA,EAAA;AAE9E,SAAA;AACR;"}
1
+ {"version":3,"file":"harmony16.mjs","sources":["../src/features/publicApi/team.ts"],"sourcesContent":["import {\n\tLIST_TEAMS_QUERY_SCHEMA,\n\tLIST_TEAMS_RESPONSE_SCHEMA,\n\tRETRIEVE_TEAM_PATH_PARAMS_SCHEMA,\n\tRETRIEVE_TEAM_RESPONSE_SCHEMA,\n\tTEAM_API_BASE_HEADERS_SCHEMA,\n} from '@features/publicApi/types/teamTypes'\nimport { buildGetRoute } from '@lokalise/api-contracts'\n\nexport const listTeams = buildGetRoute({\n\tdescription: 'List all teams available for the user',\n\n\trequestHeaderSchema: TEAM_API_BASE_HEADERS_SCHEMA,\n\n\trequestQuerySchema: LIST_TEAMS_QUERY_SCHEMA,\n\tpathResolver: () => '/teams',\n\n\tsuccessResponseBodySchema: LIST_TEAMS_RESPONSE_SCHEMA,\n})\n\nexport const retrieveTeam = buildGetRoute({\n\tdescription: 'Retrieve a team by ID',\n\n\trequestHeaderSchema: TEAM_API_BASE_HEADERS_SCHEMA,\n\n\trequestPathParamsSchema: RETRIEVE_TEAM_PATH_PARAMS_SCHEMA,\n\tpathResolver: ({ teamId }) => `/teams/${teamId}`,\n\n\tsuccessResponseBodySchema: RETRIEVE_TEAM_RESPONSE_SCHEMA,\n})\n"],"names":[],"mappings":";;AASO,MAAM,YAAY,cAAc;AAAA,EACtC,aAAa;AAAA,EAEb,qBAAqB;AAAA,EAErB,oBAAoB;AAAA,EACpB,cAAc,MAAM;AAAA,EAEpB,2BAA2B;AAC5B,CAAC;AAEM,MAAM,eAAe,cAAc;AAAA,EACzC,aAAa;AAAA,EAEb,qBAAqB;AAAA,EAErB,yBAAyB;AAAA,EACzB,cAAc,CAAC,EAAE,OAAO,MAAM,UAAU,MAAM;AAAA,EAE9C,2BAA2B;AAC5B,CAAC;"}