@lokalise/harmony 4.7.1 → 4.7.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 (248) hide show
  1. package/dist/harmony107.cjs +2 -2
  2. package/dist/harmony107.mjs +2 -2
  3. package/dist/harmony109.cjs +2 -2
  4. package/dist/harmony109.mjs +2 -2
  5. package/dist/harmony117.cjs +2 -2
  6. package/dist/harmony117.mjs +2 -2
  7. package/dist/harmony119.cjs +166 -11
  8. package/dist/harmony119.cjs.map +1 -1
  9. package/dist/harmony119.mjs +166 -11
  10. package/dist/harmony119.mjs.map +1 -1
  11. package/dist/harmony120.cjs +44 -21
  12. package/dist/harmony120.cjs.map +1 -1
  13. package/dist/harmony120.mjs +43 -20
  14. package/dist/harmony120.mjs.map +1 -1
  15. package/dist/harmony122.cjs +1 -1
  16. package/dist/harmony122.mjs +1 -1
  17. package/dist/harmony123.cjs +12 -12
  18. package/dist/harmony123.mjs +12 -12
  19. package/dist/harmony126.cjs +1 -1
  20. package/dist/harmony126.mjs +1 -1
  21. package/dist/harmony127.cjs +1 -1
  22. package/dist/harmony127.mjs +1 -1
  23. package/dist/harmony129.cjs +11 -165
  24. package/dist/harmony129.cjs.map +1 -1
  25. package/dist/harmony129.mjs +11 -165
  26. package/dist/harmony129.mjs.map +1 -1
  27. package/dist/harmony130.cjs +12 -44
  28. package/dist/harmony130.cjs.map +1 -1
  29. package/dist/harmony130.mjs +11 -43
  30. package/dist/harmony130.mjs.map +1 -1
  31. package/dist/harmony131.cjs +9 -10
  32. package/dist/harmony131.cjs.map +1 -1
  33. package/dist/harmony131.mjs +11 -12
  34. package/dist/harmony131.mjs.map +1 -1
  35. package/dist/harmony132.cjs +20 -11
  36. package/dist/harmony132.cjs.map +1 -1
  37. package/dist/harmony132.mjs +20 -11
  38. package/dist/harmony132.mjs.map +1 -1
  39. package/dist/harmony134.cjs +87 -20
  40. package/dist/harmony134.cjs.map +1 -1
  41. package/dist/harmony134.mjs +87 -20
  42. package/dist/harmony134.mjs.map +1 -1
  43. package/dist/harmony135.cjs +30 -8
  44. package/dist/harmony135.cjs.map +1 -1
  45. package/dist/harmony135.mjs +30 -8
  46. package/dist/harmony135.mjs.map +1 -1
  47. package/dist/harmony136.cjs +49 -8
  48. package/dist/harmony136.cjs.map +1 -1
  49. package/dist/harmony136.mjs +49 -8
  50. package/dist/harmony136.mjs.map +1 -1
  51. package/dist/harmony137.cjs +11 -21
  52. package/dist/harmony137.cjs.map +1 -1
  53. package/dist/harmony137.mjs +11 -21
  54. package/dist/harmony137.mjs.map +1 -1
  55. package/dist/harmony138.cjs +8 -49
  56. package/dist/harmony138.cjs.map +1 -1
  57. package/dist/harmony138.mjs +8 -49
  58. package/dist/harmony138.mjs.map +1 -1
  59. package/dist/harmony139.cjs +8 -11
  60. package/dist/harmony139.cjs.map +1 -1
  61. package/dist/harmony139.mjs +8 -11
  62. package/dist/harmony139.mjs.map +1 -1
  63. package/dist/harmony140.cjs +21 -9
  64. package/dist/harmony140.cjs.map +1 -1
  65. package/dist/harmony140.mjs +20 -8
  66. package/dist/harmony140.mjs.map +1 -1
  67. package/dist/harmony141.cjs +20 -12
  68. package/dist/harmony141.cjs.map +1 -1
  69. package/dist/harmony141.mjs +20 -12
  70. package/dist/harmony141.mjs.map +1 -1
  71. package/dist/harmony142.cjs +9 -15
  72. package/dist/harmony142.cjs.map +1 -1
  73. package/dist/harmony142.mjs +8 -14
  74. package/dist/harmony142.mjs.map +1 -1
  75. package/dist/harmony143.cjs +4 -11
  76. package/dist/harmony143.cjs.map +1 -1
  77. package/dist/harmony143.mjs +7 -14
  78. package/dist/harmony143.mjs.map +1 -1
  79. package/dist/harmony144.cjs +12 -7
  80. package/dist/harmony144.cjs.map +1 -1
  81. package/dist/harmony144.mjs +14 -9
  82. package/dist/harmony144.mjs.map +1 -1
  83. package/dist/harmony145.cjs +11 -18
  84. package/dist/harmony145.cjs.map +1 -1
  85. package/dist/harmony145.mjs +14 -21
  86. package/dist/harmony145.mjs.map +1 -1
  87. package/dist/harmony146.cjs +7 -9
  88. package/dist/harmony146.cjs.map +1 -1
  89. package/dist/harmony146.mjs +9 -11
  90. package/dist/harmony146.mjs.map +1 -1
  91. package/dist/harmony147.cjs +17 -29
  92. package/dist/harmony147.cjs.map +1 -1
  93. package/dist/harmony147.mjs +19 -31
  94. package/dist/harmony147.mjs.map +1 -1
  95. package/dist/harmony148.cjs +4 -4
  96. package/dist/harmony148.cjs.map +1 -1
  97. package/dist/harmony148.mjs +5 -5
  98. package/dist/harmony148.mjs.map +1 -1
  99. package/dist/harmony149.cjs +28 -12
  100. package/dist/harmony149.cjs.map +1 -1
  101. package/dist/harmony149.mjs +29 -13
  102. package/dist/harmony149.mjs.map +1 -1
  103. package/dist/harmony150.cjs +5 -29
  104. package/dist/harmony150.cjs.map +1 -1
  105. package/dist/harmony150.mjs +7 -31
  106. package/dist/harmony150.mjs.map +1 -1
  107. package/dist/harmony151.cjs +22 -21
  108. package/dist/harmony151.cjs.map +1 -1
  109. package/dist/harmony151.mjs +21 -20
  110. package/dist/harmony151.mjs.map +1 -1
  111. package/dist/harmony152.cjs +30 -15
  112. package/dist/harmony152.cjs.map +1 -1
  113. package/dist/harmony152.mjs +32 -17
  114. package/dist/harmony152.mjs.map +1 -1
  115. package/dist/harmony153.cjs +18 -3
  116. package/dist/harmony153.cjs.map +1 -1
  117. package/dist/harmony153.mjs +18 -3
  118. package/dist/harmony153.mjs.map +1 -1
  119. package/dist/harmony154.cjs +21 -15
  120. package/dist/harmony154.cjs.map +1 -1
  121. package/dist/harmony154.mjs +20 -14
  122. package/dist/harmony154.mjs.map +1 -1
  123. package/dist/harmony155.cjs +6 -87
  124. package/dist/harmony155.cjs.map +1 -1
  125. package/dist/harmony155.mjs +5 -86
  126. package/dist/harmony155.mjs.map +1 -1
  127. package/dist/harmony156.cjs +16 -31
  128. package/dist/harmony156.cjs.map +1 -1
  129. package/dist/harmony156.mjs +15 -30
  130. package/dist/harmony156.mjs.map +1 -1
  131. package/dist/harmony157.cjs +2 -2
  132. package/dist/harmony157.mjs +2 -2
  133. package/dist/harmony158.cjs +2 -2
  134. package/dist/harmony158.mjs +2 -2
  135. package/dist/harmony159.cjs +10 -8
  136. package/dist/harmony159.cjs.map +1 -1
  137. package/dist/harmony159.mjs +10 -8
  138. package/dist/harmony159.mjs.map +1 -1
  139. package/dist/harmony160.cjs +8 -2
  140. package/dist/harmony160.cjs.map +1 -1
  141. package/dist/harmony160.mjs +8 -2
  142. package/dist/harmony160.mjs.map +1 -1
  143. package/dist/harmony161.cjs +2 -3
  144. package/dist/harmony161.cjs.map +1 -1
  145. package/dist/harmony161.mjs +2 -3
  146. package/dist/harmony161.mjs.map +1 -1
  147. package/dist/harmony162.cjs +3 -3
  148. package/dist/harmony162.cjs.map +1 -1
  149. package/dist/harmony162.mjs +3 -3
  150. package/dist/harmony162.mjs.map +1 -1
  151. package/dist/harmony163.cjs +3 -3
  152. package/dist/harmony163.cjs.map +1 -1
  153. package/dist/harmony163.mjs +3 -3
  154. package/dist/harmony163.mjs.map +1 -1
  155. package/dist/harmony164.cjs +3 -14
  156. package/dist/harmony164.cjs.map +1 -1
  157. package/dist/harmony164.mjs +3 -14
  158. package/dist/harmony164.mjs.map +1 -1
  159. package/dist/harmony165.cjs +14 -3
  160. package/dist/harmony165.cjs.map +1 -1
  161. package/dist/harmony165.mjs +14 -3
  162. package/dist/harmony165.mjs.map +1 -1
  163. package/dist/harmony166.cjs +3 -3
  164. package/dist/harmony166.cjs.map +1 -1
  165. package/dist/harmony166.mjs +3 -3
  166. package/dist/harmony166.mjs.map +1 -1
  167. package/dist/harmony167.cjs +3 -14
  168. package/dist/harmony167.cjs.map +1 -1
  169. package/dist/harmony167.mjs +3 -14
  170. package/dist/harmony167.mjs.map +1 -1
  171. package/dist/harmony168.cjs +14 -96
  172. package/dist/harmony168.cjs.map +1 -1
  173. package/dist/harmony168.mjs +14 -96
  174. package/dist/harmony168.mjs.map +1 -1
  175. package/dist/harmony169.cjs +94 -11
  176. package/dist/harmony169.cjs.map +1 -1
  177. package/dist/harmony169.mjs +94 -11
  178. package/dist/harmony169.mjs.map +1 -1
  179. package/dist/harmony170.cjs +12 -13
  180. package/dist/harmony170.cjs.map +1 -1
  181. package/dist/harmony170.mjs +12 -13
  182. package/dist/harmony170.mjs.map +1 -1
  183. package/dist/harmony171.cjs +13 -35
  184. package/dist/harmony171.cjs.map +1 -1
  185. package/dist/harmony171.mjs +13 -35
  186. package/dist/harmony171.mjs.map +1 -1
  187. package/dist/harmony172.cjs +32 -24
  188. package/dist/harmony172.cjs.map +1 -1
  189. package/dist/harmony172.mjs +32 -24
  190. package/dist/harmony172.mjs.map +1 -1
  191. package/dist/harmony173.cjs +28 -10
  192. package/dist/harmony173.cjs.map +1 -1
  193. package/dist/harmony173.mjs +28 -10
  194. package/dist/harmony173.mjs.map +1 -1
  195. package/dist/harmony184.cjs +1 -1
  196. package/dist/harmony184.mjs +1 -1
  197. package/dist/harmony185.cjs +1 -1
  198. package/dist/harmony185.mjs +1 -1
  199. package/dist/harmony187.cjs +3 -3
  200. package/dist/harmony187.mjs +3 -3
  201. package/dist/harmony189.cjs +4 -6
  202. package/dist/harmony189.cjs.map +1 -1
  203. package/dist/harmony189.mjs +4 -6
  204. package/dist/harmony189.mjs.map +1 -1
  205. package/dist/harmony190.cjs +5 -11
  206. package/dist/harmony190.cjs.map +1 -1
  207. package/dist/harmony190.mjs +5 -11
  208. package/dist/harmony190.mjs.map +1 -1
  209. package/dist/harmony191.cjs +11 -31
  210. package/dist/harmony191.cjs.map +1 -1
  211. package/dist/harmony191.mjs +11 -31
  212. package/dist/harmony191.mjs.map +1 -1
  213. package/dist/harmony192.cjs +28 -10
  214. package/dist/harmony192.cjs.map +1 -1
  215. package/dist/harmony192.mjs +28 -10
  216. package/dist/harmony192.mjs.map +1 -1
  217. package/dist/harmony193.cjs +14 -4
  218. package/dist/harmony193.cjs.map +1 -1
  219. package/dist/harmony193.mjs +14 -4
  220. package/dist/harmony193.mjs.map +1 -1
  221. package/dist/harmony21.cjs +1 -1
  222. package/dist/harmony21.mjs +1 -1
  223. package/dist/harmony42.cjs +1 -1
  224. package/dist/harmony42.mjs +1 -1
  225. package/dist/harmony43.cjs +1 -1
  226. package/dist/harmony43.mjs +1 -1
  227. package/dist/harmony44.cjs +1 -1
  228. package/dist/harmony44.mjs +1 -1
  229. package/dist/harmony60.cjs +1 -1
  230. package/dist/harmony60.mjs +1 -1
  231. package/dist/harmony62.cjs +1 -1
  232. package/dist/harmony62.mjs +1 -1
  233. package/dist/harmony72.cjs +1 -1
  234. package/dist/harmony72.mjs +1 -1
  235. package/dist/harmony73.cjs +1 -1
  236. package/dist/harmony73.mjs +1 -1
  237. package/dist/harmony78.cjs +1 -1
  238. package/dist/harmony78.mjs +1 -1
  239. package/dist/harmony85.cjs +1 -1
  240. package/dist/harmony85.mjs +1 -1
  241. package/dist/harmony98.cjs +2 -1
  242. package/dist/harmony98.cjs.map +1 -1
  243. package/dist/harmony98.mjs +2 -1
  244. package/dist/harmony98.mjs.map +1 -1
  245. package/dist/types/src/features/navigation/fixtures/AppSidebar.fixtures.d.ts +2 -0
  246. package/dist/types/src/features/publicApi/team.d.ts +2 -0
  247. package/dist/types/src/features/publicApi/types/teamTypes.d.ts +6 -1
  248. package/package.json +1 -1
