aiware-js 2.33.0 → 2.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/files/dosis-all-200-normal.woff +0 -0
  2. package/files/dosis-all-300-normal.woff +0 -0
  3. package/files/dosis-all-400-normal.woff +0 -0
  4. package/files/dosis-all-500-normal.woff +0 -0
  5. package/files/dosis-all-600-normal.woff +0 -0
  6. package/files/dosis-all-700-normal.woff +0 -0
  7. package/files/dosis-all-800-normal.woff +0 -0
  8. package/files/dosis-latin-200-normal.woff +0 -0
  9. package/files/dosis-latin-200-normal.woff2 +0 -0
  10. package/files/dosis-latin-300-normal.woff +0 -0
  11. package/files/dosis-latin-300-normal.woff2 +0 -0
  12. package/files/dosis-latin-400-normal.woff +0 -0
  13. package/files/dosis-latin-400-normal.woff2 +0 -0
  14. package/files/dosis-latin-500-normal.woff +0 -0
  15. package/files/dosis-latin-500-normal.woff2 +0 -0
  16. package/files/dosis-latin-600-normal.woff +0 -0
  17. package/files/dosis-latin-600-normal.woff2 +0 -0
  18. package/files/dosis-latin-700-normal.woff +0 -0
  19. package/files/dosis-latin-700-normal.woff2 +0 -0
  20. package/files/dosis-latin-800-normal.woff +0 -0
  21. package/files/dosis-latin-800-normal.woff2 +0 -0
  22. package/files/dosis-latin-ext-200-normal.woff +0 -0
  23. package/files/dosis-latin-ext-200-normal.woff2 +0 -0
  24. package/files/dosis-latin-ext-300-normal.woff +0 -0
  25. package/files/dosis-latin-ext-300-normal.woff2 +0 -0
  26. package/files/dosis-latin-ext-400-normal.woff +0 -0
  27. package/files/dosis-latin-ext-400-normal.woff2 +0 -0
  28. package/files/dosis-latin-ext-500-normal.woff +0 -0
  29. package/files/dosis-latin-ext-500-normal.woff2 +0 -0
  30. package/files/dosis-latin-ext-600-normal.woff +0 -0
  31. package/files/dosis-latin-ext-600-normal.woff2 +0 -0
  32. package/files/dosis-latin-ext-700-normal.woff +0 -0
  33. package/files/dosis-latin-ext-700-normal.woff2 +0 -0
  34. package/files/dosis-latin-ext-800-normal.woff +0 -0
  35. package/files/dosis-latin-ext-800-normal.woff2 +0 -0
  36. package/files/dosis-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  37. package/files/dosis-latin-variable-wghtOnly-normal.woff2 +0 -0
  38. package/files/dosis-vietnamese-200-normal.woff +0 -0
  39. package/files/dosis-vietnamese-200-normal.woff2 +0 -0
  40. package/files/dosis-vietnamese-300-normal.woff +0 -0
  41. package/files/dosis-vietnamese-300-normal.woff2 +0 -0
  42. package/files/dosis-vietnamese-400-normal.woff +0 -0
  43. package/files/dosis-vietnamese-400-normal.woff2 +0 -0
  44. package/files/dosis-vietnamese-500-normal.woff +0 -0
  45. package/files/dosis-vietnamese-500-normal.woff2 +0 -0
  46. package/files/dosis-vietnamese-600-normal.woff +0 -0
  47. package/files/dosis-vietnamese-600-normal.woff2 +0 -0
  48. package/files/dosis-vietnamese-700-normal.woff +0 -0
  49. package/files/dosis-vietnamese-700-normal.woff2 +0 -0
  50. package/files/dosis-vietnamese-800-normal.woff +0 -0
  51. package/files/dosis-vietnamese-800-normal.woff2 +0 -0
  52. package/files/dosis-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  53. package/files/nunito-all-200-italic.woff +0 -0
  54. package/files/nunito-all-200-normal.woff +0 -0
  55. package/files/nunito-all-300-italic.woff +0 -0
  56. package/files/nunito-all-300-normal.woff +0 -0
  57. package/files/nunito-all-400-italic.woff +0 -0
  58. package/files/nunito-all-400-normal.woff +0 -0
  59. package/files/nunito-all-500-italic.woff +0 -0
  60. package/files/nunito-all-500-normal.woff +0 -0
  61. package/files/nunito-all-600-italic.woff +0 -0
  62. package/files/nunito-all-600-normal.woff +0 -0
  63. package/files/nunito-all-700-italic.woff +0 -0
  64. package/files/nunito-all-700-normal.woff +0 -0
  65. package/files/nunito-all-800-italic.woff +0 -0
  66. package/files/nunito-all-800-normal.woff +0 -0
  67. package/files/nunito-all-900-italic.woff +0 -0
  68. package/files/nunito-all-900-normal.woff +0 -0
  69. package/files/nunito-cyrillic-200-italic.woff +0 -0
  70. package/files/nunito-cyrillic-200-italic.woff2 +0 -0
  71. package/files/nunito-cyrillic-200-normal.woff +0 -0
  72. package/files/nunito-cyrillic-200-normal.woff2 +0 -0
  73. package/files/nunito-cyrillic-300-italic.woff +0 -0
  74. package/files/nunito-cyrillic-300-italic.woff2 +0 -0
  75. package/files/nunito-cyrillic-300-normal.woff +0 -0
  76. package/files/nunito-cyrillic-300-normal.woff2 +0 -0
  77. package/files/nunito-cyrillic-400-italic.woff +0 -0
  78. package/files/nunito-cyrillic-400-italic.woff2 +0 -0
  79. package/files/nunito-cyrillic-400-normal.woff +0 -0
  80. package/files/nunito-cyrillic-400-normal.woff2 +0 -0
  81. package/files/nunito-cyrillic-500-italic.woff +0 -0
  82. package/files/nunito-cyrillic-500-italic.woff2 +0 -0
  83. package/files/nunito-cyrillic-500-normal.woff +0 -0
  84. package/files/nunito-cyrillic-500-normal.woff2 +0 -0
  85. package/files/nunito-cyrillic-600-italic.woff +0 -0
  86. package/files/nunito-cyrillic-600-italic.woff2 +0 -0
  87. package/files/nunito-cyrillic-600-normal.woff +0 -0
  88. package/files/nunito-cyrillic-600-normal.woff2 +0 -0
  89. package/files/nunito-cyrillic-700-italic.woff +0 -0
  90. package/files/nunito-cyrillic-700-italic.woff2 +0 -0
  91. package/files/nunito-cyrillic-700-normal.woff +0 -0
  92. package/files/nunito-cyrillic-700-normal.woff2 +0 -0
  93. package/files/nunito-cyrillic-800-italic.woff +0 -0
  94. package/files/nunito-cyrillic-800-italic.woff2 +0 -0
  95. package/files/nunito-cyrillic-800-normal.woff +0 -0
  96. package/files/nunito-cyrillic-800-normal.woff2 +0 -0
  97. package/files/nunito-cyrillic-900-italic.woff +0 -0
  98. package/files/nunito-cyrillic-900-italic.woff2 +0 -0
  99. package/files/nunito-cyrillic-900-normal.woff +0 -0
  100. package/files/nunito-cyrillic-900-normal.woff2 +0 -0
  101. package/files/nunito-cyrillic-ext-200-italic.woff +0 -0
  102. package/files/nunito-cyrillic-ext-200-italic.woff2 +0 -0
  103. package/files/nunito-cyrillic-ext-200-normal.woff +0 -0
  104. package/files/nunito-cyrillic-ext-200-normal.woff2 +0 -0
  105. package/files/nunito-cyrillic-ext-300-italic.woff +0 -0
  106. package/files/nunito-cyrillic-ext-300-italic.woff2 +0 -0
  107. package/files/nunito-cyrillic-ext-300-normal.woff +0 -0
  108. package/files/nunito-cyrillic-ext-300-normal.woff2 +0 -0
  109. package/files/nunito-cyrillic-ext-400-italic.woff +0 -0
  110. package/files/nunito-cyrillic-ext-400-italic.woff2 +0 -0
  111. package/files/nunito-cyrillic-ext-400-normal.woff +0 -0
  112. package/files/nunito-cyrillic-ext-400-normal.woff2 +0 -0
  113. package/files/nunito-cyrillic-ext-500-italic.woff +0 -0
  114. package/files/nunito-cyrillic-ext-500-italic.woff2 +0 -0
  115. package/files/nunito-cyrillic-ext-500-normal.woff +0 -0
  116. package/files/nunito-cyrillic-ext-500-normal.woff2 +0 -0
  117. package/files/nunito-cyrillic-ext-600-italic.woff +0 -0
  118. package/files/nunito-cyrillic-ext-600-italic.woff2 +0 -0
  119. package/files/nunito-cyrillic-ext-600-normal.woff +0 -0
  120. package/files/nunito-cyrillic-ext-600-normal.woff2 +0 -0
  121. package/files/nunito-cyrillic-ext-700-italic.woff +0 -0
  122. package/files/nunito-cyrillic-ext-700-italic.woff2 +0 -0
  123. package/files/nunito-cyrillic-ext-700-normal.woff +0 -0
  124. package/files/nunito-cyrillic-ext-700-normal.woff2 +0 -0
  125. package/files/nunito-cyrillic-ext-800-italic.woff +0 -0
  126. package/files/nunito-cyrillic-ext-800-italic.woff2 +0 -0
  127. package/files/nunito-cyrillic-ext-800-normal.woff +0 -0
  128. package/files/nunito-cyrillic-ext-800-normal.woff2 +0 -0
  129. package/files/nunito-cyrillic-ext-900-italic.woff +0 -0
  130. package/files/nunito-cyrillic-ext-900-italic.woff2 +0 -0
  131. package/files/nunito-cyrillic-ext-900-normal.woff +0 -0
  132. package/files/nunito-cyrillic-ext-900-normal.woff2 +0 -0
  133. package/files/nunito-cyrillic-ext-variable-wghtOnly-italic.woff2 +0 -0
  134. package/files/nunito-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  135. package/files/nunito-cyrillic-variable-wghtOnly-italic.woff2 +0 -0
  136. package/files/nunito-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  137. package/files/nunito-latin-200-italic.woff +0 -0
  138. package/files/nunito-latin-200-italic.woff2 +0 -0
  139. package/files/nunito-latin-200-normal.woff +0 -0
  140. package/files/nunito-latin-200-normal.woff2 +0 -0
  141. package/files/nunito-latin-300-italic.woff +0 -0
  142. package/files/nunito-latin-300-italic.woff2 +0 -0
  143. package/files/nunito-latin-300-normal.woff +0 -0
  144. package/files/nunito-latin-300-normal.woff2 +0 -0
  145. package/files/nunito-latin-400-italic.woff +0 -0
  146. package/files/nunito-latin-400-italic.woff2 +0 -0
  147. package/files/nunito-latin-400-normal.woff +0 -0
  148. package/files/nunito-latin-400-normal.woff2 +0 -0
  149. package/files/nunito-latin-500-italic.woff +0 -0
  150. package/files/nunito-latin-500-italic.woff2 +0 -0
  151. package/files/nunito-latin-500-normal.woff +0 -0
  152. package/files/nunito-latin-500-normal.woff2 +0 -0
  153. package/files/nunito-latin-600-italic.woff +0 -0
  154. package/files/nunito-latin-600-italic.woff2 +0 -0
  155. package/files/nunito-latin-600-normal.woff +0 -0
  156. package/files/nunito-latin-600-normal.woff2 +0 -0
  157. package/files/nunito-latin-700-italic.woff +0 -0
  158. package/files/nunito-latin-700-italic.woff2 +0 -0
  159. package/files/nunito-latin-700-normal.woff +0 -0
  160. package/files/nunito-latin-700-normal.woff2 +0 -0
  161. package/files/nunito-latin-800-italic.woff +0 -0
  162. package/files/nunito-latin-800-italic.woff2 +0 -0
  163. package/files/nunito-latin-800-normal.woff +0 -0
  164. package/files/nunito-latin-800-normal.woff2 +0 -0
  165. package/files/nunito-latin-900-italic.woff +0 -0
  166. package/files/nunito-latin-900-italic.woff2 +0 -0
  167. package/files/nunito-latin-900-normal.woff +0 -0
  168. package/files/nunito-latin-900-normal.woff2 +0 -0
  169. package/files/nunito-latin-ext-200-italic.woff +0 -0
  170. package/files/nunito-latin-ext-200-italic.woff2 +0 -0
  171. package/files/nunito-latin-ext-200-normal.woff +0 -0
  172. package/files/nunito-latin-ext-200-normal.woff2 +0 -0
  173. package/files/nunito-latin-ext-300-italic.woff +0 -0
  174. package/files/nunito-latin-ext-300-italic.woff2 +0 -0
  175. package/files/nunito-latin-ext-300-normal.woff +0 -0
  176. package/files/nunito-latin-ext-300-normal.woff2 +0 -0
  177. package/files/nunito-latin-ext-400-italic.woff +0 -0
  178. package/files/nunito-latin-ext-400-italic.woff2 +0 -0
  179. package/files/nunito-latin-ext-400-normal.woff +0 -0
  180. package/files/nunito-latin-ext-400-normal.woff2 +0 -0
  181. package/files/nunito-latin-ext-500-italic.woff +0 -0
  182. package/files/nunito-latin-ext-500-italic.woff2 +0 -0
  183. package/files/nunito-latin-ext-500-normal.woff +0 -0
  184. package/files/nunito-latin-ext-500-normal.woff2 +0 -0
  185. package/files/nunito-latin-ext-600-italic.woff +0 -0
  186. package/files/nunito-latin-ext-600-italic.woff2 +0 -0
  187. package/files/nunito-latin-ext-600-normal.woff +0 -0
  188. package/files/nunito-latin-ext-600-normal.woff2 +0 -0
  189. package/files/nunito-latin-ext-700-italic.woff +0 -0
  190. package/files/nunito-latin-ext-700-italic.woff2 +0 -0
  191. package/files/nunito-latin-ext-700-normal.woff +0 -0
  192. package/files/nunito-latin-ext-700-normal.woff2 +0 -0
  193. package/files/nunito-latin-ext-800-italic.woff +0 -0
  194. package/files/nunito-latin-ext-800-italic.woff2 +0 -0
  195. package/files/nunito-latin-ext-800-normal.woff +0 -0
  196. package/files/nunito-latin-ext-800-normal.woff2 +0 -0
  197. package/files/nunito-latin-ext-900-italic.woff +0 -0
  198. package/files/nunito-latin-ext-900-italic.woff2 +0 -0
  199. package/files/nunito-latin-ext-900-normal.woff +0 -0
  200. package/files/nunito-latin-ext-900-normal.woff2 +0 -0
  201. package/files/nunito-latin-ext-variable-wghtOnly-italic.woff2 +0 -0
  202. package/files/nunito-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  203. package/files/nunito-latin-variable-wghtOnly-italic.woff2 +0 -0
  204. package/files/nunito-latin-variable-wghtOnly-normal.woff2 +0 -0
  205. package/files/nunito-vietnamese-200-italic.woff +0 -0
  206. package/files/nunito-vietnamese-200-italic.woff2 +0 -0
  207. package/files/nunito-vietnamese-200-normal.woff +0 -0
  208. package/files/nunito-vietnamese-200-normal.woff2 +0 -0
  209. package/files/nunito-vietnamese-300-italic.woff +0 -0
  210. package/files/nunito-vietnamese-300-italic.woff2 +0 -0
  211. package/files/nunito-vietnamese-300-normal.woff +0 -0
  212. package/files/nunito-vietnamese-300-normal.woff2 +0 -0
  213. package/files/nunito-vietnamese-400-italic.woff +0 -0
  214. package/files/nunito-vietnamese-400-italic.woff2 +0 -0
  215. package/files/nunito-vietnamese-400-normal.woff +0 -0
  216. package/files/nunito-vietnamese-400-normal.woff2 +0 -0
  217. package/files/nunito-vietnamese-500-italic.woff +0 -0
  218. package/files/nunito-vietnamese-500-italic.woff2 +0 -0
  219. package/files/nunito-vietnamese-500-normal.woff +0 -0
  220. package/files/nunito-vietnamese-500-normal.woff2 +0 -0
  221. package/files/nunito-vietnamese-600-italic.woff +0 -0
  222. package/files/nunito-vietnamese-600-italic.woff2 +0 -0
  223. package/files/nunito-vietnamese-600-normal.woff +0 -0
  224. package/files/nunito-vietnamese-600-normal.woff2 +0 -0
  225. package/files/nunito-vietnamese-700-italic.woff +0 -0
  226. package/files/nunito-vietnamese-700-italic.woff2 +0 -0
  227. package/files/nunito-vietnamese-700-normal.woff +0 -0
  228. package/files/nunito-vietnamese-700-normal.woff2 +0 -0
  229. package/files/nunito-vietnamese-800-italic.woff +0 -0
  230. package/files/nunito-vietnamese-800-italic.woff2 +0 -0
  231. package/files/nunito-vietnamese-800-normal.woff +0 -0
  232. package/files/nunito-vietnamese-800-normal.woff2 +0 -0
  233. package/files/nunito-vietnamese-900-italic.woff +0 -0
  234. package/files/nunito-vietnamese-900-italic.woff2 +0 -0
  235. package/files/nunito-vietnamese-900-normal.woff +0 -0
  236. package/files/nunito-vietnamese-900-normal.woff2 +0 -0
  237. package/files/nunito-vietnamese-variable-wghtOnly-italic.woff2 +0 -0
  238. package/files/nunito-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  239. package/index.d.ts +1 -0
  240. package/index.esm.css +1203 -159
  241. package/index.esm.css.gz +0 -0
  242. package/index.esm.js +1 -1
  243. package/index.esm.js.gz +0 -0
  244. package/index.esm.min.css +1820 -0
  245. package/index.esm.min.css.gz +0 -0
  246. package/js-core.esm.js +9 -9
  247. package/js-core.esm.js.gz +0 -0
  248. package/js-core.esm10.js +1 -1
  249. package/js-core.esm10.js.gz +0 -0
  250. package/js-core.esm11.js +1 -1
  251. package/js-core.esm11.js.gz +0 -0
  252. package/js-core.esm13.js +1 -1
  253. package/js-core.esm13.js.gz +0 -0
  254. package/js-core.esm14.js +1 -1
  255. package/js-core.esm14.js.gz +0 -0
  256. package/js-core.esm15.js +1 -1
  257. package/js-core.esm15.js.gz +0 -0
  258. package/js-core.esm16.js +1 -1
  259. package/js-core.esm16.js.gz +0 -0
  260. package/js-core.esm17.js +1 -1
  261. package/js-core.esm17.js.gz +0 -0
  262. package/js-core.esm19.js +1 -1
  263. package/js-core.esm19.js.gz +0 -0
  264. package/js-core.esm20.js +1 -1
  265. package/js-core.esm20.js.gz +0 -0
  266. package/js-core.esm21.js +1 -1
  267. package/js-core.esm21.js.gz +0 -0
  268. package/js-core.esm23.js +1 -1
  269. package/js-core.esm23.js.gz +0 -0
  270. package/js-core.esm24.js +1 -1
  271. package/js-core.esm24.js.gz +0 -0
  272. package/js-core.esm26.js +1 -1
  273. package/js-core.esm26.js.gz +0 -0
  274. package/js-core.esm27.js +1 -1
  275. package/js-core.esm27.js.gz +0 -0
  276. package/js-core.esm28.js +1 -1
  277. package/js-core.esm28.js.gz +0 -0
  278. package/js-core.esm29.js +1 -1
  279. package/js-core.esm29.js.gz +0 -0
  280. package/js-core.esm30.js +1 -1
  281. package/js-core.esm30.js.gz +0 -0
  282. package/js-core.esm32.js +1 -1
  283. package/js-core.esm32.js.gz +0 -0
  284. package/js-core.esm33.js +1 -1
  285. package/js-core.esm33.js.gz +0 -0
  286. package/js-core.esm35.js +1 -1
  287. package/js-core.esm35.js.gz +0 -0
  288. package/js-core.esm36.js +1 -1
  289. package/js-core.esm36.js.gz +0 -0
  290. package/js-core.esm37.js +1 -1
  291. package/js-core.esm37.js.gz +0 -0
  292. package/js-core.esm38.js +1 -1
  293. package/js-core.esm38.js.gz +0 -0
  294. package/js-core.esm39.js +1 -1
  295. package/js-core.esm39.js.gz +0 -0
  296. package/js-core.esm40.js +1 -1
  297. package/js-core.esm40.js.gz +0 -0
  298. package/js-core.esm41.js +1 -1
  299. package/js-core.esm41.js.gz +0 -0
  300. package/js-core.esm42.js +1 -1
  301. package/js-core.esm42.js.gz +0 -0
  302. package/js-core.esm43.js +1 -1
  303. package/js-core.esm43.js.gz +0 -0
  304. package/js-core.esm44.js +1 -1
  305. package/js-core.esm44.js.gz +0 -0
  306. package/js-core.esm45.js +2 -2
  307. package/js-core.esm45.js.gz +0 -0
  308. package/js-core.esm47.js +2 -2
  309. package/js-core.esm47.js.gz +0 -0
  310. package/js-core.esm48.js +1 -1
  311. package/js-core.esm48.js.gz +0 -0
  312. package/js-core.esm5.js +13 -4
  313. package/js-core.esm5.js.gz +0 -0
  314. package/js-core.esm50.js +1 -1
  315. package/js-core.esm50.js.gz +0 -0
  316. package/js-core.esm51.js +1 -1
  317. package/js-core.esm51.js.gz +0 -0
  318. package/js-core.esm52.js +1 -1
  319. package/js-core.esm52.js.gz +0 -0
  320. package/js-core.esm53.js +1 -1
  321. package/js-core.esm53.js.gz +0 -0
  322. package/js-core.esm54.js +1 -1
  323. package/js-core.esm54.js.gz +0 -0
  324. package/js-core.esm55.js +1 -1
  325. package/js-core.esm55.js.gz +0 -0
  326. package/js-core.esm57.js +1 -1
  327. package/js-core.esm57.js.gz +0 -0
  328. package/js-core.esm58.js +1 -1
  329. package/js-core.esm58.js.gz +0 -0
  330. package/js-core.esm59.js +1 -1
  331. package/js-core.esm59.js.gz +0 -0
  332. package/js-core.esm60.js +1 -1
  333. package/js-core.esm60.js.gz +0 -0
  334. package/js-core.esm61.js +15 -2
  335. package/js-core.esm61.js.gz +0 -0
  336. package/js-core.esm62.js +1 -1
  337. package/js-core.esm62.js.gz +0 -0
  338. package/js-core.esm63.js +1 -1
  339. package/js-core.esm63.js.gz +0 -0
  340. package/js-core.esm64.js +1 -1
  341. package/js-core.esm64.js.gz +0 -0
  342. package/js-core.esm65.js +1 -1
  343. package/js-core.esm65.js.gz +0 -0
  344. package/js-core.esm66.js +1 -1
  345. package/js-core.esm66.js.gz +0 -0
  346. package/js-core.esm67.js +1 -1
  347. package/js-core.esm67.js.gz +0 -0
  348. package/js-core.esm68.js +1 -1
  349. package/js-core.esm68.js.gz +0 -0
  350. package/js-core.esm69.js +1 -1
  351. package/js-core.esm69.js.gz +0 -0
  352. package/js-core.esm7.js +6 -5
  353. package/js-core.esm7.js.gz +0 -0
  354. package/js-core.esm70.js +1 -1
  355. package/js-core.esm70.js.gz +0 -0
  356. package/js-core.esm71.js +1 -1
  357. package/js-core.esm71.js.gz +0 -0
  358. package/js-core.esm72.js +1 -1
  359. package/js-core.esm72.js.gz +0 -0
  360. package/js-core.esm73.js +1 -1
  361. package/js-core.esm73.js.gz +0 -0
  362. package/js-core.esm74.js +2 -2
  363. package/js-core.esm74.js.gz +0 -0
  364. package/js-core.esm75.js +1 -1
  365. package/js-core.esm75.js.gz +0 -0
  366. package/js-core.esm76.js +5 -5
  367. package/js-core.esm76.js.gz +0 -0
  368. package/js-core.esm77.js +2 -2
  369. package/js-core.esm77.js.gz +0 -0
  370. package/js-core.esm79.js +1 -1
  371. package/js-core.esm79.js.gz +0 -0
  372. package/js-core.esm81.js +1 -1
  373. package/js-core.esm81.js.gz +0 -0
  374. package/js-core.esm82.js +1 -1
  375. package/js-core.esm82.js.gz +0 -0
  376. package/js-core.esm83.js +1 -1
  377. package/js-core.esm83.js.gz +0 -0
  378. package/js-core.esm85.js +1 -1
  379. package/js-core.esm85.js.gz +0 -0
  380. package/js-core.esm86.js +1 -1
  381. package/js-core.esm86.js.gz +0 -0
  382. package/js-core.esm87.js +1 -1
  383. package/js-core.esm87.js.gz +0 -0
  384. package/js-core.esm88.js +1 -1
  385. package/js-core.esm88.js.gz +0 -0
  386. package/js-core.esm89.js +1 -1
  387. package/js-core.esm89.js.gz +0 -0
  388. package/js-core.esm90.js +1 -1
  389. package/js-core.esm90.js.gz +0 -0
  390. package/js-core.esm91.js +1 -1
  391. package/js-core.esm91.js.gz +0 -0
  392. package/js-core.esm93.js +1 -1
  393. package/js-core.esm93.js.gz +0 -0
  394. package/js-core.umd.css +1203 -159
  395. package/js-core.umd.css.gz +0 -0
  396. package/js-core.umd.js +203 -180
  397. package/js-core.umd.js.gz +0 -0
  398. package/js-core.umd.min.css +1329 -57
  399. package/js-core.umd.min.css.gz +0 -0
  400. package/locales/en.json +1 -1
  401. package/locales/es.json +1 -1
  402. package/locales/fr.json +1 -1
  403. package/package.json +1 -1
  404. package/files/dosis-latin-200.woff +0 -0
  405. package/files/dosis-latin-200.woff2 +0 -0
  406. package/files/dosis-latin-300.woff +0 -0
  407. package/files/dosis-latin-300.woff2 +0 -0
  408. package/files/dosis-latin-500.woff +0 -0
  409. package/files/dosis-latin-500.woff2 +0 -0
  410. package/files/dosis-latin-600.woff +0 -0
  411. package/files/dosis-latin-600.woff2 +0 -0
  412. package/files/dosis-latin-700.woff +0 -0
  413. package/files/dosis-latin-700.woff2 +0 -0
  414. package/files/dosis-latin-800.woff +0 -0
  415. package/files/dosis-latin-800.woff2 +0 -0
  416. package/files/nunito-latin-200.woff +0 -0
  417. package/files/nunito-latin-200.woff2 +0 -0
  418. package/files/nunito-latin-200italic.woff +0 -0
  419. package/files/nunito-latin-200italic.woff2 +0 -0
  420. package/files/nunito-latin-300.woff +0 -0
  421. package/files/nunito-latin-300.woff2 +0 -0
  422. package/files/nunito-latin-300italic.woff +0 -0
  423. package/files/nunito-latin-300italic.woff2 +0 -0
  424. package/files/nunito-latin-400.woff2 +0 -0
  425. package/files/nunito-latin-400italic.woff +0 -0
  426. package/files/nunito-latin-400italic.woff2 +0 -0
  427. package/files/nunito-latin-600.woff +0 -0
  428. package/files/nunito-latin-600.woff2 +0 -0
  429. package/files/nunito-latin-600italic.woff +0 -0
  430. package/files/nunito-latin-600italic.woff2 +0 -0
  431. package/files/nunito-latin-700.woff +0 -0
  432. package/files/nunito-latin-700.woff2 +0 -0
  433. package/files/nunito-latin-700italic.woff +0 -0
  434. package/files/nunito-latin-700italic.woff2 +0 -0
  435. package/files/nunito-latin-800.woff +0 -0
  436. package/files/nunito-latin-800.woff2 +0 -0
  437. package/files/nunito-latin-800italic.woff +0 -0
  438. package/files/nunito-latin-800italic.woff2 +0 -0
  439. package/files/nunito-latin-900.woff +0 -0
  440. package/files/nunito-latin-900.woff2 +0 -0
  441. package/files/nunito-latin-900italic.woff +0 -0
  442. package/files/nunito-latin-900italic.woff2 +0 -0
