aiware-js 2.37.0 → 2.38.0

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 (164) hide show
  1. package/index.esm.css +92 -92
  2. package/index.esm.css.gz +0 -0
  3. package/index.esm.js.gz +0 -0
  4. package/index.esm.min.css +92 -92
  5. package/index.esm.min.css.gz +0 -0
  6. package/js-core.esm.js +4 -4
  7. package/js-core.esm.js.gz +0 -0
  8. package/js-core.esm10.js.gz +0 -0
  9. package/js-core.esm11.js.gz +0 -0
  10. package/js-core.esm12.js.gz +0 -0
  11. package/js-core.esm13.js.gz +0 -0
  12. package/js-core.esm14.js.gz +0 -0
  13. package/js-core.esm15.js.gz +0 -0
  14. package/js-core.esm16.js.gz +0 -0
  15. package/js-core.esm17.js.gz +0 -0
  16. package/js-core.esm18.js +1 -1
  17. package/js-core.esm18.js.gz +0 -0
  18. package/js-core.esm19.js.gz +0 -0
  19. package/js-core.esm2.js.gz +0 -0
  20. package/js-core.esm20.js +13 -1
  21. package/js-core.esm20.js.gz +0 -0
  22. package/js-core.esm21.js.gz +0 -0
  23. package/js-core.esm22.js.gz +0 -0
  24. package/js-core.esm23.js.gz +0 -0
  25. package/js-core.esm24.js.gz +0 -0
  26. package/js-core.esm25.js.gz +0 -0
  27. package/js-core.esm26.js.gz +0 -0
  28. package/js-core.esm27.js.gz +0 -0
  29. package/js-core.esm28.js.gz +0 -0
  30. package/js-core.esm29.js.gz +0 -0
  31. package/js-core.esm3.js.gz +0 -0
  32. package/js-core.esm30.js.gz +0 -0
  33. package/js-core.esm31.js.gz +0 -0
  34. package/js-core.esm32.js.gz +0 -0
  35. package/js-core.esm33.js +1 -1
  36. package/js-core.esm33.js.gz +0 -0
  37. package/js-core.esm34.js.gz +0 -0
  38. package/js-core.esm35.js.gz +0 -0
  39. package/js-core.esm36.js.gz +0 -0
  40. package/js-core.esm37.js.gz +0 -0
  41. package/js-core.esm38.js +41 -29
  42. package/js-core.esm38.js.gz +0 -0
  43. package/js-core.esm39.js.gz +0 -0
  44. package/js-core.esm4.js +1 -1
  45. package/js-core.esm4.js.gz +0 -0
  46. package/js-core.esm40.js +2 -2
  47. package/js-core.esm40.js.gz +0 -0
  48. package/js-core.esm41.js.gz +0 -0
  49. package/js-core.esm42.js.gz +0 -0
  50. package/js-core.esm43.js.gz +0 -0
  51. package/js-core.esm44.js +2 -2
  52. package/js-core.esm44.js.gz +0 -0
  53. package/js-core.esm45.js +1 -1
  54. package/js-core.esm45.js.gz +0 -0
  55. package/js-core.esm46.js +1 -1
  56. package/js-core.esm46.js.gz +0 -0
  57. package/js-core.esm47.js +31 -1
  58. package/js-core.esm47.js.gz +0 -0
  59. package/js-core.esm48.js +1 -31
  60. package/js-core.esm48.js.gz +0 -0
  61. package/js-core.esm49.js +85 -1
  62. package/js-core.esm49.js.gz +0 -0
  63. package/js-core.esm5.js.gz +0 -0
  64. package/js-core.esm50.js +52 -73
  65. package/js-core.esm50.js.gz +0 -0
  66. package/js-core.esm51.js +7 -63
  67. package/js-core.esm51.js.gz +0 -0
  68. package/js-core.esm52.js +1 -8
  69. package/js-core.esm52.js.gz +0 -0
  70. package/js-core.esm53.js +1 -1
  71. package/js-core.esm53.js.gz +0 -0
  72. package/js-core.esm54.js +56 -1
  73. package/js-core.esm54.js.gz +0 -0
  74. package/js-core.esm55.js +116 -48
  75. package/js-core.esm55.js.gz +0 -0
  76. package/js-core.esm56.js +150 -107
  77. package/js-core.esm56.js.gz +0 -0
  78. package/js-core.esm57.js +57 -149
  79. package/js-core.esm57.js.gz +0 -0
  80. package/js-core.esm58.js +15 -75
  81. package/js-core.esm58.js.gz +0 -0
  82. package/js-core.esm59.js +1 -15
  83. package/js-core.esm59.js.gz +0 -0
  84. package/js-core.esm6.js.gz +0 -0
  85. package/js-core.esm60.js +1 -1
  86. package/js-core.esm60.js.gz +0 -0
  87. package/js-core.esm61.js +121 -1
  88. package/js-core.esm61.js.gz +0 -0
  89. package/js-core.esm62.js +14 -103
  90. package/js-core.esm62.js.gz +0 -0
  91. package/js-core.esm63.js +15 -27
  92. package/js-core.esm63.js.gz +0 -0
  93. package/js-core.esm64.js +13 -19
  94. package/js-core.esm64.js.gz +0 -0
  95. package/js-core.esm65.js +1 -14
  96. package/js-core.esm65.js.gz +0 -0
  97. package/js-core.esm66.js +1 -1
  98. package/js-core.esm66.js.gz +0 -0
  99. package/js-core.esm67.js +61 -1
  100. package/js-core.esm67.js.gz +0 -0
  101. package/js-core.esm68.js +37 -52
  102. package/js-core.esm68.js.gz +0 -0
  103. package/js-core.esm69.js +79 -37
  104. package/js-core.esm69.js.gz +0 -0
  105. package/js-core.esm7.js +1 -1
  106. package/js-core.esm7.js.gz +0 -0
  107. package/js-core.esm70.js +1 -88
  108. package/js-core.esm70.js.gz +0 -0
  109. package/js-core.esm71.js +1 -1
  110. package/js-core.esm71.js.gz +0 -0
  111. package/js-core.esm72.js +35 -1
  112. package/js-core.esm72.js.gz +0 -0
  113. package/js-core.esm73.js +1 -35
  114. package/js-core.esm73.js.gz +0 -0
  115. package/js-core.esm74.js +1 -1
  116. package/js-core.esm74.js.gz +0 -0
  117. package/js-core.esm75.js +1 -1
  118. package/js-core.esm75.js.gz +0 -0
  119. package/js-core.esm76.js +1 -1
  120. package/js-core.esm76.js.gz +0 -0
  121. package/js-core.esm77.js +1 -1
  122. package/js-core.esm77.js.gz +0 -0
  123. package/js-core.esm78.js +1 -1
  124. package/js-core.esm78.js.gz +0 -0
  125. package/js-core.esm79.js +1 -1
  126. package/js-core.esm79.js.gz +0 -0
  127. package/js-core.esm8.js.gz +0 -0
  128. package/js-core.esm80.js +1 -1
  129. package/js-core.esm80.js.gz +0 -0
  130. package/js-core.esm81.js +1 -1
  131. package/js-core.esm81.js.gz +0 -0
  132. package/js-core.esm82.js +1 -1
  133. package/js-core.esm82.js.gz +0 -0
  134. package/js-core.esm83.js +1 -1
  135. package/js-core.esm83.js.gz +0 -0
  136. package/js-core.esm84.js +1 -1
  137. package/js-core.esm84.js.gz +0 -0
  138. package/js-core.esm85.js +1 -1
  139. package/js-core.esm85.js.gz +0 -0
  140. package/js-core.esm86.js +1 -1
  141. package/js-core.esm86.js.gz +0 -0
  142. package/js-core.esm87.js +1 -1
  143. package/js-core.esm87.js.gz +0 -0
  144. package/js-core.esm88.js +1 -1
  145. package/js-core.esm88.js.gz +0 -0
  146. package/js-core.esm89.js +1 -1
  147. package/js-core.esm89.js.gz +0 -0
  148. package/js-core.esm9.js.gz +0 -0
  149. package/js-core.esm90.js +1 -1
  150. package/js-core.esm90.js.gz +0 -0
  151. package/js-core.esm91.js +1 -1
  152. package/js-core.esm91.js.gz +0 -0
  153. package/js-core.umd.css +92 -92
  154. package/js-core.umd.css.gz +0 -0
  155. package/js-core.umd.js +224 -193
  156. package/js-core.umd.js.gz +0 -0
  157. package/js-core.umd.min.css +92 -92
  158. package/js-core.umd.min.css.gz +0 -0
  159. package/locales/en.json +1 -1
  160. package/locales/es.json +1 -1
  161. package/locales/fr.json +1 -1
  162. package/package.json +1 -1
  163. package/js-core.esm92.js +0 -1
  164. package/js-core.esm92.js.gz +0 -0