@@ -1,33 +1,18 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const navigationItems = [
4
- {
5
- key: "editor",
6
- labelKey: "Editor",
7
- path: ({ projectId }) => `/project/${projectId}/editor`
8
- },
9
- {
10
- key: "dashboard",
11
- labelKey: "Download",
12
- path: ({ projectId }) => `/project/${projectId}/dashboard`
13
- },
14
- {
15
- key: "contributors",
16
- labelKey: "Contributors",
17
- path: ({ projectId }) => `/project/${projectId}/contributors`
18
- },
19
- {
20
- key: "orders",
21
- labelKey: "Human proofreading",
22
- path: ({ projectId }) => `/project/${projectId}/orders`,
23
- shouldShow: ({ flags }) => flags.ap_feature_hraas === "on"
24
- },
25
- {
26
- key: "billing",
27
- labelKey: "Billing",
28
- path: ({ projectId }) => `/project/${projectId}/billing`,
29
- shouldShow: ({ flags }) => flags.ap_feature_billing === "on"
30
- }
31
- ];
32
- exports.navigationItems = navigationItems;
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const shortcutMenu = "_shortcutMenu_ujdmb_1";
4
+ const shortcutLabel = "_shortcutLabel_ujdmb_5";
5
+ const dropdownButton = "_dropdownButton_ujdmb_12";
6
+ const dropdownButtonActive = "_dropdownButtonActive_ujdmb_30";
7
+ const styles = {
8
+ shortcutMenu,
9
+ shortcutLabel,
10
+ dropdownButton,
11
+ dropdownButtonActive
12
+ };
13
+ exports.default = styles;
14
+ exports.dropdownButton = dropdownButton;
15
+ exports.dropdownButtonActive = dropdownButtonActive;
16
+ exports.shortcutLabel = shortcutLabel;
17
+ exports.shortcutMenu = shortcutMenu;
33
18
  //# sourceMappingURL=harmony156.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony156.cjs","sources":["../src/features/navigation/schemas/navigationSchema.ts"],"sourcesContent":["import type { DropdownItem, NavItemIcon } from '@features/navigation/types/navigation'\n\nexport type NavKey = 'editor' | 'contributors' | 'orders' | 'billing' | 'settings' | 'dashboard'\n\nexport interface NavigationItem {\n\tkey: NavKey\n\tlabelKey: string // TODO: i18n key inside this package\n\tpath: ({ projectId }: { projectId: string }) => string\n\n\ticon?: NavItemIcon\n\tdropdown?: DropdownItem[][]\n\tbadge?: number | ((ctx: NavCtx) => number)\n\n\tshouldShow?: (ctx: NavCtx) => boolean\n\tdisabled?: boolean | ((ctx: NavCtx) => boolean)\n\tisActive?: (pathname: string) => boolean // custom match, else fallback\n}\n\n/** What the gate functions receive */\nexport interface NavCtx {\n\tflags: Record<string, string>\n\tpathname: string\n\tpermissions?: Array<string> // e.g. contributor admin_rights //TODO: Provide type for permissions\n}\n\n// TODO: Handle Translations on harmony side.\nexport const navigationItems: NavigationItem[] = [\n\t{\n\t\tkey: 'editor',\n\t\tlabelKey: 'Editor',\n\t\tpath: ({ projectId }) => `/project/${projectId}/editor`,\n\t},\n\t{\n\t\tkey: 'dashboard',\n\t\tlabelKey: 'Download',\n\t\tpath: ({ projectId }) => `/project/${projectId}/dashboard`,\n\t},\n\t{\n\t\tkey: 'contributors',\n\t\tlabelKey: 'Contributors',\n\t\tpath: ({ projectId }) => `/project/${projectId}/contributors`,\n\t},\n\n\t{\n\t\tkey: 'orders',\n\t\tlabelKey: 'Human proofreading',\n\t\tpath: ({ projectId }) => `/project/${projectId}/orders`,\n\t\tshouldShow: ({ flags }) => flags.ap_feature_hraas === 'on',\n\t},\n\t{\n\t\tkey: 'billing',\n\t\tlabelKey: 'Billing',\n\t\tpath: ({ projectId }) => `/project/${projectId}/billing`,\n\t\tshouldShow: ({ flags }) => flags.ap_feature_billing === 'on',\n\t},\n]\n"],"names":[],"mappings":";;AA0BO,MAAM,kBAAoC;AAAA,EAChD;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,EAC/C;AAAA,EACA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,EAC/C;AAAA,EACA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,EAC/C;AAAA,EAEA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,IAC9C,YAAY,CAAC,EAAE,YAAY,MAAM,qBAAqB;AAAA,EACvD;AAAA,EACA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,IAC9C,YAAY,CAAC,EAAE,YAAY,MAAM,uBAAuB;AAAA,EAAA;AAE1D;;"}
