aiware-js 2.33.0 → 2.34.1

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 (442) hide show
  1. package/files/dosis-all-200-normal.woff +0 -0
  2. package/files/dosis-all-300-normal.woff +0 -0
  3. package/files/dosis-all-400-normal.woff +0 -0
  4. package/files/dosis-all-500-normal.woff +0 -0
  5. package/files/dosis-all-600-normal.woff +0 -0
  6. package/files/dosis-all-700-normal.woff +0 -0
  7. package/files/dosis-all-800-normal.woff +0 -0
  8. package/files/dosis-latin-200-normal.woff +0 -0
  9. package/files/dosis-latin-200-normal.woff2 +0 -0
  10. package/files/dosis-latin-300-normal.woff +0 -0
  11. package/files/dosis-latin-300-normal.woff2 +0 -0
  12. package/files/dosis-latin-400-normal.woff +0 -0
  13. package/files/dosis-latin-400-normal.woff2 +0 -0
  14. package/files/dosis-latin-500-normal.woff +0 -0
  15. package/files/dosis-latin-500-normal.woff2 +0 -0
  16. package/files/dosis-latin-600-normal.woff +0 -0
  17. package/files/dosis-latin-600-normal.woff2 +0 -0
  18. package/files/dosis-latin-700-normal.woff +0 -0
  19. package/files/dosis-latin-700-normal.woff2 +0 -0
  20. package/files/dosis-latin-800-normal.woff +0 -0
  21. package/files/dosis-latin-800-normal.woff2 +0 -0
  22. package/files/dosis-latin-ext-200-normal.woff +0 -0
  23. package/files/dosis-latin-ext-200-normal.woff2 +0 -0
  24. package/files/dosis-latin-ext-300-normal.woff +0 -0
  25. package/files/dosis-latin-ext-300-normal.woff2 +0 -0
  26. package/files/dosis-latin-ext-400-normal.woff +0 -0
  27. package/files/dosis-latin-ext-400-normal.woff2 +0 -0
  28. package/files/dosis-latin-ext-500-normal.woff +0 -0
  29. package/files/dosis-latin-ext-500-normal.woff2 +0 -0
  30. package/files/dosis-latin-ext-600-normal.woff +0 -0
  31. package/files/dosis-latin-ext-600-normal.woff2 +0 -0
  32. package/files/dosis-latin-ext-700-normal.woff +0 -0
  33. package/files/dosis-latin-ext-700-normal.woff2 +0 -0
  34. package/files/dosis-latin-ext-800-normal.woff +0 -0
  35. package/files/dosis-latin-ext-800-normal.woff2 +0 -0
  36. package/files/dosis-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  37. package/files/dosis-latin-variable-wghtOnly-normal.woff2 +0 -0
  38. package/files/dosis-vietnamese-200-normal.woff +0 -0
  39. package/files/dosis-vietnamese-200-normal.woff2 +0 -0
  40. package/files/dosis-vietnamese-300-normal.woff +0 -0
  41. package/files/dosis-vietnamese-300-normal.woff2 +0 -0
  42. package/files/dosis-vietnamese-400-normal.woff +0 -0
  43. package/files/dosis-vietnamese-400-normal.woff2 +0 -0
  44. package/files/dosis-vietnamese-500-normal.woff +0 -0
  45. package/files/dosis-vietnamese-500-normal.woff2 +0 -0
  46. package/files/dosis-vietnamese-600-normal.woff +0 -0
  47. package/files/dosis-vietnamese-600-normal.woff2 +0 -0
  48. package/files/dosis-vietnamese-700-normal.woff +0 -0
  49. package/files/dosis-vietnamese-700-normal.woff2 +0 -0
  50. package/files/dosis-vietnamese-800-normal.woff +0 -0
  51. package/files/dosis-vietnamese-800-normal.woff2 +0 -0
  52. package/files/dosis-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  53. package/files/nunito-all-200-italic.woff +0 -0
  54. package/files/nunito-all-200-normal.woff +0 -0
  55. package/files/nunito-all-300-italic.woff +0 -0
  56. package/files/nunito-all-300-normal.woff +0 -0
  57. package/files/nunito-all-400-italic.woff +0 -0
  58. package/files/nunito-all-400-normal.woff +0 -0
  59. package/files/nunito-all-500-italic.woff +0 -0
  60. package/files/nunito-all-500-normal.woff +0 -0
  61. package/files/nunito-all-600-italic.woff +0 -0
  62. package/files/nunito-all-600-normal.woff +0 -0
  63. package/files/nunito-all-700-italic.woff +0 -0
  64. package/files/nunito-all-700-normal.woff +0 -0
  65. package/files/nunito-all-800-italic.woff +0 -0
  66. package/files/nunito-all-800-normal.woff +0 -0
  67. package/files/nunito-all-900-italic.woff +0 -0
  68. package/files/nunito-all-900-normal.woff +0 -0
  69. package/files/nunito-cyrillic-200-italic.woff +0 -0
  70. package/files/nunito-cyrillic-200-italic.woff2 +0 -0
  71. package/files/nunito-cyrillic-200-normal.woff +0 -0
  72. package/files/nunito-cyrillic-200-normal.woff2 +0 -0
  73. package/files/nunito-cyrillic-300-italic.woff +0 -0
  74. package/files/nunito-cyrillic-300-italic.woff2 +0 -0
  75. package/files/nunito-cyrillic-300-normal.woff +0 -0
  76. package/files/nunito-cyrillic-300-normal.woff2 +0 -0
  77. package/files/nunito-cyrillic-400-italic.woff +0 -0
  78. package/files/nunito-cyrillic-400-italic.woff2 +0 -0
  79. package/files/nunito-cyrillic-400-normal.woff +0 -0
  80. package/files/nunito-cyrillic-400-normal.woff2 +0 -0
  81. package/files/nunito-cyrillic-500-italic.woff +0 -0
  82. package/files/nunito-cyrillic-500-italic.woff2 +0 -0
  83. package/files/nunito-cyrillic-500-normal.woff +0 -0
  84. package/files/nunito-cyrillic-500-normal.woff2 +0 -0
  85. package/files/nunito-cyrillic-600-italic.woff +0 -0
  86. package/files/nunito-cyrillic-600-italic.woff2 +0 -0
  87. package/files/nunito-cyrillic-600-normal.woff +0 -0
  88. package/files/nunito-cyrillic-600-normal.woff2 +0 -0
  89. package/files/nunito-cyrillic-700-italic.woff +0 -0
  90. package/files/nunito-cyrillic-700-italic.woff2 +0 -0
  91. package/files/nunito-cyrillic-700-normal.woff +0 -0
  92. package/files/nunito-cyrillic-700-normal.woff2 +0 -0
  93. package/files/nunito-cyrillic-800-italic.woff +0 -0
  94. package/files/nunito-cyrillic-800-italic.woff2 +0 -0
  95. package/files/nunito-cyrillic-800-normal.woff +0 -0
  96. package/files/nunito-cyrillic-800-normal.woff2 +0 -0
  97. package/files/nunito-cyrillic-900-italic.woff +0 -0
  98. package/files/nunito-cyrillic-900-italic.woff2 +0 -0
  99. package/files/nunito-cyrillic-900-normal.woff +0 -0
  100. package/files/nunito-cyrillic-900-normal.woff2 +0 -0
  101. package/files/nunito-cyrillic-ext-200-italic.woff +0 -0
  102. package/files/nunito-cyrillic-ext-200-italic.woff2 +0 -0
  103. package/files/nunito-cyrillic-ext-200-normal.woff +0 -0
  104. package/files/nunito-cyrillic-ext-200-normal.woff2 +0 -0
  105. package/files/nunito-cyrillic-ext-300-italic.woff +0 -0
  106. package/files/nunito-cyrillic-ext-300-italic.woff2 +0 -0
  107. package/files/nunito-cyrillic-ext-300-normal.woff +0 -0
  108. package/files/nunito-cyrillic-ext-300-normal.woff2 +0 -0
  109. package/files/nunito-cyrillic-ext-400-italic.woff +0 -0
  110. package/files/nunito-cyrillic-ext-400-italic.woff2 +0 -0
  111. package/files/nunito-cyrillic-ext-400-normal.woff +0 -0
  112. package/files/nunito-cyrillic-ext-400-normal.woff2 +0 -0
  113. package/files/nunito-cyrillic-ext-500-italic.woff +0 -0
  114. package/files/nunito-cyrillic-ext-500-italic.woff2 +0 -0
  115. package/files/nunito-cyrillic-ext-500-normal.woff +0 -0
  116. package/files/nunito-cyrillic-ext-500-normal.woff2 +0 -0
  117. package/files/nunito-cyrillic-ext-600-italic.woff +0 -0
  118. package/files/nunito-cyrillic-ext-600-italic.woff2 +0 -0
  119. package/files/nunito-cyrillic-ext-600-normal.woff +0 -0
  120. package/files/nunito-cyrillic-ext-600-normal.woff2 +0 -0
  121. package/files/nunito-cyrillic-ext-700-italic.woff +0 -0
  122. package/files/nunito-cyrillic-ext-700-italic.woff2 +0 -0
  123. package/files/nunito-cyrillic-ext-700-normal.woff +0 -0
  124. package/files/nunito-cyrillic-ext-700-normal.woff2 +0 -0
  125. package/files/nunito-cyrillic-ext-800-italic.woff +0 -0
  126. package/files/nunito-cyrillic-ext-800-italic.woff2 +0 -0
  127. package/files/nunito-cyrillic-ext-800-normal.woff +0 -0
  128. package/files/nunito-cyrillic-ext-800-normal.woff2 +0 -0
  129. package/files/nunito-cyrillic-ext-900-italic.woff +0 -0
  130. package/files/nunito-cyrillic-ext-900-italic.woff2 +0 -0
  131. package/files/nunito-cyrillic-ext-900-normal.woff +0 -0
  132. package/files/nunito-cyrillic-ext-900-normal.woff2 +0 -0
  133. package/files/nunito-cyrillic-ext-variable-wghtOnly-italic.woff2 +0 -0
  134. package/files/nunito-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  135. package/files/nunito-cyrillic-variable-wghtOnly-italic.woff2 +0 -0
  136. package/files/nunito-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  137. package/files/nunito-latin-200-italic.woff +0 -0
  138. package/files/nunito-latin-200-italic.woff2 +0 -0
  139. package/files/nunito-latin-200-normal.woff +0 -0
  140. package/files/nunito-latin-200-normal.woff2 +0 -0
  141. package/files/nunito-latin-300-italic.woff +0 -0
  142. package/files/nunito-latin-300-italic.woff2 +0 -0
  143. package/files/nunito-latin-300-normal.woff +0 -0
  144. package/files/nunito-latin-300-normal.woff2 +0 -0
  145. package/files/nunito-latin-400-italic.woff +0 -0
  146. package/files/nunito-latin-400-italic.woff2 +0 -0
  147. package/files/nunito-latin-400-normal.woff +0 -0
  148. package/files/nunito-latin-400-normal.woff2 +0 -0
  149. package/files/nunito-latin-500-italic.woff +0 -0
  150. package/files/nunito-latin-500-italic.woff2 +0 -0
  151. package/files/nunito-latin-500-normal.woff +0 -0
  152. package/files/nunito-latin-500-normal.woff2 +0 -0
  153. package/files/nunito-latin-600-italic.woff +0 -0
  154. package/files/nunito-latin-600-italic.woff2 +0 -0
  155. package/files/nunito-latin-600-normal.woff +0 -0
  156. package/files/nunito-latin-600-normal.woff2 +0 -0
  157. package/files/nunito-latin-700-italic.woff +0 -0
  158. package/files/nunito-latin-700-italic.woff2 +0 -0
  159. package/files/nunito-latin-700-normal.woff +0 -0
  160. package/files/nunito-latin-700-normal.woff2 +0 -0
  161. package/files/nunito-latin-800-italic.woff +0 -0
  162. package/files/nunito-latin-800-italic.woff2 +0 -0
  163. package/files/nunito-latin-800-normal.woff +0 -0
  164. package/files/nunito-latin-800-normal.woff2 +0 -0
  165. package/files/nunito-latin-900-italic.woff +0 -0
  166. package/files/nunito-latin-900-italic.woff2 +0 -0
  167. package/files/nunito-latin-900-normal.woff +0 -0
  168. package/files/nunito-latin-900-normal.woff2 +0 -0
  169. package/files/nunito-latin-ext-200-italic.woff +0 -0
  170. package/files/nunito-latin-ext-200-italic.woff2 +0 -0
  171. package/files/nunito-latin-ext-200-normal.woff +0 -0
  172. package/files/nunito-latin-ext-200-normal.woff2 +0 -0
  173. package/files/nunito-latin-ext-300-italic.woff +0 -0
  174. package/files/nunito-latin-ext-300-italic.woff2 +0 -0
  175. package/files/nunito-latin-ext-300-normal.woff +0 -0
  176. package/files/nunito-latin-ext-300-normal.woff2 +0 -0
  177. package/files/nunito-latin-ext-400-italic.woff +0 -0
  178. package/files/nunito-latin-ext-400-italic.woff2 +0 -0
  179. package/files/nunito-latin-ext-400-normal.woff +0 -0
  180. package/files/nunito-latin-ext-400-normal.woff2 +0 -0
  181. package/files/nunito-latin-ext-500-italic.woff +0 -0
  182. package/files/nunito-latin-ext-500-italic.woff2 +0 -0
  183. package/files/nunito-latin-ext-500-normal.woff +0 -0
  184. package/files/nunito-latin-ext-500-normal.woff2 +0 -0
  185. package/files/nunito-latin-ext-600-italic.woff +0 -0
  186. package/files/nunito-latin-ext-600-italic.woff2 +0 -0
  187. package/files/nunito-latin-ext-600-normal.woff +0 -0
  188. package/files/nunito-latin-ext-600-normal.woff2 +0 -0
  189. package/files/nunito-latin-ext-700-italic.woff +0 -0
  190. package/files/nunito-latin-ext-700-italic.woff2 +0 -0
  191. package/files/nunito-latin-ext-700-normal.woff +0 -0
  192. package/files/nunito-latin-ext-700-normal.woff2 +0 -0
  193. package/files/nunito-latin-ext-800-italic.woff +0 -0
  194. package/files/nunito-latin-ext-800-italic.woff2 +0 -0
  195. package/files/nunito-latin-ext-800-normal.woff +0 -0
  196. package/files/nunito-latin-ext-800-normal.woff2 +0 -0
  197. package/files/nunito-latin-ext-900-italic.woff +0 -0
  198. package/files/nunito-latin-ext-900-italic.woff2 +0 -0
  199. package/files/nunito-latin-ext-900-normal.woff +0 -0
  200. package/files/nunito-latin-ext-900-normal.woff2 +0 -0
  201. package/files/nunito-latin-ext-variable-wghtOnly-italic.woff2 +0 -0
  202. package/files/nunito-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  203. package/files/nunito-latin-variable-wghtOnly-italic.woff2 +0 -0
  204. package/files/nunito-latin-variable-wghtOnly-normal.woff2 +0 -0
  205. package/files/nunito-vietnamese-200-italic.woff +0 -0
  206. package/files/nunito-vietnamese-200-italic.woff2 +0 -0
  207. package/files/nunito-vietnamese-200-normal.woff +0 -0
  208. package/files/nunito-vietnamese-200-normal.woff2 +0 -0
  209. package/files/nunito-vietnamese-300-italic.woff +0 -0
  210. package/files/nunito-vietnamese-300-italic.woff2 +0 -0
  211. package/files/nunito-vietnamese-300-normal.woff +0 -0
  212. package/files/nunito-vietnamese-300-normal.woff2 +0 -0
  213. package/files/nunito-vietnamese-400-italic.woff +0 -0
  214. package/files/nunito-vietnamese-400-italic.woff2 +0 -0
  215. package/files/nunito-vietnamese-400-normal.woff +0 -0
  216. package/files/nunito-vietnamese-400-normal.woff2 +0 -0
  217. package/files/nunito-vietnamese-500-italic.woff +0 -0
  218. package/files/nunito-vietnamese-500-italic.woff2 +0 -0
  219. package/files/nunito-vietnamese-500-normal.woff +0 -0
  220. package/files/nunito-vietnamese-500-normal.woff2 +0 -0
  221. package/files/nunito-vietnamese-600-italic.woff +0 -0
  222. package/files/nunito-vietnamese-600-italic.woff2 +0 -0
  223. package/files/nunito-vietnamese-600-normal.woff +0 -0
  224. package/files/nunito-vietnamese-600-normal.woff2 +0 -0
  225. package/files/nunito-vietnamese-700-italic.woff +0 -0
  226. package/files/nunito-vietnamese-700-italic.woff2 +0 -0
  227. package/files/nunito-vietnamese-700-normal.woff +0 -0
  228. package/files/nunito-vietnamese-700-normal.woff2 +0 -0
  229. package/files/nunito-vietnamese-800-italic.woff +0 -0
  230. package/files/nunito-vietnamese-800-italic.woff2 +0 -0
  231. package/files/nunito-vietnamese-800-normal.woff +0 -0
  232. package/files/nunito-vietnamese-800-normal.woff2 +0 -0
  233. package/files/nunito-vietnamese-900-italic.woff +0 -0
  234. package/files/nunito-vietnamese-900-italic.woff2 +0 -0
  235. package/files/nunito-vietnamese-900-normal.woff +0 -0
  236. package/files/nunito-vietnamese-900-normal.woff2 +0 -0
  237. package/files/nunito-vietnamese-variable-wghtOnly-italic.woff2 +0 -0
  238. package/files/nunito-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  239. package/index.d.ts +1 -0
  240. package/index.esm.css +1203 -159
  241. package/index.esm.css.gz +0 -0
  242. package/index.esm.js +1 -1
  243. package/index.esm.js.gz +0 -0
  244. package/index.esm.min.css +1820 -0
  245. package/index.esm.min.css.gz +0 -0
  246. package/js-core.esm.js +9 -9
  247. package/js-core.esm.js.gz +0 -0
  248. package/js-core.esm10.js +1 -1
  249. package/js-core.esm10.js.gz +0 -0
  250. package/js-core.esm11.js +1 -1
  251. package/js-core.esm11.js.gz +0 -0
  252. package/js-core.esm13.js +1 -1
  253. package/js-core.esm13.js.gz +0 -0
  254. package/js-core.esm14.js +1 -1
  255. package/js-core.esm14.js.gz +0 -0
  256. package/js-core.esm15.js +1 -1
  257. package/js-core.esm15.js.gz +0 -0
  258. package/js-core.esm16.js +1 -1
  259. package/js-core.esm16.js.gz +0 -0
  260. package/js-core.esm17.js +1 -1
  261. package/js-core.esm17.js.gz +0 -0
  262. package/js-core.esm19.js +1 -1
  263. package/js-core.esm19.js.gz +0 -0
  264. package/js-core.esm20.js +1 -1
  265. package/js-core.esm20.js.gz +0 -0
  266. package/js-core.esm21.js +1 -1
  267. package/js-core.esm21.js.gz +0 -0
  268. package/js-core.esm23.js +1 -1
  269. package/js-core.esm23.js.gz +0 -0
  270. package/js-core.esm24.js +1 -1
  271. package/js-core.esm24.js.gz +0 -0
  272. package/js-core.esm26.js +1 -1
  273. package/js-core.esm26.js.gz +0 -0
  274. package/js-core.esm27.js +1 -1
  275. package/js-core.esm27.js.gz +0 -0
  276. package/js-core.esm28.js +1 -1
  277. package/js-core.esm28.js.gz +0 -0
  278. package/js-core.esm29.js +1 -1
  279. package/js-core.esm29.js.gz +0 -0
  280. package/js-core.esm30.js +1 -1
  281. package/js-core.esm30.js.gz +0 -0
  282. package/js-core.esm32.js +1 -1
  283. package/js-core.esm32.js.gz +0 -0
  284. package/js-core.esm33.js +1 -1
  285. package/js-core.esm33.js.gz +0 -0
  286. package/js-core.esm35.js +1 -1
  287. package/js-core.esm35.js.gz +0 -0
  288. package/js-core.esm36.js +1 -1
  289. package/js-core.esm36.js.gz +0 -0
  290. package/js-core.esm37.js +1 -1
  291. package/js-core.esm37.js.gz +0 -0
  292. package/js-core.esm38.js +1 -1
  293. package/js-core.esm38.js.gz +0 -0
  294. package/js-core.esm39.js +1 -1
  295. package/js-core.esm39.js.gz +0 -0
  296. package/js-core.esm40.js +1 -1
  297. package/js-core.esm40.js.gz +0 -0
  298. package/js-core.esm41.js +1 -1
  299. package/js-core.esm41.js.gz +0 -0
  300. package/js-core.esm42.js +1 -1
  301. package/js-core.esm42.js.gz +0 -0
  302. package/js-core.esm43.js +1 -1
  303. package/js-core.esm43.js.gz +0 -0
  304. package/js-core.esm44.js +1 -1
  305. package/js-core.esm44.js.gz +0 -0
  306. package/js-core.esm45.js +2 -2
  307. package/js-core.esm45.js.gz +0 -0
  308. package/js-core.esm47.js +2 -2
  309. package/js-core.esm47.js.gz +0 -0
  310. package/js-core.esm48.js +1 -1
  311. package/js-core.esm48.js.gz +0 -0
  312. package/js-core.esm5.js +13 -4
  313. package/js-core.esm5.js.gz +0 -0
  314. package/js-core.esm50.js +1 -1
  315. package/js-core.esm50.js.gz +0 -0
  316. package/js-core.esm51.js +1 -1
  317. package/js-core.esm51.js.gz +0 -0
  318. package/js-core.esm52.js +1 -1
  319. package/js-core.esm52.js.gz +0 -0
  320. package/js-core.esm53.js +1 -1
  321. package/js-core.esm53.js.gz +0 -0
  322. package/js-core.esm54.js +1 -1
  323. package/js-core.esm54.js.gz +0 -0
  324. package/js-core.esm55.js +1 -1
  325. package/js-core.esm55.js.gz +0 -0
  326. package/js-core.esm57.js +1 -1
  327. package/js-core.esm57.js.gz +0 -0
  328. package/js-core.esm58.js +1 -1
  329. package/js-core.esm58.js.gz +0 -0
  330. package/js-core.esm59.js +1 -1
  331. package/js-core.esm59.js.gz +0 -0
  332. package/js-core.esm60.js +1 -1
  333. package/js-core.esm60.js.gz +0 -0
  334. package/js-core.esm61.js +15 -2
  335. package/js-core.esm61.js.gz +0 -0
  336. package/js-core.esm62.js +1 -1
  337. package/js-core.esm62.js.gz +0 -0
  338. package/js-core.esm63.js +1 -1
  339. package/js-core.esm63.js.gz +0 -0
  340. package/js-core.esm64.js +1 -1
  341. package/js-core.esm64.js.gz +0 -0
  342. package/js-core.esm65.js +1 -1
  343. package/js-core.esm65.js.gz +0 -0
  344. package/js-core.esm66.js +1 -1
  345. package/js-core.esm66.js.gz +0 -0
  346. package/js-core.esm67.js +1 -1
  347. package/js-core.esm67.js.gz +0 -0
  348. package/js-core.esm68.js +1 -1
  349. package/js-core.esm68.js.gz +0 -0
  350. package/js-core.esm69.js +1 -1
  351. package/js-core.esm69.js.gz +0 -0
  352. package/js-core.esm7.js +6 -5
  353. package/js-core.esm7.js.gz +0 -0
  354. package/js-core.esm70.js +1 -1
  355. package/js-core.esm70.js.gz +0 -0
  356. package/js-core.esm71.js +1 -1
  357. package/js-core.esm71.js.gz +0 -0
  358. package/js-core.esm72.js +1 -1
  359. package/js-core.esm72.js.gz +0 -0
  360. package/js-core.esm73.js +1 -1
  361. package/js-core.esm73.js.gz +0 -0
  362. package/js-core.esm74.js +2 -2
  363. package/js-core.esm74.js.gz +0 -0
  364. package/js-core.esm75.js +1 -1
  365. package/js-core.esm75.js.gz +0 -0
  366. package/js-core.esm76.js +5 -5
  367. package/js-core.esm76.js.gz +0 -0
  368. package/js-core.esm77.js +2 -2
  369. package/js-core.esm77.js.gz +0 -0
  370. package/js-core.esm79.js +1 -1
  371. package/js-core.esm79.js.gz +0 -0
  372. package/js-core.esm81.js +1 -1
  373. package/js-core.esm81.js.gz +0 -0
  374. package/js-core.esm82.js +1 -1
  375. package/js-core.esm82.js.gz +0 -0
  376. package/js-core.esm83.js +1 -1
  377. package/js-core.esm83.js.gz +0 -0
  378. package/js-core.esm85.js +1 -1
  379. package/js-core.esm85.js.gz +0 -0
  380. package/js-core.esm86.js +1 -1
  381. package/js-core.esm86.js.gz +0 -0
  382. package/js-core.esm87.js +1 -1
  383. package/js-core.esm87.js.gz +0 -0
  384. package/js-core.esm88.js +1 -1
  385. package/js-core.esm88.js.gz +0 -0
  386. package/js-core.esm89.js +1 -1
  387. package/js-core.esm89.js.gz +0 -0
  388. package/js-core.esm90.js +1 -1
  389. package/js-core.esm90.js.gz +0 -0
  390. package/js-core.esm91.js +1 -1
  391. package/js-core.esm91.js.gz +0 -0
  392. package/js-core.esm93.js +1 -1
  393. package/js-core.esm93.js.gz +0 -0
  394. package/js-core.umd.css +1203 -159
  395. package/js-core.umd.css.gz +0 -0
  396. package/js-core.umd.js +203 -180
  397. package/js-core.umd.js.gz +0 -0
  398. package/js-core.umd.min.css +1329 -57
  399. package/js-core.umd.min.css.gz +0 -0
  400. package/locales/en.json +1 -1
  401. package/locales/es.json +1 -1
  402. package/locales/fr.json +1 -1
  403. package/package.json +1 -1
  404. package/files/dosis-latin-200.woff +0 -0
  405. package/files/dosis-latin-200.woff2 +0 -0
  406. package/files/dosis-latin-300.woff +0 -0
  407. package/files/dosis-latin-300.woff2 +0 -0
  408. package/files/dosis-latin-500.woff +0 -0
  409. package/files/dosis-latin-500.woff2 +0 -0
  410. package/files/dosis-latin-600.woff +0 -0
  411. package/files/dosis-latin-600.woff2 +0 -0
  412. package/files/dosis-latin-700.woff +0 -0
  413. package/files/dosis-latin-700.woff2 +0 -0
  414. package/files/dosis-latin-800.woff +0 -0
  415. package/files/dosis-latin-800.woff2 +0 -0
  416. package/files/nunito-latin-200.woff +0 -0
  417. package/files/nunito-latin-200.woff2 +0 -0
  418. package/files/nunito-latin-200italic.woff +0 -0
  419. package/files/nunito-latin-200italic.woff2 +0 -0
  420. package/files/nunito-latin-300.woff +0 -0
  421. package/files/nunito-latin-300.woff2 +0 -0
  422. package/files/nunito-latin-300italic.woff +0 -0
  423. package/files/nunito-latin-300italic.woff2 +0 -0
  424. package/files/nunito-latin-400.woff2 +0 -0
  425. package/files/nunito-latin-400italic.woff +0 -0
  426. package/files/nunito-latin-400italic.woff2 +0 -0
  427. package/files/nunito-latin-600.woff +0 -0
  428. package/files/nunito-latin-600.woff2 +0 -0
  429. package/files/nunito-latin-600italic.woff +0 -0
  430. package/files/nunito-latin-600italic.woff2 +0 -0
  431. package/files/nunito-latin-700.woff +0 -0
  432. package/files/nunito-latin-700.woff2 +0 -0
  433. package/files/nunito-latin-700italic.woff +0 -0
  434. package/files/nunito-latin-700italic.woff2 +0 -0
  435. package/files/nunito-latin-800.woff +0 -0
  436. package/files/nunito-latin-800.woff2 +0 -0
  437. package/files/nunito-latin-800italic.woff +0 -0
  438. package/files/nunito-latin-800italic.woff2 +0 -0
  439. package/files/nunito-latin-900.woff +0 -0
  440. package/files/nunito-latin-900.woff2 +0 -0
  441. package/files/nunito-latin-900italic.woff +0 -0
  442. package/files/nunito-latin-900italic.woff2 +0 -0
