aiware-js 1.0.0-master.82 → 1.0.0-master.821

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 (478) hide show
  1. package/aiware-ui.esm.js +46 -0
  2. package/files/dosis-all-200-normal.woff +0 -0
  3. package/files/dosis-all-300-normal.woff +0 -0
  4. package/files/dosis-all-400-normal.woff +0 -0
  5. package/files/dosis-all-500-normal.woff +0 -0
  6. package/files/dosis-all-600-normal.woff +0 -0
  7. package/files/dosis-all-700-normal.woff +0 -0
  8. package/files/dosis-all-800-normal.woff +0 -0
  9. package/files/dosis-latin-200-normal.woff +0 -0
  10. package/files/dosis-latin-200-normal.woff2 +0 -0
  11. package/files/dosis-latin-300-normal.woff +0 -0
  12. package/files/dosis-latin-300-normal.woff2 +0 -0
  13. package/files/dosis-latin-400-normal.woff +0 -0
  14. package/files/dosis-latin-400-normal.woff2 +0 -0
  15. package/files/dosis-latin-500-normal.woff +0 -0
  16. package/files/dosis-latin-500-normal.woff2 +0 -0
  17. package/files/dosis-latin-600-normal.woff +0 -0
  18. package/files/dosis-latin-600-normal.woff2 +0 -0
  19. package/files/dosis-latin-700-normal.woff +0 -0
  20. package/files/dosis-latin-700-normal.woff2 +0 -0
  21. package/files/dosis-latin-800-normal.woff +0 -0
  22. package/files/dosis-latin-800-normal.woff2 +0 -0
  23. package/files/dosis-latin-ext-200-normal.woff +0 -0
  24. package/files/dosis-latin-ext-200-normal.woff2 +0 -0
  25. package/files/dosis-latin-ext-300-normal.woff +0 -0
  26. package/files/dosis-latin-ext-300-normal.woff2 +0 -0
  27. package/files/dosis-latin-ext-400-normal.woff +0 -0
  28. package/files/dosis-latin-ext-400-normal.woff2 +0 -0
  29. package/files/dosis-latin-ext-500-normal.woff +0 -0
  30. package/files/dosis-latin-ext-500-normal.woff2 +0 -0
  31. package/files/dosis-latin-ext-600-normal.woff +0 -0
  32. package/files/dosis-latin-ext-600-normal.woff2 +0 -0
  33. package/files/dosis-latin-ext-700-normal.woff +0 -0
  34. package/files/dosis-latin-ext-700-normal.woff2 +0 -0
  35. package/files/dosis-latin-ext-800-normal.woff +0 -0
  36. package/files/dosis-latin-ext-800-normal.woff2 +0 -0
  37. package/files/dosis-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  38. package/files/dosis-latin-variable-wghtOnly-normal.woff2 +0 -0
  39. package/files/dosis-vietnamese-200-normal.woff +0 -0
  40. package/files/dosis-vietnamese-200-normal.woff2 +0 -0
  41. package/files/dosis-vietnamese-300-normal.woff +0 -0
  42. package/files/dosis-vietnamese-300-normal.woff2 +0 -0
  43. package/files/dosis-vietnamese-400-normal.woff +0 -0
  44. package/files/dosis-vietnamese-400-normal.woff2 +0 -0
  45. package/files/dosis-vietnamese-500-normal.woff +0 -0
  46. package/files/dosis-vietnamese-500-normal.woff2 +0 -0
  47. package/files/dosis-vietnamese-600-normal.woff +0 -0
  48. package/files/dosis-vietnamese-600-normal.woff2 +0 -0
  49. package/files/dosis-vietnamese-700-normal.woff +0 -0
  50. package/files/dosis-vietnamese-700-normal.woff2 +0 -0
  51. package/files/dosis-vietnamese-800-normal.woff +0 -0
  52. package/files/dosis-vietnamese-800-normal.woff2 +0 -0
  53. package/files/dosis-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  54. package/files/nunito-all-200-italic.woff +0 -0
  55. package/files/nunito-all-200-normal.woff +0 -0
  56. package/files/nunito-all-300-italic.woff +0 -0
  57. package/files/nunito-all-300-normal.woff +0 -0
  58. package/files/nunito-all-400-italic.woff +0 -0
  59. package/files/nunito-all-400-normal.woff +0 -0
  60. package/files/nunito-all-500-italic.woff +0 -0
  61. package/files/nunito-all-500-normal.woff +0 -0
  62. package/files/nunito-all-600-italic.woff +0 -0
  63. package/files/nunito-all-600-normal.woff +0 -0
  64. package/files/nunito-all-700-italic.woff +0 -0
  65. package/files/nunito-all-700-normal.woff +0 -0
  66. package/files/nunito-all-800-italic.woff +0 -0
  67. package/files/nunito-all-800-normal.woff +0 -0
  68. package/files/nunito-all-900-italic.woff +0 -0
  69. package/files/nunito-all-900-normal.woff +0 -0
  70. package/files/nunito-cyrillic-200-italic.woff +0 -0
  71. package/files/nunito-cyrillic-200-italic.woff2 +0 -0
  72. package/files/nunito-cyrillic-200-normal.woff +0 -0
  73. package/files/nunito-cyrillic-200-normal.woff2 +0 -0
  74. package/files/nunito-cyrillic-300-italic.woff +0 -0
  75. package/files/nunito-cyrillic-300-italic.woff2 +0 -0
  76. package/files/nunito-cyrillic-300-normal.woff +0 -0
  77. package/files/nunito-cyrillic-300-normal.woff2 +0 -0
  78. package/files/nunito-cyrillic-400-italic.woff +0 -0
  79. package/files/nunito-cyrillic-400-italic.woff2 +0 -0
  80. package/files/nunito-cyrillic-400-normal.woff +0 -0
  81. package/files/nunito-cyrillic-400-normal.woff2 +0 -0
  82. package/files/nunito-cyrillic-500-italic.woff +0 -0
  83. package/files/nunito-cyrillic-500-italic.woff2 +0 -0
  84. package/files/nunito-cyrillic-500-normal.woff +0 -0
  85. package/files/nunito-cyrillic-500-normal.woff2 +0 -0
  86. package/files/nunito-cyrillic-600-italic.woff +0 -0
  87. package/files/nunito-cyrillic-600-italic.woff2 +0 -0
  88. package/files/nunito-cyrillic-600-normal.woff +0 -0
  89. package/files/nunito-cyrillic-600-normal.woff2 +0 -0
  90. package/files/nunito-cyrillic-700-italic.woff +0 -0
  91. package/files/nunito-cyrillic-700-italic.woff2 +0 -0
  92. package/files/nunito-cyrillic-700-normal.woff +0 -0
  93. package/files/nunito-cyrillic-700-normal.woff2 +0 -0
  94. package/files/nunito-cyrillic-800-italic.woff +0 -0
  95. package/files/nunito-cyrillic-800-italic.woff2 +0 -0
  96. package/files/nunito-cyrillic-800-normal.woff +0 -0
  97. package/files/nunito-cyrillic-800-normal.woff2 +0 -0
  98. package/files/nunito-cyrillic-900-italic.woff +0 -0
  99. package/files/nunito-cyrillic-900-italic.woff2 +0 -0
  100. package/files/nunito-cyrillic-900-normal.woff +0 -0
  101. package/files/nunito-cyrillic-900-normal.woff2 +0 -0
  102. package/files/nunito-cyrillic-ext-200-italic.woff +0 -0
  103. package/files/nunito-cyrillic-ext-200-italic.woff2 +0 -0
  104. package/files/nunito-cyrillic-ext-200-normal.woff +0 -0
  105. package/files/nunito-cyrillic-ext-200-normal.woff2 +0 -0
  106. package/files/nunito-cyrillic-ext-300-italic.woff +0 -0
  107. package/files/nunito-cyrillic-ext-300-italic.woff2 +0 -0
  108. package/files/nunito-cyrillic-ext-300-normal.woff +0 -0
  109. package/files/nunito-cyrillic-ext-300-normal.woff2 +0 -0
  110. package/files/nunito-cyrillic-ext-400-italic.woff +0 -0
  111. package/files/nunito-cyrillic-ext-400-italic.woff2 +0 -0
  112. package/files/nunito-cyrillic-ext-400-normal.woff +0 -0
  113. package/files/nunito-cyrillic-ext-400-normal.woff2 +0 -0
  114. package/files/nunito-cyrillic-ext-500-italic.woff +0 -0
  115. package/files/nunito-cyrillic-ext-500-italic.woff2 +0 -0
  116. package/files/nunito-cyrillic-ext-500-normal.woff +0 -0
  117. package/files/nunito-cyrillic-ext-500-normal.woff2 +0 -0
  118. package/files/nunito-cyrillic-ext-600-italic.woff +0 -0
  119. package/files/nunito-cyrillic-ext-600-italic.woff2 +0 -0
  120. package/files/nunito-cyrillic-ext-600-normal.woff +0 -0
  121. package/files/nunito-cyrillic-ext-600-normal.woff2 +0 -0
  122. package/files/nunito-cyrillic-ext-700-italic.woff +0 -0
  123. package/files/nunito-cyrillic-ext-700-italic.woff2 +0 -0
  124. package/files/nunito-cyrillic-ext-700-normal.woff +0 -0
  125. package/files/nunito-cyrillic-ext-700-normal.woff2 +0 -0
  126. package/files/nunito-cyrillic-ext-800-italic.woff +0 -0
  127. package/files/nunito-cyrillic-ext-800-italic.woff2 +0 -0
  128. package/files/nunito-cyrillic-ext-800-normal.woff +0 -0
  129. package/files/nunito-cyrillic-ext-800-normal.woff2 +0 -0
  130. package/files/nunito-cyrillic-ext-900-italic.woff +0 -0
  131. package/files/nunito-cyrillic-ext-900-italic.woff2 +0 -0
  132. package/files/nunito-cyrillic-ext-900-normal.woff +0 -0
  133. package/files/nunito-cyrillic-ext-900-normal.woff2 +0 -0
  134. package/files/nunito-cyrillic-ext-variable-wghtOnly-italic.woff2 +0 -0
  135. package/files/nunito-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  136. package/files/nunito-cyrillic-variable-wghtOnly-italic.woff2 +0 -0
  137. package/files/nunito-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  138. package/files/nunito-latin-200-italic.woff +0 -0
  139. package/files/nunito-latin-200-italic.woff2 +0 -0
  140. package/files/nunito-latin-200-normal.woff +0 -0
  141. package/files/nunito-latin-200-normal.woff2 +0 -0
  142. package/files/nunito-latin-300-italic.woff +0 -0
  143. package/files/nunito-latin-300-italic.woff2 +0 -0
  144. package/files/nunito-latin-300-normal.woff +0 -0
  145. package/files/nunito-latin-300-normal.woff2 +0 -0
  146. package/files/nunito-latin-400-italic.woff +0 -0
  147. package/files/nunito-latin-400-italic.woff2 +0 -0
  148. package/files/nunito-latin-400-normal.woff +0 -0
  149. package/files/nunito-latin-400-normal.woff2 +0 -0
  150. package/files/nunito-latin-500-italic.woff +0 -0
  151. package/files/nunito-latin-500-italic.woff2 +0 -0
  152. package/files/nunito-latin-500-normal.woff +0 -0
  153. package/files/nunito-latin-500-normal.woff2 +0 -0
  154. package/files/nunito-latin-600-italic.woff +0 -0
  155. package/files/nunito-latin-600-italic.woff2 +0 -0
  156. package/files/nunito-latin-600-normal.woff +0 -0
  157. package/files/nunito-latin-600-normal.woff2 +0 -0
  158. package/files/nunito-latin-700-italic.woff +0 -0
  159. package/files/nunito-latin-700-italic.woff2 +0 -0
  160. package/files/nunito-latin-700-normal.woff +0 -0
  161. package/files/nunito-latin-700-normal.woff2 +0 -0
  162. package/files/nunito-latin-800-italic.woff +0 -0
  163. package/files/nunito-latin-800-italic.woff2 +0 -0
  164. package/files/nunito-latin-800-normal.woff +0 -0
  165. package/files/nunito-latin-800-normal.woff2 +0 -0
  166. package/files/nunito-latin-900-italic.woff +0 -0
  167. package/files/nunito-latin-900-italic.woff2 +0 -0
  168. package/files/nunito-latin-900-normal.woff +0 -0
  169. package/files/nunito-latin-900-normal.woff2 +0 -0
  170. package/files/nunito-latin-ext-200-italic.woff +0 -0
  171. package/files/nunito-latin-ext-200-italic.woff2 +0 -0
  172. package/files/nunito-latin-ext-200-normal.woff +0 -0
  173. package/files/nunito-latin-ext-200-normal.woff2 +0 -0
  174. package/files/nunito-latin-ext-300-italic.woff +0 -0
  175. package/files/nunito-latin-ext-300-italic.woff2 +0 -0
  176. package/files/nunito-latin-ext-300-normal.woff +0 -0
  177. package/files/nunito-latin-ext-300-normal.woff2 +0 -0
  178. package/files/nunito-latin-ext-400-italic.woff +0 -0
  179. package/files/nunito-latin-ext-400-italic.woff2 +0 -0
  180. package/files/nunito-latin-ext-400-normal.woff +0 -0
  181. package/files/nunito-latin-ext-400-normal.woff2 +0 -0
  182. package/files/nunito-latin-ext-500-italic.woff +0 -0
  183. package/files/nunito-latin-ext-500-italic.woff2 +0 -0
  184. package/files/nunito-latin-ext-500-normal.woff +0 -0
  185. package/files/nunito-latin-ext-500-normal.woff2 +0 -0
  186. package/files/nunito-latin-ext-600-italic.woff +0 -0
  187. package/files/nunito-latin-ext-600-italic.woff2 +0 -0
  188. package/files/nunito-latin-ext-600-normal.woff +0 -0
  189. package/files/nunito-latin-ext-600-normal.woff2 +0 -0
  190. package/files/nunito-latin-ext-700-italic.woff +0 -0
  191. package/files/nunito-latin-ext-700-italic.woff2 +0 -0
  192. package/files/nunito-latin-ext-700-normal.woff +0 -0
  193. package/files/nunito-latin-ext-700-normal.woff2 +0 -0
  194. package/files/nunito-latin-ext-800-italic.woff +0 -0
  195. package/files/nunito-latin-ext-800-italic.woff2 +0 -0
  196. package/files/nunito-latin-ext-800-normal.woff +0 -0
  197. package/files/nunito-latin-ext-800-normal.woff2 +0 -0
  198. package/files/nunito-latin-ext-900-italic.woff +0 -0
  199. package/files/nunito-latin-ext-900-italic.woff2 +0 -0
  200. package/files/nunito-latin-ext-900-normal.woff +0 -0
  201. package/files/nunito-latin-ext-900-normal.woff2 +0 -0
  202. package/files/nunito-latin-ext-variable-wghtOnly-italic.woff2 +0 -0
  203. package/files/nunito-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  204. package/files/nunito-latin-variable-wghtOnly-italic.woff2 +0 -0
  205. package/files/nunito-latin-variable-wghtOnly-normal.woff2 +0 -0
  206. package/files/nunito-vietnamese-200-italic.woff +0 -0
  207. package/files/nunito-vietnamese-200-italic.woff2 +0 -0
  208. package/files/nunito-vietnamese-200-normal.woff +0 -0
  209. package/files/nunito-vietnamese-200-normal.woff2 +0 -0
  210. package/files/nunito-vietnamese-300-italic.woff +0 -0
  211. package/files/nunito-vietnamese-300-italic.woff2 +0 -0
  212. package/files/nunito-vietnamese-300-normal.woff +0 -0
  213. package/files/nunito-vietnamese-300-normal.woff2 +0 -0
  214. package/files/nunito-vietnamese-400-italic.woff +0 -0
  215. package/files/nunito-vietnamese-400-italic.woff2 +0 -0
  216. package/files/nunito-vietnamese-400-normal.woff +0 -0
  217. package/files/nunito-vietnamese-400-normal.woff2 +0 -0
  218. package/files/nunito-vietnamese-500-italic.woff +0 -0
  219. package/files/nunito-vietnamese-500-italic.woff2 +0 -0
  220. package/files/nunito-vietnamese-500-normal.woff +0 -0
  221. package/files/nunito-vietnamese-500-normal.woff2 +0 -0
  222. package/files/nunito-vietnamese-600-italic.woff +0 -0
  223. package/files/nunito-vietnamese-600-italic.woff2 +0 -0
  224. package/files/nunito-vietnamese-600-normal.woff +0 -0
  225. package/files/nunito-vietnamese-600-normal.woff2 +0 -0
  226. package/files/nunito-vietnamese-700-italic.woff +0 -0
  227. package/files/nunito-vietnamese-700-italic.woff2 +0 -0
  228. package/files/nunito-vietnamese-700-normal.woff +0 -0
  229. package/files/nunito-vietnamese-700-normal.woff2 +0 -0
  230. package/files/nunito-vietnamese-800-italic.woff +0 -0
  231. package/files/nunito-vietnamese-800-italic.woff2 +0 -0
  232. package/files/nunito-vietnamese-800-normal.woff +0 -0
  233. package/files/nunito-vietnamese-800-normal.woff2 +0 -0
  234. package/files/nunito-vietnamese-900-italic.woff +0 -0
  235. package/files/nunito-vietnamese-900-italic.woff2 +0 -0
  236. package/files/nunito-vietnamese-900-normal.woff +0 -0
  237. package/files/nunito-vietnamese-900-normal.woff2 +0 -0
  238. package/files/nunito-vietnamese-variable-wghtOnly-italic.woff2 +0 -0
  239. package/files/nunito-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  240. package/index.d.ts +1 -0
  241. package/index.esm.css +1500 -166
  242. package/index.esm.css.gz +0 -0
  243. package/index.esm.js +1 -1
  244. package/index.esm.js.gz +0 -0
  245. package/index.esm.min.css +1820 -0
  246. package/index.esm.min.css.gz +0 -0
  247. package/index.html +1 -2
  248. package/js-core.esm.js +634 -63
  249. package/js-core.esm.js.gz +0 -0
  250. package/js-core.esm10.js +1 -1
  251. package/js-core.esm10.js.gz +0 -0
  252. package/js-core.esm11.js +80 -1
  253. package/js-core.esm11.js.gz +0 -0
  254. package/js-core.esm12.js +1 -1
  255. package/js-core.esm12.js.gz +0 -0
  256. package/js-core.esm13.js +596 -1
  257. package/js-core.esm13.js.gz +0 -0
  258. package/js-core.esm14.js +1 -1
  259. package/js-core.esm14.js.gz +0 -0
  260. package/js-core.esm15.js +1 -22
  261. package/js-core.esm15.js.gz +0 -0
  262. package/js-core.esm16.js +1 -1
  263. package/js-core.esm16.js.gz +0 -0
  264. package/js-core.esm17.js +1 -595
  265. package/js-core.esm17.js.gz +0 -0
  266. package/js-core.esm18.js +1 -1
  267. package/js-core.esm18.js.gz +0 -0
  268. package/js-core.esm19.js +1 -1
  269. package/js-core.esm19.js.gz +0 -0
  270. package/js-core.esm2.js +1 -1
  271. package/js-core.esm2.js.gz +0 -0
  272. package/js-core.esm20.js +1 -1
  273. package/js-core.esm20.js.gz +0 -0
  274. package/js-core.esm21.js +1 -1
  275. package/js-core.esm21.js.gz +0 -0
  276. package/js-core.esm22.js +240 -1
  277. package/js-core.esm22.js.gz +0 -0
  278. package/js-core.esm23.js +20 -1
  279. package/js-core.esm23.js.gz +0 -0
  280. package/js-core.esm24.js +1 -1
  281. package/js-core.esm24.js.gz +0 -0
  282. package/js-core.esm25.js +1 -1
  283. package/js-core.esm25.js.gz +0 -0
  284. package/js-core.esm26.js +1 -230
  285. package/js-core.esm26.js.gz +0 -0
  286. package/js-core.esm27.js +1 -60
  287. package/js-core.esm27.js.gz +0 -0
  288. package/js-core.esm28.js +1 -1
  289. package/js-core.esm28.js.gz +0 -0
  290. package/js-core.esm29.js +1 -1
  291. package/js-core.esm29.js.gz +0 -0
  292. package/js-core.esm3.js +1 -1
  293. package/js-core.esm3.js.gz +0 -0
  294. package/js-core.esm30.js +1 -1
  295. package/js-core.esm30.js.gz +0 -0
  296. package/js-core.esm31.js +1 -1
  297. package/js-core.esm31.js.gz +0 -0
  298. package/js-core.esm32.js +1 -14
  299. package/js-core.esm32.js.gz +0 -0
  300. package/js-core.esm33.js +1 -12
  301. package/js-core.esm33.js.gz +0 -0
  302. package/js-core.esm34.js +101 -54
  303. package/js-core.esm34.js.gz +0 -0
  304. package/js-core.esm35.js +214 -1
  305. package/js-core.esm35.js.gz +0 -0
  306. package/js-core.esm36.js +1 -88
  307. package/js-core.esm36.js.gz +0 -0
  308. package/js-core.esm37.js +1 -226
  309. package/js-core.esm37.js.gz +0 -0
  310. package/js-core.esm38.js +6 -4
  311. package/js-core.esm38.js.gz +0 -0
  312. package/js-core.esm39.js +1 -1
  313. package/js-core.esm39.js.gz +0 -0
  314. package/js-core.esm4.js +13 -1
  315. package/js-core.esm4.js.gz +0 -0
  316. package/js-core.esm40.js +1 -1
  317. package/js-core.esm40.js.gz +0 -0
  318. package/js-core.esm41.js +31 -1
  319. package/js-core.esm41.js.gz +0 -0
  320. package/js-core.esm42.js +1 -1
  321. package/js-core.esm42.js.gz +0 -0
  322. package/js-core.esm43.js +29 -31
  323. package/js-core.esm43.js.gz +0 -0
  324. package/js-core.esm44.js +98 -1
  325. package/js-core.esm44.js.gz +0 -0
  326. package/js-core.esm45.js +64 -1
  327. package/js-core.esm45.js.gz +0 -0
  328. package/js-core.esm46.js +8 -1
  329. package/js-core.esm46.js.gz +0 -0
  330. package/js-core.esm47.js +54 -0
  331. package/js-core.esm47.js.gz +0 -0
  332. package/js-core.esm48.js +111 -0
  333. package/js-core.esm48.js.gz +0 -0
  334. package/js-core.esm49.js +156 -0
  335. package/js-core.esm49.js.gz +0 -0
  336. package/js-core.esm5.js +1 -1
  337. package/js-core.esm5.js.gz +0 -0
  338. package/js-core.esm50.js +75 -0
  339. package/js-core.esm50.js.gz +0 -0
  340. package/js-core.esm51.js +15 -0
  341. package/js-core.esm51.js.gz +0 -0
  342. package/js-core.esm52.js +1 -0
  343. package/js-core.esm52.js.gz +0 -0
  344. package/js-core.esm53.js +1 -0
  345. package/js-core.esm53.js.gz +0 -0
  346. package/js-core.esm54.js +123 -0
  347. package/js-core.esm54.js.gz +0 -0
  348. package/js-core.esm55.js +64 -0
  349. package/js-core.esm55.js.gz +0 -0
  350. package/js-core.esm56.js +35 -0
  351. package/js-core.esm56.js.gz +0 -0
  352. package/js-core.esm57.js +1 -0
  353. package/js-core.esm57.js.gz +0 -0
  354. package/js-core.esm58.js +14 -0
  355. package/js-core.esm58.js.gz +0 -0
  356. package/js-core.esm59.js +1 -0
  357. package/js-core.esm59.js.gz +0 -0
  358. package/js-core.esm6.js +1 -20
  359. package/js-core.esm6.js.gz +0 -0
  360. package/js-core.esm60.js +1 -0
  361. package/js-core.esm60.js.gz +0 -0
  362. package/js-core.esm61.js +61 -0
  363. package/js-core.esm61.js.gz +0 -0
  364. package/js-core.esm62.js +210 -0
  365. package/js-core.esm62.js.gz +0 -0
  366. package/js-core.esm63.js +51 -0
  367. package/js-core.esm63.js.gz +0 -0
  368. package/js-core.esm64.js +1 -0
  369. package/js-core.esm64.js.gz +0 -0
  370. package/js-core.esm65.js +1 -0
  371. package/js-core.esm65.js.gz +0 -0
  372. package/js-core.esm66.js +35 -0
  373. package/js-core.esm66.js.gz +0 -0
  374. package/js-core.esm67.js +1 -0
  375. package/js-core.esm67.js.gz +0 -0
  376. package/js-core.esm68.js +1 -0
  377. package/js-core.esm68.js.gz +0 -0
  378. package/js-core.esm69.js +1 -0
  379. package/js-core.esm69.js.gz +0 -0
  380. package/js-core.esm7.js +1 -136
  381. package/js-core.esm7.js.gz +0 -0
  382. package/js-core.esm70.js +1 -0
  383. package/js-core.esm70.js.gz +0 -0
  384. package/js-core.esm71.js +1 -0
  385. package/js-core.esm71.js.gz +0 -0
  386. package/js-core.esm72.js +1 -0
  387. package/js-core.esm72.js.gz +0 -0
  388. package/js-core.esm73.js +1 -0
  389. package/js-core.esm73.js.gz +0 -0
  390. package/js-core.esm74.js +1 -0
  391. package/js-core.esm74.js.gz +0 -0
  392. package/js-core.esm75.js +1 -0
  393. package/js-core.esm75.js.gz +0 -0
  394. package/js-core.esm76.js +1 -0
  395. package/js-core.esm76.js.gz +0 -0
  396. package/js-core.esm77.js +1 -0
  397. package/js-core.esm77.js.gz +0 -0
  398. package/js-core.esm78.js +1 -0
  399. package/js-core.esm78.js.gz +0 -0
  400. package/js-core.esm79.js +1 -0
  401. package/js-core.esm79.js.gz +0 -0
  402. package/js-core.esm8.js +1 -1
  403. package/js-core.esm8.js.gz +0 -0
  404. package/js-core.esm80.js +1 -0
  405. package/js-core.esm80.js.gz +0 -0
  406. package/js-core.esm81.js +1 -0
  407. package/js-core.esm81.js.gz +0 -0
  408. package/js-core.esm82.js +1 -0
  409. package/js-core.esm82.js.gz +0 -0
  410. package/js-core.esm83.js +1 -0
  411. package/js-core.esm83.js.gz +0 -0
  412. package/js-core.esm84.js +1 -0
  413. package/js-core.esm84.js.gz +0 -0
  414. package/js-core.esm85.js +1 -0
  415. package/js-core.esm85.js.gz +0 -0
  416. package/js-core.esm86.js +1 -0
  417. package/js-core.esm86.js.gz +0 -0
  418. package/js-core.esm87.js +1 -0
  419. package/js-core.esm87.js.gz +0 -0
  420. package/js-core.esm9.js +1 -1
  421. package/js-core.esm9.js.gz +0 -0
  422. package/js-core.umd.css +1545 -211
  423. package/js-core.umd.css.gz +0 -0
  424. package/js-core.umd.js +1902 -268
  425. package/js-core.umd.js.gz +0 -0
  426. package/js-core.umd.min.css +1377 -105
  427. package/js-core.umd.min.css.gz +0 -0
  428. package/lib/ApplicationDialog.d.ts +1 -0
  429. package/lib/components/SupportCenterPixel.d.ts +1 -0
  430. package/lib/js.d.ts +12 -4
  431. package/lib/rate-limiter.d.ts +6 -0
  432. package/lib/registry.d.ts +2 -1
  433. package/lib/snackbar.d.ts +1 -0
  434. package/lib/validateConfig.d.ts +1 -1
  435. package/lib/widgetHandler.d.ts +18 -3
  436. package/locales/en.json +1 -1
  437. package/locales/es.json +1 -1
  438. package/locales/fr.json +1 -1
  439. package/package.json +63 -22
  440. package/files/dosis-latin-200.woff +0 -0
  441. package/files/dosis-latin-200.woff2 +0 -0
  442. package/files/dosis-latin-300.woff +0 -0
  443. package/files/dosis-latin-300.woff2 +0 -0
  444. package/files/dosis-latin-500.woff +0 -0
  445. package/files/dosis-latin-500.woff2 +0 -0
  446. package/files/dosis-latin-600.woff +0 -0
  447. package/files/dosis-latin-600.woff2 +0 -0
  448. package/files/dosis-latin-700.woff +0 -0
  449. package/files/dosis-latin-700.woff2 +0 -0
  450. package/files/dosis-latin-800.woff +0 -0
  451. package/files/dosis-latin-800.woff2 +0 -0
  452. package/files/nunito-latin-200.woff +0 -0
  453. package/files/nunito-latin-200.woff2 +0 -0
  454. package/files/nunito-latin-200italic.woff +0 -0
  455. package/files/nunito-latin-200italic.woff2 +0 -0
  456. package/files/nunito-latin-300.woff +0 -0
  457. package/files/nunito-latin-300.woff2 +0 -0
  458. package/files/nunito-latin-300italic.woff +0 -0
  459. package/files/nunito-latin-300italic.woff2 +0 -0
  460. package/files/nunito-latin-400.woff2 +0 -0
  461. package/files/nunito-latin-400italic.woff +0 -0
  462. package/files/nunito-latin-400italic.woff2 +0 -0
  463. package/files/nunito-latin-600.woff +0 -0
  464. package/files/nunito-latin-600.woff2 +0 -0
  465. package/files/nunito-latin-600italic.woff +0 -0
  466. package/files/nunito-latin-600italic.woff2 +0 -0
  467. package/files/nunito-latin-700.woff +0 -0
  468. package/files/nunito-latin-700.woff2 +0 -0
  469. package/files/nunito-latin-700italic.woff +0 -0
  470. package/files/nunito-latin-700italic.woff2 +0 -0
  471. package/files/nunito-latin-800.woff +0 -0
  472. package/files/nunito-latin-800.woff2 +0 -0
  473. package/files/nunito-latin-800italic.woff +0 -0
  474. package/files/nunito-latin-800italic.woff2 +0 -0
  475. package/files/nunito-latin-900.woff +0 -0
  476. package/files/nunito-latin-900.woff2 +0 -0
  477. package/files/nunito-latin-900italic.woff +0 -0
  478. package/files/nunito-latin-900italic.woff2 +0 -0