1
+ {"version":3,"file":"harmony156.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -1,33 +1,18 @@
1
- const navigationItems = [
2
- {
3
- key: "editor",
4
- labelKey: "Editor",
5
- path: ({ projectId }) => `/project/${projectId}/editor`
6
- },
7
- {
8
- key: "dashboard",
9
- labelKey: "Download",
10
- path: ({ projectId }) => `/project/${projectId}/dashboard`
11
- },
12
- {
13
- key: "contributors",
14
- labelKey: "Contributors",
15
- path: ({ projectId }) => `/project/${projectId}/contributors`
16
- },
17
- {
18
- key: "orders",
19
- labelKey: "Human proofreading",
20
- path: ({ projectId }) => `/project/${projectId}/orders`,
21
- shouldShow: ({ flags }) => flags.ap_feature_hraas === "on"
22
- },
23
- {
24
- key: "billing",
25
- labelKey: "Billing",
26
- path: ({ projectId }) => `/project/${projectId}/billing`,
27
- shouldShow: ({ flags }) => flags.ap_feature_billing === "on"
28
- }
29
- ];
1
+ const shortcutMenu = "_shortcutMenu_ujdmb_1";
2
+ const shortcutLabel = "_shortcutLabel_ujdmb_5";
3
+ const dropdownButton = "_dropdownButton_ujdmb_12";
4
+ const dropdownButtonActive = "_dropdownButtonActive_ujdmb_30";
5
+ const styles = {
6
+ shortcutMenu,
7
+ shortcutLabel,
8
+ dropdownButton,
9
+ dropdownButtonActive
10
+ };
30
11
  export {
31
- navigationItems
12
+ styles as default,
13
+ dropdownButton,
14
+ dropdownButtonActive,
15
+ shortcutLabel,
16
+ shortcutMenu
32
17
  };
33
18
  //# sourceMappingURL=harmony156.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony156.mjs","sources":["../src/features/navigation/schemas/navigationSchema.ts"],"sourcesContent":["import type { DropdownItem, NavItemIcon } from '@features/navigation/types/navigation'\n\nexport type NavKey = 'editor' | 'contributors' | 'orders' | 'billing' | 'settings' | 'dashboard'\n\nexport interface NavigationItem {\n\tkey: NavKey\n\tlabelKey: string // TODO: i18n key inside this package\n\tpath: ({ projectId }: { projectId: string }) => string\n\n\ticon?: NavItemIcon\n\tdropdown?: DropdownItem[][]\n\tbadge?: number | ((ctx: NavCtx) => number)\n\n\tshouldShow?: (ctx: NavCtx) => boolean\n\tdisabled?: boolean | ((ctx: NavCtx) => boolean)\n\tisActive?: (pathname: string) => boolean // custom match, else fallback\n}\n\n/** What the gate functions receive */\nexport interface NavCtx {\n\tflags: Record<string, string>\n\tpathname: string\n\tpermissions?: Array<string> // e.g. contributor admin_rights //TODO: Provide type for permissions\n}\n\n// TODO: Handle Translations on harmony side.\nexport const navigationItems: NavigationItem[] = [\n\t{\n\t\tkey: 'editor',\n\t\tlabelKey: 'Editor',\n\t\tpath: ({ projectId }) => `/project/${projectId}/editor`,\n\t},\n\t{\n\t\tkey: 'dashboard',\n\t\tlabelKey: 'Download',\n\t\tpath: ({ projectId }) => `/project/${projectId}/dashboard`,\n\t},\n\t{\n\t\tkey: 'contributors',\n\t\tlabelKey: 'Contributors',\n\t\tpath: ({ projectId }) => `/project/${projectId}/contributors`,\n\t},\n\n\t{\n\t\tkey: 'orders',\n\t\tlabelKey: 'Human proofreading',\n\t\tpath: ({ projectId }) => `/project/${projectId}/orders`,\n\t\tshouldShow: ({ flags }) => flags.ap_feature_hraas === 'on',\n\t},\n\t{\n\t\tkey: 'billing',\n\t\tlabelKey: 'Billing',\n\t\tpath: ({ projectId }) => `/project/${projectId}/billing`,\n\t\tshouldShow: ({ flags }) => flags.ap_feature_billing === 'on',\n\t},\n]\n"],"names":[],"mappings":"AA0BO,MAAM,kBAAoC;AAAA,EAChD;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,EAC/C;AAAA,EACA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,EAC/C;AAAA,EACA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,EAC/C;AAAA,EAEA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,IAC9C,YAAY,CAAC,EAAE,YAAY,MAAM,qBAAqB;AAAA,EACvD;AAAA,EACA;AAAA,IACC,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM,CAAC,EAAE,UAAU,MAAM,YAAY,SAAS;AAAA,IAC9C,YAAY,CAAC,EAAE,YAAY,MAAM,uBAAuB;AAAA,EAAA;AAE1D;"}
1
+ {"version":3,"file":"harmony156.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const _commonjsHelpers = require("./harmony189.cjs");
4
- const debounce$1 = require("./harmony168.cjs");
3
+ const _commonjsHelpers = require("./harmony190.cjs");
4
+ const debounce$1 = require("./harmony169.cjs");
5
5
  var debounceExports = debounce$1.__require();
6
6
  const debounce = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(debounceExports);
7
7
  exports.default = debounce;
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs } from "./harmony189.mjs";
2
- import { __require as requireDebounce } from "./harmony168.mjs";
1
+ import { getDefaultExportFromCjs } from "./harmony190.mjs";
2
+ import { __require as requireDebounce } from "./harmony169.mjs";
3
3
  var debounceExports = requireDebounce();
4
4
  const debounce = /* @__PURE__ */ getDefaultExportFromCjs(debounceExports);
5
5
  export {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const _commonjsHelpers = require("./harmony189.cjs");
4
- const throttle$1 = require("./harmony172.cjs");
3
+ const _commonjsHelpers = require("./harmony190.cjs");
4
+ const throttle$1 = require("./harmony173.cjs");
5
5
  var throttleExports = throttle$1.__require();
6
6
  const throttle = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(throttleExports);
7
7
  exports.default = throttle;
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs } from "./harmony189.mjs";
2
- import { __require as requireThrottle } from "./harmony172.mjs";
1
+ import { getDefaultExportFromCjs } from "./harmony190.mjs";
2
+ import { __require as requireThrottle } from "./harmony173.mjs";
3
3
  var throttleExports = requireThrottle();
4
4
  const throttle = /* @__PURE__ */ getDefaultExportFromCjs(throttleExports);
5
5
  export {
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const canPerformActionByProjectType = require("./harmony184.cjs");
4
- const projectPermissionTypes = require("./harmony47.cjs");
5
- const has = require("./harmony136.cjs");
6
- const manageManagementPermissions = ({ projectType, projectPermissions }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
7
- classic: () => has.has(projectPermissions, ...projectPermissionTypes.PROJECT_PERMISSIONS),
8
- marketing: () => has.has(projectPermissions, ...projectPermissionTypes.MARKETING_PROJECT_PERMISSIONS)
9
- });
10
- exports.manageManagementPermissions = manageManagementPermissions;
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;
11
13
  //# sourceMappingURL=harmony159.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony159.cjs","sources":["../src/features/permissions/actionResolvers/manageManagementPermissions.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport type { ActionResolver } from '../types/actionResolver'\nimport { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '../types/projectPermissionTypes'\nimport { has } from '../utils/has'\n\n/**\n * To manage management permissions, the user has to have all permissions assigned.\n * Checking for each project type as the list of \"all\" permissions is different.\n */\nexport const manageManagementPermissions: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),\n\t\tmarketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS),\n\t})\n"],"names":["canPerformActionByProjectType","has","PROJECT_PERMISSIONS","MARKETING_PROJECT_PERMISSIONS"],"mappings":";;;;;AASO,MAAM,8BAA8C,CAAC,EAAE,aAAa,mBAAmB,MAC7FA,8BAAAA,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAMC,IAAAA,IAAI,oBAAoB,GAAGC,uBAAAA,mBAAmB;AAAA,EAC7D,WAAW,MAAMD,IAAAA,IAAI,oBAAoB,GAAGE,uBAA6B,6BAAA;AAC1E,CAAC;;"}
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,11 +1,13 @@
1
- import { canPerformActionByProjectType } from "./harmony184.mjs";
2
- import { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from "./harmony47.mjs";
3
- import { has } from "./harmony136.mjs";
4
- const manageManagementPermissions = ({ projectType, projectPermissions }) => canPerformActionByProjectType(projectType, {
5
- classic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),
6
- marketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS)
7
- });
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
+ };
8
9
  export {
9
- manageManagementPermissions
10
+ hasAdminRight,
11
+ hasAnyAdminRight
10
12
  };