Binary file
package/js-core.esm65.js CHANGED
@@ -1,14 +1 @@
1
- import{ca as createSvgIcon,j as jsxRuntime,X as createSlice,m as makeStyles,F as FormattedMessage,t as lodash,ci as combineReducers,cj as createSelector,a2 as rootApiSelector,a4 as graphEndpointSelector,a3 as sessionTokenSelector,bK as AIWareCacheProvider,cl as AIWareThemeProvider,$ as DynamicModuleLoader,A as AIWareIntlProvider,l as useDispatch,n as useSelector,r as react,B as Box,x as FormControl,y as TextField,I as InputLabel,H as Select,K as Button,f9 as img$3,T as Typography,ap as Skeleton,M as MenuItem,ah as all,eM as selectIsOLPEnabled,cy as userSelector,am as Tooltip,E as IconButton,cz as MoreVert,c5 as Hide,cA as Menu,cD as Delete,ba as Tabs,dI as tabsClasses,bb as Tab,cs as unmountPanel,cw as mountPanel,cv as hidePanel,L as LoadingButton,N as Divider,aK as CircularProgress,bX as RadioGroup,aB as FormControlLabel,c9 as Radio,aC as Checkbox,aq as takeLatest$1,at as select,av as call$j,as as put,a0 as preferredLanguageSelector,c7 as showMessage,c8 as MessageSeverity,bf as AIWareFormatMessage,fb as CheckCircle,cJ as baseGraphQLApiWithError}from"./js-core.esm.js";import{getDataCenterBrowseModule,selectors as selectors$1,actions as actions$a,Types as index}from"./js-core.esm38.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave}from"./js-core.esm59.js";import"./js-core.esm40.js";import{F as FixedSizeList}from"./js-core.esm30.js";import{d as debounce_1,I as InfiniteLoader}from"./js-core.esm20.js";import{d as default_1}from"./js-core.esm9.js";import{v as v4}from"./js-core.esm42.js";import{A as Autocomplete}from"./js-core.esm23.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm33.js";import{S as Search}from"./js-core.esm10.js";import{D as Delete$1}from"./js-core.esm60.js";import{A as AddCircleOutline}from"./js-core.esm66.js";import{C as ContentCopy}from"./js-core.esm43.js";var match$2,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,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,s;if("string"===t&&isCallable$i(n=e.toString)&&!isObject$7(s=call$g(n,e)))return s;if(isCallable$i(n=e.valueOf)&&!isObject$7(s=call$g(n,e)))return s;if("string"!==t&&isCallable$i(n=e.toString)&&!isObject$7(s=call$g(n,e)))return s;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 s;return anObject$d(e),t=toPropertyKey(t),anObject$d(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(s=$getOwnPropertyDescriptor(e,t))&&s[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:s)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:s)[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,s){var r=(s=s||{}).enumerable,o=void 0!==s.name?s.name:t;if(isCallable$e(n)&&makeBuiltIn(n,o,s),s.global)r?e[t]=n:defineGlobalProperty$1(t,n);else{try{s.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=n:definePropertyModule$3.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.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(a){return function(e,t,n){var s,r=toIndexedObject$3(e),o=lengthOfArrayLike$1(r),i=toAbsoluteIndex(n,o);if(a&&t!=t){for(;i<o;)if((s=r[i++])!=s)return!0}else for(;i<o;i++)if((a||i in r)&&r[i]===t)return a||i||0;return!a&&-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,s=toIndexedObject$2(e),r=0,o=[];for(n in s)!hasOwn$6(hiddenKeys$2,n)&&hasOwn$6(s,n)&&push$1(o,n);for(;t.length>r;)!hasOwn$6(s,n=t[r++])||~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 s=ownKeys(t),r=definePropertyModule$2.f,o=getOwnPropertyDescriptorModule.f,i=0;i<s.length;i++){var a=s[i];hasOwn$5(e,a)||n&&hasOwn$5(n,a)||r(e,a,o(t,a))}},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,s,r,o=e.target,i=e.global,a=e.stat,l=i?global$f:a?global$f[o]||defineGlobalProperty(o,{}):(global$f[o]||{}).prototype;if(l)for(n in t){if(s=t[n],r=e.dontCallGetSet?(r=getOwnPropertyDescriptor$1(l,n))&&r.value:l[n],!isForced$1(i?n:o+(a?".":"#")+n,e.forced)&&void 0!==r){if(typeof s==typeof r)continue;copyConstructorProperties$1(s,r)}(e.sham||r&&r.sham)&&createNonEnumerableProperty$3(s,"sham",!0),defineBuiltIn$6(l,n,s,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,s;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={},s="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,s.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys$1($assign({},t)).join("")!=s})?function(e,t){for(var n=toObject$2(e),s=arguments.length,r=1,o=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;r<s;)for(var a,l=IndexedObject(arguments[r++]),c=o?concat$1(objectKeys$1(l),o(l)):objectKeys$1(l),d=c.length,u=0;u<d;)a=c[u++],DESCRIPTORS$4&&!call$d(i,l,a)||(n[a]=l[a]);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$9="uiState",initialState$8={status:"idle"},slice=createSlice({name:SLICE_NAME+"/"+namespace$9,initialState:initialState$8,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"}}}),actions$9=slice.actions;var uiState=slice.reducer;const namespace$8="ingestionJobsWizard",initialState$7={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:"",existingScheduledJob:null,saveStatus:"idle",existingJobStatus:"idle",existingJobErrorMessage:"",isFullScreen:!1,isEditMode:!1,updateJobErrors:[],deleteJobStatus:"idle"},ingestionJobsWizardSlice=createSlice({name:"ingestionJobsWizard",initialState:initialState$7,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="pending"},saveScheduledJobSuccess:e=>{e.saveStatus="success"},saveScheduledJobFailure:e=>{e.saveStatus="failure"},setExistingJobStart:e=>{e.existingJobStatus="pending"},setExistingJobSuccess:e=>{e.existingJobStatus="success"},setExistingJobFailure:e=>{e.existingJobStatus="failure"},setDeleteJobStart:e=>{e.deleteJobStatus="pending"},setDeleteJobSuccess:e=>{e.deleteJobStatus="success"},setDeleteJobFailure:e=>{e.deleteJobStatus="failure"},setExistingJobErrorMessage:(e,t)=>{e.existingJobErrorMessage=t.payload},setExistingScheduledJob:(e,t)=>{e.existingScheduledJob=t.payload},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload},setIsEditMode:(e,t)=>{e.isEditMode=t.payload},setUpdateJobErrors:(e,t)=>{t.payload.add?e.updateJobErrors=e.updateJobErrors.concat([t.payload.tabIndex]):e.updateJobErrors=e.updateJobErrors.filter(e=>e!==t.payload.tabIndex)}}}),actions$8=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,s=toIndexedObject$1(t),r=objectKeys(t),o=r.length,i=0;i<o;)definePropertyModule$1.f(e,n=r[i++],s[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,s){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor(+!s,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,s=!1,e={};try{(n=uncurryThis$c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),s=e instanceof Array}catch(e){}return function(e,t){return anObject$9(e),aPossiblePrototype(t),s?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,s,r,o,i){createIteratorConstructor(n,t,s);function a(e){if(e===r&&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,s=t+" Iterator",d=!1,u=e.prototype,p=u[ITERATOR$5]||u["@@iterator"]||r&&u[r],g=!BUGGY_SAFARI_ITERATORS&&p||a(r),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,s,!0)),PROPER_FUNCTION_NAME$1&&r==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(u,"name",VALUES):(d=!0,g=function(){return call$c(p,this)})),r)if(l={values:a(VALUES),keys:o?g:a(KEYS),entries:a(ENTRIES)},i)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:r}),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,s=e.index++;return!t||s>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:s,done:!1}:"values"==n?{value:t[s],done:!1}:{value:[s,t[s]],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$7="sourceStep",initialState$6={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$6,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$7=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),s=toInteger(t);return isNaN(s)?new Date(NaN):(s&&n.setDate(n.getDate()+s),n)}function addMilliseconds(e,t){requiredArgs(2,arguments);var n=toDate(e).getTime(),s=toInteger(t);return new Date(n+s)}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(),s=new Date(0),s=(s.setUTCFullYear(n+1,0,4),s.setUTCHours(0,0,0,0),startOfUTCISOWeek(s)),r=new Date(0),r=(r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),startOfUTCISOWeek(r));return t.getTime()>=s.getTime()?n+1:t.getTime()>=r.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,s,r=getDefaultOptions(),r=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:r.weekStartsOn)?n:null==(n=r.locale)||null==(r=n.options)?void 0:r.weekStartsOn)?n:0);if(0<=r&&r<=6)return s=((s=(n=toDate(e)).getUTCDay())<r?7:0)+s-r,n.setUTCDate(n.getUTCDate()-s),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,s,r=toDate(e),o=r.getUTCFullYear(),i=getDefaultOptions(),i=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:i.firstWeekContainsDate)?n:null==(n=i.locale)||null==(i=n.options)?void 0:i.firstWeekContainsDate)?n:1);if(1<=i&&i<=7)return(n=new Date(0)).setUTCFullYear(o+1,0,i),n.setUTCHours(0,0,0,0),n=startOfUTCWeek(n,t),(s=new Date(0)).setUTCFullYear(o,0,i),s.setUTCHours(0,0,0,0),i=startOfUTCWeek(s,t),r.getTime()>=n.getTime()?o+1:r.getTime()>=i.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!=(s=null!=(s=null!=(s=null!=(s=null==t?void 0:t.firstWeekContainsDate)?s:null==t||null==(s=t.locale)||null==(s=s.options)?void 0:s.firstWeekContainsDate)?s:n.firstWeekContainsDate)?s:null==(s=n.locale)||null==(n=s.options)?void 0:n.firstWeekContainsDate)?s:1),s=getUTCWeekYear(e,t),r=new Date(0);return r.setUTCFullYear(s,0,n),r.setUTCHours(0,0,0,0),startOfUTCWeek(r,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?"-":"",s=Math.abs(e).toString();s.length<t;)s="0"+s;return n+s}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 s=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});default:return n.era(s,{width:"wide"})}},y:function(e,t,n){var s;return"yo"===t?(s=e.getUTCFullYear(),n.ordinalNumber(0<s?s:1-s,{unit:"year"})):formatters$3.y(e,t)},Y:function(e,t,n,s){e=getUTCWeekYear(e,s),s=0<e?e:1-e;return"YY"===t?addLeadingZeros(s%100,2):"Yo"===t?n.ordinalNumber(s,{unit:"year"}):addLeadingZeros(s,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 s=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return addLeadingZeros(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return addLeadingZeros(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){var s=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){var s=e.getUTCMonth();switch(t){case"L":return String(s+1);case"LL":return addLeadingZeros(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){e=getUTCWeek(e,s);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 s=e.getUTCDay();switch(t){case"E":case"EE":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"})}},e:function(e,t,n,s){var r=e.getUTCDay(),o=(r-s.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(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"})}},c:function(e,t,n,s){var r=e.getUTCDay(),o=(r-s.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(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){var s=e.getUTCDay(),r=0===s?7:s;switch(t){case"i":return String(r);case"ii":return addLeadingZeros(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){var s=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){var e=e.getUTCHours(),s=12===e?dayPeriodEnum.noon:0===e?dayPeriodEnum.midnight:1<=e/12?"pm":"am";switch(t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){var e=e.getUTCHours(),s=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(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){var s;return"ho"===t?(s=e.getUTCHours()%12,n.ordinalNumber(s=0===s?12:s,{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,s){var r=(s._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(r);case"XXXX":case"XX":return formatTimezone(r);default:return formatTimezone(r,":")}},x:function(e,t,n,s){var r=(s._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(r);case"xxxx":case"xx":return formatTimezone(r);default:return formatTimezone(r,":")}},O:function(e,t,n,s){var r=(s._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(r,":");default:return"GMT"+formatTimezone(r,":")}},z:function(e,t,n,s){var r=(s._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(r,":");default:return"GMT"+formatTimezone(r,":")}},t:function(e,t,n,s){s=s._originalDate||e;return addLeadingZeros(Math.floor(s.getTime()/1e3),t.length)},T:function(e,t,n,s){return addLeadingZeros((s._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var n=0<e?"-":"+",e=Math.abs(e),s=Math.floor(e/60),e=e%60;return 0==e?n+String(s):(t=t||"",n+String(s)+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,s=e.match(/(P+)(p+)?/)||[],r=s[1],s=s[2];if(!s)return dateLongFormatter(e,t);switch(r){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(r,t)).replace("{{time}}",timeLongFormatter(s,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,s){return formatRelativeLocale[e]},formatRelative$1=formatRelative;function buildLocalizeFn(r){return function(e,t){t="formatting"===(null!=t&&t.context?String(t.context):"standalone")&&r.formattingValues?(s=r.defaultFormattingWidth||r.defaultWidth,n=null!=t&&t.width?String(t.width):s,r.formattingValues[n]||r.formattingValues[s]):(n=r.defaultWidth,s=null!=t&&t.width?String(t.width):r.defaultWidth,r.values[s]||r.values[n]);var n,s=r.argumentCallback?r.argumentCallback(e):e;return t[s]}}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]:{},s=n.width,r=s&&o.matchPatterns[s]||o.matchPatterns[o.defaultMatchWidth],r=e.match(r);return r?(t=r[0],r=s&&o.parsePatterns[s]||o.parsePatterns[o.defaultParseWidth],s=Array.isArray(r)?findIndex(r,function(e){return e.test(t)}):findKey(r,function(e){return e.test(t)}),r=o.valueCallback?o.valueCallback(s):s,{value:r=n.valueCallback?n.valueCallback(r):r,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(r){return function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=e.match(r.matchPattern);return s&&(s=s[0],t=e.match(r.parsePattern))?(t=r.valueCallback?r.valueCallback(t[0]):t[0],{value:t=n.valueCallback?n.valueCallback(t):t,rest:e.slice(s.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(s,r,o){requiredArgs(2,arguments);var e=String(r),t=getDefaultOptions(),i=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(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var a,l,c=toDate(s);if(isValid(c))return a=subMilliseconds(c,getTimezoneOffsetInMilliseconds(c)),l={firstWeekContainsDate:n,weekStartsOn:t,locale:i,_originalDate:c},e.match(longFormattingTokensRegExp).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,i.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,r,String(s)),null!=o&&o.useAdditionalDayOfYearTokens||!isProtectedDayOfYearToken(e)||throwProtectedError(e,r,String(s)),n(a,e,i.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),s=toDate(t);return n.getTime()>s.getTime()}var IRepeatIntervalUnit,IExistingJobErrorMessage,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,s,r,o,i,a=this,l=getInternalState(a),e=toString$4(e),c=l.raw;if(c)return c.lastIndex=a.lastIndex,u=call$b(patchedExec,c,e),a.lastIndex=c.lastIndex,u;var d=l.groups,c=UNSUPPORTED_Y&&a.sticky,u=call$b(regexpFlags,a),l=a.source,p=0,g=e;if(c&&(u=replace$2(u,"y",""),-1===indexOf(u,"g")&&(u+="g"),g=stringSlice$4(e,a.lastIndex),0<a.lastIndex&&(!a.multiline||a.multiline&&"\n"!==charAt$3(e,a.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=a.lastIndex),s=call$b(nativeExec,c?t:a,g),c?s?(s.input=stringSlice$4(s.input,p),s[0]=stringSlice$4(s[0],p),s.index=a.lastIndex,a.lastIndex+=s[0].length):a.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&s&&(a.lastIndex=a.global?s.index+s[0].length:n),NPCG_INCLUDED&&s&&1<s.length&&call$b(nativeReplace,s[0],t,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(s[r]=void 0)}),s&&d)for(s.groups=o=create(null),r=0;r<d.length;r++)o[(i=d[r])[0]]=s[i[1]];return s}: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,s){var i,r=wellKnownSymbol$9(n),a=!fails$5(function(){var e={};return e[r]=function(){return 7},7!=""[n](e)}),o=a&&!fails$5(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[r]=/./[r]),t.exec=function(){return e=!0,null},t[r](""),!e});a&&o&&!t||(i=uncurryThis$8(/./[r]),o=e(r,""[n],function(e,t,n,s,r){var e=uncurryThis$8(e),o=t.exec;return o===regexpExec$1||o===RegExpPrototype$2.exec?a&&!r?{done:!0,value:i(t,n,s)}:{done:!0,value:e(n,t,s)}:{done:!1}}),defineBuiltIn$3(String.prototype,n,o[0]),defineBuiltIn$3(RegExpPrototype$2,r,o[1])),s&&createNonEnumerableProperty(RegExpPrototype$2[r],"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(r){return function(e,t){var n,e=toString$3(requireObjectCoercible$2(e)),t=toIntegerOrInfinity$1(t),s=e.length;return t<0||s<=t?r?"":void 0:(n=charCodeAt(e,t))<55296||56319<n||t+1===s||(s=charCodeAt(e,t+1))<56320||57343<s?r?charAt$2(e,t):n:r?stringSlice$3(e,t,t+2):s-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,i,a,l,c,e){var d=a+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(i,0,a);case"'":return stringSlice$2(i,d);case"<":n=c[stringSlice$2(t,1,-1)];break;default:var s,r=+t;if(0==r)return e;if(u<r)return 0!==(s=floor(r/10))&&s<=u?void 0===l[s-1]?charAt(t,1):l[s-1]+charAt(t,1):e;n=l[r-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,b,S){var x=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var n=requireObjectCoercible$1(this),s=null==e?void 0:getMethod$2(e,REPLACE);return s?call$8(s,e,n,t):call$8(b,toString$2(n),e,t)},function(e,t){var n=anObject$6(this),s=toString$2(e);if("string"==typeof t&&-1===stringIndexOf$1(t,x)&&-1===stringIndexOf$1(t,"$<")){e=S(b,n,s,t);if(e.done)return e.value}for(var r,o=isCallable$6(t),i=(o||(t=toString$2(t)),n.global),a=(i&&(r=n.unicode,n.lastIndex=0),[]);null!==(u=regExpExec(n,s))&&(push(a,u),i);)""===toString$2(u[0])&&(n.lastIndex=advanceStringIndex(s,toLength(n.lastIndex),r));for(var l="",c=0,d=0;d<a.length;d++){for(var u,p=toString$2((u=a[d])[0]),g=max(min(toIntegerOrInfinity(u.index),s.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,s),void 0!==y&&push(h,y),toString$2(apply$1(t,void 0,h))):getSubstitution(p,s,g,m,y,t);c<=g&&(l+=stringSlice$1(s,c,g)+h,c=g+p.length)}return l+stringSlice$1(s,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"}),headerMoreActionsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.header.more.actions",defaultMessage:"More Actions",description:"button for more actions"}),headerDeleteScheduleButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.edit-mode.header.delete.schedule.button",defaultMessage:"Delete",description:"button to delete schedule"}),existingJobErrorMessageJob:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-job",defaultMessage:"This scheduled job could not be found",description:"Error message for existing job not found"}),existingJobErrorMessageSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-source",defaultMessage:"There was no source associated with this job",description:"Error message for existing job source not found"}),existingJobErrorMessageDag:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-dag",defaultMessage:"There was no DAG template associated with this job",description:"Error message for existing job DAG template not found"}),existingJobErrorTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.existing-error-message-title",defaultMessage:"Scheduled Job Error",description:"title for job error message"})},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"}),updateScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-update-job-button",defaultMessage:"Update Scheduled Job",description:"button for update 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"}),messageScheduleFrequencyError:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-schedule-frequency-error",defaultMessage:"The Schedule Frequency of the existing job is not supported by this scheduler. Please click on the Frequency dropdown to create a new Schedule.",description:"message for unsupported schedule type"}),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%"},frequencyMessageError:{width:"100%",color:"rgba(255,0,0,0.6)"},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:s,max:r,showTooltip:o})=>{var i=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:r?"start":"end",min:s||void 0,max:r||void 0,className:i.inputTime,type:"time",onChange:e=>{var{value:e,name:t}=e.target;n(e,t)}})}))})},TimeStartEndField=({timeslot:e,showDelete:t,day:s,onDelete:n,onChangeTime:r,disabled:o,id:i=""})=>{var a=useStyles$7()["classes"];const{id:l,start:c,end:d,isValid:u}=e;var e=a.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),r(n,l,s)};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-"+i},{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:a.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:()=>{s&&n&&n(s,l)},"data-testid":"pc-wizard-schedule-weekly-timeslot-button-delete"},{children:jsxRuntime.exports.jsx(Delete$1,{})}))}))}))]}))}))},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=(!function(e){e.Months="Months",e.Weeks="Weeks",e.Days="Days",e.Hours="Hours",e.Minutes="Minutes",e.Seconds="Seconds"}(IRepeatIntervalUnit=IRepeatIntervalUnit||{}),!function(e){e.Job="Job",e.Source="Source",e.Dag="Dag"}(IExistingJobErrorMessage=IExistingJobErrorMessage||{}),{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 s=useSelector(selectMediaChunkLength),r=Number(useSelector(selectHoursInterval)),o=Number(useSelector(selectDaysInterval));const i=useSelector(selectDailyTimeslotOne),a=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$6.setFrequencyIsValid(validateFrequencyScheduler(h)))},[h]),react.exports.useEffect(()=>{var e;m===Frequency.Daily&&(e=generateDailyTimeslots(i),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,y)),n(actions$6.setDailyScheduleParts(e)))},[i,y,m]),react.exports.useEffect(()=>{var e;m===Frequency.TwiceDaily&&(e=generateDailyTimeslots(i,a),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,y)),n(actions$6.setTwiceDailyScheduleParts(e)))},[i,a,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$6.resetFrequencyState()),n(actions$6.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$6.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$6.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$6.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$6.setFrequency(e)),n(actions$6.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:r,onChange:e=>{e=Number(e.target.value);24<e||e<1||n(actions$6.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$6.setDaysInterval(e))}})}))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.frequencyMessageContainer},{children:m===IRepeatIntervalUnit.Months||m===IRepeatIntervalUnit.Minutes||m===IRepeatIntervalUnit.Seconds?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessageError},{children:SHARED_TEXT.frequencySchedular.messageScheduleFrequencyError()})):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:i,onChangeTime:e=>{n(actions$6.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:a,onChangeTime:e=>{n(actions$6.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$6.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:[" ",s," "]})),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$6.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$6.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 s of DAYS.ids)n[s]=[e],t&&n[s].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,s,r)=>({start:e,end:t,id:n,isValid:s,isConflict:r}),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 a of Object.keys(e)){var s=DAYS.labels[DAYS.ids.indexOf(a)];for(const l of e[a]){var{start:r,end:o,isValid:i}=l,r={scheduledDay:s,startTime:r+getTimezoneOffset(t),stopTime:o+getTimezoneOffset(t)};i&&n.push(r)}}return n},namespace$6="scheduleStep",RunMode={Continuous:"Continuous",Recurring:"Recurring",Once:"Once",Now:"Now"},initialState$5={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$5,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$5.frequencySchedular},resetFrequencyFields:e=>{e.frequencySchedular.dailyTimeslotOne=initialState$5.frequencySchedular.dailyTimeslotOne,e.frequencySchedular.dailyTimeslotTwo=initialState$5.frequencySchedular.dailyTimeslotTwo,e.frequencySchedular.hoursInterval=initialState$5.frequencySchedular.hoursInterval,e.frequencySchedular.daysInterval=initialState$5.frequencySchedular.daysInterval,e.frequencySchedular.daysTimeslot=initialState$5.frequencySchedular.daysTimeslot,e.frequencySchedular.dailyScheduleParts=initialState$5.frequencySchedular.dailyScheduleParts,e.frequencySchedular.twiceDailyScheduleParts=initialState$5.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$6=scheduleStepSlice.actions;var scheduleStep_slice=scheduleStepSlice.reducer;const namespace$5="basicInfoStep",initialState$4={scheduleName:"",sourceDetails:{},error:null,isLoading:!1,isInvalidFields:!1,programs:[],basicInfoMeta:{affiliates:{}}},basicInfoSlice=createSlice({name:"basicInfoStep",initialState:initialState$4,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)},setAffiliatesExistingJob:(e,{payload:t})=>{e.basicInfoMeta&&(e.basicInfoMeta.affiliates=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$5=basicInfoSlice.actions;var basicInfoStep_slice=basicInfoSlice.reducer;const namespace$4="processingStep",initialState$3={dagTemplateId:void 0,loadingStatus:"idle",allDagTemplates:[],offset:0,hasMore:!0},processingSlice=createSlice({name:"processingStep",initialState:initialState$3,reducers:{fetchDagTemplatesStart:e=>{e.loadingStatus="pending"},fetchDagTemplatesSucceeded:(n,e)=>{n.loadingStatus="success",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="failure"},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$4=processingSlice.actions;var processingStep_slice=processingSlice.reducer;const namespace$3="contentTemplatesStep",initialState$2={existingTemplates:[]},contentTemplatesSlice=createSlice({name:"contentTemplatesStep",initialState:initialState$2,reducers:{setExistingTemplates:(e,t)=>{t=t.payload;e.existingTemplates=t}}}),actions$3=contentTemplatesSlice.actions;var contentTemplatesStep_slice=contentTemplatesSlice.reducer;const namespace$2="location",initialState$1={selectedFolderId:void 0,existingFolder:{name:"",id:""}},locationSlice=createSlice({name:"location",initialState:initialState$1,reducers:{setSelectedFolderId:(e,{payload:t})=>{e.selectedFolderId=t},setExistingFolder:(e,{payload:t})=>{e.existingFolder=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,selectExistingFolder=e=>e[SLICE_NAME][namespace$2].existingFolder;var locationSelectors=Object.freeze({__proto__:null,selectSelectedFolderId:selectSelectedFolderId,selectExistingFolder:selectExistingFolder});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$9]:actions$9,[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$9]:uiState,[namespace$8]:ingestionJobsWizard_slice,[namespace$7]:selectSourceStep_slice,[namespace$6]:scheduleStep_slice,[namespace$5]:basicInfoStep_slice,[namespace$4]:processingStep_slice,[namespace$3]:contentTemplatesStep_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(r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function __awaiter(e,i,a,l){return new(a=a||Promise)(function(n,t){function s(e){try{o(l.next(e))}catch(e){t(e)}}function r(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(s,r)}o((l=l.apply(e,i||[])).next())})}function getSourcesBySearchTerm(t,n=0,s,r,o,i){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:r,name:s,offset:n,limit:o,includePublic:i}},t))).sources})}function getClusters(t,n=0,s){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:s}},t))).clusters})}function*sourcesSearchTermSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectOffset),n=yield select(selectSourceTypeId),s=yield select(selectSearchTerm),r=yield select(selectIsAffiliateSearch),o=yield call$j(getSourcesBySearchTerm,e,t,s,n,30,r);yield put(actions$7.sourcesSearchSucceeded(o.records)),30===o.count?yield put(actions$7.setHasMore(!0)):yield put(actions$7.setHasMore(!1)),yield put(actions$7.setOffset(t+30))}catch(e){yield put(actions$7.setError(e))}}function*clusterSearchSaga(){try{var e,t,n=yield select(selectApiConfigs),s=yield select(selectClustersOffset),r=yield call$j(getClusters,n,s,30);yield put(actions$7.clustersSearchSucceeded(r.records)),30===r.count?(yield put(actions$7.clustersSetHasMore(!0)),yield put(actions$7.clustersSetOffset(s+30)),yield put(actions$7.clustersSearchStart())):(t=(e=yield select(selectClusters)).map(e=>e.default).indexOf(!0),(yield select(selectClusterSelected))||(yield put(actions$7.setSelectedCluster(e[t]||null))),yield put(actions$7.clustersSetOffset(s+30)),yield put(actions$7.clustersSetHasMore(!1)))}catch(e){yield put(actions$7.clusterSetError(e))}}function*getSourcesSearchTermWatcher(){yield takeLatest$1(actions$7.sourcesSearchStart.type,sourcesSearchTermSaga)}function*getClusterSearchWatcher(){yield takeLatest$1(actions$7.clustersSearchStart.type,clusterSearchSaga)}function getDagTemplates(t,n=0,s){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:s}},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),s=yield call$j(getDagTemplates,t,n,100);yield put(actions$4.fetchDagTemplatesSucceeded(s.records)),100===(null==(e=null==s?void 0:s.records)?void 0:e.length)?yield put(actions$4.setHasMore(!0)):yield put(actions$4.setHasMore(!1)),yield put(actions$4.setOffset(n+100))}catch(e){yield put(actions$4.fetchDagTemplatesFailed())}}function*fetchDagTemplatesWatcher(){yield takeLatest$1(actions$4.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 s;return __awaiter(this,void 0,void 0,function*(){var e="getPrograms",e=yield baseGraphQLApiWithError(Object.assign({query:`
2
- query ${e} {
3
- sourceType(id: ${n}) {
4
- programFormats
5
- }
6
- }`,operationName:e,variables:{id:n}},t));return null==(s=null==e?void 0:e.sourceType)?void 0:s.programFormats})}!DESCRIPTORS$1||!isCallable$5(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$1(arguments[0]),t=isPrototypeOf$2(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis$4(SymbolPrototype.toString),symbolValueOf=uncurryThis$4(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace=uncurryThis$4("".replace),stringSlice=uncurryThis$4("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);return hasOwn$1(EmptyStringDescriptionStore,e)?"":""===(e=NATIVE_SYMBOL?stringSlice(t,7,-1):replace(t,regexp,"$1"))?void 0:e}}),$$8({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));var location,defer,channel,port,classof$3=classofRaw$1,global$8=global$o,engineIsNode="process"==classofRaw$1(global$o.process),getBuiltIn$3=getBuiltIn$8,definePropertyModule=objectDefineProperty,wellKnownSymbol$7=wellKnownSymbol$i,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$i("species"),setSpecies$1=function(e){var e=getBuiltIn$3(e),t=definePropertyModule.f;DESCRIPTORS&&e&&!e[SPECIES$2]&&t(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},uncurryThis$3=functionUncurryThis,fails$2=fails$l,isCallable$4=isCallable$n,classof$2=classof$6,getBuiltIn$2=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof$2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$2(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$e,aConstructor=aConstructor$1,wellKnownSymbol$6=wellKnownSymbol$i,SPECIES$1=wellKnownSymbol$i("species"),speciesConstructor$1=function(e,t){var e=anObject$4(e).constructor;return void 0===e||null==(e=anObject$4(e)[SPECIES$1])?t:aConstructor(e)},uncurryThis$2=functionUncurryThis,aCallable$5=aCallable$7,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThis(functionUncurryThis.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},uncurryThis$1=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$o,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$n,hasOwn=hasOwnProperty_1,fails$1=fails$l,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$2=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$1={},ONREADYSTATECHANGE="onreadystatechange";try{location=global$7.location}catch(e){}var flush,head,last,notify$1,toggle,node,promise,then,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,run=function(e){var t;hasOwn(queue$1,e)&&(t=queue$1[e],delete queue$1[e],t())},runner=function(e){return function(){run(e)}},listener=function(e){run(e.data)},post=function(e){global$7.postMessage(String$1(e),location.protocol+"//"+location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),n=arraySlice(arguments,1);return queue$1[++counter]=function(){apply(t,void 0,n)},defer(counter),counter},clear=function(e){delete queue$1[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$3(global$7.postMessage)&&!global$7.importScripts&&location&&"file:"!==location.protocol&&!fails$1(post)?(defer=post,global$7.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),userAgent$1=engineUserAgent,global$6=global$o,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&void 0!==global$6.Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$o,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,macrotask=task$1.set,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$1=global$5.process,Promise$1=global$5.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$5,"queueMicrotask"),queueMicrotask=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask$1=(queueMicrotask||(flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();head;){t=head.fn,head=head.next;try{t()}catch(e){throw head?notify$1():last=void 0,e}}last=void 0,e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle})),queueMicrotask||function(e){e={fn:e,next:void 0};last&&(last.next=e),head||(head=e,notify$1()),last=e}),global$4=global$o,hostReportErrors$1=function(e,t){var n=global$4.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Queue$1=function(){this.head=null,this.tail=null},queue=(Queue$1.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},Queue$1),global$3=global$o,promiseNativeConstructor=global$o.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$o,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$n,isForced=isForced_1,inspectSource=inspectSource$4,wellKnownSymbol$5=wellKnownSymbol$i,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$5("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function n(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=n,!(SUBCLASSING=e.then(function(){})instanceof n))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$7,PromiseCapability=function(e){var n,s;this.promise=new e(function(e,t){if(void 0!==n||void 0!==s)throw TypeError("Bad Promise constructor");n=e,s=t}),this.resolve=aCallable$4(n),this.reject=aCallable$4(s)},$$7=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$o,call$6=functionCall,defineBuiltIn$1=defineBuiltIn$7,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$3,setSpecies=setSpecies$1,aCallable$3=aCallable$7,isCallable$1=isCallable$n,isObject$2=isObject$8,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask$1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$1.TypeError,document$1=global$1.document,process=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$2(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var n,s,r,o=t.value,i=t.state==FULFILLED,a=i?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{a?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===a?n=o:(d&&d.enter(),n=a(o),d&&(d.exit(),r=!0)),n===e.promise?c(TypeError$1("Promise-chain cycle")):(s=isThenable(n))?call$6(s,n,l,c):l(n)):c(o)}catch(e){d&&!r&&d.exit(),c(e)}},notify=function(n,s){n.notified||(n.notified=!0,microtask(function(){for(var e,t=n.reactions;e=t.get();)callReaction(e,n);n.notified=!1,s&&!n.rejection&&onUnhandled(n)}))},dispatchEvent=function(e,t,n){var s;DISPATCH_EVENT?((s=document$1.createEvent("Event")).promise=t,s.reason=n,s.initEvent(e,!1,!0),global$1.dispatchEvent(s)):s={promise:t,reason:n},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(s):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",n)},onUnhandled=function(s){call$6(task,global$1,function(){var e=s.facade,t=s.value,n=isUnhandled(s);if(n&&(n=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),s.rejection=IS_NODE||isUnhandled(s)?UNHANDLED:HANDLED,n.error))throw n.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$6(task,global$1,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,n,s){return function(e){t(n,e,s)}},internalReject=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw TypeError$1("Promise can't be resolved itself");var s=isThenable(e);s?microtask(function(){var t={done:!1};try{call$6(s,e,bind$1(internalResolve,t,n),bind$1(internalReject,t,n))}catch(e){internalReject(t,e,n)}}):(n.value=e,n.state=FULFILLED,notify(n,!1))}catch(e){internalReject({done:!1},e,n)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$6(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var n=getInternalPromiseState(this),s=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return n.parent=!0,s.ok=!isCallable$1(e)||e,s.fail=isCallable$1(t)&&t,s.domain=IS_NODE?process.domain:void 0,n.state==PENDING?n.reactions.add(s):microtask(function(){callReaction(s,n)}),s.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var n=this;return new PromiseConstructor(function(e,t){call$6(nativeThen,n,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$7({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$4=wellKnownSymbol$i,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$i("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof$1=classof$6,getMethod$1=getMethod$4,Iterators=iterators,wellKnownSymbol$3=wellKnownSymbol$i,ITERATOR$1=wellKnownSymbol$i("iterator"),getIteratorMethod$2=function(e){if(null!=e)return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof$1(e)]},call$5=functionCall,aCallable$2=aCallable$7,anObject$3=anObject$e,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$2=TypeError,getIterator$1=function(e,t){var n=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(n))return anObject$3(call$5(n,e));throw $TypeError$2(tryToString$1(e)+" is not iterable")},call$4=functionCall,anObject$2=anObject$e,getMethod=getMethod$4,iteratorClose$1=function(e,t,n){var s,r;anObject$2(e);try{if(!(s=getMethod(e,"return"))){if("throw"===t)throw n;return n}s=call$4(s,e)}catch(e){r=!0,s=e}if("throw"===t)throw n;if(r)throw s;return anObject$2(s),n},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$e,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError$1=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,n){function s(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function r(e){return p?(anObject$1(e),f?y(e[0],e[1],s):y(e[0],e[1])):f?y(e,s):y(e)}var o,i,a,l,c,d,u=n&&n.that,p=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_RECORD),m=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),y=bind(t,u);if(g)o=e.iterator;else if(m)o=e;else{if(!(n=getIteratorMethod(e)))throw $TypeError$1(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(n)){for(i=0,a=lengthOfArrayLike(e);i<a;i++)if((l=r(e[i]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}o=getIterator(e,n)}for(c=(g?e:o).next;!(d=call$3(c,o)).done;){try{l=r(d.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol$2=wellKnownSymbol$i,ITERATOR=wellKnownSymbol$i("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,ERunMode,EIoFolderMode,EIoFolderType,TvField,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var n=!1;try{var s={};s[ITERATOR]=function(){return{next:function(){return{done:n=!0}}}},e(s)}catch(e){}return n},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$6=_export,call$2=functionCall,aCallable$1=aCallable$7,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$5=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var a=this,t=newPromiseCapabilityModule$2.f(a),l=t.resolve,c=t.reject,n=perform$1(function(){var s=aCallable$1(a.resolve),r=[],o=0,i=1;iterate$1(e,function(e){var t=o++,n=!1;i++,call$2(s,a,e).then(function(e){n||(n=!0,r[t]=e,--i)||l(r)},c)}),--i||l(r)});return n.error&&c(n.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$8,isCallable=isCallable$n,defineBuiltIn=defineBuiltIn$7,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$4=($$5({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$7,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var n=this,s=newPromiseCapabilityModule$1.f(n),r=s.reject,t=perform(function(){var t=aCallable(n.resolve);iterate(e,function(e){call$1(t,n,e).then(s.resolve,r)})});return t.error&&r(t.value),s.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$3({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$e),isObject$1=isObject$8,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject$1(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$2=_export,getBuiltIn=getBuiltIn$8,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;function getImageURL(s,r){return __awaiter(this,void 0,void 0,function*(){var e={name:r.name},{url:e,unsignedUrl:t}=(yield baseGraphQLApiWithError(Object.assign({query:`
7
- query getUrl($name: String!){
8
- getSignedWritableUrl(key: $name) {
9
- url
10
- unsignedUrl
11
- getUrl
12
- }
13
- }
14
- `,operationName:"getUrl",variables:e},s))).getSignedWritableUrl,n={method:"PUT",headers:{"Content-Type":r.type,"X-Veritone-Application":"aiware-sdk"},body:r};try{return yield fetch(e,n),t}catch(e){return console.log(e),""}})}function getScheduledJob(t,n){return __awaiter(this,void 0,void 0,function*(){var e="getScheduledJob";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getScheduledJob($id:ID!){\n scheduledJob(id: $id) {\n id\n name\n details\n description\n runMode\n isActive\n isPublic\n startDateTime\n stopDateTime\n permission\n primarySource {\n id\n name\n sourceTypeId\n details\n createdDateTime\n modifiedDateTime\n thumbnailUrl\n permission\n }\n contentTemplates {\n schemaId\n data\n }\n allJobTemplates {\n records {\n id\n clusterId\n jobConfig\n taskTemplates {\n records {\n id\n engineId\n payload\n engine {\n id\n name\n }\n }\n }\n }\n }\n parts {\n repeatInterval\n repeatIntervalUnit\n startTime\n stopTime\n scheduleType\n scheduledDay: scheduledDayLocal\n durationSeconds\n }\n affiliates {\n records {\n source {\n id\n name\n details\n }\n startDateTime\n stopDateTime\n scheduledDay\n startTime\n stopTime\n }\n }\n }\n }\n ",operationName:e,variables:{id:n}},t))).scheduledJob})}function getSingleCluster(t,n){return __awaiter(this,void 0,void 0,function*(){var e="getCluster";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getCluster($id: ID! ){\n cluster(\n id: $id,\n ) {\n id\n name\n type\n controllerUrl\n allowedEngines\n edgeVersion\n paused\n default\n bypassAllowedEngines\n }\n }\n ",operationName:e,variables:{id:n}},t))).cluster})}function getFolder(t,n){return __awaiter(this,void 0,void 0,function*(){var e="getFolder";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getFolder($id: ID!){\n folder(\n id: $id,\n ) {\n id\n name\n }\n }\n ",operationName:e,variables:{id:n}},t))).folder})}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})}function updateScheduledJob(t,n){return __awaiter(this,void 0,void 0,function*(){var e="updateScheduledJob";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation updateScheduledJob($scheduledJob: UpdateScheduledJob!) {\n updateScheduledJob(input: $scheduledJob) {\n id\n }\n }",operationName:e,variables:{scheduledJob:n}},t))).id})}function deleteScheduledJob(t,n){return __awaiter(this,void 0,void 0,function*(){var e="deleteScheduledJob";return yield baseGraphQLApiWithError(Object.assign({query:"\n mutation deleteScheduledJob ($id: ID!) {\n deleteScheduledJob(id: $id) {\n id\n }\n }\n ",operationName:e,variables:{id:n}},t))})}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},selectActiveStep=e=>e.processingCenterIngestion.ingestionJobsWizard.activeStep,selectActiveEngine=e=>{return e.processingCenterIngestion.ingestionJobsWizard.activeEngine},selectScheduledJobId=e=>e.processingCenterIngestion.ingestionJobsWizard.scheduledJobId,selectSteps=e=>e.processingCenterIngestion.ingestionJobsWizard.steps,selectExistingScheduledJob=e=>e.processingCenterIngestion.ingestionJobsWizard.existingScheduledJob,selectExistingJobStatus=e=>e.processingCenterIngestion.ingestionJobsWizard.existingJobStatus,selectExistingJobErrorMessage=e=>e.processingCenterIngestion.ingestionJobsWizard.existingJobErrorMessage,selectIsFullScreen=e=>{return e.processingCenterIngestion.ingestionJobsWizard.isFullScreen},selectIsEditMode=e=>{return e.processingCenterIngestion.ingestionJobsWizard.isEditMode},selectUpdateJobErrors=e=>e.processingCenterIngestion.ingestionJobsWizard.updateJobErrors,selectDeleteJobStatus=e=>e.processingCenterIngestion.ingestionJobsWizard.deleteJobStatus,getActiveEngine=e=>{const t={name:"",id:""};return e&&e.map(e=>(1===e.payload.ioFolders.length&&"output"===e.payload.ioFolders[0].type&&(t.name=e.engine.name,t.id=e.engine.id),e)),t},convertDateFromUtc=(t,n,s)=>{if(!s)return n?t.slice(0,16):t.slice(0,10);try{let e=new Date(t);var r=(e=new Date(e.toLocaleString("en-US",{timeZone:s}))).getFullYear()+`-${("0"+(e.getMonth()+1)).slice(-2)}-${("0"+e.getDate()).slice(-2)} ${("0"+e.getHours()).slice(-2)}:`+("0"+e.getMinutes()).slice(-2);return n?r:r.slice(0,10)}catch(e){return console.error("The timezone could not be found - timeslot will set in UTC time"),n?t.slice(0,16):t.slice(0,10)}},getTimeslotFromUtc=(t,e)=>{if(!e||"UTC"===e)return t;try{var n=(new Date).toISOString(),s=new Date(n.slice(0,11)+t+":00.000Z");return new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,hour:"2-digit",minute:"2-digit"}).format(s)}catch(e){return console.error("The timezone could not be found - timeslot will set in UTC time"),t}},getAffiliates=e=>{const r={};return e.map(e=>{var t,n=e.source.id,s=(r[n]||(r[n]={source:{id:e.source.id,name:e.source.name,details:e.source.details},startDate:convertDateFromUtc(e.startDateTime,!1),stopDate:e.stopDateTime?convertDateFromUtc(e.stopDateTime,!1,(null==(t=e.source.details)?void 0:t.liveTimezone)||"UTC"):"",schedule:{Su:[],M:[],Tu:[],W:[],Th:[],F:[],Sa:[]}}),{start:getTimeslotFromUtc(e.startTime,(null==(t=e.source.details)?void 0:t.liveTimezone)||"UTC"),end:getTimeslotFromUtc(e.stopTime,(null==(t=e.source.details)?void 0:t.liveTimezone)||"UTC"),id:v4(),isValid:!0,isConflict:!1});switch(e.scheduledDay){case"Sunday":r[n].schedule.Su.push(s);break;case"Monday":r[n].schedule.M.push(s);break;case"Tuesday":r[n].schedule.Tu.push(s);break;case"Wednesday":r[n].schedule.W.push(s);break;case"Thursday":r[n].schedule.Th.push(s);break;case"Friday":r[n].schedule.F.push(s);break;case"Saturday":r[n].schedule.Sa.push(s)}}),r},getWeeklyTimeslots=(!function(e){e.description="description",e.programWebsite="websiteUrl",e.programFormat="programFormat",e.isNational="isNational",e.coverImg="programLiveImage",e.avatarImg="programImage"}(TvField=TvField||{}),(e,n)=>{const s={Su:[],M:[],Tu:[],W:[],Th:[],F:[],Sa:[]};return e.map(e=>{var t={start:getTimeslotFromUtc(e.startTime,n),end:getTimeslotFromUtc(e.stopTime,n),id:v4(),isValid:!0,isConflict:!1};switch(e.scheduledDay){case"Sunday":s.Su.push(t);break;case"Monday":s.M.push(t);break;case"Tuesday":s.Tu.push(t);break;case"Wednesday":s.W.push(t);break;case"Thursday":s.Th.push(t);break;case"Friday":s.F.push(t);break;case"Saturday":s.Sa.push(t)}}),s});function*saveScheduledJobSaga(){var s,r,o,i=yield select(preferredLanguageSelector),i=AIWareFormatMessage(i),a=yield select(selectIsEditMode);try{var l=yield select(selectApiConfigs),c=yield select(selectSelectedFolderId),d=yield select(selectSchedulePayload),u=yield select(selectTimezone),p=yield select(selectDagTemplateId),g=yield select(selectScheduleName);const I=yield select(selectBasicInfoMeta);var m,f=yield select(userSelector),y=(null==(r=null==(s=null==f?void 0:f.organization)?void 0:s.organizationId)?void 0:r.toString())||"",h=yield select(selectSourceSelected),b=yield select(selectMediaChunkLength),S=yield select(selectClusterSelected),x=yield select(selectClusters),$=yield select(selectContentTemplatesToSave);let e="",t,n=(a&&(m=yield select(selectExistingScheduledJob),e=m.id,t=m.contentTemplates),Object.values($).map(e=>({schemaId:e.schemaId,data:e.data})));a&&!n.length&&t&&t.length&&(n=t);var T,E,j=null==(o=x.find(e=>!0===e.default))?void 0:o.id;const R={name:g,description:I.description,isActive:!0,runMode:d.runMode,startDateTime:d.startDateTime,stopDateTime:d.stopDateTime,details:{dagTemplateId:p,timezone:u},dagTemplates:{dagTemplateIds:[p],params:{SOURCE_ID:h.id,CLUSTER_ID:S?S.id:j},jobConfig:{maxTDODuration:b,createTDOInput:{parentFolderId:c,sourceData:{sourceId:h.id}}}}},C=(a||(R.organizationId=y),a&&(R.id=e),d.weeklyScheduleParts&&(R.weeklyScheduleParts=d.weeklyScheduleParts),d.recurringScheduleParts&&(R.recurringScheduleParts=d.recurringScheduleParts),0<n.length&&(R.contentTemplates=n),{Su:"Sunday",M:"Monday",Tu:"Tuesday",W:"Wednesday",Th:"Thursday",F:"Friday",Sa:"Saturday"});Object.keys(I).forEach(e=>{var t=I[e];switch(e){case"programWebsite":R.details.websiteUrl=t;break;case"affiliates":0<Object.keys(t).length&&(R.affiliates=[],Object.values(t).forEach(o=>{const i=o.source.id;Object.keys(o.schedule).forEach(e=>{const r=C[e];e=o.schedule[e];Array.isArray(e)&&0<e.length&&e.forEach(e=>{var t,n=o.startDate+"T00:00",s=o.stopDate+"T23:59";R.affiliates.push({sourceId:i,scheduledDay:r,startDateTime:getUTCDate((null==(t=o.source.details)?void 0:t.liveTimezone)||"UTC",n),stopDateTime:getUTCDate((null==(t=o.source.details)?void 0:t.liveTimezone)||"UTC",s),startTime:e.start+getTimezoneOffset((null==(n=o.source.details)?void 0:n.liveTimezone)||"UTC"),stopTime:e.end+getTimezoneOffset((null==(t=o.source.details)?void 0:t.liveTimezone)||"UTC")})})})}));break;default:R.details[e]=t}}),a?(T=yield call$j(updateScheduledJob,l,R),console.log("Updated scheduled job "+T),yield put(showMessage({content:i({id:"os-processing-center-ingestion.wizard-panel.update-success",defaultMessage:[{type:0,value:"Scheduled job updated successfully"}]}),severity:MessageSeverity.Success}))):(E=yield call$j(createScheduledJob,l,R),console.log("Created scheduled job "+E),yield put(showMessage({content:i({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$8.saveScheduledJobSuccess())}catch(e){a?yield put(showMessage({content:i({id:"os-processing-center-ingestion.wizard-panel.update-failure",defaultMessage:[{type:0,value:"Problem updating scheduled job, please try again"}]}),severity:MessageSeverity.Error})):yield put(showMessage({content:i({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$8.saveScheduledJobFailure())}}function*fetchExistingScheduledJobSaga(){var e=yield select(selectApiConfigs),t=yield select(selectScheduledJobId);let n;try{if(n=yield getScheduledJob(e,t),yield put(actions$8.setExistingScheduledJob(n)),!n.primarySource||!n.primarySource.sourceTypeId)return yield put(actions$8.setExistingJobErrorMessage(IExistingJobErrorMessage.Source)),void(yield put(actions$8.setExistingJobFailure()));if(null==(s=n.details)||!s.dagTemplateId)return yield put(actions$8.setExistingJobErrorMessage(IExistingJobErrorMessage.Dag)),void(yield put(actions$8.setExistingJobFailure()))}catch(e){return yield put(actions$8.setExistingJobErrorMessage(IExistingJobErrorMessage.Job)),yield put(actions$8.setExistingJobFailure()),void console.log("Scheduled job could not be found",e)}var s=(null==(t=n.allJobTemplates.records)?void 0:t[0])||null,t=getActiveEngine(null===s?void 0:s.taskTemplates.records),r=n.primarySource,o=[n.primarySource.sourceTypeId],o=(yield put(actions$8.setActiveEngine(Object.assign(Object.assign({},t),{supportedSourceTypes:o}))),(null==(o=r.details)?void 0:o.liveTimezone)||"UTC");if(yield put(actions$7.setSourceTypeId([r.sourceTypeId])),yield put(actions$7.setSourceSelected(r)),null!==s&&s.clusterId)try{var i=yield getSingleCluster(e,s.clusterId||"");i&&(yield put(actions$7.setSelectedCluster(i)))}catch(e){console.error("cluster could not be found",e)}yield put(actions$7.setMediaChunkLength((null==(i=null==(r=null===s?void 0:s.jobConfig)?void 0:r.maxTDODuration)?void 0:i.toString())||"")),yield put(actions$5.setScheduleName(n.name)),"74dfd76b-472a-48f0-8395-c7e01dd7f255"===t.id&&(yield put(actions$5.setBasicInfoMeta({key:TvField.description,meta:n.description})),yield put(actions$5.setBasicInfoMeta({key:TvField.isNational,meta:null==(r=n.details)?void 0:r.isNational})),yield put(actions$5.setBasicInfoMeta({key:TvField.programFormat,meta:null==(i=n.details)?void 0:i.programFormat})),yield put(actions$5.setBasicInfoMeta({key:TvField.programWebsite,meta:null==(t=n.details)?void 0:t.websiteUrl})),yield put(actions$5.setBasicInfoMeta({key:"programLiveImage",meta:null==(r=n.details)?void 0:r.programLiveImage})),yield put(actions$5.setBasicInfoMeta({key:"programImage",meta:null==(i=n.details)?void 0:i.programImage})));var r=(null==(t=n.affiliates)?void 0:t.records)||[],i=(r.length&&(i=getAffiliates(r),yield put(actions$5.setAffiliatesExistingJob(i))),yield put(actions$6.setScheduleType(n.runMode)),yield put(actions$6.setTimezone(o)),n.stopDateTime&&(yield put(actions$6.setNoEndDate(!1))),n.runMode===RunMode.Recurring&&(yield put(actions$6.setStartDate(convertDateFromUtc(n.startDateTime,!1,o))),n.stopDateTime)&&(yield put(actions$6.setEndDate(convertDateFromUtc(n.stopDateTime,!1,o)))),n.runMode===RunMode.Continuous&&(yield put(actions$6.setContinuousStartDate(convertDateFromUtc(n.startDateTime,!0,o))),n.stopDateTime)&&(yield put(actions$6.setContinuousEndDate(convertDateFromUtc(n.stopDateTime,!0,o)))),null!=(t=null===n||void 0===n?void 0:n.parts)&&t.length&&(yield put(actions$6.setHoursInterval(n.parts[0].repeatInterval)),yield put(actions$6.setDaysInterval(n.parts[0].repeatInterval)),n.parts[0].repeatIntervalUnit===IRepeatIntervalUnit.Weeks?(yield put(actions$6.setFrequency("Weekly")),r=getWeeklyTimeslots(n.parts,o),i=formatWeeklyPayload(r,o),yield put(actions$6.setWeeklyScheduleParts(i)),yield put(actions$6.setWeeklyTimeslots(r))):yield put(actions$6.setFrequency(n.parts[0].repeatIntervalUnit)),n.parts[0].repeatIntervalUnit===IRepeatIntervalUnit.Days&&(yield put(actions$6.setDaysTimeslot(getTimeslotFromUtc(n.parts[0].startTime,o)))),t=yield select(selectScheduleState),i=setApiPayload(t),yield put(actions$6.setSchedulePayload(i))),yield put(actions$4.setDagTemplateId((null==(r=n.details)?void 0:r.dagTemplateId)||"")),yield put(actions$3.setExistingTemplates(n.contentTemplates||[])),(null==(t=null==(o=null===s?void 0:s.jobConfig)?void 0:o.createTDOInput)?void 0:t.parentFolderId)||null);if(i){try{var a=yield getFolder(e,i);yield put(actions$2.setExistingFolder(a))}catch(e){console.error(e)}yield put(actions$2.setSelectedFolderId(i))}yield put(actions$8.setExistingJobSuccess())}function*deleteScheduledJobSaga(){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t),e=yield select(selectApiConfigs),n=yield select(selectScheduledJobId),s=(yield select(selectExistingScheduledJob)).primarySource.id;try{yield call$j(deleteScheduledJob,e,n),yield put(showMessage({content:t({id:"os-processing-center-ingestion.wizard-panel.delete-success",defaultMessage:[{type:0,value:"Scheduled job successfully deleted"}]}),severity:MessageSeverity.Success})),yield put(actions$a.viewStreams.removeScheduleSource({sourceId:s,scheduleId:n})),yield put(hidePanel("PROCESSING_CENTER_INGESTION")),yield put(actions$8.setDeleteJobSuccess())}catch(e){yield put(showMessage({content:t({id:"os-processing-center-ingestion.wizard-panel.delete-failure",defaultMessage:[{type:0,value:"The was a problem deleting this scheduled job, please try again"}]}),severity:MessageSeverity.Error})),console.error(e),yield put(actions$8.setDeleteJobFailure())}}function*saveScheduledJobWatcher(){yield takeLatest$1(actions$8.saveScheduledJobStart.type,saveScheduledJobSaga)}function*getExistingScheduledJobWatcher(){yield takeLatest$1(actions$8.setExistingJobStart.type,fetchExistingScheduledJobSaga)}function*getDeleteScheduledJobWatcher(){yield takeLatest$1(actions$8.setDeleteJobStart.type,deleteScheduledJobSaga)}function*getProgramsSaga(){try{var e=yield select(selectApiConfigs),t=(yield select(selectSourceSelected)).sourceTypeId,n=yield call$j(getPrograms,e,t);yield put(actions$5.setPrograms(n))}catch(e){yield put(actions$5.setError(e))}}function*getImageURLSaga(e){try{var t=yield select(selectApiConfigs),{image:n,type:s}=e.payload,r=yield call$j(getImageURL,t,n);yield put(actions$5.setBasicInfoMeta({key:s,meta:r}))}catch(e){yield put(actions$5.setError(e))}}function*getProgramsWatcher(){yield takeLatest$1(actions$5.getProgramsStart.type,getProgramsSaga)}function*getImageURLWatcher(){yield takeLatest$1(actions$5.setImage.type,getImageURLSaga)}function*initProcessingCenterIngestion(){"pending"===(yield select(selectUIStateStatus))&&(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(),getExistingScheduledJobWatcher(),getImageURLWatcher(),getDeleteScheduledJobWatcher()])}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},menuList:{width:"auto"},menuItem:{borderRadius:4,padding:e.spacing(1),"& > svg":{marginRight:e.spacing(2)},textTransform:"none"}})),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"}}})),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,existingJobError:n=!1})=>{e=useStyles$6({height:e}).classes;const u=stepperStyles()["classes"],[s,r]=react.exports.useState(!1),[o,i]=react.exports.useState(null);var a=Boolean(o);const p=useSelector(selectIsEditMode),g=useDispatch(),m=useSelector(selectUpdateJobErrors),f=useSelector(selectIsOLPEnabled),y=useSelector(userSelector),h=useSelector(selectExistingScheduledJob);var b=useSelector(selectDeleteJobStatus);react.exports.useEffect(()=>{p&&"owner"===(null===h||void 0===h?void 0:h.permission)&&!f&&y&&y.myRights&&0<=y.myRights.indexOf("job.delete")?r(!0):r(!1)},[h]);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:(p?SHARED_TEXT.ingestionJobsWizard.editMode:SHARED_TEXT.ingestionJobsWizard).panelHeader()})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[p?jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.ingestionJobsWizard.editMode.headerMoreActionsButton()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:e=>{i(e.currentTarget),e.stopPropagation()},"aria-labelledby":"more-actions-button","data-testid":"pc-edit-schedule-more-actions-button",size:"large"},{children:jsxRuntime.exports.jsx(MoreVert,{})}))})):null,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,{})}))}))]}))]})),n?null:jsxRuntime.exports.jsxs("div",Object.assign({className:p?u.editModeContainer:u.container},{children:[p&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Menu,Object.assign({onClick:e=>e.stopPropagation(),classes:{paper:e.menuList},"data-testid":"pc-edit-schedule-item-context-menu",open:a,anchorEl:o,onClose:()=>{i(null)}},{children:jsxRuntime.exports.jsxs(MenuItem,Object.assign({onClick:e=>{e.stopPropagation(),g(actions$8.setDeleteJobStart())},disabled:!s||"pending"===b,className:e.menuItem,"data-testid":"pc-edit-schedule-context-menu-delete-option"},{children:[jsxRuntime.exports.jsx(Delete,{fontSize:"small"}),SHARED_TEXT.ingestionJobsWizard.editMode.headerDeleteScheduleButton()]}))})),jsxRuntime.exports.jsx(Tabs,Object.assign({value:l,onChange:(e,t)=>{t=t,g(actions$8.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,{style:0<=m.indexOf(e)?{color:"#d32f2f"}:{},label:jsxRuntime.exports.jsx(n,{}),value:e,"data-testid":"pc-ingestion.edit-schedule-job.panel-header.tab."+e},t)})}))]}),!p&&jsxRuntime.exports.jsx(Stepper,Object.assign({activeStep:l},{children:d.map((e,t)=>{var{number:e,completed:n}=e,s=c[e],r=Math.abs(e-l)<2,o=0===e,i=e===d.length-1,a=e<l,e=l<e,e=`${u.step} ${e?u.futureStep:""} ${a?u.previousStep:""} ${r||a?"":u.hiddenStep} ${o?"is-first-step":""} `+(i?"is-last-step":"");return jsxRuntime.exports.jsx(Step,Object.assign({className:e,completed:n},{children:jsxRuntime.exports.jsx(StepLabel,{children:r&&s()})}),t)})}))]}))]})},useStyles$5=makeStyles()(e=>({panelContainer:{padding:"30px",height:"calc(100vh - 265px)",overflowY:"scroll"},emptyStateContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},emptyImage:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}})),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",e.UPDATE_SCHEDULED_JOB="UPDATE_SCHEDULED_JOB"}(ENextButtonType=ENextButtonType||{}),({disableNext:e,disableBack:t,onClickNext:n,onClickBack:s,nextButtonType:r=ENextButtonType.NEXT,invalidFields:o=!1})=>{const i=useSelector(selectIsEditMode);var a=useStyles$3()["classes"];const l=useSelector(selectScheduleState),c=useSelector(selectActiveStep),d=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:()=>{i?d(hidePanel("PROCESSING_CENTER_INGESTION")):(1===c&&d(hidePanel("PROCESSING_CENTER_INGESTION")),d(actions$8.backStep()),s&&s())},disabled:t},{children:i||1===c?SHARED_TEXT.cancelButton():SHARED_TEXT.backButton()})),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;i?(e=setApiPayload(l),d(actions$6.setSchedulePayload(e)),d(actions$8.saveScheduledJobStart())):(3===c&&(e=setApiPayload(l),d(actions$6.setSchedulePayload(e))),6===c&&d(actions$8.saveScheduledJobStart()),d(actions$8.nextStep()),n&&n())},variant:"contained",disabled:e},{children:(()=>{switch(r){case ENextButtonType.NEXT:return SHARED_TEXT.nextButton();case ENextButtonType.SKIP:return SHARED_TEXT.skipButton();case ENextButtonType.CREATE_SCHEDULED_JOB:return SHARED_TEXT.createScheduledJobButton();case ENextButtonType.UPDATE_SCHEDULED_JOB:return SHARED_TEXT.updateScheduledJobButton();default:return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})}})()}))})}))]}))}),enablePermissions=!1,LocationAndPermissionsStep=()=>{var e=useStyles$4()["classes"];const n=useDispatch(),s=useSelector(selectIsFullScreen),t=(useSelector(selectIsOLPEnabled),useSelector(selectors$1.viewMyFiles.selectRootFolderId)),r=useSelector(selectors.location.selectExistingFolder),o=useSelector(selectors.location.selectSelectedFolderId),i=useSelector(selectors$1.entities.selectFolderEntity(o||t));var a=useSelector(selectIsEditMode),l=useSelector(selectUpdateJobErrors);react.exports.useEffect(()=>{t&&!o&&n(actions.location.setSelectedFolderId(t))},[n,t,o]);const c=react.exports.useCallback(e=>{n(unmountPanel("DATA_CENTER_FOLDERS_AND_FILES")),n(actions.location.setSelectedFolderId(e))},[n]);var d=react.exports.useCallback(()=>{n(actions$a.viewMyFiles.toggleFileOrFolderSelected(null));var e={name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:index.DataCenterView.folders,onSelect:c,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:s?0:55,marginStart:s?0:80,height:600,header:{title:"Choose a Location"},dimmed:0,zIndex:s?1011:1002,dimmedStatus:"dimParent"};n(mountPanel({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:e,panelConfig:t}))},[n,s,c]);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:r.id===o?r.name:(null===i||void 0===i?void 0:i.id)===t?SHARED_TEXT.location.homeFolderLabel():null===i||void 0===i?void 0:i.name})),jsxRuntime.exports.jsx("span",{className:e.spacer}),jsxRuntime.exports.jsx("span",Object.assign({className:e.folderInputLabel,onClick:d,role:"button","data-test":"processing-center-location-select-btn"},{children:SHARED_TEXT.location.changeLocationButton()}))]}))]}),enablePermissions,jsxRuntime.exports.jsx(PanelControls$1,{disableNext:0<l.length,disableBack:!1,nextButtonType:a?ENextButtonType.UPDATE_SCHEDULED_JOB: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.esm75.js")),BasicInfoStep=react.exports.lazy(()=>import("./js-core.esm76.js")),ScheduleStep=react.exports.lazy(()=>import("./js-core.esm77.js")),ContentTemplatesStep=react.exports.lazy(()=>import("./js-core.esm78.js")),ProcessingStep=react.exports.lazy(()=>import("./js-core.esm79.js")),IngestionJobsWizard=e=>{var t=useStyles$5()["classes"];const n=useDispatch();var s=useSelector(selectSteps),r=useSelector(selectActiveStep),o=useSelector(selectActiveEngine),i=useSelector(selectExistingJobStatus);const a=useSelector(selectExistingJobErrorMessage);react.exports.useEffect(()=>{e.activeEngine&&n(actions$8.setActiveEngine(null==e?void 0:e.activeEngine)),e.isFullScreen&&n(actions$8.setIsFullScreen(Boolean(null==e?void 0:e.isFullScreen)))},[null==e?void 0:e.activeEngine,null==e?void 0:e.isFullScreen]),react.exports.useEffect(()=>{e.scheduledJobId&&(n(actions$8.setIsEditMode(!0)),n(actions$8.setScheduledJobId(null==e?void 0:e.scheduledJobId)),n(actions$8.setExistingJobStart()),n(actions$7.clustersSearchStart()))},[null==e?void 0:e.scheduledJobId]);var l=()=>n(hidePanel("PROCESSING_CENTER_INGESTION"));return e.scheduledJobId&&"pending"===i?null:e.scheduledJobId&&"failure"===i?jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"700px"}},{children:[jsxRuntime.exports.jsx(PanelHeader,{steps:s,activeStep:r,stepLabels:stepLabels,height:64,onPanelClose:l,existingJobError:!0}),jsxRuntime.exports.jsx("div",Object.assign({className:t.panelContainer},{children:jsxRuntime.exports.jsxs("section",Object.assign({className:t.emptyStateContainer,"data-test":"edit-ingestion-error-state-container"},{children:[jsxRuntime.exports.jsx("img",{"data-test":"error-state-image",alt:"No Content Templates",className:t.emptyImage,src:img$3}),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"error-state-title",className:t.message,variant:"h2",color:"textPrimary"},{children:SHARED_TEXT.ingestionJobsWizard.editMode.existingJobErrorTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"error-state-message",variant:"body2",color:"textPrimary"},{children:a===IExistingJobErrorMessage.Job?SHARED_TEXT.ingestionJobsWizard.editMode.existingJobErrorMessageJob():a===IExistingJobErrorMessage.Source?SHARED_TEXT.ingestionJobsWizard.editMode.existingJobErrorMessageSource():a===IExistingJobErrorMessage.Dag?SHARED_TEXT.ingestionJobsWizard.editMode.existingJobErrorMessageDag():""}))]}))}))]})):jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"700px"}},{children:[jsxRuntime.exports.jsx(PanelHeader,{steps:s,activeStep:r,stepLabels:stepLabels,height:64,onPanelClose:l}),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===r&&jsxRuntime.exports.jsx(SelectSourceStep,{sourceTypeIds:null==o?void 0:o.supportedSourceTypes}),2===r&&jsxRuntime.exports.jsx(BasicInfoStep,{activeEngine:o}),3===r&&jsxRuntime.exports.jsx(ScheduleStep,{activeEngine:o}),4===r&&jsxRuntime.exports.jsx(ProcessingStep,{}),5===r&&jsxRuntime.exports.jsx(ContentTemplatesStep,{}),6===r&&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(AIWareCacheProvider,{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(),s=["1","5","15","30","45","60"];var e=useSelector(selectMediaChunkLength)||"15",r=useSelector(selectClusters);const o=useSelector(selectClusterSelected),[i,a]=react.exports.useState(null),[l,c]=react.exports.useState(e);e=useSelector(selectClustersError);const d=useSelector(selectClustersIsLoading);react.exports.useEffect(()=>{n(actions$7.clustersSearchStart())},[]),react.exports.useEffect(()=>{d||a(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:i,onChange:(e,t)=>{a(t)},sx:{width:"320px"},options:r,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:[s.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:()=>{i&&n(actions$7.setSelectedCluster(i)),n(actions$7.setMediaChunkLength(l)),n(t())},variant:"contained",disabled:!i},{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:s,onSave:r,invalidFields:o=!1})=>{var i=useStyles$1()["classes"];const[a,l]=react.exports.useState(!1);return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-affiliate-panel-controls",className:i.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-affiliate-panel-cancel-btn",sx:{color:"#2A323C"},onClick:()=>{s()},disabled:t||a},{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:a,"data-testid":"pc-affiliate-panel-save-btn",onClick:()=>{l(!0),setTimeout(()=>{l(!1),r(),s()},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,s]=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;s(e),t(e)},value:n,placeholder:"Search Source name.."})]}))},SelectSourceItem=({source:e,onChangeSource:t})=>{var n=useStyles()["classes"],{id:s,name:r}=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-"+r,className:n.sourceItem,noWrap:!0},{children:r||s}))}),s),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:r,loadNextPage:n,onChangeSource:o})=>{const s=t?r.length+1:r.length;const i=e=>!t||e<r.length,a=({index:e,style:t})=>{let n;var s;return n=i(e)?(s=r[e],jsxRuntime.exports.jsx(SelectSourceItem,{source:s,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:i,itemCount:s,loadMoreItems:e?()=>{}:n},{children:({onItemsRendered:e,ref:t})=>jsxRuntime.exports.jsx(FixedSizeList,Object.assign({height:300,itemCount:s,itemSize:40,onItemsRendered:e,ref:t,width:"100%"},{children:a}))}))},SelectSource=({sourceTypeIds:e,sourceSelected:t,onChangeSource:n,isAffiliate:s,disabled:r})=>{const o=useDispatch();var i=useStyles()["classes"],a=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$7.resetSourcesSearch()),o(actions$7.setSourceTypeId(e)),o(actions$7.sourcesSearchStart(s)))},[c]);var y=debounce_1(e=>{o(actions$7.resetSourcesSearch()),o(actions$7.setSourceSearchTerm(e)),o(actions$7.sourcesSearchStart(s))},300);return jsxRuntime.exports.jsx(FormControl,Object.assign({id:"selectSourceStep",size:"small",sx:{width:"100%"}},{children:jsxRuntime.exports.jsxs(Select,Object.assign({disabled:r||!1,id:"sources","data-test":"processing-center-ingestion-source-selected",sx:muiSelectStyleOverrides,variant:"outlined",multiple:!1,displayEmpty:!0,onClick:()=>{r||(c&&(o(actions$7.resetSourcesSearch()),o(actions$7.setSourceSearchTerm(""))),d(!c))},className:a.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:i.removePadding,paper:i.removePadding}}},{children:[[jsxRuntime.exports.jsx("div",Object.assign({id:"sourceMenu",className:i.dropdownContainer,ref:l},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:i.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$7.sourcesSearchStart(s))},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$7.sourcesSearchStart(s))},onChangeSource:n})}))]}))}),"sourceMenu")],!m&&f&&0===p.length&&jsxRuntime.exports.jsx(LoadingStateList,{text:SHARED_TEXT.loadingSources()}),[!m&&!s&&jsxRuntime.exports.jsxs("div",Object.assign({style:{padding:"0px 25px"}},{children:[jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx("div",Object.assign({className:i.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 s=useStyles$7()["classes"],s=s.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:s,"data-testid":"day-bubble-"+e.toLowerCase()},{children:e}))}))},TimeRowHoverActions=({onAdd:e,onCopyToAll:t,day:n})=>{var s=useStyles$7()["classes"];const[r,o]=react.exports.useState(!1);return react.exports.useEffect(()=>{let e;return r&&(t(n),e=setTimeout(()=>{o(!1)},1e3)),()=>{e&&clearTimeout(e)}},[r]),jsxRuntime.exports.jsxs("div",Object.assign({className:s.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:s.rowDivider}),jsxRuntime.exports.jsxs("div",Object.assign({className:s.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:[!r&&jsxRuntime.exports.jsx(ContentCopy,{sx:{color:"#1871E8"}}),r&&jsxRuntime.exports.jsx(CheckCircle,{sx:{color:"#40c057"}})]}))})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:"weekly-schedule-row-copy-all-text",sx:{color:r?"#40c057":"#1871E8"}},{children:[!r&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copyTimeToAll,r&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copiedTimeToAll]}))]}))]}))},DayTimeslotsRow=({day:n,enabled:e,timeslots:t,onAdd:s,onDelete:r,onChangeTime:o,onCopyToAll:i,disabled:a})=>{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:r,onChangeTime:o,disabled:a,id:""+(t+1)},t))})),{}),!a&&jsxRuntime.exports.jsx(TimeRowHoverActions,{onAdd:s,onCopyToAll:i,day:n})]})):jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})},DayTimeslotsContainer=({enabledDays:n,timeslots:s,onAdd:r,onDelete:o,onChangeTime:i,onCopyToAll:a,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:s[e],enabled:n.includes(e),onAdd:r,onDelete:o,onChangeTime:i,onCopyToAll:a,disabled:l},t))}))},WeeklyScheduler=({isEnabled:e,timeslots:r,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(r).includes(n),onClick:()=>{var e,t;e=n,getEnabledDays(r).includes(e)?1!==getEnabledDays(r).length&&((t=lodash.exports.cloneDeep(r))[e]=[],o(t)):((t=lodash.exports.cloneDeep(r))[e]=[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],o(t))}},e))})),jsxRuntime.exports.jsx(DayTimeslotsContainer,{enabledDays:getEnabledDays(r),timeslots:r,onAdd:e=>{var t=lodash.exports.cloneDeep(r);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(r);n[e]=n[e].filter(e=>{e=e.id;return!(t===e)}),o(n)},onChangeTime:(n,s,e)=>{var t=lodash.exports.cloneDeep(r);e&&(t[e]=t[e].map(e=>{var t=e["id"];return s===t?Object.assign(Object.assign(Object.assign({},e),n),{id:s}):e})),o(t)},onCopyToAll:e=>{var t=lodash.exports.cloneDeep(r);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[s,r]=react.exports.useState(null),[o,i]=react.exports.useState(initialTimeslots),[a,l]=react.exports.useState(""),[c,d]=react.exports.useState("");var u=validateStartAndEndTime(a,c,!0);const[p,g]=react.exports.useState(!0);var m=useSelector(selectSourceTypeId)||[];const f=useSelector(selectBasicInfoAffiliates),y=useDispatch();react.exports.useEffect(()=>{n&&t&&(r(f[t].source),l(f[t].startDate),d(f[t].stopDate),i(f[t].schedule))},[t,n]);var h=!s||u||!a||!c||!p;const b=(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:s,onChangeSource:e=>{r(e)},isAffiliate:!0,disabled:!!n})]}),!!s&&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:a,onChange:e=>b(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=>b(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:!!s,onChangeTimeslots:i,timeslots:o})})),jsxRuntime.exports.jsx(PanelControls,{disableSave:h,activeView:n?EAffiliatePanelView.editAffiliate:EAffiliatePanelView.addAffiliate,onClose:e,onSave:()=>{var e;s&&(e={source:s,startDate:a,stopDate:c,schedule:o},y(actions$5.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:s})=>{var r=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:r.container},{children:[e===EAffiliatePanelView.addAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t}),e===EAffiliatePanelView.editAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t,affiliateId:n,isEdit:s}),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{getIteratorMethod$2 as $,engineV8Version as A,selectPrograms as B,selectBasicInfoMeta as C,selectActiveEngine as D,ENextButtonType as E,actions$5 as F,EAffiliatePanelView as G,toString$7 as H,internalState as I,anInstance$1 as J,classof$6 as K,isObject$8 as L,objectCreate as M,createPropertyDescriptor$3 as N,validateArgumentsLength$1 as O,PanelControls$1 as P,selectBasicInfoAffiliates as Q,stringMultibyte as R,SHARED_TEXT as S,TvField as T,makeBuiltIn$2 as U,objectDefineProperty as V,functionCall as W,hasOwnProperty_1 as X,anObject$e as Y,getIterator$1 as Z,_export as _,selectSourceSelected as a,tryToString$4 as a0,format as a1,DayTimeslotsContainer as a2,getEnabledDays as a3,requiredArgs as a4,toInteger as a5,isArrayIteratorMethod$1 as a6,isConstructor$1 as a7,toAbsoluteIndex$1 as a8,iteratorClose$1 as a9,toPropertyKey$2 as aa,selectTimezone as ab,selectScheduleType as ac,selectFrequency as ad,selectWeeklyTimeslots as ae,selectIsWeeklyValid as af,actions$6 as ag,selectFrequencyIsValid as ah,initialTimeslots as ai,validateAllTimeslots as aj,formatWeeklyPayload as ak,FrequencySchedular as al,WeeklyScheduler as am,selectDagTemplateId as an,selectDagTemplatesLoadingStatus as ao,actions$4 as ap,selectAllDagTemplates as aq,selectDagTemplatesHasMore as ar,__rest as as,index_esm as at,selectIsEditMode as b,selectUpdateJobErrors as c,actions$8 as d,SelectSource as e,actions$7 as f,selectScheduleName as g,selectBasicInfoInvalidFields as h,defineIterator$1 as i,fails$l as j,functionUncurryThis as k,global$o as l,defineBuiltIn$7 as m,setToStringTag$3 as n,createIteratorConstructor$1 as o,isCallable$n as p,descriptors as q,functionBindContext as r,selectIsFullScreen as s,objectAssign as t,useStyles as u,engineUserAgent as v,wellKnownSymbol$i as w,aCallable$7 as x,toObject$4 as y,lengthOfArrayLike$2 as z};
1
+ import{ca as createSvgIcon,j as jsxRuntime}from"./js-core.esm.js";var 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");export{AddCircleOutline as A};