package/js-core.esm74.js CHANGED
@@ -1,4 +1,4 @@
1
- import{bZ as createSvgIcon,j as jsxRuntime,H as createSlice,m as makeStyles,F as FormattedMessage,p as lodash,c6 as combineReducers,c7 as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,bw as CacheProvider,bx as muiCache,c9 as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,i as useDispatch,k as useSelector,r as react,B as Box,v as FormControl,w as TextField,eJ as InputLabel,aS as Select,ar as Button,ac as Skeleton,aT as MenuItem,T as Typography,a2 as all,a8 as Tooltip,a9 as IconButton,bU as Hide,fc as selectIsOLPEnabled,ch as unmountPanel,cl as mountPanel,ck as hidePanel,L as LoadingButton,a7 as Divider,aw as CircularProgress,bK as RadioGroup,ao as FormControlLabel,bX as Radio,ap as Checkbox,ad as takeLatest$1,ag as select,ai as call$j,af as put,M as preferredLanguageSelector,cn as userSelector,bV as showMessage,bW as MessageSeverity,b1 as AIWareFormatMessage,fB as CheckCircle,cy as baseGraphQLApiWithError}from"./js-core.esm.js";import{getDataCenterBrowseModule,selectors as selectors$1,actions as actions$9,Types as index}from"./js-core.esm45.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave}from"./js-core.esm68.js";import"./js-core.esm47.js";import{F as FixedSizeList}from"./js-core.esm32.js";import{d as debounce_1,I as InfiniteLoader}from"./js-core.esm48.js";import{d as default_1}from"./js-core.esm8.js";import{v as v4}from"./js-core.esm50.js";import{A as Autocomplete}from"./js-core.esm24.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm53.js";import{S as Search}from"./js-core.esm10.js";import{D as Delete}from"./js-core.esm69.js";import{C as ContentCopy}from"./js-core.esm51.js";var match$2,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,LoadingStatus,AddCircleOutline=createSvgIcon(jsxRuntime.exports.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"),FolderOpen=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen"),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$o=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$i=Function.prototype.call,functionCall=NATIVE_BIND$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$5=FunctionPrototype$2.bind,call$h=FunctionPrototype$2.call,uncurryThis$n=NATIVE_BIND$2&&bind$5.bind(call$h,call$h),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$n(e)}:function(e){return e&&function(){return call$h.apply(e,arguments)}},uncurryThis$m=functionUncurryThis,toString$9=uncurryThis$m({}.toString),stringSlice$5=uncurryThis$m("".slice),classofRaw$1=function(e){return stringSlice$5(toString$9(e),8,-1)},uncurryThis$l=functionUncurryThis,fails$i=fails$l,classof$7=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$d=TypeError,requireObjectCoercible$6=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$5(e))},isCallable$n=function(e){return"function"==typeof e},isCallable$m=isCallable$n,isObject$8=function(e){return"object"==typeof e?null!==e:isCallable$m(e)},global$n=global$o,isCallable$l=isCallable$n,aFunction=function(e){return isCallable$l(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$n[e]):global$n[e]&&global$n[e][t]},uncurryThis$k=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$m=global$o,userAgent$3=engineUserAgent,process$3=global$m.process,Deno$1=global$m.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match$2=v8.split("."))[0]&&match$2[0]<4?1:+(match$2[0]+match$2[1]):version)&&userAgent$3&&(!(match$2=userAgent$3.match(/Edge\/(\d+)/))||74<=match$2[1])&&(match$2=userAgent$3.match(/Chrome\/(\d+)/))?+match$2[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$k=isCallable$n,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$k(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$j=isCallable$n,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$7=function(e){if(isCallable$j(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$4=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$g=functionCall,isCallable$i=isCallable$n,isObject$7=isObject$8,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$i(n=e.toString)&&!isObject$7(r=call$g(n,e)))return r;if(isCallable$i(n=e.valueOf)&&!isObject$7(r=call$g(n,e)))return r;if("string"!==t&&isCallable$i(n=e.toString)&&!isObject$7(r=call$g(n,e)))return r;throw $TypeError$b("Can't convert object to primitive value")},shared$4={exports:{}},global$l=global$o,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$6(global$l,t,{value:n,configurable:!0,writable:!0})}catch(e){global$l[t]=n}return n},global$k=global$o,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$o[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$4=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$6),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$j=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$i=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$i(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$j=global$o,shared$3=shared$4.exports,hasOwn$b=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$j.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$i=function(e){var t;return hasOwn$b(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$b(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$f=functionCall,isObject$6=isObject$8,isSymbol$1=isSymbol$2,getMethod$3=getMethod$4,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$i("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$6(e)||isSymbol$1(e))return e;var n=getMethod$3(e,TO_PRIMITIVE);if(n){if(n=call$f(n,e,t=void 0===t?"default":t),!isObject$6(n)||isSymbol$1(n))return n;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$i=global$o,isObject$5=isObject$8,document$3=global$o.document,EXISTS$1=isObject$5(document$3)&&isObject$5(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$b=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$a=descriptors,call$e=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$a=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$a?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$a(e,t))return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$9=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$4=isObject$8,$String$2=String,$TypeError$9=TypeError,anObject$e=function(e){if(isObject$4(e))return e;throw $TypeError$9($String$2(e)+" is not an object")},DESCRIPTORS$8=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey=toPropertyKey$2,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$7=(objectDefineProperty.f=DESCRIPTORS$8?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$d(e),t=toPropertyKey(t),anObject$d(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$d(e),t=toPropertyKey(t),anObject$d(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$5=DESCRIPTORS$7?function(e,t,n){return definePropertyModule$4.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$6=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$6&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$6||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$h=functionUncurryThis,isCallable$h=isCallable$n,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$h(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$h=global$o,isCallable$g=isCallable$n,inspectSource$3=inspectSource$4,WeakMap$1=global$o.WeakMap,nativeWeakMap=isCallable$g(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$g=global$o,uncurryThis$g=functionUncurryThis,isObject$3=isObject$8,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$8=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$3(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$g(store.get),wmhas=uncurryThis$g(store.has),wmset=uncurryThis$g(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$8(e,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$8(e,STATE)?e[STATE]:{}},function(e){return hasOwn$8(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$f=isCallable$n,hasOwn$7=hasOwnProperty_1,DESCRIPTORS$5=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$2=InternalStateModule$2.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$5&&!fails$e(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$7(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$5?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$7(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$7(n,"constructor")&&n.constructor?DESCRIPTORS$5&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$7(n,"source")||(n.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$e=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$f(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$n),definePropertyModule$3=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$7=function(e,t,n,r){var s=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$e(n)&&makeBuiltIn(n,o,r),r.global)s?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=n:definePropertyModule$3.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$1=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$1:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$1=Math.max,min$2=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$1(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$2=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$2=function(e){return toLength$1(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$2=function(i){return function(e,t,n){var r,s=toIndexedObject$3(e),o=lengthOfArrayLike$1(s),a=toAbsoluteIndex(n,o);if(i&&t!=t){for(;a<o;)if((r=s[a++])!=r)return!0}else for(;a<o;a++)if((i||a in s)&&s[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$f=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=uncurryThis$f([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),s=0,o=[];for(n in r)!hasOwn$6(hiddenKeys$2,n)&&hasOwn$6(r,n)&&push$1(o,n);for(;t.length>s;)!hasOwn$6(r,n=t[s++])||~indexOf$1(o,n)||push$1(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$e=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$2(t,n(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$2=function(e,t,n){for(var r=ownKeys(t),s=definePropertyModule$2.f,o=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var i=r[a];hasOwn$5(e,i)||n&&hasOwn$5(n,i)||s(e,i,o(t,i))}},fails$d=fails$l,isCallable$d=isCallable$n,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$d(t)?fails$d(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$6=defineBuiltIn$7,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var n,r,s,o=e.target,a=e.global,i=e.stat,l=a?global$f:i?global$f[o]||defineGlobalProperty(o,{}):(global$f[o]||{}).prototype;if(l)for(n in t){if(r=t[n],s=e.dontCallGetSet?(s=getOwnPropertyDescriptor$1(l,n))&&s.value:l[n],!isForced$1(a?n:o+(i?".":"#")+n,e.forced)&&void 0!==s){if(typeof r==typeof s)continue;copyConstructorProperties$1(r,s)}(e.sham||s&&s.sham)&&createNonEnumerableProperty$3(r,"sham",!0),defineBuiltIn$6(l,n,r,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$4=descriptors,uncurryThis$d=functionUncurryThis,call$d=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$d([].concat),objectAssign=!$assign||fails$c(function(){var e,t,n,r;return!(!DESCRIPTORS$4||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys$1($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$2(e),r=arguments.length,s=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;s<r;)for(var i,l=IndexedObject(arguments[s++]),c=o?concat$1(objectKeys$1(l),o(l)):objectKeys$1(l),d=c.length,u=0;u<d;)i=c[u++],DESCRIPTORS$4&&!call$d(a,l,i)||(n[i]=l[i]);return n}:$assign,$$c=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="processingCenterIngestion",namespace$8=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending",e.Complete="complete"}(LoadingStatus=LoadingStatus||{}),"uiState"),initialState$7={status:LoadingStatus.Idle},slice=createSlice({name:SLICE_NAME+"/"+namespace$8,initialState:initialState$7,reducers:{init(e){e.status=LoadingStatus.Pending},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed}}}),actions$8=slice.actions;var uiState=slice.reducer;const namespace$7="ingestionJobsWizard",initialState$6={activeStep:1,steps:[{number:1,completed:!1},{number:2,completed:!1},{number:3,completed:!1},{number:4,completed:!1},{number:5,completed:!1},{number:6,completed:!1}],activeEngine:{},scheduledJobId:"",saveStatus:LoadingStatus.Idle,isFullScreen:!1},ingestionJobsWizardSlice=createSlice({name:"ingestionJobsWizard",initialState:initialState$6,reducers:{nextStep:e=>{var t=e["activeStep"];t!==e.steps.length&&(e.steps[t-1].completed=!0,e.activeStep=t+1)},backStep:e=>{var t=e["activeStep"];1!==t&&(e.activeStep=t-1)},setActiveEngine:(e,t)=>{e.activeEngine=t.payload},setScheduledJobId:(e,t)=>{e.scheduledJobId=t.payload},saveScheduledJobStart:e=>{e.saveStatus=LoadingStatus.Pending},saveScheduledJobSuccess:e=>{e.saveStatus=LoadingStatus.Complete},saveScheduledJobFailure:e=>{e.saveStatus=LoadingStatus.Failed},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload}}}),actions$7=ingestionJobsWizardSlice.actions;var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,ingestionJobsWizard_slice=ingestionJobsWizardSlice.reducer,objectDefineProperties={},DESCRIPTORS$3=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$b=anObject$e,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$3&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$b(e);for(var n,r=toIndexedObject$1(t),s=objectKeys(t),o=s.length,a=0;a<o;)definePropertyModule$1.f(e,n=s[a++],r[n]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$a=anObject$e,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$a(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$g=wellKnownSymbol$i,create$2=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$g("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$2(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$b=fails$l,correctPrototypeGetter=!fails$l(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$c=isCallable$n,toObject$1=toObject$4,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){var t,e=toObject$1(e);return hasOwn$4(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$c(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$a=fails$l,isCallable$b=isCallable$n,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$5=defineBuiltIn$7,wellKnownSymbol$f=wellKnownSymbol$i,ITERATOR$6=wellKnownSymbol$i("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails$a(function(){var e={};return IteratorPrototype$2[ITERATOR$6].call(e)!==e})),iteratorsCore=(isCallable$b((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$6])||defineBuiltIn$5(IteratorPrototype$2,ITERATOR$6,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$e=wellKnownSymbol$i,TO_STRING_TAG$3=wellKnownSymbol$i("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$3(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,n,r){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$2(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$a=isCallable$n,$String$1=String,$TypeError$7=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$a(e))return e;throw $TypeError$7("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$c=functionUncurryThis,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThis$c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$9(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),$$b=_export,call$c=functionCall,FunctionName=functionName,isCallable$9=isCallable$n,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$2=createNonEnumerableProperty$5,defineBuiltIn$4=defineBuiltIn$7,wellKnownSymbol$d=wellKnownSymbol$i,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$5=wellKnownSymbol$d("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,n,r,s,o,a){createIteratorConstructor(n,t,r);function i(e){if(e===s&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in u)return u[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",d=!1,u=e.prototype,p=u[ITERATOR$5]||u["@@iterator"]||s&&u[s],g=!BUGGY_SAFARI_ITERATORS&&p||i(s),m="Array"==t&&u.entries||p;if(m&&(m=getPrototypeOf(m.call(new e)))!==Object.prototype&&m.next&&(getPrototypeOf(m)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(m,IteratorPrototype):isCallable$9(m[ITERATOR$5])||defineBuiltIn$4(m,ITERATOR$5,returnThis)),setToStringTag$1(m,r,!0)),PROPER_FUNCTION_NAME$1&&s==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(u,"name",VALUES):(d=!0,g=function(){return call$c(p,this)})),s)if(l={values:i(VALUES),keys:o?g:i(KEYS),entries:i(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!d&&c in u||defineBuiltIn$4(u,c,l[c]);else $$b({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||d},l);return u[ITERATOR$5]!==g&&defineBuiltIn$4(u,ITERATOR$5,g,{name:s}),Iterators$3[t]=g,l},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$1=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$2=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$1=InternalStateModule$1.set,getInternalState$1=InternalStateModule$1.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$1(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$2&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$e=global$o,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$5,wellKnownSymbol$c=wellKnownSymbol$i,ITERATOR$4=wellKnownSymbol$c("iterator"),TO_STRING_TAG$2=wellKnownSymbol$c("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$4]!==ArrayValues)try{createNonEnumerableProperty$1(t,ITERATOR$4,ArrayValues)}catch(e){t[ITERATOR$4]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty$1(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var n in ArrayIteratorMethods)if(t[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty$1(t,n,ArrayIteratorMethods[n])}catch(e){t[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$e[COLLECTION_NAME]&&global$e[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const namespace$6="sourceStep",initialState$5={isAffiliateSearch:!1,sourceSearchTerm:"",sourceTypeId:[],searchedSources:[],sourceSelected:null,isLoading:!1,error:null,hasMore:!1,offset:0,clusterSection:{clusterSelected:null,clusters:[],isLoading:!0,error:null,hasMore:!1,offset:0},mediaChunkLength:"15"},sourceStepSlice=createSlice({name:"sourceStep",initialState:initialState$5,reducers:{sourcesSearchStart:(e,{payload:t})=>{e.isAffiliateSearch=t,0===e.offset&&(e.isLoading=!0)},sourcesSearchSucceeded:(e,{payload:t})=>{e.searchedSources=[...e.searchedSources,...t],e.error=null,e.isLoading=!1},resetSourcesSearch:e=>{e.isAffiliateSearch=!1,e.searchedSources=[],e.isLoading=!1,e.offset=0,e.hasMore=!1,e.error=null},setSourceTypeId:(e,{payload:t})=>{e.sourceTypeId=t},setSourceSelected:(e,{payload:t})=>{e.sourceSelected=t},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setError:(e,{payload:t})=>{e.error=t},setLoading:(e,{payload:t})=>{e.isLoading=t},setSourceSearchTerm:(e,{payload:t})=>{e.sourceSearchTerm=t},setMediaChunkLength:(e,{payload:t})=>{e.mediaChunkLength=t},setSelectedCluster:(e,{payload:t})=>{e.clusterSection.clusterSelected=t},clustersSearchStart:e=>{0===e.clusterSection.offset&&(e.clusterSection.isLoading=!0)},clustersSearchSucceeded:(e,{payload:t})=>{e.clusterSection.clusters=[...e.clusterSection.clusters,...t],e.clusterSection.error=null,e.clusterSection.isLoading=!1},clustersSetOffset:(e,{payload:t})=>{e.clusterSection.offset=t},clustersSetHasMore:(e,{payload:t})=>{e.clusterSection.hasMore=t},clusterSetError:(e,{payload:t})=>{e.clusterSection.error=t,e.clusterSection.isLoading=!1},clusterSetLoading:(e,{payload:t})=>{e.clusterSection.isLoading=t}}}),actions$6=sourceStepSlice.actions;var selectSourceStep_slice=sourceStepSlice.reducer;function toInteger(e){return null===e||!0===e||!1===e?NaN:(e=Number(e),isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e))}function requiredArgs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(1<e?"s":"")+" required, but only "+t.length+" present")}function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_typeof$1(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function addDays(e,t){requiredArgs(2,arguments);var n=toDate(e),r=toInteger(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function addMilliseconds(e,t){requiredArgs(2,arguments);var n=toDate(e).getTime(),r=toInteger(t);return new Date(n+r)}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function getTimezoneOffsetInMilliseconds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isDate(e){return requiredArgs(1,arguments),e instanceof Date||"object"===_typeof(e)&&"[object Date]"===Object.prototype.toString.call(e)}function isValid(e){var t;return requiredArgs(1,arguments),!(!isDate(e)&&"number"!=typeof e||(t=toDate(e),isNaN(Number(t))))}function subMilliseconds(e,t){return requiredArgs(2,arguments),addMilliseconds(e,-toInteger(t))}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getTime(),t=(t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t.getTime());return Math.floor((n-t)/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getUTCDay(),n=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getUTCFullYear(),r=new Date(0),r=(r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0),startOfUTCISOWeek(r)),s=new Date(0),s=(s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),startOfUTCISOWeek(s));return t.getTime()>=r.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),startOfUTCISOWeek(n)}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),t=startOfUTCISOWeek(t).getTime()-startOfUTCISOWeekYear(t).getTime();return Math.round(t/MILLISECONDS_IN_WEEK$1)+1}function startOfUTCWeek(e,t){requiredArgs(1,arguments);var n,r,s=getDefaultOptions(),s=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==t?void 0:t.weekStartsOn)?n:null==t||null==(n=t.locale)||null==(n=n.options)?void 0:n.weekStartsOn)?n:s.weekStartsOn)?n:null==(n=s.locale)||null==(s=n.options)?void 0:s.weekStartsOn)?n:0);if(0<=s&&s<=6)return r=((r=(n=toDate(e)).getUTCDay())<s?7:0)+r-s,n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n;throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var n,r,s=toDate(e),o=s.getUTCFullYear(),a=getDefaultOptions(),a=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==t?void 0:t.firstWeekContainsDate)?n:null==t||null==(n=t.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:a.firstWeekContainsDate)?n:null==(n=a.locale)||null==(a=n.options)?void 0:a.firstWeekContainsDate)?n:1);if(1<=a&&a<=7)return(n=new Date(0)).setUTCFullYear(o+1,0,a),n.setUTCHours(0,0,0,0),n=startOfUTCWeek(n,t),(r=new Date(0)).setUTCFullYear(o,0,a),r.setUTCHours(0,0,0,0),a=startOfUTCWeek(r,t),s.getTime()>=n.getTime()?o+1:s.getTime()>=a.getTime()?o:o-1;throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var n=getDefaultOptions(),n=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==t||null==(r=t.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:n.firstWeekContainsDate)?r:null==(r=n.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?r:1),r=getUTCWeekYear(e,t),s=new Date(0);return s.setUTCFullYear(r,0,n),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var n=toDate(e),n=startOfUTCWeek(n,t).getTime()-startOfUTCWeekYear(n,t).getTime();return Math.round(n/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var formatters$2={y:function(e,t){e=e.getUTCFullYear(),e=0<e?e:1-e;return addLeadingZeros("yy"===t?e%100:e,t.length)},M:function(e,t){e=e.getUTCMonth();return"M"===t?String(e+1):addLeadingZeros(e+1,2)},d:function(e,t){return addLeadingZeros(e.getUTCDate(),t.length)},a:function(e,t){var n=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return addLeadingZeros(e.getUTCHours()%12||12,t.length)},H:function(e,t){return addLeadingZeros(e.getUTCHours(),t.length)},m:function(e,t){return addLeadingZeros(e.getUTCMinutes(),t.length)},s:function(e,t){return addLeadingZeros(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,e=e.getUTCMilliseconds();return addLeadingZeros(Math.floor(e*Math.pow(10,n-3)),t.length)}},formatters$3=formatters$2,dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(e,t,n){var r=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){var r;return"yo"===t?(r=e.getUTCFullYear(),n.ordinalNumber(0<r?r:1-r,{unit:"year"})):formatters$3.y(e,t)},Y:function(e,t,n,r){e=getUTCWeekYear(e,r),r=0<e?e:1-e;return"YY"===t?addLeadingZeros(r%100,2):"Yo"===t?n.ordinalNumber(r,{unit:"year"}):addLeadingZeros(r,t.length)},R:function(e,t){return addLeadingZeros(getUTCISOWeekYear(e),t.length)},u:function(e,t){return addLeadingZeros(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return addLeadingZeros(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return addLeadingZeros(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return addLeadingZeros(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){e=getUTCWeek(e,r);return"wo"===t?n.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},I:function(e,t,n){e=getUTCISOWeek(e);return"Io"===t?n.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):formatters$3.d(e,t)},D:function(e,t,n){e=getUTCDayOfYear(e);return"Do"===t?n.ordinalNumber(e,{unit:"dayOfYear"}):addLeadingZeros(e,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return addLeadingZeros(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return addLeadingZeros(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),s=0===r?7:r;switch(t){case"i":return String(s);case"ii":return addLeadingZeros(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var e=e.getUTCHours(),r=12===e?dayPeriodEnum.noon:0===e?dayPeriodEnum.midnight:1<=e/12?"pm":"am";switch(t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var e=e.getUTCHours(),r=17<=e?dayPeriodEnum.evening:12<=e?dayPeriodEnum.afternoon:4<=e?dayPeriodEnum.morning:dayPeriodEnum.night;switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){var r;return"ho"===t?(r=e.getUTCHours()%12,n.ordinalNumber(r=0===r?12:r,{unit:"hour"})):formatters$3.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):formatters$3.H(e,t)},K:function(e,t,n){e=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},k:function(e,t,n){e=e.getUTCHours();return 0===e&&(e=24),"ko"===t?n.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):formatters$3.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):formatters$3.s(e,t)},S:function(e,t){return formatters$3.S(e,t)},X:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);default:return formatTimezone(s,":")}},x:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);default:return formatTimezone(s,":")}},O:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},z:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},t:function(e,t,n,r){r=r._originalDate||e;return addLeadingZeros(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,r){return addLeadingZeros((r._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var n=0<e?"-":"+",e=Math.abs(e),r=Math.floor(e/60),e=e%60;return 0==e?n+String(r):(t=t||"",n+String(r)+t+addLeadingZeros(e,2))}function formatTimezoneWithOptionalMinutes(e,t){return e%60==0?(0<e?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezone(e,t){var t=t||"",n=0<e?"-":"+",e=Math.abs(e);return n+addLeadingZeros(Math.floor(e/60),2)+t+addLeadingZeros(e%60,2)}var formatters$1=formatters,dateLongFormatter=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},timeLongFormatter=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},dateTimeLongFormatter=function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],s=r[1],r=r[2];if(!r)return dateLongFormatter(e,t);switch(s){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",dateLongFormatter(s,t)).replace("{{time}}",timeLongFormatter(r,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},longFormatters$1=longFormatters,protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return-1!==protectedDayOfYearTokens.indexOf(e)}function isProtectedWeekYearToken(e){return-1!==protectedWeekYearTokens.indexOf(e)}function throwProtectedError(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function(e,t,n){e=formatDistanceLocale[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"in "+e:e+" ago":e},formatDistance$1=formatDistance;function buildFormatLongFn(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$1=formatLong,formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function(e,t,n,r){return formatRelativeLocale[e]},formatRelative$1=formatRelative;function buildLocalizeFn(s){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&s.formattingValues?(r=s.defaultFormattingWidth||s.defaultWidth,n=null!=t&&t.width?String(t.width):r,s.formattingValues[n]||s.formattingValues[r]):(n=s.defaultWidth,r=null!=t&&t.width?String(t.width):s.defaultWidth,s.values[r]||s.values[n]);var n,r=s.argumentCallback?s.argumentCallback(e):e;return t[r]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function(e,t){var n=Number(e),e=n%100;if(20<e||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$1=localize;function buildMatchFn(o){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.width,s=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],s=e.match(s);return s?(t=s[0],s=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r=Array.isArray(s)?findIndex(s,function(e){return e.test(t)}):findKey(s,function(e){return e.test(t)}),s=o.valueCallback?o.valueCallback(r):r,{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(t.length)}):null}}function findKey(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function findIndex(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(s){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.match(s.matchPattern);return r&&(r=r[0],t=e.match(s.parsePattern))?(t=s.valueCallback?s.valueCallback(t[0]):t[0],{value:t=n.valueCallback?n.valueCallback(t):t,rest:e.slice(r.length)}):null}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$1=match,locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale=locale,formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(r,s,o){requiredArgs(2,arguments);var e=String(s),t=getDefaultOptions(),a=null!=(n=null!=(n=null==o?void 0:o.locale)?n:t.locale)?n:defaultLocale,n=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==o?void 0:o.firstWeekContainsDate)?n:null==o||null==(n=o.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:t.firstWeekContainsDate)?n:null==(n=t.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:1);if(!(1<=n&&n<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");t=toInteger(null!=(c=null!=(c=null!=(c=null!=(c=null==o?void 0:o.weekStartsOn)?c:null==o||null==(c=o.locale)||null==(c=c.options)?void 0:c.weekStartsOn)?c:t.weekStartsOn)?c:null==(c=t.locale)||null==(t=c.options)?void 0:t.weekStartsOn)?c:0);if(!(0<=t&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var i,l,c=toDate(r);if(isValid(c))return i=subMilliseconds(c,getTimezoneOffsetInMilliseconds(c)),l={firstWeekContainsDate:n,weekStartsOn:t,locale:a,_originalDate:c},e.match(longFormattingTokensRegExp).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,a.formatLong):e}).join("").match(formattingTokensRegExp).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return cleanEscapedString(e);var n=formatters$1[t];if(n)return null!=o&&o.useAdditionalWeekYearTokens||!isProtectedWeekYearToken(e)||throwProtectedError(e,s,String(r)),null!=o&&o.useAdditionalDayOfYearTokens||!isProtectedDayOfYearToken(e)||throwProtectedError(e,s,String(r)),n(i,e,a.localize,l);if(t.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("");throw new RangeError("Invalid time value")}function cleanEscapedString(e){var t=e.match(escapedStringRegExp);return t?t[1].replace(doubleQuoteRegExp,"'"):e}function isAfter(e,t){requiredArgs(2,arguments);var n=toDate(e),r=toDate(t);return n.getTime()>r.getTime()}var wellKnownSymbol$b=wellKnownSymbol$i,TO_STRING_TAG$1=wellKnownSymbol$i("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$8=isCallable$n,classofRaw=classofRaw$1,wellKnownSymbol$a=wellKnownSymbol$i,TO_STRING_TAG=wellKnownSymbol$i("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$8(e.callee)?"Arguments":t},classof$5=classof$6,$String=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$b=functionUncurryThis,requireObjectCoercible$3=requireObjectCoercible$6,toString$6=toString$7,whitespaces$1=whitespaces$2,replace$3=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$1=function(t){return function(e){e=toString$6(requireObjectCoercible$3(e));return 1&t&&(e=replace$3(e,ltrim,"")),e=2&t?replace$3(e,rtrim,""):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$d=global$o,fails$9=fails$l,uncurryThis$a=functionUncurryThis,toString$5=toString$7,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$d.parseInt,Symbol$1=global$d.Symbol,ITERATOR$3=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$2=uncurryThis$a(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$3&&!fails$9(function(){$parseInt$1(Object(ITERATOR$3))}),numberParseInt=FORCED?function(e,t){e=trim(toString$5(e));return $parseInt$1(e,t>>>0||(exec$2(hex,e)?16:10))}:$parseInt$1,$$a=_export,$parseInt=numberParseInt,anObject$8=(_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt}),anObject$e),regexpFlags$1=function(){var e=anObject$8(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$8=fails$l,global$c=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$1=fails$8(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$8(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$8(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$7=fails$l,global$b=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$7(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$6=fails$l,global$a=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$6(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$b=functionCall,uncurryThis$9=functionUncurryThis,toString$4=toString$7,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$9("".charAt),indexOf=uncurryThis$9("".indexOf),replace$2=uncurryThis$9("".replace),stringSlice$4=uncurryThis$9("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$b(nativeExec,e,"a"),call$b(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,n,r,s,o,a,i=this,l=getInternalState(i),e=toString$4(e),c=l.raw;if(c)return c.lastIndex=i.lastIndex,u=call$b(patchedExec,c,e),i.lastIndex=c.lastIndex,u;var d=l.groups,c=UNSUPPORTED_Y&&i.sticky,u=call$b(regexpFlags,i),l=i.source,p=0,g=e;if(c&&(u=replace$2(u,"y",""),-1===indexOf(u,"g")&&(u+="g"),g=stringSlice$4(e,i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==charAt$3(e,i.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",u)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",u)),UPDATES_LAST_INDEX_WRONG&&(n=i.lastIndex),r=call$b(nativeExec,c?t:i,g),c?r?(r.input=stringSlice$4(r.input,p),r[0]=stringSlice$4(r[0],p),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&r&&(i.lastIndex=i.global?r.index+r[0].length:n),NPCG_INCLUDED&&r&&1<r.length&&call$b(nativeReplace,r[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)}),r&&d)for(r.groups=o=create(null),s=0;s<d.length;s++)o[(a=d[s])[0]]=r[a[1]];return r}:patchedExec,$$9=_export,exec$1=regexpExec$2,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$1},{exec:exec$1}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$a=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$a.bind(apply$2):function(){return call$a.apply(apply$2,arguments)}),uncurryThis$8=functionUncurryThis,defineBuiltIn$3=defineBuiltIn$7,regexpExec$1=regexpExec$2,fails$5=fails$l,wellKnownSymbol$9=wellKnownSymbol$i,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$9("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(n,e,t,r){var a,s=wellKnownSymbol$9(n),i=!fails$5(function(){var e={};return e[s]=function(){return 7},7!=""[n](e)}),o=i&&!fails$5(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});i&&o&&!t||(a=uncurryThis$8(/./[s]),o=e(s,""[n],function(e,t,n,r,s){var e=uncurryThis$8(e),o=t.exec;return o===regexpExec$1||o===RegExpPrototype$2.exec?i&&!s?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),defineBuiltIn$3(String.prototype,n,o[0]),defineBuiltIn$3(RegExpPrototype$2,s,o[1])),r&&createNonEnumerableProperty(RegExpPrototype$2[s],"sham",!0)},uncurryThis$7=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$3=toString$7,requireObjectCoercible$2=requireObjectCoercible$6,charAt$2=uncurryThis$7("".charAt),charCodeAt=uncurryThis$7("".charCodeAt),stringSlice$3=uncurryThis$7("".slice),createMethod=function(s){return function(e,t){var n,e=toString$3(requireObjectCoercible$2(e)),t=toIntegerOrInfinity$1(t),r=e.length;return t<0||r<=t?s?"":void 0:(n=charCodeAt(e,t))<55296||56319<n||t+1===r||(r=charCodeAt(e,t+1))<56320||57343<r?s?charAt$2(e,t):n:s?stringSlice$3(e,t,t+2):r-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$1=function(e,t,n){return t+(n?charAt$1(e,t).length:1)},uncurryThis$6=functionUncurryThis,toObject=toObject$4,floor=Math.floor,charAt=uncurryThis$6("".charAt),replace$1=uncurryThis$6("".replace),stringSlice$2=uncurryThis$6("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(o,a,i,l,c,e){var d=i+o.length,u=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject(c),t=SUBSTITUTION_SYMBOLS),replace$1(e,t,function(e,t){var n;switch(charAt(t,0)){case"$":return"$";case"&":return o;case"`":return stringSlice$2(a,0,i);case"'":return stringSlice$2(a,d);case"<":n=c[stringSlice$2(t,1,-1)];break;default:var r,s=+t;if(0==s)return e;if(u<s)return 0!==(r=floor(s/10))&&r<=u?void 0===l[r-1]?charAt(t,1):l[r-1]+charAt(t,1):e;n=l[s-1]}return void 0===n?"":n})},call$9=functionCall,anObject$7=anObject$e,isCallable$7=isCallable$n,classof$4=classofRaw$1,regexpExec=regexpExec$2,$TypeError$6=TypeError,regexpExecAbstract=function(e,t){var n=e.exec;if(isCallable$7(n))return null!==(n=call$9(n,e,t))&&anObject$7(n),n;if("RegExp"===classof$4(e))return call$9(regexpExec,e,t);throw $TypeError$6("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$8=functionCall,uncurryThis$5=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$4=fails$l,anObject$6=anObject$e,isCallable$6=isCallable$n,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$2,toString$2=toString$7,requireObjectCoercible$1=requireObjectCoercible$6,advanceStringIndex=advanceStringIndex$1,getMethod$2=getMethod$4,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol$8=wellKnownSymbol$i,REPLACE=wellKnownSymbol$i("replace"),max=Math.max,min=Math.min,concat=uncurryThis$5([].concat),push=uncurryThis$5([].push),stringIndexOf$1=uncurryThis$5("".indexOf),stringSlice$1=uncurryThis$5("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$4(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic("replace",function(e,S,b){var $=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var n=requireObjectCoercible$1(this),r=null==e?void 0:getMethod$2(e,REPLACE);return r?call$8(r,e,n,t):call$8(S,toString$2(n),e,t)},function(e,t){var n=anObject$6(this),r=toString$2(e);if("string"==typeof t&&-1===stringIndexOf$1(t,$)&&-1===stringIndexOf$1(t,"$<")){e=b(S,n,r,t);if(e.done)return e.value}for(var s,o=isCallable$6(t),a=(o||(t=toString$2(t)),n.global),i=(a&&(s=n.unicode,n.lastIndex=0),[]);null!==(u=regExpExec(n,r))&&(push(i,u),a);)""===toString$2(u[0])&&(n.lastIndex=advanceStringIndex(r,toLength(n.lastIndex),s));for(var l="",c=0,d=0;d<i.length;d++){for(var u,p=toString$2((u=i[d])[0]),g=max(min(toIntegerOrInfinity(u.index),r.length),0),m=[],f=1;f<u.length;f++)push(m,maybeToString(u[f]));var y=u.groups,h=o?(h=concat([p],m,g,r),void 0!==y&&push(h,y),toString$2(apply$1(t,void 0,h))):getSubstitution(p,r,g,m,y,t);c<=g&&(l+=stringSlice$1(r,c,g)+h,c=g+p.length)}return l+stringSlice$1(r,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const selectIsWeeklyValid=e=>e.processingCenterIngestion.scheduleStep.weekly.isWeeklyValid,selectWeeklyTimeslots=e=>e.processingCenterIngestion.scheduleStep.weekly.weeklyTimeslots,selectScheduleState=e=>e.processingCenterIngestion.scheduleStep,selectTimezone=e=>e.processingCenterIngestion.scheduleStep.timezone,selectFrequencySchedularState=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular,selectScheduleType=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.scheduleType,selectStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.startDate,selectEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.endDate,selectContinuousStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousStartDate,selectContinuousEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousEndDate,selectFrequency=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequency,selectNoEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.noEndDate,selectHoursInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.hoursInterval,selectDaysInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysInterval,selectDailyTimeslotOne=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotOne,selectDailyTimeslotTwo=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotTwo,selectDaysTimeslot=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysTimeslot,selectFrequencyIsValid=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequencyIsValid,selectSchedulePayload=e=>e.processingCenterIngestion.scheduleStep.schedulePayload,SHARED_TEXT={ingestionJobsWizard:{panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.title",defaultMessage:"Create Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.close",defaultMessage:"Close",description:"Panel close button for the Processing Center Wizard Create Schedule Panel"}),incompleteFieldsMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.incomplete-warning-message",defaultMessage:"Please complete all required fields",description:"Incomplete fields message for the Processing Center Wizard Next Button"}),someFieldsInvalidMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.invalid-fields-warning-message",defaultMessage:"Some fields are not valid",description:"Invalid fields message for the Processing Center Wizard Next Button"}),stepLabels:{selectSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.select-source",defaultMessage:"Select Source",description:"Stepper Title for the Processing Center Wizard Stepper Select Source"}),basicInfo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.basic-info",defaultMessage:"Basic Info",description:"Stepper Title for the Processing Center Wizard Stepper Basic Info"}),schedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.schedule",defaultMessage:"Schedule",description:"Stepper Title for the Processing Center Wizard Stepper Schedule"}),processing:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.processing",defaultMessage:"Processing",description:"Stepper Title for the Processing Center Wizard Stepper Processing"}),contentTemplates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.content-templates",defaultMessage:"Content Templates",description:"Stepper Title for the Processing Center Wizard Stepper Content Templates"}),location:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.location",defaultMessage:"Location",description:"Stepper Title for the Processing Center Wizard Stepper Location"})}},affiliatePanel:{panelHeaders:{addAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.add",defaultMessage:"Add an Affiliate",description:"Panel Title for Add an Affiliated Station"}),editAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.edit",defaultMessage:"Edit Affiliate Schedule",description:"Panel Title for Edit an Affiliated Station Schedule"}),bulkAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.bulk",defaultMessage:"Bulk Import Affiliates",description:"Panel Title for Bulk Add Affiliated Stations"})},tvAdapterText:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.title",defaultMessage:"Affiliated Stations",description:"Title for Affiliated Stations"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.subtitle",defaultMessage:"Assign affiliated stations that also broadcast programming from this ingestion source.",description:"Sub Title for Affiliated Stations"}),addAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.add-affiliate-btn",defaultMessage:"Add Affiliate",description:"Button text for Add Affiliate"}),bulkAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.bulk-add-affiliate-btn",defaultMessage:"Bulk Add Affiliates",description:"Button text for Bulk Add Affiliate"})},controls:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.cancel",defaultMessage:"Cancel",description:"Cancel button label"}),saveAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.save",defaultMessage:"Save Affiliate",description:"Save affiliate button label"}),editAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.edit",defaultMessage:"Edit Affiliate",description:"edit affiliate button label"}),bulkImport:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.bulk-import",defaultMessage:"Bulk Import",description:"Bulk Import button label"})},afilliateTable:{headerId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-id",defaultMessage:"Id",description:"table header Id"}),headerName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-name",defaultMessage:"Name",description:"table header name"}),headerStartDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-startdate",defaultMessage:"Start Date",description:"table header start date"}),headerEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-enddate",defaultMessage:"End Date",description:"table header end date"}),headerEditDelete:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-edit-delete",defaultMessage:"Edit / Delete",description:"table header edit or delete"}),scheduleTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-title-schedule",defaultMessage:"Schedule",description:"header for schedule"})},addAffiliateView:{},editAffiliateView:{},bulkAffiliateView:{}},timezonePicker:{editableCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.editable",defaultMessage:"The schedule will run in this timezone",description:"Caption displayed when the user is able to edit the time zone"}),sourceBasedCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.source-based",defaultMessage:"The timezone is set on the Source and can not be modified",description:"Caption displayed when the time zone is pinned to the source time zone"}),changeButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.change",defaultMessage:"Change",description:"Text on the button used to change the time zone"}),saveButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.save",defaultMessage:"Save",description:"Text on the button used to save time zone changes"})},processing:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.title",defaultMessage:"Processing",description:"Title for the processing section"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.subtitle",defaultMessage:"As data is ingested from this source, each data type will be processed with the selected engines you choose below.",description:"Sub Title for the location section"}),chooseTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.choose-template",defaultMessage:"Choose a Template",description:"Choose template label for the processing section"}),createNewTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.new-template-btn",defaultMessage:"Create a New Template",description:"Create new template button for the processing section"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.error-state",defaultMessage:"Unable to load templates",description:"Error message for the processing section"}),emptyState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.empty-state",defaultMessage:"No templates found",description:"empty state label for the processing section"})},location:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.title",defaultMessage:"Location",description:"Title for the location section of location and permissions"}),chooseLocationDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-folder",defaultMessage:"Choose the Data Center folder location where this content will be stored",description:"Explanation of what the folder selector is for"}),folderSelectorLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-label",defaultMessage:"Folder",description:"Label for the folder selector"}),chooseLocation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-location-button",defaultMessage:"Choose Location",description:"Choose folder"}),chooseHome:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-home-button",defaultMessage:"Choose Home",description:"Choose root folder"}),changeLocationButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.change-location-button",defaultMessage:"Change",description:"Change the location that files will be stored in"}),homeFolderLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.home-folder-label",defaultMessage:"Home",description:"Text displayed when the user hasn't chosen a specific folder"}),folderInputLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-input-label",defaultMessage:"Folder",description:"Label for folder selection"})},permissions:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.title",defaultMessage:"Permissions",description:"Title for the permissions section of location and permissions"}),managePermissionsDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.manage-permissions",defaultMessage:"Manage who can access the content that is imported with this Scheduled Job",description:"Explanation of what permission management is for"})},sourceSelectDefaultMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-default-select",defaultMessage:"Choose a Source",description:"default select text"}),sourceSelectTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-title",defaultMessage:"Select a Source",description:"title text"}),sourceSelectSubTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-subtitle",defaultMessage:"Select the data source for this scheduled job",description:"subtitle text"}),loadingSources:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-loading-sources",defaultMessage:"Loading Sources",description:"Search Filter by Source Schedule, loader message Loading Sources"}),retryButtonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-retry-button",defaultMessage:"Retry",description:"text for button to allow retry of failed api call"}),sourcesErrorMessageText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-error",defaultMessage:"There was an error loading the sources",description:"text for error with source fetching"}),sourcesNotFoundText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-not-found",defaultMessage:"No sources match your search name or source type.",description:"text for no sources found"}),createSourceButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-source",defaultMessage:"Create New Source",description:"button for create new source"}),advancedSettingsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-advanced-settings",defaultMessage:"Advanced Settings",description:"button for advanced settings for source"}),nextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-next-button",defaultMessage:"Next",description:"button for next step"}),cancelButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-cancel-button",defaultMessage:"Cancel",description:"button for cancel"}),backButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-back-button",defaultMessage:"Back",description:"button for back"}),skipButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-skip-button",defaultMessage:"Skip",description:"button for skip"}),createScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-job-button",defaultMessage:"Create Scheduled Job",description:"button for create job"}),frequencySchedular:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-title",defaultMessage:"Schedule",description:"title"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-subtitle",defaultMessage:"How often would you like to import new data from this source?",description:"subtitle"}),radioRecurring:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-recurring",defaultMessage:"Recurring",description:"radio label recurring"}),radioContinuous:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-continuous",defaultMessage:"Continuous",description:"radio label continuous"}),radioOnDemand:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-ondemand",defaultMessage:"On Demand",description:"radio label for on demand"}),errorNoSupportedTypes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-error-not-supported-schedule",defaultMessage:"This adapter does not have any supported schedule types.",description:"error message no supported schedule types"}),messageDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-daily",defaultMessage:"This schedule will run daily at the selected time below.",description:"message for daily selected"}),messageTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-twice-daily",defaultMessage:"This schedule will run twice daily at the selected times below.",description:"message for twice daily selected"}),messageHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-hours",defaultMessage:"Schedule this job to run at an hourly interval between 1 and 24 hours.",description:"message for hours selected"}),messageDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-days",defaultMessage:"Schedule this job to run at a daily interval that will start at the selected time below.",description:"message for days selected"}),messageMediaChunk:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk",defaultMessage:"Ingested content will have a set duration of",description:"message for media chunk"}),messageMediaChunkMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk-minutes",defaultMessage:"minutes",description:"message for media chunk minutes"}),changeMediaChunkButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-button-media-chunk-minutes",defaultMessage:"CHANGE",description:"button for media chunk minutes"}),textBetweenDates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-text-between-dates",defaultMessage:"to",description:"text between date selectors"}),startDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-start-date",defaultMessage:"Start Date",description:"label for start date"}),endDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-end-date",defaultMessage:"End Date",description:"label for end date"}),labelHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-hours",defaultMessage:"Hours",description:"label for Hours"}),labelDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-days",defaultMessage:"Days",description:"label for days"}),labelDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-daily",defaultMessage:"Daily",description:"label for daily"}),labelTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-twice-daily",defaultMessage:"Twice Daily",description:"label for twice daily"}),labelWeekly:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-weekly",defaultMessage:"Weekly",description:"label for weekly"}),labelNoEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-no-end",defaultMessage:"No End Date",description:"label for no end date"}),inputLabelFrequency:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-frequency",defaultMessage:"Frequency",description:"label for frequency input"}),inputLabelInterval:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-interval",defaultMessage:"Interval",description:"label for interval selector"}),labelMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"oprocessing-panel-ingestion-schedule-step-freq-minutes",defaultMessage:"Minutes",description:"text for minutes"}),labelMediaChunkLength:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-media-chunk",defaultMessage:"Media Chunk Length",description:"label for media chunk selector"}),onDemandMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-message",defaultMessage:"Data import will begin once an external event is triggered",description:"message for on demand"}),learnMore:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-learn-more",defaultMessage:"Learn More",description:"learn more link"})}},useStyles$8=makeStyles()(e=>({onDemandContainer:{background:"#FAFAFA",display:"flex",borderRadius:"4px",flexDirection:"row",justifyContent:"space-around",alignItems:"center",width:"464px",height:"60px",marginTop:"20px"},ingestionRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"650px",marginTop:"20px"},spaceAbove:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"660px",marginTop:"20px"},textBetweenDateContainer:{width:"auto",marginLeft:"15px",marginRight:"15px"},frequencyMessageContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginLeft:"15px",height:"55px",width:"auto"},daysHoursMessageContainer:{marginTop:" 15px",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"auto"},daysHoursMessage:{fontSize:"14px",color:"#000"},chunkButton:{fontSize:"14px",marginTop:"2px"},messageContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},frequencyMessage:{width:"100%"},intervalSelectContainer:{marginLeft:"10px",width:"75px"},frequencySelectContainer:{width:"167px"},noEndContainer:{marginLeft:"15px"},radioGroupContainer:{width:"100%"},timeslotTopMargin:{marginTop:"8px"},timeslotMenu:{marginTop:"20px",width:"260px !important"},timeslotStartMenu:{marginTop:"20px",display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",width:"124px !important",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}}})),useStyles$7=makeStyles()(e=>({container:{display:"flex",flexDirection:"column",gap:"20px"},dayBubblesContainer:{display:"flex",gap:"10px"},dayBubble:{height:"40px",width:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",fontWeight:"bold",cursor:"pointer",userSelect:"none",transition:"all 0.25s ease-in-out","&.disabled:active":{opacity:.5},"&.enabled:active":{opacity:.5},"&.disabled:hover":{backgroundColor:"rgba(24,113,232,0.2)"},"&.enabled:hover":{backgroundColor:"rgba(24,113,232,0.8)"},"&.enabled":{backgroundColor:"#1871E8",color:"#fff"},"&.disabled":{backgroundColor:"#F2F3F4",color:"#555F7C"}},timeslotsWidgetContainer:{display:"flex",gap:"15px",flexDirection:"column",width:"100%",overflowY:"scroll"},timeslotRow:{display:"flex",alignItems:"flex-start",gap:"10px"},timeslotDayLabel:{width:"15%",paddingTop:"5px"},timeslotList:{display:"flex",flexDirection:"column",gap:"15px"},timeslotMenu:{display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}},timeslotDelete:{position:"absolute",top:0,right:"-60px",opacity:0,transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},inputTime:{background:"transparent",border:"none",fontFamily:"sans-serif",padding:"8px 0px",outline:"none!important",color:"#2A323C",fontSize:"15px"},rowActions:{display:"flex",alignItems:"center",gap:"15px",opacity:0,paddingLeft:"10px",transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},rowDivider:{width:"1px",display:"flex",backgroundColor:"#979797",height:"30px"},rowCopyToAll:{display:"flex",alignItems:"center",gap:"10px"}})),WEEKLY_SCHEDULER_SHARED_TEXT={ui:{invalidTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.invalid-time-slot",defaultMessage:"This time window is not valid",description:"Processing Center Wizard Schedule Step, UI tooltip for invalid time slot"}),deleteTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.delete-time-slot",defaultMessage:"Delete time",description:"Processing Center Wizard Schedule Step, UI tooltip for delete time"}),addTimeWindow:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.add-time-window",defaultMessage:"Add time window",description:"Processing Center Wizard Schedule Step, UI tooltip for add time window"}),copyTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copy-time-to-all",defaultMessage:"Copy time to all",description:"Processing Center Wizard Schedule Step, UI text for copy time to all"}),copiedTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copied-time-to-all",defaultMessage:"Copied times",description:"Processing Center Wizard Schedule Step, UI text for copied times to all"}),replaceAllDayTimes:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.replace-all-day-times",defaultMessage:"This will replace all days selected time",description:"Processing Center Wizard Schedule Step, UI tooltip for replace all days times"}),changeTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.change-time",defaultMessage:"Change Time",description:"Processing Center Wizard Schedule Step, UI Text for change time"}),chooseLaterTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-later-time",defaultMessage:"Please select a later time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose later time"}),chooseEarlierTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-earlier-time",defaultMessage:"Please select an earlier time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose earlier time"})},days:{Su:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.sunday",defaultMessage:"Sunday",description:"Processing Center Wizard Schedule Step, day label for Sunday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.sunday",defaultMessage:"Add Sunday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable Sunday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.sunday",defaultMessage:"Remove all Sunday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable Sunday"})},M:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.monday",defaultMessage:"Monday",description:"Processing Center Wizard Schedule Step, day label for Monday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.monday",defaultMessage:"Add Monday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable monday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.monday",defaultMessage:"Remove all Monday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable monday"})},Tu:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.tuesday",defaultMessage:"Tuesday",description:"Processing Center Wizard Schedule Step, day label for Tuesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.tuesday",defaultMessage:"Add Tuesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable tuesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.tuesday",defaultMessage:"Remove all Tuesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable tuesday"})},W:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.wednesday",defaultMessage:"Wednesday",description:"Processing Center Wizard Schedule Step, day label for wednesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.wednesday",defaultMessage:"Add Wednesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable wednesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.wednesday",defaultMessage:"Remove all Wednesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable wednesday"})},Th:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.thursday",defaultMessage:"Thursday",description:"Processing Center Wizard Schedule Step, day label for Thursday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.thursday",defaultMessage:"Add Thursday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable thursday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.thursday",defaultMessage:"Remove all Thursday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable thursday"})},F:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.friday",defaultMessage:"Friday",description:"Processing Center Wizard Schedule Step, day label for Friday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.friday",defaultMessage:"Add Friday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable friday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.friday",defaultMessage:"Remove all Friday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable friday"})},Sa:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.saturday",defaultMessage:"Saturday",description:"Processing Center Wizard Schedule Step, day label for Saturday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.saturday",defaultMessage:"Add Saturday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable saturday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.saturday",defaultMessage:"Remove all Saturday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable saturday"})}}},TimeDropdown=({disabled:e,time:t,onChange:n,min:r,max:s,showTooltip:o})=>{var a=useStyles$7()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:o&&!e?WEEKLY_SCHEDULER_SHARED_TEXT.ui.changeTime:""},{children:jsxRuntime.exports.jsx("input",{disabled:e,"data-testid":"pc-wizard-schedule-weekly-timeslot",value:t,name:s?"start":"end",min:r||void 0,max:s||void 0,className:a.inputTime,type:"time",onChange:e=>{var{value:e,name:t}=e.target;n(e,t)}})}))})},TimeStartEndField=({timeslot:e,showDelete:t,day:r,onDelete:n,onChangeTime:s,disabled:o,id:a=""})=>{var i=useStyles$7()["classes"];const{id:l,start:c,end:d,isValid:u}=e;var e=i.timeslotMenu+" "+(u?"":"is-invalid"),p=(e,t)=>{let n;n="start"===t?createTimeslot(e,d,l,validateTimeWindow(e,d),!1):createTimeslot(c,e,l,validateTimeWindow(c,e),!1),s(n,l,r)};return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:u?"":WEEKLY_SCHEDULER_SHARED_TEXT.ui.invalidTimeslot},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e,"data-testid":"timeslot-field-row-"+a},{children:[jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:c,onChange:p,max:d,showTooltip:u}),jsxRuntime.exports.jsx("span",{children:"to"}),jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:d,onChange:p,min:c,showTooltip:u}),t&&jsxRuntime.exports.jsx("div",Object.assign({className:i.timeslotDelete},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.deleteTimeslot},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{r&&n&&n(r,l)},"data-testid":"pc-wizard-schedule-weekly-timeslot-button-delete"},{children:jsxRuntime.exports.jsx(Delete,{})}))}))}))]}))}))},selectSearchTerm=e=>e.processingCenterIngestion.sourceStep.sourceSearchTerm||"",selectSourceTypeId=e=>e.processingCenterIngestion.sourceStep.sourceTypeId||"",selectSourceSelected=e=>e.processingCenterIngestion.sourceStep.sourceSelected||null,selectOffset=e=>e.processingCenterIngestion.sourceStep.offset,selectError=e=>e.processingCenterIngestion.sourceStep.error,selectIsLoading=e=>e.processingCenterIngestion.sourceStep.isLoading,selectHasMore=e=>e.processingCenterIngestion.sourceStep.hasMore,selectSearchedSources=e=>e.processingCenterIngestion.sourceStep.searchedSources||[],selectMediaChunkLength=e=>e.processingCenterIngestion.sourceStep.mediaChunkLength,selectClusterSelected=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusterSelected,selectClustersError=e=>e.processingCenterIngestion.sourceStep.clusterSection.error,selectClustersIsLoading=e=>e.processingCenterIngestion.sourceStep.clusterSection.isLoading,selectClustersOffset=e=>e.processingCenterIngestion.sourceStep.clusterSection.offset,selectClusters=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusters||[],selectIsAffiliateSearch=e=>e.processingCenterIngestion.sourceStep.isAffiliateSearch,Frequency={Hours:"Hours",Days:"Days",Daily:"Daily",TwiceDaily:"TwiceDaily",Weekly:"Weekly"},podcastAdapterId="a725de38-f538-4c4a-b835-b0bd4ab1a255",FrequencySchedular=({activeEngine:e})=>{const t=useStyles$8()["classes"],n=useDispatch();var r=useSelector(selectMediaChunkLength),s=Number(useSelector(selectHoursInterval)),o=Number(useSelector(selectDaysInterval));const a=useSelector(selectDailyTimeslotOne),i=useSelector(selectDailyTimeslotTwo);var l=useSelector(selectDaysTimeslot),c=useSelector(selectScheduleType),d=useSelector(selectStartDate),u=useSelector(selectEndDate),p=useSelector(selectContinuousStartDate),g=useSelector(selectContinuousEndDate);const m=useSelector(selectFrequency);var f=useSelector(selectNoEndDate);const y=useSelector(selectTimezone),h=useSelector(selectFrequencySchedularState);RunMode.Recurring,RunMode.Continuous,RunMode.Once,RunMode.Now;e=e.id;react.exports.useEffect(()=>{n(actions$5.setFrequencyIsValid(validateFrequencyScheduler(h)))},[h]),react.exports.useEffect(()=>{var e;m===Frequency.Daily&&(e=generateDailyTimeslots(a),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,y)),n(actions$5.setDailyScheduleParts(e)))},[a,y,m]),react.exports.useEffect(()=>{var e;m===Frequency.TwiceDaily&&(e=generateDailyTimeslots(a,i),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,y)),n(actions$5.setTwiceDailyScheduleParts(e)))},[a,i,y,m]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"auto"}},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5"},{children:SHARED_TEXT.frequencySchedular.title()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsxs(RadioGroup,Object.assign({className:t.radioGroupContainer,row:!0,name:"schedule-type-radio-buttons-group",value:c,onChange:e=>{e=e.target.value;n(actions$5.resetFrequencyState()),n(actions$5.setScheduleType(e))}},{children:[jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-recurring",value:RunMode.Recurring,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioRecurring()}),jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-continuous",value:RunMode.Continuous,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioContinuous()})]}))})})]}),!1,c===RunMode.Recurring&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:d,onChange:e=>{e=e.target.value;n(actions$5.setStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(d,u,!f)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-end-date",id:"date",label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",disabled:f,value:u,onChange:e=>{e=e.target.value;n(actions$5.setEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(d,u,!f)})})}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.noEndContainer},{children:jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-no-end-date",control:jsxRuntime.exports.jsx(Checkbox,{checked:f,onChange:e=>{e=e.target.checked;n(actions$5.setNoEndDate(e))}}),label:SHARED_TEXT.frequencySchedular.labelNoEndDate()})}))})]})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({className:t.frequencySelectContainer},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({required:!0,shrink:!0,id:"frequency-label"},{children:SHARED_TEXT.frequencySchedular.inputLabelFrequency()})),jsxRuntime.exports.jsxs(Select,Object.assign({"data-testid":"ingestion-job-frequency-select-frequency",required:!0,labelId:"frequency-label",id:"frequency",value:m,label:SHARED_TEXT.frequencySchedular.inputLabelFrequency(),displayEmpty:!0,onChange:e=>{e=e.target.value;n(actions$5.setFrequency(e)),n(actions$5.resetFrequencyFields())}},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-hours",value:Frequency.Hours},{children:SHARED_TEXT.frequencySchedular.labelHours()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-days",value:Frequency.Days},{children:SHARED_TEXT.frequencySchedular.labelDays()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-daily",value:Frequency.Daily},{children:SHARED_TEXT.frequencySchedular.labelDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-twice-daily",value:Frequency.TwiceDaily},{children:SHARED_TEXT.frequencySchedular.labelTwiceDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-weekly",value:Frequency.Weekly},{children:SHARED_TEXT.frequencySchedular.labelWeekly()}))]}))]}))}),m===Frequency.Hours&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-hours",label:SHARED_TEXT.frequencySchedular.inputLabelInterval(),type:"number",InputLabelProps:{shrink:!0},value:s,onChange:e=>{e=Number(e.target.value);24<e||e<1||n(actions$5.setHoursInterval(e))}})}))}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-days",id:"outlined-number",label:"Interval",type:"number",InputLabelProps:{shrink:!0},value:o,onChange:e=>{e=Number(e.target.value);365<e||e<1||n(actions$5.setDaysInterval(e))}})}))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.frequencyMessageContainer},{children:m===Frequency.Daily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDaily()})):m===Frequency.TwiceDaily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-twice-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageTwiceDaily()})):m===Frequency.Hours?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-hours",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageHours()})):m===Frequency.Days?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-days",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDays()})):null}))]})),(m===Frequency.Daily||m===Frequency.TwiceDaily)&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot1",timeslot:a,onChangeTime:e=>{n(actions$5.setDailyTimeslotOne(e))}})})),m===Frequency.TwiceDaily&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot2",timeslot:i,onChangeTime:e=>{n(actions$5.setDailyTimeslotTwo(e))}})}))]}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotStartMenu},{children:jsxRuntime.exports.jsx(TimeDropdown,{"data-testid":"ingestion-job-frequency-days-start-time",time:l,onChange:e=>{n(actions$5.setDaysTimeslot(e))},max:"endTime",showTooltip:!1})})),(m===Frequency.Hours||m===Frequency.Days)&&podcastAdapterId!==e&&jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"ingestion-job-frequency-message-media-chunk",className:t.daysHoursMessageContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunk()})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:t.daysHoursMessage,sx:{fontWeight:"bold"}},{children:[" ",r," "]})),jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunkMinutes()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"ingestion-job-frequency-open-advanced",onClick:()=>{n(mountPanel({panelId:"PROCESSING_CENTER_ADVANCED_SETTINGS",microFrontend:{name:"PROCESSING_CENTER_ADVANCED_SETTINGS",config:{}},panelConfig:{header:{title:"Advanced Settings"},divider:!1,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1001,parentPanelId:"PROCESSING_CENTER_INGESTION",dimmed:0,dimmedStatus:"dimParent"}}))},className:t.chunkButton},{children:SHARED_TEXT.frequencySchedular.changeMediaChunkButton()}))]}))]}),c===RunMode.Continuous&&jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-start",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:p,onChange:e=>{e=e.target.value;n(actions$5.setContinuousStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-end",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:g,onChange:e=>{e=e.target.value;n(actions$5.setContinuousEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})})]}))]}))},getUTCDate=(e,t)=>{t+=getTimezoneOffset(e);try{return new Date(t).toISOString()}catch(e){return(new Date).toISOString()}},getTimezoneOffset=e=>{try{var t=(new Date).toLocaleTimeString("en-US",{timeZone:e,timeZoneName:"longOffset"}).split(" ").pop();return null==t?void 0:t.replace("GMT","")}catch(e){return console.error("The timezone could not be found - schedule will set in UTC time"),"+00:00"}},generateDailyTimeslots=(e,t)=>{var n={};for(const r of DAYS.ids)n[r]=[e],t&&n[r].push(t);return n},validateStartAndEndTime=(e,t,n)=>!(!n||!isAfter(new Date(e),new Date(t))),validateFrequencyScheduler=e=>{if(e.scheduleType!==RunMode.Once){if(e.scheduleType===RunMode.Recurring&&!e.noEndDate){if(!e.startDate||!e.endDate)return!1;if(isAfter(new Date(e.startDate),new Date(e.endDate)))return!1}if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.Daily&&!e.dailyTimeslotOne.isValid)return!1;if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.TwiceDaily){if(!e.dailyTimeslotOne.isValid)return!1;if(!e.dailyTimeslotTwo.isValid)return!1}if(e.scheduleType===RunMode.Continuous){if(!e.continuousStartDate||!e.continuousEndDate)return!1;if(isAfter(new Date(e.continuousStartDate),new Date(e.continuousEndDate)))return!1}}return!0},setApiPayload=e=>{var t,n={runMode:e.frequencySchedular.scheduleType};return e.frequencySchedular.scheduleType===RunMode.Recurring&&(t=e.frequencySchedular.startDate+"T00:00",n.startDateTime=getUTCDate(e.timezone,t),e.frequencySchedular.noEndDate||(t=e.frequencySchedular.endDate+"T23:59",n.stopDateTime=getUTCDate(e.timezone,t)),e.frequencySchedular.frequency===Frequency.Days&&(t=e.frequencySchedular.daysTimeslot+getTimezoneOffset(e.timezone),n.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.daysInterval,startTime:t}]),e.frequencySchedular.frequency===Frequency.Hours&&(n.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.hoursInterval}]),e.frequencySchedular.frequency===Frequency.Daily&&(n.weeklyScheduleParts=e.frequencySchedular.dailyScheduleParts),e.frequencySchedular.frequency===Frequency.TwiceDaily&&(n.weeklyScheduleParts=e.frequencySchedular.twiceDailyScheduleParts),e.frequencySchedular.frequency===Frequency.Weekly)&&(n.weeklyScheduleParts=e.weekly.weeklyScheduleParts),e.frequencySchedular.scheduleType===RunMode.Continuous&&(n.startDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousStartDate),n.stopDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousEndDate)),n},getNumericalTime=e=>{var[e,t]=e.split(":");return{hour:parseInt(e,10),min:parseInt(t,10)}},validateTimeWindow=(e,t)=>{e=getNumericalTime(e),t=getNumericalTime(t);return!(e.hour>t.hour||e.hour===t.hour&&e.min>=t.min)},validateAllTimeslots=e=>{for(const t of Object.keys(e))for(const n of e[t])if(!n.isValid)return!1;return!0},DEFAULT_TIMESLOT_TIMES={start:"09:00",end:"17:00"},createTimeslot=(e,t,n,r,s)=>({start:e,end:t,id:n,isValid:r,isConflict:s}),DAYS={labels:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ids:["Su","M","Tu","W","Th","F","Sa"]},getEnabledDays=e=>{var t=[];for(const n of Object.keys(e))e[n].length&&t.push(n);return t},initialTimeslots={Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},formatWeeklyPayload=(e,t)=>{var n=[];for(const i of Object.keys(e)){var r=DAYS.labels[DAYS.ids.indexOf(i)];for(const l of e[i]){var{start:s,end:o,isValid:a}=l,s={scheduledDay:r,startTime:s+getTimezoneOffset(t),stopTime:o+getTimezoneOffset(t)};a&&n.push(s)}}return n},namespace$5="scheduleStep",RunMode={Continuous:"Continuous",Recurring:"Recurring",Once:"Once",Now:"Now"},initialState$4={timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,frequencySchedular:{scheduleType:RunMode.Recurring,startDate:format(new Date,"yyyy-MM-dd"),endDate:format(addDays(new Date,1),"yyyy-MM-dd"),continuousStartDate:(new Date).toISOString().slice(0,16),continuousEndDate:addDays(new Date,1).toISOString().slice(0,16),hoursInterval:1,daysInterval:1,frequency:"Weekly",daysTimeslot:"09:00",dailyTimeslotOne:{id:"timeslotOne",start:"09:00",end:"11:00",isConflict:!1,isValid:!0},dailyTimeslotTwo:{id:"timeslotTwo",start:"13:00",end:"15:00",isConflict:!1,isValid:!0},noEndDate:!0,dailyScheduleParts:[],twiceDailyScheduleParts:[],frequencyIsValid:!0},weekly:{isWeeklyValid:!0,weeklyTimeslots:{Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},weeklyScheduleParts:[]},schedulePayload:{runMode:"",startDateTime:""}},scheduleStepSlice=createSlice({name:"scheduleStep",initialState:initialState$4,reducers:{setTimezone:(e,{payload:t})=>{e.timezone=t},setIsWeeklyValid:(e,{payload:t})=>{e.weekly.isWeeklyValid=t},setWeeklyTimeslots:(e,t)=>{t=t.payload;e.weekly.weeklyTimeslots=t},setWeeklyScheduleParts:(e,t)=>{t=t.payload;e.weekly.weeklyScheduleParts=t},clearWeeklyScheduleParts:e=>{e.weekly.weeklyScheduleParts=[]},setDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.dailyScheduleParts=t},setTwiceDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.twiceDailyScheduleParts=t},resetFrequencyState:e=>{e.frequencySchedular=initialState$4.frequencySchedular},resetFrequencyFields:e=>{e.frequencySchedular.dailyTimeslotOne=initialState$4.frequencySchedular.dailyTimeslotOne,e.frequencySchedular.dailyTimeslotTwo=initialState$4.frequencySchedular.dailyTimeslotTwo,e.frequencySchedular.hoursInterval=initialState$4.frequencySchedular.hoursInterval,e.frequencySchedular.daysInterval=initialState$4.frequencySchedular.daysInterval,e.frequencySchedular.daysTimeslot=initialState$4.frequencySchedular.daysTimeslot,e.frequencySchedular.dailyScheduleParts=initialState$4.frequencySchedular.dailyScheduleParts,e.frequencySchedular.twiceDailyScheduleParts=initialState$4.frequencySchedular.twiceDailyScheduleParts},setScheduleType:(e,{payload:t})=>{e.frequencySchedular.scheduleType=t},setStartDate:(e,{payload:t})=>{e.frequencySchedular.startDate=t},setEndDate:(e,{payload:t})=>{e.frequencySchedular.endDate=t},setContinuousStartDate:(e,{payload:t})=>{e.frequencySchedular.continuousStartDate=t},setContinuousEndDate:(e,{payload:t})=>{e.frequencySchedular.continuousEndDate=t},setFrequency:(e,{payload:t})=>{e.frequencySchedular.frequency=t},setNoEndDate:(e,{payload:t})=>{e.frequencySchedular.noEndDate=t},setHoursInterval:(e,{payload:t})=>{e.frequencySchedular.hoursInterval=t},setDaysInterval:(e,{payload:t})=>{e.frequencySchedular.daysInterval=t},setDailyTimeslotOne:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotOne=t},setDailyTimeslotTwo:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotTwo=t},setDaysTimeslot:(e,{payload:t})=>{e.frequencySchedular.daysTimeslot=t},setFrequencyIsValid:(e,{payload:t})=>{e.frequencySchedular.frequencyIsValid=t},setSchedulePayload:(e,{payload:t})=>{e.schedulePayload=t}}}),actions$5=scheduleStepSlice.actions;var scheduleStep_slice=scheduleStepSlice.reducer;const namespace$4="basicInfoStep",initialState$3={scheduleName:"",sourceDetails:{},error:null,isLoading:!1,isInvalidFields:!1,programs:[],basicInfoMeta:{affiliates:{}}},basicInfoSlice=createSlice({name:"basicInfoStep",initialState:initialState$3,reducers:{getProgramsStart:e=>{e.isLoading=!0},setScheduleName:(e,t)=>{t=t.payload;e.scheduleName=t},setSourceDetails:(e,t)=>{t=t.payload;e.sourceDetails=t},setPrograms:(e,t)=>{t=t.payload;e.programs=t,e.isLoading=!1},setError:(e,{payload:t})=>{e.error=t},setBasicInfoMeta:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),e.basicInfoMeta[null==t?void 0:t.key]=e.basicInfoMeta[null==t?void 0:t.key]||null,e.basicInfoMeta[null==t?void 0:t.key]=(null==t?void 0:t.meta)||null},setInvalidFields:(e,{payload:t})=>{e.isInvalidFields=t},addEditAffiliate:(e,{payload:t})=>{var n=t["source"];e.basicInfoMeta&&(e.basicInfoMeta.affiliates[n.id]=t)},deleteAffiliate:(e,{payload:t})=>{var n;e.basicInfoMeta&&(delete(n=lodash.exports.cloneDeep(e.basicInfoMeta.affiliates))[t],e.basicInfoMeta.affiliates=n)},setImage:(e,{})=>{},deleteImageUrl:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),delete e.basicInfoMeta[null==t?void 0:t.key]}}}),actions$4=basicInfoSlice.actions;var basicInfoStep_slice=basicInfoSlice.reducer;const namespace$3="processingStep",initialState$2={dagTemplateId:void 0,loadingStatus:LoadingStatus.Idle,allDagTemplates:[],offset:0,hasMore:!0},processingSlice=createSlice({name:"processingStep",initialState:initialState$2,reducers:{fetchDagTemplatesStart:e=>{e.loadingStatus=LoadingStatus.Pending},fetchDagTemplatesSucceeded:(n,e)=>{n.loadingStatus=LoadingStatus.Complete,e.payload.forEach(t=>{var e=n.allDagTemplates.findIndex(e=>e.id===t.id);-1===e?n.allDagTemplates.push(t):n.allDagTemplates.splice(e,1,t)})},fetchDagTemplatesFailed:e=>{e.loadingStatus=LoadingStatus.Failed},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setDagTemplateId:(e,t)=>{t=t.payload;e.dagTemplateId=t},clearDagTemplateId:e=>{e.dagTemplateId=void 0}}}),actions$3=processingSlice.actions;var processingStep_slice=processingSlice.reducer;const namespace$2="location",initialState$1={selectedFolderId:void 0},locationSlice=createSlice({name:"location",initialState:initialState$1,reducers:{setSelectedFolderId:(e,{payload:t})=>{e.selectedFolderId=t}}}),actions$2=locationSlice.actions;var location_slice=locationSlice.reducer;const namespace$1="permissions",initialState={permissionsPayload:void 0},permissionsSlice=createSlice({name:"permissions",initialState:initialState,reducers:{setPermissionsPayload:(e,{payload:t})=>{e.permissionsPayload=t}}}),actions$1=permissionsSlice.actions;var permissions_slice=permissionsSlice.reducer;const selectSelectedFolderId=e=>e[SLICE_NAME][namespace$2].selectedFolderId;var locationSelectors=Object.freeze({__proto__:null,selectSelectedFolderId:selectSelectedFolderId});const selectPermissionsPayload=e=>e[SLICE_NAME][namespace$1].permissionsPayload;var permissionsSelectors=Object.freeze({__proto__:null,selectPermissionsPayload:selectPermissionsPayload});const selectors={location:locationSelectors,permissions:permissionsSelectors},namespace=SLICE_NAME,actions={[namespace$8]:actions$8,[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$8]:uiState,[namespace$7]:ingestionJobsWizard_slice,[namespace$6]:selectSourceStep_slice,[namespace$5]:scheduleStep_slice,[namespace$4]:basicInfoStep_slice,[namespace$3]:processingStep_slice,[namespace$2]:location_slice,[namespace$1]:permissions_slice}),selectUIStateStatus=e=>e[namespace].uiState.status,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n}));function __rest(e,t){var n={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]]);return n}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(n,t){function r(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?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,s)}o((l=l.apply(e,a||[])).next())})}function getSourcesBySearchTerm(t,n=0,r,s,o,a){return __awaiter(this,void 0,void 0,function*(){var e="getSourcesSearch";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getSourcesSearch($sourceTypeIds: [ID!], $offset: Int, $name: String, $limit: Int, $includePublic: Boolean ){\n sources(\n sourceTypeIds: $sourceTypeIds,\n offset: $offset,\n limit: $limit,\n name: $name,\n includePublic: $includePublic,\n permission: owner,\n nameMatch: contains,\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n sourceTypeId\n thumbnailUrl\n createdDateTime\n modifiedDateTime\n permission,\n details,\n sourceType {\n name,\n sourceSchema {\n definition\n }\n }\n }\n }\n }\n ",operationName:e,variables:{sourceTypeIds:s,name:r,offset:n,limit:o,includePublic:a}},t))).sources})}function getClusters(t,n=0,r){return __awaiter(this,void 0,void 0,function*(){var e="getClusters";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getClusters($offset: Int, $limit: Int ){\n clusters(\n offset: $offset,\n limit: $limit,\n edgeVersion: 3\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n type\n controllerUrl\n allowedEngines\n edgeVersion\n paused\n default\n bypassAllowedEngines\n }\n }\n }\n ",operationName:e,variables:{offset:n,limit:r}},t))).clusters})}function*sourcesSearchTermSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectOffset),n=yield select(selectSourceTypeId),r=yield select(selectSearchTerm),s=yield select(selectIsAffiliateSearch),o=yield call$j(getSourcesBySearchTerm,e,t,r,n,30,s);yield put(actions$6.sourcesSearchSucceeded(o.records)),30===o.count?yield put(actions$6.setHasMore(!0)):yield put(actions$6.setHasMore(!1)),yield put(actions$6.setOffset(t+30))}catch(e){yield put(actions$6.setError(e))}}function*clusterSearchSaga(){try{var e,t,n=yield select(selectApiConfigs),r=yield select(selectClustersOffset),s=yield call$j(getClusters,n,r,30);yield put(actions$6.clustersSearchSucceeded(s.records)),30===s.count?(yield put(actions$6.clustersSetHasMore(!0)),yield put(actions$6.clustersSetOffset(r+30)),yield put(actions$6.clustersSearchStart())):(t=(e=yield select(selectClusters)).map(e=>e.default).indexOf(!0),(yield select(selectClusterSelected))||(yield put(actions$6.setSelectedCluster(e[t]||null))),yield put(actions$6.clustersSetOffset(r+30)),yield put(actions$6.clustersSetHasMore(!1)))}catch(e){yield put(actions$6.clusterSetError(e))}}function*getSourcesSearchTermWatcher(){yield takeLatest$1(actions$6.sourcesSearchStart.type,sourcesSearchTermSaga)}function*getClusterSearchWatcher(){yield takeLatest$1(actions$6.clustersSearchStart.type,clusterSearchSaga)}function getDagTemplates(t,n=0,r){return __awaiter(this,void 0,void 0,function*(){var e="getDagTemplates";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getDagTemplates($offset: Int, $limit: Int ){\n dagTemplates(\n offset: $offset,\n limit: $limit,\n ) {\n records {\n id\n description\n cognitiveCategoryId\n mimeType\n name\n dag\n dagTemplateLanguage\n targetOrganizationId\n tags\n }\n }\n }\n ",operationName:e,variables:{offset:n,limit:r}},t))).dagTemplates})}const selectAllDagTemplates=e=>e.processingCenterIngestion.processingStep.allDagTemplates||[],selectDagTemplateId=e=>e.processingCenterIngestion.processingStep.dagTemplateId||"",selectDagTemplatesLoadingStatus=e=>e.processingCenterIngestion.processingStep.loadingStatus,selectDagTemplatesOffset=e=>e.processingCenterIngestion.processingStep.offset,selectDagTemplatesHasMore=e=>e.processingCenterIngestion.processingStep.hasMore;function*fetchDagTemplatesSaga(){var e;try{var t=yield select(selectApiConfigs),n=yield select(selectDagTemplatesOffset),r=yield call$j(getDagTemplates,t,n,100);yield put(actions$3.fetchDagTemplatesSucceeded(r.records)),100===(null==(e=null==r?void 0:r.records)?void 0:e.length)?yield put(actions$3.setHasMore(!0)):yield put(actions$3.setHasMore(!1)),yield put(actions$3.setOffset(n+100))}catch(e){yield put(actions$3.fetchDagTemplatesFailed())}}function*fetchDagTemplatesWatcher(){yield takeLatest$1(actions$3.fetchDagTemplatesStart.type,fetchDagTemplatesSaga)}var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace,stringSlice,call$7=functionCall,hasOwn$2=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn$2(e,"flags")||!isPrototypeOf$3(RegExpPrototype$1,e)?t:call$7(regExpFlags,e)},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn$2=defineBuiltIn$7,anObject$5=anObject$e,$toString=toString$7,fails$3=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$3(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME&&n$ToString.name!=TO_STRING,$$8=((NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$2(RegExp.prototype,TO_STRING,function(){var e=anObject$5(this);return"/"+$toString(e.source)+"/"+$toString(getRegExpFlags(e))},{unsafe:!0}),_export),DESCRIPTORS$1=descriptors,global$9=global$o,uncurryThis$4=functionUncurryThis,hasOwn$1=hasOwnProperty_1,isCallable$5=isCallable$n,isPrototypeOf$2=objectIsPrototypeOf,toString$1=toString$7,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$9.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function getPrograms(t,n){var r;return __awaiter(this,void 0,void 0,function*(){var e="getPrograms",e=yield baseGraphQLApiWithError(Object.assign({query:`
1
+ import{c0 as createSvgIcon,j as jsxRuntime,H as createSlice,m as makeStyles,F as FormattedMessage,p as lodash,c9 as combineReducers,ca as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,bz as CacheProvider,bA as muiCache,cc as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,i as useDispatch,k as useSelector,r as react,B as Box,v as FormControl,w as TextField,eM as InputLabel,aV as Select,au as Button,af as Skeleton,aW as MenuItem,T as Typography,a5 as all,ab as Tooltip,ac as IconButton,bX as Hide,b0 as Tabs,gN as tabsClasses,b1 as Tab,ff as selectIsOLPEnabled,ck as unmountPanel,co as mountPanel,cn as hidePanel,L as LoadingButton,aa as Divider,az as CircularProgress,bN as RadioGroup,ar as FormControlLabel,b_ as Radio,as as Checkbox,ag as takeLatest$1,aj as select,al as call$j,ai as put,M as preferredLanguageSelector,cq as userSelector,bY as showMessage,bZ as MessageSeverity,b4 as AIWareFormatMessage,fE as CheckCircle,cB as baseGraphQLApiWithError}from"./js-core.esm.js";import{getDataCenterBrowseModule,selectors as selectors$1,actions as actions$9,Types as index}from"./js-core.esm45.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave}from"./js-core.esm68.js";import"./js-core.esm47.js";import{F as FixedSizeList}from"./js-core.esm32.js";import{d as debounce_1,I as InfiniteLoader}from"./js-core.esm48.js";import{d as default_1}from"./js-core.esm8.js";import{v as v4}from"./js-core.esm50.js";import{A as Autocomplete}from"./js-core.esm24.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm53.js";import{S as Search}from"./js-core.esm10.js";import{D as Delete}from"./js-core.esm69.js";import{C as ContentCopy}from"./js-core.esm51.js";var match$2,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,LoadingStatus,AddCircleOutline=createSvgIcon(jsxRuntime.exports.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"),FolderOpen=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen"),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$o=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$i=Function.prototype.call,functionCall=NATIVE_BIND$3?call$i.bind(call$i):function(){return call$i.apply(call$i,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,bind$5=FunctionPrototype$2.bind,call$h=FunctionPrototype$2.call,uncurryThis$n=NATIVE_BIND$2&&bind$5.bind(call$h,call$h),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$n(e)}:function(e){return e&&function(){return call$h.apply(e,arguments)}},uncurryThis$m=functionUncurryThis,toString$9=uncurryThis$m({}.toString),stringSlice$5=uncurryThis$m("".slice),classofRaw$1=function(e){return stringSlice$5(toString$9(e),8,-1)},uncurryThis$l=functionUncurryThis,fails$i=fails$l,classof$7=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$i(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$d=TypeError,requireObjectCoercible$6=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$5=requireObjectCoercible$6,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$5(e))},isCallable$n=function(e){return"function"==typeof e},isCallable$m=isCallable$n,isObject$8=function(e){return"object"==typeof e?null!==e:isCallable$m(e)},global$n=global$o,isCallable$l=isCallable$n,aFunction=function(e){return isCallable$l(e)?e:void 0},getBuiltIn$8=function(e,t){return arguments.length<2?aFunction(global$n[e]):global$n[e]&&global$n[e][t]},uncurryThis$k=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$7=getBuiltIn$8,engineUserAgent=getBuiltIn$8("navigator","userAgent")||"",global$m=global$o,userAgent$3=engineUserAgent,process$3=global$m.process,Deno$1=global$m.Deno,versions=process$3&&process$3.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match$2=v8.split("."))[0]&&match$2[0]<4?1:+(match$2[0]+match$2[1]):version)&&userAgent$3&&(!(match$2=userAgent$3.match(/Edge\/(\d+)/))||74<=match$2[1])&&(match$2=userAgent$3.match(/Chrome\/(\d+)/))?+match$2[1]:version,V8_VERSION$1=engineV8Version,fails$h=fails$l,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$h(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$8,isCallable$k=isCallable$n,isPrototypeOf$4=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$k(t)&&isPrototypeOf$4(t.prototype,$Object$3(e))},$String$3=String,tryToString$4=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$j=isCallable$n,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$7=function(e){if(isCallable$j(e))return e;throw $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$6=aCallable$7,getMethod$4=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$g=functionCall,isCallable$i=isCallable$n,isObject$7=isObject$8,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$i(n=e.toString)&&!isObject$7(r=call$g(n,e)))return r;if(isCallable$i(n=e.valueOf)&&!isObject$7(r=call$g(n,e)))return r;if("string"!==t&&isCallable$i(n=e.toString)&&!isObject$7(r=call$g(n,e)))return r;throw $TypeError$b("Can't convert object to primitive value")},shared$4={exports:{}},global$l=global$o,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$6(global$l,t,{value:n,configurable:!0,writable:!0})}catch(e){global$l[t]=n}return n},global$k=global$o,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$o[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$4=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$6),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$4(e))},uncurryThis$j=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$i=functionUncurryThis,id=0,postfix=Math.random(),toString$8=uncurryThis$i(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$8(++id+postfix,36)},global$j=global$o,shared$3=shared$4.exports,hasOwn$b=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$3("wks"),Symbol$2=global$j.Symbol,symbolFor=Symbol$2&&Symbol$2.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$i=function(e){var t;return hasOwn$b(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$b(Symbol$2,e)?WellKnownSymbolsStore[e]=Symbol$2[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$f=functionCall,isObject$6=isObject$8,isSymbol$1=isSymbol$2,getMethod$3=getMethod$4,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$i("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$6(e)||isSymbol$1(e))return e;var n=getMethod$3(e,TO_PRIMITIVE);if(n){if(n=call$f(n,e,t=void 0===t?"default":t),!isObject$6(n)||isSymbol$1(n))return n;throw $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$i=global$o,isObject$5=isObject$8,document$3=global$o.document,EXISTS$1=isObject$5(document$3)&&isObject$5(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$b=descriptors,fails$g=fails$l,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$l(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$a=descriptors,call$e=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$a=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$a?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$a(e,t))return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$9=descriptors,fails$f=fails$l,v8PrototypeDefineBug=descriptors&&fails$l(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$4=isObject$8,$String$2=String,$TypeError$9=TypeError,anObject$e=function(e){if(isObject$4(e))return e;throw $TypeError$9($String$2(e)+" is not an object")},DESCRIPTORS$8=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey=toPropertyKey$2,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$7=(objectDefineProperty.f=DESCRIPTORS$8?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$d(e),t=toPropertyKey(t),anObject$d(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$d(e),t=toPropertyKey(t),anObject$d(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$8("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$5=DESCRIPTORS$7?function(e,t,n){return definePropertyModule$4.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$6=descriptors,hasOwn$9=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$6&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$9(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$6||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$h=functionUncurryThis,isCallable$h=isCallable$n,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$4=(isCallable$h(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$h=global$o,isCallable$g=isCallable$n,inspectSource$3=inspectSource$4,WeakMap$1=global$o.WeakMap,nativeWeakMap=isCallable$g(WeakMap$1)&&/native code/.test(inspectSource$3(WeakMap$1)),shared$2=shared$4.exports,uid=uid$2,keys=shared$2("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=nativeWeakMap,global$g=global$o,uncurryThis$g=functionUncurryThis,isObject$3=isObject$8,createNonEnumerableProperty$4=createNonEnumerableProperty$5,hasOwn$8=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$g.TypeError,WeakMap=global$g.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$3(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared$1.state?(store=shared$1.state||(shared$1.state=new WeakMap),wmget=uncurryThis$g(store.get),wmhas=uncurryThis$g(store.has),wmset=uncurryThis$g(store.set),set$1=function(e,t){if(wmhas(store,e))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$8(e,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$4(e,STATE,t),t},get=function(e){return hasOwn$8(e,STATE)?e[STATE]:{}},function(e){return hasOwn$8(e,STATE)}),{set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$e=fails$l,isCallable$f=isCallable$n,hasOwn$7=hasOwnProperty_1,DESCRIPTORS$5=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$4,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$2=InternalStateModule$2.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$5&&!fails$e(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$7(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$5?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$7(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$7(n,"constructor")&&n.constructor?DESCRIPTORS$5&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$7(n,"source")||(n.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$e=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$f(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$n),definePropertyModule$3=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$7=function(e,t,n,r){var s=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(isCallable$e(n)&&makeBuiltIn(n,o,r),r.global)s?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=n:definePropertyModule$3.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$1=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$1:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$4=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$3=toIntegerOrInfinity$4,max$1=Math.max,min$2=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$1(e+t,0):min$2(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$1=Math.min,toLength$2=function(e){return 0<e?min$1(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$1=toLength$2,lengthOfArrayLike$2=function(e){return toLength$1(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$2=function(i){return function(e,t,n){var r,s=toIndexedObject$3(e),o=lengthOfArrayLike$1(s),a=toAbsoluteIndex(n,o);if(i&&t!=t){for(;a<o;)if((r=s[a++])!=r)return!0}else for(;a<o;a++)if((i||a in s)&&s[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$f=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$1=uncurryThis$f([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),s=0,o=[];for(n in r)!hasOwn$6(hiddenKeys$2,n)&&hasOwn$6(r,n)&&push$1(o,n);for(;t.length>s;)!hasOwn$6(r,n=t[s++])||~indexOf$1(o,n)||push$1(o,n);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$8),uncurryThis$e=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$2(t,n(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$2=function(e,t,n){for(var r=ownKeys(t),s=definePropertyModule$2.f,o=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var i=r[a];hasOwn$5(e,i)||n&&hasOwn$5(n,i)||s(e,i,o(t,i))}},fails$d=fails$l,isCallable$d=isCallable$n,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$d(t)?fails$d(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$6=defineBuiltIn$7,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var n,r,s,o=e.target,a=e.global,i=e.stat,l=a?global$f:i?global$f[o]||defineGlobalProperty(o,{}):(global$f[o]||{}).prototype;if(l)for(n in t){if(r=t[n],s=e.dontCallGetSet?(s=getOwnPropertyDescriptor$1(l,n))&&s.value:l[n],!isForced$1(a?n:o+(i?".":"#")+n,e.forced)&&void 0!==s){if(typeof r==typeof s)continue;copyConstructorProperties$1(r,s)}(e.sham||s&&s.sham)&&createNonEnumerableProperty$3(r,"sham",!0),defineBuiltIn$6(l,n,r,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$4=descriptors,uncurryThis$d=functionUncurryThis,call$d=functionCall,fails$c=fails$l,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$2=toObject$4,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat$1=uncurryThis$d([].concat),objectAssign=!$assign||fails$c(function(){var e,t,n,r;return!(!DESCRIPTORS$4||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys$1($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$2(e),r=arguments.length,s=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;s<r;)for(var i,l=IndexedObject(arguments[s++]),c=o?concat$1(objectKeys$1(l),o(l)):objectKeys$1(l),d=c.length,u=0;u<d;)i=c[u++],DESCRIPTORS$4&&!call$d(a,l,i)||(n[i]=l[i]);return n}:$assign,$$c=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="processingCenterIngestion",namespace$8=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending",e.Complete="complete"}(LoadingStatus=LoadingStatus||{}),"uiState"),initialState$7={status:LoadingStatus.Idle},slice=createSlice({name:SLICE_NAME+"/"+namespace$8,initialState:initialState$7,reducers:{init(e){e.status=LoadingStatus.Pending},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed}}}),actions$8=slice.actions;var uiState=slice.reducer;const namespace$7="ingestionJobsWizard",initialState$6={activeStep:1,steps:[{number:1,completed:!1},{number:2,completed:!1},{number:3,completed:!1},{number:4,completed:!1},{number:5,completed:!1},{number:6,completed:!1}],activeEngine:{},scheduledJobId:"",saveStatus:LoadingStatus.Idle,isFullScreen:!1,isEditMode:!1},ingestionJobsWizardSlice=createSlice({name:"ingestionJobsWizard",initialState:initialState$6,reducers:{nextStep:e=>{var t=e["activeStep"];t!==e.steps.length&&(e.steps[t-1].completed=!0,e.activeStep=t+1)},backStep:e=>{var t=e["activeStep"];1!==t&&(e.activeStep=t-1)},goToStep:(e,t)=>{e.activeStep=t.payload},setActiveEngine:(e,t)=>{e.activeEngine=t.payload},setScheduledJobId:(e,t)=>{e.scheduledJobId=t.payload},saveScheduledJobStart:e=>{e.saveStatus=LoadingStatus.Pending},saveScheduledJobSuccess:e=>{e.saveStatus=LoadingStatus.Complete},saveScheduledJobFailure:e=>{e.saveStatus=LoadingStatus.Failed},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload},setIsEditMode:(e,t)=>{e.isEditMode=t.payload}}}),actions$7=ingestionJobsWizardSlice.actions;var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,ingestionJobsWizard_slice=ingestionJobsWizardSlice.reducer,objectDefineProperties={},DESCRIPTORS$3=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$b=anObject$e,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$3&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$b(e);for(var n,r=toIndexedObject$1(t),s=objectKeys(t),o=s.length,a=0;a<o;)definePropertyModule$1.f(e,n=s[a++],r[n]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$a=anObject$e,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$a(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$g=wellKnownSymbol$i,create$2=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$g("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$2(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$b=fails$l,correctPrototypeGetter=!fails$l(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$4=hasOwnProperty_1,isCallable$c=isCallable$n,toObject$1=toObject$4,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){var t,e=toObject$1(e);return hasOwn$4(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$c(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$a=fails$l,isCallable$b=isCallable$n,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$5=defineBuiltIn$7,wellKnownSymbol$f=wellKnownSymbol$i,ITERATOR$6=wellKnownSymbol$i("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails$a(function(){var e={};return IteratorPrototype$2[ITERATOR$6].call(e)!==e})),iteratorsCore=(isCallable$b((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$6])||defineBuiltIn$5(IteratorPrototype$2,ITERATOR$6,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$3=hasOwnProperty_1,wellKnownSymbol$e=wellKnownSymbol$i,TO_STRING_TAG$3=wellKnownSymbol$i("toStringTag"),setToStringTag$3=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn$3(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,n,r){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$2(e,t,!1),Iterators$4[t]=returnThis$1,e},isCallable$a=isCallable$n,$String$1=String,$TypeError$7=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$a(e))return e;throw $TypeError$7("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$c=functionUncurryThis,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThis$c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$9(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),$$b=_export,call$c=functionCall,FunctionName=functionName,isCallable$9=isCallable$n,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$2=createNonEnumerableProperty$5,defineBuiltIn$4=defineBuiltIn$7,wellKnownSymbol$d=wellKnownSymbol$i,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME$1=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$5=wellKnownSymbol$d("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,n,r,s,o,a){createIteratorConstructor(n,t,r);function i(e){if(e===s&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in u)return u[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",d=!1,u=e.prototype,p=u[ITERATOR$5]||u["@@iterator"]||s&&u[s],g=!BUGGY_SAFARI_ITERATORS&&p||i(s),m="Array"==t&&u.entries||p;if(m&&(m=getPrototypeOf(m.call(new e)))!==Object.prototype&&m.next&&(getPrototypeOf(m)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(m,IteratorPrototype):isCallable$9(m[ITERATOR$5])||defineBuiltIn$4(m,ITERATOR$5,returnThis)),setToStringTag$1(m,r,!0)),PROPER_FUNCTION_NAME$1&&s==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(u,"name",VALUES):(d=!0,g=function(){return call$c(p,this)})),s)if(l={values:i(VALUES),keys:o?g:i(KEYS),entries:i(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!d&&c in u||defineBuiltIn$4(u,c,l[c]);else $$b({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||d},l);return u[ITERATOR$5]!==g&&defineBuiltIn$4(u,ITERATOR$5,g,{name:s}),Iterators$3[t]=g,l},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$1=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$2=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$1=InternalStateModule$1.set,getInternalState$1=InternalStateModule$1.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$1(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$2&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$e=global$o,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty$1=createNonEnumerableProperty$5,wellKnownSymbol$c=wellKnownSymbol$i,ITERATOR$4=wellKnownSymbol$c("iterator"),TO_STRING_TAG$2=wellKnownSymbol$c("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$4]!==ArrayValues)try{createNonEnumerableProperty$1(t,ITERATOR$4,ArrayValues)}catch(e){t[ITERATOR$4]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty$1(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var n in ArrayIteratorMethods)if(t[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty$1(t,n,ArrayIteratorMethods[n])}catch(e){t[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$e[COLLECTION_NAME]&&global$e[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const namespace$6="sourceStep",initialState$5={isAffiliateSearch:!1,sourceSearchTerm:"",sourceTypeId:[],searchedSources:[],sourceSelected:null,isLoading:!1,error:null,hasMore:!1,offset:0,clusterSection:{clusterSelected:null,clusters:[],isLoading:!0,error:null,hasMore:!1,offset:0},mediaChunkLength:"15"},sourceStepSlice=createSlice({name:"sourceStep",initialState:initialState$5,reducers:{sourcesSearchStart:(e,{payload:t})=>{e.isAffiliateSearch=t,0===e.offset&&(e.isLoading=!0)},sourcesSearchSucceeded:(e,{payload:t})=>{e.searchedSources=[...e.searchedSources,...t],e.error=null,e.isLoading=!1},resetSourcesSearch:e=>{e.isAffiliateSearch=!1,e.searchedSources=[],e.isLoading=!1,e.offset=0,e.hasMore=!1,e.error=null},setSourceTypeId:(e,{payload:t})=>{e.sourceTypeId=t},setSourceSelected:(e,{payload:t})=>{e.sourceSelected=t},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setError:(e,{payload:t})=>{e.error=t},setLoading:(e,{payload:t})=>{e.isLoading=t},setSourceSearchTerm:(e,{payload:t})=>{e.sourceSearchTerm=t},setMediaChunkLength:(e,{payload:t})=>{e.mediaChunkLength=t},setSelectedCluster:(e,{payload:t})=>{e.clusterSection.clusterSelected=t},clustersSearchStart:e=>{0===e.clusterSection.offset&&(e.clusterSection.isLoading=!0)},clustersSearchSucceeded:(e,{payload:t})=>{e.clusterSection.clusters=[...e.clusterSection.clusters,...t],e.clusterSection.error=null,e.clusterSection.isLoading=!1},clustersSetOffset:(e,{payload:t})=>{e.clusterSection.offset=t},clustersSetHasMore:(e,{payload:t})=>{e.clusterSection.hasMore=t},clusterSetError:(e,{payload:t})=>{e.clusterSection.error=t,e.clusterSection.isLoading=!1},clusterSetLoading:(e,{payload:t})=>{e.clusterSection.isLoading=t}}}),actions$6=sourceStepSlice.actions;var selectSourceStep_slice=sourceStepSlice.reducer;function toInteger(e){return null===e||!0===e||!1===e?NaN:(e=Number(e),isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e))}function requiredArgs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(1<e?"s":"")+" required, but only "+t.length+" present")}function _typeof$1(e){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_typeof$1(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function addDays(e,t){requiredArgs(2,arguments);var n=toDate(e),r=toInteger(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function addMilliseconds(e,t){requiredArgs(2,arguments);var n=toDate(e).getTime(),r=toInteger(t);return new Date(n+r)}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function getTimezoneOffsetInMilliseconds(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function isDate(e){return requiredArgs(1,arguments),e instanceof Date||"object"===_typeof(e)&&"[object Date]"===Object.prototype.toString.call(e)}function isValid(e){var t;return requiredArgs(1,arguments),!(!isDate(e)&&"number"!=typeof e||(t=toDate(e),isNaN(Number(t))))}function subMilliseconds(e,t){return requiredArgs(2,arguments),addMilliseconds(e,-toInteger(t))}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getTime(),t=(t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t.getTime());return Math.floor((n-t)/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getUTCDay(),n=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e),n=t.getUTCFullYear(),r=new Date(0),r=(r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0),startOfUTCISOWeek(r)),s=new Date(0),s=(s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),startOfUTCISOWeek(s));return t.getTime()>=r.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),startOfUTCISOWeek(n)}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),t=startOfUTCISOWeek(t).getTime()-startOfUTCISOWeekYear(t).getTime();return Math.round(t/MILLISECONDS_IN_WEEK$1)+1}function startOfUTCWeek(e,t){requiredArgs(1,arguments);var n,r,s=getDefaultOptions(),s=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==t?void 0:t.weekStartsOn)?n:null==t||null==(n=t.locale)||null==(n=n.options)?void 0:n.weekStartsOn)?n:s.weekStartsOn)?n:null==(n=s.locale)||null==(s=n.options)?void 0:s.weekStartsOn)?n:0);if(0<=s&&s<=6)return r=((r=(n=toDate(e)).getUTCDay())<s?7:0)+r-s,n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n;throw new RangeError("weekStartsOn must be between 0 and 6 inclusively")}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var n,r,s=toDate(e),o=s.getUTCFullYear(),a=getDefaultOptions(),a=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==t?void 0:t.firstWeekContainsDate)?n:null==t||null==(n=t.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:a.firstWeekContainsDate)?n:null==(n=a.locale)||null==(a=n.options)?void 0:a.firstWeekContainsDate)?n:1);if(1<=a&&a<=7)return(n=new Date(0)).setUTCFullYear(o+1,0,a),n.setUTCHours(0,0,0,0),n=startOfUTCWeek(n,t),(r=new Date(0)).setUTCFullYear(o,0,a),r.setUTCHours(0,0,0,0),a=startOfUTCWeek(r,t),s.getTime()>=n.getTime()?o+1:s.getTime()>=a.getTime()?o:o-1;throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively")}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var n=getDefaultOptions(),n=toInteger(null!=(r=null!=(r=null!=(r=null!=(r=null==t?void 0:t.firstWeekContainsDate)?r:null==t||null==(r=t.locale)||null==(r=r.options)?void 0:r.firstWeekContainsDate)?r:n.firstWeekContainsDate)?r:null==(r=n.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?r:1),r=getUTCWeekYear(e,t),s=new Date(0);return s.setUTCFullYear(r,0,n),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var n=toDate(e),n=startOfUTCWeek(n,t).getTime()-startOfUTCWeekYear(n,t).getTime();return Math.round(n/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var formatters$2={y:function(e,t){e=e.getUTCFullYear(),e=0<e?e:1-e;return addLeadingZeros("yy"===t?e%100:e,t.length)},M:function(e,t){e=e.getUTCMonth();return"M"===t?String(e+1):addLeadingZeros(e+1,2)},d:function(e,t){return addLeadingZeros(e.getUTCDate(),t.length)},a:function(e,t){var n=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return addLeadingZeros(e.getUTCHours()%12||12,t.length)},H:function(e,t){return addLeadingZeros(e.getUTCHours(),t.length)},m:function(e,t){return addLeadingZeros(e.getUTCMinutes(),t.length)},s:function(e,t){return addLeadingZeros(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,e=e.getUTCMilliseconds();return addLeadingZeros(Math.floor(e*Math.pow(10,n-3)),t.length)}},formatters$3=formatters$2,dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(e,t,n){var r=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){var r;return"yo"===t?(r=e.getUTCFullYear(),n.ordinalNumber(0<r?r:1-r,{unit:"year"})):formatters$3.y(e,t)},Y:function(e,t,n,r){e=getUTCWeekYear(e,r),r=0<e?e:1-e;return"YY"===t?addLeadingZeros(r%100,2):"Yo"===t?n.ordinalNumber(r,{unit:"year"}):addLeadingZeros(r,t.length)},R:function(e,t){return addLeadingZeros(getUTCISOWeekYear(e),t.length)},u:function(e,t){return addLeadingZeros(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return addLeadingZeros(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return addLeadingZeros(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return addLeadingZeros(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){e=getUTCWeek(e,r);return"wo"===t?n.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},I:function(e,t,n){e=getUTCISOWeek(e);return"Io"===t?n.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):formatters$3.d(e,t)},D:function(e,t,n){e=getUTCDayOfYear(e);return"Do"===t?n.ordinalNumber(e,{unit:"dayOfYear"}):addLeadingZeros(e,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return addLeadingZeros(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return addLeadingZeros(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),s=0===r?7:r;switch(t){case"i":return String(s);case"ii":return addLeadingZeros(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var e=e.getUTCHours(),r=12===e?dayPeriodEnum.noon:0===e?dayPeriodEnum.midnight:1<=e/12?"pm":"am";switch(t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var e=e.getUTCHours(),r=17<=e?dayPeriodEnum.evening:12<=e?dayPeriodEnum.afternoon:4<=e?dayPeriodEnum.morning:dayPeriodEnum.night;switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){var r;return"ho"===t?(r=e.getUTCHours()%12,n.ordinalNumber(r=0===r?12:r,{unit:"hour"})):formatters$3.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):formatters$3.H(e,t)},K:function(e,t,n){e=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},k:function(e,t,n){e=e.getUTCHours();return 0===e&&(e=24),"ko"===t?n.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):formatters$3.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):formatters$3.s(e,t)},S:function(e,t){return formatters$3.S(e,t)},X:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);default:return formatTimezone(s,":")}},x:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);default:return formatTimezone(s,":")}},O:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},z:function(e,t,n,r){var s=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},t:function(e,t,n,r){r=r._originalDate||e;return addLeadingZeros(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,n,r){return addLeadingZeros((r._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var n=0<e?"-":"+",e=Math.abs(e),r=Math.floor(e/60),e=e%60;return 0==e?n+String(r):(t=t||"",n+String(r)+t+addLeadingZeros(e,2))}function formatTimezoneWithOptionalMinutes(e,t){return e%60==0?(0<e?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezone(e,t){var t=t||"",n=0<e?"-":"+",e=Math.abs(e);return n+addLeadingZeros(Math.floor(e/60),2)+t+addLeadingZeros(e%60,2)}var formatters$1=formatters,dateLongFormatter=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},timeLongFormatter=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},dateTimeLongFormatter=function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],s=r[1],r=r[2];if(!r)return dateLongFormatter(e,t);switch(s){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",dateLongFormatter(s,t)).replace("{{time}}",timeLongFormatter(r,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},longFormatters$1=longFormatters,protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(e){return-1!==protectedDayOfYearTokens.indexOf(e)}function isProtectedWeekYearToken(e){return-1!==protectedWeekYearTokens.indexOf(e)}function throwProtectedError(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance=function(e,t,n){e=formatDistanceLocale[e],e="string"==typeof e?e:1===t?e.one:e.other.replace("{{count}}",t.toString());return null!=n&&n.addSuffix?n.comparison&&0<n.comparison?"in "+e:e+" ago":e},formatDistance$1=formatDistance;function buildFormatLongFn(t){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=e.width?String(e.width):t.defaultWidth;return t.formats[e]||t.formats[t.defaultWidth]}}var dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$1=formatLong,formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=function(e,t,n,r){return formatRelativeLocale[e]},formatRelative$1=formatRelative;function buildLocalizeFn(s){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&s.formattingValues?(r=s.defaultFormattingWidth||s.defaultWidth,n=null!=t&&t.width?String(t.width):r,s.formattingValues[n]||s.formattingValues[r]):(n=s.defaultWidth,r=null!=t&&t.width?String(t.width):s.defaultWidth,s.values[r]||s.values[n]);var n,r=s.argumentCallback?s.argumentCallback(e):e;return t[r]}}var eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=function(e,t){var n=Number(e),e=n%100;if(20<e||e<10)switch(e%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$1=localize;function buildMatchFn(o){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=n.width,s=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],s=e.match(s);return s?(t=s[0],s=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r=Array.isArray(s)?findIndex(s,function(e){return e.test(t)}):findKey(s,function(e){return e.test(t)}),s=o.valueCallback?o.valueCallback(r):r,{value:s=n.valueCallback?n.valueCallback(s):s,rest:e.slice(t.length)}):null}}function findKey(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function findIndex(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(s){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.match(s.matchPattern);return r&&(r=r[0],t=e.match(s.parsePattern))?(t=s.valueCallback?s.valueCallback(t[0]):t[0],{value:t=n.valueCallback?n.valueCallback(t):t,rest:e.slice(r.length)}):null}}var matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(e){return parseInt(e,10)}}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$1=match,locale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong$1,formatRelative:formatRelative$1,localize:localize$1,match:match,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale=locale,formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(r,s,o){requiredArgs(2,arguments);var e=String(s),t=getDefaultOptions(),a=null!=(n=null!=(n=null==o?void 0:o.locale)?n:t.locale)?n:defaultLocale,n=toInteger(null!=(n=null!=(n=null!=(n=null!=(n=null==o?void 0:o.firstWeekContainsDate)?n:null==o||null==(n=o.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:t.firstWeekContainsDate)?n:null==(n=t.locale)||null==(n=n.options)?void 0:n.firstWeekContainsDate)?n:1);if(!(1<=n&&n<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");t=toInteger(null!=(c=null!=(c=null!=(c=null!=(c=null==o?void 0:o.weekStartsOn)?c:null==o||null==(c=o.locale)||null==(c=c.options)?void 0:c.weekStartsOn)?c:t.weekStartsOn)?c:null==(c=t.locale)||null==(t=c.options)?void 0:t.weekStartsOn)?c:0);if(!(0<=t&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var i,l,c=toDate(r);if(isValid(c))return i=subMilliseconds(c,getTimezoneOffsetInMilliseconds(c)),l={firstWeekContainsDate:n,weekStartsOn:t,locale:a,_originalDate:c},e.match(longFormattingTokensRegExp).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,a.formatLong):e}).join("").match(formattingTokensRegExp).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return cleanEscapedString(e);var n=formatters$1[t];if(n)return null!=o&&o.useAdditionalWeekYearTokens||!isProtectedWeekYearToken(e)||throwProtectedError(e,s,String(r)),null!=o&&o.useAdditionalDayOfYearTokens||!isProtectedDayOfYearToken(e)||throwProtectedError(e,s,String(r)),n(i,e,a.localize,l);if(t.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("");throw new RangeError("Invalid time value")}function cleanEscapedString(e){var t=e.match(escapedStringRegExp);return t?t[1].replace(doubleQuoteRegExp,"'"):e}function isAfter(e,t){requiredArgs(2,arguments);var n=toDate(e),r=toDate(t);return n.getTime()>r.getTime()}var wellKnownSymbol$b=wellKnownSymbol$i,TO_STRING_TAG$1=wellKnownSymbol$i("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$8=isCallable$n,classofRaw=classofRaw$1,wellKnownSymbol$a=wellKnownSymbol$i,TO_STRING_TAG=wellKnownSymbol$i("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$8(e.callee)?"Arguments":t},classof$5=classof$6,$String=String,toString$7=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$b=functionUncurryThis,requireObjectCoercible$3=requireObjectCoercible$6,toString$6=toString$7,whitespaces$1=whitespaces$2,replace$3=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod$1=function(t){return function(e){e=toString$6(requireObjectCoercible$3(e));return 1&t&&(e=replace$3(e,ltrim,"")),e=2&t?replace$3(e,rtrim,""):e}},stringTrim={start:createMethod$1(1),end:createMethod$1(2),trim:createMethod$1(3)},global$d=global$o,fails$9=fails$l,uncurryThis$a=functionUncurryThis,toString$5=toString$7,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$d.parseInt,Symbol$1=global$d.Symbol,ITERATOR$3=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$2=uncurryThis$a(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$3&&!fails$9(function(){$parseInt$1(Object(ITERATOR$3))}),numberParseInt=FORCED?function(e,t){e=trim(toString$5(e));return $parseInt$1(e,t>>>0||(exec$2(hex,e)?16:10))}:$parseInt$1,$$a=_export,$parseInt=numberParseInt,anObject$8=(_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt}),anObject$e),regexpFlags$1=function(){var e=anObject$8(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},fails$8=fails$l,global$c=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$1=fails$8(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$8(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$8(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$7=fails$l,global$b=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$7(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$6=fails$l,global$a=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$6(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$b=functionCall,uncurryThis$9=functionUncurryThis,toString$4=toString$7,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt$3=uncurryThis$9("".charAt),indexOf=uncurryThis$9("".indexOf),replace$2=uncurryThis$9("".replace),stringSlice$4=uncurryThis$9("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$b(nativeExec,e,"a"),call$b(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$2=patchedExec=PATCH?function(e){var t,n,r,s,o,a,i=this,l=getInternalState(i),e=toString$4(e),c=l.raw;if(c)return c.lastIndex=i.lastIndex,u=call$b(patchedExec,c,e),i.lastIndex=c.lastIndex,u;var d=l.groups,c=UNSUPPORTED_Y&&i.sticky,u=call$b(regexpFlags,i),l=i.source,p=0,g=e;if(c&&(u=replace$2(u,"y",""),-1===indexOf(u,"g")&&(u+="g"),g=stringSlice$4(e,i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==charAt$3(e,i.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",u)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",u)),UPDATES_LAST_INDEX_WRONG&&(n=i.lastIndex),r=call$b(nativeExec,c?t:i,g),c?r?(r.input=stringSlice$4(r.input,p),r[0]=stringSlice$4(r[0],p),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&r&&(i.lastIndex=i.global?r.index+r[0].length:n),NPCG_INCLUDED&&r&&1<r.length&&call$b(nativeReplace,r[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)}),r&&d)for(r.groups=o=create(null),s=0;s<d.length;s++)o[(a=d[s])[0]]=r[a[1]];return r}:patchedExec,$$9=_export,exec$1=regexpExec$2,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$1},{exec:exec$1}),functionBindNative),FunctionPrototype=Function.prototype,apply$2=FunctionPrototype.apply,call$a=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$a.bind(apply$2):function(){return call$a.apply(apply$2,arguments)}),uncurryThis$8=functionUncurryThis,defineBuiltIn$3=defineBuiltIn$7,regexpExec$1=regexpExec$2,fails$5=fails$l,wellKnownSymbol$9=wellKnownSymbol$i,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$9("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(n,e,t,r){var a,s=wellKnownSymbol$9(n),i=!fails$5(function(){var e={};return e[s]=function(){return 7},7!=""[n](e)}),o=i&&!fails$5(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});i&&o&&!t||(a=uncurryThis$8(/./[s]),o=e(s,""[n],function(e,t,n,r,s){var e=uncurryThis$8(e),o=t.exec;return o===regexpExec$1||o===RegExpPrototype$2.exec?i&&!s?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),defineBuiltIn$3(String.prototype,n,o[0]),defineBuiltIn$3(RegExpPrototype$2,s,o[1])),r&&createNonEnumerableProperty(RegExpPrototype$2[s],"sham",!0)},uncurryThis$7=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$3=toString$7,requireObjectCoercible$2=requireObjectCoercible$6,charAt$2=uncurryThis$7("".charAt),charCodeAt=uncurryThis$7("".charCodeAt),stringSlice$3=uncurryThis$7("".slice),createMethod=function(s){return function(e,t){var n,e=toString$3(requireObjectCoercible$2(e)),t=toIntegerOrInfinity$1(t),r=e.length;return t<0||r<=t?s?"":void 0:(n=charCodeAt(e,t))<55296||56319<n||t+1===r||(r=charCodeAt(e,t+1))<56320||57343<r?s?charAt$2(e,t):n:s?stringSlice$3(e,t,t+2):r-56320+(n-55296<<10)+65536}},stringMultibyte={codeAt:createMethod(!1),charAt:createMethod(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$1=function(e,t,n){return t+(n?charAt$1(e,t).length:1)},uncurryThis$6=functionUncurryThis,toObject=toObject$4,floor=Math.floor,charAt=uncurryThis$6("".charAt),replace$1=uncurryThis$6("".replace),stringSlice$2=uncurryThis$6("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(o,a,i,l,c,e){var d=i+o.length,u=l.length,t=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==c&&(c=toObject(c),t=SUBSTITUTION_SYMBOLS),replace$1(e,t,function(e,t){var n;switch(charAt(t,0)){case"$":return"$";case"&":return o;case"`":return stringSlice$2(a,0,i);case"'":return stringSlice$2(a,d);case"<":n=c[stringSlice$2(t,1,-1)];break;default:var r,s=+t;if(0==s)return e;if(u<s)return 0!==(r=floor(s/10))&&r<=u?void 0===l[r-1]?charAt(t,1):l[r-1]+charAt(t,1):e;n=l[s-1]}return void 0===n?"":n})},call$9=functionCall,anObject$7=anObject$e,isCallable$7=isCallable$n,classof$4=classofRaw$1,regexpExec=regexpExec$2,$TypeError$6=TypeError,regexpExecAbstract=function(e,t){var n=e.exec;if(isCallable$7(n))return null!==(n=call$9(n,e,t))&&anObject$7(n),n;if("RegExp"===classof$4(e))return call$9(regexpExec,e,t);throw $TypeError$6("RegExp#exec called on incompatible receiver")},apply$1=functionApply,call$8=functionCall,uncurryThis$5=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$4=fails$l,anObject$6=anObject$e,isCallable$6=isCallable$n,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$2,toString$2=toString$7,requireObjectCoercible$1=requireObjectCoercible$6,advanceStringIndex=advanceStringIndex$1,getMethod$2=getMethod$4,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol$8=wellKnownSymbol$i,REPLACE=wellKnownSymbol$i("replace"),max=Math.max,min=Math.min,concat=uncurryThis$5([].concat),push=uncurryThis$5([].push),stringIndexOf$1=uncurryThis$5("".indexOf),stringSlice$1=uncurryThis$5("".slice),maybeToString=function(e){return void 0===e?e:String(e)},REPLACE_KEEPS_$0="$0"==="a".replace(/./,"$0"),REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE=!!/./[REPLACE]&&""===/./[REPLACE]("a","$0"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails$4(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic("replace",function(e,S,b){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var n=requireObjectCoercible$1(this),r=null==e?void 0:getMethod$2(e,REPLACE);return r?call$8(r,e,n,t):call$8(S,toString$2(n),e,t)},function(e,t){var n=anObject$6(this),r=toString$2(e);if("string"==typeof t&&-1===stringIndexOf$1(t,x)&&-1===stringIndexOf$1(t,"$<")){e=b(S,n,r,t);if(e.done)return e.value}for(var s,o=isCallable$6(t),a=(o||(t=toString$2(t)),n.global),i=(a&&(s=n.unicode,n.lastIndex=0),[]);null!==(u=regExpExec(n,r))&&(push(i,u),a);)""===toString$2(u[0])&&(n.lastIndex=advanceStringIndex(r,toLength(n.lastIndex),s));for(var l="",c=0,d=0;d<i.length;d++){for(var u,p=toString$2((u=i[d])[0]),g=max(min(toIntegerOrInfinity(u.index),r.length),0),m=[],f=1;f<u.length;f++)push(m,maybeToString(u[f]));var y=u.groups,h=o?(h=concat([p],m,g,r),void 0!==y&&push(h,y),toString$2(apply$1(t,void 0,h))):getSubstitution(p,r,g,m,y,t);c<=g&&(l+=stringSlice$1(r,c,g)+h,c=g+p.length)}return l+stringSlice$1(r,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const selectIsWeeklyValid=e=>e.processingCenterIngestion.scheduleStep.weekly.isWeeklyValid,selectWeeklyTimeslots=e=>e.processingCenterIngestion.scheduleStep.weekly.weeklyTimeslots,selectScheduleState=e=>e.processingCenterIngestion.scheduleStep,selectTimezone=e=>e.processingCenterIngestion.scheduleStep.timezone,selectFrequencySchedularState=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular,selectScheduleType=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.scheduleType,selectStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.startDate,selectEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.endDate,selectContinuousStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousStartDate,selectContinuousEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousEndDate,selectFrequency=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequency,selectNoEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.noEndDate,selectHoursInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.hoursInterval,selectDaysInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysInterval,selectDailyTimeslotOne=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotOne,selectDailyTimeslotTwo=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotTwo,selectDaysTimeslot=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysTimeslot,selectFrequencyIsValid=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequencyIsValid,selectSchedulePayload=e=>e.processingCenterIngestion.scheduleStep.schedulePayload,SHARED_TEXT={ingestionJobsWizard:{editMode:{panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.wizard-panel.title",defaultMessage:"Edit Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"})},panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.title",defaultMessage:"Create Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.close",defaultMessage:"Close",description:"Panel close button for the Processing Center Wizard Create Schedule Panel"}),incompleteFieldsMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.incomplete-warning-message",defaultMessage:"Please complete all required fields",description:"Incomplete fields message for the Processing Center Wizard Next Button"}),someFieldsInvalidMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.invalid-fields-warning-message",defaultMessage:"Some fields are not valid",description:"Invalid fields message for the Processing Center Wizard Next Button"}),stepLabels:{selectSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.select-source",defaultMessage:"Select Source",description:"Stepper Title for the Processing Center Wizard Stepper Select Source"}),basicInfo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.basic-info",defaultMessage:"Basic Info",description:"Stepper Title for the Processing Center Wizard Stepper Basic Info"}),schedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.schedule",defaultMessage:"Schedule",description:"Stepper Title for the Processing Center Wizard Stepper Schedule"}),processing:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.processing",defaultMessage:"Processing",description:"Stepper Title for the Processing Center Wizard Stepper Processing"}),contentTemplates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.content-templates",defaultMessage:"Content Templates",description:"Stepper Title for the Processing Center Wizard Stepper Content Templates"}),location:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.location",defaultMessage:"Location",description:"Stepper Title for the Processing Center Wizard Stepper Location"})}},affiliatePanel:{panelHeaders:{addAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.add",defaultMessage:"Add an Affiliate",description:"Panel Title for Add an Affiliated Station"}),editAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.edit",defaultMessage:"Edit Affiliate Schedule",description:"Panel Title for Edit an Affiliated Station Schedule"}),bulkAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.bulk",defaultMessage:"Bulk Import Affiliates",description:"Panel Title for Bulk Add Affiliated Stations"})},tvAdapterText:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.title",defaultMessage:"Affiliated Stations",description:"Title for Affiliated Stations"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.subtitle",defaultMessage:"Assign affiliated stations that also broadcast programming from this ingestion source.",description:"Sub Title for Affiliated Stations"}),addAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.add-affiliate-btn",defaultMessage:"Add Affiliate",description:"Button text for Add Affiliate"}),bulkAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.bulk-add-affiliate-btn",defaultMessage:"Bulk Add Affiliates",description:"Button text for Bulk Add Affiliate"})},controls:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.cancel",defaultMessage:"Cancel",description:"Cancel button label"}),saveAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.save",defaultMessage:"Save Affiliate",description:"Save affiliate button label"}),editAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.edit",defaultMessage:"Edit Affiliate",description:"edit affiliate button label"}),bulkImport:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.bulk-import",defaultMessage:"Bulk Import",description:"Bulk Import button label"})},afilliateTable:{headerId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-id",defaultMessage:"Id",description:"table header Id"}),headerName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-name",defaultMessage:"Name",description:"table header name"}),headerStartDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-startdate",defaultMessage:"Start Date",description:"table header start date"}),headerEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-enddate",defaultMessage:"End Date",description:"table header end date"}),headerEditDelete:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-edit-delete",defaultMessage:"Edit / Delete",description:"table header edit or delete"}),scheduleTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-title-schedule",defaultMessage:"Schedule",description:"header for schedule"})},addAffiliateView:{},editAffiliateView:{},bulkAffiliateView:{}},timezonePicker:{editableCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.editable",defaultMessage:"The schedule will run in this timezone",description:"Caption displayed when the user is able to edit the time zone"}),sourceBasedCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.source-based",defaultMessage:"The timezone is set on the Source and can not be modified",description:"Caption displayed when the time zone is pinned to the source time zone"}),changeButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.change",defaultMessage:"Change",description:"Text on the button used to change the time zone"}),saveButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.save",defaultMessage:"Save",description:"Text on the button used to save time zone changes"})},processing:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.title",defaultMessage:"Processing",description:"Title for the processing section"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.subtitle",defaultMessage:"As data is ingested from this source, each data type will be processed with the selected engines you choose below.",description:"Sub Title for the location section"}),chooseTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.choose-template",defaultMessage:"Choose a Template",description:"Choose template label for the processing section"}),createNewTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.new-template-btn",defaultMessage:"Create a New Template",description:"Create new template button for the processing section"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.error-state",defaultMessage:"Unable to load templates",description:"Error message for the processing section"}),emptyState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.empty-state",defaultMessage:"No templates found",description:"empty state label for the processing section"})},location:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.title",defaultMessage:"Location",description:"Title for the location section of location and permissions"}),chooseLocationDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-folder",defaultMessage:"Choose the Data Center folder location where this content will be stored",description:"Explanation of what the folder selector is for"}),folderSelectorLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-label",defaultMessage:"Folder",description:"Label for the folder selector"}),chooseLocation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-location-button",defaultMessage:"Choose Location",description:"Choose folder"}),chooseHome:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-home-button",defaultMessage:"Choose Home",description:"Choose root folder"}),changeLocationButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.change-location-button",defaultMessage:"Change",description:"Change the location that files will be stored in"}),homeFolderLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.home-folder-label",defaultMessage:"Home",description:"Text displayed when the user hasn't chosen a specific folder"}),folderInputLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-input-label",defaultMessage:"Folder",description:"Label for folder selection"})},permissions:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.title",defaultMessage:"Permissions",description:"Title for the permissions section of location and permissions"}),managePermissionsDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.manage-permissions",defaultMessage:"Manage who can access the content that is imported with this Scheduled Job",description:"Explanation of what permission management is for"})},sourceSelectDefaultMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-default-select",defaultMessage:"Choose a Source",description:"default select text"}),sourceSelectTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-title",defaultMessage:"Select a Source",description:"title text"}),sourceSelectSubTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-subtitle",defaultMessage:"Select the data source for this scheduled job",description:"subtitle text"}),loadingSources:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-loading-sources",defaultMessage:"Loading Sources",description:"Search Filter by Source Schedule, loader message Loading Sources"}),retryButtonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-retry-button",defaultMessage:"Retry",description:"text for button to allow retry of failed api call"}),sourcesErrorMessageText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-error",defaultMessage:"There was an error loading the sources",description:"text for error with source fetching"}),sourcesNotFoundText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-not-found",defaultMessage:"No sources match your search name or source type.",description:"text for no sources found"}),createSourceButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-source",defaultMessage:"Create New Source",description:"button for create new source"}),advancedSettingsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-advanced-settings",defaultMessage:"Advanced Settings",description:"button for advanced settings for source"}),nextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-next-button",defaultMessage:"Next",description:"button for next step"}),cancelButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-cancel-button",defaultMessage:"Cancel",description:"button for cancel"}),backButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-back-button",defaultMessage:"Back",description:"button for back"}),skipButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-skip-button",defaultMessage:"Skip",description:"button for skip"}),createScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-job-button",defaultMessage:"Create Scheduled Job",description:"button for create job"}),frequencySchedular:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-title",defaultMessage:"Schedule",description:"title"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-subtitle",defaultMessage:"How often would you like to import new data from this source?",description:"subtitle"}),radioRecurring:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-recurring",defaultMessage:"Recurring",description:"radio label recurring"}),radioContinuous:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-continuous",defaultMessage:"Continuous",description:"radio label continuous"}),radioOnDemand:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-ondemand",defaultMessage:"On Demand",description:"radio label for on demand"}),errorNoSupportedTypes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-error-not-supported-schedule",defaultMessage:"This adapter does not have any supported schedule types.",description:"error message no supported schedule types"}),messageDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-daily",defaultMessage:"This schedule will run daily at the selected time below.",description:"message for daily selected"}),messageTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-twice-daily",defaultMessage:"This schedule will run twice daily at the selected times below.",description:"message for twice daily selected"}),messageHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-hours",defaultMessage:"Schedule this job to run at an hourly interval between 1 and 24 hours.",description:"message for hours selected"}),messageDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-days",defaultMessage:"Schedule this job to run at a daily interval that will start at the selected time below.",description:"message for days selected"}),messageMediaChunk:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk",defaultMessage:"Ingested content will have a set duration of",description:"message for media chunk"}),messageMediaChunkMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk-minutes",defaultMessage:"minutes",description:"message for media chunk minutes"}),changeMediaChunkButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-button-media-chunk-minutes",defaultMessage:"CHANGE",description:"button for media chunk minutes"}),textBetweenDates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-text-between-dates",defaultMessage:"to",description:"text between date selectors"}),startDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-start-date",defaultMessage:"Start Date",description:"label for start date"}),endDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-end-date",defaultMessage:"End Date",description:"label for end date"}),labelHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-hours",defaultMessage:"Hours",description:"label for Hours"}),labelDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-days",defaultMessage:"Days",description:"label for days"}),labelDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-daily",defaultMessage:"Daily",description:"label for daily"}),labelTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-twice-daily",defaultMessage:"Twice Daily",description:"label for twice daily"}),labelWeekly:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-weekly",defaultMessage:"Weekly",description:"label for weekly"}),labelNoEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-no-end",defaultMessage:"No End Date",description:"label for no end date"}),inputLabelFrequency:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-frequency",defaultMessage:"Frequency",description:"label for frequency input"}),inputLabelInterval:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-interval",defaultMessage:"Interval",description:"label for interval selector"}),labelMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"oprocessing-panel-ingestion-schedule-step-freq-minutes",defaultMessage:"Minutes",description:"text for minutes"}),labelMediaChunkLength:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-media-chunk",defaultMessage:"Media Chunk Length",description:"label for media chunk selector"}),onDemandMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-message",defaultMessage:"Data import will begin once an external event is triggered",description:"message for on demand"}),learnMore:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-learn-more",defaultMessage:"Learn More",description:"learn more link"})}},useStyles$8=makeStyles()(e=>({onDemandContainer:{background:"#FAFAFA",display:"flex",borderRadius:"4px",flexDirection:"row",justifyContent:"space-around",alignItems:"center",width:"464px",height:"60px",marginTop:"20px"},ingestionRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"650px",marginTop:"20px"},spaceAbove:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"660px",marginTop:"20px"},textBetweenDateContainer:{width:"auto",marginLeft:"15px",marginRight:"15px"},frequencyMessageContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginLeft:"15px",height:"55px",width:"auto"},daysHoursMessageContainer:{marginTop:" 15px",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"auto"},daysHoursMessage:{fontSize:"14px",color:"#000"},chunkButton:{fontSize:"14px",marginTop:"2px"},messageContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},frequencyMessage:{width:"100%"},intervalSelectContainer:{marginLeft:"10px",width:"75px"},frequencySelectContainer:{width:"167px"},noEndContainer:{marginLeft:"15px"},radioGroupContainer:{width:"100%"},timeslotTopMargin:{marginTop:"8px"},timeslotMenu:{marginTop:"20px",width:"260px !important"},timeslotStartMenu:{marginTop:"20px",display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",width:"124px !important",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}}})),useStyles$7=makeStyles()(e=>({container:{display:"flex",flexDirection:"column",gap:"20px"},dayBubblesContainer:{display:"flex",gap:"10px"},dayBubble:{height:"40px",width:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",fontWeight:"bold",cursor:"pointer",userSelect:"none",transition:"all 0.25s ease-in-out","&.disabled:active":{opacity:.5},"&.enabled:active":{opacity:.5},"&.disabled:hover":{backgroundColor:"rgba(24,113,232,0.2)"},"&.enabled:hover":{backgroundColor:"rgba(24,113,232,0.8)"},"&.enabled":{backgroundColor:"#1871E8",color:"#fff"},"&.disabled":{backgroundColor:"#F2F3F4",color:"#555F7C"}},timeslotsWidgetContainer:{display:"flex",gap:"15px",flexDirection:"column",width:"100%",overflowY:"scroll"},timeslotRow:{display:"flex",alignItems:"flex-start",gap:"10px"},timeslotDayLabel:{width:"15%",paddingTop:"5px"},timeslotList:{display:"flex",flexDirection:"column",gap:"15px"},timeslotMenu:{display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}},timeslotDelete:{position:"absolute",top:0,right:"-60px",opacity:0,transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},inputTime:{background:"transparent",border:"none",fontFamily:"sans-serif",padding:"8px 0px",outline:"none!important",color:"#2A323C",fontSize:"15px"},rowActions:{display:"flex",alignItems:"center",gap:"15px",opacity:0,paddingLeft:"10px",transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},rowDivider:{width:"1px",display:"flex",backgroundColor:"#979797",height:"30px"},rowCopyToAll:{display:"flex",alignItems:"center",gap:"10px"}})),WEEKLY_SCHEDULER_SHARED_TEXT={ui:{invalidTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.invalid-time-slot",defaultMessage:"This time window is not valid",description:"Processing Center Wizard Schedule Step, UI tooltip for invalid time slot"}),deleteTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.delete-time-slot",defaultMessage:"Delete time",description:"Processing Center Wizard Schedule Step, UI tooltip for delete time"}),addTimeWindow:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.add-time-window",defaultMessage:"Add time window",description:"Processing Center Wizard Schedule Step, UI tooltip for add time window"}),copyTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copy-time-to-all",defaultMessage:"Copy time to all",description:"Processing Center Wizard Schedule Step, UI text for copy time to all"}),copiedTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copied-time-to-all",defaultMessage:"Copied times",description:"Processing Center Wizard Schedule Step, UI text for copied times to all"}),replaceAllDayTimes:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.replace-all-day-times",defaultMessage:"This will replace all days selected time",description:"Processing Center Wizard Schedule Step, UI tooltip for replace all days times"}),changeTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.change-time",defaultMessage:"Change Time",description:"Processing Center Wizard Schedule Step, UI Text for change time"}),chooseLaterTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-later-time",defaultMessage:"Please select a later time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose later time"}),chooseEarlierTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-earlier-time",defaultMessage:"Please select an earlier time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose earlier time"})},days:{Su:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.sunday",defaultMessage:"Sunday",description:"Processing Center Wizard Schedule Step, day label for Sunday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.sunday",defaultMessage:"Add Sunday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable Sunday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.sunday",defaultMessage:"Remove all Sunday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable Sunday"})},M:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.monday",defaultMessage:"Monday",description:"Processing Center Wizard Schedule Step, day label for Monday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.monday",defaultMessage:"Add Monday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable monday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.monday",defaultMessage:"Remove all Monday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable monday"})},Tu:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.tuesday",defaultMessage:"Tuesday",description:"Processing Center Wizard Schedule Step, day label for Tuesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.tuesday",defaultMessage:"Add Tuesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable tuesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.tuesday",defaultMessage:"Remove all Tuesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable tuesday"})},W:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.wednesday",defaultMessage:"Wednesday",description:"Processing Center Wizard Schedule Step, day label for wednesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.wednesday",defaultMessage:"Add Wednesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable wednesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.wednesday",defaultMessage:"Remove all Wednesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable wednesday"})},Th:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.thursday",defaultMessage:"Thursday",description:"Processing Center Wizard Schedule Step, day label for Thursday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.thursday",defaultMessage:"Add Thursday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable thursday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.thursday",defaultMessage:"Remove all Thursday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable thursday"})},F:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.friday",defaultMessage:"Friday",description:"Processing Center Wizard Schedule Step, day label for Friday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.friday",defaultMessage:"Add Friday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable friday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.friday",defaultMessage:"Remove all Friday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable friday"})},Sa:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.saturday",defaultMessage:"Saturday",description:"Processing Center Wizard Schedule Step, day label for Saturday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.saturday",defaultMessage:"Add Saturday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable saturday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.saturday",defaultMessage:"Remove all Saturday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable saturday"})}}},TimeDropdown=({disabled:e,time:t,onChange:n,min:r,max:s,showTooltip:o})=>{var a=useStyles$7()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:o&&!e?WEEKLY_SCHEDULER_SHARED_TEXT.ui.changeTime:""},{children:jsxRuntime.exports.jsx("input",{disabled:e,"data-testid":"pc-wizard-schedule-weekly-timeslot",value:t,name:s?"start":"end",min:r||void 0,max:s||void 0,className:a.inputTime,type:"time",onChange:e=>{var{value:e,name:t}=e.target;n(e,t)}})}))})},TimeStartEndField=({timeslot:e,showDelete:t,day:r,onDelete:n,onChangeTime:s,disabled:o,id:a=""})=>{var i=useStyles$7()["classes"];const{id:l,start:c,end:d,isValid:u}=e;var e=i.timeslotMenu+" "+(u?"":"is-invalid"),p=(e,t)=>{let n;n="start"===t?createTimeslot(e,d,l,validateTimeWindow(e,d),!1):createTimeslot(c,e,l,validateTimeWindow(c,e),!1),s(n,l,r)};return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:u?"":WEEKLY_SCHEDULER_SHARED_TEXT.ui.invalidTimeslot},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e,"data-testid":"timeslot-field-row-"+a},{children:[jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:c,onChange:p,max:d,showTooltip:u}),jsxRuntime.exports.jsx("span",{children:"to"}),jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:d,onChange:p,min:c,showTooltip:u}),t&&jsxRuntime.exports.jsx("div",Object.assign({className:i.timeslotDelete},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.deleteTimeslot},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{r&&n&&n(r,l)},"data-testid":"pc-wizard-schedule-weekly-timeslot-button-delete"},{children:jsxRuntime.exports.jsx(Delete,{})}))}))}))]}))}))},selectSearchTerm=e=>e.processingCenterIngestion.sourceStep.sourceSearchTerm||"",selectSourceTypeId=e=>e.processingCenterIngestion.sourceStep.sourceTypeId||"",selectSourceSelected=e=>e.processingCenterIngestion.sourceStep.sourceSelected||null,selectOffset=e=>e.processingCenterIngestion.sourceStep.offset,selectError=e=>e.processingCenterIngestion.sourceStep.error,selectIsLoading=e=>e.processingCenterIngestion.sourceStep.isLoading,selectHasMore=e=>e.processingCenterIngestion.sourceStep.hasMore,selectSearchedSources=e=>e.processingCenterIngestion.sourceStep.searchedSources||[],selectMediaChunkLength=e=>e.processingCenterIngestion.sourceStep.mediaChunkLength,selectClusterSelected=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusterSelected,selectClustersError=e=>e.processingCenterIngestion.sourceStep.clusterSection.error,selectClustersIsLoading=e=>e.processingCenterIngestion.sourceStep.clusterSection.isLoading,selectClustersOffset=e=>e.processingCenterIngestion.sourceStep.clusterSection.offset,selectClusters=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusters||[],selectIsAffiliateSearch=e=>e.processingCenterIngestion.sourceStep.isAffiliateSearch,Frequency={Hours:"Hours",Days:"Days",Daily:"Daily",TwiceDaily:"TwiceDaily",Weekly:"Weekly"},podcastAdapterId="a725de38-f538-4c4a-b835-b0bd4ab1a255",FrequencySchedular=({activeEngine:e})=>{const t=useStyles$8()["classes"],n=useDispatch();var r=useSelector(selectMediaChunkLength),s=Number(useSelector(selectHoursInterval)),o=Number(useSelector(selectDaysInterval));const a=useSelector(selectDailyTimeslotOne),i=useSelector(selectDailyTimeslotTwo);var l=useSelector(selectDaysTimeslot),c=useSelector(selectScheduleType),d=useSelector(selectStartDate),u=useSelector(selectEndDate),p=useSelector(selectContinuousStartDate),g=useSelector(selectContinuousEndDate);const m=useSelector(selectFrequency);var f=useSelector(selectNoEndDate);const y=useSelector(selectTimezone),h=useSelector(selectFrequencySchedularState);RunMode.Recurring,RunMode.Continuous,RunMode.Once,RunMode.Now;e=e.id;react.exports.useEffect(()=>{n(actions$5.setFrequencyIsValid(validateFrequencyScheduler(h)))},[h]),react.exports.useEffect(()=>{var e;m===Frequency.Daily&&(e=generateDailyTimeslots(a),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,y)),n(actions$5.setDailyScheduleParts(e)))},[a,y,m]),react.exports.useEffect(()=>{var e;m===Frequency.TwiceDaily&&(e=generateDailyTimeslots(a,i),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,y)),n(actions$5.setTwiceDailyScheduleParts(e)))},[a,i,y,m]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"auto"}},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5"},{children:SHARED_TEXT.frequencySchedular.title()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsxs(RadioGroup,Object.assign({className:t.radioGroupContainer,row:!0,name:"schedule-type-radio-buttons-group",value:c,onChange:e=>{e=e.target.value;n(actions$5.resetFrequencyState()),n(actions$5.setScheduleType(e))}},{children:[jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-recurring",value:RunMode.Recurring,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioRecurring()}),jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-continuous",value:RunMode.Continuous,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioContinuous()})]}))})})]}),!1,c===RunMode.Recurring&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:d,onChange:e=>{e=e.target.value;n(actions$5.setStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(d,u,!f)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-end-date",id:"date",label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",disabled:f,value:u,onChange:e=>{e=e.target.value;n(actions$5.setEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(d,u,!f)})})}),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.noEndContainer},{children:jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-no-end-date",control:jsxRuntime.exports.jsx(Checkbox,{checked:f,onChange:e=>{e=e.target.checked;n(actions$5.setNoEndDate(e))}}),label:SHARED_TEXT.frequencySchedular.labelNoEndDate()})}))})]})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({className:t.frequencySelectContainer},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({required:!0,shrink:!0,id:"frequency-label"},{children:SHARED_TEXT.frequencySchedular.inputLabelFrequency()})),jsxRuntime.exports.jsxs(Select,Object.assign({"data-testid":"ingestion-job-frequency-select-frequency",required:!0,labelId:"frequency-label",id:"frequency",value:m,label:SHARED_TEXT.frequencySchedular.inputLabelFrequency(),displayEmpty:!0,onChange:e=>{e=e.target.value;n(actions$5.setFrequency(e)),n(actions$5.resetFrequencyFields())}},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-hours",value:Frequency.Hours},{children:SHARED_TEXT.frequencySchedular.labelHours()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-days",value:Frequency.Days},{children:SHARED_TEXT.frequencySchedular.labelDays()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-daily",value:Frequency.Daily},{children:SHARED_TEXT.frequencySchedular.labelDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-twice-daily",value:Frequency.TwiceDaily},{children:SHARED_TEXT.frequencySchedular.labelTwiceDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-weekly",value:Frequency.Weekly},{children:SHARED_TEXT.frequencySchedular.labelWeekly()}))]}))]}))}),m===Frequency.Hours&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-hours",label:SHARED_TEXT.frequencySchedular.inputLabelInterval(),type:"number",InputLabelProps:{shrink:!0},value:s,onChange:e=>{e=Number(e.target.value);24<e||e<1||n(actions$5.setHoursInterval(e))}})}))}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-days",id:"outlined-number",label:"Interval",type:"number",InputLabelProps:{shrink:!0},value:o,onChange:e=>{e=Number(e.target.value);365<e||e<1||n(actions$5.setDaysInterval(e))}})}))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.frequencyMessageContainer},{children:m===Frequency.Daily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDaily()})):m===Frequency.TwiceDaily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-twice-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageTwiceDaily()})):m===Frequency.Hours?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-hours",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageHours()})):m===Frequency.Days?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-days",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDays()})):null}))]})),(m===Frequency.Daily||m===Frequency.TwiceDaily)&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot1",timeslot:a,onChangeTime:e=>{n(actions$5.setDailyTimeslotOne(e))}})})),m===Frequency.TwiceDaily&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot2",timeslot:i,onChangeTime:e=>{n(actions$5.setDailyTimeslotTwo(e))}})}))]}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotStartMenu},{children:jsxRuntime.exports.jsx(TimeDropdown,{"data-testid":"ingestion-job-frequency-days-start-time",time:l,onChange:e=>{n(actions$5.setDaysTimeslot(e))},max:"endTime",showTooltip:!1})})),(m===Frequency.Hours||m===Frequency.Days)&&podcastAdapterId!==e&&jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"ingestion-job-frequency-message-media-chunk",className:t.daysHoursMessageContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunk()})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:t.daysHoursMessage,sx:{fontWeight:"bold"}},{children:[" ",r," "]})),jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunkMinutes()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"ingestion-job-frequency-open-advanced",onClick:()=>{n(mountPanel({panelId:"PROCESSING_CENTER_ADVANCED_SETTINGS",microFrontend:{name:"PROCESSING_CENTER_ADVANCED_SETTINGS",config:{}},panelConfig:{header:{title:"Advanced Settings"},divider:!1,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:80,size:"small",zIndex:1001,parentPanelId:"PROCESSING_CENTER_INGESTION",dimmed:0,dimmedStatus:"dimParent"}}))},className:t.chunkButton},{children:SHARED_TEXT.frequencySchedular.changeMediaChunkButton()}))]}))]}),c===RunMode.Continuous&&jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-start",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:p,onChange:e=>{e=e.target.value;n(actions$5.setContinuousStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-end",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:g,onChange:e=>{e=e.target.value;n(actions$5.setContinuousEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})})]}))]}))},getUTCDate=(e,t)=>{t+=getTimezoneOffset(e);try{return new Date(t).toISOString()}catch(e){return(new Date).toISOString()}},getTimezoneOffset=e=>{try{var t=(new Date).toLocaleTimeString("en-US",{timeZone:e,timeZoneName:"longOffset"}).split(" ").pop();return null==t?void 0:t.replace("GMT","")}catch(e){return console.error("The timezone could not be found - schedule will set in UTC time"),"+00:00"}},generateDailyTimeslots=(e,t)=>{var n={};for(const r of DAYS.ids)n[r]=[e],t&&n[r].push(t);return n},validateStartAndEndTime=(e,t,n)=>!(!n||!isAfter(new Date(e),new Date(t))),validateFrequencyScheduler=e=>{if(e.scheduleType!==RunMode.Once){if(e.scheduleType===RunMode.Recurring&&!e.noEndDate){if(!e.startDate||!e.endDate)return!1;if(isAfter(new Date(e.startDate),new Date(e.endDate)))return!1}if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.Daily&&!e.dailyTimeslotOne.isValid)return!1;if(e.scheduleType===RunMode.Recurring&&e.frequency===Frequency.TwiceDaily){if(!e.dailyTimeslotOne.isValid)return!1;if(!e.dailyTimeslotTwo.isValid)return!1}if(e.scheduleType===RunMode.Continuous){if(!e.continuousStartDate||!e.continuousEndDate)return!1;if(isAfter(new Date(e.continuousStartDate),new Date(e.continuousEndDate)))return!1}}return!0},setApiPayload=e=>{var t,n={runMode:e.frequencySchedular.scheduleType};return e.frequencySchedular.scheduleType===RunMode.Recurring&&(t=e.frequencySchedular.startDate+"T00:00",n.startDateTime=getUTCDate(e.timezone,t),e.frequencySchedular.noEndDate||(t=e.frequencySchedular.endDate+"T23:59",n.stopDateTime=getUTCDate(e.timezone,t)),e.frequencySchedular.frequency===Frequency.Days&&(t=e.frequencySchedular.daysTimeslot+getTimezoneOffset(e.timezone),n.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.daysInterval,startTime:t}]),e.frequencySchedular.frequency===Frequency.Hours&&(n.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.hoursInterval}]),e.frequencySchedular.frequency===Frequency.Daily&&(n.weeklyScheduleParts=e.frequencySchedular.dailyScheduleParts),e.frequencySchedular.frequency===Frequency.TwiceDaily&&(n.weeklyScheduleParts=e.frequencySchedular.twiceDailyScheduleParts),e.frequencySchedular.frequency===Frequency.Weekly)&&(n.weeklyScheduleParts=e.weekly.weeklyScheduleParts),e.frequencySchedular.scheduleType===RunMode.Continuous&&(n.startDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousStartDate),n.stopDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousEndDate)),n},getNumericalTime=e=>{var[e,t]=e.split(":");return{hour:parseInt(e,10),min:parseInt(t,10)}},validateTimeWindow=(e,t)=>{e=getNumericalTime(e),t=getNumericalTime(t);return!(e.hour>t.hour||e.hour===t.hour&&e.min>=t.min)},validateAllTimeslots=e=>{for(const t of Object.keys(e))for(const n of e[t])if(!n.isValid)return!1;return!0},DEFAULT_TIMESLOT_TIMES={start:"09:00",end:"17:00"},createTimeslot=(e,t,n,r,s)=>({start:e,end:t,id:n,isValid:r,isConflict:s}),DAYS={labels:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ids:["Su","M","Tu","W","Th","F","Sa"]},getEnabledDays=e=>{var t=[];for(const n of Object.keys(e))e[n].length&&t.push(n);return t},initialTimeslots={Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},formatWeeklyPayload=(e,t)=>{var n=[];for(const i of Object.keys(e)){var r=DAYS.labels[DAYS.ids.indexOf(i)];for(const l of e[i]){var{start:s,end:o,isValid:a}=l,s={scheduledDay:r,startTime:s+getTimezoneOffset(t),stopTime:o+getTimezoneOffset(t)};a&&n.push(s)}}return n},namespace$5="scheduleStep",RunMode={Continuous:"Continuous",Recurring:"Recurring",Once:"Once",Now:"Now"},initialState$4={timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,frequencySchedular:{scheduleType:RunMode.Recurring,startDate:format(new Date,"yyyy-MM-dd"),endDate:format(addDays(new Date,1),"yyyy-MM-dd"),continuousStartDate:(new Date).toISOString().slice(0,16),continuousEndDate:addDays(new Date,1).toISOString().slice(0,16),hoursInterval:1,daysInterval:1,frequency:"Weekly",daysTimeslot:"09:00",dailyTimeslotOne:{id:"timeslotOne",start:"09:00",end:"11:00",isConflict:!1,isValid:!0},dailyTimeslotTwo:{id:"timeslotTwo",start:"13:00",end:"15:00",isConflict:!1,isValid:!0},noEndDate:!0,dailyScheduleParts:[],twiceDailyScheduleParts:[],frequencyIsValid:!0},weekly:{isWeeklyValid:!0,weeklyTimeslots:{Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},weeklyScheduleParts:[]},schedulePayload:{runMode:"",startDateTime:""}},scheduleStepSlice=createSlice({name:"scheduleStep",initialState:initialState$4,reducers:{setTimezone:(e,{payload:t})=>{e.timezone=t},setIsWeeklyValid:(e,{payload:t})=>{e.weekly.isWeeklyValid=t},setWeeklyTimeslots:(e,t)=>{t=t.payload;e.weekly.weeklyTimeslots=t},setWeeklyScheduleParts:(e,t)=>{t=t.payload;e.weekly.weeklyScheduleParts=t},clearWeeklyScheduleParts:e=>{e.weekly.weeklyScheduleParts=[]},setDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.dailyScheduleParts=t},setTwiceDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.twiceDailyScheduleParts=t},resetFrequencyState:e=>{e.frequencySchedular=initialState$4.frequencySchedular},resetFrequencyFields:e=>{e.frequencySchedular.dailyTimeslotOne=initialState$4.frequencySchedular.dailyTimeslotOne,e.frequencySchedular.dailyTimeslotTwo=initialState$4.frequencySchedular.dailyTimeslotTwo,e.frequencySchedular.hoursInterval=initialState$4.frequencySchedular.hoursInterval,e.frequencySchedular.daysInterval=initialState$4.frequencySchedular.daysInterval,e.frequencySchedular.daysTimeslot=initialState$4.frequencySchedular.daysTimeslot,e.frequencySchedular.dailyScheduleParts=initialState$4.frequencySchedular.dailyScheduleParts,e.frequencySchedular.twiceDailyScheduleParts=initialState$4.frequencySchedular.twiceDailyScheduleParts},setScheduleType:(e,{payload:t})=>{e.frequencySchedular.scheduleType=t},setStartDate:(e,{payload:t})=>{e.frequencySchedular.startDate=t},setEndDate:(e,{payload:t})=>{e.frequencySchedular.endDate=t},setContinuousStartDate:(e,{payload:t})=>{e.frequencySchedular.continuousStartDate=t},setContinuousEndDate:(e,{payload:t})=>{e.frequencySchedular.continuousEndDate=t},setFrequency:(e,{payload:t})=>{e.frequencySchedular.frequency=t},setNoEndDate:(e,{payload:t})=>{e.frequencySchedular.noEndDate=t},setHoursInterval:(e,{payload:t})=>{e.frequencySchedular.hoursInterval=t},setDaysInterval:(e,{payload:t})=>{e.frequencySchedular.daysInterval=t},setDailyTimeslotOne:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotOne=t},setDailyTimeslotTwo:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotTwo=t},setDaysTimeslot:(e,{payload:t})=>{e.frequencySchedular.daysTimeslot=t},setFrequencyIsValid:(e,{payload:t})=>{e.frequencySchedular.frequencyIsValid=t},setSchedulePayload:(e,{payload:t})=>{e.schedulePayload=t}}}),actions$5=scheduleStepSlice.actions;var scheduleStep_slice=scheduleStepSlice.reducer;const namespace$4="basicInfoStep",initialState$3={scheduleName:"",sourceDetails:{},error:null,isLoading:!1,isInvalidFields:!1,programs:[],basicInfoMeta:{affiliates:{}}},basicInfoSlice=createSlice({name:"basicInfoStep",initialState:initialState$3,reducers:{getProgramsStart:e=>{e.isLoading=!0},setScheduleName:(e,t)=>{t=t.payload;e.scheduleName=t},setSourceDetails:(e,t)=>{t=t.payload;e.sourceDetails=t},setPrograms:(e,t)=>{t=t.payload;e.programs=t,e.isLoading=!1},setError:(e,{payload:t})=>{e.error=t},setBasicInfoMeta:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),e.basicInfoMeta[null==t?void 0:t.key]=e.basicInfoMeta[null==t?void 0:t.key]||null,e.basicInfoMeta[null==t?void 0:t.key]=(null==t?void 0:t.meta)||null},setInvalidFields:(e,{payload:t})=>{e.isInvalidFields=t},addEditAffiliate:(e,{payload:t})=>{var n=t["source"];e.basicInfoMeta&&(e.basicInfoMeta.affiliates[n.id]=t)},deleteAffiliate:(e,{payload:t})=>{var n;e.basicInfoMeta&&(delete(n=lodash.exports.cloneDeep(e.basicInfoMeta.affiliates))[t],e.basicInfoMeta.affiliates=n)},setImage:(e,{})=>{},deleteImageUrl:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),delete e.basicInfoMeta[null==t?void 0:t.key]}}}),actions$4=basicInfoSlice.actions;var basicInfoStep_slice=basicInfoSlice.reducer;const namespace$3="processingStep",initialState$2={dagTemplateId:void 0,loadingStatus:LoadingStatus.Idle,allDagTemplates:[],offset:0,hasMore:!0},processingSlice=createSlice({name:"processingStep",initialState:initialState$2,reducers:{fetchDagTemplatesStart:e=>{e.loadingStatus=LoadingStatus.Pending},fetchDagTemplatesSucceeded:(n,e)=>{n.loadingStatus=LoadingStatus.Complete,e.payload.forEach(t=>{var e=n.allDagTemplates.findIndex(e=>e.id===t.id);-1===e?n.allDagTemplates.push(t):n.allDagTemplates.splice(e,1,t)})},fetchDagTemplatesFailed:e=>{e.loadingStatus=LoadingStatus.Failed},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setDagTemplateId:(e,t)=>{t=t.payload;e.dagTemplateId=t},clearDagTemplateId:e=>{e.dagTemplateId=void 0}}}),actions$3=processingSlice.actions;var processingStep_slice=processingSlice.reducer;const namespace$2="location",initialState$1={selectedFolderId:void 0},locationSlice=createSlice({name:"location",initialState:initialState$1,reducers:{setSelectedFolderId:(e,{payload:t})=>{e.selectedFolderId=t}}}),actions$2=locationSlice.actions;var location_slice=locationSlice.reducer;const namespace$1="permissions",initialState={permissionsPayload:void 0},permissionsSlice=createSlice({name:"permissions",initialState:initialState,reducers:{setPermissionsPayload:(e,{payload:t})=>{e.permissionsPayload=t}}}),actions$1=permissionsSlice.actions;var permissions_slice=permissionsSlice.reducer;const selectSelectedFolderId=e=>e[SLICE_NAME][namespace$2].selectedFolderId;var locationSelectors=Object.freeze({__proto__:null,selectSelectedFolderId:selectSelectedFolderId});const selectPermissionsPayload=e=>e[SLICE_NAME][namespace$1].permissionsPayload;var permissionsSelectors=Object.freeze({__proto__:null,selectPermissionsPayload:selectPermissionsPayload});const selectors={location:locationSelectors,permissions:permissionsSelectors},namespace=SLICE_NAME,actions={[namespace$8]:actions$8,[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$8]:uiState,[namespace$7]:ingestionJobsWizard_slice,[namespace$6]:selectSourceStep_slice,[namespace$5]:scheduleStep_slice,[namespace$4]:basicInfoStep_slice,[namespace$3]:processingStep_slice,[namespace$2]:location_slice,[namespace$1]:permissions_slice}),selectUIStateStatus=e=>e[namespace].uiState.status,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,n)=>({apiRoot:e,graphQLEndpoint:t,token:n}));function __rest(e,t){var n={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]]);return n}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(n,t){function r(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?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,s)}o((l=l.apply(e,a||[])).next())})}function getSourcesBySearchTerm(t,n=0,r,s,o,a){return __awaiter(this,void 0,void 0,function*(){var e="getSourcesSearch";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getSourcesSearch($sourceTypeIds: [ID!], $offset: Int, $name: String, $limit: Int, $includePublic: Boolean ){\n sources(\n sourceTypeIds: $sourceTypeIds,\n offset: $offset,\n limit: $limit,\n name: $name,\n includePublic: $includePublic,\n permission: owner,\n nameMatch: contains,\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n sourceTypeId\n thumbnailUrl\n createdDateTime\n modifiedDateTime\n permission,\n details,\n sourceType {\n name,\n sourceSchema {\n definition\n }\n }\n }\n }\n }\n ",operationName:e,variables:{sourceTypeIds:s,name:r,offset:n,limit:o,includePublic:a}},t))).sources})}function getClusters(t,n=0,r){return __awaiter(this,void 0,void 0,function*(){var e="getClusters";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getClusters($offset: Int, $limit: Int ){\n clusters(\n offset: $offset,\n limit: $limit,\n edgeVersion: 3\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n type\n controllerUrl\n allowedEngines\n edgeVersion\n paused\n default\n bypassAllowedEngines\n }\n }\n }\n ",operationName:e,variables:{offset:n,limit:r}},t))).clusters})}function*sourcesSearchTermSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectOffset),n=yield select(selectSourceTypeId),r=yield select(selectSearchTerm),s=yield select(selectIsAffiliateSearch),o=yield call$j(getSourcesBySearchTerm,e,t,r,n,30,s);yield put(actions$6.sourcesSearchSucceeded(o.records)),30===o.count?yield put(actions$6.setHasMore(!0)):yield put(actions$6.setHasMore(!1)),yield put(actions$6.setOffset(t+30))}catch(e){yield put(actions$6.setError(e))}}function*clusterSearchSaga(){try{var e,t,n=yield select(selectApiConfigs),r=yield select(selectClustersOffset),s=yield call$j(getClusters,n,r,30);yield put(actions$6.clustersSearchSucceeded(s.records)),30===s.count?(yield put(actions$6.clustersSetHasMore(!0)),yield put(actions$6.clustersSetOffset(r+30)),yield put(actions$6.clustersSearchStart())):(t=(e=yield select(selectClusters)).map(e=>e.default).indexOf(!0),(yield select(selectClusterSelected))||(yield put(actions$6.setSelectedCluster(e[t]||null))),yield put(actions$6.clustersSetOffset(r+30)),yield put(actions$6.clustersSetHasMore(!1)))}catch(e){yield put(actions$6.clusterSetError(e))}}function*getSourcesSearchTermWatcher(){yield takeLatest$1(actions$6.sourcesSearchStart.type,sourcesSearchTermSaga)}function*getClusterSearchWatcher(){yield takeLatest$1(actions$6.clustersSearchStart.type,clusterSearchSaga)}function getDagTemplates(t,n=0,r){return __awaiter(this,void 0,void 0,function*(){var e="getDagTemplates";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getDagTemplates($offset: Int, $limit: Int ){\n dagTemplates(\n offset: $offset,\n limit: $limit,\n ) {\n records {\n id\n description\n cognitiveCategoryId\n mimeType\n name\n dag\n dagTemplateLanguage\n targetOrganizationId\n tags\n }\n }\n }\n ",operationName:e,variables:{offset:n,limit:r}},t))).dagTemplates})}const selectAllDagTemplates=e=>e.processingCenterIngestion.processingStep.allDagTemplates||[],selectDagTemplateId=e=>e.processingCenterIngestion.processingStep.dagTemplateId||"",selectDagTemplatesLoadingStatus=e=>e.processingCenterIngestion.processingStep.loadingStatus,selectDagTemplatesOffset=e=>e.processingCenterIngestion.processingStep.offset,selectDagTemplatesHasMore=e=>e.processingCenterIngestion.processingStep.hasMore;function*fetchDagTemplatesSaga(){var e;try{var t=yield select(selectApiConfigs),n=yield select(selectDagTemplatesOffset),r=yield call$j(getDagTemplates,t,n,100);yield put(actions$3.fetchDagTemplatesSucceeded(r.records)),100===(null==(e=null==r?void 0:r.records)?void 0:e.length)?yield put(actions$3.setHasMore(!0)):yield put(actions$3.setHasMore(!1)),yield put(actions$3.setOffset(n+100))}catch(e){yield put(actions$3.fetchDagTemplatesFailed())}}function*fetchDagTemplatesWatcher(){yield takeLatest$1(actions$3.fetchDagTemplatesStart.type,fetchDagTemplatesSaga)}var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace,stringSlice,call$7=functionCall,hasOwn$2=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn$2(e,"flags")||!isPrototypeOf$3(RegExpPrototype$1,e)?t:call$7(regExpFlags,e)},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn$2=defineBuiltIn$7,anObject$5=anObject$e,$toString=toString$7,fails$3=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$3(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME&&n$ToString.name!=TO_STRING,$$8=((NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$2(RegExp.prototype,TO_STRING,function(){var e=anObject$5(this);return"/"+$toString(e.source)+"/"+$toString(getRegExpFlags(e))},{unsafe:!0}),_export),DESCRIPTORS$1=descriptors,global$9=global$o,uncurryThis$4=functionUncurryThis,hasOwn$1=hasOwnProperty_1,isCallable$5=isCallable$n,isPrototypeOf$2=objectIsPrototypeOf,toString$1=toString$7,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$9.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function getPrograms(t,n){var r;return __awaiter(this,void 0,void 0,function*(){var e="getPrograms",e=yield baseGraphQLApiWithError(Object.assign({query:`
2
2
  query ${e} {
3
3
  sourceType(id: ${n}) {
4
4
  programFormats
@@ -11,4 +11,4 @@ import{bZ as createSvgIcon,j as jsxRuntime,H as createSlice,m as makeStyles,F as
11
11
  getUrl
12
12
  }
13
13
  }
14
- `,operationName:"getUrl",variables:e},r))).getSignedWritableUrl,n={method:"PUT",headers:{"Content-Type":s.type,"X-Veritone-Application":"aiware-sdk"},body:s};try{return yield fetch(e,n),t}catch(e){return console.log(e),""}})}function createScheduledJob(t,n){return __awaiter(this,void 0,void 0,function*(){var e="createScheduledJob";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createScheduledJob($scheduledJob: CreateScheduledJob!) {\n createScheduledJob(input: $scheduledJob) {\n id\n }\n }",operationName:e,variables:{scheduledJob:n}},t))).id})}getBuiltIn("Promise"),$$2({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),function(e){e[e.Once=0]="Once",e[e.Continuous=1]="Continuous",e[e.Recurring=2]="Recurring",e[e.Now=3]="Now"}(ERunMode=ERunMode||{}),function(e){e[e.chunk=0]="chunk",e[e.stream=1]="stream"}(EIoFolderMode=EIoFolderMode||{}),function(e){e[e.input=0]="input",e[e.output=1]="output"}(EIoFolderType=EIoFolderType||{});const selectScheduleName=e=>e.processingCenterIngestion.basicInfoStep.scheduleName||"",selectPrograms=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.programs},selectBasicInfoMeta=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta},selectBasicInfoInvalidFields=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.isInvalidFields},selectBasicInfoAffiliates=e=>{return null==(e=null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta)?void 0:e.affiliates};function*saveScheduledJobSaga(){var e,t,n,r=yield select(preferredLanguageSelector),r=AIWareFormatMessage(r);try{var s=yield select(selectApiConfigs),o=yield select(selectSelectedFolderId),a=yield select(selectSchedulePayload),i=yield select(selectTimezone),l=yield select(selectDagTemplateId),c=yield select(selectScheduleName);const $=yield select(selectBasicInfoMeta);var d=yield select(userSelector),u=(null==(t=null==(e=null==d?void 0:d.organization)?void 0:e.organizationId)?void 0:t.toString())||"",p=yield select(selectSourceSelected),g=yield select(selectMediaChunkLength),m=yield select(selectClusterSelected),f=yield select(selectClusters),y=yield select(selectContentTemplatesToSave),h=Object.values(y).map(e=>({schemaId:e.schemaId,data:e.data})),S=null==(n=f.find(e=>!0===e.default))?void 0:n.id;const x={name:c,description:$.description,isActive:!0,runMode:a.runMode,organizationId:u,startDateTime:a.startDateTime,stopDateTime:a.stopDateTime,weeklyScheduleParts:a.weeklyScheduleParts,details:{dagTemplateId:l,timezone:i},dagTemplates:{dagTemplateIds:[l],params:{SOURCE_ID:p.id,CLUSTER_ID:m?m.id:S},jobConfig:{maxTDODuration:g,createTDOInput:{parentFolderId:o,sourceData:{sourceId:p.id}}}}},T=(0<h.length&&(x.contentTemplates=h),{Su:"Sunday",M:"Monday",Tu:"Tuesday",W:"Wednesday",Th:"Thursday",F:"Friday",Sa:"Saturday"});Object.keys($).forEach(e=>{var t=$[e];switch(e){case"programWebsite":x.details.websiteUrl=t;break;case"affiliates":0<Object.keys(t).length&&(x.affiliates=[],Object.values(t).forEach(n=>{const r=n.source.id;Object.keys(n.schedule).forEach(e=>{const t=T[e];e=n.schedule[e];Array.isArray(e)&&0<e.length&&e.forEach(e=>{x.affiliates.push({sourceId:r,scheduledDay:t,startDateTime:n.startDate,stopDateTime:n.stopDate,startTime:e.start,stopTime:e.end})})})}));break;default:x.details[e]=t}});var b=yield call$j(createScheduledJob,s,x);console.log("Created scheduled job "+b),yield put(showMessage({content:r({id:"os-processing-center-ingestion.wizard-panel.save-success",defaultMessage:[{type:0,value:"Scheduled job created"}]}),severity:MessageSeverity.Success})),yield put(hidePanel("PROCESSING_CENTER_INGESTION")),yield put(actions$7.saveScheduledJobSuccess())}catch(e){yield put(showMessage({content:r({id:"os-processing-center-ingestion.wizard-panel.save-failure",defaultMessage:[{type:0,value:"Problem creating scheduled job, please try again"}]}),severity:MessageSeverity.Error})),yield put(actions$7.saveScheduledJobFailure())}}function*saveScheduledJobWatcher(){yield takeLatest$1(actions$7.saveScheduledJobStart.type,saveScheduledJobSaga)}function*getProgramsSaga(){try{var e=yield select(selectApiConfigs),t=(yield select(selectSourceSelected)).sourceTypeId,n=yield call$j(getPrograms,e,t);yield put(actions$4.setPrograms(n))}catch(e){yield put(actions$4.setError(e))}}function*getImageURLSaga(e){try{var t=yield select(selectApiConfigs),{image:n,type:r}=e.payload,s=yield call$j(getImageURL,t,n);yield put(actions$4.setBasicInfoMeta({key:r,meta:s}))}catch(e){yield put(actions$4.setError(e))}}function*getProgramsWatcher(){yield takeLatest$1(actions$4.getProgramsStart.type,getProgramsSaga)}function*getImageURLWatcher(){yield takeLatest$1(actions$4.setImage.type,getImageURLSaga)}function*initProcessingCenterIngestion(){(yield select(selectUIStateStatus))===LoadingStatus.Pending&&(yield put(actions.uiState.initDone()))}function*watchProcessingCenterIngestionInit(){yield takeLatest$1(actions.uiState.init.type,initProcessingCenterIngestion)}function*rootSaga(){yield all([watchProcessingCenterIngestionInit(),getSourcesSearchTermWatcher(),getClusterSearchWatcher(),getProgramsWatcher(),fetchDagTemplatesWatcher(),saveScheduledJobWatcher(),getImageURLWatcher()])}function getProcessingCenterIngestionModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}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 ENextButtonType,visuallyHidden$1=visuallyHidden;const useStyles$6=makeStyles()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight: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)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),stepperStyles=makeStyles()(e=>({container:{padding:"20px",borderBottom:"1px solid #D5DFE9"},step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"&+.MuiStepConnector-horizontal":{display:"none"},"& svg":{border:"2px solid white",borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"transparent!important",border:"1px solid",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),PanelHeader=({height:e,onPanelClose:t,activeStep:l,stepLabels:c,steps:d})=>{e=useStyles$6({height:e}).classes;const u=stepperStyles()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"os-pc-ingestion-wizard-close-panel-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1","data-testid":"os-pc-ingestion-wizard-close-panel-title",className:e.title},{children:SHARED_TEXT.ingestionJobsWizard.panelHeader()})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"os-pc-ingestion-wizard-close-panel"},{children:SHARED_TEXT.ingestionJobsWizard.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.ingestionJobsWizard.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"os-pc-ingestion-wizard-close-panel","data-testid":"os-pc-ingestion-wizard-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:u.container},{children:jsxRuntime.exports.jsx(Stepper,Object.assign({activeStep:l},{children:d.map((e,t)=>{var{number:e,completed:n}=e,r=c[e],s=Math.abs(e-l)<2,o=0===e,a=e===d.length-1,i=e<l,e=l<e,e=`${u.step} ${e?u.futureStep:""} ${i?u.previousStep:""} ${s||i?"":u.hiddenStep} ${o?"is-first-step":""} `+(a?"is-last-step":"");return jsxRuntime.exports.jsx(Step,Object.assign({className:e,completed:n},{children:jsxRuntime.exports.jsx(StepLabel,{children:s&&r()})}),t)})}))}))]})},useStyles$5=makeStyles()(e=>({panelContainer:{padding:"30px",height:"calc(100vh - 265px)",overflowY:"scroll"}})),selectActiveStep=e=>e.processingCenterIngestion.ingestionJobsWizard.activeStep,selectSteps=e=>e.processingCenterIngestion.ingestionJobsWizard.steps,selectIsFullScreen=e=>{return e.processingCenterIngestion.ingestionJobsWizard.isFullScreen},useStyles$4=makeStyles()(e=>({locationAndPermissionsWrapper:{display:"flex",flexDirection:"column",gap:e.spacing(4)},locationFolderWrapper:{width:"100%",marginTop:e.spacing(4),padding:e.spacing(2),border:"1px solid #D5DFE9",borderRadius:4,display:"flex",alignItems:"center",position:"relative"},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"}}})),useStyles$3=makeStyles()(e=>({buttonRow:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px",flexDirection:"row"}})),PanelControls$1=(!function(e){e.SKIP="SKIP",e.NEXT="NEXT",e.CREATE_SCHEDULED_JOB="CREATE_SCHEDULED_JOB"}(ENextButtonType=ENextButtonType||{}),({disableNext:e,disableBack:t,onClickNext:n,onClickBack:r,nextButtonType:s=ENextButtonType.NEXT,invalidFields:o=!1})=>{var a=useStyles$3()["classes"];const i=useSelector(selectScheduleState),l=useSelector(selectActiveStep),c=useDispatch();return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-ingestion-wizard-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-back-btn",sx:{color:"#2A323C"},onClick:()=>{1===l&&c(hidePanel("PROCESSING_CENTER_INGESTION")),c(actions$7.backStep()),r&&r()},disabled:t},{children:1!==l?SHARED_TEXT.backButton():SHARED_TEXT.cancelButton()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-next-btn",onClick:()=>{var e;3===l&&(e=setApiPayload(i),c(actions$5.setSchedulePayload(e))),6===l&&c(actions$7.saveScheduledJobStart()),c(actions$7.nextStep()),n&&n()},variant:"contained",disabled:e},{children:(()=>{switch(s){case ENextButtonType.NEXT:return SHARED_TEXT.nextButton();case ENextButtonType.SKIP:return SHARED_TEXT.skipButton();case ENextButtonType.CREATE_SCHEDULED_JOB:return SHARED_TEXT.createScheduledJobButton();default:return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})}})()}))})}))]}))}),enablePermissions=!1,LocationAndPermissionsStep=()=>{var e=useStyles$4()["classes"];const n=useDispatch(),r=useSelector(selectIsFullScreen),t=(useSelector(selectIsOLPEnabled),useSelector(selectors$1.viewMyFiles.selectRootFolderId)),s=useSelector(selectors.location.selectSelectedFolderId);var o=useSelector(selectors$1.entities.selectFolderEntity(s||t));react.exports.useEffect(()=>{t&&!s&&n(actions.location.setSelectedFolderId(t))},[n,t,s]);const a=react.exports.useCallback(e=>{n(unmountPanel("DATA_CENTER_FOLDERS_AND_FILES")),n(actions.location.setSelectedFolderId(e))},[n]);var i=react.exports.useCallback(()=>{n(actions$9.viewMyFiles.toggleFileOrFolderSelected(null));var e={name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:index.DataCenterView.folders,onSelect:a,selectHomeText:SHARED_TEXT.location.chooseHome(),selectItemText:SHARED_TEXT.location.chooseLocation()}},t={panelId:"DATA_CENTER_FOLDERS_AND_FILES",disableHide:!1,parentPanelId:"PROCESSING_CENTER_INGESTION",type:"APP_BAR_PANEL_TEMPLATE",size:"small",marginTop:r?0:55,marginStart:r?0:80,height:600,header:{title:"Choose a Location"},dimmed:0,zIndex:r?1011:1002,dimmedStatus:"dimParent"};n(mountPanel({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:e,panelConfig:t}))},[n,r,a]);return jsxRuntime.exports.jsxs("div",Object.assign({className:e.locationAndPermissionsWrapper},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2"},{children:SHARED_TEXT.location.sectionTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.location.chooseLocationDetails()})),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"processing-center-location-folder",className:e.locationFolderWrapper},{children:[jsxRuntime.exports.jsx("span",Object.assign({className:e.folderLabel,"data-test":"processing-center-location-folder-label"},{children:SHARED_TEXT.location.folderInputLabel()})),jsxRuntime.exports.jsx(FolderOpen,{className:e.folderIcon}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",color:"textPrimary","data-test":"processing-center-location-folder-path"},{children:(null==o?void 0:o.id)===t?SHARED_TEXT.location.homeFolderLabel():null==o?void 0:o.name})),jsxRuntime.exports.jsx("span",{className:e.spacer}),jsxRuntime.exports.jsx("span",Object.assign({className:e.folderInputLabel,onClick:i,role:"button","data-test":"processing-center-location-select-btn"},{children:SHARED_TEXT.location.changeLocationButton()}))]}))]}),enablePermissions,jsxRuntime.exports.jsx(PanelControls$1,{disableNext:!1,disableBack:!1,nextButtonType:ENextButtonType.CREATE_SCHEDULED_JOB})]}))},stepLabels={1:SHARED_TEXT.ingestionJobsWizard.stepLabels.selectSource,2:SHARED_TEXT.ingestionJobsWizard.stepLabels.basicInfo,3:SHARED_TEXT.ingestionJobsWizard.stepLabels.schedule,4:SHARED_TEXT.ingestionJobsWizard.stepLabels.processing,5:SHARED_TEXT.ingestionJobsWizard.stepLabels.contentTemplates,6:SHARED_TEXT.ingestionJobsWizard.stepLabels.location};class IngestionJobsWizardErrorBoundary extends react.exports.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e){console.log("componentDidCatch",e)}render(){return this.state.hasError&&console.log("Render Error",this.state.hasError),this.state.hasError?jsxRuntime.exports.jsx("h3",{children:"An error has occurred."}):this.props.children}}const SelectSourceStep=react.exports.lazy(()=>import("./js-core.esm81.js")),BasicInfoStep=react.exports.lazy(()=>import("./js-core.esm82.js")),ScheduleStep=react.exports.lazy(()=>import("./js-core.esm83.js")),ContentTemplatesStep=react.exports.lazy(()=>import("./js-core.esm84.js")),ProcessingStep=react.exports.lazy(()=>import("./js-core.esm85.js")),IngestionJobsWizard=e=>{var t=useStyles$5()["classes"];const n=useDispatch();var r=useSelector(selectSteps),s=useSelector(selectActiveStep);react.exports.useEffect(()=>{e.activeEngine&&n(actions$7.setActiveEngine(null==e?void 0:e.activeEngine)),e.isFullScreen&&n(actions$7.setIsFullScreen(Boolean(null==e?void 0:e.isFullScreen))),e.scheduledJobId&&n(actions$7.setScheduledJobId(null==e?void 0:e.scheduledJobId))},[null==e?void 0:e.activeEngine,null==e?void 0:e.isFullScreen,null==e?void 0:e.scheduledJobId]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"700px"}},{children:[jsxRuntime.exports.jsx(PanelHeader,{steps:r,activeStep:s,stepLabels:stepLabels,height:64,onPanelClose:()=>n(hidePanel("PROCESSING_CENTER_INGESTION"))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.panelContainer},{children:jsxRuntime.exports.jsx(IngestionJobsWizardErrorBoundary,{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[1===s&&jsxRuntime.exports.jsx(SelectSourceStep,{sourceTypeIds:null==(r=null==e?void 0:e.activeEngine)?void 0:r.supportedSourceTypes}),2===s&&jsxRuntime.exports.jsx(BasicInfoStep,{activeEngine:null==e?void 0:e.activeEngine}),3===s&&jsxRuntime.exports.jsx(ScheduleStep,{activeEngine:null==e?void 0:e.activeEngine}),4===s&&jsxRuntime.exports.jsx(ProcessingStep,{}),5===s&&jsxRuntime.exports.jsx(ContentTemplatesStep,{}),6===s&&jsxRuntime.exports.jsx(LocationAndPermissionsStep,{})]}))})}))]}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),ProcessingCenterIngestion=e=>jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getProcessingCenterIngestionModule(),getProcessingCenterContentTemplatesModule(),getDataCenterBrowseModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(IngestionJobsWizard,Object.assign({},e))})}))})})),ProcessingCenterAdvancedSettings=e=>{const t=e["hidePanel"],n=useDispatch(),r=["1","5","15","30","45","60"];var e=useSelector(selectMediaChunkLength)||"15",s=useSelector(selectClusters);const o=useSelector(selectClusterSelected),[a,i]=react.exports.useState(null),[l,c]=react.exports.useState(e);e=useSelector(selectClustersError);const d=useSelector(selectClustersIsLoading);react.exports.useEffect(()=>{n(actions$6.clustersSearchStart())},[]),react.exports.useEffect(()=>{d||i(o||null)},[d,o]);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginLeft:"30px"}},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:!d&&!e&&jsxRuntime.exports.jsx(Autocomplete,{"data-testid":"processing-center-ingestion-cluster-select",value:a,onChange:(e,t)=>{i(t)},sx:{width:"320px"},options:s,getOptionLabel:e=>e?e.name:"",renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{InputLabelProps:{shrink:!0},label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.clusterLabel",defaultMessage:"Cluster",description:"text for cluster label"})})),renderOption:(e,t)=>react.exports.createElement("div",Object.assign({},e,{key:t.id,"data-test":"processing-center-ingestion-cluster-item-"+t.id}),jsxRuntime.exports.jsx(Typography,Object.assign({noWrap:!0},{children:t.name})))})})),jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({id:"ingestion-media-chunk-length-label"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.mediaChunkLabel",defaultMessage:"Media Chunk Length",description:"text for media chunk label"})})),jsxRuntime.exports.jsx(Select,Object.assign({sx:{width:"320px"},labelId:"ingestion-media-chunk-length-label",id:"ingestion-media-chunk-length","data-testid":"ingestion-media-chunk-length-select",value:l,label:"Media Chunk Length",onChange:e=>{e=e.target.value;c(e)}},{children:[r.map(e=>jsxRuntime.exports.jsxs(MenuItem,Object.assign({value:e,"data-testid":"ingestion-wizard-select-source-media-chunk-item"},{children:[e," ",jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.minutes",defaultMessage:"Minutes",description:"text for minutes"})]}),e))]}))]})),jsxRuntime.exports.jsxs("div",Object.assign({style:{position:"absolute",bottom:"30px",right:"30px",display:"flex",flexDirection:"row",gap:"15px"}},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"os-processing-center-ingestion-advanced-cancelbutton",sx:{color:"#2A323C"},onClick:()=>n(t())},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.cancelbutton",defaultMessage:"Cancel",description:"cancel button text"})})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"os-processing-center-ingestion-advanced-savebutton",onClick:()=>{a&&n(actions$6.setSelectedCluster(a)),n(actions$6.setMediaChunkLength(l)),n(t())},variant:"contained",disabled:!a},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.savebutton",defaultMessage:"Save",description:"Save button text"})}))]}))]}))},useStyles$2=makeStyles()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column",padding:"30px",boxSizing:"border-box",gap:"25px"}})),PanelControls=({disableSave:e,disableCancel:t=!1,activeView:n,onClose:r,onSave:s,invalidFields:o=!1})=>{var a=useStyles$1()["classes"];const[i,l]=react.exports.useState(!1);return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-affiliate-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-affiliate-panel-cancel-btn",sx:{color:"#2A323C"},onClick:()=>{r()},disabled:t||i},{children:SHARED_TEXT.affiliatePanel.controls.cancel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(LoadingButton,Object.assign({loading:i,"data-testid":"pc-affiliate-panel-save-btn",onClick:()=>{l(!0),setTimeout(()=>{l(!1),s(),r()},1e3)},variant:"contained",disabled:e},{children:(()=>{switch(n){case EAffiliatePanelView.addAffiliate:return SHARED_TEXT.affiliatePanel.controls.saveAffiliate();case EAffiliatePanelView.editAffiliate:return SHARED_TEXT.affiliatePanel.controls.editAffiliate();case EAffiliatePanelView.bulkAffiliate:return SHARED_TEXT.affiliatePanel.controls.bulkImport();default:return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})}})()}))})}))]}))},useStyles$1=makeStyles()(e=>({buttonRow:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px",flexDirection:"row"}})),useStyles=makeStyles()(e=>({selectSourceContainer:{height:"100%vh - 200px",width:"100%"},removePadding:{padding:0},dropdownContainer:{padding:"5px",display:"flex",alignItems:"flex-start",justifyContent:"center"},selectContainer:{marginTop:"15px",width:"100%"},searchContainer:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",border:"2px solid #E1E6ED",borderRadius:"7px",margin:"9px",padding:"8px",minWidth:"240px"},searchInput:{width:"100%",border:"0",outline:"none",fontFamily:"'Nunito'",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left"},divLoader:{width:"100%",height:"350px",display:"flex",alignItems:"center",justifyContent:"center"},rowLoader:{height:"50px",display:"flex",justifyContent:"center",alignItems:"center"},source:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px",cursor:"pointer",height:"100%",boxSizing:"border-box","&:hover":{backgroundColor:"rgba(228, 240, 252, 0.8)"}},sourceItem:{width:"100%",marginRight:"auto"},sourceList:{display:"flex",flexDirection:"column",position:"relative",width:"100%",padding:"0 12px 0 20px",boxSizing:"border-box"},sourceScrollContainer:{maxHeight:"360px",overflow:"hidden",overflowY:"scroll"},overlay:{position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"all",background:"rgba(255,255,255,0.5)",zIndex:1},newSourceButton:{marginTop:"10px",marginBottom:"10px",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},advancedSettings:{marginTop:"10px",marginBottom:"10px",width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center"}})),sharedStyles=makeStyles()(e=>({label:{fontFamily:"Nunito",fontWeight:700,fontSize:14,color:"#2A323C",marginBottom:0,display:"flex",justifyContent:"space-between"},field:{width:"100%",paddingTop:20,paddingBottom:20},clearBtn:{color:"#0C53B0",cursor:"pointer",fontWeight:400}})),muiSelectStyleOverrides={height:"28px",fontSize:"0.8em","& fieldset":{borderColor:"#D5DFE9",borderWidth:"2px",borderRadius:"6px"},"&:hover":{"&& fieldset":{borderColor:"rgba(42,50,60,0.5)"}}},SelectSourceSearchInput=({onChange:t})=>{var e=useStyles()["classes"];const[n,r]=react.exports.useState("");return jsxRuntime.exports.jsxs("div",Object.assign({className:e.searchContainer},{children:[jsxRuntime.exports.jsx(Search,{}),jsxRuntime.exports.jsx("input",{"data-test":"ingestion-sources-search-input",onClick:e=>e.stopPropagation(),className:e.searchInput,onChange:e=>{e=e.target.value;r(e),t(e)},value:n,placeholder:"Search Source name.."})]}))},SelectSourceItem=({source:e,onChangeSource:t})=>{var n=useStyles()["classes"],{id:r,name:s}=e;return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({onClick:()=>{t(e)},className:n.source},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-source-"+s,className:n.sourceItem,noWrap:!0},{children:s||r}))}),r),jsxRuntime.exports.jsx(Divider,{})]})},LoadingStateRow=()=>{var e=useStyles()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.rowLoader},{children:jsxRuntime.exports.jsx(CircularProgress,{})}))},SelectSourceInfiniteList=({hasNextPage:t,isNextPageLoading:e,items:s,loadNextPage:n,onChangeSource:o})=>{const r=t?s.length+1:s.length;const a=e=>!t||e<s.length,i=({index:e,style:t})=>{let n;var r;return n=a(e)?(r=s[e],jsxRuntime.exports.jsx(SelectSourceItem,{source:r,onChangeSource:o},e)):jsxRuntime.exports.jsx(LoadingStateRow,{}),jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:n}))};return jsxRuntime.exports.jsx(InfiniteLoader,Object.assign({isItemLoaded:a,itemCount:r,loadMoreItems:e?()=>{}:n},{children:({onItemsRendered:e,ref:t})=>jsxRuntime.exports.jsx(FixedSizeList,Object.assign({height:300,itemCount:r,itemSize:40,onItemsRendered:e,ref:t,width:"100%"},{children:i}))}))},SelectSource=({sourceTypeIds:e,sourceSelected:t,onChangeSource:n,isAffiliate:r,disabled:s})=>{const o=useDispatch();var a=useStyles()["classes"],i=sharedStyles()["classes"],l=react.exports.useRef(null);const[c,d]=react.exports.useState(!1),u=useSelector(selectIsFullScreen);var p=useSelector(selectSearchedSources),g=useSelector(selectHasMore),m=useSelector(selectError);const f=useSelector(selectIsLoading);react.exports.useEffect(()=>{d(!1)},[t]),react.exports.useEffect(()=>{c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceTypeId(e)),o(actions$6.sourcesSearchStart(r)))},[c]);var y=debounce_1(e=>{o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(e)),o(actions$6.sourcesSearchStart(r))},300);return jsxRuntime.exports.jsx(FormControl,Object.assign({id:"selectSourceStep",size:"small",sx:{width:"100%"}},{children:jsxRuntime.exports.jsxs(Select,Object.assign({disabled:s||!1,id:"sources","data-test":"processing-center-ingestion-source-selected",sx:muiSelectStyleOverrides,variant:"outlined",multiple:!1,displayEmpty:!0,onClick:()=>{s||(c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(""))),d(!c))},className:i.field,open:c,onOpen:()=>f,renderValue:()=>t?t.name:SHARED_TEXT.sourceSelectDefaultMessage(),MenuProps:{sx:{padding:0,width:"100%"},anchorOrigin:{vertical:"bottom",horizontal:"center"},classes:{list:a.removePadding,paper:a.removePadding}}},{children:[[jsxRuntime.exports.jsx("div",Object.assign({id:"sourceMenu",className:a.dropdownContainer,ref:l},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.sourceList},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-test":"processing-center-ingestion-source-select-item",disableRipple:!0,focusRipple:!1,sx:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"transparent !important"}},dense:!0,onKeyDown:e=>e.stopPropagation()},{children:jsxRuntime.exports.jsx(SelectSourceSearchInput,{onChange:y})})),jsxRuntime.exports.jsx("div",Object.assign({style:{paddingRight:"8px"}},{children:jsxRuntime.exports.jsx(Divider,{})})),!m&&!f&&0===p.length&&jsxRuntime.exports.jsx("div",Object.assign({style:{width:"100%",display:"flex",height:"100px",alignItems:"center",justifyContent:"center",flexDirection:"column"}},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-not-found",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesNotFoundText()}))})),m&&jsxRuntime.exports.jsxs("div",Object.assign({style:{width:"100%",display:"flex",alignItems:"center",flexDirection:"column"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-has-error-message",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesErrorMessageText()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"ingestion-sources-has-error-retry-button",onClick:()=>{o(actions$6.sourcesSearchStart(r))},sx:{marginTop:"20px"},variant:"contained"},{children:SHARED_TEXT.retryButtonText()}))]})),!m&&0<p.length&&jsxRuntime.exports.jsx("div",Object.assign({id:"sourcesInfiniteList",className:"aiware-el "},{children:jsxRuntime.exports.jsx(SelectSourceInfiniteList,{hasNextPage:g,isNextPageLoading:f,items:p,loadNextPage:()=>{o(actions$6.sourcesSearchStart(r))},onChangeSource:n})}))]}))}),"sourceMenu")],!m&&f&&0===p.length&&jsxRuntime.exports.jsx(LoadingStateList,{text:SHARED_TEXT.loadingSources()}),[!m&&!r&&jsxRuntime.exports.jsxs("div",Object.assign({style:{padding:"0px 25px"}},{children:[jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx("div",Object.assign({className:a.newSourceButton},{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"processing-center-ingestion-create-source-button",onClick:()=>{var e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:u?0:55,marginStart:u?0:80,size:"large",zIndex:u?1011:1001,parentPanelId:"DATA_CENTER",dimmed:0,dimmedStatus:"dimParent"};o(mountPanel({panelId:"PROCESSING_CENTER_SOURCES",microFrontend:{name:"PROCESSING_CENTER_SOURCES",config:{}},panelConfig:e}))},variant:"text",startIcon:jsxRuntime.exports.jsx(default_1,{})},{children:SHARED_TEXT.createSourceButton()}))}))]}),"sourceSearchedNoError")]]}))}))},LoadingStateList=({text:e})=>{var t=useStyles()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:t.divLoader},{children:jsxRuntime.exports.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"column"}},{children:[jsxRuntime.exports.jsx(CircularProgress,{}),jsxRuntime.exports.jsx(Typography,Object.assign({align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:e}))]}))}))};var EAffiliatePanelView,$$1=_export,$includes=arrayIncludes.includes,fails=fails$l,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$l(function(){return!Array(1).includes()}),isObject=($$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$8),classof=classofRaw$1,wellKnownSymbol$1=wellKnownSymbol$i,MATCH$1=wellKnownSymbol$i("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$i,MATCH=wellKnownSymbol$i("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$=_export,uncurryThis=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$6,toString=toString$7,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf);$({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});const DayBubble=({day:e,enabled:t,onClick:n})=>{var r=useStyles$7()["classes"],r=r.dayBubble+" "+(t?"enabled":"disabled"),t=t?WEEKLY_SCHEDULER_SHARED_TEXT.days[e].disable:WEEKLY_SCHEDULER_SHARED_TEXT.days[e].enable;return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:t},{children:jsxRuntime.exports.jsx("div",Object.assign({onClick:n,className:r,"data-testid":"day-bubble-"+e.toLowerCase()},{children:e}))}))},TimeRowHoverActions=({onAdd:e,onCopyToAll:t,day:n})=>{var r=useStyles$7()["classes"];const[s,o]=react.exports.useState(!1);return react.exports.useEffect(()=>{let e;return s&&(t(n),e=setTimeout(()=>{o(!1)},1e3)),()=>{e&&clearTimeout(e)}},[s]),jsxRuntime.exports.jsxs("div",Object.assign({className:r.rowActions},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.addTimeWindow},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>e(n),"data-testid":"pc-wizard-schedule-weekly-timeslot-add-new"},{children:jsxRuntime.exports.jsx(AddCircleOutline,{sx:{color:"#1871E8"}})}))})),jsxRuntime.exports.jsx("div",{className:r.rowDivider}),jsxRuntime.exports.jsxs("div",Object.assign({className:r.rowCopyToAll},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.replaceAllDayTimes},{children:jsxRuntime.exports.jsxs(IconButton,Object.assign({onClick:()=>o(!0),"data-testid":"pc-wizard-schedule-weekly-timeslot-copy-to-all"},{children:[!s&&jsxRuntime.exports.jsx(ContentCopy,{sx:{color:"#1871E8"}}),s&&jsxRuntime.exports.jsx(CheckCircle,{sx:{color:"#40c057"}})]}))})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:"weekly-schedule-row-copy-all-text",sx:{color:s?"#40c057":"#1871E8"}},{children:[!s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copyTimeToAll,s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copiedTimeToAll]}))]}))]}))},DayTimeslotsRow=({day:n,enabled:e,timeslots:t,onAdd:r,onDelete:s,onChangeTime:o,onCopyToAll:a,disabled:i})=>{const l=useStyles$7()["classes"];var c=WEEKLY_SCHEDULER_SHARED_TEXT.days[n].label;return e?jsxRuntime.exports.jsxs("div",Object.assign({className:l.timeslotRow,"data-testid":"timeslot-row-day-"+n.toLowerCase()},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:l.timeslotDayLabel},{children:jsxRuntime.exports.jsx(Typography,{children:c})})),jsxRuntime.exports.jsx(()=>jsxRuntime.exports.jsx("div",Object.assign({className:l.timeslotList,"data-testid":"timeslot-list"},{children:t.map((e,t)=>jsxRuntime.exports.jsx(TimeStartEndField,{day:n,timeslot:e,showDelete:0!==t,onDelete:s,onChangeTime:o,disabled:i,id:""+(t+1)},t))})),{}),!i&&jsxRuntime.exports.jsx(TimeRowHoverActions,{onAdd:r,onCopyToAll:a,day:n})]})):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})},DayTimeslotsContainer=({enabledDays:n,timeslots:r,onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l})=>{var e=useStyles$7()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.timeslotsWidgetContainer,"data-testid":"timeslots-container"},{children:DAYS.ids.map((e,t)=>jsxRuntime.exports.jsx(DayTimeslotsRow,{day:e,timeslots:r[e],enabled:n.includes(e),onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l},t))}))},WeeklyScheduler=({isEnabled:e,timeslots:s,onChangeTimeslots:o})=>{var t=useStyles$7()["classes"];return e?jsxRuntime.exports.jsxs("div",Object.assign({className:t.container,"data-testid":"weekly-timeslot-picker"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.dayBubblesContainer,"data-testid":"day-bubble-picker"},{children:DAYS.ids.map((n,e)=>jsxRuntime.exports.jsx(DayBubble,{day:n,enabled:getEnabledDays(s).includes(n),onClick:()=>{var e,t;e=n,getEnabledDays(s).includes(e)?1!==getEnabledDays(s).length&&((t=lodash.exports.cloneDeep(s))[e]=[],o(t)):((t=lodash.exports.cloneDeep(s))[e]=[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],o(t))}},e))})),jsxRuntime.exports.jsx(DayTimeslotsContainer,{enabledDays:getEnabledDays(s),timeslots:s,onAdd:e=>{var t=lodash.exports.cloneDeep(s);t[e]=lodash.exports.cloneDeep(t[e]),t[e].push(createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)),o(t)},onDelete:(e,t)=>{var n=lodash.exports.cloneDeep(s);n[e]=n[e].filter(e=>{e=e.id;return!(t===e)}),o(n)},onChangeTime:(n,r,e)=>{var t=lodash.exports.cloneDeep(s);e&&(t[e]=t[e].map(e=>{var t=e["id"];return r===t?Object.assign(Object.assign(Object.assign({},e),n),{id:r}):e})),o(t)},onCopyToAll:e=>{var t=lodash.exports.cloneDeep(s);for(const n of Object.keys(t))t[n].length&&(t[n]=lodash.exports.cloneDeep(t[e]));o(t)}})]})):null},AddEditAffiliateView=({onClose:e,affiliateId:t,isEdit:n})=>{const[r,s]=react.exports.useState(null),[o,a]=react.exports.useState(initialTimeslots),[i,l]=react.exports.useState(""),[c,d]=react.exports.useState("");var u=validateStartAndEndTime(i,c,!0);const[p,g]=react.exports.useState(!0);var m=useSelector(selectSourceTypeId)||[];const f=useSelector(selectBasicInfoAffiliates),y=useDispatch();react.exports.useEffect(()=>{n&&t&&(s(f[t].source),l(f[t].startDate),d(f[t].stopDate),a(f[t].schedule))},[t,n]);var h=!r||u||!i||!c||!p;const S=(e,t)=>{e=e.target.value;("start"===t?l:d)(e)};return react.exports.useEffect(()=>{g(validateAllTimeslots(o))},[o]),jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5",sx:{marginBottom:"10px"}},{children:SHARED_TEXT.sourceSelectTitle()})),jsxRuntime.exports.jsx(SelectSource,{sourceTypeIds:m,sourceSelected:r,onChangeSource:e=>{s(e)},isAffiliate:!0,disabled:!!n})]}),!!r&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()}))}),jsxRuntime.exports.jsxs(Box,Object.assign({alignItems:"center",display:"flex",justifyContent:"flex-start"},{children:[jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-affiliate-add-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:i,onChange:e=>S(e,"start"),InputLabelProps:{shrink:!0},error:u})}),jsxRuntime.exports.jsx(Typography,Object.assign({m:"0 10px"},{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})),jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-affiliate-add-end-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",value:c,onChange:e=>S(e,"end"),InputLabelProps:{shrink:!0},error:u})})]}))]}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{"& .weekly-schedule-row-copy-all-text":{display:"none"},maxHeight:"60vh"}},{children:jsxRuntime.exports.jsx(WeeklyScheduler,{isEnabled:!!r,onChangeTimeslots:a,timeslots:o})})),jsxRuntime.exports.jsx(PanelControls,{disableSave:h,activeView:n?EAffiliatePanelView.editAffiliate:EAffiliatePanelView.addAffiliate,onClose:e,onSave:()=>{var e;r&&(e={source:r,startDate:i,stopDate:c,schedule:o},y(actions$4.addEditAffiliate(e)))},invalidFields:u||!p})]})},BulkAffiliateView=({onClose:e})=>{useDispatch();return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Placeholder,{ticketNumber:"AWT-8327",height:"400px"}),jsxRuntime.exports.jsx(PanelControls,{disableSave:!1,activeView:EAffiliatePanelView.bulkAffiliate,onClose:e,onSave:()=>{}})]})},PanelContainer=({activeView:e,hidePanel:t,affiliateId:n,isEdit:r})=>{var s=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:s.container},{children:[e===EAffiliatePanelView.addAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t}),e===EAffiliatePanelView.editAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t,affiliateId:n,isEdit:r}),e===EAffiliatePanelView.bulkAffiliate&&jsxRuntime.exports.jsx(BulkAffiliateView,{onClose:t})]}))},Placeholder=(!function(e){e.addAffiliate="addAffiliate",e.editAffiliate="editAffiliate",e.bulkAffiliate="bulkAffiliate"}(EAffiliatePanelView=EAffiliatePanelView||{}),({ticketNumber:e,height:t="150px"})=>{return jsxRuntime.exports.jsx("div",Object.assign({style:{background:"#f7f7f7",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",padding:"50px",height:t}},{children:e}))});var index_esm=Object.freeze({__proto__:null,ProcessingCenterAdvancedSettings:ProcessingCenterAdvancedSettings,ProcessingCenterAffiliatePanel:PanelContainer,ProcessingCenterIngestion:ProcessingCenterIngestion});export{isConstructor$1 as $,actions$4 as A,toString$7 as B,internalState as C,anInstance$1 as D,EAffiliatePanelView as E,classof$6 as F,isObject$8 as G,objectCreate as H,createPropertyDescriptor$3 as I,validateArgumentsLength$1 as J,selectBasicInfoAffiliates as K,stringMultibyte as L,makeBuiltIn$2 as M,objectDefineProperty as N,functionCall as O,PanelControls$1 as P,hasOwnProperty_1 as Q,anObject$e as R,SHARED_TEXT as S,getIterator$1 as T,getIteratorMethod$2 as U,tryToString$4 as V,format as W,DayTimeslotsContainer as X,getEnabledDays as Y,isArrayIteratorMethod$1 as Z,_export as _,selectSourceSelected as a,toAbsoluteIndex$1 as a0,iteratorClose$1 as a1,toPropertyKey$2 as a2,selectTimezone as a3,selectScheduleType as a4,selectFrequency as a5,selectWeeklyTimeslots as a6,selectIsWeeklyValid as a7,actions$5 as a8,selectFrequencyIsValid as a9,initialTimeslots as aa,validateAllTimeslots as ab,formatWeeklyPayload as ac,FrequencySchedular as ad,WeeklyScheduler as ae,ENextButtonType as af,selectDagTemplateId as ag,selectDagTemplatesLoadingStatus as ah,LoadingStatus as ai,actions$3 as aj,selectAllDagTemplates as ak,selectDagTemplatesHasMore as al,__rest as am,index_esm as an,SelectSource as b,actions$6 as c,selectScheduleName as d,selectBasicInfoInvalidFields as e,defineIterator$1 as f,fails$l as g,functionUncurryThis as h,global$o as i,defineBuiltIn$7 as j,setToStringTag$3 as k,createIteratorConstructor$1 as l,isCallable$n as m,descriptors as n,functionBindContext as o,objectAssign as p,engineUserAgent as q,aCallable$7 as r,selectIsFullScreen as s,toObject$4 as t,useStyles as u,lengthOfArrayLike$2 as v,wellKnownSymbol$i as w,engineV8Version as x,selectPrograms as y,selectBasicInfoMeta as z};
14
+ `,operationName:"getUrl",variables:e},r))).getSignedWritableUrl,n={method:"PUT",headers:{"Content-Type":s.type,"X-Veritone-Application":"aiware-sdk"},body:s};try{return yield fetch(e,n),t}catch(e){return console.log(e),""}})}function createScheduledJob(t,n){return __awaiter(this,void 0,void 0,function*(){var e="createScheduledJob";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createScheduledJob($scheduledJob: CreateScheduledJob!) {\n createScheduledJob(input: $scheduledJob) {\n id\n }\n }",operationName:e,variables:{scheduledJob:n}},t))).id})}getBuiltIn("Promise"),$$2({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),function(e){e[e.Once=0]="Once",e[e.Continuous=1]="Continuous",e[e.Recurring=2]="Recurring",e[e.Now=3]="Now"}(ERunMode=ERunMode||{}),function(e){e[e.chunk=0]="chunk",e[e.stream=1]="stream"}(EIoFolderMode=EIoFolderMode||{}),function(e){e[e.input=0]="input",e[e.output=1]="output"}(EIoFolderType=EIoFolderType||{});const selectScheduleName=e=>e.processingCenterIngestion.basicInfoStep.scheduleName||"",selectPrograms=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.programs},selectBasicInfoMeta=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta},selectBasicInfoInvalidFields=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.isInvalidFields},selectBasicInfoAffiliates=e=>{return null==(e=null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta)?void 0:e.affiliates};function*saveScheduledJobSaga(){var e,t,n,r=yield select(preferredLanguageSelector),r=AIWareFormatMessage(r);try{var s=yield select(selectApiConfigs),o=yield select(selectSelectedFolderId),a=yield select(selectSchedulePayload),i=yield select(selectTimezone),l=yield select(selectDagTemplateId),c=yield select(selectScheduleName);const x=yield select(selectBasicInfoMeta);var d=yield select(userSelector),u=(null==(t=null==(e=null==d?void 0:d.organization)?void 0:e.organizationId)?void 0:t.toString())||"",p=yield select(selectSourceSelected),g=yield select(selectMediaChunkLength),m=yield select(selectClusterSelected),f=yield select(selectClusters),y=yield select(selectContentTemplatesToSave),h=Object.values(y).map(e=>({schemaId:e.schemaId,data:e.data})),S=null==(n=f.find(e=>!0===e.default))?void 0:n.id;const $={name:c,description:x.description,isActive:!0,runMode:a.runMode,organizationId:u,startDateTime:a.startDateTime,stopDateTime:a.stopDateTime,weeklyScheduleParts:a.weeklyScheduleParts,details:{dagTemplateId:l,timezone:i},dagTemplates:{dagTemplateIds:[l],params:{SOURCE_ID:p.id,CLUSTER_ID:m?m.id:S},jobConfig:{maxTDODuration:g,createTDOInput:{parentFolderId:o,sourceData:{sourceId:p.id}}}}},T=(0<h.length&&($.contentTemplates=h),{Su:"Sunday",M:"Monday",Tu:"Tuesday",W:"Wednesday",Th:"Thursday",F:"Friday",Sa:"Saturday"});Object.keys(x).forEach(e=>{var t=x[e];switch(e){case"programWebsite":$.details.websiteUrl=t;break;case"affiliates":0<Object.keys(t).length&&($.affiliates=[],Object.values(t).forEach(n=>{const r=n.source.id;Object.keys(n.schedule).forEach(e=>{const t=T[e];e=n.schedule[e];Array.isArray(e)&&0<e.length&&e.forEach(e=>{$.affiliates.push({sourceId:r,scheduledDay:t,startDateTime:n.startDate,stopDateTime:n.stopDate,startTime:e.start,stopTime:e.end})})})}));break;default:$.details[e]=t}});var b=yield call$j(createScheduledJob,s,$);console.log("Created scheduled job "+b),yield put(showMessage({content:r({id:"os-processing-center-ingestion.wizard-panel.save-success",defaultMessage:[{type:0,value:"Scheduled job created"}]}),severity:MessageSeverity.Success})),yield put(hidePanel("PROCESSING_CENTER_INGESTION")),yield put(actions$7.saveScheduledJobSuccess())}catch(e){yield put(showMessage({content:r({id:"os-processing-center-ingestion.wizard-panel.save-failure",defaultMessage:[{type:0,value:"Problem creating scheduled job, please try again"}]}),severity:MessageSeverity.Error})),yield put(actions$7.saveScheduledJobFailure())}}function*saveScheduledJobWatcher(){yield takeLatest$1(actions$7.saveScheduledJobStart.type,saveScheduledJobSaga)}function*getProgramsSaga(){try{var e=yield select(selectApiConfigs),t=(yield select(selectSourceSelected)).sourceTypeId,n=yield call$j(getPrograms,e,t);yield put(actions$4.setPrograms(n))}catch(e){yield put(actions$4.setError(e))}}function*getImageURLSaga(e){try{var t=yield select(selectApiConfigs),{image:n,type:r}=e.payload,s=yield call$j(getImageURL,t,n);yield put(actions$4.setBasicInfoMeta({key:r,meta:s}))}catch(e){yield put(actions$4.setError(e))}}function*getProgramsWatcher(){yield takeLatest$1(actions$4.getProgramsStart.type,getProgramsSaga)}function*getImageURLWatcher(){yield takeLatest$1(actions$4.setImage.type,getImageURLSaga)}function*initProcessingCenterIngestion(){(yield select(selectUIStateStatus))===LoadingStatus.Pending&&(yield put(actions.uiState.initDone()))}function*watchProcessingCenterIngestionInit(){yield takeLatest$1(actions.uiState.init.type,initProcessingCenterIngestion)}function*rootSaga(){yield all([watchProcessingCenterIngestionInit(),getSourcesSearchTermWatcher(),getClusterSearchWatcher(),getProgramsWatcher(),fetchDagTemplatesWatcher(),saveScheduledJobWatcher(),getImageURLWatcher()])}function getProcessingCenterIngestionModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}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 ENextButtonType,visuallyHidden$1=visuallyHidden;const useStyles$6=makeStyles()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight: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)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),stepperStyles=makeStyles()(e=>({container:{padding:"20px",borderBottom:"1px solid #D5DFE9"},editModeContainer:{borderBottom:"1px solid #D5DFE9",paddingTop:"20px"},step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"&+.MuiStepConnector-horizontal":{display:"none"},"& svg":{border:"2px solid white",borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"transparent!important",border:"1px solid",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),selectActiveStep=e=>e.processingCenterIngestion.ingestionJobsWizard.activeStep,selectSteps=e=>e.processingCenterIngestion.ingestionJobsWizard.steps,selectIsFullScreen=e=>{return e.processingCenterIngestion.ingestionJobsWizard.isFullScreen},selectIsEditMode=e=>{return e.processingCenterIngestion.ingestionJobsWizard.isEditMode},tabsStyle={borderBottom:"0.5px solid #D5DFE9","& .Sdk-MuiButtonBase-root.MuiTab-root.MuiTab-textColorPrimary.Mui-selected":{color:"#2A323C!important"},"& .Sdk-MuiTabs-indicator":{backgroundColor:"#2A323C"}},PanelHeader=({height:e,onPanelClose:t,activeStep:l,stepLabels:c,steps:d})=>{e=useStyles$6({height:e}).classes;const u=stepperStyles()["classes"];var n=useSelector(selectIsEditMode);const r=useDispatch();return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"os-pc-ingestion-wizard-close-panel-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1","data-testid":"os-pc-ingestion-wizard-close-panel-title",className:e.title},{children:(n?SHARED_TEXT.ingestionJobsWizard.editMode:SHARED_TEXT.ingestionJobsWizard).panelHeader()})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"os-pc-ingestion-wizard-close-panel"},{children:SHARED_TEXT.ingestionJobsWizard.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.ingestionJobsWizard.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"os-pc-ingestion-wizard-close-panel","data-testid":"os-pc-ingestion-wizard-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:n?u.editModeContainer:u.container},{children:[n&&jsxRuntime.exports.jsx(Tabs,Object.assign({value:l,onChange:(e,t)=>{t=t,r(actions$7.goToStep(t))},variant:"scrollable",sx:Object.assign({["& ."+tabsClasses.scrollButtons]:{"&.Mui-disabled":{opacity:.3}}},tabsStyle),scrollButtons:!0},{children:d.map((e,t)=>{var e=e["number"],n=c[e];return jsxRuntime.exports.jsx(Tab,{label:jsxRuntime.exports.jsx(n,{}),value:e,"data-testid":"pc-ingestion.edit-schedule-job.panel-header.tab."+e},t)})})),!n&&jsxRuntime.exports.jsx(Stepper,Object.assign({activeStep:l},{children:d.map((e,t)=>{var{number:e,completed:n}=e,r=c[e],s=Math.abs(e-l)<2,o=0===e,a=e===d.length-1,i=e<l,e=l<e,e=`${u.step} ${e?u.futureStep:""} ${i?u.previousStep:""} ${s||i?"":u.hiddenStep} ${o?"is-first-step":""} `+(a?"is-last-step":"");return jsxRuntime.exports.jsx(Step,Object.assign({className:e,completed:n},{children:jsxRuntime.exports.jsx(StepLabel,{children:s&&r()})}),t)})}))]}))]})},useStyles$5=makeStyles()(e=>({panelContainer:{padding:"30px",height:"calc(100vh - 265px)",overflowY:"scroll"}})),useStyles$4=makeStyles()(e=>({locationAndPermissionsWrapper:{display:"flex",flexDirection:"column",gap:e.spacing(4)},locationFolderWrapper:{width:"100%",marginTop:e.spacing(4),padding:e.spacing(2),border:"1px solid #D5DFE9",borderRadius:4,display:"flex",alignItems:"center",position:"relative"},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"}}})),useStyles$3=makeStyles()(e=>({buttonRow:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px",flexDirection:"row"}})),PanelControls$1=(!function(e){e.SKIP="SKIP",e.NEXT="NEXT",e.CREATE_SCHEDULED_JOB="CREATE_SCHEDULED_JOB"}(ENextButtonType=ENextButtonType||{}),({disableNext:e,disableBack:t,onClickNext:n,onClickBack:r,nextButtonType:s=ENextButtonType.NEXT,invalidFields:o=!1})=>{var a=useStyles$3()["classes"];const i=useSelector(selectScheduleState),l=useSelector(selectActiveStep),c=useDispatch();return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-ingestion-wizard-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-back-btn",sx:{color:"#2A323C"},onClick:()=>{1===l&&c(hidePanel("PROCESSING_CENTER_INGESTION")),c(actions$7.backStep()),r&&r()},disabled:t},{children:1!==l?SHARED_TEXT.backButton():SHARED_TEXT.cancelButton()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-next-btn",onClick:()=>{var e;3===l&&(e=setApiPayload(i),c(actions$5.setSchedulePayload(e))),6===l&&c(actions$7.saveScheduledJobStart()),c(actions$7.nextStep()),n&&n()},variant:"contained",disabled:e},{children:(()=>{switch(s){case ENextButtonType.NEXT:return SHARED_TEXT.nextButton();case ENextButtonType.SKIP:return SHARED_TEXT.skipButton();case ENextButtonType.CREATE_SCHEDULED_JOB:return SHARED_TEXT.createScheduledJobButton();default:return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})}})()}))})}))]}))}),enablePermissions=!1,LocationAndPermissionsStep=()=>{var e=useStyles$4()["classes"];const n=useDispatch(),r=useSelector(selectIsFullScreen),t=(useSelector(selectIsOLPEnabled),useSelector(selectors$1.viewMyFiles.selectRootFolderId)),s=useSelector(selectors.location.selectSelectedFolderId);var o=useSelector(selectors$1.entities.selectFolderEntity(s||t));react.exports.useEffect(()=>{t&&!s&&n(actions.location.setSelectedFolderId(t))},[n,t,s]);const a=react.exports.useCallback(e=>{n(unmountPanel("DATA_CENTER_FOLDERS_AND_FILES")),n(actions.location.setSelectedFolderId(e))},[n]);var i=react.exports.useCallback(()=>{n(actions$9.viewMyFiles.toggleFileOrFolderSelected(null));var e={name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:index.DataCenterView.folders,onSelect:a,selectHomeText:SHARED_TEXT.location.chooseHome(),selectItemText:SHARED_TEXT.location.chooseLocation()}},t={panelId:"DATA_CENTER_FOLDERS_AND_FILES",disableHide:!1,parentPanelId:"PROCESSING_CENTER_INGESTION",type:"APP_BAR_PANEL_TEMPLATE",size:"small",marginTop:r?0:55,marginStart:r?0:80,height:600,header:{title:"Choose a Location"},dimmed:0,zIndex:r?1011:1002,dimmedStatus:"dimParent"};n(mountPanel({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:e,panelConfig:t}))},[n,r,a]);return jsxRuntime.exports.jsxs("div",Object.assign({className:e.locationAndPermissionsWrapper},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2"},{children:SHARED_TEXT.location.sectionTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.location.chooseLocationDetails()})),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"processing-center-location-folder",className:e.locationFolderWrapper},{children:[jsxRuntime.exports.jsx("span",Object.assign({className:e.folderLabel,"data-test":"processing-center-location-folder-label"},{children:SHARED_TEXT.location.folderInputLabel()})),jsxRuntime.exports.jsx(FolderOpen,{className:e.folderIcon}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",color:"textPrimary","data-test":"processing-center-location-folder-path"},{children:(null==o?void 0:o.id)===t?SHARED_TEXT.location.homeFolderLabel():null==o?void 0:o.name})),jsxRuntime.exports.jsx("span",{className:e.spacer}),jsxRuntime.exports.jsx("span",Object.assign({className:e.folderInputLabel,onClick:i,role:"button","data-test":"processing-center-location-select-btn"},{children:SHARED_TEXT.location.changeLocationButton()}))]}))]}),enablePermissions,jsxRuntime.exports.jsx(PanelControls$1,{disableNext:!1,disableBack:!1,nextButtonType:ENextButtonType.CREATE_SCHEDULED_JOB})]}))},stepLabels={1:SHARED_TEXT.ingestionJobsWizard.stepLabels.selectSource,2:SHARED_TEXT.ingestionJobsWizard.stepLabels.basicInfo,3:SHARED_TEXT.ingestionJobsWizard.stepLabels.schedule,4:SHARED_TEXT.ingestionJobsWizard.stepLabels.processing,5:SHARED_TEXT.ingestionJobsWizard.stepLabels.contentTemplates,6:SHARED_TEXT.ingestionJobsWizard.stepLabels.location};class IngestionJobsWizardErrorBoundary extends react.exports.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e){console.log("componentDidCatch",e)}render(){return this.state.hasError&&console.log("Render Error",this.state.hasError),this.state.hasError?jsxRuntime.exports.jsx("h3",{children:"An error has occurred."}):this.props.children}}const SelectSourceStep=react.exports.lazy(()=>import("./js-core.esm81.js")),BasicInfoStep=react.exports.lazy(()=>import("./js-core.esm82.js")),ScheduleStep=react.exports.lazy(()=>import("./js-core.esm83.js")),ContentTemplatesStep=react.exports.lazy(()=>import("./js-core.esm84.js")),ProcessingStep=react.exports.lazy(()=>import("./js-core.esm85.js")),IngestionJobsWizard=e=>{var t=useStyles$5()["classes"];const n=useDispatch();var r=useSelector(selectSteps),s=useSelector(selectActiveStep);react.exports.useEffect(()=>{e.activeEngine&&n(actions$7.setActiveEngine(null==e?void 0:e.activeEngine)),e.isFullScreen&&n(actions$7.setIsFullScreen(Boolean(null==e?void 0:e.isFullScreen))),e.scheduledJobId&&(n(actions$7.setIsEditMode(!0)),n(actions$7.setScheduledJobId(null==e?void 0:e.scheduledJobId)))},[null==e?void 0:e.activeEngine,null==e?void 0:e.isFullScreen,null==e?void 0:e.scheduledJobId]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"700px"}},{children:[jsxRuntime.exports.jsx(PanelHeader,{steps:r,activeStep:s,stepLabels:stepLabels,height:64,onPanelClose:()=>n(hidePanel("PROCESSING_CENTER_INGESTION"))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.panelContainer},{children:jsxRuntime.exports.jsx(IngestionJobsWizardErrorBoundary,{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[1===s&&jsxRuntime.exports.jsx(SelectSourceStep,{sourceTypeIds:null==(r=null==e?void 0:e.activeEngine)?void 0:r.supportedSourceTypes}),2===s&&jsxRuntime.exports.jsx(BasicInfoStep,{activeEngine:null==e?void 0:e.activeEngine}),3===s&&jsxRuntime.exports.jsx(ScheduleStep,{activeEngine:null==e?void 0:e.activeEngine}),4===s&&jsxRuntime.exports.jsx(ProcessingStep,{}),5===s&&jsxRuntime.exports.jsx(ContentTemplatesStep,{}),6===s&&jsxRuntime.exports.jsx(LocationAndPermissionsStep,{})]}))})}))]}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),ProcessingCenterIngestion=e=>jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getProcessingCenterIngestionModule(),getProcessingCenterContentTemplatesModule(),getDataCenterBrowseModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(IngestionJobsWizard,Object.assign({},e))})}))})})),ProcessingCenterAdvancedSettings=e=>{const t=e["hidePanel"],n=useDispatch(),r=["1","5","15","30","45","60"];var e=useSelector(selectMediaChunkLength)||"15",s=useSelector(selectClusters);const o=useSelector(selectClusterSelected),[a,i]=react.exports.useState(null),[l,c]=react.exports.useState(e);e=useSelector(selectClustersError);const d=useSelector(selectClustersIsLoading);react.exports.useEffect(()=>{n(actions$6.clustersSearchStart())},[]),react.exports.useEffect(()=>{d||i(o||null)},[d,o]);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginLeft:"30px"}},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:!d&&!e&&jsxRuntime.exports.jsx(Autocomplete,{"data-testid":"processing-center-ingestion-cluster-select",value:a,onChange:(e,t)=>{i(t)},sx:{width:"320px"},options:s,getOptionLabel:e=>e?e.name:"",renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{InputLabelProps:{shrink:!0},label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.clusterLabel",defaultMessage:"Cluster",description:"text for cluster label"})})),renderOption:(e,t)=>react.exports.createElement("div",Object.assign({},e,{key:t.id,"data-test":"processing-center-ingestion-cluster-item-"+t.id}),jsxRuntime.exports.jsx(Typography,Object.assign({noWrap:!0},{children:t.name})))})})),jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({id:"ingestion-media-chunk-length-label"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.mediaChunkLabel",defaultMessage:"Media Chunk Length",description:"text for media chunk label"})})),jsxRuntime.exports.jsx(Select,Object.assign({sx:{width:"320px"},labelId:"ingestion-media-chunk-length-label",id:"ingestion-media-chunk-length","data-testid":"ingestion-media-chunk-length-select",value:l,label:"Media Chunk Length",onChange:e=>{e=e.target.value;c(e)}},{children:[r.map(e=>jsxRuntime.exports.jsxs(MenuItem,Object.assign({value:e,"data-testid":"ingestion-wizard-select-source-media-chunk-item"},{children:[e," ",jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.minutes",defaultMessage:"Minutes",description:"text for minutes"})]}),e))]}))]})),jsxRuntime.exports.jsxs("div",Object.assign({style:{position:"absolute",bottom:"30px",right:"30px",display:"flex",flexDirection:"row",gap:"15px"}},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"os-processing-center-ingestion-advanced-cancelbutton",sx:{color:"#2A323C"},onClick:()=>n(t())},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.cancelbutton",defaultMessage:"Cancel",description:"cancel button text"})})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"os-processing-center-ingestion-advanced-savebutton",onClick:()=>{a&&n(actions$6.setSelectedCluster(a)),n(actions$6.setMediaChunkLength(l)),n(t())},variant:"contained",disabled:!a},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.savebutton",defaultMessage:"Save",description:"Save button text"})}))]}))]}))},useStyles$2=makeStyles()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column",padding:"30px",boxSizing:"border-box",gap:"25px"}})),PanelControls=({disableSave:e,disableCancel:t=!1,activeView:n,onClose:r,onSave:s,invalidFields:o=!1})=>{var a=useStyles$1()["classes"];const[i,l]=react.exports.useState(!1);return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-affiliate-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-affiliate-panel-cancel-btn",sx:{color:"#2A323C"},onClick:()=>{r()},disabled:t||i},{children:SHARED_TEXT.affiliatePanel.controls.cancel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(LoadingButton,Object.assign({loading:i,"data-testid":"pc-affiliate-panel-save-btn",onClick:()=>{l(!0),setTimeout(()=>{l(!1),s(),r()},1e3)},variant:"contained",disabled:e},{children:(()=>{switch(n){case EAffiliatePanelView.addAffiliate:return SHARED_TEXT.affiliatePanel.controls.saveAffiliate();case EAffiliatePanelView.editAffiliate:return SHARED_TEXT.affiliatePanel.controls.editAffiliate();case EAffiliatePanelView.bulkAffiliate:return SHARED_TEXT.affiliatePanel.controls.bulkImport();default:return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})}})()}))})}))]}))},useStyles$1=makeStyles()(e=>({buttonRow:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px",flexDirection:"row"}})),useStyles=makeStyles()(e=>({selectSourceContainer:{height:"100%vh - 200px",width:"100%"},removePadding:{padding:0},dropdownContainer:{padding:"5px",display:"flex",alignItems:"flex-start",justifyContent:"center"},selectContainer:{marginTop:"15px",width:"100%"},searchContainer:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",border:"2px solid #E1E6ED",borderRadius:"7px",margin:"9px",padding:"8px",minWidth:"240px"},searchInput:{width:"100%",border:"0",outline:"none",fontFamily:"'Nunito'",display:"flex",alignItems:"center",justifyContent:"center",textAlign:"left"},divLoader:{width:"100%",height:"350px",display:"flex",alignItems:"center",justifyContent:"center"},rowLoader:{height:"50px",display:"flex",justifyContent:"center",alignItems:"center"},source:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px",cursor:"pointer",height:"100%",boxSizing:"border-box","&:hover":{backgroundColor:"rgba(228, 240, 252, 0.8)"}},sourceItem:{width:"100%",marginRight:"auto"},sourceList:{display:"flex",flexDirection:"column",position:"relative",width:"100%",padding:"0 12px 0 20px",boxSizing:"border-box"},sourceScrollContainer:{maxHeight:"360px",overflow:"hidden",overflowY:"scroll"},overlay:{position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"all",background:"rgba(255,255,255,0.5)",zIndex:1},newSourceButton:{marginTop:"10px",marginBottom:"10px",width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},advancedSettings:{marginTop:"10px",marginBottom:"10px",width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center"}})),sharedStyles=makeStyles()(e=>({label:{fontFamily:"Nunito",fontWeight:700,fontSize:14,color:"#2A323C",marginBottom:0,display:"flex",justifyContent:"space-between"},field:{width:"100%",paddingTop:20,paddingBottom:20},clearBtn:{color:"#0C53B0",cursor:"pointer",fontWeight:400}})),muiSelectStyleOverrides={height:"28px",fontSize:"0.8em","& fieldset":{borderColor:"#D5DFE9",borderWidth:"2px",borderRadius:"6px"},"&:hover":{"&& fieldset":{borderColor:"rgba(42,50,60,0.5)"}}},SelectSourceSearchInput=({onChange:t})=>{var e=useStyles()["classes"];const[n,r]=react.exports.useState("");return jsxRuntime.exports.jsxs("div",Object.assign({className:e.searchContainer},{children:[jsxRuntime.exports.jsx(Search,{}),jsxRuntime.exports.jsx("input",{"data-test":"ingestion-sources-search-input",onClick:e=>e.stopPropagation(),className:e.searchInput,onChange:e=>{e=e.target.value;r(e),t(e)},value:n,placeholder:"Search Source name.."})]}))},SelectSourceItem=({source:e,onChangeSource:t})=>{var n=useStyles()["classes"],{id:r,name:s}=e;return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({onClick:()=>{t(e)},className:n.source},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-source-"+s,className:n.sourceItem,noWrap:!0},{children:s||r}))}),r),jsxRuntime.exports.jsx(Divider,{})]})},LoadingStateRow=()=>{var e=useStyles()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.rowLoader},{children:jsxRuntime.exports.jsx(CircularProgress,{})}))},SelectSourceInfiniteList=({hasNextPage:t,isNextPageLoading:e,items:s,loadNextPage:n,onChangeSource:o})=>{const r=t?s.length+1:s.length;const a=e=>!t||e<s.length,i=({index:e,style:t})=>{let n;var r;return n=a(e)?(r=s[e],jsxRuntime.exports.jsx(SelectSourceItem,{source:r,onChangeSource:o},e)):jsxRuntime.exports.jsx(LoadingStateRow,{}),jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:n}))};return jsxRuntime.exports.jsx(InfiniteLoader,Object.assign({isItemLoaded:a,itemCount:r,loadMoreItems:e?()=>{}:n},{children:({onItemsRendered:e,ref:t})=>jsxRuntime.exports.jsx(FixedSizeList,Object.assign({height:300,itemCount:r,itemSize:40,onItemsRendered:e,ref:t,width:"100%"},{children:i}))}))},SelectSource=({sourceTypeIds:e,sourceSelected:t,onChangeSource:n,isAffiliate:r,disabled:s})=>{const o=useDispatch();var a=useStyles()["classes"],i=sharedStyles()["classes"],l=react.exports.useRef(null);const[c,d]=react.exports.useState(!1),u=useSelector(selectIsFullScreen);var p=useSelector(selectSearchedSources),g=useSelector(selectHasMore),m=useSelector(selectError);const f=useSelector(selectIsLoading);react.exports.useEffect(()=>{d(!1)},[t]),react.exports.useEffect(()=>{c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceTypeId(e)),o(actions$6.sourcesSearchStart(r)))},[c]);var y=debounce_1(e=>{o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(e)),o(actions$6.sourcesSearchStart(r))},300);return jsxRuntime.exports.jsx(FormControl,Object.assign({id:"selectSourceStep",size:"small",sx:{width:"100%"}},{children:jsxRuntime.exports.jsxs(Select,Object.assign({disabled:s||!1,id:"sources","data-test":"processing-center-ingestion-source-selected",sx:muiSelectStyleOverrides,variant:"outlined",multiple:!1,displayEmpty:!0,onClick:()=>{s||(c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(""))),d(!c))},className:i.field,open:c,onOpen:()=>f,renderValue:()=>t?t.name:SHARED_TEXT.sourceSelectDefaultMessage(),MenuProps:{sx:{padding:0,width:"100%"},anchorOrigin:{vertical:"bottom",horizontal:"center"},classes:{list:a.removePadding,paper:a.removePadding}}},{children:[[jsxRuntime.exports.jsx("div",Object.assign({id:"sourceMenu",className:a.dropdownContainer,ref:l},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.sourceList},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-test":"processing-center-ingestion-source-select-item",disableRipple:!0,focusRipple:!1,sx:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"transparent !important"}},dense:!0,onKeyDown:e=>e.stopPropagation()},{children:jsxRuntime.exports.jsx(SelectSourceSearchInput,{onChange:y})})),jsxRuntime.exports.jsx("div",Object.assign({style:{paddingRight:"8px"}},{children:jsxRuntime.exports.jsx(Divider,{})})),!m&&!f&&0===p.length&&jsxRuntime.exports.jsx("div",Object.assign({style:{width:"100%",display:"flex",height:"100px",alignItems:"center",justifyContent:"center",flexDirection:"column"}},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-not-found",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesNotFoundText()}))})),m&&jsxRuntime.exports.jsxs("div",Object.assign({style:{width:"100%",display:"flex",alignItems:"center",flexDirection:"column"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-has-error-message",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesErrorMessageText()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"ingestion-sources-has-error-retry-button",onClick:()=>{o(actions$6.sourcesSearchStart(r))},sx:{marginTop:"20px"},variant:"contained"},{children:SHARED_TEXT.retryButtonText()}))]})),!m&&0<p.length&&jsxRuntime.exports.jsx("div",Object.assign({id:"sourcesInfiniteList",className:"aiware-el "},{children:jsxRuntime.exports.jsx(SelectSourceInfiniteList,{hasNextPage:g,isNextPageLoading:f,items:p,loadNextPage:()=>{o(actions$6.sourcesSearchStart(r))},onChangeSource:n})}))]}))}),"sourceMenu")],!m&&f&&0===p.length&&jsxRuntime.exports.jsx(LoadingStateList,{text:SHARED_TEXT.loadingSources()}),[!m&&!r&&jsxRuntime.exports.jsxs("div",Object.assign({style:{padding:"0px 25px"}},{children:[jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx("div",Object.assign({className:a.newSourceButton},{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"processing-center-ingestion-create-source-button",onClick:()=>{var e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:u?0:55,marginStart:u?0:80,size:"large",zIndex:u?1011:1001,parentPanelId:"DATA_CENTER",dimmed:0,dimmedStatus:"dimParent"};o(mountPanel({panelId:"PROCESSING_CENTER_SOURCES",microFrontend:{name:"PROCESSING_CENTER_SOURCES",config:{}},panelConfig:e}))},variant:"text",startIcon:jsxRuntime.exports.jsx(default_1,{})},{children:SHARED_TEXT.createSourceButton()}))}))]}),"sourceSearchedNoError")]]}))}))},LoadingStateList=({text:e})=>{var t=useStyles()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:t.divLoader},{children:jsxRuntime.exports.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",flexDirection:"column"}},{children:[jsxRuntime.exports.jsx(CircularProgress,{}),jsxRuntime.exports.jsx(Typography,Object.assign({align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:e}))]}))}))};var EAffiliatePanelView,$$1=_export,$includes=arrayIncludes.includes,fails=fails$l,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$l(function(){return!Array(1).includes()}),isObject=($$1({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$8),classof=classofRaw$1,wellKnownSymbol$1=wellKnownSymbol$i,MATCH$1=wellKnownSymbol$i("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},wellKnownSymbol=wellKnownSymbol$i,MATCH=wellKnownSymbol$i("match"),correctIsRegexpLogic=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[MATCH]=!1,"/./"[t](n)}catch(e){}}return!1},$=_export,uncurryThis=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$6,toString=toString$7,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf);$({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString(requireObjectCoercible(this)),toString(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});const DayBubble=({day:e,enabled:t,onClick:n})=>{var r=useStyles$7()["classes"],r=r.dayBubble+" "+(t?"enabled":"disabled"),t=t?WEEKLY_SCHEDULER_SHARED_TEXT.days[e].disable:WEEKLY_SCHEDULER_SHARED_TEXT.days[e].enable;return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:t},{children:jsxRuntime.exports.jsx("div",Object.assign({onClick:n,className:r,"data-testid":"day-bubble-"+e.toLowerCase()},{children:e}))}))},TimeRowHoverActions=({onAdd:e,onCopyToAll:t,day:n})=>{var r=useStyles$7()["classes"];const[s,o]=react.exports.useState(!1);return react.exports.useEffect(()=>{let e;return s&&(t(n),e=setTimeout(()=>{o(!1)},1e3)),()=>{e&&clearTimeout(e)}},[s]),jsxRuntime.exports.jsxs("div",Object.assign({className:r.rowActions},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.addTimeWindow},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>e(n),"data-testid":"pc-wizard-schedule-weekly-timeslot-add-new"},{children:jsxRuntime.exports.jsx(AddCircleOutline,{sx:{color:"#1871E8"}})}))})),jsxRuntime.exports.jsx("div",{className:r.rowDivider}),jsxRuntime.exports.jsxs("div",Object.assign({className:r.rowCopyToAll},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.replaceAllDayTimes},{children:jsxRuntime.exports.jsxs(IconButton,Object.assign({onClick:()=>o(!0),"data-testid":"pc-wizard-schedule-weekly-timeslot-copy-to-all"},{children:[!s&&jsxRuntime.exports.jsx(ContentCopy,{sx:{color:"#1871E8"}}),s&&jsxRuntime.exports.jsx(CheckCircle,{sx:{color:"#40c057"}})]}))})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:"weekly-schedule-row-copy-all-text",sx:{color:s?"#40c057":"#1871E8"}},{children:[!s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copyTimeToAll,s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copiedTimeToAll]}))]}))]}))},DayTimeslotsRow=({day:n,enabled:e,timeslots:t,onAdd:r,onDelete:s,onChangeTime:o,onCopyToAll:a,disabled:i})=>{const l=useStyles$7()["classes"];var c=WEEKLY_SCHEDULER_SHARED_TEXT.days[n].label;return e?jsxRuntime.exports.jsxs("div",Object.assign({className:l.timeslotRow,"data-testid":"timeslot-row-day-"+n.toLowerCase()},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:l.timeslotDayLabel},{children:jsxRuntime.exports.jsx(Typography,{children:c})})),jsxRuntime.exports.jsx(()=>jsxRuntime.exports.jsx("div",Object.assign({className:l.timeslotList,"data-testid":"timeslot-list"},{children:t.map((e,t)=>jsxRuntime.exports.jsx(TimeStartEndField,{day:n,timeslot:e,showDelete:0!==t,onDelete:s,onChangeTime:o,disabled:i,id:""+(t+1)},t))})),{}),!i&&jsxRuntime.exports.jsx(TimeRowHoverActions,{onAdd:r,onCopyToAll:a,day:n})]})):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})},DayTimeslotsContainer=({enabledDays:n,timeslots:r,onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l})=>{var e=useStyles$7()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.timeslotsWidgetContainer,"data-testid":"timeslots-container"},{children:DAYS.ids.map((e,t)=>jsxRuntime.exports.jsx(DayTimeslotsRow,{day:e,timeslots:r[e],enabled:n.includes(e),onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l},t))}))},WeeklyScheduler=({isEnabled:e,timeslots:s,onChangeTimeslots:o})=>{var t=useStyles$7()["classes"];return e?jsxRuntime.exports.jsxs("div",Object.assign({className:t.container,"data-testid":"weekly-timeslot-picker"},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.dayBubblesContainer,"data-testid":"day-bubble-picker"},{children:DAYS.ids.map((n,e)=>jsxRuntime.exports.jsx(DayBubble,{day:n,enabled:getEnabledDays(s).includes(n),onClick:()=>{var e,t;e=n,getEnabledDays(s).includes(e)?1!==getEnabledDays(s).length&&((t=lodash.exports.cloneDeep(s))[e]=[],o(t)):((t=lodash.exports.cloneDeep(s))[e]=[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],o(t))}},e))})),jsxRuntime.exports.jsx(DayTimeslotsContainer,{enabledDays:getEnabledDays(s),timeslots:s,onAdd:e=>{var t=lodash.exports.cloneDeep(s);t[e]=lodash.exports.cloneDeep(t[e]),t[e].push(createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)),o(t)},onDelete:(e,t)=>{var n=lodash.exports.cloneDeep(s);n[e]=n[e].filter(e=>{e=e.id;return!(t===e)}),o(n)},onChangeTime:(n,r,e)=>{var t=lodash.exports.cloneDeep(s);e&&(t[e]=t[e].map(e=>{var t=e["id"];return r===t?Object.assign(Object.assign(Object.assign({},e),n),{id:r}):e})),o(t)},onCopyToAll:e=>{var t=lodash.exports.cloneDeep(s);for(const n of Object.keys(t))t[n].length&&(t[n]=lodash.exports.cloneDeep(t[e]));o(t)}})]})):null},AddEditAffiliateView=({onClose:e,affiliateId:t,isEdit:n})=>{const[r,s]=react.exports.useState(null),[o,a]=react.exports.useState(initialTimeslots),[i,l]=react.exports.useState(""),[c,d]=react.exports.useState("");var u=validateStartAndEndTime(i,c,!0);const[p,g]=react.exports.useState(!0);var m=useSelector(selectSourceTypeId)||[];const f=useSelector(selectBasicInfoAffiliates),y=useDispatch();react.exports.useEffect(()=>{n&&t&&(s(f[t].source),l(f[t].startDate),d(f[t].stopDate),a(f[t].schedule))},[t,n]);var h=!r||u||!i||!c||!p;const S=(e,t)=>{e=e.target.value;("start"===t?l:d)(e)};return react.exports.useEffect(()=>{g(validateAllTimeslots(o))},[o]),jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5",sx:{marginBottom:"10px"}},{children:SHARED_TEXT.sourceSelectTitle()})),jsxRuntime.exports.jsx(SelectSource,{sourceTypeIds:m,sourceSelected:r,onChangeSource:e=>{s(e)},isAffiliate:!0,disabled:!!n})]}),!!r&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()}))}),jsxRuntime.exports.jsxs(Box,Object.assign({alignItems:"center",display:"flex",justifyContent:"flex-start"},{children:[jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-affiliate-add-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:i,onChange:e=>S(e,"start"),InputLabelProps:{shrink:!0},error:u})}),jsxRuntime.exports.jsx(Typography,Object.assign({m:"0 10px"},{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})),jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-affiliate-add-end-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",value:c,onChange:e=>S(e,"end"),InputLabelProps:{shrink:!0},error:u})})]}))]}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{"& .weekly-schedule-row-copy-all-text":{display:"none"},maxHeight:"60vh"}},{children:jsxRuntime.exports.jsx(WeeklyScheduler,{isEnabled:!!r,onChangeTimeslots:a,timeslots:o})})),jsxRuntime.exports.jsx(PanelControls,{disableSave:h,activeView:n?EAffiliatePanelView.editAffiliate:EAffiliatePanelView.addAffiliate,onClose:e,onSave:()=>{var e;r&&(e={source:r,startDate:i,stopDate:c,schedule:o},y(actions$4.addEditAffiliate(e)))},invalidFields:u||!p})]})},BulkAffiliateView=({onClose:e})=>{useDispatch();return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Placeholder,{ticketNumber:"AWT-8327",height:"400px"}),jsxRuntime.exports.jsx(PanelControls,{disableSave:!1,activeView:EAffiliatePanelView.bulkAffiliate,onClose:e,onSave:()=>{}})]})},PanelContainer=({activeView:e,hidePanel:t,affiliateId:n,isEdit:r})=>{var s=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:s.container},{children:[e===EAffiliatePanelView.addAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t}),e===EAffiliatePanelView.editAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t,affiliateId:n,isEdit:r}),e===EAffiliatePanelView.bulkAffiliate&&jsxRuntime.exports.jsx(BulkAffiliateView,{onClose:t})]}))},Placeholder=(!function(e){e.addAffiliate="addAffiliate",e.editAffiliate="editAffiliate",e.bulkAffiliate="bulkAffiliate"}(EAffiliatePanelView=EAffiliatePanelView||{}),({ticketNumber:e,height:t="150px"})=>{return jsxRuntime.exports.jsx("div",Object.assign({style:{background:"#f7f7f7",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",padding:"50px",height:t}},{children:e}))});var index_esm=Object.freeze({__proto__:null,ProcessingCenterAdvancedSettings:ProcessingCenterAdvancedSettings,ProcessingCenterAffiliatePanel:PanelContainer,ProcessingCenterIngestion:ProcessingCenterIngestion});export{isConstructor$1 as $,actions$4 as A,toString$7 as B,internalState as C,anInstance$1 as D,EAffiliatePanelView as E,classof$6 as F,isObject$8 as G,objectCreate as H,createPropertyDescriptor$3 as I,validateArgumentsLength$1 as J,selectBasicInfoAffiliates as K,stringMultibyte as L,makeBuiltIn$2 as M,objectDefineProperty as N,functionCall as O,PanelControls$1 as P,hasOwnProperty_1 as Q,anObject$e as R,SHARED_TEXT as S,getIterator$1 as T,getIteratorMethod$2 as U,tryToString$4 as V,format as W,DayTimeslotsContainer as X,getEnabledDays as Y,isArrayIteratorMethod$1 as Z,_export as _,selectSourceSelected as a,toAbsoluteIndex$1 as a0,iteratorClose$1 as a1,toPropertyKey$2 as a2,selectTimezone as a3,selectScheduleType as a4,selectFrequency as a5,selectWeeklyTimeslots as a6,selectIsWeeklyValid as a7,actions$5 as a8,selectFrequencyIsValid as a9,initialTimeslots as aa,validateAllTimeslots as ab,formatWeeklyPayload as ac,FrequencySchedular as ad,WeeklyScheduler as ae,ENextButtonType as af,selectDagTemplateId as ag,selectDagTemplatesLoadingStatus as ah,LoadingStatus as ai,actions$3 as aj,selectAllDagTemplates as ak,selectDagTemplatesHasMore as al,__rest as am,index_esm as an,SelectSource as b,actions$6 as c,selectScheduleName as d,selectBasicInfoInvalidFields as e,defineIterator$1 as f,fails$l as g,functionUncurryThis as h,global$o as i,defineBuiltIn$7 as j,setToStringTag$3 as k,createIteratorConstructor$1 as l,isCallable$n as m,descriptors as n,functionBindContext as o,objectAssign as p,engineUserAgent as q,aCallable$7 as r,selectIsFullScreen as s,toObject$4 as t,useStyles as u,lengthOfArrayLike$2 as v,wellKnownSymbol$i as w,engineV8Version as x,selectPrograms as y,selectBasicInfoMeta as z};