@lokalise/harmony 4.7.0 → 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 (296) hide show
  1. package/dist/harmony105.cjs +1 -1
  2. package/dist/harmony105.mjs +1 -1
  3. package/dist/harmony107.cjs +2 -2
  4. package/dist/harmony107.mjs +2 -2
  5. package/dist/harmony109.cjs +2 -2
  6. package/dist/harmony109.mjs +2 -2
  7. package/dist/harmony113.cjs +1 -1
  8. package/dist/harmony113.mjs +1 -1
  9. package/dist/harmony114.cjs +7 -7
  10. package/dist/harmony114.mjs +7 -7
  11. package/dist/harmony117.cjs +2 -2
  12. package/dist/harmony117.mjs +2 -2
  13. package/dist/harmony118.cjs +13 -165
  14. package/dist/harmony118.cjs.map +1 -1
  15. package/dist/harmony118.mjs +13 -165
  16. package/dist/harmony118.mjs.map +1 -1
  17. package/dist/harmony119.cjs +158 -36
  18. package/dist/harmony119.cjs.map +1 -1
  19. package/dist/harmony119.mjs +159 -37
  20. package/dist/harmony119.mjs.map +1 -1
  21. package/dist/harmony120.cjs +42 -12
  22. package/dist/harmony120.cjs.map +1 -1
  23. package/dist/harmony120.mjs +42 -12
  24. package/dist/harmony120.mjs.map +1 -1
  25. package/dist/harmony121.cjs +3 -12
  26. package/dist/harmony121.cjs.map +1 -1
  27. package/dist/harmony121.mjs +3 -12
  28. package/dist/harmony121.mjs.map +1 -1
  29. package/dist/harmony122.cjs +18 -12
  30. package/dist/harmony122.cjs.map +1 -1
  31. package/dist/harmony122.mjs +17 -11
  32. package/dist/harmony122.mjs.map +1 -1
  33. package/dist/harmony123.cjs +74 -9
  34. package/dist/harmony123.cjs.map +1 -1
  35. package/dist/harmony123.mjs +76 -11
  36. package/dist/harmony123.mjs.map +1 -1
  37. package/dist/harmony124.cjs +12 -21
  38. package/dist/harmony124.cjs.map +1 -1
  39. package/dist/harmony124.mjs +11 -20
  40. package/dist/harmony124.mjs.map +1 -1
  41. package/dist/harmony125.cjs +34 -3
  42. package/dist/harmony125.cjs.map +1 -1
  43. package/dist/harmony125.mjs +34 -3
  44. package/dist/harmony125.mjs.map +1 -1
  45. package/dist/harmony126.cjs +8 -17
  46. package/dist/harmony126.cjs.map +1 -1
  47. package/dist/harmony126.mjs +8 -17
  48. package/dist/harmony126.mjs.map +1 -1
  49. package/dist/harmony127.cjs +36 -65
  50. package/dist/harmony127.cjs.map +1 -1
  51. package/dist/harmony127.mjs +37 -66
  52. package/dist/harmony127.mjs.map +1 -1
  53. package/dist/harmony128.cjs +9 -12
  54. package/dist/harmony128.cjs.map +1 -1
  55. package/dist/harmony128.mjs +8 -11
  56. package/dist/harmony128.mjs.map +1 -1
  57. package/dist/harmony129.cjs +12 -34
  58. package/dist/harmony129.cjs.map +1 -1
  59. package/dist/harmony129.mjs +12 -34
  60. package/dist/harmony129.mjs.map +1 -1
  61. package/dist/harmony130.cjs +13 -10
  62. package/dist/harmony130.cjs.map +1 -1
  63. package/dist/harmony130.mjs +12 -9
  64. package/dist/harmony130.mjs.map +1 -1
  65. package/dist/harmony131.cjs +9 -45
  66. package/dist/harmony131.cjs.map +1 -1
  67. package/dist/harmony131.mjs +11 -47
  68. package/dist/harmony131.mjs.map +1 -1
  69. package/dist/harmony132.cjs +20 -8
  70. package/dist/harmony132.cjs.map +1 -1
  71. package/dist/harmony132.mjs +20 -8
  72. package/dist/harmony132.mjs.map +1 -1
  73. package/dist/harmony133.cjs +99 -20
  74. package/dist/harmony133.cjs.map +1 -1
  75. package/dist/harmony133.mjs +82 -20
  76. package/dist/harmony133.mjs.map +1 -1
  77. package/dist/harmony134.cjs +86 -7
  78. package/dist/harmony134.cjs.map +1 -1
  79. package/dist/harmony134.mjs +86 -7
  80. package/dist/harmony134.mjs.map +1 -1
  81. package/dist/harmony135.cjs +30 -8
  82. package/dist/harmony135.cjs.map +1 -1
  83. package/dist/harmony135.mjs +30 -8
  84. package/dist/harmony135.mjs.map +1 -1
  85. package/dist/harmony136.cjs +49 -21
  86. package/dist/harmony136.cjs.map +1 -1
  87. package/dist/harmony136.mjs +49 -21
  88. package/dist/harmony136.mjs.map +1 -1
  89. package/dist/harmony137.cjs +7 -45
  90. package/dist/harmony137.cjs.map +1 -1
  91. package/dist/harmony137.mjs +8 -46
  92. package/dist/harmony137.mjs.map +1 -1
  93. package/dist/harmony138.cjs +8 -11
  94. package/dist/harmony138.cjs.map +1 -1
  95. package/dist/harmony138.mjs +8 -11
  96. package/dist/harmony138.mjs.map +1 -1
  97. package/dist/harmony139.cjs +7 -86
  98. package/dist/harmony139.cjs.map +1 -1
  99. package/dist/harmony139.mjs +7 -86
  100. package/dist/harmony139.mjs.map +1 -1
  101. package/dist/harmony140.cjs +21 -30
  102. package/dist/harmony140.cjs.map +1 -1
  103. package/dist/harmony140.mjs +21 -30
  104. package/dist/harmony140.mjs.map +1 -1
  105. package/dist/harmony141.cjs +20 -99
  106. package/dist/harmony141.cjs.map +1 -1
  107. package/dist/harmony141.mjs +20 -82
  108. package/dist/harmony141.mjs.map +1 -1
  109. package/dist/harmony143.cjs +2 -2
  110. package/dist/harmony143.mjs +2 -2
  111. package/dist/harmony144.cjs +2 -2
  112. package/dist/harmony144.mjs +2 -2
  113. package/dist/harmony145.cjs +3 -3
  114. package/dist/harmony145.mjs +3 -3
  115. package/dist/harmony146.cjs +1 -1
  116. package/dist/harmony146.mjs +1 -1
  117. package/dist/harmony147.cjs +3 -3
  118. package/dist/harmony147.mjs +3 -3
  119. package/dist/harmony148.cjs +2 -2
  120. package/dist/harmony148.mjs +2 -2
  121. package/dist/harmony149.cjs +2 -2
  122. package/dist/harmony149.mjs +2 -2
  123. package/dist/harmony150.cjs +2 -2
  124. package/dist/harmony150.mjs +2 -2
  125. package/dist/harmony151.cjs +2 -2
  126. package/dist/harmony151.mjs +2 -2
  127. package/dist/harmony152.cjs +3 -3
  128. package/dist/harmony152.mjs +3 -3
  129. package/dist/harmony154.cjs +1 -1
  130. package/dist/harmony154.mjs +1 -1
  131. package/dist/harmony157.cjs +6 -9
  132. package/dist/harmony157.cjs.map +1 -1
  133. package/dist/harmony157.mjs +5 -8
  134. package/dist/harmony157.mjs.map +1 -1
  135. package/dist/harmony158.cjs +6 -3
  136. package/dist/harmony158.cjs.map +1 -1
  137. package/dist/harmony158.mjs +5 -2
  138. package/dist/harmony158.mjs.map +1 -1
  139. package/dist/harmony159.cjs +10 -3
  140. package/dist/harmony159.cjs.map +1 -1
  141. package/dist/harmony159.mjs +10 -3
  142. package/dist/harmony159.mjs.map +1 -1
  143. package/dist/harmony160.cjs +8 -3
  144. package/dist/harmony160.cjs.map +1 -1
  145. package/dist/harmony160.mjs +8 -3
  146. package/dist/harmony160.mjs.map +1 -1
  147. package/dist/harmony161.cjs +2 -3
  148. package/dist/harmony161.cjs.map +1 -1
  149. package/dist/harmony161.mjs +2 -3
  150. package/dist/harmony161.mjs.map +1 -1
  151. package/dist/harmony162.cjs +3 -14
  152. package/dist/harmony162.cjs.map +1 -1
  153. package/dist/harmony162.mjs +3 -14
  154. package/dist/harmony162.mjs.map +1 -1
  155. package/dist/harmony163.cjs +3 -3
  156. package/dist/harmony163.cjs.map +1 -1
  157. package/dist/harmony163.mjs +3 -3
  158. package/dist/harmony163.mjs.map +1 -1
  159. package/dist/harmony164.cjs +3 -3
  160. package/dist/harmony164.cjs.map +1 -1
  161. package/dist/harmony164.mjs +3 -3
  162. package/dist/harmony164.mjs.map +1 -1
  163. package/dist/harmony165.cjs +7 -7
  164. package/dist/harmony165.cjs.map +1 -1
  165. package/dist/harmony165.mjs +7 -7
  166. package/dist/harmony165.mjs.map +1 -1
  167. package/dist/harmony166.cjs +4 -6
  168. package/dist/harmony166.cjs.map +1 -1
  169. package/dist/harmony166.mjs +3 -5
  170. package/dist/harmony166.mjs.map +1 -1
  171. package/dist/harmony167.cjs +4 -6
  172. package/dist/harmony167.cjs.map +1 -1
  173. package/dist/harmony167.mjs +3 -5
  174. package/dist/harmony167.mjs.map +1 -1
  175. package/dist/harmony168.cjs +14 -10
  176. package/dist/harmony168.cjs.map +1 -1
  177. package/dist/harmony168.mjs +14 -10
  178. package/dist/harmony168.mjs.map +1 -1
  179. package/dist/harmony169.cjs +97 -10
  180. package/dist/harmony169.cjs.map +1 -1
  181. package/dist/harmony169.mjs +96 -9
  182. package/dist/harmony169.mjs.map +1 -1
  183. package/dist/harmony170.cjs +14 -7
  184. package/dist/harmony170.cjs.map +1 -1
  185. package/dist/harmony170.mjs +13 -6
  186. package/dist/harmony170.mjs.map +1 -1
  187. package/dist/harmony171.cjs +15 -10
  188. package/dist/harmony171.cjs.map +1 -1
  189. package/dist/harmony171.mjs +14 -9
  190. package/dist/harmony171.mjs.map +1 -1
  191. package/dist/harmony172.cjs +37 -25
  192. package/dist/harmony172.cjs.map +1 -1
  193. package/dist/harmony172.mjs +36 -24
  194. package/dist/harmony172.mjs.map +1 -1
  195. package/dist/harmony173.cjs +29 -7
  196. package/dist/harmony173.cjs.map +1 -1
  197. package/dist/harmony173.mjs +28 -6
  198. package/dist/harmony173.mjs.map +1 -1
  199. package/dist/harmony174.cjs +6 -9
  200. package/dist/harmony174.cjs.map +1 -1
  201. package/dist/harmony174.mjs +6 -9
  202. package/dist/harmony174.mjs.map +1 -1
  203. package/dist/harmony175.cjs +3 -3
  204. package/dist/harmony175.mjs +3 -3
  205. package/dist/harmony176.cjs +10 -97
  206. package/dist/harmony176.cjs.map +1 -1
  207. package/dist/harmony176.mjs +9 -96
  208. package/dist/harmony176.mjs.map +1 -1
  209. package/dist/harmony177.cjs +25 -14
  210. package/dist/harmony177.cjs.map +1 -1
  211. package/dist/harmony177.mjs +24 -13
  212. package/dist/harmony177.mjs.map +1 -1
  213. package/dist/harmony178.cjs +7 -15
  214. package/dist/harmony178.cjs.map +1 -1
  215. package/dist/harmony178.mjs +6 -14
  216. package/dist/harmony178.mjs.map +1 -1
  217. package/dist/harmony179.cjs +13 -37
  218. package/dist/harmony179.cjs.map +1 -1
  219. package/dist/harmony179.mjs +12 -36
  220. package/dist/harmony179.mjs.map +1 -1
  221. package/dist/harmony18.cjs +1 -1
  222. package/dist/harmony18.mjs +1 -1
  223. package/dist/harmony180.cjs +7 -29
  224. package/dist/harmony180.cjs.map +1 -1
  225. package/dist/harmony180.mjs +6 -28
  226. package/dist/harmony180.mjs.map +1 -1
  227. package/dist/harmony181.cjs +13 -32
  228. package/dist/harmony181.cjs.map +1 -1
  229. package/dist/harmony181.mjs +13 -32
  230. package/dist/harmony181.mjs.map +1 -1
  231. package/dist/harmony182.cjs +14 -12
  232. package/dist/harmony182.cjs.map +1 -1
  233. package/dist/harmony182.mjs +14 -12
  234. package/dist/harmony182.mjs.map +1 -1
  235. package/dist/harmony183.cjs +14 -13
  236. package/dist/harmony183.cjs.map +1 -1
  237. package/dist/harmony183.mjs +14 -13
  238. package/dist/harmony183.mjs.map +1 -1
  239. package/dist/harmony184.cjs +31 -15
  240. package/dist/harmony184.cjs.map +1 -1
  241. package/dist/harmony184.mjs +31 -15
  242. package/dist/harmony184.mjs.map +1 -1
  243. package/dist/harmony185.cjs +11 -4
  244. package/dist/harmony185.cjs.map +1 -1
  245. package/dist/harmony185.mjs +11 -4
  246. package/dist/harmony185.mjs.map +1 -1
  247. package/dist/harmony186.cjs +15 -10
  248. package/dist/harmony186.cjs.map +1 -1
  249. package/dist/harmony186.mjs +15 -10
  250. package/dist/harmony186.mjs.map +1 -1
  251. package/dist/harmony187.cjs +18 -13
  252. package/dist/harmony187.cjs.map +1 -1
  253. package/dist/harmony187.mjs +18 -13
  254. package/dist/harmony187.mjs.map +1 -1
  255. package/dist/harmony188.cjs +10 -19
  256. package/dist/harmony188.cjs.map +1 -1
  257. package/dist/harmony188.mjs +10 -19
  258. package/dist/harmony188.mjs.map +1 -1
  259. package/dist/harmony189.cjs +4 -12
  260. package/dist/harmony189.cjs.map +1 -1
  261. package/dist/harmony189.mjs +4 -12
  262. package/dist/harmony189.mjs.map +1 -1
  263. package/dist/harmony191.cjs +1 -1
  264. package/dist/harmony191.mjs +1 -1
  265. package/dist/harmony21.cjs +1 -1
  266. package/dist/harmony21.mjs +1 -1
  267. package/dist/harmony29.cjs +1 -1
  268. package/dist/harmony29.mjs +1 -1
  269. package/dist/harmony30.cjs +1 -1
  270. package/dist/harmony30.mjs +1 -1
  271. package/dist/harmony42.cjs +1 -1
  272. package/dist/harmony42.mjs +1 -1
  273. package/dist/harmony43.cjs +1 -1
  274. package/dist/harmony43.mjs +1 -1
  275. package/dist/harmony44.cjs +1 -1
  276. package/dist/harmony44.mjs +1 -1
  277. package/dist/harmony60.cjs +1 -1
  278. package/dist/harmony60.mjs +1 -1
  279. package/dist/harmony62.cjs +1 -1
  280. package/dist/harmony62.mjs +1 -1
  281. package/dist/harmony72.cjs +1 -1
  282. package/dist/harmony72.mjs +1 -1
  283. package/dist/harmony73.cjs +1 -1
  284. package/dist/harmony73.mjs +1 -1
  285. package/dist/harmony78.cjs +1 -1
  286. package/dist/harmony78.mjs +1 -1
  287. package/dist/harmony85.cjs +1 -1
  288. package/dist/harmony85.mjs +1 -1
  289. package/dist/harmony98.cjs +4 -2
  290. package/dist/harmony98.cjs.map +1 -1
  291. package/dist/harmony98.mjs +4 -2
  292. package/dist/harmony98.mjs.map +1 -1
  293. package/dist/types/src/features/navigation/fixtures/AppSidebar.fixtures.d.ts +2 -0
  294. package/dist/types/src/features/publicApi/team.d.ts +4 -0
  295. package/dist/types/src/features/publicApi/types/teamTypes.d.ts +11 -1
  296. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"harmony179.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