package/js-core.esm40.js CHANGED
@@ -1 +1 @@
1
- import{p as createSvgIcon,q as interopRequireDefault,j as jsxRuntime,bO as createSlice,aM as createAction,dI as combineReducers,aX as createSelector,bT as rootApiSelector,aF as graphEndpointSelector,a9 as sessionTokenSelector,eW as channel,m as makeStyles,eX as VideoCamera,eY as Image,eZ as Sound,e_ as Description,d1 as CacheProvider,d2 as muiCache,O as AIWareThemeProvider,Q as lib,A as AIWareIntlProvider,H as useSelector,bR as preferredLanguageSelector,gP as initialConfigSelector,G as useDispatch,r as react,W as classNames,bh as Box,bI as Alert,T as Typography,X as Tooltip,V as IconButton,dJ as Close,as as all,F as FormattedMessage,a3 as List,bK as Grid,ar as Button,am as Dialog,an as DialogTitle,ao as DialogContent,ap as DialogContentText,aq as DialogActions,gQ as ConfirmationModal,dl as Hide,Z as Avatar,gu as FolderOpen,gR as EnumHelpers,dm as showMessage,dn as MessageSeverity,fa as guid,L as mountPanel,bL as TextField,au as takeLatest$1,aw as takeEvery$1,ax as take,az as put,f2 as UnknownDocument,a4 as ListItem,bk as ListItemAvatar,a5 as ListItemText,gS as formatBytes,fP as ListItemSecondaryAction,dP as Edit,dR as Delete,gT as NotInterested,a6 as Divider,cD as AIWareFormatMessage,gU as mountPanelForResponse,s as store,aE as select,aB as call,f3 as sdkEventManager,f4 as SdkEvents,f5 as SdkError,fR as panelsSelector,av as hidePanel,dU as baseGraphQLApiWithError}from"./js-core.esm.js";import{selectors,actions as actions$4}from"./js-core.esm36.js";import{d as default_1$4}from"./js-core.esm41.js";import{C as Card}from"./js-core.esm19.js";import{C as Chip}from"./js-core.esm30.js";import{L as LinearProgress}from"./js-core.esm34.js";import"./js-core.esm29.js";import"./js-core.esm37.js";import"./js-core.esm38.js";import"./js-core.esm8.js";import"./js-core.esm28.js";import"./js-core.esm18.js";import"./js-core.esm39.js";import"./js-core.esm11.js";import"./js-core.esm12.js";import"./js-core.esm5.js";import"./js-core.esm21.js";import"./js-core.esm24.js";import"./js-core.esm23.js";var LoadingStatus,ImporterView,FileItemTypeNames,MimeType,AddCircleOutline={},_interopRequireDefault$3=interopRequireDefault.exports,default_1$3=(Object.defineProperty(AddCircleOutline,"__esModule",{value:!0}),AddCircleOutline.default=void 0),_createSvgIcon$3=_interopRequireDefault$3(createSvgIcon),_jsxRuntime$3=jsxRuntime.exports,_default$3=(0,_createSvgIcon$3.default)((0,_jsxRuntime$3.jsx)("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),default_1$3=AddCircleOutline.default=_default$3,ErrorOutline={},_interopRequireDefault$2=interopRequireDefault.exports,default_1$2=(Object.defineProperty(ErrorOutline,"__esModule",{value:!0}),ErrorOutline.default=void 0),_createSvgIcon$2=_interopRequireDefault$2(createSvgIcon),_jsxRuntime$2=jsxRuntime.exports,_default$2=(0,_createSvgIcon$2.default)((0,_jsxRuntime$2.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),default_1$2=ErrorOutline.default=_default$2,RefreshOutlined={},_interopRequireDefault$1=interopRequireDefault.exports,default_1$1=(Object.defineProperty(RefreshOutlined,"__esModule",{value:!0}),RefreshOutlined.default=void 0),_createSvgIcon$1=_interopRequireDefault$1(createSvgIcon),_jsxRuntime$1=jsxRuntime.exports,_default$1=(0,_createSvgIcon$1.default)((0,_jsxRuntime$1.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),"RefreshOutlined"),default_1$1=RefreshOutlined.default=_default$1,CloudUploadOutlined={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(CloudUploadOutlined,"__esModule",{value:!0}),CloudUploadOutlined.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}),"CloudUploadOutlined"),default_1=CloudUploadOutlined.default=_default;!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const SLICE_NAME="dataCenterImporter",DEFAULT_ACCEPTABLE_FILE_TYPES=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),!function(e){e[e.browseFiles=0]="browseFiles",e[e.filesSelected=1]="filesSelected",e[e.folders=2]="folders"}(ImporterView=ImporterView||{}),!function(e){e.Image="image",e.Video="video",e.Audio="audio",e.Text="text"}(FileItemTypeNames=FileItemTypeNames||{}),!function(e){e.ApplicationJson="application/json",e.ApplicationMsWord="application/msword",e.ApplicationPdf="application/pdf",e.ApplicationRtf="application/rtf",e.ApplicationSmil="application/smil+xml",e.ApplicationTtml="application/ttml+xml",e.ApplicationVeritoneAion="application/vnd.veritone.aion+json",e.ApplicationMsOutlook="application/vnd.ms-outlook",e.ApplicationMsPowerpoint="application/vnd.ms-powerpoint",e.ApplicationDocument="application/vnd.openxmlformats-officedocument.wordprocessingml.document",e.ApplicationSpreadsheet="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",e.ApplicationPresentation="application/vnd.openxmlformats-officedocument.presentationml.presentation",e.ApplicationOasisDoc="application/vnd.oasis.opendocument.text",e.ApplicationOasisSpreadsheet="application/vnd.oasis.opendocument.spreadsheet",e.ApplicationXFlv="application/x-flv",e.ApplicationXml="application/xml",e.ApplicationFormUrlEncoded="application/x-www-form-urlencoded",e.ImageJpeg="image/jpeg",e.ImagePng="image/png",e.ImageTiff="image/tiff",e.ImageGig="image/gif",e.TextPlain="text/plain",e.TextHtml="text/html",e.TextCsv="text/csv",e.TextPlainCharset="text/plain; charset=utf-8",e.AudioAac="audio/aac",e.AudioFlac="audio/flac",e.AudioMidi="audio/midi",e.AudioMp4="audio/mp4",e.AudioMpeg="audio/mpeg",e.AudioWav="audio/wav",e.AudioXWav="audio/x-wav",e.AudioWebm="audio/webm",e.VideoMp4="video/mp4",e.VideoMpeg="video/mpeg",e.VideoOgg="video/ogg",e.VideoQuicktime="video/quicktime",e.VideoWebm="video/webm",e.VideoM4v="video/x-m4v",e.VideoMsWmv="video/x-ms-wmv",e.VideoMsvideo="video/x-msvideo",e.Message="message/rfc822"}(MimeType=MimeType||{}),[{name:"Image",type:FileItemTypeNames.Image,extensions:[MimeType.ImageJpeg,MimeType.ImagePng,MimeType.ImageTiff,MimeType.ImageGig]},{name:"Video",type:FileItemTypeNames.Video,extensions:[MimeType.VideoMp4,MimeType.VideoMpeg,MimeType.VideoOgg,MimeType.VideoQuicktime,MimeType.VideoWebm,MimeType.VideoM4v,MimeType.VideoMsWmv,MimeType.VideoMsvideo]},{name:"Audio",type:FileItemTypeNames.Audio,extensions:[MimeType.AudioAac,MimeType.AudioFlac,MimeType.AudioMidi,MimeType.AudioMp4,MimeType.AudioMpeg,MimeType.AudioWav,MimeType.AudioXWav,MimeType.AudioWebm]},{name:"Documents",type:FileItemTypeNames.Text,extensions:[MimeType.TextPlain,MimeType.TextHtml,MimeType.TextCsv,MimeType.TextPlainCharset,MimeType.ApplicationJson,MimeType.ApplicationMsWord,MimeType.ApplicationPdf,MimeType.ApplicationRtf,MimeType.ApplicationSmil,MimeType.ApplicationTtml,MimeType.ApplicationVeritoneAion,MimeType.ApplicationMsOutlook,MimeType.ApplicationMsPowerpoint,MimeType.ApplicationDocument,MimeType.ApplicationSpreadsheet,MimeType.ApplicationPresentation,MimeType.ApplicationOasisDoc,MimeType.ApplicationOasisSpreadsheet,MimeType.ApplicationXFlv,MimeType.ApplicationXml,MimeType.ApplicationFormUrlEncoded,MimeType.Message]}]),namespace$3="uiState",initialState$2={status:LoadingStatus.Idle,currentView:ImporterView.browseFiles},slice$2=createSlice({name:SLICE_NAME+"/"+namespace$3,initialState:initialState$2,reducers:{setCurrentView(e,{payload:t}){e.currentView=t},fileUploadFailed(e){e.status=LoadingStatus.Failed},fileUploadSucceed(e){e.status=LoadingStatus.Idle},fileUploadStart(e){e.status=LoadingStatus.Pending},fileUploadAbortFailed(e){e.status=LoadingStatus.Failed},tdoCreateStart(e,{payload:t}){e.status=LoadingStatus.Pending,console.log("Starting to create TDOs for: ",t.filesSelected.map(e=>e.id).join("\n"))},tdoCreateSucceed(e){e.status=LoadingStatus.Idle},tdoCreateFailed(e){e.status=LoadingStatus.Failed},retryTDOCreateForFiles(e,{payload:t}){e.status=LoadingStatus.Pending,console.log("Retrying to create TDOs for: ",t.filesSelected.map(e=>e.id).join("\n"))},fileMetaSaveSucceeded(e){e.status=LoadingStatus.Idle},fileMetaSaveFailed(e){e.status=LoadingStatus.Failed},fileMetaSaveIsProcessing(e){e.status=LoadingStatus.Pending}}}),actions$3=slice$2.actions;var uiState=slice$2.reducer;const namespace$2="filesSelectedState",initialState$1={files:[]},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{setFilesSelected(e,{payload:t}){e.files=[...e.files,...t.filesSelected]},deleteFileSelected(e,{payload:t}){var a=e.files.filter(e=>e.id!==t.id);e.files=a},deleteFailedFiles(e){var t=e.files.filter(e=>e.status!==LoadingStatus.Failed);e.files=t},updateFile(t,{payload:a}){const i=t.files.findIndex(e=>e.id===a.id);-1!==i&&Object.keys(a).forEach(e=>{t.files[i][e]=a[e]})},retryFileUpload(e,{payload:t}){console.log("Retrying the files:",t.filesSelected.map(e=>e.id).join("/n"))},abortFileUpload(e,t){},addMetadataAction(e,t){console.log("nothing")},addMetadataToSelectedFile(e,t){const{id:a,meta:i}=t.payload;e.files.forEach(e=>{e.id===a&&(e.meta=i)})}}}),actions$2=slice$1.actions;var filesSelectedState=slice$1.reducer;const namespace$1="rootFolderState",initialState={rootFolder:null,status:LoadingStatus.Idle},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{startRootFolderFetch(e){e.status=LoadingStatus.Pending},rootFolderFetchSucceed(e,{payload:t}){e.rootFolder=t.rootFolder,e.status=LoadingStatus.Idle},rootFolderFetchFailed(e){e.status=LoadingStatus.Failed},updateRootFolder(e,{payload:t}){e.rootFolder=t.activeFolder}},extraReducers:e=>{e.addCase(createAction("DATA_CENTER_FOLDERS_AND_FILES_RESPONSE"),(e,{payload:t})=>{e.rootFolder=t.folder})}}),actions$1=slice.actions;var rootFolderState=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]:filesSelectedState,[namespace$1]:rootFolderState});function __awaiter(e,r,n,l){return new(n=n||Promise)(function(a,t){function i(e){try{o(l.next(e))}catch(e){t(e)}}function s(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(i,s)}o((l=l.apply(e,r||[])).next())})}function getSignedWritableUrls(t,a){return __awaiter(this,void 0,void 0,function*(){var e="getSignedWritableUrls";return(yield baseGraphQLApiWithError(Object.assign({query:"query getSignedWritableUrls($count: Int!) {\n getSignedWritableUrls(number: $count) {\n bucket,\n expiresInSeconds,\n getUrl,\n key,\n unsignedUrl,\n url,\n }\n }",variables:{count:a},operationName:e},t)))[e]})}function uploadFileToS3(i,s,{onProgress:o,onError:r,onAbort:n,onUpload:l}){return __awaiter(this,void 0,void 0,function*(){const e=new XMLHttpRequest,t=(e.upload.onload=()=>{l&&l(`The upload is completed: ${e.status} `+e.response)},e.upload.onerror=()=>{r&&r("Upload failed.")},e.upload.onabort=()=>{n&&n("Upload cancelled.")},e.upload.onprogress=e=>{o&&o(e.loaded/e.total*100)},e.open("PUT",i.url,!0),e.setRequestHeader("Content-Type",s.type),yield fetch(s.fileUrl));var a=yield t.blob();return e.send(a),e})}function getOrgCmsRootFolder(a){var i;return __awaiter(this,void 0,void 0,function*(){var e="getOrgCmsRootFolder",t="createRootFolders",e=yield baseGraphQLApiWithError(Object.assign({query:"mutation getOrgCmsRootFolder{\n createRootFolders(rootFolderType: cms) {\n id\n name\n modifiedDateTime\n treeObjectId\n ownerId\n }\n }\n ",operationName:e},a));return{orgRootFolder:null==(i=e[t])?void 0:i.find(e=>!e.ownerId),errors:e.errors||null}})}function createTDOWithAsset(i,s){var o,r,n,l,d,c;return __awaiter(this,void 0,void 0,function*(){try{var e="createTDOWithAsset",t={input:Object.assign(Object.assign({addToIndex:!0,contentType:s.contentType,name:s.name,uri:s.uri,parentFolderId:s.parentFolderId,startDateTime:null!=(o=null==s?void 0:s.meta)&&o.startDateTime?null==(r=null==s?void 0:s.meta)?void 0:r.startDateTime:s.startDateTime,assetType:"media"},null!=(n=null==s?void 0:s.meta)&&n.thumbnailUrl?{thumbnailUrl:null==(l=null==s?void 0:s.meta)?void 0:l.thumbnailUrl}:{}),{details:{veritoneFile:{filename:null==(d=null==s?void 0:s.meta)?void 0:d.fileName,mimetype:s.contentType,size:s.size},tags:null==(c=null==s?void 0:s.meta)?void 0:c.tags}})},a=yield baseGraphQLApiWithError(Object.assign({query:'mutation ($input: CreateTDOWithAsset!) {\n createTDOWithAsset(input: $input) {\n id\n name\n details\n modifiedDateTime\n primaryAsset(assetType: "media") {\n contentType\n signedUri\n }\n folders{\n folderPath{\n name\n id\n }\n }\n sourceData {\n source {\n id\n sourceTypeId\n }\n }\n thumbnailUrl\n }\n }\n ',variables:t},i));return{data:a[e],errors:a.errors||null}}catch(e){return{data:null,errors:e.message||"Unable to create TDO"}}})}const THUMBNAIL_ENGINE_ID="fd891cb5-ff80-48ae-b5cd-ac3c7d190d55";function createThumbnailJob(i,s){var o;return __awaiter(this,void 0,void 0,function*(){var e="createThumbailJob",t="createJob",a={input:{targetId:s,tasks:[{engineId:THUMBNAIL_ENGINE_ID}]}},a=yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createThumbailJob($input: CreateJob) {\n createJob(input: $input) {\n id\n }\n }\n ",variables:a,operationName:e},i));return null==(o=a[t])?void 0:o.id})}const selectUIStateStatus=e=>e[namespace].uiState.status,selectCurrentView=e=>e[namespace].uiState.currentView,rootFolderSelector=e=>e[namespace].rootFolderState.rootFolder,selectSelectedFiles=e=>e[namespace].filesSelectedState.files,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,a)=>({apiRoot:e,graphQLEndpoint:t,token:a}));function*rootFolderFetch(){var e,t=yield select(selectApiConfigs),a=yield select(preferredLanguageSelector);const i=AIWareFormatMessage(a);try{const{orgRootFolder:s,errors:o}=yield call(getOrgCmsRootFolder,t);s&&(s.isRoot=!0,yield put(actions.rootFolderState.rootFolderFetchSucceed({rootFolder:s}))),o&&(e=Array.isArray(o)?null===o||void 0===o?void 0:o.map(e=>e.message).join("\n"):i({id:"os-data-center-importer.snackbar.locationFolderFetchError",defaultMessage:[{type:0,value:"Error during the root folder fetch!"}]}),yield put(showMessage({content:e,severity:MessageSeverity.Error})),yield put(actions.rootFolderState.rootFolderFetchFailed()))}catch(e){yield put(actions.rootFolderState.rootFolderFetchFailed())}}function*watchFetchRootFolder(){yield takeLatest$1(actions.rootFolderState.startRootFolderFetch.type,rootFolderFetch)}function*createTDOs(e){var t;const o=yield select(selectApiConfigs),a=yield select(rootFolderSelector),i=e.payload.filesSelected,r=(e,t,a)=>(put(actions.filesSelectedState.updateFile(Object.assign({id:e},t))),{values:t,data:a});try{var s=i.reduce((e,t)=>(t.status===LoadingStatus.Idle&&(e[t.id]=call(createTDOWithAsset,o,{contentType:t.type,name:t.name,uri:t.unsignedUrl,parentFolderId:a.id,startDateTime:(new Date).toISOString(),size:t.size,meta:null==t?void 0:t.meta})),e),{});const d=yield all(s);var n=Object.keys(d).map(e=>{var t=null==(t=null==(t=d[e])?void 0:t.data)?void 0:t.id;const a=null==(i=d[e])?void 0:i.data;var i=d[e].errors;if(null!==a&&void 0!==a&&a.details&&(a.name=(null==(s=null==(s=a.details)?void 0:s.veritoneFile)?void 0:s.filename)||(null==(s=null==(s=a.details)?void 0:s.veritoneFile)?void 0:s.fileName)||a.name),!t||i)return sdkEventManager.dispatch(SdkEvents.tdoCreated,new SdkError(i||"TDO creation failed!"),{fileId:e,tdoId:t}),r(e,{tdoStatus:LoadingStatus.Failed});var s=t;try{createThumbnailJob(o,s)}catch(e){console.log("Error while launching thumbnail generation job",e)}return sdkEventManager.dispatch(SdkEvents.tdoCreated,null,{fileId:e,tdoId:t}),r(e,{tdoId:t,tdoStatus:LoadingStatus.Idle},a)}),l=yield all(n);for(let e=0;e<l.length;e++)l[e].values.tdoStatus===LoadingStatus.Idle&&(yield put(actions$4.viewMyFiles.addTdoFolder({folderId:a.id,tdoId:l[e].values.tdoId})),yield put(actions$4.entities.addTdoImported({file:null==(t=l[e])?void 0:t.data})));yield put(actions.uiState.tdoCreateSucceed())}catch(e){console.log(e),yield put(actions.uiState.tdoCreateFailed())}}function*closeImporterPanel(){const e=yield select(panelsSelector);var t=e.find(e=>"DATA_CENTER_IMPORTER"===e.microFrontend.name);t&&t.panelId&&(t=t["panelId"],yield put(hidePanel(t)))}function*getUrlBuckets(e){var t=yield select(selectApiConfigs);return yield call(getSignedWritableUrls,t,e)}function*closeFileMetadataPanel(){const e=yield select(panelsSelector);var t=e.find(e=>"EDIT_FILE_METADATA"===e.microFrontend.name);t&&t.panelId&&(t=t["panelId"],yield put(hidePanel(t)))}function*addMetadataToFile(e){var t=yield select(preferredLanguageSelector),e=e["payload"];const{id:a,meta:i}=e,s=AIWareFormatMessage(t);try{var[o]=yield call(getUrlBuckets,1);yield put(actions.uiState.fileMetaSaveIsProcessing()),i.thumbnailImg&&(yield call(handleMetaFileS3Upload,i.thumbnailImg,o)),i.thumbnailUrl=o.unsignedUrl,i.runTime&&i.runDate&&(i.startDateTime=new Date(i.runDate+" "+i.runTime).toISOString()),yield put(actions.filesSelectedState.addMetadataToSelectedFile({id:a,meta:i})),yield put(actions.uiState.fileMetaSaveSucceeded())}catch(e){yield put(showMessage({content:s({id:"os-data-center-importer.snackbar.fileMetaError",defaultMessage:[{type:0,value:"Something went wrong while saving your changes."}]}),severity:MessageSeverity.Error}))}}function*handleMetaFileS3Upload(e,t){yield uploadFileToS3(t,Object.assign(Object.assign({},e),{getUrl:t.getUrl,expiresInSeconds:t.expiresInSeconds,key:t.key,unsignedUrl:t.unsignedUrl,url:t.url}),{})}function*watchSetFileMetadata(){yield takeLatest$1(actions.filesSelectedState.addMetadataAction.type,addMetadataToFile)}function*watchFileMetadataSuccess(){yield takeEvery$1(actions.uiState.fileMetaSaveSucceeded.type,closeFileMetadataPanel)}function*watchTDOCreateStart(){yield takeLatest$1(actions.uiState.tdoCreateStart.type,createTDOs)}function*watchRetryTDOCreation(){yield takeEvery$1(actions.uiState.retryTDOCreateForFiles.type,createTDOs)}function*watchTdoCreateSuccess(){yield takeEvery$1(actions.uiState.tdoCreateSucceed.type,closeImporterPanel)}const root="undefined"!=typeof window?window:global,fileUploadChannel=(root.xhrInstances={},channel());function*filesSelected(t){var a=t.payload.filesSelected,i=t.payload.sdkFiles;try{yield put(actions.uiState.fileUploadStart());var s=yield call(getUrlBuckets,a.length);let e=0;for(const r of s){const n=a[e],l=(e++,yield put(actions.filesSelectedState.updateFile({id:n.id,status:LoadingStatus.Pending,percentComplete:0,expiresInSeconds:r.expiresInSeconds,getUrl:r.getUrl,key:r.key,unsignedUrl:r.unsignedUrl,url:r.url})),Object.assign(Object.assign({},i),{expiresInSeconds:r.expiresInSeconds,getUrl:r.getUrl,key:r.key,unsignedUrl:r.unsignedUrl,url:r.url})),d=e=>{fileUploadChannel.put(actions.filesSelectedState.updateFile(Object.assign({id:n.id},e)))};var o=yield uploadFileToS3(r,n,{onProgress:e=>{d({percentComplete:e}),sdkEventManager.dispatch(SdkEvents.fileUploadProgress,null,e)},onAbort:e=>{d({status:LoadingStatus.Idle}),sdkEventManager.dispatch(SdkEvents.fileUpload,new SdkError(e,"abort"),l)},onError:e=>{d({status:LoadingStatus.Failed}),sdkEventManager.dispatch(SdkEvents.fileUpload,new SdkError(e),l)},onUpload:e=>{d({status:LoadingStatus.Idle}),sdkEventManager.dispatch(SdkEvents.fileUpload,null,l)}});root.xhrInstances[n.id]=o,yield put(actions.uiState.fileUploadSucceed())}}catch(e){t=(null==e?void 0:e.message)||"";console.error(t),yield put(actions.uiState.fileUploadFailed())}}function*abortFileUpload({payload:e}){try{var t=null==e?void 0:e.id;const a=root.xhrInstances[t];null!==a&&void 0!==a&&a.abort(),yield put(actions.filesSelectedState.deleteFileSelected({id:t}))}catch(e){yield put(actions.uiState.fileUploadAbortFailed())}}function*watchFilesSelected(){yield takeEvery$1(actions.filesSelectedState.setFilesSelected.type,filesSelected)}function*watchRetryFileUpload(){yield takeEvery$1(actions.filesSelectedState.retryFileUpload.type,filesSelected)}function*watchProgressChannel(){for(;;){var e=yield take(fileUploadChannel);yield put(e)}}function*watchFileAbort(){yield takeEvery$1(actions.filesSelectedState.abortFileUpload.type,abortFileUpload)}function*rootSaga(){yield all([watchFilesSelected(),watchProgressChannel(),watchRetryFileUpload(),watchFileAbort(),watchFetchRootFolder(),watchTDOCreateStart(),watchRetryTDOCreation(),watchTdoCreateSuccess(),watchSetFileMetadata(),watchFileMetadataSuccess()])}function getDataCenterImporterModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const useStyles$a=makeStyles()(e=>({buttonContainer:{position:"relative",margin:"16px"},fileButton:{border:"1px solid #1871E8!important",borderRadius:e.shape.borderRadius,fontWeight:600,fontSize:"12px!important",background:e.palette.background.paper,color:"#1871E8!important",padding:"6px 15px!important"},hiddenFileButton:{visibility:"hidden",position:"absolute",left:0,width:"100%",height:"100%"}})),UploadButton=({id:e,labelCss:t,onUpload:a,render:i,imageOnly:s=!1,isUploadEnabled:o=!0})=>{const r=react.exports.useRef();var n=useStyles$a()["classes"];return react.exports.useEffect(()=>{o||(r.current.value=null)},[r,o]),jsxRuntime.exports.jsxs("label",Object.assign({htmlFor:"upload-file-input-"+e,className:t,onClick:e=>{o||e.preventDefault()}},{children:[i&&i({handleButtonClick:()=>{o&&r.current.click()}}),jsxRuntime.exports.jsx("input",{id:"upload-file-input-"+e,"data-test":"data-center-importer-local-upload-file-input-"+e,type:"file",multiple:!0,accept:s?"image/*":"",className:n.hiddenFileButton,onChange:a,ref:e=>r.current=e})]}))},useStyles$9=makeStyles()(e=>({progress:{width:"117px",height:"10px",borderRadius:8,backgroundColor:"#F2F7FE",display:"inline-block"},listItem:{padding:e.spacing(3,1)},avatar:{backgroundColor:"#FAFAFA",color:e.palette.secondary.main},errorIcon:{backgroundColor:"#FEF2F2","& svg:hover":{color:e.palette.error.main}},secondaryAction:{right:"0"},filename:{width:"330px",overflow:"hidden",whiteSpace:"nowrap",userSelect:"none"},caption:{userSelect:"none"}})),icons={video:jsxRuntime.exports.jsx(VideoCamera,{}),image:jsxRuntime.exports.jsx(Image,{}),audio:jsxRuntime.exports.jsx(Sound,{}),text:jsxRuntime.exports.jsx(Description,{}),application:jsxRuntime.exports.jsx(Description,{})},FileItemIcon=({filetype:e})=>{var[e]=e.split("/");return e&&icons[e]?icons[e]:jsxRuntime.exports.jsx(UnknownDocument,{})};function FileItem({item:e,onDelete:t,onRetry:a,onAbort:i,onEdit:s,showDivider:o=!0,uiStateStatus:r}){const{id:n,percentComplete:l,status:d,tdoStatus:c,size:p,type:u,meta:m}=e;let x=e["name"];m&&m.fileName&&(x=m.fileName);var g=useStyles$9()["classes"],f=[d,c].includes(LoadingStatus.Failed);return jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[jsxRuntime.exports.jsxs(ListItem,Object.assign({className:g.listItem},{children:[jsxRuntime.exports.jsx(ListItemAvatar,{children:f?jsxRuntime.exports.jsx(Avatar,Object.assign({"data-test":"file-item-failed-icon",className:g.errorIcon},{children:jsxRuntime.exports.jsx(default_1$2,{color:"error"})})):jsxRuntime.exports.jsx(Avatar,Object.assign({"data-test":"file-item-avatar",className:g.avatar},{children:jsxRuntime.exports.jsx(FileItemIcon,{filetype:u})}))}),jsxRuntime.exports.jsx(ListItemText,{primary:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:30<x.length?x:"",placement:"bottom-end"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"file-item-title",className:g.filename,variant:"body1"},{children:30<x.length?x.substring(0,30)+"...":x}))})),secondary:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"file-item-size",variant:"caption",className:g.caption},{children:formatBytes(p)}))}),jsxRuntime.exports.jsxs(ListItemSecondaryAction,Object.assign({className:g.secondaryAction},{children:[f&&jsxRuntime.exports.jsx(Tooltip,Object.assign({title:"Retry uploading"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({"data-test":"file-item-retry",onClick:()=>a(e),size:"large"},{children:jsxRuntime.exports.jsx(default_1$1,{})}))})),d===LoadingStatus.Idle&&jsxRuntime.exports.jsx(IconButton,Object.assign({"data-test":"file-item-edit",onClick:()=>s(e),size:"large"},{children:jsxRuntime.exports.jsx(Edit,{})})),([LoadingStatus.Failed,LoadingStatus.Idle].includes(d)||r===LoadingStatus.Failed)&&jsxRuntime.exports.jsx(IconButton,Object.assign({"data-test":"file-item-delete",onClick:()=>t(n),size:"large"},{children:jsxRuntime.exports.jsx(Delete,{})})),d===LoadingStatus.Pending&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(LinearProgress,{"data-test":"file-item-progress",className:g.progress,variant:"determinate",value:l}),jsxRuntime.exports.jsx(IconButton,Object.assign({"data-test":"file-item-abort",title:"Cancel Import",onClick:()=>i(e),size:"large"},{children:jsxRuntime.exports.jsx(NotInterested,{})}))]})]}))]})),o&&jsxRuntime.exports.jsx(Divider,{})]})}const useStyles$8=makeStyles()(e=>({fileItemListContainer:{paddingLeft:e.spacing(4),paddingRight:e.spacing(4),height:300,overflowY:"scroll",marginRight:5,marginTop:5,"&::-webkit-scrollbar":{width:3},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"#D5DFE9",padding:5,borderRadius:50},"&::-webkit-scrollbar-thumb:hover":{background:"#919ca8"}},shadowGradient:{display:"block",position:"absolute",top:-1,left:0,width:"100%",height:28,background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%)",transform:"translateY(-100%)"},footerWrapper:{borderTop:"0.5px solid #D5DFE9",position:"relative",padding:"13px 30px"},viewFormatsBtn:{cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:e.palette.primary.main}},retryButton:{border:"1px solid",borderColor:e.palette.secondary.main,borderRadius:e.shape.borderRadius,fontWeight:600,fontSize:"12px!important",background:e.palette.background.paper,color:e.palette.secondary.main,padding:"6px 15px!important"},refreshIcon:{marginRight:e.spacing(2),color:e.palette.secondary.main,"&:hover":{color:e.palette.secondary.main}},addFilesIcon:{marginRight:e.spacing(2),color:e.palette.primary.main,"&:hover":{color:e.palette.primary.main}},addFilesBtn:{paddingLeft:0,paddingRight:0},addFilesLabel:{alignItems:"center",display:"flex",cursor:"pointer",paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},addIcon:{display:"block",marginRight:e.spacing(1)},filePickerInput:{display:"none"}})),FileItemList=({onUpload:t,fileItems:a,onDelete:i,onRetryFailedsClick:e,onRetry:s,onAbort:o,onEdit:r,uiStateStatus:n})=>{const l=useStyles$8()["classes"],d=useStyles$a()["classes"];var c=a.some(e=>e.status===LoadingStatus.Failed);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",color:"textPrimary","data-test":"data-center-file-item-list-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.eAju+6",defaultMessage:"Local Machine",description:"Title of a list of files that user is uploading from their local machine"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-file-item-list-subheader"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.Khv+RJ",defaultMessage:"Choose files from your computer to import into your account",description:"A short description of local machine upload"})})),jsxRuntime.exports.jsxs(Box,Object.assign({mt:6,borderRadius:"4px",border:"0.5px solid #D5DFE9"},{children:[jsxRuntime.exports.jsx(List,Object.assign({disablePadding:!0,className:l.fileItemListContainer,"data-test":"data-center-file-item-list-wrapper"},{children:null==a?void 0:a.map((e,t)=>jsxRuntime.exports.jsx(FileItem,{item:e,showDivider:t!==a.length-1,onDelete:i,onRetry:s,onAbort:o,onEdit:r,uiStateStatus:n},t))})),jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"flex-end",alignItems:"center",item:!0,container:!0,className:l.footerWrapper},{children:[jsxRuntime.exports.jsx("span",{className:l.shadowGradient}),c&&jsxRuntime.exports.jsxs(Button,Object.assign({"data-test":"data-center-importer-local-retry-button",variant:"outlined",className:l.retryButton,onClick:e},{children:[jsxRuntime.exports.jsx(default_1$1,{fontSize:"small",className:l.refreshIcon}),jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.nJrtcz",defaultMessage:"Retry Failed Items",description:"Text of the label `Retry Failed Items`"})]})),jsxRuntime.exports.jsx(UploadButton,{onUpload:e=>{e=Array.from(e.target.files);t(e)},id:"file-item-list-upload-button",render:({handleButtonClick:e})=>jsxRuntime.exports.jsxs(Button,Object.assign({id:"file-item-list-upload-button",variant:"outlined",className:d.fileButton,onClick:e},{children:[jsxRuntime.exports.jsx(default_1$3,{fontSize:"small",className:l.addFilesIcon}),jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.ydDseD",defaultMessage:"Add Files",description:"Text of the label `Add Files`"})]}))})]}))]}))]})},useStyles$7=makeStyles()(e=>({footer:{position:"absolute",right:e.spacing(6),bottom:e.spacing(6)},closeButton:{marginRight:e.spacing(2),color:e.palette.text.primary},dialogTitle:{padding:`${e.spacing(6)} ${e.spacing(6)} ${e.spacing(1)}px !important `},dialogContent:{padding:`${e.spacing(1)} ${e.spacing(6)} !important `},dialogTitleText:{fontWeight:600},dialogAction:{padding:e.spacing(4)+" !important"}})),Footer=({fileItems:e,onClosePanel:t,onImportFiles:a,onIgnoreAndContinue:i,onRetry:s,uiStateStatus:o})=>{const[r,n]=react.exports.useState(!1),[l,d]=react.exports.useState(!1);var c=useStyles$7()["classes"],p=e.some(e=>e.status===LoadingStatus.Pending);const u=()=>{n(!1)};react.exports.useEffect(()=>{u()},[s,i]);p=0===e.length||p||[LoadingStatus.Pending,LoadingStatus.Failed].includes(o);return jsxRuntime.exports.jsxs("div",Object.assign({className:c.footer},{children:[jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>{e.length?d(!0):t()},variant:"text",size:"large",className:c.closeButton,"data-test":"data-center-importer-cancel-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.0EGcHs",defaultMessage:"Close",description:"Close Panel"})})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>{e.some(e=>e.status===LoadingStatus.Failed)?n(!0):a()},disabled:p,size:"large",variant:"contained",color:"primary","data-test":"data-center-importer-import-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.pcbRZH",defaultMessage:"Import",description:"Import uploaded files"})})),jsxRuntime.exports.jsxs(Dialog,Object.assign({open:r,maxWidth:"xs",onClose:u,"aria-labelledby":"dialog-title","aria-describedby":"dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle,Object.assign({id:"dialog-title","data-test":"data-center-importer-dialog-title",className:c.dialogTitle},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",className:c.dialogTitleText},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.cl4DGP",defaultMessage:"Errors Detected",description:"title for Error Detected Dialog"})}))})),jsxRuntime.exports.jsx(DialogContent,Object.assign({className:c.dialogContent},{children:jsxRuntime.exports.jsx(DialogContentText,Object.assign({id:"dialog-description"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.N9Drr+",defaultMessage:"Some of your files have errors, would you like to fix these errors or continue?",description:"description for Error Detected Dialog"})}))})),jsxRuntime.exports.jsxs(DialogActions,Object.assign({className:c.dialogAction},{children:[jsxRuntime.exports.jsx(Button,Object.assign({onClick:s,variant:"text",size:"large","data-test":"data-center-importer-dialog-cancel-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.7+A+C3",defaultMessage:"Retry Errors",description:"button text for retry failed files"})})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:i,size:"large",variant:"contained",color:"primary","data-test":"data-center-importer-dialog-confirm-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.E9hwYl",defaultMessage:"Ignore Errors and Continue",description:"button text for ignore failed files and kick of the importing progress"})}))]}))]})),jsxRuntime.exports.jsx(ConfirmationModal,{showConfirmationModal:l,closeConfirmationModal:()=>{d(!1)},onClosePanel:t,classes:c})]}))},useStyles$6=makeStyles()(e=>({root:{width:"720px",height:"auto"},configurationContainer:{minHeight:"650px"},mainContainer:{margin:e.spacing(6)},spacer:{marginTop:e.spacing(6)},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,backgroundColor:"#FAFAFA !important",display:"flex",height:64,padding:e.spacing(2)},headerTitle:{paddingLeft:e.spacing(4)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},alert:{color:e.palette.error.main,userSelect:"none","& svg, & svg:hover":{color:e.palette.error.main}}})),visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var visuallyHidden$1=visuallyHidden;const SHARED_TEXT={panelHeaderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.UQliO+",defaultMessage:"Local Machine Importer",description:"Local Machine Importer"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),locationFolderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.UR2j6X",defaultMessage:"Location Folder",description:"Location Folder"}),locationFolderSubheader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.zEHvrp",defaultMessage:"Choose the Data Center folder location where this content will be stored.",description:"Choose the Data Center folder location where this content will be stored."}),locationFolderLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.UR2j6Z",defaultMessage:"Folder",description:"Folder"}),locationFolderReselect:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.gtjP09",defaultMessage:"Change",description:"Change"}),editFileMetadataHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.WUHjl4",defaultMessage:"Edit Metadata",description:"Edit Metadata"}),editFileMetadataCancelBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.6PdOcy",defaultMessage:"Cancel",description:"Cancel"}),editFileMetadataSaveBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.kxBKrN",defaultMessage:"Save Changes",description:"Save file metadata changes"}),editFileMetadataAddBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.rntBSe",defaultMessage:"Add",description:"Add tags to metadata"}),editFileMetadataTagsHeading:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.fXL811",defaultMessage:"Tags",description:"Tags heading"}),editFileMetadataTagsSubHeading:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.WFj+x5",defaultMessage:"Add searchable tags to better organize this data. Separate each tag with a comma.",description:"Tags sub heading"}),editFileMetadataDisplayTimeHeading:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.8aqtJF",defaultMessage:"Media Display Time",description:"Media Display Time heading"}),editFileMetadataDisplayTimeSubHeading:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.mhUvxM",defaultMessage:"The actual time the content occurred.",description:"Media Display Time sub heading"}),supportedFilesTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.1riZqU",defaultMessage:"Supported File Types",description:"The title for the container of supported files"})},Header=({onPanelClose:e})=>{var t=useStyles$6()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:t.header,"data-test":"data-center-importer-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.headerTitle,variant:"h1",color:"secondary","data-test":"data-center-importer-title"},{children:SHARED_TEXT.panelHeaderTitle()})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-center-importer-close-panel"},{children:SHARED_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:e,"aria-labelledby":"data-center-importer-close-panel","data-test":"data-center-importer-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]}))},useStyles$5=makeStyles()(e=>({title:{userSelect:"none"},description:{fontWeight:400,marginBlockStart:"16px",userSelect:"none"},card:{border:"0.5px solid #D5DFE9!important",boxShadow:"none!important",borderRadius:"4px!important",display:"flex",flexDirection:"column",alignItems:"center",padding:32},focusedCard:{backgroundColor:"#D5DFE9",border:"0.5px solid #D5DFE9!important",boxShadow:"none!important",borderRadius:"4px!important",display:"flex",flexDirection:"column",alignItems:"center",padding:32},uploadIcon:{fontSize:"30px","&:hover":{color:"inherit"}},iconCircle:{color:e.palette.secondary.main,backgroundColor:"#ffffff !important",fontSize:"30px !important",width:"70px !important",height:"70px !important",border:"6px solid #E8E8E8"},selectMessage:{fontWeight:600,marginBlockStart:"12px"},subtitle:{fontSize:"12px",fontWeight:400},fileFormatsButton:{color:"#6098D1",fontSize:"10px",marginTop:10}})),LocalFileUpload=({onUpload:t,onViewSupportedFiles:e})=>{const[a,i]=react.exports.useState(!1),s=react.exports.useRef();var o=useStyles$5()["classes"];const r=useStyles$a()["classes"];react.exports.useEffect(()=>{const e=e=>{e.preventDefault(),t(Array.from(e.dataTransfer.files)),i(!1)};return window.addEventListener("drop",e),()=>{window.removeEventListener("drop",e)}},[i,t]),react.exports.useEffect(()=>{const e=e=>{e.preventDefault(),i(!0)},t=e=>{e.preventDefault(),i(!1)};return s.current&&(s.current.addEventListener("dragover",e),s.current.addEventListener("dragleave",t)),()=>{s.current.removeEventListener("dragover",e),s.current.removeEventListener("dragleave",t)}},[i]);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"data-center-importer-local-upload-title",variant:"h2",className:o.title},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.ylbMu5",defaultMessage:"Local Machine",description:"Import files into the Data Center from your computer"})})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"data-center-importer-local-upload-description",variant:"body2",paragraph:!0,className:o.description},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.OcKW8X",defaultMessage:"Choose files from your computer to import and process within your aiWARE account.",description:"Choose files from your computer to import and process within your aiWARE account."})})),jsxRuntime.exports.jsxs(Card,Object.assign({"data-test":"data-center-importer-local-upload-card",className:a?o.focusedCard:o.card,ref:e=>s.current=e},{children:[jsxRuntime.exports.jsx(Avatar,Object.assign({className:o.iconCircle},{children:jsxRuntime.exports.jsx(default_1,{fontSize:"inherit",className:o.uploadIcon})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",className:o.selectMessage},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.vKgOOW",defaultMessage:"Select a file from your computer",description:"Local Machine File Importer: Select a file from your computer to be uploaded into the Data Center"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",className:o.subtitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.9cCClM",defaultMessage:"or drag and drop an image here",description:"Local Machine File Importer: files can be dragged and dropped here to upload them"})})),jsxRuntime.exports.jsx(UploadButton,{id:"local-file-upload-upload-btn",onUpload:e=>{t(Array.from(e.target.files))},render:({handleButtonClick:e})=>jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"data-center-importer-local-upload-button",variant:"outlined",className:r.fileButton,style:{marginTop:"15px"},onClick:e},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.261ANF",defaultMessage:"Browse Files",description:"Local Machine File Importer: Click here to select the files to upload"})}))}),jsxRuntime.exports.jsx(Button,Object.assign({variant:"text",className:o.fileFormatsButton,onClick:e},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.OVCv+Y",defaultMessage:"View Supported File Formats",description:"Local Machine File Importer: View a list of all the File Formats that can be uploaded"})}))]}))]})},useStyles$4=makeStyles()(e=>({title:{userSelect:"none"},subheader:{userSelect:"none"},locationFolderWrapper:{width:"100%",marginTop:e.spacing(4),padding:e.spacing(2),border:"1px solid #D5DFE9",borderRadius:4,display:"flex",alignItems:"center",position:"relative"},locationFolderWrapperDisabled:{opacity:.7,pointerEvents:"none",userSelect:"none"},spacer:{display:"block",flex:1},folderIcon:{marginRight:e.spacing(2)},folderLabel:{fontFamily:"Nunito",display:"block",color:"#5C6269",fontSize:12,position:"absolute",top:-10,left:e.spacing(1),paddingLeft:e.spacing(1),paddingRight:e.spacing(1),background:"#fff"},folderInputLabel:{fontFamily:"Nunito",cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:"#1871E8"}}})),LocationFolder=({folder:e,onChangeBtnClick:t,disabled:a=!1})=>{var i=useStyles$4()["classes"];return e?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",color:"textPrimary","data-test":"data-center-location-folder-title",className:i.title},{children:SHARED_TEXT.locationFolderTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",color:"textSecondary","data-test":"data-center-location-folder-subheader",className:i.subheader},{children:SHARED_TEXT.locationFolderSubheader()})),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"data-center-location-folder",className:classNames(i.locationFolderWrapper,a?i.locationFolderWrapperDisabled:null)},{children:[jsxRuntime.exports.jsx("span",Object.assign({className:i.folderLabel,"data-test":"data-center-location-folder-label"},{children:SHARED_TEXT.locationFolderLabel()})),jsxRuntime.exports.jsx(FolderOpen,{className:i.folderIcon}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",color:"textPrimary","data-test":"data-center-location-folder-path"},{children:null!=e&&e.isRoot?"Home":null==e?void 0:e.name})),jsxRuntime.exports.jsx("span",{className:i.spacer}),jsxRuntime.exports.jsx("span",Object.assign({className:i.folderInputLabel,onClick:t,role:"button","data-test":"data-center-location-select-btn"},{children:SHARED_TEXT.locationFolderReselect()}))]}))]}):null},validateMimeTypes=(e,t)=>{const a=new Set;return null!=e&&e.forEach(e=>{e.type?t.includes(e.type)||a.add(e.type):a.add(e.name.split(".").pop())}),Array.from(a.values())},DEFAULT_MAX_FILE_COUNT=100,MAX_VERITONE_FILE_COUNT_ALLOWED=1e3,MainLayout=({hidePanel:e,activeFolder:t,fileLimit:s=DEFAULT_MAX_FILE_COUNT})=>{var a=useStyles$6()["classes"],i=useSelector(preferredLanguageSelector);const o=useSelector(initialConfigSelector),r=useSelector(selectors.uiState.selectIsFullScreen),n=useSelector(selectSelectedFiles);var l=useSelector(selectUIStateStatus),d=useSelector(selectCurrentView),c=useSelector(rootFolderSelector);const p=useDispatch(),u=react.exports.useCallback(()=>{e&&e()},[e]),m=AIWareFormatMessage(i);react.exports.useEffect(()=>{n&&n.length?p(actions.uiState.setCurrentView(ImporterView.filesSelected)):p(actions.uiState.setCurrentView(ImporterView.browseFiles))},[p,n]),react.exports.useEffect(()=>{o.baseUrl&&(t&&t.id?p(actions.rootFolderState.updateRootFolder({activeFolder:t})):p(actions.rootFolderState.startRootFolderFetch()))},[o,t,p]);var i=e=>{let t=e;var a=EnumHelpers.getNames(MimeType);const i=validateMimeTypes(e,a);0<(null===i||void 0===i?void 0:i.length)&&(p(showMessage({content:m({id:"os-data-center-importer.snackbar.disallowedFilesMessage",defaultMessage:[{type:0,value:"The following file types are not allowed: "},{type:1,value:"disallowedFiles"}]},{disallowedFiles:Array.from(i.values()).join(",")}),severity:MessageSeverity.Warning})),t=e.filter(e=>e.type&&!i.includes(e.type))),e.length>s?(p(showMessage({content:m({id:"os-data-center-importer.snackbar.fileLimitError",defaultMessage:[{type:0,value:"You can only upload files up to "},{type:1,value:"fileLimit"},{type:0,value:" files at once! Only the first "},{type:1,value:"fileLimit"},{type:0,value:" files will be uploaded."}]},{fileLimit:""+s}),severity:MessageSeverity.Warning})),t=e.slice(0,s)):e.length>MAX_VERITONE_FILE_COUNT_ALLOWED&&(p(showMessage({content:m({id:"os-data-center-importer.snackbar.fileCountError",defaultMessage:[{type:0,value:"You have exceeded the maxium allowable files per upload. Only the first "},{type:1,value:"maxFileCount"},{type:0,value:" files will be uploaded."}]},{maxFileCount:""+MAX_VERITONE_FILE_COUNT_ALLOWED}),severity:MessageSeverity.Warning})),t=e.slice(0,MAX_VERITONE_FILE_COUNT_ALLOWED));a=t.map(e=>{var t=URL.createObjectURL(e);return{id:guid(),fileUrl:t,name:e.name,size:e.size,type:e.type,percentComplete:0}});p(actions.filesSelectedState.setFilesSelected({filesSelected:a,sdkFiles:t}))},x=()=>{var e=n.filter(e=>e.status===LoadingStatus.Failed);p(actions.filesSelectedState.retryFileUpload({filesSelected:e}))};const g=()=>{p(actions.uiState.tdoCreateStart({filesSelected:n}))};return jsxRuntime.exports.jsxs("div",Object.assign({role:"presentation","data-test":"data-center-importer-widget",className:classNames(a.root)},{children:[jsxRuntime.exports.jsx(Header,{onPanelClose:u}),jsxRuntime.exports.jsxs("div",Object.assign({className:a.mainContainer},{children:[l===LoadingStatus.Failed&&jsxRuntime.exports.jsx(Box,Object.assign({mb:4},{children:jsxRuntime.exports.jsx(Alert,Object.assign({variant:"outlined",severity:"error",className:a.alert},{children:"Error while uploading your file(s)."}))})),d===ImporterView.browseFiles&&jsxRuntime.exports.jsx(LocalFileUpload,{onViewSupportedFiles:()=>{var e={name:"SUPPORTED_FILE_TYPES",config:{name:"Local Importer",fileTypes:DEFAULT_ACCEPTABLE_FILE_TYPES}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:r?0:55,marginStart:r?0:80,size:"medium",zIndex:r?1011:1002,parentPanelId:"DATA_CENTER_IMPORTER",dimmed:0,dimmedStatus:"dimParent"};p(mountPanel({panelId:"SUPPORTED_FILE_TYPES_PANEL",microFrontend:e,panelConfig:t}))},onUpload:i}),d===ImporterView.filesSelected&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(FileItemList,{onUpload:i,fileItems:n,onDelete:e=>{p(actions.filesSelectedState.deleteFileSelected({id:e}))},onRetryFailedsClick:x,onRetry:e=>{e.status===LoadingStatus.Failed?p(actions.filesSelectedState.retryFileUpload({filesSelected:[e]})):e.tdoStatus===LoadingStatus.Failed&&p(actions.uiState.retryTDOCreateForFiles({filesSelected:[e]}))},onAbort:e=>{p(actions.filesSelectedState.abortFileUpload(e))},onEdit:e=>{var e={name:"EDIT_FILE_METADATA",config:{name:"Local Importer",file:e=e}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:r?0:55,marginStart:r?0:80,size:"small",zIndex:r?1011:1002,parentPanelId:"DATA_CENTER_IMPORTER",dimmed:0,dimmedStatus:"dimParent"};p(mountPanel({panelId:"EDIT_FILE_METADATA",microFrontend:e,panelConfig:t}))},uiStateStatus:l}),jsxRuntime.exports.jsx("div",{className:a.spacer}),jsxRuntime.exports.jsx(LocationFolder,{folder:c,onChangeBtnClick:()=>__awaiter(void 0,void 0,void 0,function*(){try{yield mountPanelForResponse({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:{name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:"folders"}},panelConfig:{panelId:"DATA_CENTER_FOLDERS_AND_FILES",disableHide:!1,parentPanelId:"DATA_CENTER_IMPORTER",type:"APP_BAR_PANEL_TEMPLATE",size:"small",marginTop:r?0:55,marginStart:r?0:80,height:600,header:{title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.headerTitle.chooseLocation",defaultMessage:"Choose a Location",description:"The title for the choose location panel"})},dimmed:0,zIndex:r?1011:1002,dimmedStatus:"dimParent"}},store)}catch(e){console.log(e)}})})]}),jsxRuntime.exports.jsx(Footer,{uiStateStatus:l,fileItems:n,onClosePanel:()=>{if(n.length)for(const e of n)e.status===LoadingStatus.Pending&&p(actions.filesSelectedState.abortFileUpload(e));u()},onImportFiles:g,onIgnoreAndContinue:()=>{p(actions.filesSelectedState.deleteFailedFiles()),g()},onRetry:x})]}))]}))},DataCenterImporter=e=>jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(lib.DynamicModuleLoader,Object.assign({modules:[getDataCenterImporterModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}))})})),useStyles$3=makeStyles()(e=>({supportedFilesTypeHeader:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:"0px 10px",marginBottom:20},supportedFilesTypeWrapper:{padding:"8px 20px 20px 20px"},fileTypeItem:{border:"1px solid #D5DFE9",borderRadius:5,marginBottom:20,overflow:"hidden"},fileTypeItemHeader:{padding:18,borderBottom:"1px solid #D5DFE9",background:"#FAFAFA",display:"flex",alignItems:"center"},fileTypeItemBody:{display:"flex",alignItems:"center",padding:"26px 0",flexWrap:"wrap"},fileTypeItemExtension:{width:"50%",padding:"4px 0 4px 54px"},fileTypeItemExtensionFullWidth:{width:"100%"},fileItemTypeName:{marginLeft:12}})),FileTypeItem=({fileItemType:a})=>{var e;const i=useStyles$3()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:i.fileTypeItem,"data-test":"data-center-importer-supported-file-item"},{children:[jsxRuntime.exports.jsxs("header",Object.assign({className:i.fileTypeItemHeader},{children:[jsxRuntime.exports.jsx("span",Object.assign({"data-test":"data-center-importer-file-item-icon"},{children:jsxRuntime.exports.jsx(FileItemIcon,{filetype:a.type})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2",color:"textPrimary",className:i.fileItemTypeName,"data-test":"data-center-importer-file-type-name"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-browse.fileTypes.${name}",defaultMessage:"{name}",description:"Label for {name} type",values:{name:a.name}})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:i.fileTypeItemBody,"data-test":"data-center-importer-extension-list"},{children:null==(e=null==a?void 0:a.extensions)?void 0:e.map((e,t)=>jsxRuntime.exports.jsxs(Typography,Object.assign({variant:"body2",color:"textPrimary",className:classNames(i.fileTypeItemExtension,{[i.fileTypeItemExtensionFullWidth]:a.type===FileItemTypeNames.Text})},{children:[".",e]}),t))}))]}))},SupportedFileTypesContent=({fileTypes:e,hidePanel:t})=>{var a=useStyles$3()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:a.supportedFilesTypeWrapper},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:a.supportedFilesTypeHeader},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1",color:"secondary","data-test":"data-center-importer-supported-files-title"},{children:SHARED_TEXT.supportedFilesTitle()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"data-center-importer-close-panel","data-test":"data-center-importer-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),e.map((e,t)=>jsxRuntime.exports.jsx(FileTypeItem,{fileItemType:e},t))]}))},SupportedFileTypes=e=>jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(SupportedFileTypesContent,{hidePanel:e.hidePanel,fileTypes:e.fileTypes})}))})}),inputFieldBorderColor="#D5DFE9",useStyles$2=makeStyles()(e=>({editMetadataContainer:{padding:"5px 30px"},avatarImage:{display:"flex",justifyContent:"center",alignItems:"center",width:"135px",height:"119px",marginRight:"10px"},coverImage:{flexGrow:1,display:"flex",justifyContent:"center",alignItems:"center",height:"119px"},inputFieldBorder:{border:"1px solid "+inputFieldBorderColor},fileName:{width:"100%",border:"1px solid "+inputFieldBorderColor,height:"52px",borderRadius:"4px",boxSizing:"border-box",padding:"15px"},tagInput:{marginRight:"10px",flexGrow:1},tags:{paddingLeft:"0px","& > li":{listStyleType:"none",display:"inline",marginRight:"5px"}},tag:{backgroundColor:"#D5DFE9",fontSize:"12px",marginBottom:"5px"},runDate:{marginRight:"5px"},runTime:{"& input":{padding:"18.5px 10px !important"}},cancelBtn:{marginRight:e.spacing(2)},header:{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"space-between",padding:"0px"},footer:{position:"absolute",right:"30px",bottom:e.spacing(6)},topMarginSm:{marginTop:"15px"},topMarginLg:{marginTop:"15px"},flex:{display:"flex"},flexFill:{flexGrow:1},heading:{color:"#2A323C",fontSize:"14px",fontWeight:600,lineHeight:"20px"},subHeading:{color:"#5C6269",fontSize:"14px",fontWeight:"normal",lineHeight:"20px"},closePanel:{transform:"translateX(15px)"}})),useStyles$1=makeStyles()(e=>({container:{position:"relative",borderRadius:"5px",zIndex:2}})),AddImageIcon=({id:e,color:t="black",size:a=55})=>{var i=useStyles$1()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({id:"addImageIcon-"+e,className:i.container},{children:jsxRuntime.exports.jsx("svg",Object.assign({version:"1.2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500",width:a,height:a},{children:jsxRuntime.exports.jsx("path",{fill:t,fillRule:"evenodd",d:"M249.5 62c147.7 0 151.1 0 157.5 1.9 3.6 1.1 8.9 3.7 11.9 5.8 3 2.1 7.3 6.1 9.6 8.8 2.3 2.7 5.2 7.7 9 17l.3 101c.1 55.6.1 101.4-.2 102-.2.7-4.1.6-11.2-.3-6-.7-14-1-17.9-.7-3.9.3-8.4.8-13 1.6V104.5h-291v291H297l-.7 8c-.5 4.4-.8 9.8-.8 12 0 2.2.4 8.2 1.5 22.5h-97.3c-82.7 0-98.2-.3-104.2-1.5-3.8-.9-9-2.8-11.5-4.2-2.5-1.5-6-4.1-7.9-5.8-1.9-1.6-5.2-5.7-7.3-9-2.5-3.9-4.4-8.5-5.4-13-1.3-6.1-1.4-26.2-.9-309l2.4-6c1.4-3.3 4.3-8.3 6.6-11 2.3-2.8 6.6-6.7 9.6-8.8 3-2.1 8.1-4.6 11.4-5.7 5.8-1.8 11.6-1.9 157-2zm45.4 185c.3 0 12.2 15.8 52.6 70.3l-4 3.1c-2.2 1.7-7.7 6.7-12.3 11.1-4.6 4.4-10.6 11.3-18.7 22.5h-93.8c-90.2 0-93.7-.1-92.5-1.8.7-1 14.7-19 31-40 16.4-21 30-38.2 30.3-38.2.3 0 7.8 8.9 16.7 19.8 8.9 10.8 18.7 22.7 21.7 26.5 3.1 3.7 5.8 6.7 6.1 6.7.3-.1 14.4-18.1 31.4-40.1 17-21.9 31.2-39.9 31.5-39.9zm122.6 87.5c13.3.3 15.8.7 22 3 3.9 1.5 9.3 3.8 12 5.2 2.8 1.4 8.4 5.1 12.4 8.2 4.1 3.1 10 8.7 13.1 12.6 3 3.9 7.1 10.1 9.1 14 2 3.9 4.7 9.9 6 13.5 2.1 5.9 2.3 8.2 2.3 24.5s-.2 18.6-2.3 24.5c-1.3 3.6-4 9.6-6 13.5-2 3.9-6.1 10.1-9.1 14-3.1 3.9-9 9.5-13.1 12.5-4 3.1-9.6 6.7-12.4 8.2-2.7 1.5-8.1 3.9-12 5.4-6.8 2.7-7.6 2.8-26 2.8s-19.2-.1-26-2.8c-3.9-1.5-9.2-3.9-12-5.3-2.7-1.4-8.4-5.1-12.4-8.2-4.1-3.1-10-8.7-13.1-12.6-3-3.9-7.1-10.1-9.1-14-2-3.9-4.7-9.9-6-13.5-2.1-5.9-2.3-8.2-2.3-24.5s.2-18.6 2.3-24.5c1.3-3.6 4-9.6 6-13.5 2-3.9 6.1-10.1 9.1-14 3.1-3.9 9-9.5 13.1-12.5 4-3.1 9.7-6.7 12.4-8.2 2.8-1.4 7.5-3.6 10.5-4.8 3-1.2 8-2.6 11-3 3-.5 12.3-.7 20.5-.5zM390 355.6c-3.6 1.6-8.5 4-11 5.4-2.5 1.4-7.4 5.4-11 9-3.9 3.8-8.2 9.6-10.6 14-2.3 4.1-5 10-6 13-1.3 4.2-1.8 8.7-1.8 18.5s.5 14.3 1.8 18.5c1 3 3.7 8.9 5.9 13 2.7 4.8 6.8 10.1 11.3 14.5 5.2 5.1 9.3 8.1 15.5 11.1 4.6 2.3 10.2 4.7 12.4 5.5 2.5.8 8.8 1.3 17 1.3s14.5-.5 17-1.3c2.2-.8 7.8-3.2 12.4-5.5 6.5-3.1 10.2-5.9 16-11.7 5.8-5.7 8.6-9.6 11.8-16 2.3-4.6 4.7-10.2 5.4-12.4.7-2.4 1.3-9.3 1.3-17 0-7.7-.6-14.6-1.3-17-.7-2.2-3.1-7.8-5.4-12.4-3.2-6.4-6-10.3-11.8-16-5.6-5.7-9.6-8.6-15.5-11.5-4.3-2.1-9.7-4.5-11.9-5.3-2.2-.7-8.5-1.5-14-1.7-5.5-.3-12.5-.1-15.5.3s-8.4 2.1-12 3.7zm15 18.4h17v33h33v17h-33v33h-17v-33h-33v-17h33z"})}))}))},useStyles=makeStyles()(e=>({addImageBoxContainer:{display:"flex",justifyContent:"flex-start",flexDirection:"column"},addImageBoxTitle:{padding:"0px",margin:"0px",color:"rgb(92, 98, 105)",fontSize:"12px",fontWeight:400,textAlign:"left",paddingLeft:"5px",paddingBottom:"3px"},addImageBoxSizeAvatar:{width:"135px"},addImageBoxSizeCover:{width:"100%"},addImageBoxIconDiv:{height:"180px",display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid #D5DFE9",overflow:"hidden",position:"relative",textAlign:"left",borderRadius:"4px"},addImageBoxBackground:{position:"absolute",height:"100%",width:"100%",top:0,left:0,backgroundSize:"cover"},addImageBoxShadow:{background:"rgba(0,0,0,0.35)",position:"absolute",width:"100%",height:"100%",zIndex:1},iconButtonContainer:{width:"100%",padding:0},deleteIconContainer:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"transparent",zIndex:10,display:"flex",justifyContent:"center",alignItems:"center"},deleteIcon:{color:"white",fontSize:"24px"}})),AddImageBox=({title:e,backgroundImgUrl:t="",aspectRatio:a="avatar",onClick:i,onDelete:s})=>{var o=useStyles()["classes"];const[r,n]=react.exports.useState(!1);var l=!!t,d=r&&t,c=r&&t,p=!t||r&&t,u=t?{backgroundImage:`url(${t})`}:{};return jsxRuntime.exports.jsxs("div",Object.assign({className:o.addImageBoxContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({id:`file-item-meta-${a}-image-title`,variant:"body2",className:o.addImageBoxTitle,color:"secondary","data-test":`file-item-meta-${a}-image-title`},{children:e})),jsxRuntime.exports.jsx(Button,Object.assign({className:o.iconButtonContainer,onClick:i},{children:jsxRuntime.exports.jsxs("div",Object.assign({onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),className:o.addImageBoxIconDiv+" "+("avatar"===a?o.addImageBoxSizeAvatar:o.addImageBoxSizeCover)},{children:[p&&!c&&jsxRuntime.exports.jsx(AddImageIcon,{id:`add-${a}-img`,color:t?"#fff":"#2A323C",size:45}),c&&jsxRuntime.exports.jsx("div",Object.assign({className:o.deleteIconContainer,onClick:s},{children:jsxRuntime.exports.jsx(default_1$4,{style:{fontSize:42},className:o.deleteIcon,color:"inherit"})})),d&&jsxRuntime.exports.jsx("div",{className:o.addImageBoxShadow}),l&&jsxRuntime.exports.jsx("div",{className:o.addImageBoxBackground,style:u})]}))}))]}))},FileItemMeta=({file:t,onSave:a,onCancel:e,onClosePanel:i})=>{const s=useStyles$2()["classes"];var o=useSelector(preferredLanguageSelector);const[r,n]=react.exports.useState(null),[l,d]=react.exports.useState(""),[c,p]=react.exports.useState(""),[u,m]=react.exports.useState((()=>{var[e,t,a]=(new Date).toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).split("/");return a+`-${e}-`+t})()),[x,g]=react.exports.useState((()=>{const[e,t]=(new Date).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}).split(":");return e+":"+t.slice(0,2)})()),[f,j]=react.exports.useState([]),h=AIWareFormatMessage(o);react.exports.useEffect(()=>{var e;t&&(e=t["meta"],n(null==e?void 0:e.thumbnailImg),d(null!=e&&e.fileName?e.fileName:t.name),null!=e&&e.runDate&&m(null==e?void 0:e.runDate),null!=e&&e.runTime&&g(null==e?void 0:e.runTime),j((null==e?void 0:e.tags)||[]))},[t]);var o=react.exports.useCallback(()=>{var e;a&&(e={fileId:null==t?void 0:t.id,fileName:l,thumbnailImg:r,runDate:u,runTime:x,tags:f},a(e))},[a,l,u,x,f,r,t]),y=react.exports.useCallback(()=>{e&&(F(),e())},[e]),S=react.exports.useCallback(()=>{i&&(F(),i())},[i]);const v=react.exports.useCallback(()=>{if(c){const t=function(e){const t=e.includes(",")?e.split(","):[e],a=f.map(e=>e.value),i=[];return null===t||void 0===t||t.forEach(e=>{e=e.trim();""===e||a.includes(e)||(i.push({value:e}),a.push(e))}),i}(c);j(e=>[...e,...t]),p("")}},[c]),b=()=>{n(null)};return jsxRuntime.exports.jsxs("div",Object.assign({className:s.editMetadataContainer},{children:[jsxRuntime.exports.jsxs("header",Object.assign({className:s.header},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({id:"file-item-meta-title",variant:"h1",color:"secondary","data-test":"file-item-meta-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.WUHjl4",defaultMessage:"Edit Metadata",description:"Edit Metadata"})})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"})},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({id:"file-item-meta-close-panel",onClick:S,"aria-labelledby":"file-item-meta-close-panel","data-test":"file-item-meta-close-panel",className:s.closePanel,size:"large"},{children:jsxRuntime.exports.jsx(Close,{})}))}))]})),jsxRuntime.exports.jsx("section",{children:jsxRuntime.exports.jsx(UploadButton,{id:"file-item-meta-avatar-image-upload",imageOnly:!0,onUpload:e=>{e=e.target.files[0],t=URL.createObjectURL(e);var t,e=t={id:guid(),fileUrl:t,name:e.name,size:e.size,type:e.type,percentComplete:0};n(e)},isUploadEnabled:!r,render:({handleButtonClick:e})=>jsxRuntime.exports.jsx(AddImageBox,{title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.uK8+3P",defaultMessage:"Thumbnail Image",description:"Thumbnail Image"}),backgroundImgUrl:r?null===r||void 0===r?void 0:r.fileUrl:"",aspectRatio:"cover",onClick:e,onDelete:b})})}),jsxRuntime.exports.jsx("section",Object.assign({className:s.topMarginSm},{children:jsxRuntime.exports.jsx(TextField,{id:"file-item-meta-file-name",InputLabelProps:{shrink:!0},autoComplete:"off",label:h({id:"os-data-center-importer.label.fileName",defaultMessage:[{type:0,value:"File name"}]}),value:l,style:{width:"100%"},onChange:e=>{d(e.target.value)}})})),jsxRuntime.exports.jsxs("section",Object.assign({className:s.topMarginLg},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"file-item-meta-display-time-heading",variant:"subtitle1",color:"textSecondary",className:s.heading},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.8aqtJF",defaultMessage:"Media Display Time",description:"Media Display Time heading"})})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"file-item-meta-display-time-sub-heading",variant:"subtitle2",color:"textSecondary",className:s.subHeading},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.mhUvxM",defaultMessage:"The actual time the content occurred.",description:"Media Display Time sub heading"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.topMarginSm+" "+s.flex},{children:[jsxRuntime.exports.jsx(TextField,{id:"file-item-meta-run-date",label:h({id:"os-data-center-importer.label.runDate",defaultMessage:[{type:0,value:"Run Date"}]}),type:"date",value:u,className:s.runDate,onChange:e=>m(e.target.value),InputLabelProps:{shrink:!0}}),jsxRuntime.exports.jsx(TextField,{id:"file-item-meta-run-time",label:h({id:"os-data-center-importer.label.runTime",defaultMessage:[{type:0,value:"Run Time"}]}),type:"time",value:x,onChange:e=>g(e.target.value),className:s.runTime,InputLabelProps:{shrink:!0}})]}))]})),jsxRuntime.exports.jsxs("section",Object.assign({className:s.topMarginLg},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"file-item-meta-tags-heading",variant:"subtitle1",color:"textSecondary",className:s.heading},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.fXL811",defaultMessage:"Tags",description:"Tags heading"})})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"file-item-meta-tags-sub-heading",variant:"subtitle2",color:"textSecondary",className:s.subHeading},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.WFj+x5",defaultMessage:"Add searchable tags to better organize this data. Separate each tag with a comma.",description:"Tags sub heading"})})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.topMarginSm+" "+s.flex},{children:[jsxRuntime.exports.jsx(TextField,{id:"file-item-meta-tags",autoComplete:"off",value:c,className:s.tagInput,onChange:e=>{p(e.target.value)},size:"small",onKeyPress:e=>{"Enter"===e.key&&v()}}),jsxRuntime.exports.jsx(Button,Object.assign({id:"file-item-meta-tags-addBtn",variant:"outlined",color:"primary",disabled:!c,onClick:v},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.rntBSe",defaultMessage:"Add",description:"Add tags to metadata"})}))]})),jsxRuntime.exports.jsx("ul",Object.assign({id:"tags",className:s.tags+" "+s.topMarginSm},{children:null===f||void 0===f?void 0:f.map(t=>jsxRuntime.exports.jsx("li",{children:jsxRuntime.exports.jsx(Chip,{id:guid(),label:t.value,size:"small",className:s.tag,onDelete:()=>{j(f.filter(e=>e.value!==t.value))}})},t.value))}))]})),jsxRuntime.exports.jsxs("footer",Object.assign({className:s.footer},{children:[jsxRuntime.exports.jsx(Button,Object.assign({id:"file-item-meta-cancel-btn",onClick:y,variant:"text",size:"large",className:s.cancelBtn,"data-test":"file-item-meta-cancel-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.6PdOcy",defaultMessage:"Cancel",description:"Cancel"})})),jsxRuntime.exports.jsx(Button,Object.assign({id:"file-item-meta-save-btn",onClick:o,disabled:!1,size:"large",variant:"contained",color:"primary","data-test":"file-item-meta-save-btn"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-center-importer.kxBKrN",defaultMessage:"Save Changes",description:"Save file metadata changes"})}))]}))]}));function F(){n(null),d(""),m("2021-12-22"),g("12:00"),j([])}},FileItemMetaContainer=({hidePanel:e,file:t})=>{const a=useDispatch();var i=useSelector(selectUIStateStatus);return jsxRuntime.exports.jsx(FileItemMeta,{file:t,status:i,onSave:function(e){e&&a(actions.filesSelectedState.addMetadataAction({id:null==t?void 0:t.id,meta:e}))},onCancel:function(){e()},onClosePanel:function(){e()}})},EditFileMetadata=e=>jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(FileItemMetaContainer,Object.assign({},e))}))})});export{DataCenterImporter,EditFileMetadata,SupportedFileTypes};
1
+ import{i as createSvgIcon,k as interopRequireDefault,j as jsxRuntime,l as createSlice,cO as combineReducers,m as makeStyles,cS as AIWareThemeProvider,A as AIWareIntlProvider,s as store,p as useSelector,o as useDispatch,T as Typography,G as Button,aX as Tooltip,Z as IconButton,fq as Settings,cY as FullscreenExit,cZ as Fullscreen,cC as Hide,r as react,U as classNames,bg as CircularProgress,aM as Portal,a5 as all,F as FormattedMessage,bu as Fade,fj as Slide,a2 as Divider,a9 as takeEvery$1,aa as select,aC as preferredLanguageSelector,ac as put,ad as showMessage,ae as MessageSeverity,bN as AIWareFormatMessage}from"./js-core.esm.js";var EntityType,MimeType,Save={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Save,"__esModule",{value:!0}),Save.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save"),default_1=Save.default=_default;const SLICE_NAME="dataLabeler",initialAnnotationSettings=(!function(e){e.Annotation="annotation",e.Publish="publish",e.DatasetAssets="datasetAssets"}(EntityType=EntityType||{}),!function(e){e.VideoMp4="video/mp4",e.AudioMp4="audio/mp4"}(MimeType=MimeType||{}),{isOpen:!1}),initialPublishAnnotationSettings={isOpen:!1},namespace$2="uiState",initialState$1={status:"pending",isFullScreen:!1,isFluffy:!1,isInfoOpen:!1,annotationToolSettings:initialAnnotationSettings,publishAnnotationSettings:initialPublishAnnotationSettings},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"},toggleFullScreen(e){e.isFullScreen=!e.isFullScreen},togglePublishAnnotationSettings(e,{payload:t}){t?(e.publishAnnotationSettings.isOpen=!0,e.publishAnnotationSettings.entityType=t):(e.publishAnnotationSettings.isOpen=!1,delete e.publishAnnotationSettings.entityType)},toggleAnnotationSettings(e,{payload:t}){t?(e.annotationToolSettings.isOpen=!0,e.annotationToolSettings.entityType=t):(e.annotationToolSettings.isOpen=!1,delete e.annotationToolSettings.entityType)}}}),actions$2=slice$1.actions;var uiState=slice$1.reducer;const namespace$1="panelPublishAnnotations",initialState={ids:[]},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{submitPublishAnnotations(e,{payload:t}){e.ids=t.ids}}}),actions$1=slice.actions;var panelPublishAnnotations=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:uiState,[namespace$1]:panelPublishAnnotations}),selectIsFullScreen=e=>e[namespace].uiState.isFullScreen,selectPublishAnnotationSettings=e=>e[namespace].uiState.publishAnnotationSettings,selectAnnotationSettings=e=>e[namespace].uiState.annotationToolSettings,visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var visuallyHidden$1=visuallyHidden;const DATA_LABELER_TEXT={publishAnnotation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.y9CGIM",defaultMessage:"Publish Annotation",description:"Publish Annotation"}),publishAnnotationSubtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.r0ufb8",defaultMessage:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics.",description:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics."}),annotationSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.XONoJU",defaultMessage:"Annotation Settings",description:"Annotation Settings"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),exitFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.awe7uYc",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}),enterFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.stiZt+b",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"}),toggleFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.TUGpHT",defaultMessage:"Toggle FullScreen",description:"Toggle FullScreen"}),submit:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.lOLf4e",defaultMessage:"Submit",description:"Submit"}),show:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.HTVdQU",defaultMessage:"Show",description:"Show"}),hide:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.sX3mXR",defaultMessage:"Hide",description:"Hide"})},useStyles$2=makeStyles()((e,t,s)=>({root:{flexGrow:1},gridText:{minHeight:0,minWidth:0},divider:{opacity:.9},name:{fontWeight:400,maxWidth:"100%"},type:{paddingLeft:e.spacing(1),maxWidth:e.spacing(12)},padding:{paddingRight:e.spacing(1)},thumbnailContainer:{paddingLeft:e.spacing(3),maxWidth:"60px"},tableHeaderTitle:{paddingLeft:e.spacing(3),maxWidth:"120px"},thumbnail:{width:32,height:32,borderRadius:4,border:".5px solid "+e.palette.divider,objectFit:"cover",verticalAlign:"middle"},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:64,padding:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},folderMoreIcon:{},row:{cursor:"pointer","&:hover":{borderRadius:4,backgroundColor:"#EEF3F9",["& "+s.folderMoreIcon]:{visibility:"visible",width:"100%",display:"flex",justifyContent:"flex-end"},"& #engineIconContainer":{background:"#fff"}},["& "+s.folderMoreIcon]:{visibility:"hidden"}},publishRoot:{height:"calc(100vh - 260px)",width:"100%"},dRoot:{height:"calc(100vh - 120px)",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}})),Header=({isFullScreen:e,onPanelClose:t,onFullScreenToggle:s,disableSetting:a})=>{var n=useStyles$2()["classes"];const i=useDispatch();return jsxRuntime.exports.jsxs("header",Object.assign({className:n.header,"data-test":"data-labeler-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1","data-test":"data-labeler-title",style:{marginLeft:30}},{children:"Data Labeler"})),jsxRuntime.exports.jsx("div",Object.assign({style:{alignItems:"center",border:"1px solid #E1E6ED",borderRadius:4,display:"none",flexGrow:1,height:44,padding:20}},{children:"[PLACEHOLDER FOR SEARCH COMPONENT]"})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.headerActionContainer},{children:[jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",size:"large","data-test":"data-labeler-open-publish-annotations",style:{marginRight:10},startIcon:jsxRuntime.exports.jsx(default_1,{style:{color:"#FFF"}}),onClick:()=>i(actions.uiState.togglePublishAnnotationSettings(EntityType.Publish))},{children:DATA_LABELER_TEXT.publishAnnotation()})),jsxRuntime.exports.jsx("div",{className:n.verticalDivider}),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-toolbar-open-annotation-settings"},{children:DATA_LABELER_TEXT.annotationSettings()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.annotationSettings()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({disabled:a,onClick:()=>i(actions.uiState.toggleAnnotationSettings(EntityType.Annotation)),"data-test":"data-labeler-open-annotation-settings","aria-labelledby":"data-labeler-toolbar-open-annotation-settings",size:"large"},{children:jsxRuntime.exports.jsx(Settings,{})}))})),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-toggle-fullscreen"},{children:DATA_LABELER_TEXT.toggleFullScreen()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:e?DATA_LABELER_TEXT.exitFullScreen():DATA_LABELER_TEXT.enterFullScreen()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:s,"aria-labelledby":"data-labeler-toggle-fullscreen","data-test":"data-labeler-fullscreen-toggle",size:"large"},{children:e?jsxRuntime.exports.jsx(FullscreenExit,{}):jsxRuntime.exports.jsx(Fullscreen,{})}))})),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-close-panel"},{children:DATA_LABELER_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"data-labeler-close-panel","data-test":"data-labeler-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]}))},LabelerIframe=({path:e,fullScreen:t=!1,onClosePanel:s,onSavePublishAnnotation:a})=>{var n=useStyles$2()["classes"];const[i,l]=react.exports.useState(!0),o=react.exports.useRef(null);react.exports.useEffect(()=>{const e=t=>{t=t.data;if(t){let e;try{e=JSON.parse(t)}finally{e&&"closePanel"===e.action&&s&&s(),e&&"savePublishAnnotation"===e.action&&a&&a()}}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),react.exports.useEffect(()=>{o&&o.current&&o.current.focus()},[o]);t=`calc(100vh - ${t?"64":"120"}px)`;return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(n.dRoot,"hide-in-percy"),style:{height:t}},{children:[i&&jsxRuntime.exports.jsx("div",Object.assign({className:n.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress,{})})),jsxRuntime.exports.jsx("iframe",{"data-test":"data-labeler-iframe",title:"Data Labeler Iframe",ref:o,style:{width:"100%",height:"100%",overflow:"auto"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{l(!1)},1e3)}})]}))},useStyles$1=makeStyles()(e=>({panelRoot:{position:"absolute",right:0,top:0,display:"flex","&$fullScreen":{height:"100vh"}},panelContainer:{display:"flex",flexDirection:"column",width:"100%",padding:e.spacing(2)},panelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:e.spacing(1),marginBottom:e.spacing(1),"&.with-secondary-title":{alignItems:"flex-start"}},panelBody:{display:"flex",flexGrow:1,padding:e.spacing(1)},divider:{marginBottom:e.spacing(2)},panelOverlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"},EmptyAssetContainer:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",paddingTop:e.spacing(18),width:"100%"},emptyImage:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}})),SubPanel=({isOpen:e,panelTitle:t,className:s="",onClose:a,children:n,setIsActive:i,width:l=400})=>{var o=useStyles$1()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Fade,Object.assign({in:e,mountOnEnter:!0,unmountOnExit:!0},{children:jsxRuntime.exports.jsx("div",{className:o.panelOverlay})})),jsxRuntime.exports.jsx(Slide,Object.assign({direction:"left",in:e,mountOnEnter:!0,unmountOnExit:!0,onEntered:()=>{i(!0)},onExited:()=>i(!1)},{children:jsxRuntime.exports.jsx("div",Object.assign({className:classNames(s,o.panelRoot),style:{width:l},"data-test":"data-labeler-action-panel"},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.panelContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(o.panelHeader)},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"data-labeler-action-panel-title",variant:"h1"},{children:t})),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-close-action-panel"},{children:DATA_LABELER_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:a,"aria-labelledby":"data-labeler-close-action-panel","data-test":"data-labeler-close-action-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]})),jsxRuntime.exports.jsx(Divider,{className:o.divider}),jsxRuntime.exports.jsx("div",Object.assign({className:o.panelBody},{children:n}))]}))}))}))]})},AnnotationSettings=e=>{var[t,s]=react.exports.useState(!1);const a=useDispatch();var{isOpen:n,entityType:i}=useSelector(selectAnnotationSettings),l=()=>{a(actions.uiState.toggleAnnotationSettings(null))};return jsxRuntime.exports.jsx(SubPanel,Object.assign({isOpen:!(!n||!i),panelTitle:DATA_LABELER_TEXT.annotationSettings(),onClose:l,setIsActive:s,width:1020},e,{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:t&&jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:e.fullScreen,path:e.blueEyeConfig.settingUri,onClosePanel:l})})}))},PublishAnnotations=t=>{var[e,s]=react.exports.useState(!1);const a=useDispatch();var{isOpen:n,entityType:i}=useSelector(selectPublishAnnotationSettings),l=()=>{a(actions.uiState.togglePublishAnnotationSettings(null))};return jsxRuntime.exports.jsx(SubPanel,Object.assign({isOpen:!(!n||!i),panelTitle:DATA_LABELER_TEXT.publishAnnotation(),onClose:l,setIsActive:s,width:400},t,{children:jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:e&&jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:t.fullScreen,path:t.blueEyeConfig.publishUri,onClosePanel:l,onSavePublishAnnotation:()=>{var e=t["publishCallback"];e()}})})}))},useStyles=makeStyles()(e=>({root:{width:"100%",position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%",overflow:"hidden"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0,zIndex:1200}})),Container=({isFullScreen:e,classes:t,children:s})=>e?jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:classNames(t.panel,t.fullScreen)},{children:s}))}):jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:classNames(t.root,t.panel)},{children:s})),MainLayout=({hidePanel:e,blueEyeConfig:t,datasetAssets:s,publishCallback:a,disableSetting:n})=>{var i=useStyles()["classes"],l=useSelector(selectIsFullScreen);const o=useDispatch();return jsxRuntime.exports.jsxs(Container,Object.assign({isFullScreen:l,classes:i},{children:[jsxRuntime.exports.jsx(Header,{isFullScreen:l,onFullScreenToggle:()=>{o(actions.uiState.toggleFullScreen())},onPanelClose:()=>{e&&e()},disableSetting:n}),jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:l,path:t.annotateUri}),jsxRuntime.exports.jsx(AnnotationSettings,{className:i.panel,fullScreen:l,blueEyeConfig:t}),jsxRuntime.exports.jsx(PublishAnnotations,{className:i.panel,fullScreen:l,blueEyeConfig:t,datasetAssets:s,publishCallback:a})]}))},DataLabelerPanel=e=>e.panelRendered?jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}):null;function*submitPublishAnnotationns(e){var e=e.payload,t=e.ids,e=((0,e.callback)(t),yield select(preferredLanguageSelector)),t=AIWareFormatMessage(e);yield put(showMessage({content:t({id:"os-data-labeler.snackbar.submitPublishSuccess",defaultMessage:[{type:0,value:"Submit publish annotations successfully."}]}),severity:MessageSeverity.Info}))}function*watchSubmitPublishAnnotations(){yield takeEvery$1(actions.panelPublishAnnotations.submitPublishAnnotations.type,submitPublishAnnotationns)}function*rootSaga(){yield all([watchSubmitPublishAnnotations()])}function getDataLabelerBrowseModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}store.addModules([getDataLabelerBrowseModule()]);export{DataLabelerPanel};
Binary file
package/js-core.esm41.js CHANGED
@@ -1 +1,31 @@
1
- import{p as createSvgIcon,q as interopRequireDefault,j as jsxRuntime}from"./js-core.esm.js";var Delete={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Delete,"__esModule",{value:!0}),Delete.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete"),default_1=Delete.default=_default;export{default_1 as d};
1
+ import{cF as createSvgIcon,j as jsxRuntime,m as makeStyles,l as createSlice,cO as combineReducers,d1 as unmountPanel,cc as AIWareCacheProvider,cS as AIWareThemeProvider,E as DynamicModuleLoader,A as AIWareIntlProvider,cP as createSelector,p as useSelector,o as useDispatch,d7 as userSelector,fl as selectApiConfigs,r as react,U as classNames,fY as navSectionStyles,gm as tableStyles,d5 as mountPanel,B as Box,bg as CircularProgress,T as Typography,aX as Tooltip,Z as IconButton,cC as Hide,g1 as Stepper,g3 as Step,g4 as StepLabel,G as Button,a2 as Divider,fk as img$c,a5 as all,N as Grid,F as FormattedMessage,gn as ArrowDown,go as ArrowUp,a$ as takeLatest$1,gp as useInterval,gq as Iam,fL as CheckCircle,Q as TextField,S as Switch,aa as select,aC as preferredLanguageSelector,gr as safeFormatMessage,bN as AIWareFormatMessage,ab as call,ac as put,C as devErrorLogger,ad as showMessage,ae as MessageSeverity,gs as contextMenuStyles,a4 as Popover,fg as MenuList,a1 as MenuItem,bi as Dialog,bz as DialogTitle,bA as DialogContent,d6 as DialogContentText,bB as DialogActions,cn as Icon,gl as default_1,db as Upload,cx as FormHelperText$2,w as lodash,di as baseGraphQLApiWithError}from"./js-core.esm.js";import{C as ContentCopy}from"./js-core.esm37.js";import{M as MoreVert}from"./js-core.esm42.js";var Public=createSvgIcon(jsxRuntime.exports.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-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}),"Public"),useStyles$1=makeStyles()(e=>({root:{width:"560px",height:"auto"},configurationContainer:{minHeight:"650px"},spacer:{minHeight:e.spacing(2)},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,backgroundColor:"#FAFAFA !important",display:"flex",height:64,padding:e.spacing(2)},headerTitle:{paddingLeft:e.spacing(4)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},stepsContent:{overflowY:"scroll","&::-webkit-scrollbar":{width:"0"},height:"calc(100vh - 280px)"},stepper:{width:"80%",height:"75px",paddingLeft:"30px"},step:{".MuiStepIcon-root.Mui-active":{fill:e.palette.secondary.main},".MuiStepIcon-root.Mui-completed":{fill:e.palette.secondary.main}},sectionsButton:{paddingBottom:e.spacing(3)},sections:{paddingTop:e.spacing(3),paddingBottom:e.spacing(2.8)},container:{paddingTop:e.spacing(3),paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},clientDivider:{paddingBottom:e.spacing(3)},previewButtonContainer:{marginTop:e.spacing(3),padding:e.spacing(3),background:"#FAFAFA"},previewButtonImage:{width:"30px",height:"30px",objectFit:"contain",marginRight:e.spacing(2)},previewButton:{height:"55px",marginBottom:e.spacing(4),textTransform:"none"},designContainer:{display:"flex",width:"100%",marginTop:e.spacing(3)},colorBlocksContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},colorBlock:{width:"30px",height:"30px",borderRadius:"4px"},colorValuesContainer:{display:"flex",justifyContent:"space-between",width:"100%"},buttonDesignErrorContainer:{marginTop:"10px",display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",color:"#E53935"},buttonDesignContainer:{display:"flex",flexDirection:"column",height:"137px",width:"100%",justifyContent:"space-between"},buttonPreviewLabel:{position:"absolute",fontSize:"12px",fontWeight:300,width:"75px",backgroundColor:"#fff",transform:"translate(2px, 0px) scale(.98)",color:"#5C6269",textAlign:"center",top:"-8px",left:"5px"},logo:{width:"100%",objectFit:"fill",borderRadius:"4px"},logoContainer:{height:"138px",width:"138px",position:"relative",borderRadius:"4px",marginRight:e.spacing(2)},buttonGroup:{position:"fixed",bottom:"20px",right:"80px",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"flex-end",marginTop:e.spacing(3),marginRight:e.spacing(3)},button:{marginRight:e.spacing(1)},instructions:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},textField:{width:"100%"},textFieldButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"100%"},textFieldHexButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"48%"},inputBase:{fontWeight:400,fontSize:"14px"},inputContainer:{position:"relative"},fileInput:{position:"absolute",height:1,width:1,overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"},imageWrapper:{position:"relative",alignItems:"center",borderRadius:4,border:"1px solid #ccc",boxSizing:"border-box",cursor:"pointer",display:"flex",width:137,height:137,justifyContent:"center",overflow:"hidden"},inputLogo:{position:"relative",height:138,width:138,objectFit:"contain"},removeBtn:{backgroundColor:"rgba(255, 255, 255, .7)",color:"#000",borderRadius:"25px",padding:8,position:"absolute",right:4,top:92},loadingCreate:{marginTop:"50px",display:"flex",width:"100%",height:"400px",justifyContent:"space-around",alignItems:"center",flexDirection:"column"},errorImage:{width:"235px",height:"235px"},retryButton:{marginTop:"10px"},isGlobalContainer:{borderRadius:4,backgroundColor:"#FAFAFA",padding:"10px",display:"flex",flexDirection:"row"},isGlobalTitle:{marginBottom:"5px"},isGlobalDescription:{width:"90%"}}));const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var visuallyHidden$1=visuallyHidden;const SHARED_TEXT={panelHeaderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.ciRSCG",defaultMessage:"Login Connector",description:"Login Connector"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),loginStepsProviderConfiguration:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.6+P+4t",defaultMessage:"Provider Configuration",description:"Provider Configuration"}),loginStepsButtonDesign:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.pgJQ+P",defaultMessage:"Button Design",description:"Button Design"}),loginStepsNextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.6V6DQY",defaultMessage:"Next",description:"Next Button"}),loginStepsBackButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.nsJ82A",defaultMessage:"Back",description:"Back Button"}),loginStepsCreateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.DOAMwO",defaultMessage:"Create",description:"Create Button"}),loginStepsUpdateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.aW7Qtx",defaultMessage:"Update",description:"Button that allows users to update their open id provider"}),loginStepsCloseButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.q5zf7S",defaultMessage:"Close",description:"Create Button"}),loginStepsErrorRequired:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.vjutlG",defaultMessage:"This field is required.",description:"required field"}),loginStepsErrorIssuerUrl:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.2VJeNw",defaultMessage:"This field is required. OpenID connect metaData document",description:"OPenId Metadata Document Required"}),loginStepsErrorBtnText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.JuCywi",defaultMessage:"This field is required",description:"Button Text Required"}),loginStepsErrorBtnColor:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.lQChal",defaultMessage:'Needs Valid Six Digit Hex color ie.. "#FFFFFF"',description:"Valid Button Text Color Required"}),loginStepsErrorBtnLogo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.8vQBmc",defaultMessage:"Please use a valid JPEG, PNG or SVG file smaller than 300KB",description:"Valid Button Logo Type File Size"}),providerInstructions:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.rpVpIA",defaultMessage:"Configure your new authentication option for users of this organization. This will be displayed on login.",description:"Provider Instructions"}),providerUpdateInstructions:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.i1Yvqc",defaultMessage:"Update your authentication options for users of this organization. This will be displayed on login. You will need to re-enter your Client Secret and Issuer URL for this connector",description:"Text to describe Instructions for this step of Login Connector Updating"}),providerSectionBasic:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.3nxOek",defaultMessage:"Basic Info",description:"Basic Info"}),providerInputName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.+fYwFL",defaultMessage:"Name",description:"Name"}),providerInputDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.3T09+Q",defaultMessage:"Description",description:"Description"}),providerInputWebsiteUrl:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.pnHn3q",defaultMessage:"Website URL",description:"Website URL"}),providerSectionClient:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.EcoPxV",defaultMessage:"Client Info",description:"Client Info"}),providerInputClientId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.uWdwr0",defaultMessage:"Client ID",description:"Client ID"}),providerInputClientSecret:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.6OgfIg",defaultMessage:"Client Secret",description:"Client Secret "}),providerInputIssuerUrl:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.mXH+F+",defaultMessage:"Issuer URL",description:"Issuer URL"}),providerGlobalTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.+k+hp1",defaultMessage:"Global Authentication",description:"Global Authentication"}),providerGlobalDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.fxc8x4",defaultMessage:"When enabled, this login provider will be available for all organizations within this environment. Please use with caution!",description:"Global description"}),buttonInstructions:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.gQIG1D",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Instructions"}),buttonPreview:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.dtsZya",defaultMessage:"Button Preview",description:"Button Preview"}),buttonLogo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.XtAWcG",defaultMessage:"Button Logo",description:"Button Logo"}),buttonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.w2NwY1",defaultMessage:"Button Text Label",description:"Button Text"}),buttonColor:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.J2U6tX",defaultMessage:"Button Color",description:"Button Color"}),buttonTextColor:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.3GdHqA",defaultMessage:"Button Text Color",description:"Button Text Color"}),providerCreationCreated:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.q+GZ9g",defaultMessage:"Your Login Connector is being created!",description:"connector being created"}),providerCreationFailed:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.DVnePp",defaultMessage:"There was an error while creating your Open ID connector:",description:"connector creation failed"}),providerCreationRetryButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.muMXB+",defaultMessage:"Retry",description:"retry button"}),getProviderFailed:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.Iuo8e2",defaultMessage:"There was an error retrieving your existing Open ID connector",description:"Message to let user know that we could not retrieve thier Login Connector"})},Header=({onPanelClose:e})=>{var t=useStyles$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:t.header,"data-test":"admin-center-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.headerTitle,variant:"h1",color:"secondary","data-test":"admin-center-title"},{children:SHARED_TEXT.panelHeaderTitle()})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"admin-center-close-panel"},{children:SHARED_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:e,"aria-labelledby":"admin-center-close-panel","data-test":"admin-center-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]}))},SLICE_NAME$1="adminCenterOpenIdDetail",LoginPrefix="Log in with ";function isImage(e){e=e.type;return["image/jpeg","image/png","image/svg+xml"].includes(e)}const ImageInput=({logoUrl:e,onChangeFormItem:t})=>{var s=useStyles$1()["classes"];const r=react.exports.useRef(null),[n,i]=react.exports.useState(e),[a,o]=react.exports.useState(!1);react.exports.useEffect(()=>{t("btnLogo",n)},[n,t]);return jsxRuntime.exports.jsxs("div",Object.assign({className:s.inputContainer},{children:[jsxRuntime.exports.jsx("input",{ref:r,id:"logo-input",name:"logo-input",type:"file",accept:"image/*",onChange:e=>{e=lodash.exports.get(e,"target.files[0]",null);if(null!==r.current&&(r.current.value=""),isImage(e)&&e.size<=3e5){var t=e=>{"string"==typeof e&&i(e),o(!1)};const s=new FileReader;s.readAsDataURL(e),s.onload=function(){t(s.result)},s.onerror=function(e){o(!0),console.log("Error: ",e)}}else o(!0)},className:s.fileInput,"aria-label":"Upload Logo"}),jsxRuntime.exports.jsx("div",Object.assign({className:s.imageWrapper,role:"button"},{children:n?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("img",{"data-test":"admin-center-image-loaded",src:n,alt:"logo",className:s.inputLogo}),jsxRuntime.exports.jsx(Icon,{"data-test":"admin-center-remove-image","aria-label":"Remove Image",fontSize:"large",className:s.removeBtn,onClick:()=>{o(!1),i("")},component:default_1})]}):jsxRuntime.exports.jsx(Icon,{onClick:()=>{null!==r.current&&r.current.click()},"data-test":"upload-icon",fontSize:"large",component:Upload})})),jsxRuntime.exports.jsx(FormHelperText$2,Object.assign({"data-test":"admin-center-logo-upload-error",error:a},{children:a?SHARED_TEXT.loginStepsErrorBtnLogo():""}))]}))},ButtonDesign=({formData:e,errorForm:t,onChangeFormItem:s,handleChangeForm:r})=>{const n=useStyles$1()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:n.configurationContainer},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:n.container},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"admin-center-button-instructions",variant:"body2",color:"textPrimary"},{children:SHARED_TEXT.buttonInstructions()}))})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.previewButtonContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:n.sectionsButton,variant:"h6",color:"textPrimary"},{children:SHARED_TEXT.buttonPreview()})),jsxRuntime.exports.jsxs(Button,Object.assign({style:{color:""+e.btnTextColor,backgroundColor:""+e.btnColor},"data-test":"admin-center-input-previewButton",variant:"outlined",color:"primary",fullWidth:!0,className:n.previewButton},{children:[e.btnLogo?jsxRuntime.exports.jsx("img",{"data-test":"admin-center-preview-logo",alt:"previewLogo",className:n.previewButtonImage,src:e.btnLogo}):null,null!=e&&e.btnText?""+LoginPrefix+(null==e?void 0:e.btnText):LoginPrefix+"<open id connect name>"]}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.container},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:n.designContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-logo",className:n.logoContainer},{children:[jsxRuntime.exports.jsx(ImageInput,{onChangeFormItem:s,logoUrl:null!=e&&e.btnLogo?null==e?void 0:e.btnLogo:""}),jsxRuntime.exports.jsx("div",Object.assign({className:n.buttonPreviewLabel},{children:SHARED_TEXT.buttonLogo()}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.buttonDesignContainer},{children:[jsxRuntime.exports.jsx(TextField,{required:!0,id:"btnText","data-test":"admin-center-input-btnText",autoComplete:"off",label:SHARED_TEXT.buttonText(),variant:"outlined",className:n.textFieldButtonDesign,value:null==e?void 0:e.btnText,onChange:r("btnText"),error:""!==t.btnText}),jsxRuntime.exports.jsx("div",Object.assign({className:n.colorBlocksContainer},{children:["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"].map(e=>jsxRuntime.exports.jsx("div",{className:n.colorBlock,style:{backgroundColor:e},onClick:()=>s("btnColor",""+e)},e))})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.colorValuesContainer},{children:[jsxRuntime.exports.jsx(TextField,{required:!0,id:"btnColor","data-test":"admin-center-input-btnColor",autoComplete:"off",label:SHARED_TEXT.buttonColor(),variant:"outlined",className:n.textFieldHexButtonDesign,value:null==e?void 0:e.btnColor,onChange:r("btnColor"),error:""!==t.btnColor,InputProps:{classes:{input:n.inputBase}},size:"small"}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"btnTextColor","data-test":"admin-center-input-btnTextColor",autoComplete:"off",label:SHARED_TEXT.buttonTextColor(),variant:"outlined",className:n.textFieldHexButtonDesign,value:null==e?void 0:e.btnTextColor,onChange:r("btnTextColor"),error:""!==t.btnTextColor,InputProps:{classes:{input:n.inputBase}},size:"small"})]}))]}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.buttonDesignErrorContainer},{children:[t.btnText?jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-error"},{children:[SHARED_TEXT.buttonText(),": ",t.btnText]})):null,t.btnColor?jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-color-error"},{children:[SHARED_TEXT.buttonColor(),": ",t.btnColor]})):null,t.btnTextColor?jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-color-error"},{children:[SHARED_TEXT.buttonTextColor(),": ",t.btnTextColor]})):null]}))]}))]}))};function roleHelper(e){var t={isSuperAdmin:!1,isAdmin:!1};return e&&(0<=e.indexOf("superadmin")&&(t.isSuperAdmin=!0),0<=e.indexOf("admin"))&&(t.isAdmin=!0),t}const SLICE_NAME="adminCenterIam",namespace$1="uiState",initialState$1={status:"pending",openIdProvider:{name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"#FFFFFF",btnTextColor:"#000000",isGlobal:!1},appId:{id:""},existingOpenIdProvider:{id:""},newProvider:{status:"idle",errorMessage:""}},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState$1,reducers:{init(e,{payload:t}){e.status="pending",e.existingOpenIdProvider.id=t.connectorId,e.appId.id=t.appId},initDone(e){e.status="idle"},initFailed(e){e.status="failure"},updateAppId(e,{payload:t}){e.appId=t},updateOpenIdConnector(e,{payload:t}){e.openIdProvider=t},startCreateNewProvider(e){e.newProvider.status="pending"},createNewProviderSuccess(e){e.newProvider.status="idle",e.openIdProvider=initialState$1.openIdProvider},createNewProviderFailed(e,{payload:t}){e.newProvider={status:t.status,errorMessage:t.errorMessage}}}}),actions$2=slice.actions;var uiState$1=slice.reducer;const namespace=SLICE_NAME$1,actions$1={[namespace$1]:actions$2},rootReducer=combineReducers({[namespace$1]:uiState$1}),selectUIStateStatus=e=>e[namespace].uiState.status,selectAppId=e=>e[namespace].uiState.appId,selectOpenIdProvider=e=>e[namespace].uiState.openIdProvider,selectCreateNewProvider=e=>e[namespace].uiState.newProvider,selectExistingProvider=e=>e[namespace].uiState.existingOpenIdProvider;var uiState=Object.freeze({__proto__:null,selectUIStateStatus:selectUIStateStatus,selectAppId:selectAppId,selectOpenIdProvider:selectOpenIdProvider,selectCreateNewProvider:selectCreateNewProvider,selectExistingProvider:selectExistingProvider});const ProviderConfiguration=({formData:e,errorForm:t,handleChangeForm:s})=>{var r=useStyles$1()["classes"],n=useSelector(userSelector),i=roleHelper(n.roles||null),a=useSelector(selectExistingProvider),n=null==(n=null==n?void 0:n.organization)?void 0:n.organizationId;return jsxRuntime.exports.jsx("div",Object.assign({className:r.configurationContainer},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:r.container},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"admin-center-provider-instructions",variant:"body2",color:"textPrimary"},{children:a.id?SHARED_TEXT.providerUpdateInstructions():SHARED_TEXT.providerInstructions()})),jsxRuntime.exports.jsx(Typography,Object.assign({className:r.sections,variant:"h6",color:"textPrimary"},{children:SHARED_TEXT.providerSectionBasic()})),jsxRuntime.exports.jsx(TextField,{required:!0,id:"name","data-test":"admin-center-input-name",autoComplete:"off",label:SHARED_TEXT.providerInputName(),variant:"outlined",className:r.textField,value:null==e?void 0:e.name,onChange:s("name"),error:""!==t.name,helperText:t.name}),jsxRuntime.exports.jsx("div",{className:r.spacer}),jsxRuntime.exports.jsx(TextField,{id:"description","data-test":"admin-center-input-description",autoComplete:"off",label:SHARED_TEXT.providerInputDescription(),variant:"outlined",multiline:!0,rows:3,className:r.textField,value:null==e?void 0:e.description,onChange:s("description"),error:""!==t.description,helperText:t.description,inputProps:{maxLength:100}}),jsxRuntime.exports.jsx("div",{className:r.spacer}),jsxRuntime.exports.jsx(TextField,{id:"websiteUrl","data-test":"admin-center-input-websiteUrl",autoComplete:"off",label:SHARED_TEXT.providerInputWebsiteUrl(),variant:"outlined",className:r.textField,value:null==e?void 0:e.websiteUrl,onChange:s("websiteUrl"),error:""!==t.websiteUrl,helperText:t.websiteUrl}),jsxRuntime.exports.jsx(Divider,{variant:"fullWidth"}),jsxRuntime.exports.jsx(Typography,Object.assign({className:r.sections,variant:"h6",color:"textPrimary"},{children:SHARED_TEXT.providerSectionClient()})),!a.id&&jsxRuntime.exports.jsx(TextField,{required:!0,id:"clientId","data-test":"admin-center-input-clientId",autoComplete:"off",label:SHARED_TEXT.providerInputClientId(),variant:"outlined",className:r.textField,value:null==e?void 0:e.clientId,onChange:s("clientId"),error:""!==t.clientId,helperText:t.clientId}),jsxRuntime.exports.jsx("div",{className:r.spacer}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"clientSecret","data-test":"admin-center-input-clientSecret",autoComplete:"off",label:SHARED_TEXT.providerInputClientSecret(),variant:"outlined",className:r.textField,value:null==e?void 0:e.clientSecret,onChange:s("clientSecret"),error:""!==t.clientSecret,helperText:t.clientSecret}),jsxRuntime.exports.jsx("div",{className:r.spacer}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"issuerUrl","data-test":"admin-center-input-issuerUrl",autoComplete:"off",label:SHARED_TEXT.providerInputIssuerUrl(),variant:"outlined",className:r.textField,value:null==e?void 0:e.issuerUrl,onChange:s("issuerUrl"),error:""!==t.issuerUrl,helperText:t.issuerUrl}),jsxRuntime.exports.jsx("div",{className:r.spacer}),!a.id&&i.isSuperAdmin&&7682===n&&jsxRuntime.exports.jsxs("div",Object.assign({className:r.isGlobalContainer},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:r.isGlobalTitle,variant:"h6"},{children:SHARED_TEXT.providerGlobalTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({className:r.isGlobalDescription,variant:"body2"},{children:SHARED_TEXT.providerGlobalDescription()}))]}),jsxRuntime.exports.jsx(Switch,{"data-test":"admin-center-isglobal-switch",value:e.isGlobal,onChange:s("isGlobal")})]}))]}))}))},ProviderCreation=({handlePanelClose:e})=>{const t=useStyles$1()["classes"],s=useDispatch(),r=useSelector(selectCreateNewProvider),n=react.exports.useRef(!1);react.exports.useEffect(()=>{n.current&&"idle"===r.status&&e(),n.current=!0},[r,e]);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.configurationContainer},{children:[jsxRuntime.exports.jsx(Divider,{variant:"fullWidth"}),"idle"===r.status?null:"pending"===r.status?jsxRuntime.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2"},{children:SHARED_TEXT.providerCreationCreated()})),jsxRuntime.exports.jsx(CircularProgress,{"data-test":"admin-center-provider-creation-loader"})]})):"failure"===r.status?jsxRuntime.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[jsxRuntime.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:t.errorImage,src:img$c}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:SHARED_TEXT.providerCreationFailed()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:r.errorMessage})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>s(actions$1.uiState.startCreateNewProvider()),className:t.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:SHARED_TEXT.providerCreationRetryButton()}))]})):void 0]}))},LoginConnectorSteps=({handlePanelClose:e})=>{const s=useStyles$1()["classes"],t=useDispatch(),r=useSelector(selectExistingProvider);var n=useSelector(selectOpenIdProvider);const[i,a]=react.exports.useState(0),[o,l]=react.exports.useState(n),[d,c]=react.exports.useState({name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"",btnTextColor:"",isGlobal:!1});react.exports.useEffect(()=>{t(actions$1.uiState.updateOpenIdConnector(o))},[o,t]);const p=[SHARED_TEXT.loginStepsProviderConfiguration(),SHARED_TEXT.loginStepsButtonDesign()];var n=()=>{0===i&&!(()=>{let e=!0;var t={};return o.name||(t.name=SHARED_TEXT.loginStepsErrorRequired(),e=!1),o.clientId||r.id||(t.clientId=SHARED_TEXT.loginStepsErrorRequired(),e=!1),o.clientSecret||(t.clientSecret=SHARED_TEXT.loginStepsErrorRequired(),e=!1),o.issuerUrl||(t.issuerUrl=SHARED_TEXT.loginStepsErrorIssuerUrl(),e=!1),c(Object.assign(Object.assign({},d),t)),e})()||1===i&&!(()=>{let e=!0;var t={},s="^#[A-Fa-f0-9]{6}$";return o.btnText||(t.btnText=SHARED_TEXT.loginStepsErrorBtnText(),e=!1),o.btnColor&&o.btnColor.match(s)||(t.btnColor=SHARED_TEXT.loginStepsErrorBtnColor(),e=!1),o.btnTextColor&&o.btnTextColor.match(s)||(t.btnTextColor=SHARED_TEXT.loginStepsErrorBtnColor(),e=!1),c(Object.assign(Object.assign({},d),t)),e})()||(a(e=>e+1),i!==p.length-1)||t(actions$1.uiState.startCreateNewProvider())},u=()=>{a(e=>e-1)};const x=react.exports.useCallback((t,s)=>{l(e=>Object.assign(Object.assign({},e),{[t]:s})),c(e=>Object.assign(Object.assign({},e),{[t]:""}))},[l,c]),m=t=>e=>{e="isGlobal"===t?e.target.checked:e.target.value;x(t,e)};return jsxRuntime.exports.jsxs("div",Object.assign({className:s.root},{children:[jsxRuntime.exports.jsx(Stepper,Object.assign({className:s.stepper,activeStep:i},{children:p.map((e,t)=>{return jsxRuntime.exports.jsx(Step,Object.assign({className:s.step},{},{children:jsxRuntime.exports.jsx(StepLabel,Object.assign({},{},{children:e}))}),t)})})),jsxRuntime.exports.jsxs("div",{children:[i===p.length&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(ProviderCreation,{handlePanelClose:e}),jsxRuntime.exports.jsxs("div",Object.assign({className:s.buttonGroup},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===i,onClick:u,className:s.button},{children:SHARED_TEXT.loginStepsBackButton()})),jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",onClick:e,className:s.button,"data-test":"admin-center-steps-btn-close"},{children:SHARED_TEXT.loginStepsCloseButton()}))]}))]}),i!==p.length&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx("div",Object.assign({className:s.stepsContent},{children:function(e){switch(e){case 0:return jsxRuntime.exports.jsx(ProviderConfiguration,{errorForm:d,formData:o,handleChangeForm:m});case 1:return jsxRuntime.exports.jsx(ButtonDesign,{errorForm:d,formData:o,handleChangeForm:m,onChangeFormItem:x});default:return}}(i)})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.buttonGroup},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===i,onClick:u,className:s.button},{children:SHARED_TEXT.loginStepsBackButton()})),i===p.length-1?jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",onClick:n,className:s.button,"data-test":"admin-center-steps-btn-create"},{children:r.id?SHARED_TEXT.loginStepsUpdateButton():SHARED_TEXT.loginStepsCreateButton()})):jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",onClick:n,className:s.button,"data-test":"admin-center-steps-btn-next"},{children:SHARED_TEXT.loginStepsNextButton()}))]}))]})]})]}))},ConnectorError=()=>{var e=useStyles$1()["classes"];const t=useDispatch(),s=useSelector(selectExistingProvider),r=useSelector(selectAppId);return jsxRuntime.exports.jsxs("div",Object.assign({className:e.loadingCreate},{children:[jsxRuntime.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:e.errorImage,src:img$c}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:SHARED_TEXT.getProviderFailed()})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:()=>t(actions$1.uiState.init({connectorId:s.id,appId:r.id})),className:e.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:SHARED_TEXT.providerCreationRetryButton()}))]}))},MainLayout=({dataId:e,appId:t,connectorId:s,panelRendered:r})=>{var n=useStyles$1()["classes"];const i=useSelector(selectUIStateStatus),a=useDispatch(),o=useSelector(userSelector),{apiRoot:l,graphQLEndpoint:d,token:c}=useSelector(selectApiConfigs);react.exports.useEffect(()=>{"pending"===i&&l&&d&&c&&o&&a(actions$1.uiState.init({connectorId:s,appId:t}))},[i,l,d,c,t,s,o,a]);var p=react.exports.useCallback(()=>{a(unmountPanel(e))},[a,e]);return!(l&&d&&c&&r&&o&&null!==o&&void 0!==o&&o.roles&&roleHelper(o.roles).isAdmin&&"pending"!==i)?null:jsxRuntime.exports.jsxs("div",Object.assign({id:e,role:"presentation","data-test":"admin-center-widget",className:classNames(n.root)},{children:[jsxRuntime.exports.jsx(Header,{onPanelClose:p}),"failure"===i&&jsxRuntime.exports.jsx(ConnectorError,{}),"idle"===i&&jsxRuntime.exports.jsx(LoginConnectorSteps,{handlePanelClose:p})]}))},OPEN_ID_PANEL="ADMIN_CENTER_OPEN_ID",initialState={status:"idle",providers:[],selectedProviderId:null},iamSlice=createSlice({name:SLICE_NAME,initialState:initialState,reducers:{fetchProvidersStart(e){e.status="pending"},fetchProvidersSuccess(e,t){e.status="success",e.providers=t.payload},fetchProvidersFailure(e){e.status="failure"},setCreatePanelSelected(e){e.selectedProviderId=""},openProviderDetailPanel(e,t){e.selectedProviderId=t.payload},closeProviderDetailPanel(e){e.selectedProviderId=null},deleteProviderStart(e,t){e.status="pending"},deleteProviderSuccess(e){e.status="success"},deleteProviderFailure(e){e.status="failure"}},extraReducers:e=>{e.addCase(unmountPanel,(e,t)=>(t.payload===OPEN_ID_PANEL&&(e.selectedProviderId=null),e))}}),actions=iamSlice.actions;var _path,_path2,_path3,_path4,_path5,_path6,_path7,_path8,_path9,_path10,_path11,_path12,_path13,_path14,_path15,_path16,_path17,_path18,_path19,_path20,_path21,_path22,_path23,_path24,_g,_path25,_path26,_path27,_defs,iamRootReducer=iamSlice.reducer;function __awaiter(e,a,o,l){return new(o=o||Promise)(function(s,t){function r(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?s(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(r,n)}i((l=l.apply(e,a||[])).next())})}function createOpenIdProvider(t,s){return __awaiter(this,void 0,void 0,function*(){var e=yield baseGraphQLApiWithError(Object.assign({query:`
2
+ mutation createNewOpenIdProvider($input: CreateOpenIdProvider!){
3
+ createOpenIdProvider(input: $input){
4
+ name
5
+ id
6
+ }
7
+ }
8
+ `,operationName:"createNewOpenIdProvider",variables:{input:s}},t));return Object.assign({},e.createOpenIdProvider)})}function getOpenIdProvider(t,s){return __awaiter(this,void 0,void 0,function*(){var e=yield baseGraphQLApiWithError(Object.assign({query:`
9
+ query getOpenIdProvider($id: ID!){
10
+ openIdProvider(id: $id){
11
+ name,
12
+ description,
13
+ websiteUrl,
14
+ loginUrl
15
+ loginButtonStyle{
16
+ btnText,
17
+ btnTextColor,
18
+ btnColor,
19
+ btnLogo
20
+ },
21
+ isGlobal
22
+ }
23
+ }
24
+ `,operationName:"getOpenIdProvider",variables:s},t));return Object.assign({},e.openIdProvider)})}function updateOpenIdProvider(t,s){return __awaiter(this,void 0,void 0,function*(){var e=yield baseGraphQLApiWithError(Object.assign({query:`
25
+ mutation updateExistingOpenIdProvider($input: UpdateOpenIdProvider!){
26
+ updateOpenIdProvider(input: $input){
27
+ name
28
+ id
29
+ }
30
+ }
31
+ `,operationName:"updateExistingOpenIdProvider",variables:{input:s}},t));return Object.assign({},e.updateOpenIdProvider)})}function getOpenIdProviderList(s,r){return __awaiter(this,void 0,void 0,function*(){var e="getOpenIdProviderList",t="openIdProviders",e=yield baseGraphQLApiWithError(Object.assign({query:"\n query getOpenIdProviderList($orgId: ID){\n openIdProviders(orgId: $orgId) {\n records {\n id\n name\n description\n websiteUrl\n loginUrl\n isGlobal\n loginButtonStyle {\n btnText\n btnTextColor\n btnLogo\n btnColor\n }\n }\n }\n}\n ",operationName:e,variables:{orgId:r}},s));return Object.assign({},e[t])})}function deleteOpenIdProvider(s,r){return __awaiter(this,void 0,void 0,function*(){var e="deleteOpenIdProvider",t="deleteOpenIdProvider",e=yield baseGraphQLApiWithError(Object.assign({query:"\n mutation deleteOpenIdProvider($id: ID!) {\n deleteOpenIdProvider(id: $id) {\n message\n id\n }\n }\n ",operationName:e,variables:{id:r}},s));return Object.assign({},e[t])})}function*fetchProvidersSaga(){var t=yield select(preferredLanguageSelector),t=safeFormatMessage(AIWareFormatMessage(t)),e=yield select(selectApiConfigs),s=yield select(userSelector),s=(null==(s=null==(s=null==s?void 0:s.organization)?void 0:s.organizationId)?void 0:s.toString())||"";try{var r=yield call(getOpenIdProviderList,e,s);yield put(actions.fetchProvidersSuccess(r.records))}catch(e){devErrorLogger(e),yield put(actions.fetchProvidersFailure()),yield put(showMessage({content:t({id:"os-admin-center-panel.iam.fetch-providers-error",defaultMessage:[{type:0,value:"IAM Providers could not loaded"}]}),severity:MessageSeverity.Error}))}}function*deleteProviderSaga(e){var t=yield select(preferredLanguageSelector),t=safeFormatMessage(AIWareFormatMessage(t)),s=yield select(selectApiConfigs);try{yield call(deleteOpenIdProvider,s,e.payload),yield put(actions.deleteProviderSuccess()),yield put(actions.fetchProvidersStart())}catch(e){yield put(showMessage({content:t({id:"os-admin-center-panel.iam.delete-provider-error",defaultMessage:[{type:0,value:"Operation deleteOpenIdProvider has failed. Please try again later."}]}),severity:MessageSeverity.Error})),yield put(actions.deleteProviderFailure())}}function*watchFetchProviders(){yield takeLatest$1(actions.fetchProvidersStart.type,fetchProvidersSaga)}function*watchDeleteProvider(){yield takeLatest$1(actions.deleteProviderStart.type,deleteProviderSaga)}function*rootSaga$1(){yield all([watchFetchProviders(),watchDeleteProvider()])}function*initAdminCenter(){var e,t,s,r,n,i=yield select(selectUIStateStatus),a=yield select(preferredLanguageSelector),a=AIWareFormatMessage(a);if("pending"===i){i=yield select(selectExistingProvider);if(i.id){var o=yield select(selectApiConfigs);try{var l=yield call(getOpenIdProvider,o,i),d={name:(null==l?void 0:l.name)||"",description:(null==l?void 0:l.description)||"",websiteUrl:(null==l?void 0:l.websiteUrl)||"",clientId:(null==l?void 0:l.clientId)||"",clientSecret:(null==l?void 0:l.clientSecret)||"",issuerUrl:(null==l?void 0:l.issuerUrl)||"",btnText:(null==(t=null==(e=null==l?void 0:l.loginButtonStyle)?void 0:e.btnText)?void 0:t.replace(LoginPrefix,""))||"",btnLogo:(null==(s=null==l?void 0:l.loginButtonStyle)?void 0:s.btnLogo)||"",btnColor:(null==(r=null==l?void 0:l.loginButtonStyle)?void 0:r.btnColor)||"#FFFFFF",btnTextColor:(null==(n=null==l?void 0:l.loginButtonStyle)?void 0:n.btnTextColor)||"#000000",isGlobal:(null==l?void 0:l.isGlobal)||!1};yield put(actions$1.uiState.updateOpenIdConnector(d)),yield put(actions$1.uiState.initDone())}catch(e){yield put(showMessage({content:a({id:"os-admin-center.snackbar.loginConnectorError",defaultMessage:[{type:0,value:"Login Connector could not Found"}]}),severity:MessageSeverity.Error})),yield put(actions$1.uiState.initFailed())}}else yield put(actions$1.uiState.initDone())}}function*newProviderCreateOrUpdate(){var t=uiState["selectOpenIdProvider"],s=yield select(selectExistingProvider),r=yield select(selectApiConfigs),t=yield select(t),n=yield select(preferredLanguageSelector),n=AIWareFormatMessage(n),i=LoginPrefix+t.btnText,t=Object.assign(Object.assign({},t),{btnText:i});try{let e=n({id:"os-admin-center.snackbar.loginConnectorCreated",defaultMessage:[{type:0,value:"Login Connector Created"}]});s.id?(delete(a=Object.assign(Object.assign({},t),s)).clientId,delete a.isGlobal,yield call(updateOpenIdProvider,r,a),e=n({id:"os-admin-center.snackbar.loginConnectorUpdated",defaultMessage:[{type:0,value:"Login Connector Updated"}]})):yield call(createOpenIdProvider,r,t),yield put(showMessage({content:e,severity:MessageSeverity.Success})),yield put(actions$1.uiState.createNewProviderSuccess())}catch(e){i=e.message||"",yield put(actions$1.uiState.createNewProviderFailed({status:"failure",errorMessage:i}));var a=s.id?n({id:"os-admin-center.snackbar.loginConnectorNotUpdated",defaultMessage:[{type:0,value:"Login Connector could not be Updated"}]}):n({id:"os-admin-center.snackbar.loginConnectorNotCreated",defaultMessage:[{type:0,value:"Login Connector could not be created"}]});yield put(showMessage({content:a,severity:MessageSeverity.Error}))}}function*watchAdminCenterInit(){yield takeLatest$1(actions$1.uiState.init.type,initAdminCenter)}function*watchCreateNewProvider(){yield takeLatest$1(actions$1.uiState.startCreateNewProvider.type,newProviderCreateOrUpdate)}function*rootSaga(){yield all([watchAdminCenterInit(),watchCreateNewProvider()])}function getAdminCenterOpenIdModule(){return{id:SLICE_NAME$1,reducerMap:{[SLICE_NAME$1]:rootReducer},sagas:[rootSaga],initialActions:[]}}function getAdminCenterIamModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:iamRootReducer},sagas:[rootSaga$1],initialActions:[]}}const AdminCenterOpenId=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAdminCenterOpenIdModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}))})}),selectLoadingStatus=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.status},selectProviders=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.providers},selectProviderId=(e,t)=>t,selectProviderByIdMemoize=createSelector([selectProviders,selectProviderId],(e,t)=>e.find(({id:e})=>e===t)),selectProviderById=t=>e=>selectProviderByIdMemoize(e,t),selectSelectedProviderId=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e.selectedProviderId},ContextMenu=({anchorEl:e,open:t,onClose:s,onEditClick:r,onDeleteClick:n})=>{const[i,a]=react.exports.useState(!1);var o=contextMenuStyles({width:24})["classes"],l=()=>{a(!1),s()};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Popover,Object.assign({anchorEl:e,open:t,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"}},{children:jsxRuntime.exports.jsxs(MenuList,Object.assign({role:"menu",className:o.menuList},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-test":"admin-center.iam-tab.edit-provider-btn",onClick:r,className:o.menuItem},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.provider-edit-button",defaultMessage:"Edit",description:"IAM Provider row context menu Edit button"})})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-test":"admin-center.iam-tab.delete-provider-btn",onClick:()=>{a(!0)},className:o.menuItem},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.provider-delete-button",defaultMessage:"Delete",description:"IAM Provider row context menu Delete button"})}))]}))})),jsxRuntime.exports.jsxs(Dialog,Object.assign({open:i,onClose:l,maxWidth:"xs","aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description"},{children:[jsxRuntime.exports.jsx(DialogTitle,Object.assign({id:"alert-dialog-title"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-engine-center-browse.engine-list-row.delete-confirmation-title",defaultMessage:"Confirm Delete",description:"Title of the delete engine confirmation modal"})}))})),jsxRuntime.exports.jsx(DialogContent,{children:jsxRuntime.exports.jsx(DialogContentText,Object.assign({id:"alert-dialog-description"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.delete-confirmation-message",defaultMessage:"Are you sure you want to delete this provider? This action can not be undone.",description:"This message is show when prompting the user to confirm the delete of an IAM Provider"})}))}),jsxRuntime.exports.jsxs(DialogActions,{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"admin-center.iam-tab.delete-dialog-cancel-btn",color:"secondary",onClick:l},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.cancel-delete-button",defaultMessage:"Cancel",description:"Cancel button on the IAM Provider delete confirmation dialog"})})),jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"admin-center.iam-tab.delete-dialog-confirm-btn",variant:"contained",onClick:()=>{a(!1),n()},autoFocus:!0},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.confirm-delete-button",defaultMessage:"Delete",description:"Confirm button on the IAM Provider delete confirmation dialog"})}))]})]}))]})},useStyles=makeStyles()(()=>({row:{padding:"16px"},cell:{fontWeight:400},button:{fontSize:12},icon:{width:12},logo:{width:"14px",height:"14px",marginRight:"16px",objectFit:"contain",verticalAlign:"middle",color:"#0C53B0"},global:{marginLeft:"16px",verticalAlign:"middle"},truncate:{paddingRight:"12px","& p":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"calc(100% - 36px)"}}})),GlobalIndicator=()=>{var e=useStyles()["classes"];return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.global-provider-tooltip",defaultMessage:"Global",description:"Tooltip for the global icon of an IAM Provider"})},{children:jsxRuntime.exports.jsx(Public,{fontSize:"small",className:e.global})}))},IamRow=({id:e})=>{var t;const s=useSelector(selectProviderById(e)),[r,n]=react.exports.useState(null),[i,a]=react.exports.useState(!1);e=useStyles().classes;const o=useDispatch();useInterval(()=>{a(!1)},i?1200:null);const l=()=>{n(null)};return jsxRuntime.exports.jsxs(Box,Object.assign({"data-test":"admin-center.iam-tab.table-row","data-providerid":s.id},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",item:!0,container:!0,xs:12,className:e.row},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,item:!0,xs:8,className:e.truncate},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({title:s.name},{children:jsxRuntime.exports.jsxs(Typography,Object.assign({"data-test":"admin-center.iam-tab.provider-name-cell",variant:"body2",className:e.cell},{children:[null!=(t=s.loginButtonStyle)&&t.btnLogo?jsxRuntime.exports.jsx("img",{alt:"Provider logo",src:s.loginButtonStyle.btnLogo,className:e.logo}):jsxRuntime.exports.jsx(Iam,{className:e.logo}),s.name]}))})),s.isGlobal?jsxRuntime.exports.jsx(GlobalIndicator,{}):null]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,container:!0,flexGrow:0,flexShrink:2,xs:3},{children:jsxRuntime.exports.jsx(Button,Object.assign({variant:"outlined",size:"small",startIcon:i?jsxRuntime.exports.jsx(CheckCircle,{className:e.icon}):jsxRuntime.exports.jsx(ContentCopy,{className:e.icon}),className:e.button,onClick:e=>{i||(a(!0),e.preventDefault(),e.stopPropagation(),s.loginUrl&&navigator.clipboard.writeText(s.loginUrl))}},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam-table.copy-callback-uri-button",defaultMessage:"Copy Callback URI",description:"Title for the copy callback uri button on the Admin Center IAM table"})}))})),jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,container:!0,xs:1,textAlign:"end"},{children:[jsxRuntime.exports.jsx(IconButton,Object.assign({"data-test":"admin-center.iam-tab.context-menu-btn",onClick:e=>{n(e.currentTarget)}},{children:jsxRuntime.exports.jsx(MoreVert,{fontSize:"small"})})),jsxRuntime.exports.jsx(ContextMenu,{anchorEl:r,open:!!r,onClose:l,onEditClick:()=>{l(),s.id&&o(actions.openProviderDetailPanel(s.id))},onDeleteClick:()=>{l(),s.id&&o(actions.deleteProviderStart(s.id))}})]}))]})),jsxRuntime.exports.jsx(Divider,{})]}))},sortComparator=r=>(e,t)=>{var s="desc"===r?1:-1;return e.name>t.name?s:-s},IamTable=()=>{const e=useSelector(selectProviders),[t,s]=react.exports.useState([]),[r,n]=react.exports.useState("desc");navSectionStyles(),react.exports.useEffect(()=>{e&&s([...e].sort(sortComparator(r)))},[e,r]);return t.length?jsxRuntime.exports.jsxs(Box,Object.assign({"data-test":"admin-center.iam-tab.table",sx:{minHeight:200}},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",item:!0,container:!0,xs:12,sx:{px:"16px"}},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({xs:8,item:!0,container:!0,alignItems:"center",onClick:()=>{n(e=>"desc"===e?"asc":"desc")},sx:{cursor:"pointer"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam-table-header.name",defaultMessage:"Name",description:"IAM table Name column header"})})),"desc"===r?jsxRuntime.exports.jsx(ArrowDown,{}):jsxRuntime.exports.jsx(ArrowUp,{})]})),jsxRuntime.exports.jsx(Grid,{xs:4})]})),jsxRuntime.exports.jsx(Divider,{}),t.map(e=>jsxRuntime.exports.jsx(IamRow,{id:null==e?void 0:e.id},null==e?void 0:e.id))]})):null},IamHeader=({onAddNew:e})=>{var t=navSectionStyles()["classes"];return jsxRuntime.exports.jsxs("header",Object.assign({className:t.header},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.toolbar},{children:jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.header",defaultMessage:"Identity and Access Management",description:"The title of the IAM tab in the admin center"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.description",defaultMessage:"Create and manage authentication and authorization options for users of this Organization.",description:"The subtitle of the IAM tab in the admin center"})}))]})})),jsxRuntime.exports.jsx("div",Object.assign({className:t.toolbar},{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"admin-center.iam-tab.add-new-btn",color:"primary",variant:"contained",onClick:e},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.header-add-new-button",defaultMessage:"Add New",description:"The button in the IAM header for adding a new provider"})}))}))]}))};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s,r=arguments[t];for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(this,arguments)}var SvgNullState=function(e){return react.exports.createElement("svg",_extends({width:120,height:102,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),_path=_path||react.exports.createElement("path",{d:"M60.068 102c28.041 0 50.773-22.834 50.773-51S88.109 0 60.068 0C32.028 0 9.296 22.834 9.296 51s22.731 51 50.772 51ZM11.1 21.126a2.568 2.568 0 0 0 1.64-3.233 2.552 2.552 0 0 0-3.218-1.647 2.568 2.568 0 0 0-1.64 3.233 2.551 2.551 0 0 0 3.219 1.647ZM16.676 12.755a1.746 1.746 0 0 0 1.115-2.198 1.735 1.735 0 0 0-2.188-1.12 1.746 1.746 0 0 0-1.115 2.199 1.735 1.735 0 0 0 2.188 1.12ZM117.134 38.216a3.91 3.91 0 0 0 .247-5.509 3.87 3.87 0 0 0-5.484-.248 3.912 3.912 0 0 0-.247 5.51 3.87 3.87 0 0 0 5.484.247ZM117.497 20.81c.666-.61.713-1.65.104-2.319a1.63 1.63 0 0 0-2.31-.104 1.647 1.647 0 0 0-.104 2.32 1.63 1.63 0 0 0 2.31.104Z",fill:"#EAEEF9"}),_path2=_path2||react.exports.createElement("path",{d:"M6.538 71.523a2.048 2.048 0 0 0 2.043-2.052 2.048 2.048 0 0 0-2.043-2.052 2.048 2.048 0 0 0-2.043 2.052c0 1.134.915 2.052 2.043 2.052Z",fill:"url(#nullState_svg__a)"}),_path3=_path3||react.exports.createElement("path",{d:"M99.4 5.542c.902 0 1.634-.736 1.634-1.642 0-.907-.732-1.642-1.635-1.642s-1.634.735-1.634 1.642c0 .906.731 1.642 1.634 1.642Z",fill:"url(#nullState_svg__b)"}),_path4=_path4||react.exports.createElement("path",{d:"M1.328 40.636c.734 0 1.328-.598 1.328-1.334 0-.737-.594-1.334-1.328-1.334-.733 0-1.328.597-1.328 1.334 0 .736.595 1.334 1.328 1.334Z",fill:"url(#nullState_svg__c)"}),_path5=_path5||react.exports.createElement("path",{d:"M104.711 79.732H15.426V22.986c0-1.847 1.43-3.284 3.269-3.284h82.747c1.839 0 3.269 1.437 3.269 3.284v56.746Z",fill:"#1C3754"}),_path6=_path6||react.exports.createElement("path",{d:"M82.44 82.709H18.185V22.986h83.361V82.71h-9.808",fill:"#fff"}),_path7=_path7||react.exports.createElement("path",{d:"M109.819 79.732v2.566c0 2.36-2.043 2.976-4.495 2.976h-90.51c-2.453 0-4.496-.513-4.496-2.976v-2.566h40.966c.306.924 1.328 1.642 2.451 1.642h12.668c1.124 0 2.043-.718 2.452-1.642h40.964Z",fill:"#1C3754"}),_path8=_path8||react.exports.createElement("path",{d:"M109.819 79.732c0 2.36-2.043 2.874-4.495 2.874h-90.51c-2.453 0-4.496-.513-4.496-2.874h40.966c.306.924 1.328 1.642 2.451 1.642h12.668c1.124 0 2.043-.718 2.452-1.642h40.964Z",fill:"#2D5887"}),_path9=_path9||react.exports.createElement("path",{d:"M21.35 26.988c.565 0 1.022-.46 1.022-1.026 0-.567-.457-1.026-1.021-1.026-.564 0-1.022.459-1.022 1.026 0 .566.457 1.026 1.022 1.026Z",fill:"url(#nullState_svg__d)"}),_path10=_path10||react.exports.createElement("path",{opacity:.6,d:"M24.11 26.988c.564 0 1.021-.46 1.021-1.026 0-.567-.457-1.026-1.021-1.026-.565 0-1.022.459-1.022 1.026 0 .566.457 1.026 1.021 1.026Z",fill:"#CED7E2"}),_path11=_path11||react.exports.createElement("path",{d:"M26.766 26.988c.564 0 1.021-.46 1.021-1.026 0-.567-.457-1.026-1.021-1.026-.564 0-1.022.459-1.022 1.026 0 .566.457 1.026 1.022 1.026Z",fill:"url(#nullState_svg__e)"}),_path12=_path12||react.exports.createElement("path",{d:"M95.007 42.79H68.242c-.511 0-.92-.41-.92-.923v-9.543c0-.513.409-.924.92-.924h26.765c.51 0 .92.41.92.924v9.543c.102.513-.307.924-.92.924ZM96.029 56.541a.918.918 0 0 1-.92.924H68.242c-.511 0-.92-.411-.92-.924v-9.543c0-.513.409-.924.92-.924h26.765c.51 0 .92.41.92.924v9.543h.102Z",fill:"#E6ECF5"}),_path13=_path13||react.exports.createElement("path",{d:"M90.614 35.607h-17.98c-.307 0-.511-.205-.511-.513 0-.308.204-.513.51-.513h17.98c.307 0 .511.205.511.513-.102.308-.306.513-.51.513Z",fill:"url(#nullState_svg__f)"}),_path14=_path14||react.exports.createElement("path",{d:"M84.28 39.404H72.634c-.307 0-.511-.205-.511-.513 0-.308.204-.513.51-.513h11.749c.306 0 .51.205.51.513-.102.205-.306.513-.612.513Z",fill:"url(#nullState_svg__g)"}),_path15=_path15||react.exports.createElement("path",{d:"M90.614 50.282h-17.98c-.307 0-.511-.205-.511-.513 0-.308.204-.513.51-.513h17.98c.307 0 .511.205.511.513-.102.308-.306.513-.51.513Z",fill:"url(#nullState_svg__h)"}),_path16=_path16||react.exports.createElement("path",{d:"M84.28 54.079H72.634c-.307 0-.511-.205-.511-.513 0-.308.204-.513.51-.513h11.749c.306 0 .51.205.51.513-.102.308-.306.513-.612.513Z",fill:"url(#nullState_svg__i)"}),_path17=_path17||react.exports.createElement("path",{d:"M96.029 71.318a.918.918 0 0 1-.92.924H68.242c-.511 0-.92-.41-.92-.924v-9.543c0-.513.409-.923.92-.923h26.765c.51 0 .92.41.92.923v9.543h.102Z",fill:"#E6ECF5"}),_path18=_path18||react.exports.createElement("path",{d:"M90.614 65.16h-17.98c-.307 0-.511-.204-.511-.512 0-.308.204-.513.51-.513h17.98c.307 0 .511.205.511.513-.102.308-.306.513-.51.513Z",fill:"url(#nullState_svg__j)"}),_path19=_path19||react.exports.createElement("path",{d:"M84.28 68.958H72.634c-.307 0-.511-.206-.511-.513 0-.308.204-.513.51-.513h11.749c.306 0 .51.205.51.513-.102.205-.306.513-.612.513Z",fill:"url(#nullState_svg__k)"}),_path20=_path20||react.exports.createElement("path",{d:"M59.864 59.722H23.803c-.92 0-1.635-.718-1.635-1.642V33.145c0-.924.715-1.642 1.634-1.642h36.164c.92 0 1.635.718 1.635 1.642V58.08c-.102.924-.817 1.642-1.737 1.642Z",fill:"#E6ECF5"}),_path21=_path21||react.exports.createElement("path",{d:"M42.6 53.565H29.523l6.538-7.388 6.538 7.388Z",fill:"#CED7E2"}),_path22=_path22||react.exports.createElement("path",{d:"M53.326 53.566H34.53l9.399-10.672 9.398 10.672Z",fill:"#fff"}),_path23=_path23||react.exports.createElement("path",{d:"M34.427 43.51a2.457 2.457 0 0 0 2.452-2.463 2.457 2.457 0 0 0-2.452-2.463 2.457 2.457 0 0 0-2.451 2.463 2.457 2.457 0 0 0 2.451 2.463Z",fill:"#CED7E2"}),_path24=_path24||react.exports.createElement("path",{d:"M60.886 69.573H22.883a.7.7 0 0 1-.715-.718.7.7 0 0 1 .715-.718h38.003a.7.7 0 0 1 .715.718c-.102.41-.409.718-.715.718ZM60.886 65.264H22.883a.7.7 0 0 1-.715-.718.7.7 0 0 1 .715-.719h38.003a.7.7 0 0 1 .715.719c-.102.41-.409.718-.715.718ZM35.653 73.78h-12.77a.7.7 0 0 1-.715-.718.7.7 0 0 1 .715-.718h12.77a.7.7 0 0 1 .715.718c-.102.41-.409.718-.715.718Z",fill:"#E6ECF5"}),_g=_g||react.exports.createElement("g",{filter:"url(#nullState_svg__l)"},react.exports.createElement("path",{d:"M80.091 15.7c-1.021 0-3.473-.923-4.29-1.231-4.291-1.95-11.34-7.697-15.222-7.697-3.882 0-10.93 5.644-15.221 7.697-.715.308-3.27 1.231-4.29 1.231-1.636.103-2.861 1.54-2.657 3.079.409 3.796 1.43 10.569 4.086 19.291 3.474 10.775 13.076 17.24 16.754 19.395a2.85 2.85 0 0 0 2.86 0c3.678-2.155 13.281-8.62 16.55-19.395 2.656-8.722 3.678-15.495 4.086-19.291.205-1.54-1.021-2.976-2.656-3.079Z",fill:"url(#nullState_svg__m)"})),_path25=_path25||react.exports.createElement("path",{d:"M78.763 19.497a106.823 106.823 0 0 1-3.065 14.879c-.204.82-.51 1.745-.817 2.565-2.758 8.928-10.522 14.572-14.302 16.83-.409-.206-.817-.514-1.226-.822-3.984-2.668-10.522-8.004-12.974-16.008a116.697 116.697 0 0 1-3.882-17.444c1.839-.41 4.086-1.232 4.495-1.437 1.737-.82 3.678-1.95 5.72-3.284 2.248-1.436 6.437-4.002 7.867-4.002 1.43 0 5.619 2.668 7.866 4.002 2.043 1.232 3.984 2.463 5.72 3.284.512.103 2.76 1.026 4.598 1.437Z",fill:"url(#nullState_svg__n)"}),_path26=_path26||react.exports.createElement("path",{d:"M75.699 34.274c-.205.82-.511 1.744-.817 2.565-2.759 8.928-10.523 14.572-14.303 16.829-.408-.205-.817-.513-1.226-.82l-7.56-21.345 3.576-.616 4.495 3.284 9.705-6.978 3.065-1.026c0 .103 1.328 3.694 3.065 8.107Z",fill:"url(#nullState_svg__o)"}),_path27=_path27||react.exports.createElement("path",{d:"m58.331 38.584-6.129-6.157c-.409-.41-.409-1.232 0-1.642l2.452-2.463c.408-.41 1.226-.41 1.634 0l2.86 2.873c.41.41 1.022.41 1.329 0l7.661-7.696c.41-.41 1.226-.41 1.635 0l2.452 2.463c.409.41.409 1.231 0 1.642l-10.829 10.98c-.92.82-2.247.82-3.065 0Z",fill:"url(#nullState_svg__p)"}),_defs=_defs||react.exports.createElement("defs",null,react.exports.createElement("linearGradient",{id:"nullState_svg__a",x1:5.904,y1:67.844,x2:6.751,y2:70.98,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#FC5A8A"}),react.exports.createElement("stop",{offset:1,stopColor:"#D43060"})),react.exports.createElement("linearGradient",{id:"nullState_svg__b",x1:98.892,y1:2.598,x2:99.569,y2:5.106,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#FC5A8A"}),react.exports.createElement("stop",{offset:1,stopColor:"#D43060"})),react.exports.createElement("linearGradient",{id:"nullState_svg__c",x1:.916,y1:38.244,x2:1.466,y2:40.282,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#FC5A8A"}),react.exports.createElement("stop",{offset:1,stopColor:"#D43060"})),react.exports.createElement("linearGradient",{id:"nullState_svg__d",x1:20.373,y1:25.985,x2:22.323,y2:25.985,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#FF66A9"}),react.exports.createElement("stop",{offset:1,stopColor:"#F53689"})),react.exports.createElement("linearGradient",{id:"nullState_svg__e",x1:25.832,y1:25.985,x2:27.782,y2:25.985,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#83A6FF"}),react.exports.createElement("stop",{offset:1,stopColor:"#5A78FF"})),react.exports.createElement("linearGradient",{id:"nullState_svg__f",x1:72.102,y1:35.122,x2:91.062,y2:35.122,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#CED7E2"}),react.exports.createElement("stop",{offset:1,stopColor:"#E6ECF5"})),react.exports.createElement("linearGradient",{id:"nullState_svg__g",x1:72.102,y1:38.867,x2:84.823,y2:38.867,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#CED7E2"}),react.exports.createElement("stop",{offset:1,stopColor:"#E6ECF5"})),react.exports.createElement("linearGradient",{id:"nullState_svg__h",x1:72.102,y1:49.813,x2:91.062,y2:49.813,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#CED7E2"}),react.exports.createElement("stop",{offset:1,stopColor:"#E6ECF5"})),react.exports.createElement("linearGradient",{id:"nullState_svg__i",x1:72.102,y1:53.559,x2:84.823,y2:53.559,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#CED7E2"}),react.exports.createElement("stop",{offset:1,stopColor:"#E6ECF5"})),react.exports.createElement("linearGradient",{id:"nullState_svg__j",x1:72.102,y1:64.659,x2:91.062,y2:64.659,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#CED7E2"}),react.exports.createElement("stop",{offset:1,stopColor:"#E6ECF5"})),react.exports.createElement("linearGradient",{id:"nullState_svg__k",x1:72.102,y1:68.405,x2:84.823,y2:68.405,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#CED7E2"}),react.exports.createElement("stop",{offset:1,stopColor:"#E6ECF5"})),react.exports.createElement("linearGradient",{id:"nullState_svg__m",x1:58.031,y1:22.464,x2:72.472,y2:42.713,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#51B6F0"}),react.exports.createElement("stop",{offset:1,stopColor:"#3B90E7"})),react.exports.createElement("linearGradient",{id:"nullState_svg__n",x1:73.697,y1:43.767,x2:51.916,y2:16.082,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#52B8F0"}),react.exports.createElement("stop",{offset:1,stopColor:"#3A8FE6"})),react.exports.createElement("linearGradient",{id:"nullState_svg__o",x1:59.758,y1:35.34,x2:68.739,y2:43.081,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{stopColor:"#2271AC"}),react.exports.createElement("stop",{offset:1,stopColor:"#657EFF",stopOpacity:0})),react.exports.createElement("linearGradient",{id:"nullState_svg__p",x1:66.081,y1:33.216,x2:59.924,y2:26.562,gradientUnits:"userSpaceOnUse"},react.exports.createElement("stop",{offset:.011,stopColor:"#C2D1FF"}),react.exports.createElement("stop",{offset:1,stopColor:"#fff"})),react.exports.createElement("filter",{id:"nullState_svg__l",x:30.389,y:3.772,width:60.381,height:67.077,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},react.exports.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),react.exports.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),react.exports.createElement("feOffset",{dy:5}),react.exports.createElement("feGaussianBlur",{stdDeviation:4}),react.exports.createElement("feColorMatrix",{values:"0 0 0 0 0.1125 0 0 0 0 0.295916 0 0 0 0 1 0 0 0 0.22 0"}),react.exports.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_57315_57088"}),react.exports.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_57315_57088",result:"shape"}))))};const NullState=()=>{var e=tableStyles()["classes"];return jsxRuntime.exports.jsxs(Box,Object.assign({className:e.nullState},{children:[jsxRuntime.exports.jsx(SvgNullState,{}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",className:e.nullStateTitle},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.null-state-title",defaultMessage:"No Access Management Integrations",description:"Title of the null state on the admin center IAM tab"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"subtitle1"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.null-state-description",defaultMessage:"Add access management options for users of your Organization using OIDC.",description:"Explanation of the null state on the admin center IAM tab"})})),jsxRuntime.exports.jsx(Button,Object.assign({size:"small",color:"primary",variant:"outlined",onClick:()=>{window.open("https://docs.veritone.com/#/tutorials/pages/")},className:e.nullStateButton},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-panel.iam.null-state--button",defaultMessage:"Learn More",description:"The information button in the IAM tab null state"})}))]}))},microFrontend=e=>({name:OPEN_ID_PANEL,config:{appId:"",connectorId:e}}),panelConfig=e=>({type:"APP_BAR_PANEL_TEMPLATE",marginTop:e?0:55,marginStart:e?0:80,size:"medium",zIndex:e?1011:1002,parentPanelId:"ADMIN_CENTER",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}),Content=({isPanelFullScreen:e})=>{var t=useSelector(selectLoadingStatus),s=useSelector(selectProviders);const r=useSelector(selectSelectedProviderId),n=useDispatch();var i=navSectionStyles()["classes"],a=tableStyles()["classes"];react.exports.useEffect(()=>{n(actions.fetchProvidersStart())},[n]),react.exports.useEffect(()=>{r?n(mountPanel({panelId:OPEN_ID_PANEL,microFrontend:microFrontend(r),panelConfig:panelConfig(e)})):null===r&&n(actions.fetchProvidersStart())},[r]);return jsxRuntime.exports.jsxs("section",Object.assign({className:i.root},{children:[jsxRuntime.exports.jsx(IamHeader,{onAddNew:()=>{n(mountPanel({panelId:OPEN_ID_PANEL,microFrontend:microFrontend(""),panelConfig:panelConfig(e)})),n(actions.setCreatePanelSelected())}}),jsxRuntime.exports.jsxs(Box,Object.assign({className:i.tableWrapper,maxWidth:e?"100%":"840px"},{children:["pending"===t&&jsxRuntime.exports.jsx(Box,Object.assign({className:a.loadingState},{children:jsxRuntime.exports.jsx(CircularProgress,{})})),"success"===t&&!(null!=s&&s.length)&&jsxRuntime.exports.jsx(NullState,{}),"success"===t&&(null==s?void 0:s.length)&&jsxRuntime.exports.jsx(IamTable,{})]}))]}))},IamTab=({isPanelFullScreen:e})=>jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAdminCenterIamModule()]},{children:jsxRuntime.exports.jsx(Content,{isPanelFullScreen:e})}));export{AdminCenterOpenId,IamTab};
Binary file
package/js-core.esm42.js CHANGED
@@ -1 +1 @@
1
- import{p as createSvgIcon,q as interopRequireDefault,j as jsxRuntime,bO as createSlice,dI as combineReducers,m as makeStyles,O as AIWareThemeProvider,A as AIWareIntlProvider,s as store,H as useSelector,G as useDispatch,T as Typography,ar as Button,X as Tooltip,V as IconButton,gl as Settings,dK as FullscreenExit,dL as Fullscreen,dl as Hide,r as react,W as classNames,bb as CircularProgress,bY as Portal,as as all,F as FormattedMessage,co as Fade,fq as Slide,a6 as Divider,aw as takeEvery$1,aE as select,bR as preferredLanguageSelector,az as put,dm as showMessage,dn as MessageSeverity,cD as AIWareFormatMessage}from"./js-core.esm.js";var EntityType,LoadingStatus,MimeType,Save={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Save,"__esModule",{value:!0}),Save.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save"),default_1=Save.default=_default;!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const SLICE_NAME="dataLabeler",initialAnnotationSettings=(!function(e){e.Annotation="annotation",e.Publish="publish",e.DatasetAssets="datasetAssets"}(EntityType=EntityType||{}),!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),LoadingStatus.Idle,!function(e){e.VideoMp4="video/mp4",e.AudioMp4="audio/mp4"}(MimeType=MimeType||{}),{isOpen:!1}),initialPublishAnnotationSettings={isOpen:!1},namespace$2="uiState",initialState$1={status:LoadingStatus.Pending,isFullScreen:!1,isFluffy:!1,isInfoOpen:!1,annotationToolSettings:initialAnnotationSettings,publishAnnotationSettings:initialPublishAnnotationSettings},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},toggleFullScreen(e){e.isFullScreen=!e.isFullScreen},togglePublishAnnotationSettings(e,{payload:t}){t?(e.publishAnnotationSettings.isOpen=!0,e.publishAnnotationSettings.entityType=t):(e.publishAnnotationSettings.isOpen=!1,delete e.publishAnnotationSettings.entityType)},toggleAnnotationSettings(e,{payload:t}){t?(e.annotationToolSettings.isOpen=!0,e.annotationToolSettings.entityType=t):(e.annotationToolSettings.isOpen=!1,delete e.annotationToolSettings.entityType)}}}),actions$2=slice$1.actions;var uiState=slice$1.reducer;const namespace$1="panelPublishAnnotations",initialState={ids:[]},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{submitPublishAnnotations(e,{payload:t}){e.ids=t.ids}}}),actions$1=slice.actions;var panelPublishAnnotations=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:uiState,[namespace$1]:panelPublishAnnotations}),selectIsFullScreen=e=>e[namespace].uiState.isFullScreen,selectPublishAnnotationSettings=e=>e[namespace].uiState.publishAnnotationSettings,selectAnnotationSettings=e=>e[namespace].uiState.annotationToolSettings,visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var visuallyHidden$1=visuallyHidden;const DATA_LABELER_TEXT={publishAnnotation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.y9CGIM",defaultMessage:"Publish Annotation",description:"Publish Annotation"}),publishAnnotationSubtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.r0ufb8",defaultMessage:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics.",description:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics."}),annotationSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.XONoJU",defaultMessage:"Annotation Settings",description:"Annotation Settings"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),exitFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.awe7uYc",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}),enterFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.stiZt+b",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"}),toggleFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.TUGpHT",defaultMessage:"Toggle FullScreen",description:"Toggle FullScreen"}),submit:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.lOLf4e",defaultMessage:"Submit",description:"Submit"}),show:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.HTVdQU",defaultMessage:"Show",description:"Show"}),hide:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.sX3mXR",defaultMessage:"Hide",description:"Hide"})},useStyles$2=makeStyles()((e,t,s)=>({root:{flexGrow:1},gridText:{minHeight:0,minWidth:0},divider:{opacity:.9},name:{fontWeight:400,maxWidth:"100%"},type:{paddingLeft:e.spacing(1),maxWidth:e.spacing(12)},padding:{paddingRight:e.spacing(1)},thumbnailContainer:{paddingLeft:e.spacing(3),maxWidth:"60px"},tableHeaderTitle:{paddingLeft:e.spacing(3),maxWidth:"120px"},thumbnail:{width:32,height:32,borderRadius:4,border:".5px solid "+e.palette.divider,objectFit:"cover",verticalAlign:"middle"},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:64,padding:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},folderMoreIcon:{},row:{cursor:"pointer","&:hover":{borderRadius:4,backgroundColor:"#EEF3F9",["& "+s.folderMoreIcon]:{visibility:"visible",width:"100%",display:"flex",justifyContent:"flex-end"},"& #engineIconContainer":{background:"#fff"}},["& "+s.folderMoreIcon]:{visibility:"hidden"}},publishRoot:{height:"calc(100vh - 260px)",width:"100%"},dRoot:{height:"calc(100vh - 120px)",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}})),Header=({isFullScreen:e,onPanelClose:t,onFullScreenToggle:s,disableSetting:a})=>{var n=useStyles$2()["classes"];const i=useDispatch();return jsxRuntime.exports.jsxs("header",Object.assign({className:n.header,"data-test":"data-labeler-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1","data-test":"data-labeler-title",style:{marginLeft:30}},{children:"Data Labeler"})),jsxRuntime.exports.jsx("div",Object.assign({style:{alignItems:"center",border:"1px solid #E1E6ED",borderRadius:4,display:"none",flexGrow:1,height:44,padding:20}},{children:"[PLACEHOLDER FOR SEARCH COMPONENT]"})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.headerActionContainer},{children:[jsxRuntime.exports.jsx(Button,Object.assign({variant:"contained",color:"primary",size:"large","data-test":"data-labeler-open-publish-annotations",style:{marginRight:10},startIcon:jsxRuntime.exports.jsx(default_1,{style:{color:"#FFF"}}),onClick:()=>i(actions.uiState.togglePublishAnnotationSettings(EntityType.Publish))},{children:DATA_LABELER_TEXT.publishAnnotation()})),jsxRuntime.exports.jsx("div",{className:n.verticalDivider}),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-toolbar-open-annotation-settings"},{children:DATA_LABELER_TEXT.annotationSettings()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.annotationSettings()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({disabled:a,onClick:()=>i(actions.uiState.toggleAnnotationSettings(EntityType.Annotation)),"data-test":"data-labeler-open-annotation-settings","aria-labelledby":"data-labeler-toolbar-open-annotation-settings",size:"large"},{children:jsxRuntime.exports.jsx(Settings,{})}))})),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-toggle-fullscreen"},{children:DATA_LABELER_TEXT.toggleFullScreen()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:e?DATA_LABELER_TEXT.exitFullScreen():DATA_LABELER_TEXT.enterFullScreen()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:s,"aria-labelledby":"data-labeler-toggle-fullscreen","data-test":"data-labeler-fullscreen-toggle",size:"large"},{children:e?jsxRuntime.exports.jsx(FullscreenExit,{}):jsxRuntime.exports.jsx(Fullscreen,{})}))})),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-close-panel"},{children:DATA_LABELER_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"data-labeler-close-panel","data-test":"data-labeler-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]}))},LabelerIframe=({path:e,fullScreen:t=!1,onClosePanel:s,onSavePublishAnnotation:a})=>{var n=useStyles$2()["classes"];const[i,l]=react.exports.useState(!0),o=react.exports.useRef(null);react.exports.useEffect(()=>{const e=t=>{t=t.data;if(t){let e;try{e=JSON.parse(t)}finally{e&&"closePanel"===e.action&&s&&s(),e&&"savePublishAnnotation"===e.action&&a&&a()}}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),react.exports.useEffect(()=>{o&&o.current&&o.current.focus()},[o]);t=`calc(100vh - ${t?"64":"120"}px)`;return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(n.dRoot,"hide-in-percy"),style:{height:t}},{children:[i&&jsxRuntime.exports.jsx("div",Object.assign({className:n.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress,{})})),jsxRuntime.exports.jsx("iframe",{"data-test":"data-labeler-iframe",title:"Data Labeler Iframe",ref:o,style:{width:"100%",height:"100%",overflow:"auto"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{l(!1)},1e3)}})]}))},useStyles$1=makeStyles()(e=>({panelRoot:{position:"absolute",right:0,top:0,display:"flex","&$fullScreen":{height:"100vh"}},panelContainer:{display:"flex",flexDirection:"column",width:"100%",padding:e.spacing(2)},panelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:e.spacing(1),marginBottom:e.spacing(1),"&.with-secondary-title":{alignItems:"flex-start"}},panelBody:{display:"flex",flexGrow:1,padding:e.spacing(1)},divider:{marginBottom:e.spacing(2)},panelOverlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"},EmptyAssetContainer:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",paddingTop:e.spacing(18),width:"100%"},emptyImage:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}})),SubPanel=({isOpen:e,panelTitle:t,className:s="",onClose:a,children:n,setIsActive:i,width:l=400})=>{var o=useStyles$1()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Fade,Object.assign({in:e,mountOnEnter:!0,unmountOnExit:!0},{children:jsxRuntime.exports.jsx("div",{className:o.panelOverlay})})),jsxRuntime.exports.jsx(Slide,Object.assign({direction:"left",in:e,mountOnEnter:!0,unmountOnExit:!0,onEntered:()=>{i(!0)},onExited:()=>i(!1)},{children:jsxRuntime.exports.jsx("div",Object.assign({className:classNames(s,o.panelRoot),style:{width:l},"data-test":"data-labeler-action-panel"},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.panelContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(o.panelHeader)},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"data-labeler-action-panel-title",variant:"h1"},{children:t})),jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"data-labeler-close-action-panel"},{children:DATA_LABELER_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:a,"aria-labelledby":"data-labeler-close-action-panel","data-test":"data-labeler-close-action-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]})),jsxRuntime.exports.jsx(Divider,{className:o.divider}),jsxRuntime.exports.jsx("div",Object.assign({className:o.panelBody},{children:n}))]}))}))}))]})},AnnotationSettings=e=>{var[t,s]=react.exports.useState(!1);const a=useDispatch();var{isOpen:n,entityType:i}=useSelector(selectAnnotationSettings),l=()=>{a(actions.uiState.toggleAnnotationSettings(null))};return jsxRuntime.exports.jsx(SubPanel,Object.assign({isOpen:!(!n||!i),panelTitle:DATA_LABELER_TEXT.annotationSettings(),onClose:l,setIsActive:s,width:1020},e,{children:t&&jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:e.fullScreen,path:e.blueEyeConfig.settingUri,onClosePanel:l})}))},PublishAnnotations=t=>{var[e,s]=react.exports.useState(!1);const a=useDispatch();var{isOpen:n,entityType:i}=useSelector(selectPublishAnnotationSettings),l=()=>{a(actions.uiState.togglePublishAnnotationSettings(null))};return jsxRuntime.exports.jsx(SubPanel,Object.assign({isOpen:!(!n||!i),panelTitle:DATA_LABELER_TEXT.publishAnnotation(),onClose:l,setIsActive:s,width:400},t,{children:e&&jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:t.fullScreen,path:t.blueEyeConfig.publishUri,onClosePanel:l,onSavePublishAnnotation:()=>{const e=t["publishCallback"];e()}})}))},useStyles=makeStyles()(e=>({root:{width:"100%",position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%",overflow:"hidden"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0,zIndex:1200}})),Container=({isFullScreen:e,classes:t,children:s})=>e?jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:classNames(t.root,t.panel,t.fullScreen)},{children:s}))}):jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:classNames(t.root,t.panel)},{children:s})),MainLayout=({hidePanel:e,blueEyeConfig:t,datasetAssets:s,publishCallback:a,disableSetting:n})=>{var i=useStyles()["classes"],l=useSelector(selectIsFullScreen);const o=useDispatch();return jsxRuntime.exports.jsxs(Container,Object.assign({isFullScreen:l,classes:i},{children:[jsxRuntime.exports.jsx(Header,{isFullScreen:l,onFullScreenToggle:()=>{o(actions.uiState.toggleFullScreen())},onPanelClose:()=>{e&&e()},disableSetting:n}),jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:l,path:t.annotateUri}),jsxRuntime.exports.jsx(AnnotationSettings,{className:i.panel,fullScreen:l,blueEyeConfig:t}),jsxRuntime.exports.jsx(PublishAnnotations,{className:i.panel,fullScreen:l,blueEyeConfig:t,datasetAssets:s,publishCallback:a})]}))},DataLabelerPanel=e=>e.panelRendered?jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}):null;function*submitPublishAnnotationns(e){var e=e.payload,t=e.ids;const s=e.callback;s(t);e=yield select(preferredLanguageSelector);const a=AIWareFormatMessage(e);yield put(showMessage({content:a({id:"os-data-labeler.snackbar.submitPublishSuccess",defaultMessage:[{type:0,value:"Submit publish annotations successfully."}]}),severity:MessageSeverity.Info}))}function*watchSubmitPublishAnnotations(){yield takeEvery$1(actions.panelPublishAnnotations.submitPublishAnnotations.type,submitPublishAnnotationns)}function*rootSaga(){yield all([watchSubmitPublishAnnotations()])}function getDataLabelerBrowseModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}store.addModules([getDataLabelerBrowseModule()]);export{DataLabelerPanel};
1
+ import{cF as createSvgIcon,j as jsxRuntime}from"./js-core.esm.js";var MoreVert=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");export{MoreVert as M};
Binary file