package/js-core.esm64.js CHANGED
@@ -1,4 +1,4 @@
1
- import{z as createSvgIcon,C as interopRequireDefault,j as jsxRuntime,m as makeStyles,H as createSlice,c6 as combineReducers,c7 as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,c9 as AIWareThemeProvider,K as DynamicModuleLoader,fd as getLibraryModule,A as AIWareIntlProvider,bw as CacheProvider,bx as muiCache,k as useSelector,r as react,i as useDispatch,F as FormattedMessage,T as Typography,a8 as Tooltip,a9 as IconButton,cb as Close,B as Box,q as Alert,ar as Button,aw as CircularProgress,Y as Portal,fw as img$w,cf as default_1$2,p as lodash,eB as Badge,bG as Icon,fp as EngineCategoryIcons,aU as Snackbar,aV as default_1$3,f$ as ConfirmationModal,a2 as all,gb as selectors$1,gc as LibraryDropdown,bO as FormHelperText$2,gd as Remove,ge as Save,cA as Add,cs as Delete,cq as Edit,ac as Skeleton,cl as mountPanel,x as classNames,ad as takeLatest$1,v as FormControl,ag as select,M as preferredLanguageSelector,b1 as AIWareFormatMessage,af as put,bV as showMessage,bW as MessageSeverity,ai as call,da as sdkEventManager,db as SdkEvents,dc as SdkError,w as TextField,aS as Select,aT as MenuItem,gf as Input,cy as baseGraphQLApiWithError}from"./js-core.esm.js";import{selectors}from"./js-core.esm45.js";import{C as Chip$1}from"./js-core.esm35.js";import"./js-core.esm29.js";import"./js-core.esm46.js";import"./js-core.esm36.js";import"./js-core.esm47.js";import"./js-core.esm48.js";import"./js-core.esm23.js";import"./js-core.esm32.js";import"./js-core.esm54.js";import"./js-core.esm34.js";import"./js-core.esm52.js";import"./js-core.esm8.js";import"./js-core.esm24.js";import"./js-core.esm53.js";import"./js-core.esm43.js";import"./js-core.esm49.js";import"./js-core.esm6.js";import"./js-core.esm10.js";import"./js-core.esm11.js";import"./js-core.esm50.js";import"./js-core.esm51.js";var LoadingStatus,ProcessAIView,CheckCircle={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(CheckCircle,"__esModule",{value:!0}),CheckCircle.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),default_1$1=CheckCircle.default=_default$1,Info={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Info,"__esModule",{value:!0}),Info.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),default_1=Info.default=_default;const SHARED_TEXT={processAiHeaderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eA9TAY",defaultMessage:"AI PROCESSING",description:"Title of AI categories list"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),processAiHeaderDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.p3BcDi",defaultMessage:"Select from a list of AI capabilities to apply available AI processing to your selected files.",description:"Detailed text below the process AI header title"}),processAiEngineUnavailable:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.PwcA3J",defaultMessage:"This engine does not specify a default single job template.",description:"Detailed text if an engine is not available to use"}),processAiFailedStatus:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UBu61T",defaultMessage:"An error happened while fetching the engine capabilities.",description:"Error message for process ai failures"}),processAiNoEngineCapability:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.IC5L+j",defaultMessage:"No available engine found for this file.",description:"Warning message when no engine found"}),processAiRetryBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.8U+Kek",defaultMessage:"Retry",description:"Retry button text"}),cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),processAiAddEngines:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.e5+f7H",defaultMessage:"Save Changes",description:"Add engines button text"}),engineSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.3Phobj",defaultMessage:"Engine Settings",description:"The label for the engine settings component"}),saveSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UOkssC",defaultMessage:"Save Settings",description:"The label for the engine settings savings"}),engineSelected:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.Ki+AeV",defaultMessage:"Selected & Configured",description:"The label for the selected engine"}),removeEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eZW4Lt",defaultMessage:"Remove Engine",description:"The button to deselected a selected engine"}),editConfigurations:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.GSlIPA",defaultMessage:"Edit Configurations",description:"The button to edit the engine configurations"}),useThisEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai-use-engine",defaultMessage:"Use this Engine",description:"The label for the use engine button when no engine has not been selected yet"})},useStyles$5=makeStyles()(e=>({aiProcessingWrapper:{padding:"8px 20px 20px 20px",display:"flex",flexDirection:"column",height:"100%",position:"absolute",top:"0",bottom:"0"},processAiHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",marginBottom:10},loaderIcon:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:20}})),SLICE_NAME="dataCenterProcessAI",namespace$3=(!function(e){e.failed="failed",e.idle="idle",e.pending="pending",e.success="success"}(LoadingStatus=LoadingStatus||{}),!function(e){e.aiCapabilities="aiCapabilities",e.engineSelection="engineSelection",e.engineConfiguration="engineConfiguration"}(ProcessAIView=ProcessAIView||{}),"capabilitiesState"),initialState$3={status:LoadingStatus.idle,capabilities:[],engines:{}},capabilitiesSlice=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$3,reducers:{capabilitiesFetchStart(e,t){e.status=LoadingStatus.pending},capabilitiesFetchSucceed(e){e.status=LoadingStatus.idle},capabilitiesFetchFailed(e){e.status=LoadingStatus.failed},setCapabilities:(e,t)=>{e.capabilities=t.payload},setEngines:(e,t)=>{e.engines=t.payload}}}),actions$4=capabilitiesSlice.actions;var capabilities_state=capabilitiesSlice.reducer;const namespace$2="processAiConfig",initialState$2={status:LoadingStatus.idle,selectedEngines:{}},configurationSlice=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$2,reducers:{setConfigurations(e,t){var{capabilityId:t,selectedEngines:s}=t.payload;e.selectedEngines[t]=s},updateSingleJobStatus(e,t){const{engineId:s,status:n}=t.payload;for(const a in e.selectedEngines){var i=e.selectedEngines[a].findIndex(e=>e.id===s);if(-1!==i){e.selectedEngines[a][i].status=n;break}}}}}),actions$3=configurationSlice.actions;var configuration_state=configurationSlice.reducer;const namespace$1="uiState",initialState$1={status:LoadingStatus.idle,currentView:ProcessAIView.aiCapabilities,isFullScreen:!1},uiSlice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState$1,reducers:{setCurrentView:(e,t)=>{e.currentView=t.payload},setStatus:(e,t)=>{e.status=t.payload},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload}}}),actions$2=uiSlice.actions;var ui_state=uiSlice.reducer;const namespace="job",initialState={status:LoadingStatus.idle},jobSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{launchJobStart(e,t){e.status=LoadingStatus.pending},launchJobSucceed(e){e.status=LoadingStatus.success},launchJobFailed(e){e.status=LoadingStatus.failed}}}),actions$1=jobSlice.actions;var EngineFieldType,job_state=jobSlice.reducer;const actions={[namespace$1]:actions$2,[namespace$3]:actions$4,[namespace$2]:actions$3,[namespace]:actions$1},rootReducer=combineReducers({[namespace$1]:ui_state,[namespace$3]:capabilities_state,[namespace$2]:configuration_state,[namespace]:job_state}),selectCapabilitiesStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.status},selectCapabilities=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.capabilities},selectEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines)?void 0:e[t]},selectAllEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines;return e&&0<Object.values(e).length?Object.values(e).reduce((e,t)=>lodash.exports.concat(e,t)):[]},selectSelectedEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines)?void 0:e[t]},selectSelectedEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines;return Object.values(e).reduce((e,t)=>e.concat(t),[])},selectSelectedEnginesObj=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines},selectJobStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace])?void 0:e.status},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,s)=>({apiRoot:e,graphQLEndpoint:t,token:s})),useStyles$4=makeStyles()(e=>({processingContainer:{marginTop:25,flex:1,overflowY:"scroll"},instructions:{marginBottom:"30px"},name:{fontSize:"14px",fontWeight:400,lineHeight:"19.1px"},description:{fontSize:"14px",fontWeight:400,maxWidth:"276px",lineHeight:"16.37px",overflow:"hidden",textOverflow:"ellipsis"},iconBackground:{display:"flex",justifyContent:"center",alignItems:"center",height:"40px",borderRadius:"25px",width:"40px",minHeight:"40px",minWidth:"40px",background:"#F2F5F9",marginRight:"15px"},processingRow:{padding:"20px 0",display:"flex",flexDirection:"row",height:"auto",borderBottom:"0.5px solid #D5DFE9",cursor:"pointer"},processingColumn:{display:"flex",flexDirection:"column",maxHeight:"auto"},engineIcons:{verticalAlign:"middle"},badge:{backgroundColor:"#D43060",left:e.spacing(1),top:e.spacing(1)},badgeContent:{fontSize:"11px",fontWeight:600,lineHeight:0}})),selectIsFullScreen=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$1])?void 0:e.isFullScreen},AICategories=({categories:e,closeSnackbar:a,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r,marginStart:l,marginTop:c,parentPanel:d})=>{const s=useStyles$4()["classes"],u=useDispatch(),n=useSelector(selectSelectedEnginesObj),p=useSelector(selectors.uiState.selectIsFullScreen),g=useSelector(selectors.uiState.selectIsMdpFullScreen),x=useSelector(selectIsFullScreen);return jsxRuntime.exports.jsx("div",Object.assign({className:s.processingContainer},{children:e.map(i=>{var e,t=i.name.replace(/[^a-zA-Z]/g,"");return jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"engine-category-row",className:s.processingRow,onClick:()=>{{var t=i,t=(a(),{name:"DATA_CENTER_ENGINE_SELECTION",config:{name:"DATA CENTER ENGINE SELECTION",capability:t,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r}}),s=x||p||g;let e=1001;switch(d){case"DATA_CENTER_MDP_IFRAME_PANEL":e=s?1008:1002;break;case"PROCESSING_CENTER_DAG_BUILDER":e=s?1011:1002;break;default:e=s?1007:1002}var n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:(s?0:55)+(c||0),marginStart:(s?380:460)+(l||0),size:"small",zIndex:e,parentPanelId:"DATA_CENTER_PROCESS_AI",dimmed:0,dimmedStatus:"dimParent"};u(mountPanel({panelId:"DATA_CENTER_ENGINE_SELECTION",microFrontend:t,panelConfig:n}))}}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:s.iconBackground},{children:jsxRuntime.exports.jsx(Badge,Object.assign({"data-test":"engine-category-badge-"+t,badgeContent:null!=(e=n[i.id])&&e.length?jsxRuntime.exports.jsx(Typography,Object.assign({variant:"overline",className:s.badgeContent},{children:n[i.id].length})):0,color:"secondary",classes:{badge:s.badge},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:jsxRuntime.exports.jsx(Icon,{"data-test":"engine-category-icon-"+t,className:s.engineIcons,component:EngineCategoryIcons[t],color:"secondary",fontSize:"small"})}))})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.processingColumn},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-name-"+i.name,variant:"h6",color:"textPrimary",className:s.name},{children:i.name})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-description-"+i.name,variant:"body2",color:"textSecondary",className:s.description},{children:i.description}))]}))]}),t)})}))},useStyles$3=makeStyles()(e=>({jobLaunchSnackbarContainer:{backgroundColor:e.palette.common.white,padding:"6px 16px",borderRadius:"4px",width:"440px",boxShadow:"rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px"},jobLaunchSnackbarTitle:{display:"flex",justifyContent:"space-between",padding:"10px 4px"},jobLaunchItemList:{maxHeight:"80vh",overflowY:"scroll",width:"102%"},jobLaunchItem:{transition:"all 0.5s ease-in-out",display:"flex",flexDirection:"row",padding:"6px 0px 5px 16px",borderRadius:"4px",marginBottom:"10px",marginTop:"5px"},jobLaunchItemMessage:{display:"flex",flexDirection:"column",width:"80%"},jobLaunchItemFeedback:{display:"flex",justifyContent:"center",alignItems:"center",width:"20%"},jobLaunchItemLoading:{color:"rgb(13, 60, 97)",backgroundColor:"rgb(232, 244, 253)"},jobLaunchItemSuccess:{backgroundColor:"rgb(237, 247, 237)",color:"rgb(30, 70, 32)"},jobLaunchItemFail:{backgroundColor:"rgb(253, 236, 234)",color:"rgb(97, 26, 21)"}})),JobLaunchItem=({name:e,status:t,onRetry:s,limitAnimation:n=!1})=>{const[i,a]=react.exports.useState(!0);react.exports.useEffect(()=>{setTimeout(()=>{a(!1)},500*Math.random()+700)});var o=useStyles$3()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(o.jobLaunchItem,{[o.jobLaunchItemLoading]:t===LoadingStatus.pending||i,[o.jobLaunchItemSuccess]:t===LoadingStatus.success,[o.jobLaunchItemFail]:t===LoadingStatus.failed})},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchItemMessage},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:{width:"90%"},variant:"h4",noWrap:!0},{children:e})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:t===LoadingStatus.pending||i?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.dSA4RS",defaultMessage:"Launching AI Processing...",description:"Job Launch item description loading job"}):t===LoadingStatus.success?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.b+iNpN",defaultMessage:"This processing job started successfully.",description:"Job Launch item description success"}):t===LoadingStatus.failed?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.50UABM",defaultMessage:"Unable to start processing job.",description:"Job Launch item description failed"}):void 0}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemFeedback},{children:t===LoadingStatus.pending||i?jsxRuntime.exports.jsx(CircularProgress,{size:20,disableShrink:n}):t===LoadingStatus.success?jsxRuntime.exports.jsx(default_1$1,{style:{color:"#4caf50"}}):t===LoadingStatus.failed?jsxRuntime.exports.jsx(Button,Object.assign({color:"inherit",onClick:s},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.BnINsu",defaultMessage:"RETRY",description:"Button label to retry the failed job"})})):void 0}))]}))},JobLaunchSnackbar=({open:e,onClose:s,jobLaunchItems:t,onRetry:n,hidePanel:i})=>{var a=(e,t)=>{"clickaway"!==t&&s()},o=useStyles$3()["classes"];const r=10<t.length;var l=()=>{for(const e of t)if(e.status===LoadingStatus.failed||e.status===LoadingStatus.pending)return null;return 2500};return jsxRuntime.exports.jsx(Snackbar,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:e,autoHideDuration:l(),onClose:a,TransitionProps:{onExited:l()&&i}},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:"aiware-el "+o.jobLaunchSnackbarContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchSnackbarTitle},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.HJnKOv",defaultMessage:"AI Processing",description:"AI Processing snackbar title"})})),jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"close",color:"inherit",size:"small",onClick:a},{children:jsxRuntime.exports.jsx(default_1$3,{fontSize:"inherit"})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemList},{children:t.map((e,t)=>jsxRuntime.exports.jsx(JobLaunchItem,{name:e.name,status:e.status,onRetry:()=>n(e),limitAnimation:r},t))}))]}))}))},useStyles$2=makeStyles()(e=>({root:{display:"flex",justifyContent:"end",marginTop:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none",color:e.palette.text.primary},actionButton:{textTransform:"none"}})),ActionsFooter=({title:e,actionButton:t,cancelButton:s,confirmationOnCancel:n=!1,children:i=null})=>{const[a,o]=react.exports.useState(!1);var r=useStyles$2()["classes"];const l=e=>{o(!1),e&&e()};return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root,"data-test":"data-center-action-footer"},{children:[e,i,jsxRuntime.exports.jsx(ConfirmationModal,{showConfirmationModal:a,closeConfirmationModal:l,onClosePanel:()=>l(s.action)}),jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>{n&&!t.disabled?o(!0):s.action()},disabled:s.disabled,"data-test":s.dataTest,className:r.cancelButton},{children:s.label})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",onClick:t.action,disabled:t.disabled,"data-test":t.dataTest,className:r.actionButton},{children:t.label}))]}))},ProcessAIManager=t=>{var e,s=useStyles$5()["classes"];const{apiRoot:n,graphQLEndpoint:i,token:a}=useSelector(selectApiConfigs),o=useSelector(selectJobStatus),[r,l]=react.exports.useState(!1);var c=useSelector(selectCapabilitiesStatus);const d=useSelector(selectSelectedEngines),u=useSelector(selectAllEngines),{onSaveEngineSelection:p,enableNonSingleEngineJobEngines:g,aobSelectedEngines:x}=t;var m=useSelector(selectCapabilities);const j=useDispatch(),b=()=>{j(actions.capabilitiesState.capabilitiesFetchStart(t.tdoId))};if(react.exports.useEffect(()=>{j(actions.uiState.setIsFullScreen(Boolean(t.isFullScreen)))},[]),react.exports.useEffect(()=>{[LoadingStatus.pending,LoadingStatus.success,LoadingStatus.failed].includes(o)&&l(!0)},[o]),react.exports.useEffect(()=>{n&&i&&a&&b()},[n,i,a,j,t.tdoId]),!(n&&i&&a&&t.panelRendered))return null;var h={label:null!=(h=t.submitButtonLabel)?h:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.J0sEvH",defaultMessage:"Process with AI",description:"action button label"}),action:()=>{var e;p?(e=d.map(t=>{var e=u.find(e=>e.id===t.id);return Object.assign(Object.assign({},e),t)}),p(e),null!=t&&t.hidePanel()):j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:d}))},disabled:!d.length,dataTest:"data-center-process-ai-action-btn"},f={label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.uT5L4h",defaultMessage:"Cancel",description:"cancel button label"}),action:()=>null==t?void 0:t.hidePanel(),disabled:!1,dataTest:"data-center-process-ai-cancel-btn"};return jsxRuntime.exports.jsxs("div",Object.assign({className:s.aiProcessingWrapper},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:s.processAiHeader},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-process-ai-panel-header-title"},{children:null!=(e=t.panelTitle)?e:SHARED_TEXT.processAiHeaderTitle()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:null==t?void 0:t.hidePanel,"aria-labelledby":"data-center-process-ai-close-panel","data-test":"data-center-process-ai-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-process-ai-supported-files-title"},{children:null!=(e=t.panelDescription)?e:SHARED_TEXT.processAiHeaderDescription()})),c===LoadingStatus.failed&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("br",{}),jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsxs(Alert,Object.assign({variant:"outlined",severity:"error"},{children:[jsxRuntime.exports.jsx("span",Object.assign({"data-test":"data-center-process-ai-failed-text"},{children:SHARED_TEXT.processAiFailedStatus()})),jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"data-center-process-ai-failed-retry-button",onClick:b},{children:SHARED_TEXT.processAiRetryBtn()}))})]}))}))]}),c===LoadingStatus.idle&&!(null!=m&&m.length)&&jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsx(Alert,Object.assign({variant:"outlined",severity:"info"},{children:SHARED_TEXT.processAiNoEngineCapability()}))})),c===LoadingStatus.pending&&jsxRuntime.exports.jsx("div",Object.assign({className:s.loaderIcon},{children:jsxRuntime.exports.jsx(CircularProgress,{})})),c===LoadingStatus.idle&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(AICategories,{categories:m,closeSnackbar:()=>l(!1),enableNonSingleEngineJobEngines:!!g,aobSelectedEngines:x,marginStart:null==t?void 0:t.marginStart,marginTop:null==t?void 0:t.marginTop,parentPanel:null==t?void 0:t.parentPanelId}),jsxRuntime.exports.jsx(ActionsFooter,{confirmationOnCancel:!0,actionButton:h,cancelButton:f})]}),jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsx(JobLaunchSnackbar,{open:r,onClose:()=>l(!1),jobLaunchItems:d,onRetry:e=>{j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:[e]}))},hidePanel:null==t?void 0:t.hidePanel})})]}))};function __awaiter(e,o,r,l){return new(r=r||Promise)(function(s,t){function n(e){try{a(l.next(e))}catch(e){t(e)}}function i(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(n,i)}a((l=l.apply(e,o||[])).next())})}function fetchEngineCapabilities(s,n,i){return __awaiter(this,void 0,void 0,function*(){var e="fetchEngineCapabilities",t="engineCategories";return(yield baseGraphQLApiWithError(Object.assign({query:`
1
+ import{z as createSvgIcon,C as interopRequireDefault,j as jsxRuntime,m as makeStyles,H as createSlice,c9 as combineReducers,ca as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,cc as AIWareThemeProvider,K as DynamicModuleLoader,fg as getLibraryModule,A as AIWareIntlProvider,bz as CacheProvider,bA as muiCache,k as useSelector,r as react,i as useDispatch,F as FormattedMessage,T as Typography,ab as Tooltip,ac as IconButton,ce as Close,B as Box,q as Alert,au as Button,az as CircularProgress,Z as Portal,fB as img$w,ci as default_1$2,p as lodash,eE as Badge,bJ as Icon,fs as EngineCategoryIcons,aX as Snackbar,aY as default_1$3,g2 as ConfirmationModal,a5 as all,ge as selectors$1,gf as LibraryDropdown,bR as FormHelperText$2,gg as Remove,gh as Save,cD as Add,cv as Delete,ct as Edit,af as Skeleton,co as mountPanel,x as classNames,ag as takeLatest$1,v as FormControl,aj as select,M as preferredLanguageSelector,b4 as AIWareFormatMessage,ai as put,bY as showMessage,bZ as MessageSeverity,al as call,dd as sdkEventManager,de as SdkEvents,df as SdkError,w as TextField,aV as Select,aW as MenuItem,gi as Input,cB as baseGraphQLApiWithError}from"./js-core.esm.js";import{selectors}from"./js-core.esm45.js";import{C as Chip$1}from"./js-core.esm35.js";import"./js-core.esm29.js";import"./js-core.esm46.js";import"./js-core.esm36.js";import"./js-core.esm47.js";import"./js-core.esm48.js";import"./js-core.esm23.js";import"./js-core.esm32.js";import"./js-core.esm54.js";import"./js-core.esm34.js";import"./js-core.esm52.js";import"./js-core.esm8.js";import"./js-core.esm24.js";import"./js-core.esm53.js";import"./js-core.esm43.js";import"./js-core.esm49.js";import"./js-core.esm6.js";import"./js-core.esm10.js";import"./js-core.esm11.js";import"./js-core.esm50.js";import"./js-core.esm51.js";var LoadingStatus,ProcessAIView,CheckCircle={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(CheckCircle,"__esModule",{value:!0}),CheckCircle.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle"),default_1$1=CheckCircle.default=_default$1,Info={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Info,"__esModule",{value:!0}),Info.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),default_1=Info.default=_default;const SHARED_TEXT={processAiHeaderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eA9TAY",defaultMessage:"AI PROCESSING",description:"Title of AI categories list"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),processAiHeaderDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.p3BcDi",defaultMessage:"Select from a list of AI capabilities to apply available AI processing to your selected files.",description:"Detailed text below the process AI header title"}),processAiEngineUnavailable:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.PwcA3J",defaultMessage:"This engine does not specify a default single job template.",description:"Detailed text if an engine is not available to use"}),processAiFailedStatus:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UBu61T",defaultMessage:"An error happened while fetching the engine capabilities.",description:"Error message for process ai failures"}),processAiNoEngineCapability:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.IC5L+j",defaultMessage:"No available engine found for this file.",description:"Warning message when no engine found"}),processAiRetryBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.8U+Kek",defaultMessage:"Retry",description:"Retry button text"}),cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),processAiAddEngines:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.e5+f7H",defaultMessage:"Save Changes",description:"Add engines button text"}),engineSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.3Phobj",defaultMessage:"Engine Settings",description:"The label for the engine settings component"}),saveSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.UOkssC",defaultMessage:"Save Settings",description:"The label for the engine settings savings"}),engineSelected:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.Ki+AeV",defaultMessage:"Selected & Configured",description:"The label for the selected engine"}),removeEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.eZW4Lt",defaultMessage:"Remove Engine",description:"The button to deselected a selected engine"}),editConfigurations:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.GSlIPA",defaultMessage:"Edit Configurations",description:"The button to edit the engine configurations"}),useThisEngine:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai-use-engine",defaultMessage:"Use this Engine",description:"The label for the use engine button when no engine has not been selected yet"})},useStyles$5=makeStyles()(e=>({aiProcessingWrapper:{padding:"8px 20px 20px 20px",display:"flex",flexDirection:"column",height:"100%",position:"absolute",top:"0",bottom:"0"},processAiHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",marginBottom:10},loaderIcon:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:20}})),SLICE_NAME="dataCenterProcessAI",namespace$3=(!function(e){e.failed="failed",e.idle="idle",e.pending="pending",e.success="success"}(LoadingStatus=LoadingStatus||{}),!function(e){e.aiCapabilities="aiCapabilities",e.engineSelection="engineSelection",e.engineConfiguration="engineConfiguration"}(ProcessAIView=ProcessAIView||{}),"capabilitiesState"),initialState$3={status:LoadingStatus.idle,capabilities:[],engines:{}},capabilitiesSlice=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$3,reducers:{capabilitiesFetchStart(e,t){e.status=LoadingStatus.pending},capabilitiesFetchSucceed(e){e.status=LoadingStatus.idle},capabilitiesFetchFailed(e){e.status=LoadingStatus.failed},setCapabilities:(e,t)=>{e.capabilities=t.payload},setEngines:(e,t)=>{e.engines=t.payload}}}),actions$4=capabilitiesSlice.actions;var capabilities_state=capabilitiesSlice.reducer;const namespace$2="processAiConfig",initialState$2={status:LoadingStatus.idle,selectedEngines:{}},configurationSlice=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$2,reducers:{setConfigurations(e,t){var{capabilityId:t,selectedEngines:s}=t.payload;e.selectedEngines[t]=s},updateSingleJobStatus(e,t){const{engineId:s,status:n}=t.payload;for(const a in e.selectedEngines){var i=e.selectedEngines[a].findIndex(e=>e.id===s);if(-1!==i){e.selectedEngines[a][i].status=n;break}}}}}),actions$3=configurationSlice.actions;var configuration_state=configurationSlice.reducer;const namespace$1="uiState",initialState$1={status:LoadingStatus.idle,currentView:ProcessAIView.aiCapabilities,isFullScreen:!1},uiSlice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState$1,reducers:{setCurrentView:(e,t)=>{e.currentView=t.payload},setStatus:(e,t)=>{e.status=t.payload},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload}}}),actions$2=uiSlice.actions;var ui_state=uiSlice.reducer;const namespace="job",initialState={status:LoadingStatus.idle},jobSlice=createSlice({name:SLICE_NAME+"/"+namespace,initialState:initialState,reducers:{launchJobStart(e,t){e.status=LoadingStatus.pending},launchJobSucceed(e){e.status=LoadingStatus.success},launchJobFailed(e){e.status=LoadingStatus.failed}}}),actions$1=jobSlice.actions;var EngineFieldType,job_state=jobSlice.reducer;const actions={[namespace$1]:actions$2,[namespace$3]:actions$4,[namespace$2]:actions$3,[namespace]:actions$1},rootReducer=combineReducers({[namespace$1]:ui_state,[namespace$3]:capabilities_state,[namespace$2]:configuration_state,[namespace]:job_state}),selectCapabilitiesStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.status},selectCapabilities=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.capabilities},selectEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines)?void 0:e[t]},selectAllEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$3])?void 0:e.engines;return e&&0<Object.values(e).length?Object.values(e).reduce((e,t)=>lodash.exports.concat(e,t)):[]},selectSelectedEnginesByCapabilityId=t=>e=>{return null==(e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines)?void 0:e[t]},selectSelectedEngines=e=>{e=null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines;return Object.values(e).reduce((e,t)=>e.concat(t),[])},selectSelectedEnginesObj=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$2])?void 0:e.selectedEngines},selectJobStatus=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace])?void 0:e.status},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,s)=>({apiRoot:e,graphQLEndpoint:t,token:s})),useStyles$4=makeStyles()(e=>({processingContainer:{marginTop:25,flex:1,overflowY:"scroll"},instructions:{marginBottom:"30px"},name:{fontSize:"14px",fontWeight:400,lineHeight:"19.1px"},description:{fontSize:"14px",fontWeight:400,maxWidth:"276px",lineHeight:"16.37px",overflow:"hidden",textOverflow:"ellipsis"},iconBackground:{display:"flex",justifyContent:"center",alignItems:"center",height:"40px",borderRadius:"25px",width:"40px",minHeight:"40px",minWidth:"40px",background:"#F2F5F9",marginRight:"15px"},processingRow:{padding:"20px 0",display:"flex",flexDirection:"row",height:"auto",borderBottom:"0.5px solid #D5DFE9",cursor:"pointer"},processingColumn:{display:"flex",flexDirection:"column",maxHeight:"auto"},engineIcons:{verticalAlign:"middle"},badge:{backgroundColor:"#D43060",left:e.spacing(1),top:e.spacing(1)},badgeContent:{fontSize:"11px",fontWeight:600,lineHeight:0}})),selectIsFullScreen=e=>{return null==(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$1])?void 0:e.isFullScreen},AICategories=({categories:e,closeSnackbar:a,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r,marginStart:l,marginTop:c,parentPanel:d})=>{const s=useStyles$4()["classes"],u=useDispatch(),n=useSelector(selectSelectedEnginesObj),p=useSelector(selectors.uiState.selectIsFullScreen),g=useSelector(selectors.uiState.selectIsMdpFullScreen),x=useSelector(selectIsFullScreen);return jsxRuntime.exports.jsx("div",Object.assign({className:s.processingContainer},{children:e.map(i=>{var e,t=i.name.replace(/[^a-zA-Z]/g,"");return jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"engine-category-row",className:s.processingRow,onClick:()=>{{var t=i,t=(a(),{name:"DATA_CENTER_ENGINE_SELECTION",config:{name:"DATA CENTER ENGINE SELECTION",capability:t,enableNonSingleEngineJobEngines:o,aobSelectedEngines:r}}),s=x||p||g;let e=1001;switch(d){case"DATA_CENTER_MDP_IFRAME_PANEL":e=s?1008:1002;break;case"PROCESSING_CENTER_DAG_BUILDER":e=s?1011:1002;break;default:e=s?1007:1002}var n={type:"APP_BAR_PANEL_TEMPLATE",marginTop:(s?0:55)+(c||0),marginStart:(s?380:460)+(l||0),size:"small",zIndex:e,parentPanelId:"DATA_CENTER_PROCESS_AI",dimmed:0,dimmedStatus:"dimParent"};u(mountPanel({panelId:"DATA_CENTER_ENGINE_SELECTION",microFrontend:t,panelConfig:n}))}}},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:s.iconBackground},{children:jsxRuntime.exports.jsx(Badge,Object.assign({"data-test":"engine-category-badge-"+t,badgeContent:null!=(e=n[i.id])&&e.length?jsxRuntime.exports.jsx(Typography,Object.assign({variant:"overline",className:s.badgeContent},{children:n[i.id].length})):0,color:"secondary",classes:{badge:s.badge},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:jsxRuntime.exports.jsx(Icon,{"data-test":"engine-category-icon-"+t,className:s.engineIcons,component:EngineCategoryIcons[t],color:"secondary",fontSize:"small"})}))})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.processingColumn},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-name-"+i.name,variant:"h6",color:"textPrimary",className:s.name},{children:i.name})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"engine-category-description-"+i.name,variant:"body2",color:"textSecondary",className:s.description},{children:i.description}))]}))]}),t)})}))},useStyles$3=makeStyles()(e=>({jobLaunchSnackbarContainer:{backgroundColor:e.palette.common.white,padding:"6px 16px",borderRadius:"4px",width:"440px",boxShadow:"rgba(0, 0, 0, 0.2) 0px 3px 3px -2px, rgba(0, 0, 0, 0.14) 0px 3px 4px 0px, rgba(0, 0, 0, 0.12) 0px 1px 8px 0px"},jobLaunchSnackbarTitle:{display:"flex",justifyContent:"space-between",padding:"10px 4px"},jobLaunchItemList:{maxHeight:"80vh",overflowY:"scroll",width:"102%"},jobLaunchItem:{transition:"all 0.5s ease-in-out",display:"flex",flexDirection:"row",padding:"6px 0px 5px 16px",borderRadius:"4px",marginBottom:"10px",marginTop:"5px"},jobLaunchItemMessage:{display:"flex",flexDirection:"column",width:"80%"},jobLaunchItemFeedback:{display:"flex",justifyContent:"center",alignItems:"center",width:"20%"},jobLaunchItemLoading:{color:"rgb(13, 60, 97)",backgroundColor:"rgb(232, 244, 253)"},jobLaunchItemSuccess:{backgroundColor:"rgb(237, 247, 237)",color:"rgb(30, 70, 32)"},jobLaunchItemFail:{backgroundColor:"rgb(253, 236, 234)",color:"rgb(97, 26, 21)"}})),JobLaunchItem=({name:e,status:t,onRetry:s,limitAnimation:n=!1})=>{const[i,a]=react.exports.useState(!0);react.exports.useEffect(()=>{setTimeout(()=>{a(!1)},500*Math.random()+700)});var o=useStyles$3()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(o.jobLaunchItem,{[o.jobLaunchItemLoading]:t===LoadingStatus.pending||i,[o.jobLaunchItemSuccess]:t===LoadingStatus.success,[o.jobLaunchItemFail]:t===LoadingStatus.failed})},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchItemMessage},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:{width:"90%"},variant:"h4",noWrap:!0},{children:e})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:t===LoadingStatus.pending||i?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.dSA4RS",defaultMessage:"Launching AI Processing...",description:"Job Launch item description loading job"}):t===LoadingStatus.success?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.b+iNpN",defaultMessage:"This processing job started successfully.",description:"Job Launch item description success"}):t===LoadingStatus.failed?jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.50UABM",defaultMessage:"Unable to start processing job.",description:"Job Launch item description failed"}):void 0}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemFeedback},{children:t===LoadingStatus.pending||i?jsxRuntime.exports.jsx(CircularProgress,{size:20,disableShrink:n}):t===LoadingStatus.success?jsxRuntime.exports.jsx(default_1$1,{style:{color:"#4caf50"}}):t===LoadingStatus.failed?jsxRuntime.exports.jsx(Button,Object.assign({color:"inherit",onClick:s},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.BnINsu",defaultMessage:"RETRY",description:"Button label to retry the failed job"})})):void 0}))]}))},JobLaunchSnackbar=({open:e,onClose:s,jobLaunchItems:t,onRetry:n,hidePanel:i})=>{var a=(e,t)=>{"clickaway"!==t&&s()},o=useStyles$3()["classes"];const r=10<t.length;var l=()=>{for(const e of t)if(e.status===LoadingStatus.failed||e.status===LoadingStatus.pending)return null;return 2500};return jsxRuntime.exports.jsx(Snackbar,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:e,autoHideDuration:l(),onClose:a,TransitionProps:{onExited:l()&&i}},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:"aiware-el "+o.jobLaunchSnackbarContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:o.jobLaunchSnackbarTitle},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.HJnKOv",defaultMessage:"AI Processing",description:"AI Processing snackbar title"})})),jsxRuntime.exports.jsx(IconButton,Object.assign({"aria-label":"close",color:"inherit",size:"small",onClick:a},{children:jsxRuntime.exports.jsx(default_1$3,{fontSize:"inherit"})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.jobLaunchItemList},{children:t.map((e,t)=>jsxRuntime.exports.jsx(JobLaunchItem,{name:e.name,status:e.status,onRetry:()=>n(e),limitAnimation:r},t))}))]}))}))},useStyles$2=makeStyles()(e=>({root:{display:"flex",justifyContent:"end",marginTop:"25px"},cancelButton:{marginRight:e.spacing(2),textTransform:"none",color:e.palette.text.primary},actionButton:{textTransform:"none"}})),ActionsFooter=({title:e,actionButton:t,cancelButton:s,confirmationOnCancel:n=!1,children:i=null})=>{const[a,o]=react.exports.useState(!1);var r=useStyles$2()["classes"];const l=e=>{o(!1),e&&e()};return jsxRuntime.exports.jsxs("div",Object.assign({className:r.root,"data-test":"data-center-action-footer"},{children:[e,i,jsxRuntime.exports.jsx(ConfirmationModal,{showConfirmationModal:a,closeConfirmationModal:l,onClosePanel:()=>l(s.action)}),jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>{n&&!t.disabled?o(!0):s.action()},disabled:s.disabled,"data-test":s.dataTest,className:r.cancelButton},{children:s.label})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",onClick:t.action,disabled:t.disabled,"data-test":t.dataTest,className:r.actionButton},{children:t.label}))]}))},ProcessAIManager=t=>{var e,s=useStyles$5()["classes"];const{apiRoot:n,graphQLEndpoint:i,token:a}=useSelector(selectApiConfigs),o=useSelector(selectJobStatus),[r,l]=react.exports.useState(!1);var c=useSelector(selectCapabilitiesStatus);const d=useSelector(selectSelectedEngines),u=useSelector(selectAllEngines),{onSaveEngineSelection:p,enableNonSingleEngineJobEngines:g,aobSelectedEngines:x}=t;var m=useSelector(selectCapabilities);const j=useDispatch(),b=()=>{j(actions.capabilitiesState.capabilitiesFetchStart(t.tdoId))};if(react.exports.useEffect(()=>{j(actions.uiState.setIsFullScreen(Boolean(t.isFullScreen)))},[]),react.exports.useEffect(()=>{[LoadingStatus.pending,LoadingStatus.success,LoadingStatus.failed].includes(o)&&l(!0)},[o]),react.exports.useEffect(()=>{n&&i&&a&&b()},[n,i,a,j,t.tdoId]),!(n&&i&&a&&t.panelRendered))return null;var h={label:null!=(h=t.submitButtonLabel)?h:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.J0sEvH",defaultMessage:"Process with AI",description:"action button label"}),action:()=>{var e;p?(e=d.map(t=>{var e=u.find(e=>e.id===t.id);return Object.assign(Object.assign({},e),t)}),p(e),null!=t&&t.hidePanel()):j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:d}))},disabled:!d.length,dataTest:"data-center-process-ai-action-btn"},f={label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-process-ai.uT5L4h",defaultMessage:"Cancel",description:"cancel button label"}),action:()=>null==t?void 0:t.hidePanel(),disabled:!1,dataTest:"data-center-process-ai-cancel-btn"};return jsxRuntime.exports.jsxs("div",Object.assign({className:s.aiProcessingWrapper},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:s.processAiHeader},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-process-ai-panel-header-title"},{children:null!=(e=t.panelTitle)?e:SHARED_TEXT.processAiHeaderTitle()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:null==t?void 0:t.hidePanel,"aria-labelledby":"data-center-process-ai-close-panel","data-test":"data-center-process-ai-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-process-ai-supported-files-title"},{children:null!=(e=t.panelDescription)?e:SHARED_TEXT.processAiHeaderDescription()})),c===LoadingStatus.failed&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("br",{}),jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsxs(Alert,Object.assign({variant:"outlined",severity:"error"},{children:[jsxRuntime.exports.jsx("span",Object.assign({"data-test":"data-center-process-ai-failed-text"},{children:SHARED_TEXT.processAiFailedStatus()})),jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"data-center-process-ai-failed-retry-button",onClick:b},{children:SHARED_TEXT.processAiRetryBtn()}))})]}))}))]}),c===LoadingStatus.idle&&!(null!=m&&m.length)&&jsxRuntime.exports.jsx(Box,Object.assign({mt:4},{children:jsxRuntime.exports.jsx(Alert,Object.assign({variant:"outlined",severity:"info"},{children:SHARED_TEXT.processAiNoEngineCapability()}))})),c===LoadingStatus.pending&&jsxRuntime.exports.jsx("div",Object.assign({className:s.loaderIcon},{children:jsxRuntime.exports.jsx(CircularProgress,{})})),c===LoadingStatus.idle&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(AICategories,{categories:m,closeSnackbar:()=>l(!1),enableNonSingleEngineJobEngines:!!g,aobSelectedEngines:x,marginStart:null==t?void 0:t.marginStart,marginTop:null==t?void 0:t.marginTop,parentPanel:null==t?void 0:t.parentPanelId}),jsxRuntime.exports.jsx(ActionsFooter,{confirmationOnCancel:!0,actionButton:h,cancelButton:f})]}),jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsx(JobLaunchSnackbar,{open:r,onClose:()=>l(!1),jobLaunchItems:d,onRetry:e=>{j(actions.job.launchJobStart({tdoId:t.tdoId,selectedEngines:[e]}))},hidePanel:null==t?void 0:t.hidePanel})})]}))};function __awaiter(e,o,r,l){return new(r=r||Promise)(function(s,t){function n(e){try{a(l.next(e))}catch(e){t(e)}}function i(e){try{a(l.throw(e))}catch(e){t(e)}}function a(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(n,i)}a((l=l.apply(e,o||[])).next())})}function fetchEngineCapabilities(s,n,i){return __awaiter(this,void 0,void 0,function*(){var e="fetchEngineCapabilities",t="engineCategories";return(yield baseGraphQLApiWithError(Object.assign({query:`
2
2
  query ${e}($limit: Int${n?", $format: String!":""}) {
3
3
  ${t}(limit: $limit) {
4
4
  count
Binary file
package/js-core.esm65.js CHANGED
@@ -1,4 +1,4 @@
1
- import{H as createSlice,p as lodash,c6 as combineReducers,c7 as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,c8 as fork,m as makeStyles,i as useDispatch,r as react,cw as validate,j as jsxRuntime,c9 as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,bw as CacheProvider,bx as muiCache,ad as takeLatest$1,cl as mountPanel,k as useSelector,x as classNames,T as Typography,a9 as IconButton,co as MoreVert,a8 as Tooltip,bU as Hide,cp as Menu,aT as MenuItem,a0 as ListItemIcon,cq as Edit,a7 as Divider,cs as Delete,ck as hidePanel,G as Grid$1,c as Paper,F as FormattedMessage,gf as Input,w as TextField,aV as default_1,ag as select,M as preferredLanguageSelector,af as put,ai as call,bV as showMessage,bW as MessageSeverity,cj as delay,a2 as all,b1 as AIWareFormatMessage,aD as TableContainer,aE as Table,aJ as TableBody,aS as Select,cy as baseGraphQLApiWithError,aF as TableHead,aG as TableRow,aH as TableCell,aI as TableSortLabel,ac as Skeleton,cv as img$1y,ar as Button,cA as Add,cF as Filter,az as Dialog,aA as DialogTitle,aB as DialogContent,cm as DialogContentText,aC as DialogActions,cu as useBackupImg}from"./js-core.esm.js";import{E as EntityTags}from"./js-core.esm21.js";import{C as Container}from"./js-core.esm25.js";import{A as Autocomplete}from"./js-core.esm24.js";import{P as Pagination}from"./js-core.esm27.js";import"./js-core.esm15.js";import"./js-core.esm18.js";import"./js-core.esm12.js";import"./js-core.esm13.js";import"./js-core.esm35.js";import"./js-core.esm34.js";import"./js-core.esm17.js";const SLICE_NAME="appCenterBrowse";var LoadingStatus,AppType,AppConfigType,ModuleRepo,ModuleStatus;!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),function(e){e.Apps="apps",e.QueryOptions="queryOptions",e.TotalAppsInQuery="totalAppsInQuery"}(AppType=AppType||{}),function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(AppConfigType=AppConfigType||{}),function(e){e.NPM="npm",e.Github="github"}(ModuleRepo=ModuleRepo||{}),function(e){e.ACTIVE="active",e.DELETED="deleted"}(ModuleStatus=ModuleStatus||{});const initialAppDetails={appId:null},namespace$3="uiState",initialState$2={status:LoadingStatus.Idle,appDetails:initialAppDetails},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{initApps(e){e.status=LoadingStatus.Pending},fetchingApps(e){e.status=LoadingStatus.Pending},fetchingDone(e){e.status=LoadingStatus.Idle},fetchingFailed(e){e.status=LoadingStatus.Failed},toggleAppDetails(e,{payload:t}){t?e.appDetails.appId=t:delete e.appDetails.appId}}}),actions$3=slice$2.actions;var uiState=slice$2.reducer;const namespace$2="apps",initialState$1={apps:{},queryOptions:{limit:10,page:1,orderBy:[]},totalAppsInQuery:0},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{appsFetchSucceeded(e,t){var s=null==(s=null==(s=t.payload)?void 0:s.results)?void 0:s.records,s=lodash.exports.keyBy(s,"id");e[AppType.Apps]=s,t.payload.totalResults&&(e[AppType.TotalAppsInQuery]=null==(e=null==(s=t.payload)?void 0:s.totalResults)?void 0:e.count)},mutateApplicationWorkflow(e,t){t=t.payload;e[AppType.Apps][t.id].status="updating"},mutateApplicationWorkflowSuccess(e,t){var{id:t,status:s,validStateActions:a}=t.payload;e[AppType.Apps][t].status=s,e[AppType.Apps][t].validStateActions=a},refreshAppStateSuccess(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},deleteApp(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleting"},deleteAppSuccess(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleted"},deleteAppFailed(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},setQueryOptions(e,t){e.queryOptions=t.payload}}}),actions$2=slice$1.actions;var appsState=slice$1.reducer;const namespace$1="filterState",initialState={filter:{name:"",entityTags:[],status:"",created:{startDate:"",endDate:"",isSearch:!1},lastUpdated:{startDate:"",endDate:"",isSearch:!1}}},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{setFilters(e,{payload:t}){e.filter=t.filter}}}),actions$1=slice.actions;var filterState=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$3]:uiState,[namespace$2]:appsState,[namespace$1]:filterState});function __awaiter(e,o,r,l){return new(r=r||Promise)(function(s,t){function a(e){try{n(l.next(e))}catch(e){t(e)}}function i(e){try{n(l.throw(e))}catch(e){t(e)}}function n(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,i)}n((l=l.apply(e,o||[])).next())})}const applicationFieldsFragment=`fragment applicationFields on Application {
1
+ import{H as createSlice,p as lodash,c9 as combineReducers,ca as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,cb as fork,m as makeStyles,i as useDispatch,r as react,cz as validate,j as jsxRuntime,cc as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,bz as CacheProvider,bA as muiCache,ag as takeLatest$1,co as mountPanel,k as useSelector,x as classNames,T as Typography,ac as IconButton,cr as MoreVert,ab as Tooltip,bX as Hide,cs as Menu,aW as MenuItem,a2 as ListItemIcon,ct as Edit,aa as Divider,cv as Delete,cn as hidePanel,G as Grid$1,c as Paper,F as FormattedMessage,gi as Input,w as TextField,aY as default_1,aj as select,M as preferredLanguageSelector,ai as put,al as call,bY as showMessage,bZ as MessageSeverity,cm as delay,a5 as all,b4 as AIWareFormatMessage,aD as TableContainer,aE as Table,aJ as TableBody,aV as Select,cB as baseGraphQLApiWithError,aF as TableHead,aG as TableRow,aH as TableCell,aI as TableSortLabel,af as Skeleton,cy as img$1y,au as Button,cD as Add,cI as Filter,aB as Dialog,aS as DialogTitle,aT as DialogContent,cp as DialogContentText,aU as DialogActions,cx as useBackupImg}from"./js-core.esm.js";import{E as EntityTags}from"./js-core.esm21.js";import{C as Container}from"./js-core.esm25.js";import{A as Autocomplete}from"./js-core.esm24.js";import{P as Pagination}from"./js-core.esm27.js";import"./js-core.esm15.js";import"./js-core.esm18.js";import"./js-core.esm12.js";import"./js-core.esm13.js";import"./js-core.esm35.js";import"./js-core.esm34.js";import"./js-core.esm17.js";const SLICE_NAME="appCenterBrowse";var LoadingStatus,AppType,AppConfigType,ModuleRepo,ModuleStatus;!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),function(e){e.Apps="apps",e.QueryOptions="queryOptions",e.TotalAppsInQuery="totalAppsInQuery"}(AppType=AppType||{}),function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(AppConfigType=AppConfigType||{}),function(e){e.NPM="npm",e.Github="github"}(ModuleRepo=ModuleRepo||{}),function(e){e.ACTIVE="active",e.DELETED="deleted"}(ModuleStatus=ModuleStatus||{});const initialAppDetails={appId:null},namespace$3="uiState",initialState$2={status:LoadingStatus.Idle,appDetails:initialAppDetails},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{initApps(e){e.status=LoadingStatus.Pending},fetchingApps(e){e.status=LoadingStatus.Pending},fetchingDone(e){e.status=LoadingStatus.Idle},fetchingFailed(e){e.status=LoadingStatus.Failed},toggleAppDetails(e,{payload:t}){t?e.appDetails.appId=t:delete e.appDetails.appId}}}),actions$3=slice$2.actions;var uiState=slice$2.reducer;const namespace$2="apps",initialState$1={apps:{},queryOptions:{limit:10,page:1,orderBy:[]},totalAppsInQuery:0},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{appsFetchSucceeded(e,t){var s=null==(s=null==(s=t.payload)?void 0:s.results)?void 0:s.records,s=lodash.exports.keyBy(s,"id");e[AppType.Apps]=s,t.payload.totalResults&&(e[AppType.TotalAppsInQuery]=null==(e=null==(s=t.payload)?void 0:s.totalResults)?void 0:e.count)},mutateApplicationWorkflow(e,t){t=t.payload;e[AppType.Apps][t.id].status="updating"},mutateApplicationWorkflowSuccess(e,t){var{id:t,status:s,validStateActions:a}=t.payload;e[AppType.Apps][t].status=s,e[AppType.Apps][t].validStateActions=a},refreshAppStateSuccess(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},deleteApp(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleting"},deleteAppSuccess(e,t){t=t.payload.id;e[AppType.Apps][t].status="deleted"},deleteAppFailed(e,t){var s=t.payload["id"];e[AppType.Apps][s]=t.payload},setQueryOptions(e,t){e.queryOptions=t.payload}}}),actions$2=slice$1.actions;var appsState=slice$1.reducer;const namespace$1="filterState",initialState={filter:{name:"",entityTags:[],status:"",created:{startDate:"",endDate:"",isSearch:!1},lastUpdated:{startDate:"",endDate:"",isSearch:!1}}},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{setFilters(e,{payload:t}){e.filter=t.filter}}}),actions$1=slice.actions;var filterState=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$3]:uiState,[namespace$2]:appsState,[namespace$1]:filterState});function __awaiter(e,o,r,l){return new(r=r||Promise)(function(s,t){function a(e){try{n(l.next(e))}catch(e){t(e)}}function i(e){try{n(l.throw(e))}catch(e){t(e)}}function n(e){var t;e.done?s(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,i)}n((l=l.apply(e,o||[])).next())})}const applicationFieldsFragment=`fragment applicationFields on Application {
2
2
  id
3
3
  name
4
4
  description
Binary file
package/js-core.esm66.js CHANGED
@@ -1,4 +1,4 @@
1
- import{z as createSvgIcon,C as interopRequireDefault,j as jsxRuntime,H as createSlice,p as lodash,c6 as combineReducers,c7 as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,c8 as fork,c_ as channel,m as makeStyles,c9 as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,bw as CacheProvider,bx as muiCache,i as useDispatch,k as useSelector,r as react,G as Grid$1,ca as Stack,T as Typography,F as FormattedMessage,a9 as IconButton,aV as default_1$2,v as FormControl,w as TextField,cg as InputAdornment,aw as CircularProgress,cf as default_1$3,ao as FormControlLabel,ap as Checkbox,a7 as Divider,ad as takeLatest$1,B as Box,ck as hidePanel,ci as AvailableComponents,M as preferredLanguageSelector,a8 as Tooltip,cb as Close,aT as MenuItem,bI as map_1,bJ as keys_1,ar as Button,bH as get_1,c$ as useIntl,bX as Radio,bB as isEmpty_1,cj as delay,af as put,ag as select,ai as call,bV as showMessage,bW as MessageSeverity,ch as unmountPanel,cl as mountPanel,a2 as all,d5 as ProgressStepper,b1 as AIWareFormatMessage,d7 as take,cD as Collapse,cy as baseGraphQLApiWithError,da as sdkEventManager,db as SdkEvents,dc as SdkError,an as FormGroup,al as FormLabel,gg as Copy,gh as ArrowForward,cv as img$1y,S as Switch,x as classNames,dh as guid}from"./js-core.esm.js";import{s as set_1,b as InputText,c as InputSelect,S as SchemaOrText,d as InputCheckbox,e as InputRadioGroup,H as Heading,f as uploadFileToS3,g as getSignedWritableUrl,o as orderBy_1,l as lowerCase_1}from"./js-core.esm20.js";import{u as useForm,F as FormProvider}from"./js-core.esm14.js";import{E as EntityTags,L as ListField}from"./js-core.esm21.js";import{f as find_1,a as findIndex_1}from"./js-core.esm15.js";import{d as default_1$4}from"./js-core.esm49.js";import{d as default_1$5}from"./js-core.esm8.js";import{v as v4}from"./js-core.esm50.js";import{C as Chip$1}from"./js-core.esm35.js";import"./js-core.esm36.js";import"./js-core.esm30.js";import"./js-core.esm28.js";import"./js-core.esm37.js";import"./js-core.esm18.js";import"./js-core.esm29.js";import"./js-core.esm13.js";import"./js-core.esm12.js";import"./js-core.esm22.js";import"./js-core.esm31.js";import"./js-core.esm32.js";import"./js-core.esm33.js";import"./js-core.esm24.js";import"./js-core.esm34.js";var LoadingStatus,ModuleRepo,ModuleStatus,ContextMenuExtensionType,UiInfo,FormStatus,FormValidations,DeploymentModel,IconImportStatus,AppConfigType,AppConfigLevel,VisibilityOffOutlined={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(VisibilityOffOutlined,"__esModule",{value:!0}),VisibilityOffOutlined.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z"}),"VisibilityOffOutlined"),default_1$1=VisibilityOffOutlined.default=_default$1,FilterList={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(FilterList,"__esModule",{value:!0}),FilterList.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),default_1=FilterList.default=_default;const SLICE_NAME="appCenterNew";function isNpmRepoModule(e){return e.moduleRepo===ModuleRepo.NPM}function isGithubModule(e){return e.moduleRepo===ModuleRepo.Github}!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),function(e){e.NPM="npm",e.Github="github"}(ModuleRepo=ModuleRepo||{}),function(e){e.ACTIVE="active",e.DELETED="deleted"}(ModuleStatus=ModuleStatus||{}),function(e){e.mention="mention",e.watchlist="watchlist",e.collection="collection",e.tdo="tdo"}(ContextMenuExtensionType=ContextMenuExtensionType||{}),function(e){e.PanelClosed="closed",e.PanelOpen="open"}(UiInfo=UiInfo||{}),function(e){e[e.Pending=0]="Pending",e[e.Submitting=1]="Submitting",e[e.Success=2]="Success",e[e.Error=3]="Error"}(FormStatus=FormStatus||{}),function(e){e.Pending="pending",e.EmptyFieldError="This field should not be empty",e.SpecialCharError="This field cannot contain special characters"}(FormValidations=FormValidations||{}),function(e){e.FullyNetworkIsolated="FullyNetworkIsolated",e.MostlyNetworkIsolated="MostlyNetworkIsolated",e.NonNetworkIsolated="NonNetworkIsolated",e.HumanReview="HumanReview"}(DeploymentModel=DeploymentModel||{}),function(e){e.Idle="idle",e.Uploading="uploading",e.Uploaded="uploaded",e.Failed="failed",e.Aborted="aborted"}(IconImportStatus=IconImportStatus||{}),function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(AppConfigType=AppConfigType||{}),function(e){e.Organization="Organization",e.User="User"}(AppConfigLevel=AppConfigLevel||{});const namespace$7="uiState",initialState$6={status:LoadingStatus.Idle},slice$6=createSlice({name:SLICE_NAME+"/"+namespace$7,initialState:initialState$6,reducers:{}}),actions$7=slice$6.actions;var uiState=slice$6.reducer;const namespace$6="appFormState",initialState$5={app:{id:"",configFields:[],contextMenuExtensions:{mentions:[],tdos:[],watchlists:[],collections:[]},contextMenuExtensionIdsForBulkDelete:{ids:[]},name:"",description:"",iconPath:"",url:"",entityTags:[],headerbarEnabled:!0,applicationHeaderbar:{name:"",elementId:"",config:{title:"",backgroundColor:"",zIndex:null,logoSrc:"",help:!1,notification:!1,hidePasswordReset:!1,displaySupportChat:!1}},authMethod:"none",oauthUrl:"",nodeModules:[],flows:[],engines:[],schemas:[],flowsToDelete:[],enginesToDelete:[],schemasToDelete:[]},step:[],isLoadingExistingAppData:!1,isEditForm:!1,isResumeSession:!1,formValidations:FormValidations.Pending,formStatus:FormStatus.Pending,uiInfo:UiInfo.PanelClosed,currentComponents:{engines:[],dataRegistries:[]},apps:[],prevNodeModules:[],prevContextMenuExtensions:{mentions:[],tdos:[],watchlists:[],collections:[]}},slice$5=createSlice({name:SLICE_NAME+"/"+namespace$6,initialState:initialState$5,reducers:{createNewApp(e){e.formStatus=FormStatus.Submitting},editApp(e,t){e.isLoadingExistingAppData=!0,e.isEditForm=!0},setEditAppExistingData(e,t){e.isLoadingExistingAppData=!1,lodash.exports.merge(e.app,t.payload),e.prevNodeModules=t.payload.nodeModules,e.prevContextMenuExtensions=t.payload.contextMenuExtensions},updateAppStart(e,t){e.formStatus=FormStatus.Submitting,e.isEditForm=!0},createAppStart(e,t){e.formStatus=FormStatus.Submitting},createAppSuccess(e,{payload:t}){e.formStatus=FormStatus.Success,lodash.exports.set(e.app,"id",t)},createAppFailed(e,t){e.formStatus=FormStatus.Error},stepper(e,t){e.step=t.payload},updateAppFormField(e,t){var{field:t,value:a}=t.payload;lodash.exports.set(e.app,lodash.exports.camelCase(t),a)},updateApplicationHeaderbar(e,t){var{field:t,value:a}=t.payload;lodash.exports.set(e.app.applicationHeaderbar,t,a)},addConfigField(e,t){e.app.configFields=lodash.exports.concat(e.app.configFields,t.payload)},createConfigField(e,t){e.app.configFields=lodash.exports.concat(e.app.configFields,t.payload.newConfigField)},updateConfigField(e,t){var{configFields:t,index:a}=t.payload;lodash.exports.set(e,`app.configFields[${a}]`,t)},removeConfigField(e,t){e.app.configFields.splice(t.payload.removeIndex,1)},clearConfigFields(e){e.app.configFields=[]},addContextMenuExtension(e,t){var t=t.payload["extension"],a=t.type+"s";e.app.contextMenuExtensions[a]=lodash.exports.concat(e.app.contextMenuExtensions[a],t)},updateContextMenuExtension(e,t){var{extension:t,index:a}=t.payload;lodash.exports.set(e,`app.contextMenuExtensions.${t.type+"s"}[${a}]`,t)},removeContextMenuExtension(e,t){var{extensionType:t,index:a}=t.payload;e.app.contextMenuExtensionIdsForBulkDelete.ids.push(e.app.contextMenuExtensions[t+"s"][a].id),e.app.contextMenuExtensions[t+"s"].splice(a,1)},clearContextMenuExtensions(e){e.app.contextMenuExtensions={mentions:[],tdos:[],watchlists:[],collections:[]}},addNodeModule(e,t){var a=lodash.exports.findIndex(e.app.nodeModules,{moduleName:t.payload.moduleName,status:ModuleStatus.DELETED});0<=a?lodash.exports.set(e,`app.nodeModules[${a}]`,t.payload):e.app.nodeModules=lodash.exports.concat(e.app.nodeModules,t.payload)},updateNodeModule(e,t){var{nodeModules:t,index:a}=t.payload;lodash.exports.set(e,`app.nodeModules[${a}]`,t)},removeNodeModule(e,t){e.app.nodeModules.splice(t.payload,1)},fetchApplications(e,t){e.apps=null==(e=t.payload)?void 0:e.records},resumeSession(e,{payload:t}){lodash.exports.set(e,"app",t),lodash.exports.set(e,"isResumeSession",!0)},clearSession(e){localStorage.removeItem("appOnboardingSession"),lodash.exports.set(e,"app",initialState$5.app)}}}),actions$6=slice$5.actions;var appFormState$1=slice$5.reducer;const namespace$5="flowLinkingPanelState",initialState$4={searchTerm:"",isLoadingSearchResults:!1,sortOrder:"asc",searchResults:[]},slice$4=createSlice({name:SLICE_NAME+"/"+namespace$5,initialState:initialState$4,reducers:{searchByTerm(e,t){set_1(e,"searchTerm",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},toggleSortOrder(e,t){set_1(e,"sortOrder",lodash.exports.isNil(t.payload)?"asc"===e.sortOrder?"desc":"asc":t.payload)},updateFlowLinkingPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)}}}),actions$5=slice$4.actions;var flowLinkingPanelState=slice$4.reducer;const namespace$4="schemaLinkingPanelState",initialState$3={searchTerm:"",isLoadingSearchResults:!1,sortOrder:"asc",searchResults:[]},slice$3=createSlice({name:SLICE_NAME+"/"+namespace$4,initialState:initialState$3,reducers:{searchByTerm(e,t){set_1(e,"searchTerm",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},toggleSortOrder(e,t){set_1(e,"sortOrder",lodash.exports.isNil(t.payload)?"asc"===e.sortOrder?"desc":"asc":t.payload)},updateSchemaLinkingPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)}}}),actions$4=slice$3.actions;var schemaLinkingPanelState=slice$3.reducer;const namespace$3="engineLinkingPanelState",initialState$2={searchTerm:"",isLoadingSearchResults:!1,sortOrder:"asc",searchResults:[]},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{searchByTerm(e,t){set_1(e,"searchTerm",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},toggleSortOrder(e,t){set_1(e,"sortOrder",lodash.exports.isNil(t.payload)?"asc"===e.sortOrder?"desc":"asc":t.payload)},updateEngineLinkingPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)}}}),actions$3=slice$2.actions;var engineLinkingPanelState=slice$2.reducer;const namespace$2="appEventsPanelState",initialState$1={getEvents:!1,isLoadingSearchResults:!1,sortOrder:"asc",handlers:[],searchResults:[]},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{getEvents(e,t){set_1(e,"getEvents",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},addHandler(e,t){var a=JSON.parse(JSON.stringify(e.handlers)),{eventIds:t,eventNames:s,eventType:n,webhook:i,automateFlowId:o}=t.payload;a.push({eventIds:t,eventNames:s,eventType:n,webhook:i,automateFlowId:o}),set_1(e,"handlers",a)},editHandler(e,t){var{handler:t,index:a}=t.payload;set_1(e,`handlers[${a}]`,t)},deleteHandler(e,t){var t=t.payload,a=JSON.parse(JSON.stringify(e.handlers));a.splice(t,1),set_1(e,"handlers",a)},updateEventsPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)},resumeSession(e,{payload:t}){set_1(e,"handlers",t)}}}),actions$2=slice$1.actions;var eventsPanelState=slice$1.reducer;const namespace$1="iconUploadState",initialState={file:null,status:IconImportStatus.Idle},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{uploadIconStart(e,{payload:t}){e.file=t.file,e.status=IconImportStatus.Uploading},updateIcon(e,{payload:t}){e.file=Object.assign(Object.assign({},e.file),t)},uploadIconSuccess(e){e.status=IconImportStatus.Uploaded},uploadIconFailed(e,{payload:t}){e.file=null,e.error=t,e.status=IconImportStatus.Failed},deleteLocalIcon(e){e.file=null}}}),actions$1=slice.actions;var iconUploadState=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$1]:actions$1,[namespace$2]:actions$2},rootReducer=combineReducers({[namespace$7]:uiState,[namespace$6]:appFormState$1,[namespace$3]:engineLinkingPanelState,[namespace$5]:flowLinkingPanelState,[namespace$4]:schemaLinkingPanelState,[namespace$1]:iconUploadState,[namespace$2]:eventsPanelState}),selectApp=e=>e[namespace].appFormState.app,selectApps=e=>e[namespace].appFormState.apps,selectIsEditForm=e=>lodash.exports.pick(e[namespace].appFormState,"isEditForm"),selectIsLoadingExistingAppData=e=>lodash.exports.pick(e[namespace].appFormState,"isLoadingExistingAppData"),selectConfigFields=e=>e[namespace].appFormState.app.configFields,selectContextMenuExtensions=e=>e[namespace].appFormState.app.contextMenuExtensions,selectAppUrl=e=>e[namespace].appFormState.app.url,selectEntityTags=e=>e[namespace].appFormState.app.entityTags,selectNodeModules=e=>e[namespace].appFormState.app.nodeModules,selectPrevNodeModules=e=>e[namespace].appFormState.prevNodeModules,selectPrevContextMenuExtensions=e=>e[namespace].appFormState.prevContextMenuExtensions,selectIsResumeSession=e=>lodash.exports.get(e[namespace].appFormState,"isResumeSession");var appFormState=Object.freeze({__proto__:null,selectApp:selectApp,selectApps:selectApps,selectIsEditForm:selectIsEditForm,selectIsLoadingExistingAppData:selectIsLoadingExistingAppData,selectConfigFields:selectConfigFields,selectContextMenuExtensions:selectContextMenuExtensions,selectAppUrl:selectAppUrl,selectEntityTags:selectEntityTags,selectNodeModules:selectNodeModules,selectPrevNodeModules:selectPrevNodeModules,selectPrevContextMenuExtensions:selectPrevContextMenuExtensions,selectIsResumeSession:selectIsResumeSession});const selectFlowLinkingPanel=e=>e[namespace].flowLinkingPanelState,selectSchemaLinkingPanel=e=>e[namespace].schemaLinkingPanelState,selectEventPanel=e=>e[namespace].appEventsPanelState;var eventPanelState=Object.freeze({__proto__:null,selectEventPanel:selectEventPanel});const selectIcon=e=>e[namespace].iconUploadState.file,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,a)=>({apiRoot:e,graphQLEndpoint:t,token:a}));function __awaiter(e,o,r,l){return new(r=r||Promise)(function(a,t){function s(e){try{i(l.next(e))}catch(e){t(e)}}function n(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,n)}i((l=l.apply(e,o||[])).next())})}const getEnginesByName=(a,s={name:""})=>__awaiter(void 0,void 0,void 0,function*(){var e={name:s.name},t="getEngines";return yield baseGraphQLApiWithError(Object.assign({query:"\n query getEngines($name:String){\n engines(\n name: $name,\n orderBy: {\n field: name,\n direction: asc\n }\n ) {\n records {\n id\n name\n modifiedDateTime\n edgeVersion\n iconPath\n description\n category {\n id\n }\n }\n }\n }\n ",variables:e,operationName:t},a))}),getFlowsByName=(a,s={name:""})=>__awaiter(void 0,void 0,void 0,function*(){var e={name:s.name},t="getFlows";return yield baseGraphQLApiWithError(Object.assign({query:'\n query getFlows($name:String){\n engines(\n name: $name,\n categoryId: "c5458876-43d2-41e8-a340-f734702df04a",\n orderBy: {\n field: name,\n direction: asc\n }\n ) {\n records {\n id,\n name,\n modifiedDateTime,\n edgeVersion\n }\n }\n }\n ',variables:e,operationName:t},a))}),createApplication=(t,a)=>__awaiter(void 0,void 0,void 0,function*(){var e="createApplication";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createApplication ($input: CreateApplication!) {\n createApplication (input: $input) {\n id\n }\n }\n ",variables:{input:a},operationName:e},t)))[e]}),updateAppComponents=(o,r)=>__awaiter(void 0,void 0,void 0,function*(){const{engines:t,dataRegistries:a,id:s}=r,n="updateApplicationComponent";let i="";lodash.exports.forEach(lodash.exports.keys(t),e=>{lodash.exports.isEmpty(t[e])||(i+=`
1
+ import{z as createSvgIcon,C as interopRequireDefault,j as jsxRuntime,H as createSlice,p as lodash,c9 as combineReducers,ca as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,cb as fork,d1 as channel,m as makeStyles,cc as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,bz as CacheProvider,bA as muiCache,i as useDispatch,k as useSelector,r as react,G as Grid$1,cd as Stack,T as Typography,F as FormattedMessage,ac as IconButton,aY as default_1$2,v as FormControl,w as TextField,cj as InputAdornment,az as CircularProgress,ci as default_1$3,ar as FormControlLabel,as as Checkbox,aa as Divider,ag as takeLatest$1,B as Box,cn as hidePanel,cl as AvailableComponents,M as preferredLanguageSelector,ab as Tooltip,ce as Close,aW as MenuItem,bL as map_1,bM as keys_1,au as Button,bK as get_1,d2 as useIntl,b_ as Radio,bE as isEmpty_1,cm as delay,ai as put,aj as select,al as call,bY as showMessage,bZ as MessageSeverity,ck as unmountPanel,co as mountPanel,a5 as all,d8 as ProgressStepper,b4 as AIWareFormatMessage,da as take,cG as Collapse,cB as baseGraphQLApiWithError,dd as sdkEventManager,de as SdkEvents,df as SdkError,aq as FormGroup,ao as FormLabel,gj as Copy,gk as ArrowForward,cy as img$1y,S as Switch,x as classNames,dk as guid}from"./js-core.esm.js";import{s as set_1,b as InputText,c as InputSelect,S as SchemaOrText,d as InputCheckbox,e as InputRadioGroup,H as Heading,f as uploadFileToS3,g as getSignedWritableUrl,o as orderBy_1,l as lowerCase_1}from"./js-core.esm20.js";import{u as useForm,F as FormProvider}from"./js-core.esm14.js";import{E as EntityTags,L as ListField}from"./js-core.esm21.js";import{f as find_1,a as findIndex_1}from"./js-core.esm15.js";import{d as default_1$4}from"./js-core.esm49.js";import{d as default_1$5}from"./js-core.esm8.js";import{v as v4}from"./js-core.esm50.js";import{C as Chip$1}from"./js-core.esm35.js";import"./js-core.esm36.js";import"./js-core.esm30.js";import"./js-core.esm28.js";import"./js-core.esm37.js";import"./js-core.esm18.js";import"./js-core.esm29.js";import"./js-core.esm13.js";import"./js-core.esm12.js";import"./js-core.esm22.js";import"./js-core.esm31.js";import"./js-core.esm32.js";import"./js-core.esm33.js";import"./js-core.esm24.js";import"./js-core.esm34.js";var LoadingStatus,ModuleRepo,ModuleStatus,ContextMenuExtensionType,UiInfo,FormStatus,FormValidations,DeploymentModel,IconImportStatus,AppConfigType,AppConfigLevel,VisibilityOffOutlined={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(VisibilityOffOutlined,"__esModule",{value:!0}),VisibilityOffOutlined.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z"}),"VisibilityOffOutlined"),default_1$1=VisibilityOffOutlined.default=_default$1,FilterList={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(FilterList,"__esModule",{value:!0}),FilterList.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),default_1=FilterList.default=_default;const SLICE_NAME="appCenterNew";function isNpmRepoModule(e){return e.moduleRepo===ModuleRepo.NPM}function isGithubModule(e){return e.moduleRepo===ModuleRepo.Github}!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),function(e){e.NPM="npm",e.Github="github"}(ModuleRepo=ModuleRepo||{}),function(e){e.ACTIVE="active",e.DELETED="deleted"}(ModuleStatus=ModuleStatus||{}),function(e){e.mention="mention",e.watchlist="watchlist",e.collection="collection",e.tdo="tdo"}(ContextMenuExtensionType=ContextMenuExtensionType||{}),function(e){e.PanelClosed="closed",e.PanelOpen="open"}(UiInfo=UiInfo||{}),function(e){e[e.Pending=0]="Pending",e[e.Submitting=1]="Submitting",e[e.Success=2]="Success",e[e.Error=3]="Error"}(FormStatus=FormStatus||{}),function(e){e.Pending="pending",e.EmptyFieldError="This field should not be empty",e.SpecialCharError="This field cannot contain special characters"}(FormValidations=FormValidations||{}),function(e){e.FullyNetworkIsolated="FullyNetworkIsolated",e.MostlyNetworkIsolated="MostlyNetworkIsolated",e.NonNetworkIsolated="NonNetworkIsolated",e.HumanReview="HumanReview"}(DeploymentModel=DeploymentModel||{}),function(e){e.Idle="idle",e.Uploading="uploading",e.Uploaded="uploaded",e.Failed="failed",e.Aborted="aborted"}(IconImportStatus=IconImportStatus||{}),function(e){e.String="String",e.Boolean="Boolean",e.Date="Date",e.Integer="Integer",e.JSON="JSON",e.Float="Float"}(AppConfigType=AppConfigType||{}),function(e){e.Organization="Organization",e.User="User"}(AppConfigLevel=AppConfigLevel||{});const namespace$7="uiState",initialState$6={status:LoadingStatus.Idle},slice$6=createSlice({name:SLICE_NAME+"/"+namespace$7,initialState:initialState$6,reducers:{}}),actions$7=slice$6.actions;var uiState=slice$6.reducer;const namespace$6="appFormState",initialState$5={app:{id:"",configFields:[],contextMenuExtensions:{mentions:[],tdos:[],watchlists:[],collections:[]},contextMenuExtensionIdsForBulkDelete:{ids:[]},name:"",description:"",iconPath:"",url:"",entityTags:[],headerbarEnabled:!0,applicationHeaderbar:{name:"",elementId:"",config:{title:"",backgroundColor:"",zIndex:null,logoSrc:"",help:!1,notification:!1,hidePasswordReset:!1,displaySupportChat:!1}},authMethod:"none",oauthUrl:"",nodeModules:[],flows:[],engines:[],schemas:[],flowsToDelete:[],enginesToDelete:[],schemasToDelete:[]},step:[],isLoadingExistingAppData:!1,isEditForm:!1,isResumeSession:!1,formValidations:FormValidations.Pending,formStatus:FormStatus.Pending,uiInfo:UiInfo.PanelClosed,currentComponents:{engines:[],dataRegistries:[]},apps:[],prevNodeModules:[],prevContextMenuExtensions:{mentions:[],tdos:[],watchlists:[],collections:[]}},slice$5=createSlice({name:SLICE_NAME+"/"+namespace$6,initialState:initialState$5,reducers:{createNewApp(e){e.formStatus=FormStatus.Submitting},editApp(e,t){e.isLoadingExistingAppData=!0,e.isEditForm=!0},setEditAppExistingData(e,t){e.isLoadingExistingAppData=!1,lodash.exports.merge(e.app,t.payload),e.prevNodeModules=t.payload.nodeModules,e.prevContextMenuExtensions=t.payload.contextMenuExtensions},updateAppStart(e,t){e.formStatus=FormStatus.Submitting,e.isEditForm=!0},createAppStart(e,t){e.formStatus=FormStatus.Submitting},createAppSuccess(e,{payload:t}){e.formStatus=FormStatus.Success,lodash.exports.set(e.app,"id",t)},createAppFailed(e,t){e.formStatus=FormStatus.Error},stepper(e,t){e.step=t.payload},updateAppFormField(e,t){var{field:t,value:a}=t.payload;lodash.exports.set(e.app,lodash.exports.camelCase(t),a)},updateApplicationHeaderbar(e,t){var{field:t,value:a}=t.payload;lodash.exports.set(e.app.applicationHeaderbar,t,a)},addConfigField(e,t){e.app.configFields=lodash.exports.concat(e.app.configFields,t.payload)},createConfigField(e,t){e.app.configFields=lodash.exports.concat(e.app.configFields,t.payload.newConfigField)},updateConfigField(e,t){var{configFields:t,index:a}=t.payload;lodash.exports.set(e,`app.configFields[${a}]`,t)},removeConfigField(e,t){e.app.configFields.splice(t.payload.removeIndex,1)},clearConfigFields(e){e.app.configFields=[]},addContextMenuExtension(e,t){var t=t.payload["extension"],a=t.type+"s";e.app.contextMenuExtensions[a]=lodash.exports.concat(e.app.contextMenuExtensions[a],t)},updateContextMenuExtension(e,t){var{extension:t,index:a}=t.payload;lodash.exports.set(e,`app.contextMenuExtensions.${t.type+"s"}[${a}]`,t)},removeContextMenuExtension(e,t){var{extensionType:t,index:a}=t.payload;e.app.contextMenuExtensionIdsForBulkDelete.ids.push(e.app.contextMenuExtensions[t+"s"][a].id),e.app.contextMenuExtensions[t+"s"].splice(a,1)},clearContextMenuExtensions(e){e.app.contextMenuExtensions={mentions:[],tdos:[],watchlists:[],collections:[]}},addNodeModule(e,t){var a=lodash.exports.findIndex(e.app.nodeModules,{moduleName:t.payload.moduleName,status:ModuleStatus.DELETED});0<=a?lodash.exports.set(e,`app.nodeModules[${a}]`,t.payload):e.app.nodeModules=lodash.exports.concat(e.app.nodeModules,t.payload)},updateNodeModule(e,t){var{nodeModules:t,index:a}=t.payload;lodash.exports.set(e,`app.nodeModules[${a}]`,t)},removeNodeModule(e,t){e.app.nodeModules.splice(t.payload,1)},fetchApplications(e,t){e.apps=null==(e=t.payload)?void 0:e.records},resumeSession(e,{payload:t}){lodash.exports.set(e,"app",t),lodash.exports.set(e,"isResumeSession",!0)},clearSession(e){localStorage.removeItem("appOnboardingSession"),lodash.exports.set(e,"app",initialState$5.app)}}}),actions$6=slice$5.actions;var appFormState$1=slice$5.reducer;const namespace$5="flowLinkingPanelState",initialState$4={searchTerm:"",isLoadingSearchResults:!1,sortOrder:"asc",searchResults:[]},slice$4=createSlice({name:SLICE_NAME+"/"+namespace$5,initialState:initialState$4,reducers:{searchByTerm(e,t){set_1(e,"searchTerm",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},toggleSortOrder(e,t){set_1(e,"sortOrder",lodash.exports.isNil(t.payload)?"asc"===e.sortOrder?"desc":"asc":t.payload)},updateFlowLinkingPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)}}}),actions$5=slice$4.actions;var flowLinkingPanelState=slice$4.reducer;const namespace$4="schemaLinkingPanelState",initialState$3={searchTerm:"",isLoadingSearchResults:!1,sortOrder:"asc",searchResults:[]},slice$3=createSlice({name:SLICE_NAME+"/"+namespace$4,initialState:initialState$3,reducers:{searchByTerm(e,t){set_1(e,"searchTerm",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},toggleSortOrder(e,t){set_1(e,"sortOrder",lodash.exports.isNil(t.payload)?"asc"===e.sortOrder?"desc":"asc":t.payload)},updateSchemaLinkingPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)}}}),actions$4=slice$3.actions;var schemaLinkingPanelState=slice$3.reducer;const namespace$3="engineLinkingPanelState",initialState$2={searchTerm:"",isLoadingSearchResults:!1,sortOrder:"asc",searchResults:[]},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{searchByTerm(e,t){set_1(e,"searchTerm",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},toggleSortOrder(e,t){set_1(e,"sortOrder",lodash.exports.isNil(t.payload)?"asc"===e.sortOrder?"desc":"asc":t.payload)},updateEngineLinkingPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)}}}),actions$3=slice$2.actions;var engineLinkingPanelState=slice$2.reducer;const namespace$2="appEventsPanelState",initialState$1={getEvents:!1,isLoadingSearchResults:!1,sortOrder:"asc",handlers:[],searchResults:[]},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{getEvents(e,t){set_1(e,"getEvents",t.payload)},fetchingStart(e){set_1(e,"isLoadingSearchResults",!0)},fetchingDone(e){set_1(e,"isLoadingSearchResults",!1)},addHandler(e,t){var a=JSON.parse(JSON.stringify(e.handlers)),{eventIds:t,eventNames:s,eventType:n,webhook:i,automateFlowId:o}=t.payload;a.push({eventIds:t,eventNames:s,eventType:n,webhook:i,automateFlowId:o}),set_1(e,"handlers",a)},editHandler(e,t){var{handler:t,index:a}=t.payload;set_1(e,`handlers[${a}]`,t)},deleteHandler(e,t){var t=t.payload,a=JSON.parse(JSON.stringify(e.handlers));a.splice(t,1),set_1(e,"handlers",a)},updateEventsPanelField(e,t){var{field:t,value:a}=t.payload;set_1(e,t,a)},resumeSession(e,{payload:t}){set_1(e,"handlers",t)}}}),actions$2=slice$1.actions;var eventsPanelState=slice$1.reducer;const namespace$1="iconUploadState",initialState={file:null,status:IconImportStatus.Idle},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{uploadIconStart(e,{payload:t}){e.file=t.file,e.status=IconImportStatus.Uploading},updateIcon(e,{payload:t}){e.file=Object.assign(Object.assign({},e.file),t)},uploadIconSuccess(e){e.status=IconImportStatus.Uploaded},uploadIconFailed(e,{payload:t}){e.file=null,e.error=t,e.status=IconImportStatus.Failed},deleteLocalIcon(e){e.file=null}}}),actions$1=slice.actions;var iconUploadState=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$1]:actions$1,[namespace$2]:actions$2},rootReducer=combineReducers({[namespace$7]:uiState,[namespace$6]:appFormState$1,[namespace$3]:engineLinkingPanelState,[namespace$5]:flowLinkingPanelState,[namespace$4]:schemaLinkingPanelState,[namespace$1]:iconUploadState,[namespace$2]:eventsPanelState}),selectApp=e=>e[namespace].appFormState.app,selectApps=e=>e[namespace].appFormState.apps,selectIsEditForm=e=>lodash.exports.pick(e[namespace].appFormState,"isEditForm"),selectIsLoadingExistingAppData=e=>lodash.exports.pick(e[namespace].appFormState,"isLoadingExistingAppData"),selectConfigFields=e=>e[namespace].appFormState.app.configFields,selectContextMenuExtensions=e=>e[namespace].appFormState.app.contextMenuExtensions,selectAppUrl=e=>e[namespace].appFormState.app.url,selectEntityTags=e=>e[namespace].appFormState.app.entityTags,selectNodeModules=e=>e[namespace].appFormState.app.nodeModules,selectPrevNodeModules=e=>e[namespace].appFormState.prevNodeModules,selectPrevContextMenuExtensions=e=>e[namespace].appFormState.prevContextMenuExtensions,selectIsResumeSession=e=>lodash.exports.get(e[namespace].appFormState,"isResumeSession");var appFormState=Object.freeze({__proto__:null,selectApp:selectApp,selectApps:selectApps,selectIsEditForm:selectIsEditForm,selectIsLoadingExistingAppData:selectIsLoadingExistingAppData,selectConfigFields:selectConfigFields,selectContextMenuExtensions:selectContextMenuExtensions,selectAppUrl:selectAppUrl,selectEntityTags:selectEntityTags,selectNodeModules:selectNodeModules,selectPrevNodeModules:selectPrevNodeModules,selectPrevContextMenuExtensions:selectPrevContextMenuExtensions,selectIsResumeSession:selectIsResumeSession});const selectFlowLinkingPanel=e=>e[namespace].flowLinkingPanelState,selectSchemaLinkingPanel=e=>e[namespace].schemaLinkingPanelState,selectEventPanel=e=>e[namespace].appEventsPanelState;var eventPanelState=Object.freeze({__proto__:null,selectEventPanel:selectEventPanel});const selectIcon=e=>e[namespace].iconUploadState.file,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,a)=>({apiRoot:e,graphQLEndpoint:t,token:a}));function __awaiter(e,o,r,l){return new(r=r||Promise)(function(a,t){function s(e){try{i(l.next(e))}catch(e){t(e)}}function n(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?a(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,n)}i((l=l.apply(e,o||[])).next())})}const getEnginesByName=(a,s={name:""})=>__awaiter(void 0,void 0,void 0,function*(){var e={name:s.name},t="getEngines";return yield baseGraphQLApiWithError(Object.assign({query:"\n query getEngines($name:String){\n engines(\n name: $name,\n orderBy: {\n field: name,\n direction: asc\n }\n ) {\n records {\n id\n name\n modifiedDateTime\n edgeVersion\n iconPath\n description\n category {\n id\n }\n }\n }\n }\n ",variables:e,operationName:t},a))}),getFlowsByName=(a,s={name:""})=>__awaiter(void 0,void 0,void 0,function*(){var e={name:s.name},t="getFlows";return yield baseGraphQLApiWithError(Object.assign({query:'\n query getFlows($name:String){\n engines(\n name: $name,\n categoryId: "c5458876-43d2-41e8-a340-f734702df04a",\n orderBy: {\n field: name,\n direction: asc\n }\n ) {\n records {\n id,\n name,\n modifiedDateTime,\n edgeVersion\n }\n }\n }\n ',variables:e,operationName:t},a))}),createApplication=(t,a)=>__awaiter(void 0,void 0,void 0,function*(){var e="createApplication";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createApplication ($input: CreateApplication!) {\n createApplication (input: $input) {\n id\n }\n }\n ",variables:{input:a},operationName:e},t)))[e]}),updateAppComponents=(o,r)=>__awaiter(void 0,void 0,void 0,function*(){const{engines:t,dataRegistries:a,id:s}=r,n="updateApplicationComponent";let i="";lodash.exports.forEach(lodash.exports.keys(t),e=>{lodash.exports.isEmpty(t[e])||(i+=`
2
2
  ${e}Engines: ${n} (input: {
3
3
  id: "${s}"
4
4
  componentIds: [${lodash.exports.join(lodash.exports.map(t[e],e=>`"${e}"`),",")}]
Binary file
package/js-core.esm67.js CHANGED
@@ -1,4 +1,4 @@
1
- import{H as createSlice,c6 as combineReducers,c7 as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,m as makeStyles,k as useSelector,r as react,j as jsxRuntime,v as FormControl,bO as FormHelperText$2,ao as FormControlLabel,ap as Checkbox,i as useDispatch,bG as Icon,cr as Upload,bw as CacheProvider,bx as muiCache,c9 as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,a2 as all,F as FormattedMessage,w as TextField,fe as selectApiConfigs$1,eJ as InputLabel,aS as Select,aT as MenuItem,p as lodash,fc as selectIsOLPEnabled,cn as userSelector,ck as hidePanel,B as Box,aw as CircularProgress,fv as img$u,T as Typography,ar as Button,a7 as Divider,aZ as Tabs,a_ as Tab,fj as Popover,ad as takeLatest$1,a8 as Tooltip,a9 as IconButton,ga as AddUser,co as MoreVert,cb as Close,bU as Hide,cp as Menu,cs as Delete,fm as Download,L as LoadingButton,fB as CheckCircle,bV as showMessage,bW as MessageSeverity,ag as select,af as put,M as preferredLanguageSelector,gi as Modal,b1 as AIWareFormatMessage,cy as baseGraphQLApiWithError}from"./js-core.esm.js";import{f as find_1}from"./js-core.esm15.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave,C as ContentTemplates}from"./js-core.esm68.js";import{d as default_1}from"./js-core.esm56.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm53.js";import{C as ContentCopy}from"./js-core.esm51.js";import{B as Box$1}from"./js-core.esm33.js";import"./js-core.esm18.js";import"./js-core.esm69.js";import"./js-core.esm30.js";import"./js-core.esm36.js";import"./js-core.esm37.js";import"./js-core.esm46.js";import"./js-core.esm8.js";import"./js-core.esm31.js";import"./js-core.esm39.js";import"./js-core.esm48.js";import"./js-core.esm23.js";import"./js-core.esm32.js";import"./js-core.esm54.js";import"./js-core.esm34.js";import"./js-core.esm24.js";import"./js-core.esm35.js";import"./js-core.esm50.js";import"./js-core.esm26.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,LoadingStatus,ESourcePermission,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$q=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$i=Function.prototype.call,functionCall=NATIVE_BIND$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$8=FunctionPrototype$2.bind,call$h=FunctionPrototype$2.call,uncurryThis$n=NATIVE_BIND$2&&bind$8.bind(call$h,call$h),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$n(e)}:function(e){return e&&function(){return call$h.apply(e,arguments)}},uncurryThis$m=functionUncurryThis,toString$9=uncurryThis$m({}.toString),stringSlice$5=uncurryThis$m("".slice),classofRaw$1=function(e){return stringSlice$5(toString$9(e),8,-1)},uncurryThis$l=functionUncurryThis,fails$i=fails$l,classof$7=classofRaw$1,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split$3(e,""):$Object$4(e)}:$Object$4,$TypeError$c=TypeError,requireObjectCoercible$5=function(e){if(null==e)throw $TypeError$c("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$4(e))},isCallable$m=function(e){return"function"==typeof e},isCallable$l=isCallable$m,isObject$a=function(e){return"object"==typeof e?null!==e:isCallable$l(e)},global$p=global$q,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$p[e]):global$p[e]&&global$p[e][t]},uncurryThis$k=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$o=global$q,userAgent$3=engineUserAgent,process$3=global$o.process,Deno$1=global$o.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$j=isCallable$m,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$j(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$3=tryToString$4,$TypeError$b=TypeError,aCallable$7=function(e){if(isCallable$i(e))return e;throw $TypeError$b(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$3=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$g=functionCall,isCallable$h=isCallable$m,isObject$9=isObject$a,$TypeError$a=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;if(isCallable$h(r=e.valueOf)&&!isObject$9(o=call$g(r,e)))return o;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;throw $TypeError$a("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$n=global$q,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$7(global$n,t,{value:r,configurable:!0,writable:!0})}catch(e){global$n[t]=r}return r},global$m=global$q,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$q[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$3=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$5),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$3(e))},uncurryThis$j=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$i=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$i(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$l=global$q,shared$3=shared$4.exports,hasOwn$d=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$l.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$j=function(e){var t;return hasOwn$d(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL&&hasOwn$d(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$f=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$i=wellKnownSymbol$j,$TypeError$9=TypeError,TO_PRIMITIVE=wellKnownSymbol$j("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$f(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$9("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$k=global$q,isObject$7=isObject$a,document$3=global$q.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$d=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$c=descriptors,call$e=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$c=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$c(e,t))return createPropertyDescriptor$4(!call$e(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$b=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$2=String,$TypeError$8=TypeError,anObject$e=function(e){if(isObject$6(e))return e;throw $TypeError$8($String$2(e)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$1=toPropertyKey$3,$TypeError$7=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$9=(objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$7("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$9?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$b=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$b(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$h=functionUncurryThis,isCallable$g=isCallable$m,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$g(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$j=global$q,isCallable$f=isCallable$m,inspectSource$3=inspectSource$4,WeakMap$1=global$q.WeakMap,nativeWeakMap=isCallable$f(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys$1=shared$2("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$i=global$q,uncurryThis$g=functionUncurryThis,isObject$5=isObject$a,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$a=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$i.TypeError,WeakMap=global$i.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$g(store.get),wmhas=uncurryThis$g(store.has),wmset=uncurryThis$g(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$a(e,STATE))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$a(e,STATE)?e[STATE]:{}},function(e){return hasOwn$a(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$e=isCallable$m,hasOwn$9=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$5=internalState,enforceInternalState$1=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,defineProperty$6=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$e(function(){return 8!==defineProperty$6(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$9(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$7?defineProperty$6(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$9(r,"arity")&&e.length!==r.arity&&defineProperty$6(e,"length",{value:r.arity});try{r&&hasOwn$9(r,"constructor")&&r.constructor?DESCRIPTORS$7&&defineProperty$6(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState$1(e);return hasOwn$9(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$d=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$e(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$m),definePropertyModule$4=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$a=function(e,t,r,o){var n=(o=o||{}).enumerable,s=void 0!==o.name?o.name:t;if(isCallable$d(r)&&makeBuiltIn$1(r,s,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$3:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$3=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$2(e);return e<0?max$1(e+t,0):min$1(e,t)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity$1(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$4=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$3=lengthOfArrayLike$4,createMethod$2=function(i){return function(e,t,r){var o,n=toIndexedObject$3(e),s=lengthOfArrayLike$3(n),a=toAbsoluteIndex$1(r,s);if(i&&t!=t){for(;a<s;)if((o=n[a++])!=o)return!0}else for(;a<s;a++)if((i||a in n)&&n[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$f=functionUncurryThis,hasOwn$8=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$3=uncurryThis$f([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,s=[];for(r in o)!hasOwn$8(hiddenKeys$2,r)&&hasOwn$8(o,r)&&push$3(s,r);for(;t.length>n;)!hasOwn$8(o,r=t[n++])||~indexOf$1(s,r)||push$3(s,r);return s},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$e=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$7=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,s=getOwnPropertyDescriptorModule.f,a=0;a<o.length;a++){var i=o[a];hasOwn$7(e,i)||r&&hasOwn$7(r,i)||n(e,i,s(t,i))}},fails$d=fails$l,isCallable$c=isCallable$m,replacement=/#|\.prototype\./,isForced$3=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$c(t)?fails$d(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$h=global$q,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$9=defineBuiltIn$a,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$2=isForced_1,_export=function(e,t){var r,o,n,s=e.target,a=e.global,i=e.stat,l=a?global$h:i?global$h[s]||defineGlobalProperty(s,{}):(global$h[s]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$2(a?r:s+(i?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$9(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$6=descriptors,uncurryThis$d=functionUncurryThis,call$d=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$5=Object.defineProperty,concat=uncurryThis$d([].concat),objectAssign=!$assign||fails$c(function(){var e,t,r,o;return!(!DESCRIPTORS$6||1===$assign({b:1},$assign(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,s=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;n<o;)for(var i,l=IndexedObject(arguments[n++]),c=s?concat(objectKeys$1(l),s(l)):objectKeys$1(l),u=c.length,d=0;d<u;)i=c[d++],DESCRIPTORS$6&&!call$d(a,l,i)||(r[i]=l[i]);return r}:$assign,$$d=_export,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});const SLICE_NAME="processingCenter",namespace$2=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending",e.Complete="complete"}(LoadingStatus=LoadingStatus||{}),!function(e){e.Editor="editor",e.Viewer="viewer",e.Owner="owner"}(ESourcePermission=ESourcePermission||{}),"uiState"),initialState$1={status:LoadingStatus.Idle},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{init(e){e.status=LoadingStatus.Pending},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed}}}),actions$2=slice$1.actions;var uiState=slice$1.reducer;const namespace$1="sourceConfiguration",initialState={status:LoadingStatus.Idle,updateStatus:LoadingStatus.Pending,createStatus:LoadingStatus.Pending,newAvatar:null,source:void 0,deleteSourceStatus:null,canBeDeletedStatus:LoadingStatus.Pending,canBeDeleted:null,sourceTypesConfig:{},selectListData:{},retryJobStatus:LoadingStatus.Pending},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{retryJobStart(e,t){e.retryJobStatus=LoadingStatus.Pending},retryJobSuccess(e){e.retryJobStatus=LoadingStatus.Complete},retryJobFailed(e){e.retryJobStatus=LoadingStatus.Failed},fetchSourceStart(e,t){e.status=LoadingStatus.Pending},fetchSourceSuccess(e,t){e.status=LoadingStatus.Complete,e.source=t.payload},fetchSourceFailed(e){e.status=LoadingStatus.Failed},deleteSourceStart(e,t){e.deleteSourceStatus=LoadingStatus.Pending},deleteSourceSuccess(e){e.deleteSourceStatus=LoadingStatus.Complete},deleteSourceFailed(e){e.deleteSourceStatus=LoadingStatus.Failed},deleteSourceReset(e){e.deleteSourceStatus=null},checkCanBeDeletedStart(e,t){e.canBeDeletedStatus=LoadingStatus.Pending},checkCanBeDeletedSuccess(e,t){e.canBeDeletedStatus=LoadingStatus.Idle,e.canBeDeleted=t.payload},checkCanBeDeletedFailed(e,t){e.canBeDeletedStatus=LoadingStatus.Failed,e.canBeDeleted=!1},updateSourceStart(e,t){e.updateStatus=LoadingStatus.Pending},updateSourceSuccess(e,t){e.updateStatus=LoadingStatus.Complete,e.source=t.payload},updateSourceFailed(e){e.updateStatus=LoadingStatus.Failed},createSourceStart(e,t){e.createStatus=LoadingStatus.Pending},createSourceSuccess(e,t){e.createStatus=LoadingStatus.Complete,e.source=t.payload},createSourceFailed(e){e.createStatus=LoadingStatus.Failed},setNewAvatar(e,t){e.newAvatar=t.payload},getSourceTypes(e,t){console.log("getting source types")},setSourceTypes(e,t){var t=t.payload;const s={};null!=(t=null==t?void 0:t.records)&&t.forEach(e=>{var t;const r=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.properties)||{},o=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.required)||[],n={};Object.keys(r).forEach(e=>{var t=r[e];0<=o.indexOf(e)?t.isRequired=!0:t.isRequired=!1,n[e]=Object.assign(Object.assign({},t),{id:e,title:t.title,type:getFieldType(t),allowMultiple:"array"===t.type,isValid:!0}),n[e].query=getQuery(t)}),null!=(t=Object.keys(n))&&t.forEach(t=>{var e;n[t].hasOwnProperty("peerEnumKey")&&(e=find_1(n,e=>e.id===n[t].peerEnumKey))&&0<Object.keys(e).length&&(n[t].parentId=e.id,n[t].type="childSelect",n[t].options=[],n[t].parentValue=e.value)}),s[null==e?void 0:e.id]={id:e.id,name:e.name,organizationId:e.organizationId,fields:n}}),e.sourceTypesConfig=s},setSelectListData(e,t){e.selectListData[t.payload.key]=t.payload.data||{}}}}),actions$1=slice.actions;var configuration_slice=slice.reducer;function getFieldType(e){return e?"string"===e.type&&e.query||"array"===e.type?"select":e.type:""}function getQuery(e){var t;return e?e.query||(null!=(t=e.items)&&t.query?e.items.query:null):""}const namespace=SLICE_NAME,actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:uiState,[namespace$1]:configuration_slice}),selectUIStateStatus=e=>e[namespace].uiState.status;var wellKnownSymbol$h=wellKnownSymbol$j,TO_STRING_TAG$3=wellKnownSymbol$j("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$b=isCallable$m,classofRaw=classofRaw$1,wellKnownSymbol$g=wellKnownSymbol$j,TO_STRING_TAG$2=wellKnownSymbol$j("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$b(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$c=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$5,toString$6=toString$7,whitespaces$1=whitespaces$2,replace$5=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$1=function(t){return function(e){e=toString$6(requireObjectCoercible$2(e));return 1&t&&(e=replace$5(e,ltrim,"")),e=2&t?replace$5(e,rtrim,""):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$g=global$q,fails$b=fails$l,uncurryThis$b=functionUncurryThis,toString$5=toString$7,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$g.parseInt,Symbol$1=global$g.Symbol,ITERATOR$8=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$5=uncurryThis$b(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$8&&!fails$b(function(){$parseInt$1(Object(ITERATOR$8))}),numberParseInt=FORCED?function(e,t){e=trim(toString$5(e));return $parseInt$1(e,t>>>0||(exec$5(hex,e)?16:10))}:$parseInt$1,$$c=_export,$parseInt=numberParseInt;_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});const selectFetchSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.status},selectUpdateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.updateStatus},selectCreateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.createStatus},selectDeleteSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.deleteSourceStatus},selectCheckCanBeDeletedStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeletedStatus},selectCanBeDeleted=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeleted},selectSource=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source},selectSourceTypesConfig=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.sourceTypesConfig},selectSourceContentTemplates=e=>{return null==(e=null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source)?void 0:e.contentTemplates},selectSourceTypes=e=>{const t=selectSourceTypesConfig(e);let r={};return Object.keys(t).forEach(e=>{e=parseInt(e,10),e={[t[e].id]:{id:t[e].id,name:t[e].name}};r=Object.assign(Object.assign({},r),e)}),r},selectNewAvatar=e=>e[namespace].sourceConfiguration.newAvatar,selectDynamicSelectListData=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.selectListData},selectRetryJobStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.retryJobStatus},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(r,t){function o(e){try{s(l.next(e))}catch(e){t(e)}}function n(e){try{s(l.throw(e))}catch(e){t(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,n)}s((l=l.apply(e,a||[])).next())})}const sourceFields=`
1
+ import{H as createSlice,c9 as combineReducers,ca as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,m as makeStyles,k as useSelector,r as react,j as jsxRuntime,v as FormControl,bR as FormHelperText$2,ar as FormControlLabel,as as Checkbox,i as useDispatch,bJ as Icon,cu as Upload,bz as CacheProvider,bA as muiCache,cc as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,a5 as all,F as FormattedMessage,w as TextField,fh as selectApiConfigs$1,eM as InputLabel,aV as Select,aW as MenuItem,p as lodash,ff as selectIsOLPEnabled,cq as userSelector,cn as hidePanel,B as Box,az as CircularProgress,fA as img$u,T as Typography,au as Button,aa as Divider,b0 as Tabs,b1 as Tab,fm as Popover,ag as takeLatest$1,ab as Tooltip,ac as IconButton,gd as AddUser,cr as MoreVert,ce as Close,bX as Hide,cs as Menu,cv as Delete,fp as Download,L as LoadingButton,fE as CheckCircle,bY as showMessage,bZ as MessageSeverity,aj as select,ai as put,M as preferredLanguageSelector,gl as Modal,b4 as AIWareFormatMessage,cB as baseGraphQLApiWithError}from"./js-core.esm.js";import{f as find_1}from"./js-core.esm15.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave,C as ContentTemplates}from"./js-core.esm68.js";import{d as default_1}from"./js-core.esm56.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm53.js";import{C as ContentCopy}from"./js-core.esm51.js";import{B as Box$1}from"./js-core.esm33.js";import"./js-core.esm18.js";import"./js-core.esm69.js";import"./js-core.esm30.js";import"./js-core.esm36.js";import"./js-core.esm37.js";import"./js-core.esm46.js";import"./js-core.esm8.js";import"./js-core.esm31.js";import"./js-core.esm39.js";import"./js-core.esm48.js";import"./js-core.esm23.js";import"./js-core.esm32.js";import"./js-core.esm54.js";import"./js-core.esm34.js";import"./js-core.esm24.js";import"./js-core.esm35.js";import"./js-core.esm50.js";import"./js-core.esm26.js";var match,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,LoadingStatus,ESourcePermission,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$q=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$i=Function.prototype.call,functionCall=NATIVE_BIND$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$8=FunctionPrototype$2.bind,call$h=FunctionPrototype$2.call,uncurryThis$n=NATIVE_BIND$2&&bind$8.bind(call$h,call$h),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$n(e)}:function(e){return e&&function(){return call$h.apply(e,arguments)}},uncurryThis$m=functionUncurryThis,toString$9=uncurryThis$m({}.toString),stringSlice$5=uncurryThis$m("".slice),classofRaw$1=function(e){return stringSlice$5(toString$9(e),8,-1)},uncurryThis$l=functionUncurryThis,fails$i=fails$l,classof$7=classofRaw$1,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split$3(e,""):$Object$4(e)}:$Object$4,$TypeError$c=TypeError,requireObjectCoercible$5=function(e){if(null==e)throw $TypeError$c("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$4(e))},isCallable$m=function(e){return"function"==typeof e},isCallable$l=isCallable$m,isObject$a=function(e){return"object"==typeof e?null!==e:isCallable$l(e)},global$p=global$q,isCallable$k=isCallable$m,aFunction=function(e){return isCallable$k(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$p[e]):global$p[e]&&global$p[e][t]},uncurryThis$k=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$o=global$q,userAgent$3=engineUserAgent,process$3=global$o.process,Deno$1=global$o.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$j=isCallable$m,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$j(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$i=isCallable$m,tryToString$3=tryToString$4,$TypeError$b=TypeError,aCallable$7=function(e){if(isCallable$i(e))return e;throw $TypeError$b(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$3=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$g=functionCall,isCallable$h=isCallable$m,isObject$9=isObject$a,$TypeError$a=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;if(isCallable$h(r=e.valueOf)&&!isObject$9(o=call$g(r,e)))return o;if("string"!==t&&isCallable$h(r=e.toString)&&!isObject$9(o=call$g(r,e)))return o;throw $TypeError$a("Can't convert object to primitive value")},shared$4={exports:{}},isPure=!1,global$n=global$q,defineProperty$7=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$7(global$n,t,{value:r,configurable:!0,writable:!0})}catch(e){global$n[t]=r}return r},global$m=global$q,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$q[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$3=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$5),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$3(e))},uncurryThis$j=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$i=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$i(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$l=global$q,shared$3=shared$4.exports,hasOwn$d=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$l.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$j=function(e){var t;return hasOwn$d(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL&&hasOwn$d(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$f=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$i=wellKnownSymbol$j,$TypeError$9=TypeError,TO_PRIMITIVE=wellKnownSymbol$j("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$f(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$9("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$3=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$k=global$q,isObject$7=isObject$a,document$3=global$q.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$d=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$c=descriptors,call$e=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$c=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$c(e,t))return createPropertyDescriptor$4(!call$e(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$b=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$2=String,$TypeError$8=TypeError,anObject$e=function(e){if(isObject$6(e))return e;throw $TypeError$8($String$2(e)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$1=toPropertyKey$3,$TypeError$7=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$9=(objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&(o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1}),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$d(e),t=toPropertyKey$1(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$7("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$5=DESCRIPTORS$9?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$b=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$b(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$h=functionUncurryThis,isCallable$g=isCallable$m,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$g(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$j=global$q,isCallable$f=isCallable$m,inspectSource$3=inspectSource$4,WeakMap$1=global$q.WeakMap,nativeWeakMap=isCallable$f(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys$1=shared$2("keys"),sharedKey$3=function(e){return keys$1[e]||(keys$1[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$i=global$q,uncurryThis$g=functionUncurryThis,isObject$5=isObject$a,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$a=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$i.TypeError,WeakMap=global$i.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$g(store.get),wmhas=uncurryThis$g(store.has),wmset=uncurryThis$g(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$a(e,STATE))throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$a(e,STATE)?e[STATE]:{}},function(e){return hasOwn$a(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$e=isCallable$m,hasOwn$9=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$5=internalState,enforceInternalState$1=InternalStateModule$5.enforce,getInternalState$3=InternalStateModule$5.get,defineProperty$6=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$e(function(){return 8!==defineProperty$6(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$9(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$7?defineProperty$6(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$9(r,"arity")&&e.length!==r.arity&&defineProperty$6(e,"length",{value:r.arity});try{r&&hasOwn$9(r,"constructor")&&r.constructor?DESCRIPTORS$7&&defineProperty$6(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState$1(e);return hasOwn$9(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$d=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$e(this)&&getInternalState$3(this).source||inspectSource$2(this)},"toString"),isCallable$m),definePropertyModule$4=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$a=function(e,t,r,o){var n=(o=o||{}).enumerable,s=void 0!==o.name?o.name:t;if(isCallable$d(r)&&makeBuiltIn$1(r,s,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$3:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$3=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$2(e);return e<0?max$1(e+t,0):min$1(e,t)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity$1(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$4=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$3=lengthOfArrayLike$4,createMethod$2=function(i){return function(e,t,r){var o,n=toIndexedObject$3(e),s=lengthOfArrayLike$3(n),a=toAbsoluteIndex$1(r,s);if(i&&t!=t){for(;a<s;)if((o=n[a++])!=o)return!0}else for(;a<s;a++)if((i||a in n)&&n[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$f=functionUncurryThis,hasOwn$8=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$3=uncurryThis$f([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,s=[];for(r in o)!hasOwn$8(hiddenKeys$2,r)&&hasOwn$8(o,r)&&push$3(s,r);for(;t.length>n;)!hasOwn$8(o,r=t[n++])||~indexOf$1(s,r)||push$3(s,r);return s},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$e=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$7=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$3.f,s=getOwnPropertyDescriptorModule.f,a=0;a<o.length;a++){var i=o[a];hasOwn$7(e,i)||r&&hasOwn$7(r,i)||n(e,i,s(t,i))}},fails$d=fails$l,isCallable$c=isCallable$m,replacement=/#|\.prototype\./,isForced$3=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$c(t)?fails$d(t):!!t)},normalize=isForced$3.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$3.data={},NATIVE=isForced$3.NATIVE="N",POLYFILL=isForced$3.POLYFILL="P",isForced_1=isForced$3,global$h=global$q,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$9=defineBuiltIn$a,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$2=isForced_1,_export=function(e,t){var r,o,n,s=e.target,a=e.global,i=e.stat,l=a?global$h:i?global$h[s]||defineGlobalProperty(s,{}):(global$h[s]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor$2(l,r))&&n.value:l[r],!isForced$2(a?r:s+(i?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$3(o,"sham",!0),defineBuiltIn$9(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$6=descriptors,uncurryThis$d=functionUncurryThis,call$d=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$5=Object.defineProperty,concat=uncurryThis$d([].concat),objectAssign=!$assign||fails$c(function(){var e,t,r,o;return!(!DESCRIPTORS$6||1===$assign({b:1},$assign(defineProperty$5({},"a",{enumerable:!0,get:function(){defineProperty$5(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},o="abcdefghijklmnopqrst",(e={})[r=Symbol()]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r])||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$2(e),o=arguments.length,n=1,s=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;n<o;)for(var i,l=IndexedObject(arguments[n++]),c=s?concat(objectKeys$1(l),s(l)):objectKeys$1(l),u=c.length,d=0;d<u;)i=c[d++],DESCRIPTORS$6&&!call$d(a,l,i)||(r[i]=l[i]);return r}:$assign,$$d=_export,assign$1=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1});const SLICE_NAME="processingCenter",namespace$2=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending",e.Complete="complete"}(LoadingStatus=LoadingStatus||{}),!function(e){e.Editor="editor",e.Viewer="viewer",e.Owner="owner"}(ESourcePermission=ESourcePermission||{}),"uiState"),initialState$1={status:LoadingStatus.Idle},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{init(e){e.status=LoadingStatus.Pending},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed}}}),actions$2=slice$1.actions;var uiState=slice$1.reducer;const namespace$1="sourceConfiguration",initialState={status:LoadingStatus.Idle,updateStatus:LoadingStatus.Pending,createStatus:LoadingStatus.Pending,newAvatar:null,source:void 0,deleteSourceStatus:null,canBeDeletedStatus:LoadingStatus.Pending,canBeDeleted:null,sourceTypesConfig:{},selectListData:{},retryJobStatus:LoadingStatus.Pending},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{retryJobStart(e,t){e.retryJobStatus=LoadingStatus.Pending},retryJobSuccess(e){e.retryJobStatus=LoadingStatus.Complete},retryJobFailed(e){e.retryJobStatus=LoadingStatus.Failed},fetchSourceStart(e,t){e.status=LoadingStatus.Pending},fetchSourceSuccess(e,t){e.status=LoadingStatus.Complete,e.source=t.payload},fetchSourceFailed(e){e.status=LoadingStatus.Failed},deleteSourceStart(e,t){e.deleteSourceStatus=LoadingStatus.Pending},deleteSourceSuccess(e){e.deleteSourceStatus=LoadingStatus.Complete},deleteSourceFailed(e){e.deleteSourceStatus=LoadingStatus.Failed},deleteSourceReset(e){e.deleteSourceStatus=null},checkCanBeDeletedStart(e,t){e.canBeDeletedStatus=LoadingStatus.Pending},checkCanBeDeletedSuccess(e,t){e.canBeDeletedStatus=LoadingStatus.Idle,e.canBeDeleted=t.payload},checkCanBeDeletedFailed(e,t){e.canBeDeletedStatus=LoadingStatus.Failed,e.canBeDeleted=!1},updateSourceStart(e,t){e.updateStatus=LoadingStatus.Pending},updateSourceSuccess(e,t){e.updateStatus=LoadingStatus.Complete,e.source=t.payload},updateSourceFailed(e){e.updateStatus=LoadingStatus.Failed},createSourceStart(e,t){e.createStatus=LoadingStatus.Pending},createSourceSuccess(e,t){e.createStatus=LoadingStatus.Complete,e.source=t.payload},createSourceFailed(e){e.createStatus=LoadingStatus.Failed},setNewAvatar(e,t){e.newAvatar=t.payload},getSourceTypes(e,t){console.log("getting source types")},setSourceTypes(e,t){var t=t.payload;const s={};null!=(t=null==t?void 0:t.records)&&t.forEach(e=>{var t;const r=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.properties)||{},o=(null==(t=null==(t=null==e?void 0:e.sourceSchema)?void 0:t.definition)?void 0:t.required)||[],n={};Object.keys(r).forEach(e=>{var t=r[e];0<=o.indexOf(e)?t.isRequired=!0:t.isRequired=!1,n[e]=Object.assign(Object.assign({},t),{id:e,title:t.title,type:getFieldType(t),allowMultiple:"array"===t.type,isValid:!0}),n[e].query=getQuery(t)}),null!=(t=Object.keys(n))&&t.forEach(t=>{var e;n[t].hasOwnProperty("peerEnumKey")&&(e=find_1(n,e=>e.id===n[t].peerEnumKey))&&0<Object.keys(e).length&&(n[t].parentId=e.id,n[t].type="childSelect",n[t].options=[],n[t].parentValue=e.value)}),s[null==e?void 0:e.id]={id:e.id,name:e.name,organizationId:e.organizationId,fields:n}}),e.sourceTypesConfig=s},setSelectListData(e,t){e.selectListData[t.payload.key]=t.payload.data||{}}}}),actions$1=slice.actions;var configuration_slice=slice.reducer;function getFieldType(e){return e?"string"===e.type&&e.query||"array"===e.type?"select":e.type:""}function getQuery(e){var t;return e?e.query||(null!=(t=e.items)&&t.query?e.items.query:null):""}const namespace=SLICE_NAME,actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:uiState,[namespace$1]:configuration_slice}),selectUIStateStatus=e=>e[namespace].uiState.status;var wellKnownSymbol$h=wellKnownSymbol$j,TO_STRING_TAG$3=wellKnownSymbol$j("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$b=isCallable$m,classofRaw=classofRaw$1,wellKnownSymbol$g=wellKnownSymbol$j,TO_STRING_TAG$2=wellKnownSymbol$j("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$b(e.callee)?"Arguments":t},classof$5=classof$6,$String$1=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$c=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$5,toString$6=toString$7,whitespaces$1=whitespaces$2,replace$5=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$1=function(t){return function(e){e=toString$6(requireObjectCoercible$2(e));return 1&t&&(e=replace$5(e,ltrim,"")),e=2&t?replace$5(e,rtrim,""):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$g=global$q,fails$b=fails$l,uncurryThis$b=functionUncurryThis,toString$5=toString$7,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$g.parseInt,Symbol$1=global$g.Symbol,ITERATOR$8=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$5=uncurryThis$b(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$8&&!fails$b(function(){$parseInt$1(Object(ITERATOR$8))}),numberParseInt=FORCED?function(e,t){e=trim(toString$5(e));return $parseInt$1(e,t>>>0||(exec$5(hex,e)?16:10))}:$parseInt$1,$$c=_export,$parseInt=numberParseInt;_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt});const selectFetchSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.status},selectUpdateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.updateStatus},selectCreateSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.createStatus},selectDeleteSourceStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.deleteSourceStatus},selectCheckCanBeDeletedStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeletedStatus},selectCanBeDeleted=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.canBeDeleted},selectSource=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source},selectSourceTypesConfig=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.sourceTypesConfig},selectSourceContentTemplates=e=>{return null==(e=null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.source)?void 0:e.contentTemplates},selectSourceTypes=e=>{const t=selectSourceTypesConfig(e);let r={};return Object.keys(t).forEach(e=>{e=parseInt(e,10),e={[t[e].id]:{id:t[e].id,name:t[e].name}};r=Object.assign(Object.assign({},r),e)}),r},selectNewAvatar=e=>e[namespace].sourceConfiguration.newAvatar,selectDynamicSelectListData=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.selectListData},selectRetryJobStatus=e=>{return null==(e=null==(e=e[namespace])?void 0:e.sourceConfiguration)?void 0:e.retryJobStatus},selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(r,t){function o(e){try{s(l.next(e))}catch(e){t(e)}}function n(e){try{s(l.throw(e))}catch(e){t(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(o,n)}s((l=l.apply(e,a||[])).next())})}const sourceFields=`
2
2
  id
3
3
  sourceType { id }
4
4
  name
Binary file