11
13
  //# sourceMappingURL=harmony159.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony159.mjs","sources":["../src/features/permissions/actionResolvers/manageManagementPermissions.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport type { ActionResolver } from '../types/actionResolver'\nimport { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '../types/projectPermissionTypes'\nimport { has } from '../utils/has'\n\n/**\n * To manage management permissions, the user has to have all permissions assigned.\n * Checking for each project type as the list of \"all\" permissions is different.\n */\nexport const manageManagementPermissions: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),\n\t\tmarketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS),\n\t})\n"],"names":[],"mappings":";;;AASO,MAAM,8BAA8C,CAAC,EAAE,aAAa,mBAAmB,MAC7F,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAM,IAAI,oBAAoB,GAAG,mBAAmB;AAAA,EAC7D,WAAW,MAAM,IAAI,oBAAoB,GAAG,6BAA6B;AAC1E,CAAC;"}
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,5 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const accessExpertFeatures = ({ isExpert }) => isExpert === true;
4
- exports.accessExpertFeatures = accessExpertFeatures;
3
+ const canPerformActionByProjectType = require("./harmony184.cjs");
4
+ const projectPermissionTypes = require("./harmony47.cjs");
5
+ const has = require("./harmony139.cjs");
6
+ const manageManagementPermissions = ({ projectType, projectPermissions }) => canPerformActionByProjectType.canPerformActionByProjectType(projectType, {
7
+ classic: () => has.has(projectPermissions, ...projectPermissionTypes.PROJECT_PERMISSIONS),
8
+ marketing: () => has.has(projectPermissions, ...projectPermissionTypes.MARKETING_PROJECT_PERMISSIONS)
9
+ });
10
+ exports.manageManagementPermissions = manageManagementPermissions;
5
11
  //# sourceMappingURL=harmony160.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony160.cjs","sources":["../src/features/permissions/actionResolvers/accessExpertFeatures.ts"],"sourcesContent":["import type { ActionResolver } from '@features/permissions/types/actionResolver'\n\nexport const accessExpertFeatures: ActionResolver = ({ isExpert }) => isExpert === true\n"],"names":[],"mappings":";;AAEO,MAAM,uBAAuC,CAAC,EAAE,eAAe,aAAa;;"}