+ {"version":3,"file":"harmony179.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const createHeaderBuilderMiddleware = require("./harmony23.cjs");
4
4
  const jwtTokenPayload = require("./harmony21.cjs");
5
5
  const UnauthorizedError = require("./harmony20.cjs");
6
- const NewJwtIssuedEvent = require("./harmony120.cjs");
6
+ const NewJwtIssuedEvent = require("./harmony118.cjs");
7
7
  function JwtAuthHeaderBuilderMiddleware(props) {
8
8
  return createHeaderBuilderMiddleware.createHeaderBuilderMiddleware(async (builder) => {
9
9
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  import { createHeaderBuilderMiddleware } from "./harmony23.mjs";
2
2
  import { parseJwtTokenPayload } from "./harmony21.mjs";
3
3
  import { UnauthorizedError } from "./harmony20.mjs";
4
- import { NewJwtIssuedEvent } from "./harmony120.mjs";
4
+ import { NewJwtIssuedEvent } from "./harmony118.mjs";
5
5
  function JwtAuthHeaderBuilderMiddleware(props) {
6
6
  return createHeaderBuilderMiddleware(async (builder) => {
7
7
  var _a, _b;
@@ -1,31 +1,9 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const debounce = require("./harmony176.cjs");
4
- const isObject = require("./harmony177.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;
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const iconContainer = "_iconContainer_nz34m_1";
4
+ const styles = {
5
+ iconContainer
6
+ };
7
+ exports.default = styles;
8
+ exports.iconContainer = iconContainer;
31
9
  //# sourceMappingURL=harmony180.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony180.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
+ {"version":3,"file":"harmony180.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,31 +1,9 @@
1
- import { __require as requireDebounce } from "./harmony176.mjs";
2
- import { __require as requireIsObject } from "./harmony177.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
- }
1
+ const iconContainer = "_iconContainer_nz34m_1";
2
+ const styles = {
3
+ iconContainer
4
+ };
28
5
  export {
29
- requireThrottle as __require
6
+ styles as default,
7
+ iconContainer
30
8
  };
31
9
  //# sourceMappingURL=harmony180.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony180.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
+ {"version":3,"file":"harmony180.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,35 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const assertIsNever = require("./harmony185.cjs");
4
- const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
5
- const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
6
- const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
7
- const callMatchFunction = (matcher, category, projectType) => {
8
- if (isFullProjectTypeMatch(matcher)) {
9
- return matcher[projectType]();
10
- }
11
- if (isPartialProjectTypeMatch(matcher)) {
12
- return (matcher[projectType] || matcher.otherwise)();
13
- }
14
- if (isCategoryProjectTypeMatch(matcher)) {
15
- return matcher[category]();
16
- }
17
- return false;
18
- };
19
- const canPerformActionByProjectType = (projectType, match) => {
20
- switch (projectType) {
21
- case void 0:
22
- return false;
23
- case "localization_files":
24
- case "paged_documents":
25
- case "content_integration":
26
- return callMatchFunction(match, "classic", projectType);
27
- case "marketing":
28
- case "marketing_integrations":
29
- return callMatchFunction(match, "marketing", projectType);
30
- default:
31
- return assertIsNever.assertIsNever(projectType);
32
- }
33
- };
34
- exports.canPerformActionByProjectType = canPerformActionByProjectType;
3
+ const _freeGlobal = require("./harmony185.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;
35
16
  //# sourceMappingURL=harmony181.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony181.cjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\n\nimport type { ProjectType } from '../types/projectType'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":["assertIsNever"],"mappings":";;;AAUA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAOA,cAAAA,cAAc,WAAW;AAAA,EAAA;AAEnC;;"}
1
+ {"version":3,"file":"harmony181.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,35 +1,16 @@
1
- import { assertIsNever } from "./harmony185.mjs";
2
- const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
3
- const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
4
- const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
5
- const callMatchFunction = (matcher, category, projectType) => {
6
- if (isFullProjectTypeMatch(matcher)) {
7
- return matcher[projectType]();
8
- }
9
- if (isPartialProjectTypeMatch(matcher)) {
10
- return (matcher[projectType] || matcher.otherwise)();
11
- }
12
- if (isCategoryProjectTypeMatch(matcher)) {
13
- return matcher[category]();
14
- }
15
- return false;
16
- };
17
- const canPerformActionByProjectType = (projectType, match) => {
18
- switch (projectType) {
19
- case void 0:
20
- return false;
21
- case "localization_files":
22
- case "paged_documents":
23
- case "content_integration":
24
- return callMatchFunction(match, "classic", projectType);
25
- case "marketing":
26
- case "marketing_integrations":
27
- return callMatchFunction(match, "marketing", projectType);
28
- default:
29
- return assertIsNever(projectType);
30
- }
31
- };
1
+ import { __require as require_freeGlobal } from "./harmony185.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
+ }
32
13
  export {
33
- canPerformActionByProjectType
14
+ require_root as __require
34
15
  };
35
16
  //# sourceMappingURL=harmony181.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony181.mjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\n\nimport type { ProjectType } from '../types/projectType'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":[],"mappings":";AAUA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAO,cAAc,WAAW;AAAA,EAAA;AAEnC;"}
1
+ {"version":3,"file":"harmony181.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,16 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const _freeGlobal = require("./harmony186.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;
3
+ const _trimmedEndIndex = require("./harmony186.cjs");
4
+ var _baseTrim;
5
+ var hasRequired_baseTrim;
6
+ function require_baseTrim() {
7
+ if (hasRequired_baseTrim) return _baseTrim;
8
+ hasRequired_baseTrim = 1;
9
+ var trimmedEndIndex = _trimmedEndIndex.__require();
10
+ var reTrimStart = /^\s+/;
11
+ function baseTrim(string) {
12
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
13
+ }
14
+ _baseTrim = baseTrim;
15
+ return _baseTrim;
14
16
  }
15
- exports.__require = require_root;
17
+ exports.__require = require_baseTrim;
16
18
  //# sourceMappingURL=harmony182.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony182.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":"harmony182.cjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,kBAAkBA,iBAAAA,UAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,16 +1,18 @@
1
- import { __require as require_freeGlobal } from "./harmony186.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;
1
+ import { __require as require_trimmedEndIndex } from "./harmony186.mjs";
2
+ var _baseTrim;
3
+ var hasRequired_baseTrim;
4
+ function require_baseTrim() {
5
+ if (hasRequired_baseTrim) return _baseTrim;
6
+ hasRequired_baseTrim = 1;
7
+ var trimmedEndIndex = require_trimmedEndIndex();
8
+ var reTrimStart = /^\s+/;
9
+ function baseTrim(string) {
10
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
11
+ }
12
+ _baseTrim = baseTrim;
13
+ return _baseTrim;
12
14
  }
13
15
  export {
14
- require_root as __require
16
+ require_baseTrim as __require
15
17
  };
16
18
  //# sourceMappingURL=harmony182.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony182.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":"harmony182.mjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,kBAAkBA,wBAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;","x_google_ignoreList":[0]}
@@ -1,18 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const _trimmedEndIndex = require("./harmony187.cjs");
4
- var _baseTrim;
5
- var hasRequired_baseTrim;
6
- function require_baseTrim() {
7
- if (hasRequired_baseTrim) return _baseTrim;
8
- hasRequired_baseTrim = 1;
9
- var trimmedEndIndex = _trimmedEndIndex.__require();
10
- var reTrimStart = /^\s+/;
11
- function baseTrim(string) {
12
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
3
+ const _baseGetTag = require("./harmony187.cjs");
4
+ const isObjectLike = require("./harmony188.cjs");
5
+ var isSymbol_1;
6
+ var hasRequiredIsSymbol;
7
+ function requireIsSymbol() {
8
+ if (hasRequiredIsSymbol) return isSymbol_1;
9
+ hasRequiredIsSymbol = 1;
10
+ var baseGetTag = _baseGetTag.__require(), isObjectLike$1 = isObjectLike.__require();
11
+ var symbolTag = "[object Symbol]";
12
+ function isSymbol(value) {
13
+ return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag(value) == symbolTag;
13
14
  }
14
- _baseTrim = baseTrim;
15
- return _baseTrim;
15
+ isSymbol_1 = isSymbol;
16
+ return isSymbol_1;
16
17
  }
17
- exports.__require = require_baseTrim;
18
+ exports.__require = requireIsSymbol;
18
19
  //# sourceMappingURL=harmony183.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony183.cjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,kBAAkBA,iBAAAA,UAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"harmony183.cjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","isObjectLike","require$$1"],"mappings":";;;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB,GACrCC,iBAAeC,aAAAA,UAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpBD,eAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
@@ -1,18 +1,19 @@
1
- import { __require as require_trimmedEndIndex } from "./harmony187.mjs";
2
- var _baseTrim;
3
- var hasRequired_baseTrim;
4
- function require_baseTrim() {
5
- if (hasRequired_baseTrim) return _baseTrim;
6
- hasRequired_baseTrim = 1;
7
- var trimmedEndIndex = require_trimmedEndIndex();
8
- var reTrimStart = /^\s+/;
9
- function baseTrim(string) {
10
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
1
+ import { __require as require_baseGetTag } from "./harmony187.mjs";
2
+ import { __require as requireIsObjectLike } from "./harmony188.mjs";
3
+ var isSymbol_1;
4
+ var hasRequiredIsSymbol;
5
+ function requireIsSymbol() {
6
+ if (hasRequiredIsSymbol) return isSymbol_1;
7
+ hasRequiredIsSymbol = 1;
8
+ var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
9
+ var symbolTag = "[object Symbol]";
10
+ function isSymbol(value) {
11
+ return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
11
12
  }
12
- _baseTrim = baseTrim;
13
- return _baseTrim;
13
+ isSymbol_1 = isSymbol;
14
+ return isSymbol_1;
14
15
  }
15
16
  export {
16
- require_baseTrim as __require
17
+ requireIsSymbol as __require
17
18
  };
18
19
  //# sourceMappingURL=harmony183.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony183.mjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,kBAAkBA,wBAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"harmony183.mjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,aAAaA,mBAAwB,GACrC,eAAeC,oBAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpB,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
@@ -1,19 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const _baseGetTag = require("./harmony188.cjs");
4
- const isObjectLike = require("./harmony189.cjs");
5
- var isSymbol_1;
6
- var hasRequiredIsSymbol;
7
- function requireIsSymbol() {
8
- if (hasRequiredIsSymbol) return isSymbol_1;
9
- hasRequiredIsSymbol = 1;
10
- var baseGetTag = _baseGetTag.__require(), isObjectLike$1 = isObjectLike.__require();
11
- var symbolTag = "[object Symbol]";
12
- function isSymbol(value) {
13
- return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag(value) == symbolTag;
3
+ const assertIsNever = require("./harmony189.cjs");
4
+ const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
5
+ const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
6
+ const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
7
+ const callMatchFunction = (matcher, category, projectType) => {
8
+ if (isFullProjectTypeMatch(matcher)) {
9
+ return matcher[projectType]();
14
10
  }
15
- isSymbol_1 = isSymbol;
16
- return isSymbol_1;
17
- }
18
- exports.__require = requireIsSymbol;
11
+ if (isPartialProjectTypeMatch(matcher)) {
12
+ return (matcher[projectType] || matcher.otherwise)();
13
+ }
14
+ if (isCategoryProjectTypeMatch(matcher)) {
15
+ return matcher[category]();
16
+ }
17
+ return false;
18
+ };
19
+ const canPerformActionByProjectType = (projectType, match) => {
20
+ switch (projectType) {
21
+ case void 0:
22
+ return false;
23
+ case "localization_files":
24
+ case "paged_documents":
25
+ case "content_integration":
26
+ return callMatchFunction(match, "classic", projectType);
27
+ case "marketing":
28
+ case "marketing_integrations":
29
+ return callMatchFunction(match, "marketing", projectType);
30
+ default:
31
+ return assertIsNever.assertIsNever(projectType);
32
+ }
33
+ };
34
+ exports.canPerformActionByProjectType = canPerformActionByProjectType;
19
35
  //# sourceMappingURL=harmony184.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony184.cjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","isObjectLike","require$$1"],"mappings":";;;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB,GACrCC,iBAAeC,aAAAA,UAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpBD,eAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"harmony184.cjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\n\nimport type { ProjectType } from '../types/projectType'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":["assertIsNever"],"mappings":";;;AAUA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAOA,cAAAA,cAAc,WAAW;AAAA,EAAA;AAEnC;;"}
@@ -1,19 +1,35 @@
1
- import { __require as require_baseGetTag } from "./harmony188.mjs";
2
- import { __require as requireIsObjectLike } from "./harmony189.mjs";
3
- var isSymbol_1;
4
- var hasRequiredIsSymbol;
5
- function requireIsSymbol() {
6
- if (hasRequiredIsSymbol) return isSymbol_1;
7
- hasRequiredIsSymbol = 1;
8
- var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
9
- var symbolTag = "[object Symbol]";
10
- function isSymbol(value) {
11
- return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
1
+ import { assertIsNever } from "./harmony189.mjs";
2
+ const isCategoryProjectTypeMatch = (matcher) => "marketing" in matcher && typeof matcher.marketing === "function" && "classic" in matcher && typeof matcher.classic === "function";
3
+ const isPartialProjectTypeMatch = (matcher) => "otherwise" in matcher && typeof matcher.otherwise === "function";
4
+ const isFullProjectTypeMatch = (matcher) => !isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher);
5
+ const callMatchFunction = (matcher, category, projectType) => {
6
+ if (isFullProjectTypeMatch(matcher)) {
7
+ return matcher[projectType]();
12
8
  }
13
- isSymbol_1 = isSymbol;
14
- return isSymbol_1;
15
- }
9
+ if (isPartialProjectTypeMatch(matcher)) {
10
+ return (matcher[projectType] || matcher.otherwise)();
11
+ }
12
+ if (isCategoryProjectTypeMatch(matcher)) {
13
+ return matcher[category]();
14
+ }
15
+ return false;
16
+ };
17
+ const canPerformActionByProjectType = (projectType, match) => {
18
+ switch (projectType) {
19
+ case void 0:
20
+ return false;
21
+ case "localization_files":
22
+ case "paged_documents":
23
+ case "content_integration":
24
+ return callMatchFunction(match, "classic", projectType);
25
+ case "marketing":
26
+ case "marketing_integrations":
27
+ return callMatchFunction(match, "marketing", projectType);
28
+ default:
29
+ return assertIsNever(projectType);
30
+ }
31
+ };
16
32
  export {
17
- requireIsSymbol as __require
33
+ canPerformActionByProjectType
18
34
  };
19
35
  //# sourceMappingURL=harmony184.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony184.mjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,aAAaA,mBAAwB,GACrC,eAAeC,oBAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpB,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"harmony184.mjs","sources":["../src/features/permissions/utils/canPerformActionByProjectType.ts"],"sourcesContent":["import { assertIsNever } from '@utils/types/assertIsNever'\n\nimport type { ProjectType } from '../types/projectType'\n\ntype FullProjectTypeMatch = { [K in ProjectType]: () => boolean }\ntype PartialProjectTypeMatch = { [K in ProjectType]?: () => boolean } & { otherwise: () => boolean }\ntype CategoryProjectTypeMatch = { classic: () => boolean; marketing: () => boolean }\n\ntype ProjectTypeMatch = FullProjectTypeMatch | PartialProjectTypeMatch | CategoryProjectTypeMatch\n\nconst isCategoryProjectTypeMatch = (\n\tmatcher: ProjectTypeMatch,\n): matcher is CategoryProjectTypeMatch =>\n\t'marketing' in matcher &&\n\ttypeof matcher.marketing === 'function' &&\n\t'classic' in matcher &&\n\ttypeof matcher.classic === 'function'\n\nconst isPartialProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is PartialProjectTypeMatch =>\n\t'otherwise' in matcher && typeof matcher.otherwise === 'function'\n\nconst isFullProjectTypeMatch = (matcher: ProjectTypeMatch): matcher is FullProjectTypeMatch =>\n\t!isCategoryProjectTypeMatch(matcher) && !isPartialProjectTypeMatch(matcher)\n\nconst callMatchFunction = (\n\tmatcher: ProjectTypeMatch,\n\tcategory: 'classic' | 'marketing',\n\tprojectType: ProjectType,\n): boolean => {\n\tif (isFullProjectTypeMatch(matcher)) {\n\t\treturn matcher[projectType]()\n\t}\n\n\tif (isPartialProjectTypeMatch(matcher)) {\n\t\treturn (matcher[projectType] || matcher.otherwise)()\n\t}\n\n\tif (isCategoryProjectTypeMatch(matcher)) {\n\t\treturn matcher[category]()\n\t}\n\n\treturn false\n}\n\nexport const canPerformActionByProjectType = (\n\tprojectType: ProjectType | undefined,\n\tmatch: ProjectTypeMatch,\n) => {\n\tswitch (projectType) {\n\t\tcase undefined:\n\t\t\treturn false\n\n\t\tcase 'localization_files':\n\t\tcase 'paged_documents':\n\t\tcase 'content_integration':\n\t\t\treturn callMatchFunction(match, 'classic', projectType)\n\n\t\tcase 'marketing':\n\t\tcase 'marketing_integrations':\n\t\t\treturn callMatchFunction(match, 'marketing', projectType)\n\n\t\tdefault:\n\t\t\treturn assertIsNever(projectType)\n\t}\n}\n"],"names":[],"mappings":";AAUA,MAAM,6BAA6B,CAClC,YAEA,eAAe,WACf,OAAO,QAAQ,cAAc,cAC7B,aAAa,WACb,OAAO,QAAQ,YAAY;AAE5B,MAAM,4BAA4B,CAAC,YAClC,eAAe,WAAW,OAAO,QAAQ,cAAc;AAExD,MAAM,yBAAyB,CAAC,YAC/B,CAAC,2BAA2B,OAAO,KAAK,CAAC,0BAA0B,OAAO;AAE3E,MAAM,oBAAoB,CACzB,SACA,UACA,gBACa;AACT,MAAA,uBAAuB,OAAO,GAAG;AAC7B,WAAA,QAAQ,WAAW,EAAE;AAAA,EAAA;AAGzB,MAAA,0BAA0B,OAAO,GAAG;AACvC,YAAQ,QAAQ,WAAW,KAAK,QAAQ,WAAW;AAAA,EAAA;AAGhD,MAAA,2BAA2B,OAAO,GAAG;AACjC,WAAA,QAAQ,QAAQ,EAAE;AAAA,EAAA;AAGnB,SAAA;AACR;AAEa,MAAA,gCAAgC,CAC5C,aACA,UACI;AACJ,UAAQ,aAAa;AAAA,IACpB,KAAK;AACG,aAAA;AAAA,IAER,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,WAAW,WAAW;AAAA,IAEvD,KAAK;AAAA,IACL,KAAK;AACG,aAAA,kBAAkB,OAAO,aAAa,WAAW;AAAA,IAEzD;AACC,aAAO,cAAc,WAAW;AAAA,EAAA;AAEnC;"}
@@ -1,7 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const assertIsNever = (value) => {
4
- throw new Error(`Unexpected value: ${value}`);
5
- };
6
- exports.assertIsNever = assertIsNever;
3
+ const _commonjsHelpers = require("./harmony190.cjs");
4
+ var _freeGlobal;
5
+ var hasRequired_freeGlobal;
6
+ function require_freeGlobal() {
7
+ if (hasRequired_freeGlobal) return _freeGlobal;
8
+ hasRequired_freeGlobal = 1;
9
+ var freeGlobal = typeof _commonjsHelpers.commonjsGlobal == "object" && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
10
+ _freeGlobal = freeGlobal;
11
+ return _freeGlobal;
12
+ }
13
+ exports.__require = require_freeGlobal;
7
14
  //# sourceMappingURL=harmony185.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony185.cjs","sources":["../src/utils/types/assertIsNever.ts"],"sourcesContent":["export const assertIsNever = (value: never): never => {\n\tthrow new Error(`Unexpected value: ${value}`)\n}\n"],"names":[],"mappings":";;AAAa,MAAA,gBAAgB,CAAC,UAAwB;AACrD,QAAM,IAAI,MAAM,qBAAqB,KAAK,EAAE;AAC7C;;"}
1
+ {"version":3,"file":"harmony185.cjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;;;AACA,MAAI,aAAa,OAAOA,iBAAAA,kBAAU,YAAYA,iBAAM,kBAAIA,gCAAO,WAAW,UAAUA,iBAAM;AAE1F,gBAAiB;;;;","x_google_ignoreList":[0]}