1
+ {"version":3,"file":"harmony160.cjs","sources":["../src/features/permissions/actionResolvers/manageManagementPermissions.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport type { ActionResolver } from '../types/actionResolver'\nimport { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '../types/projectPermissionTypes'\nimport { has } from '../utils/has'\n\n/**\n * To manage management permissions, the user has to have all permissions assigned.\n * Checking for each project type as the list of \"all\" permissions is different.\n */\nexport const manageManagementPermissions: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),\n\t\tmarketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS),\n\t})\n"],"names":["canPerformActionByProjectType","has","PROJECT_PERMISSIONS","MARKETING_PROJECT_PERMISSIONS"],"mappings":";;;;;AASO,MAAM,8BAA8C,CAAC,EAAE,aAAa,mBAAmB,MAC7FA,8BAAAA,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAMC,IAAAA,IAAI,oBAAoB,GAAGC,uBAAAA,mBAAmB;AAAA,EAC7D,WAAW,MAAMD,IAAAA,IAAI,oBAAoB,GAAGE,uBAA6B,6BAAA;AAC1E,CAAC;;"}
@@ -1,5 +1,11 @@
1
- const accessExpertFeatures = ({ isExpert }) => isExpert === true;
1
+ import { canPerformActionByProjectType } from "./harmony184.mjs";
2
+ import { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from "./harmony47.mjs";
3
+ import { has } from "./harmony139.mjs";
4
+ const manageManagementPermissions = ({ projectType, projectPermissions }) => canPerformActionByProjectType(projectType, {
5
+ classic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),
6
+ marketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS)
7
+ });
2
8
  export {
3
- accessExpertFeatures
9
+ manageManagementPermissions
4
10
  };
5
11
  //# sourceMappingURL=harmony160.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony160.mjs","sources":["../src/features/permissions/actionResolvers/accessExpertFeatures.ts"],"sourcesContent":["import type { ActionResolver } from '@features/permissions/types/actionResolver'\n\nexport const accessExpertFeatures: ActionResolver = ({ isExpert }) => isExpert === true\n"],"names":[],"mappings":"AAEO,MAAM,uBAAuC,CAAC,EAAE,eAAe,aAAa;"}
1
+ {"version":3,"file":"harmony160.mjs","sources":["../src/features/permissions/actionResolvers/manageManagementPermissions.ts"],"sourcesContent":["import { canPerformActionByProjectType } from '@features/permissions/utils/canPerformActionByProjectType'\nimport type { ActionResolver } from '../types/actionResolver'\nimport { MARKETING_PROJECT_PERMISSIONS, PROJECT_PERMISSIONS } from '../types/projectPermissionTypes'\nimport { has } from '../utils/has'\n\n/**\n * To manage management permissions, the user has to have all permissions assigned.\n * Checking for each project type as the list of \"all\" permissions is different.\n */\nexport const manageManagementPermissions: ActionResolver = ({ projectType, projectPermissions }) =>\n\tcanPerformActionByProjectType(projectType, {\n\t\tclassic: () => has(projectPermissions, ...PROJECT_PERMISSIONS),\n\t\tmarketing: () => has(projectPermissions, ...MARKETING_PROJECT_PERMISSIONS),\n\t})\n"],"names":[],"mappings":";;;AASO,MAAM,8BAA8C,CAAC,EAAE,aAAa,mBAAmB,MAC7F,8BAA8B,aAAa;AAAA,EAC1C,SAAS,MAAM,IAAI,oBAAoB,GAAG,mBAAmB;AAAA,EAC7D,WAAW,MAAM,IAAI,oBAAoB,GAAG,6BAA6B;AAC1E,CAAC;"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const has = require("./harmony136.cjs");
4
- const accessMarketingProjects = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "homeMarketingBeta");
5
- exports.accessMarketingProjects = accessMarketingProjects;
3
+ const accessExpertFeatures = ({ isExpert }) => isExpert === true;
4
+ exports.accessExpertFeatures = accessExpertFeatures;
6
5
  //# sourceMappingURL=harmony161.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony161.cjs","sources":["../src/features/permissions/actionResolvers/accessMarketingProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const accessMarketingProjects: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'homeMarketingBeta')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAAA,IAAA,IAAI,qBAAqB,mBAAmB;;"}
1
+ {"version":3,"file":"harmony161.cjs","sources":["../src/features/permissions/actionResolvers/accessExpertFeatures.ts"],"sourcesContent":["import type { ActionResolver } from '@features/permissions/types/actionResolver'\n\nexport const accessExpertFeatures: ActionResolver = ({ isExpert }) => isExpert === true\n"],"names":[],"mappings":";;AAEO,MAAM,uBAAuC,CAAC,EAAE,eAAe,aAAa;;"}
@@ -1,6 +1,5 @@
1
- import { has } from "./harmony136.mjs";
2
- const accessMarketingProjects = ({ enabledFeatureFlags }) => has(enabledFeatureFlags, "homeMarketingBeta");
1
+ const accessExpertFeatures = ({ isExpert }) => isExpert === true;
3
2
  export {
4
- accessMarketingProjects
3
+ accessExpertFeatures
5
4
  };
6
5
  //# sourceMappingURL=harmony161.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony161.mjs","sources":["../src/features/permissions/actionResolvers/accessMarketingProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const accessMarketingProjects: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'homeMarketingBeta')\n"],"names":[],"mappings":";AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAA,IAAI,qBAAqB,mBAAmB;"}
1
+ {"version":3,"file":"harmony161.mjs","sources":["../src/features/permissions/actionResolvers/accessExpertFeatures.ts"],"sourcesContent":["import type { ActionResolver } from '@features/permissions/types/actionResolver'\n\nexport const accessExpertFeatures: ActionResolver = ({ isExpert }) => isExpert === true\n"],"names":[],"mappings":"AAEO,MAAM,uBAAuC,CAAC,EAAE,eAAe,aAAa;"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const hasAny = require("./harmony135.cjs");
4
- const createProjects = ({ teamRole }) => hasAny.hasAny(teamRole, "owner", "biller", "admin");
5
- exports.createProjects = createProjects;
3
+ const has = require("./harmony139.cjs");
4
+ const accessMarketingProjects = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "homeMarketingBeta");
5
+ exports.accessMarketingProjects = accessMarketingProjects;
6
6
  //# sourceMappingURL=harmony162.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony162.cjs","sources":["../src/features/permissions/actionResolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '../utils/hasAny'\n\nimport type { ActionResolver } from '../types/actionResolver'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":["hasAny"],"mappings":";;;AAIa,MAAA,iBAAiC,CAAC,EAAE,eAChDA,OAAO,OAAA,UAAU,SAAS,UAAU,OAAO;;"}
1
+ {"version":3,"file":"harmony162.cjs","sources":["../src/features/permissions/actionResolvers/accessMarketingProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const accessMarketingProjects: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'homeMarketingBeta')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAAA,IAAA,IAAI,qBAAqB,mBAAmB;;"}
@@ -1,6 +1,6 @@
1
- import { hasAny } from "./harmony135.mjs";
2
- const createProjects = ({ teamRole }) => hasAny(teamRole, "owner", "biller", "admin");
1
+ import { has } from "./harmony139.mjs";
2
+ const accessMarketingProjects = ({ enabledFeatureFlags }) => has(enabledFeatureFlags, "homeMarketingBeta");
3
3
  export {
4
- createProjects
4
+ accessMarketingProjects
5
5
  };
6
6
  //# sourceMappingURL=harmony162.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony162.mjs","sources":["../src/features/permissions/actionResolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '../utils/hasAny'\n\nimport type { ActionResolver } from '../types/actionResolver'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":[],"mappings":";AAIa,MAAA,iBAAiC,CAAC,EAAE,eAChD,OAAO,UAAU,SAAS,UAAU,OAAO;"}
1
+ {"version":3,"file":"harmony162.mjs","sources":["../src/features/permissions/actionResolvers/accessMarketingProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const accessMarketingProjects: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'homeMarketingBeta')\n"],"names":[],"mappings":";AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAA,IAAI,qBAAqB,mBAAmB;"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const has = require("./harmony136.cjs");
4
- const deleteProjects = ({ projectPermissions }) => has.has(projectPermissions, "settings");
5
- exports.deleteProjects = deleteProjects;
3
+ const hasAny = require("./harmony138.cjs");
4
+ const createProjects = ({ teamRole }) => hasAny.hasAny(teamRole, "owner", "biller", "admin");
5
+ exports.createProjects = createProjects;
6
6
  //# sourceMappingURL=harmony163.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony163.cjs","sources":["../src/features/permissions/actionResolvers/deleteProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const deleteProjects: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'settings')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,iBAAiC,CAAC,EAAE,mBAChD,MAAAA,IAAA,IAAI,oBAAoB,UAAU;;"}
1
+ {"version":3,"file":"harmony163.cjs","sources":["../src/features/permissions/actionResolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '../utils/hasAny'\n\nimport type { ActionResolver } from '../types/actionResolver'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":["hasAny"],"mappings":";;;AAIa,MAAA,iBAAiC,CAAC,EAAE,eAChDA,OAAO,OAAA,UAAU,SAAS,UAAU,OAAO;;"}
@@ -1,6 +1,6 @@
1
- import { has } from "./harmony136.mjs";
2
- const deleteProjects = ({ projectPermissions }) => has(projectPermissions, "settings");
1
+ import { hasAny } from "./harmony138.mjs";
2
+ const createProjects = ({ teamRole }) => hasAny(teamRole, "owner", "biller", "admin");
3
3
  export {
4
- deleteProjects
4
+ createProjects
5
5
  };
6
6
  //# sourceMappingURL=harmony163.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony163.mjs","sources":["../src/features/permissions/actionResolvers/deleteProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const deleteProjects: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'settings')\n"],"names":[],"mappings":";AAGO,MAAM,iBAAiC,CAAC,EAAE,mBAChD,MAAA,IAAI,oBAAoB,UAAU;"}
1
+ {"version":3,"file":"harmony163.mjs","sources":["../src/features/permissions/actionResolvers/createProjects.ts"],"sourcesContent":["import { hasAny } from '../utils/hasAny'\n\nimport type { ActionResolver } from '../types/actionResolver'\n\nexport const createProjects: ActionResolver = ({ teamRole }) =>\n\thasAny(teamRole, 'owner', 'biller', 'admin')\n"],"names":[],"mappings":";AAIa,MAAA,iBAAiC,CAAC,EAAE,eAChD,OAAO,UAAU,SAAS,UAAU,OAAO;"}
@@ -1,17 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const canPerformActionByProjectType = require("./harmony184.cjs");
4
- const has = require("./harmony136.cjs");
5
- const hasAny = require("./harmony135.cjs");
6
- const downloadFiles = ({ 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.downloadFiles = downloadFiles;
3
+ const has = require("./harmony139.cjs");
4
+ const deleteProjects = ({ projectPermissions }) => has.has(projectPermissions, "settings");
5
+ exports.deleteProjects = deleteProjects;
17
6
  //# sourceMappingURL=harmony164.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony164.cjs","sources":["../src/features/permissions/actionResolvers/downloadFiles.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { canPerformActionByProjectType } from '../utils/canPerformActionByProjectType'\nimport { has } from '../utils/has'\nimport { hasAny } from '../utils/hasAny'\n\nexport const downloadFiles: 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,gBAAgC,CAAC,EAAE,aAAa,mBAAmB,MAC/EA,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":"harmony164.cjs","sources":["../src/features/permissions/actionResolvers/deleteProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const deleteProjects: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'settings')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,iBAAiC,CAAC,EAAE,mBAChD,MAAAA,IAAA,IAAI,oBAAoB,UAAU;;"}
@@ -1,17 +1,6 @@
1
- import { canPerformActionByProjectType } from "./harmony184.mjs";
2
- import { has } from "./harmony136.mjs";
3
- import { hasAny } from "./harmony135.mjs";
4
- const downloadFiles = ({ 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 { has } from "./harmony139.mjs";
2
+ const deleteProjects = ({ projectPermissions }) => has(projectPermissions, "settings");
14
3
  export {
15
- downloadFiles
4
+ deleteProjects
16
5
  };
17
6
  //# sourceMappingURL=harmony164.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony164.mjs","sources":["../src/features/permissions/actionResolvers/downloadFiles.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { canPerformActionByProjectType } from '../utils/canPerformActionByProjectType'\nimport { has } from '../utils/has'\nimport { hasAny } from '../utils/hasAny'\n\nexport const downloadFiles: 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,gBAAgC,CAAC,EAAE,aAAa,mBAAmB,MAC/E,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":"harmony164.mjs","sources":["../src/features/permissions/actionResolvers/deleteProjects.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const deleteProjects: ActionResolver = ({ projectPermissions }) =>\n\thas(projectPermissions, 'settings')\n"],"names":[],"mappings":";AAGO,MAAM,iBAAiC,CAAC,EAAE,mBAChD,MAAA,IAAI,oBAAoB,UAAU;"}
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const has = require("./harmony136.cjs");
4
- const manageContributors = ({ projectPermissions }) => has.has(projectPermissions, "contributors");
5
- exports.manageContributors = manageContributors;
3
+ const canPerformActionByProjectType = require("./harmony184.cjs");
4
+ const has = require("./harmony139.cjs");
5
+ const hasAny = require("./harmony138.cjs");
6
+ const downloadFiles = ({ 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.downloadFiles = downloadFiles;
6
17
  //# sourceMappingURL=harmony165.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony165.cjs","sources":["../src/features/permissions/actionResolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\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":"harmony165.cjs","sources":["../src/features/permissions/actionResolvers/downloadFiles.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { canPerformActionByProjectType } from '../utils/canPerformActionByProjectType'\nimport { has } from '../utils/has'\nimport { hasAny } from '../utils/hasAny'\n\nexport const downloadFiles: 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,gBAAgC,CAAC,EAAE,aAAa,mBAAmB,MAC/EA,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,6 +1,17 @@
1
- import { has } from "./harmony136.mjs";
2
- const manageContributors = ({ projectPermissions }) => has(projectPermissions, "contributors");
1
+ import { canPerformActionByProjectType } from "./harmony184.mjs";
2
+ import { has } from "./harmony139.mjs";
3
+ import { hasAny } from "./harmony138.mjs";
4
+ const downloadFiles = ({ 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
+ });
3
14
  export {
4
- manageContributors
15
+ downloadFiles
5
16
  };
6
17
  //# sourceMappingURL=harmony165.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony165.mjs","sources":["../src/features/permissions/actionResolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\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":"harmony165.mjs","sources":["../src/features/permissions/actionResolvers/downloadFiles.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { canPerformActionByProjectType } from '../utils/canPerformActionByProjectType'\nimport { has } from '../utils/has'\nimport { hasAny } from '../utils/hasAny'\n\nexport const downloadFiles: 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,gBAAgC,CAAC,EAAE,aAAa,mBAAmB,MAC/E,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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const has = require("./harmony136.cjs");
4
- const testNewProjectSetupFlow = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "home_feature_contributors_page_in_project_setup_flow");
5
- exports.testNewProjectSetupFlow = testNewProjectSetupFlow;
3
+ const has = require("./harmony139.cjs");
4
+ const manageContributors = ({ projectPermissions }) => has.has(projectPermissions, "contributors");
5
+ exports.manageContributors = manageContributors;
6
6
  //# sourceMappingURL=harmony166.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony166.cjs","sources":["../src/features/permissions/actionResolvers/testNewProjectSetupFlow.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const testNewProjectSetupFlow: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'home_feature_contributors_page_in_project_setup_flow')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAAA,IAAA,IAAI,qBAAqB,sDAAsD;;"}
1
+ {"version":3,"file":"harmony166.cjs","sources":["../src/features/permissions/actionResolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\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,6 +1,6 @@
1
- import { has } from "./harmony136.mjs";
2
- const testNewProjectSetupFlow = ({ enabledFeatureFlags }) => has(enabledFeatureFlags, "home_feature_contributors_page_in_project_setup_flow");
1
+ import { has } from "./harmony139.mjs";
2
+ const manageContributors = ({ projectPermissions }) => has(projectPermissions, "contributors");
3
3
  export {
4
- testNewProjectSetupFlow
4
+ manageContributors
5
5
  };
6
6
  //# sourceMappingURL=harmony166.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony166.mjs","sources":["../src/features/permissions/actionResolvers/testNewProjectSetupFlow.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const testNewProjectSetupFlow: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'home_feature_contributors_page_in_project_setup_flow')\n"],"names":[],"mappings":";AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAA,IAAI,qBAAqB,sDAAsD;"}
1
+ {"version":3,"file":"harmony166.mjs","sources":["../src/features/permissions/actionResolvers/manageContributors.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\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,17 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const canPerformActionByProjectType = require("./harmony184.cjs");
4
- const has = require("./harmony136.cjs");
5
- const hasAny = require("./harmony135.cjs");
6
- const uploadFiles = ({ 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.uploadFiles = uploadFiles;
3
+ const has = require("./harmony139.cjs");
4
+ const testNewProjectSetupFlow = ({ enabledFeatureFlags }) => has.has(enabledFeatureFlags, "home_feature_contributors_page_in_project_setup_flow");
5
+ exports.testNewProjectSetupFlow = testNewProjectSetupFlow;
17
6
  //# sourceMappingURL=harmony167.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony167.cjs","sources":["../src/features/permissions/actionResolvers/uploadFiles.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { canPerformActionByProjectType } from '../utils/canPerformActionByProjectType'\nimport { has } from '../utils/has'\nimport { hasAny } from '../utils/hasAny'\n\nexport const uploadFiles: 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,cAA8B,CAAC,EAAE,oBAAoB,YAAY,MAC7EA,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":"harmony167.cjs","sources":["../src/features/permissions/actionResolvers/testNewProjectSetupFlow.ts"],"sourcesContent":["import type { ActionResolver } from '../types/actionResolver'\nimport { has } from '../utils/has'\n\nexport const testNewProjectSetupFlow: ActionResolver = ({ enabledFeatureFlags }) =>\n\thas(enabledFeatureFlags, 'home_feature_contributors_page_in_project_setup_flow')\n"],"names":["has"],"mappings":";;;AAGO,MAAM,0BAA0C,CAAC,EAAE,oBACzD,MAAAA,IAAA,IAAI,qBAAqB,sDAAsD;;"}