aiware-js 2.30.0 → 2.31.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 (132) hide show
  1. package/index.esm.css +96 -93
  2. package/index.esm.css.gz +0 -0
  3. package/index.esm.js +1 -1
  4. package/index.esm.js.gz +0 -0
  5. package/js-core.esm.js +12 -12
  6. package/js-core.esm.js.gz +0 -0
  7. package/js-core.esm12.js +1 -1
  8. package/js-core.esm12.js.gz +0 -0
  9. package/js-core.esm14.js +1 -1
  10. package/js-core.esm14.js.gz +0 -0
  11. package/js-core.esm17.js +2 -2
  12. package/js-core.esm17.js.gz +0 -0
  13. package/js-core.esm18.js +2 -60
  14. package/js-core.esm18.js.gz +0 -0
  15. package/js-core.esm20.js +1 -1
  16. package/js-core.esm20.js.gz +0 -0
  17. package/js-core.esm21.js +1 -1
  18. package/js-core.esm21.js.gz +0 -0
  19. package/js-core.esm23.js +1 -1
  20. package/js-core.esm23.js.gz +0 -0
  21. package/js-core.esm24.js +1 -1
  22. package/js-core.esm24.js.gz +0 -0
  23. package/js-core.esm25.js +1 -1
  24. package/js-core.esm25.js.gz +0 -0
  25. package/js-core.esm26.js +1 -1
  26. package/js-core.esm26.js.gz +0 -0
  27. package/js-core.esm27.js +1 -1
  28. package/js-core.esm27.js.gz +0 -0
  29. package/js-core.esm29.js +1 -1
  30. package/js-core.esm29.js.gz +0 -0
  31. package/js-core.esm30.js +1 -1
  32. package/js-core.esm30.js.gz +0 -0
  33. package/js-core.esm31.js +1 -1
  34. package/js-core.esm31.js.gz +0 -0
  35. package/js-core.esm32.js +1 -1
  36. package/js-core.esm32.js.gz +0 -0
  37. package/js-core.esm33.js +1 -1
  38. package/js-core.esm33.js.gz +0 -0
  39. package/js-core.esm34.js +1 -1
  40. package/js-core.esm34.js.gz +0 -0
  41. package/js-core.esm35.js +1 -1
  42. package/js-core.esm35.js.gz +0 -0
  43. package/js-core.esm36.js +1 -1
  44. package/js-core.esm36.js.gz +0 -0
  45. package/js-core.esm37.js +2 -2
  46. package/js-core.esm37.js.gz +0 -0
  47. package/js-core.esm38.js +2 -2
  48. package/js-core.esm38.js.gz +0 -0
  49. package/js-core.esm39.js +1 -1
  50. package/js-core.esm39.js.gz +0 -0
  51. package/js-core.esm40.js +1 -1
  52. package/js-core.esm40.js.gz +0 -0
  53. package/js-core.esm41.js +1 -1
  54. package/js-core.esm41.js.gz +0 -0
  55. package/js-core.esm42.js +4 -4
  56. package/js-core.esm42.js.gz +0 -0
  57. package/js-core.esm44.js +2 -2
  58. package/js-core.esm44.js.gz +0 -0
  59. package/js-core.esm45.js +1 -1
  60. package/js-core.esm45.js.gz +0 -0
  61. package/js-core.esm5.js +22 -3
  62. package/js-core.esm5.js.gz +0 -0
  63. package/js-core.esm50.js +2 -2
  64. package/js-core.esm50.js.gz +0 -0
  65. package/js-core.esm51.js +1 -1
  66. package/js-core.esm51.js.gz +0 -0
  67. package/js-core.esm52.js +1 -1
  68. package/js-core.esm52.js.gz +0 -0
  69. package/js-core.esm53.js +1 -1
  70. package/js-core.esm53.js.gz +0 -0
  71. package/js-core.esm55.js +1 -1
  72. package/js-core.esm55.js.gz +0 -0
  73. package/js-core.esm56.js +2 -2
  74. package/js-core.esm56.js.gz +0 -0
  75. package/js-core.esm57.js +2 -2
  76. package/js-core.esm57.js.gz +0 -0
  77. package/js-core.esm58.js +4 -4
  78. package/js-core.esm58.js.gz +0 -0
  79. package/js-core.esm60.js +3 -2
  80. package/js-core.esm60.js.gz +0 -0
  81. package/js-core.esm61.js +2 -2
  82. package/js-core.esm61.js.gz +0 -0
  83. package/js-core.esm62.js +37 -3
  84. package/js-core.esm62.js.gz +0 -0
  85. package/js-core.esm63.js +8 -8
  86. package/js-core.esm63.js.gz +0 -0
  87. package/js-core.esm64.js +1 -1
  88. package/js-core.esm64.js.gz +0 -0
  89. package/js-core.esm65.js +1 -1
  90. package/js-core.esm65.js.gz +0 -0
  91. package/js-core.esm66.js +1 -1
  92. package/js-core.esm66.js.gz +0 -0
  93. package/js-core.esm67.js +17 -14
  94. package/js-core.esm67.js.gz +0 -0
  95. package/js-core.esm68.js +2 -2
  96. package/js-core.esm68.js.gz +0 -0
  97. package/js-core.esm69.js +2 -2
  98. package/js-core.esm69.js.gz +0 -0
  99. package/js-core.esm7.js +2 -2
  100. package/js-core.esm7.js.gz +0 -0
  101. package/js-core.esm70.js +2 -2
  102. package/js-core.esm70.js.gz +0 -0
  103. package/js-core.esm71.js +1 -38
  104. package/js-core.esm71.js.gz +0 -0
  105. package/js-core.esm72.js +36 -1
  106. package/js-core.esm72.js.gz +0 -0
  107. package/js-core.esm73.js +1 -1
  108. package/js-core.esm73.js.gz +0 -0
  109. package/js-core.esm74.js +1 -1
  110. package/js-core.esm74.js.gz +0 -0
  111. package/js-core.esm75.js +1 -1
  112. package/js-core.esm75.js.gz +0 -0
  113. package/js-core.esm76.js +1 -1
  114. package/js-core.esm76.js.gz +0 -0
  115. package/js-core.esm77.js +1 -1
  116. package/js-core.esm77.js.gz +0 -0
  117. package/js-core.esm78.js +1 -1
  118. package/js-core.esm78.js.gz +0 -0
  119. package/js-core.esm79.js +1 -1
  120. package/js-core.esm79.js.gz +0 -0
  121. package/js-core.esm80.js +1 -0
  122. package/js-core.esm80.js.gz +0 -0
  123. package/js-core.esm81.js +1 -0
  124. package/js-core.esm81.js.gz +0 -0
  125. package/js-core.umd.css +4 -1
  126. package/js-core.umd.css.gz +0 -0
  127. package/js-core.umd.js +294 -255
  128. package/js-core.umd.js.gz +0 -0
  129. package/locales/en.json +1 -1
  130. package/locales/es.json +1 -1
  131. package/locales/fr.json +1 -1
  132. package/package.json +4 -3
package/js-core.esm70.js CHANGED
@@ -1,4 +1,4 @@
1
- import{bX as createSvgIcon,j as jsxRuntime,H as createSlice,m as makeStyles,F as FormattedMessage,p as lodash,c2 as combineReducers,c3 as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,i as useDispatch,bt as CacheProvider,bu as muiCache,c5 as AIWareThemeProvider,K as lib,A as AIWareIntlProvider,k as useSelector,r as react,B as Box,v as FormControl,w as TextField,eK as InputLabel,aS as Select,ar as Button,ac as Skeleton,aT as MenuItem,T as Typography,a2 as all,a8 as Tooltip,a9 as IconButton,bS as Hide,ff as selectIsOLPEnabled,cd as unmountPanel,ch as mountPanel,cg as hidePanel,L as LoadingButton,a7 as Divider,aw as CircularProgress,bH as RadioGroup,ao as FormControlLabel,bV as Radio,ap as Checkbox,ad as takeLatest$1,ag as select,ai as call$k,af as put,M as preferredLanguageSelector,cj as userSelector,bT as showMessage,bU as MessageSeverity,b1 as AIWareFormatMessage,fC as CheckCircle,cu as baseGraphQLApiWithError}from"./js-core.esm.js";import{g as getDataCenterBrowseModule,s as selectors$1,a as actions$9}from"./js-core.esm42.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave}from"./js-core.esm64.js";import"./js-core.esm44.js";import{F as FixedSizeList}from"./js-core.esm29.js";import{I as InfiniteLoader}from"./js-core.esm46.js";import{d as default_1}from"./js-core.esm8.js";import{d as debounce_1}from"./js-core.esm45.js";import{v as v4}from"./js-core.esm48.js";import{A as Autocomplete}from"./js-core.esm21.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm51.js";import{S as Search}from"./js-core.esm10.js";import{D as Delete}from"./js-core.esm65.js";import{C as ContentCopy}from"./js-core.esm49.js";var match$2,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,LoadingStatus,AddCircleOutline=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),FolderOpen=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen"),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$o=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$3?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$4=(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$i=FunctionPrototype$2.call,uncurryThis$o=NATIVE_BIND$2&&bind$5.bind(call$i,call$i),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$o(e)}:function(e){return e&&function(){return call$i.apply(e,arguments)}},uncurryThis$n=functionUncurryThis,toString$a=uncurryThis$n({}.toString),stringSlice$6=uncurryThis$n("".slice),classofRaw$1=function(e){return stringSlice$6(toString$a(e),8,-1)},uncurryThis$m=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$7=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$6=requireObjectCoercible$7,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$6(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$l=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$5=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$h=functionCall,isCallable$i=isCallable$n,isObject$7=isObject$8,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$i(r=e.toString)&&!isObject$7(n=call$h(r,e)))return n;if(isCallable$i(r=e.valueOf)&&!isObject$7(n=call$h(r,e)))return n;if("string"!==t&&isCallable$i(r=e.toString)&&!isObject$7(n=call$h(r,e)))return n;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,r){try{defineProperty$6(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},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$5=((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$7),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$5(e))},uncurryThis$k=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$j=functionUncurryThis,id=0,postfix=Math.random(),toString$9=uncurryThis$j(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$9(++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$g=functionCall,isObject$6=isObject$8,isSymbol$1=isSymbol$2,getMethod$4=getMethod$5,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 r=getMethod$4(e,TO_PRIMITIVE);if(r){if(r=call$g(r,e,t=void 0===t?"default":t),!isObject$6(r)||isSymbol$1(r))return r;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$3=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$f=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$3=createPropertyDescriptor$4,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,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$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$a(e,t))return createPropertyDescriptor$3(!call$f(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$f=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$e=anObject$f,toPropertyKey$1=toPropertyKey$3,$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,r){var n;return anObject$e(e),t=toPropertyKey$1(t),anObject$e(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&((n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1})),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$e(e),t=toPropertyKey$1(t),anObject$e(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$2=createPropertyDescriptor$4,createNonEnumerableProperty$5=DESCRIPTORS$7?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$2(1,r))}:function(e,t,r){return e[t]=r,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$i=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$h=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$h(store.get),wmhas=uncurryThis$h(store.has),wmset=uncurryThis$h(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,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$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&&r&&hasOwn$7(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$7(r,"constructor")&&r.constructor?DESCRIPTORS$5&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$7(r,"source")||(r.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$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$7=function(e,t,r,n){var s=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(isCallable$e(r)&&makeBuiltIn(r,o,n),n.global)s?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.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$2=Math.max,min$3=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$3(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$2=Math.min,toLength$3=function(e){return 0<e?min$2(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$2=function(i){return function(e,t,r){var n,s=toIndexedObject$3(e),o=lengthOfArrayLike$2(s),a=toAbsoluteIndex$1(r,o);if(i&&t!=t){for(;a<o;)if((n=s[a++])!=n)return!0}else for(;a<o;a++)if((i||a in s)&&s[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$g=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$g([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),s=0,o=[];for(r in n)!hasOwn$6(hiddenKeys$2,r)&&hasOwn$6(n,r)&&push$2(o,r);for(;t.length>s;)!hasOwn$6(n,r=t[s++])||~indexOf$1(o,r)||push$2(o,r);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$f=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$d=anObject$f,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$d(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),s=definePropertyModule$3.f,o=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var i=n[a];hasOwn$5(e,i)||r&&hasOwn$5(r,i)||s(e,i,o(t,i))}},fails$d=fails$l,isCallable$d=isCallable$n,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$d(t)?fails$d(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$6=defineBuiltIn$7,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,n,s,o=e.target,a=e.global,i=e.stat,l=a?global$f:i?global$f[o]||defineGlobalProperty(o,{}):(global$f[o]||{}).prototype;if(l)for(r in t){if(n=t[r],s=e.dontCallGetSet?(s=getOwnPropertyDescriptor$1(l,r))&&s.value:l[r],!isForced$1(a?r:o+(i?".":"#")+r,e.forced)&&void 0!==s){if(typeof n==typeof s)continue;copyConstructorProperties$1(n,s)}(e.sham||s&&s.sham)&&createNonEnumerableProperty$3(n,"sham",!0),defineBuiltIn$6(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$4=descriptors,uncurryThis$e=functionUncurryThis,call$e=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$e([].concat),objectAssign=!$assign||fails$c(function(){if(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)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r]||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var r=toObject$2(e),n=arguments.length,s=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;s<n;)for(var i,l=IndexedObject(arguments[s++]),c=o?concat$1(objectKeys$1(l),o(l)):objectKeys$1(l),u=c.length,d=0;d<u;)i=c[d++],DESCRIPTORS$4&&!call$e(a,l,i)||(r[i]=l[i]);return r}:$assign,$$b=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="processingCenterIngestion",namespace$8=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending",e.Complete="complete"}(LoadingStatus=LoadingStatus||{}),"uiState"),initialState$7={status:LoadingStatus.Idle},slice=createSlice({name:SLICE_NAME+"/"+namespace$8,initialState:initialState$7,reducers:{init(e){e.status=LoadingStatus.Pending},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed}}}),actions$8=slice.actions;var uiState=slice.reducer;const namespace$7="ingestionJobsWizard",initialState$6={activeStep:1,steps:[{number:1,completed:!1},{number:2,completed:!1},{number:3,completed:!1},{number:4,completed:!1},{number:5,completed:!1},{number:6,completed:!1}],activeEngine:{},saveStatus:LoadingStatus.Idle,isFullScreen:!1},ingestionJobsWizardSlice=createSlice({name:"ingestionJobsWizard",initialState:initialState$6,reducers:{nextStep:e=>{var t=e["activeStep"];t!==e.steps.length&&(e.steps[t-1].completed=!0,e.activeStep=t+1)},backStep:e=>{var t=e["activeStep"];1!==t&&(e.activeStep=t-1)},setActiveEngine:(e,t)=>{e.activeEngine=t.payload},saveScheduledJobStart:e=>{e.saveStatus=LoadingStatus.Pending},saveScheduledJobSuccess:e=>{e.saveStatus=LoadingStatus.Complete},saveScheduledJobFailure:e=>{e.saveStatus=LoadingStatus.Failed},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload}}}),actions$7=ingestionJobsWizardSlice.actions;var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,ingestionJobsWizard_slice=ingestionJobsWizardSlice.reducer,objectDefineProperties={},DESCRIPTORS$3=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$c=anObject$f,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$3&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$c(e);for(var r,n=toIndexedObject$1(t),s=objectKeys(t),o=s.length,a=0;a<o;)definePropertyModule$2.f(e,r=s[a++],n[r]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$b=anObject$f,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 r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$b(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$g=wellKnownSymbol$i,create$2=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$g("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$1=(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){e=toObject$1(e);if(hasOwn$4(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return 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,r){(e=e&&!r?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$1=createPropertyDescriptor$4,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,r,n){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$1(+!n,r)}),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$d=functionUncurryThis,anObject$a=anObject$f,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThis$d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$a(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$a=_export,call$d=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,r,n,s,o,a){createIteratorConstructor(r,t,n);function i(e){if(e===s&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$5]||d["@@iterator"]||s&&d[s],g=!BUGGY_SAFARI_ITERATORS&&p||i(s),m="Array"==t&&d.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,n,!0)),PROPER_FUNCTION_NAME$1&&s==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(d,"name",VALUES):(u=!0,g=function(){return call$d(p,this)})),s)if(l={values:i(VALUES),keys:o?g:i(KEYS),entries:i(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$4(d,c,l[c]);else $$a({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$5]!==g&&defineBuiltIn$4(d,ITERATOR$5,g,{name:s}),Iterators$3[t]=g,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,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,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("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 r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$e[COLLECTION_NAME]&&global$e[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const namespace$6="sourceStep",initialState$5={isAffiliateSearch:!1,sourceSearchTerm:"",sourceTypeId:[],searchedSources:[],sourceSelected:null,isLoading:!1,error:null,hasMore:!1,offset:0,clusterSection:{clusterSelected:null,clusters:[],isLoading:!0,error:null,hasMore:!1,offset:0},mediaChunkLength:"15"},sourceStepSlice=createSlice({name:"sourceStep",initialState:initialState$5,reducers:{sourcesSearchStart:(e,{payload:t})=>{e.isAffiliateSearch=t,0===e.offset&&(e.isLoading=!0)},sourcesSearchSucceeded:(e,{payload:t})=>{e.searchedSources=[...e.searchedSources,...t],e.error=null,e.isLoading=!1},resetSourcesSearch:e=>{e.isAffiliateSearch=!1,e.searchedSources=[],e.isLoading=!1,e.offset=0,e.hasMore=!1,e.error=null},setSourceTypeId:(e,{payload:t})=>{e.sourceTypeId=t},setSourceSelected:(e,{payload:t})=>{e.sourceSelected=t},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setError:(e,{payload:t})=>{e.error=t},setLoading:(e,{payload:t})=>{e.isLoading=t},setSourceSearchTerm:(e,{payload:t})=>{e.sourceSearchTerm=t},setMediaChunkLength:(e,{payload:t})=>{e.mediaChunkLength=t},setSelectedCluster:(e,{payload:t})=>{e.clusterSection.clusterSelected=t},clustersSearchStart:e=>{0===e.clusterSection.offset&&(e.clusterSection.isLoading=!0)},clustersSearchSucceeded:(e,{payload:t})=>{e.clusterSection.clusters=[...e.clusterSection.clusters,...t],e.clusterSection.error=null,e.clusterSection.isLoading=!1},clustersSetOffset:(e,{payload:t})=>{e.clusterSection.offset=t},clustersSetHasMore:(e,{payload:t})=>{e.clusterSection.hasMore=t},clusterSetError:(e,{payload:t})=>{e.clusterSection.error=t,e.clusterSection.isLoading=!1},clusterSetLoading:(e,{payload:t})=>{e.clusterSection.isLoading=t}}}),actions$6=sourceStepSlice.actions;var selectSourceStep_slice=sourceStepSlice.reducer;function toInteger(e){if(null===e||!0===e||!1===e)return NaN;e=Number(e);return 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 toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof 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://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function addDays(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toInteger(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function addMilliseconds(e,t){requiredArgs(2,arguments);var r=toDate(e).getTime(),n=toInteger(t);return new Date(r+n)}var MILLISECONDS_IN_MINUTE=6e4;function getDateMillisecondsPart(e){return e.getTime()%MILLISECONDS_IN_MINUTE}function getTimezoneOffsetInMilliseconds(e){var e=new Date(e.getTime()),t=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);e=0<t?(MILLISECONDS_IN_MINUTE+getDateMillisecondsPart(e))%MILLISECONDS_IN_MINUTE:getDateMillisecondsPart(e);return t*MILLISECONDS_IN_MINUTE+e}function isValid(e){requiredArgs(1,arguments);var t=toDate(e);return!isNaN(t)}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"}};function formatDistance(e,t,r){return r=r||{},e="string"==typeof formatDistanceLocale[e]?formatDistanceLocale[e]:1===t?formatDistanceLocale[e].one:formatDistanceLocale[e].other.replace("{{count}}",t),r.addSuffix?0<r.comparison?"in "+e:e+" ago":e}function buildFormatLongFn(t){return function(e){e=e||{},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"};function formatRelative(e,t,r,n){return formatRelativeLocale[e]}function buildLocalizeFn(s){return function(e,t){var r,t=t||{},n=(t="formatting"===(t.context?String(t.context):"standalone")&&s.formattingValues?(n=s.defaultFormattingWidth||s.defaultWidth,r=t.width?String(t.width):n,s.formattingValues[r]||s.formattingValues[n]):(r=s.defaultWidth,n=t.width?String(t.width):s.defaultWidth,s.values[n]||s.values[r]),s.argumentCallback?s.argumentCallback(e):e);return t[n]}}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"}};function ordinalNumber(e,t){var r=Number(e),e=r%100;if(20<e||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"}var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return Number(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 buildMatchPatternFn(s){return function(e,t){var e=String(e),t=t||{},r=e.match(s.matchPattern);if(!r)return null;var r=r[0],n=e.match(s.parsePattern);if(!n)return null;n=s.valueCallback?s.valueCallback(n[0]):n[0];return{value:n=t.valueCallback?t.valueCallback(n):n,rest:e.slice(r.length)}}}function buildMatchFn(o){return function(e,t){var e=String(e),t=t||{},r=t.width,n=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],n=e.match(n);if(!n)return null;var s=n[0],n=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r="[object Array]"===Object.prototype.toString.call(n)?findIndex(n,function(e){return e.test(s)}):findKey(n,function(e){return e.test(s)});return r=o.valueCallback?o.valueCallback(r):r,{value:r=t.valueCallback?t.valueCallback(r):r,rest:e.slice(s.length)}}}function findKey(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function findIndex(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}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,formatLong:formatLong$1,formatRelative:formatRelative,localize:localize$1,match:match,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale=locale;function subMilliseconds(e,t){return requiredArgs(2,arguments),addMilliseconds(e,-toInteger(t))}function addLeadingZeros(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}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 r=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];default:return"am"===r?"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 r=t.length,e=e.getUTCMilliseconds();return addLeadingZeros(Math.floor(e*Math.pow(10,r-3)),t.length)}},formatters$3=formatters$2,MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getTime(),t=(t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t.getTime());return Math.floor((r-t)/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCDay(),r=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCFullYear(),n=new Date(0),n=(n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0),startOfUTCISOWeek(n)),s=new Date(0),s=(s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0),startOfUTCISOWeek(s));return t.getTime()>=n.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),startOfUTCISOWeek(r)}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 r=t||{},n=r.locale,n=n&&n.options&&n.options.weekStartsOn,n=null==n?0:toInteger(n),n=null==r.weekStartsOn?n:toInteger(r.weekStartsOn);if(!(0<=n&&n<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var r=toDate(e),s=r.getUTCDay(),s=(s<n?7:0)+s-n;return r.setUTCDate(r.getUTCDate()-s),r.setUTCHours(0,0,0,0),r}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var r=toDate(e,t),n=r.getUTCFullYear(),s=t||{},o=s.locale,o=o&&o.options&&o.options.firstWeekContainsDate,o=null==o?1:toInteger(o),o=null==s.firstWeekContainsDate?o:toInteger(s.firstWeekContainsDate);if(!(1<=o&&o<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=new Date(0),s=(s.setUTCFullYear(n+1,0,o),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)),a=new Date(0),o=(a.setUTCFullYear(n,0,o),a.setUTCHours(0,0,0,0),startOfUTCWeek(a,t));return r.getTime()>=s.getTime()?n+1:r.getTime()>=o.getTime()?n:n-1}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var r=t||{},n=r.locale,n=n&&n.options&&n.options.firstWeekContainsDate,n=null==n?1:toInteger(n),n=null==r.firstWeekContainsDate?n:toInteger(r.firstWeekContainsDate),r=getUTCWeekYear(e,t),s=new Date(0);return s.setUTCFullYear(r,0,n),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var r=toDate(e),r=startOfUTCWeek(r,t).getTime()-startOfUTCWeekYear(r,t).getTime();return Math.round(r/MILLISECONDS_IN_WEEK)+1}var dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(e,t,r){var n=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){var n;return"yo"===t?(n=e.getUTCFullYear(),r.ordinalNumber(0<n?n:1-n,{unit:"year"})):formatters$3.y(e,t)},Y:function(e,t,r,n){e=getUTCWeekYear(e,n),n=0<e?e:1-e;return"YY"===t?addLeadingZeros(n%100,2):"Yo"===t?r.ordinalNumber(n,{unit:"year"}):addLeadingZeros(n,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,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return addLeadingZeros(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return addLeadingZeros(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return addLeadingZeros(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){e=getUTCWeek(e,n);return"wo"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},I:function(e,t,r){e=getUTCISOWeek(e);return"Io"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):formatters$3.d(e,t)},D:function(e,t,r){e=getUTCDayOfYear(e);return"Do"===t?r.ordinalNumber(e,{unit:"dayOfYear"}):addLeadingZeros(e,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var s=e.getUTCDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return addLeadingZeros(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var s=e.getUTCDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return addLeadingZeros(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),s=0===n?7:n;switch(t){case"i":return String(s);case"ii":return addLeadingZeros(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var e=e.getUTCHours(),n=12===e?dayPeriodEnum.noon:0===e?dayPeriodEnum.midnight:1<=e/12?"pm":"am";switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var e=e.getUTCHours(),n=17<=e?dayPeriodEnum.evening:12<=e?dayPeriodEnum.afternoon:4<=e?dayPeriodEnum.morning:dayPeriodEnum.night;switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){var n;return"ho"===t?(n=e.getUTCHours()%12,r.ordinalNumber(n=0===n?12:n,{unit:"hour"})):formatters$3.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):formatters$3.H(e,t)},K:function(e,t,r){e=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},k:function(e,t,r){e=e.getUTCHours();return 0===e&&(e=24),"ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):formatters$3.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):formatters$3.s(e,t)},S:function(e,t){return formatters$3.S(e,t)},X:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);default:return formatTimezone(s,":")}},x:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);default:return formatTimezone(s,":")}},O:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},z:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},t:function(e,t,r,n){n=n._originalDate||e;return addLeadingZeros(Math.floor(n.getTime()/1e3),t.length)},T:function(e,t,r,n){return addLeadingZeros((n._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var r=0<e?"-":"+",e=Math.abs(e),n=Math.floor(e/60),e=e%60;if(0==e)return r+String(n);t=t||"";return r+String(n)+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||"",r=0<e?"-":"+",e=Math.abs(e);return r+addLeadingZeros(Math.floor(e/60),2)+t+addLeadingZeros(e%60,2)}var formatters$1=formatters;function dateLongFormatter(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"})}}function timeLongFormatter(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"})}}function dateTimeLongFormatter(e,t){var r,n=e.match(/(P+)(p+)?/),s=n[1],n=n[2];if(!n)return dateLongFormatter(e,t);switch(s){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",dateLongFormatter(s,t)).replace("{{time}}",timeLongFormatter(n,t))}var 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,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(n,s,e){requiredArgs(2,arguments);var t=String(s),o=e||{},a=o.locale||defaultLocale,r=a.options&&a.options.firstWeekContainsDate,r=null==r?1:toInteger(r),r=null==o.firstWeekContainsDate?r:toInteger(o.firstWeekContainsDate);if(!(1<=r&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var i=a.options&&a.options.weekStartsOn,i=null==i?0:toInteger(i),i=null==o.weekStartsOn?i:toInteger(o.weekStartsOn);if(!(0<=i&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var l=toDate(n);if(!isValid(l))throw new RangeError("Invalid time value");var c=subMilliseconds(l,getTimezoneOffsetInMilliseconds(l)),u={firstWeekContainsDate:r,weekStartsOn:i,locale:a,_originalDate:l};return t.match(longFormattingTokensRegExp).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,a.formatLong,u):e}).join("").match(formattingTokensRegExp).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return cleanEscapedString(e);var r=formatters$1[t];if(r)return!o.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(e)&&throwProtectedError(e,s,n),!o.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(e)&&throwProtectedError(e,s,n),r(c,e,a.localize,u);if(t.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("")}function cleanEscapedString(e){return e.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function isAfter(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toDate(t);return r.getTime()>n.getTime()}var wellKnownSymbol$b=wellKnownSymbol$i,TO_STRING_TAG$1=wellKnownSymbol$i("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$8=isCallable$n,classofRaw=classofRaw$1,wellKnownSymbol$a=wellKnownSymbol$i,TO_STRING_TAG=wellKnownSymbol$i("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$8(e.callee)?"Arguments":t},classof$5=classof$6,$String=String,toString$8=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},anObject$9=anObject$f,regexpFlags$1=function(){var e=anObject$9(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$9=fails$l,global$d=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$2=fails$9(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$2||fails$9(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$9(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$2},fails$8=fails$l,global$c=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$8(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$7=fails$l,global$b=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$7(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$c=functionCall,uncurryThis$c=functionUncurryThis,toString$7=toString$8,regexpFlags=regexpFlags$1,stickyHelpers$1=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$c("".charAt),indexOf=uncurryThis$c("".indexOf),replace$3=uncurryThis$c("".replace),stringSlice$5=uncurryThis$c("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$c(nativeExec,e,"a"),call$c(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$3=patchedExec=PATCH?function(e){var t,r,n,s,o,a,i=this,l=getInternalState(i),e=toString$7(e),c=l.raw;if(c)return c.lastIndex=i.lastIndex,d=call$c(patchedExec,c,e),i.lastIndex=c.lastIndex,d;var u=l.groups,c=UNSUPPORTED_Y$1&&i.sticky,d=call$c(regexpFlags,i),l=i.source,p=0,g=e;if(c&&(d=replace$3(d,"y",""),-1===indexOf(d,"g")&&(d+="g"),g=stringSlice$5(e,i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==charAt$3(e,i.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",d)),UPDATES_LAST_INDEX_WRONG&&(r=i.lastIndex),n=call$c(nativeExec,c?t:i,g),c?n?(n.input=stringSlice$5(n.input,p),n[0]=stringSlice$5(n[0],p),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(i.lastIndex=i.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call$c(nativeReplace,n[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n&&u)for(n.groups=o=create(null),s=0;s<u.length;s++)o[(a=u[s])[0]]=n[a[1]];return n}:patchedExec,$$9=_export,exec$3=regexpExec$3,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$3},{exec:exec$3}),functionBindNative),FunctionPrototype=Function.prototype,apply$3=FunctionPrototype.apply,call$b=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$b.bind(apply$3):function(){return call$b.apply(apply$3,arguments)}),uncurryThis$b=functionUncurryThis,defineBuiltIn$3=defineBuiltIn$7,regexpExec$2=regexpExec$3,fails$6=fails$l,wellKnownSymbol$9=wellKnownSymbol$i,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$9("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,n){var a,s=wellKnownSymbol$9(r),i=!fails$6(function(){var e={};return e[s]=function(){return 7},7!=""[r](e)}),o=i&&!fails$6(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});i&&o&&!t||(a=uncurryThis$b(/./[s]),o=e(s,""[r],function(e,t,r,n,s){var e=uncurryThis$b(e),o=t.exec;return o===regexpExec$2||o===RegExpPrototype$2.exec?i&&!s?{done:!0,value:a(t,r,n)}:{done:!0,value:e(r,t,n)}:{done:!1}}),defineBuiltIn$3(String.prototype,r,o[0]),defineBuiltIn$3(RegExpPrototype$2,s,o[1])),n&&createNonEnumerableProperty(RegExpPrototype$2[s],"sham",!0)},isObject$2=isObject$8,classof$4=classofRaw$1,wellKnownSymbol$8=wellKnownSymbol$i,MATCH$1=wellKnownSymbol$i("match"),isRegexp=function(e){var t;return isObject$2(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$4(e))},uncurryThis$a=functionUncurryThis,fails$5=fails$l,isCallable$7=isCallable$n,classof$3=classof$6,getBuiltIn$3=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$a(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$7(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$7(e))return!1;switch(classof$3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$5(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$6=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$6(tryToString$2(e)+" is not a constructor")},anObject$8=anObject$f,aConstructor=aConstructor$1,wellKnownSymbol$7=wellKnownSymbol$i,SPECIES$2=wellKnownSymbol$i("species"),speciesConstructor$2=function(e,t){var e=anObject$8(e).constructor;return void 0===e||null==(e=anObject$8(e)[SPECIES$2])?t:aConstructor(e)},uncurryThis$9=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$6=toString$8,requireObjectCoercible$4=requireObjectCoercible$7,charAt$2=uncurryThis$9("".charAt),charCodeAt=uncurryThis$9("".charCodeAt),stringSlice$4=uncurryThis$9("".slice),createMethod$1=function(s){return function(e,t){var r,e=toString$6(requireObjectCoercible$4(e)),t=toIntegerOrInfinity$1(t),n=e.length;return t<0||n<=t?s?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===n||(n=charCodeAt(e,t+1))<56320||57343<n?s?charAt$2(e,t):r:s?stringSlice$4(e,t,t+2):n-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$1(e,t).length:1)},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$4,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,$Array=Array,max$1=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$1(e),s=toAbsoluteIndex(t,n),o=toAbsoluteIndex(void 0===r?n:r,n),a=$Array(max$1(o-s,0)),i=0;s<o;s++,i++)createProperty(a,i,e[s]);return a.length=i,a},call$a=functionCall,anObject$7=anObject$f,isCallable$6=isCallable$n,classof$2=classofRaw$1,regexpExec$1=regexpExec$3,$TypeError$5=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$6(r))return null!==(r=call$a(r,e,t))&&anObject$7(r),r;if("RegExp"===classof$2(e))return call$a(regexpExec$1,e,t);throw $TypeError$5("RegExp#exec called on incompatible receiver")},apply$2=functionApply,call$9=functionCall,uncurryThis$8=functionUncurryThis,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,isRegExp$1=isRegexp,anObject$6=anObject$f,requireObjectCoercible$3=requireObjectCoercible$7,speciesConstructor$1=speciesConstructor$2,advanceStringIndex$1=advanceStringIndex$2,toLength$1=toLength$3,toString$5=toString$8,getMethod$3=getMethod$5,arraySlice$2=arraySliceSimple,callRegExpExec=regexpExecAbstract,regexpExec=regexpExec$3,stickyHelpers=regexpStickyHelpers,fails$4=fails$l,UNSUPPORTED_Y=regexpStickyHelpers.UNSUPPORTED_Y,MAX_UINT32=4294967295,min$1=Math.min,$push=[].push,exec$1=uncurryThis$8(/./.exec),push$1=uncurryThis$8($push),stringSlice$3=uncurryThis$8("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$4(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),whitespaces$2=(fixRegExpWellKnownSymbolLogic$1("split",function(s,m,f){var h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var r=toString$5(requireObjectCoercible$3(this)),n=void 0===t?MAX_UINT32:t>>>0;if(0===n)return[];if(void 0===e)return[r];if(!isRegExp$1(e))return call$9(m,r,e,n);for(var s,o,a,i=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,t+"g");(s=call$9(regexpExec,c,r))&&!(l<(o=c.lastIndex)&&(push$1(i,stringSlice$3(r,l,s.index)),1<s.length&&s.index<r.length&&apply$2($push,i,arraySlice$2(s,1)),a=s[0].length,l=o,n<=i.length));)c.lastIndex===s.index&&c.lastIndex++;return l===r.length?!a&&exec$1(c,"")||push$1(i,""):push$1(i,stringSlice$3(r,l)),n<i.length?arraySlice$2(i,0,n):i}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:call$9(m,this,e,t)}:m;return[function(e,t){var r=requireObjectCoercible$3(this),n=null==e?void 0:getMethod$3(e,s);return n?call$9(n,e,r,t):call$9(h,toString$5(r),e,t)},function(e,t){var r=anObject$6(this),n=toString$5(e),e=f(h,r,n,t,h!==m);if(e.done)return e.value;var e=speciesConstructor$1(r,RegExp),s=r.unicode,o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),a=new e(UNSUPPORTED_Y?"^(?:"+r.source+")":r,o),i=void 0===t?MAX_UINT32:t>>>0;if(0===i)return[];if(0===n.length)return null===callRegExpExec(a,n)?[n]:[];for(var l=0,c=0,u=[];c<n.length;){a.lastIndex=UNSUPPORTED_Y?0:c;var d,p=callRegExpExec(a,UNSUPPORTED_Y?stringSlice$3(n,c):n);if(null===p||(d=min$1(toLength$1(a.lastIndex+(UNSUPPORTED_Y?c:0)),n.length))===l)c=advanceStringIndex$1(n,c,s);else{if(push$1(u,stringSlice$3(n,l,c)),u.length===i)return u;for(var g=1;g<=p.length-1;g++)if(push$1(u,p[g]),u.length===i)return u;c=l=d}}return push$1(u,stringSlice$3(n,l)),u}]},!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y),"\t\n\v\f\r                 \u2028\u2029\ufeff"),uncurryThis$7=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$7,toString$4=toString$8,whitespaces$1=whitespaces$2,replace$2=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(t){return function(e){e=toString$4(requireObjectCoercible$2(e));return 1&t&&(e=replace$2(e,ltrim,"")),e=2&t?replace$2(e,rtrim,""):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$a=global$o,fails$3=fails$l,uncurryThis$6=functionUncurryThis,toString$3=toString$8,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$a.parseInt,Symbol$1=global$a.Symbol,ITERATOR$3=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec=uncurryThis$6(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$3&&!fails$3(function(){$parseInt$1(Object(ITERATOR$3))}),numberParseInt=FORCED?function(e,t){e=trim(toString$3(e));return $parseInt$1(e,t>>>0||(exec(hex,e)?16:10))}:$parseInt$1,$$8=_export,$parseInt=numberParseInt,uncurryThis$5=(_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt}),functionUncurryThis),toObject=toObject$4,floor=Math.floor,charAt=uncurryThis$5("".charAt),replace$1=uncurryThis$5("".replace),stringSlice$2=uncurryThis$5("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(o,a,i,l,c,e){var u=i+o.length,d=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 r;switch(charAt(t,0)){case"$":return"$";case"&":return o;case"`":return stringSlice$2(a,0,i);case"'":return stringSlice$2(a,u);case"<":r=c[stringSlice$2(t,1,-1)];break;default:var n,s=+t;if(0==s)return e;if(d<s)return 0!==(n=floor(s/10))&&n<=d?void 0===l[n-1]?charAt(t,1):l[n-1]+charAt(t,1):e;r=l[s-1]}return void 0===r?"":r})},apply$1=functionApply,call$8=functionCall,uncurryThis$4=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$2=fails$l,anObject$5=anObject$f,isCallable$5=isCallable$n,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$3,toString$2=toString$8,requireObjectCoercible$1=requireObjectCoercible$7,advanceStringIndex=advanceStringIndex$2,getMethod$2=getMethod$5,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol$6=wellKnownSymbol$i,REPLACE=wellKnownSymbol$i("replace"),max=Math.max,min=Math.min,concat=uncurryThis$4([].concat),push=uncurryThis$4([].push),stringIndexOf$1=uncurryThis$4("".indexOf),stringSlice$1=uncurryThis$4("".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$2(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic("replace",function(e,S,b){var $=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$1(this),n=null==e?void 0:getMethod$2(e,REPLACE);return n?call$8(n,e,r,t):call$8(S,toString$2(r),e,t)},function(e,t){var r=anObject$5(this),n=toString$2(e);if("string"==typeof t&&-1===stringIndexOf$1(t,$)&&-1===stringIndexOf$1(t,"$<")){e=b(S,r,n,t);if(e.done)return e.value}for(var s,o=isCallable$5(t),a=(o||(t=toString$2(t)),r.global),i=(a&&(s=r.unicode,r.lastIndex=0),[]);null!==(d=regExpExec(r,n))&&(push(i,d),a);)""===toString$2(d[0])&&(r.lastIndex=advanceStringIndex(n,toLength(r.lastIndex),s));for(var l="",c=0,u=0;u<i.length;u++){for(var d,p=toString$2((d=i[u])[0]),g=max(min(toIntegerOrInfinity(d.index),n.length),0),m=[],f=1;f<d.length;f++)push(m,maybeToString(d[f]));var h=d.groups,y=o?(y=concat([p],m,g,n),void 0!==h&&push(y,h),toString$2(apply$1(t,void 0,y))):getSubstitution(p,n,g,m,h,t);c<=g&&(l+=stringSlice$1(n,c,g)+y,c=g+p.length)}return l+stringSlice$1(n,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const selectIsWeeklyValid=e=>e.processingCenterIngestion.scheduleStep.weekly.isWeeklyValid,selectWeeklyTimeslots=e=>e.processingCenterIngestion.scheduleStep.weekly.weeklyTimeslots,selectScheduleState=e=>e.processingCenterIngestion.scheduleStep,selectTimezone=e=>e.processingCenterIngestion.scheduleStep.timezone,selectFrequencySchedularState=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular,selectScheduleType=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.scheduleType,selectStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.startDate,selectEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.endDate,selectContinuousStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousStartDate,selectContinuousEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousEndDate,selectFrequency=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequency,selectNoEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.noEndDate,selectHoursInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.hoursInterval,selectDaysInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysInterval,selectDailyTimeslotOne=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotOne,selectDailyTimeslotTwo=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotTwo,selectDaysTimeslot=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysTimeslot,selectFrequencyIsValid=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequencyIsValid,selectSchedulePayload=e=>e.processingCenterIngestion.scheduleStep.schedulePayload,SHARED_TEXT={ingestionJobsWizard:{panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.title",defaultMessage:"Create Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.close",defaultMessage:"Close",description:"Panel close button for the Processing Center Wizard Create Schedule Panel"}),incompleteFieldsMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.incomplete-warning-message",defaultMessage:"Please complete all required fields",description:"Incomplete fields message for the Processing Center Wizard Next Button"}),someFieldsInvalidMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.invalid-fields-warning-message",defaultMessage:"Some fields are not valid",description:"Invalid fields message for the Processing Center Wizard Next Button"}),stepLabels:{selectSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.select-source",defaultMessage:"Select Source",description:"Stepper Title for the Processing Center Wizard Stepper Select Source"}),basicInfo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.basic-info",defaultMessage:"Basic Info",description:"Stepper Title for the Processing Center Wizard Stepper Basic Info"}),schedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.schedule",defaultMessage:"Schedule",description:"Stepper Title for the Processing Center Wizard Stepper Schedule"}),processing:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.processing",defaultMessage:"Processing",description:"Stepper Title for the Processing Center Wizard Stepper Processing"}),contentTemplates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.content-templates",defaultMessage:"Content Templates",description:"Stepper Title for the Processing Center Wizard Stepper Content Templates"}),location:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.location",defaultMessage:"Location",description:"Stepper Title for the Processing Center Wizard Stepper Location"})}},affiliatePanel:{panelHeaders:{addAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.add",defaultMessage:"Add an Affiliate",description:"Panel Title for Add an Affiliated Station"}),editAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.edit",defaultMessage:"Edit Affiliate Schedule",description:"Panel Title for Edit an Affiliated Station Schedule"}),bulkAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.bulk",defaultMessage:"Bulk Import Affiliates",description:"Panel Title for Bulk Add Affiliated Stations"})},tvAdapterText:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.title",defaultMessage:"Affiliated Stations",description:"Title for Affiliated Stations"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.subtitle",defaultMessage:"Assign affiliated stations that also broadcast programming from this ingestion source.",description:"Sub Title for Affiliated Stations"}),addAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.add-affiliate-btn",defaultMessage:"Add Affiliate",description:"Button text for Add Affiliate"}),bulkAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.bulk-add-affiliate-btn",defaultMessage:"Bulk Add Affiliates",description:"Button text for Bulk Add Affiliate"})},controls:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.cancel",defaultMessage:"Cancel",description:"Cancel button label"}),saveAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.save",defaultMessage:"Save Affiliate",description:"Save affiliate button label"}),editAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.edit",defaultMessage:"Edit Affiliate",description:"edit affiliate button label"}),bulkImport:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.bulk-import",defaultMessage:"Bulk Import",description:"Bulk Import button label"})},afilliateTable:{headerId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-id",defaultMessage:"Id",description:"table header Id"}),headerName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-name",defaultMessage:"Name",description:"table header name"}),headerStartDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-startdate",defaultMessage:"Start Date",description:"table header start date"}),headerEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-enddate",defaultMessage:"End Date",description:"table header end date"}),headerEditDelete:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-edit-delete",defaultMessage:"Edit / Delete",description:"table header edit or delete"}),scheduleTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-title-schedule",defaultMessage:"Schedule",description:"header for schedule"})},addAffiliateView:{},editAffiliateView:{},bulkAffiliateView:{}},timezonePicker:{editableCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.editable",defaultMessage:"The schedule will run in this timezone",description:"Caption displayed when the user is able to edit the time zone"}),sourceBasedCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.source-based",defaultMessage:"The timezone is set on the Source and can not be modified",description:"Caption displayed when the time zone is pinned to the source time zone"}),changeButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.change",defaultMessage:"Change",description:"Text on the button used to change the time zone"}),saveButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.save",defaultMessage:"Save",description:"Text on the button used to save time zone changes"})},processing:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.title",defaultMessage:"Processing",description:"Title for the processing section"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.subtitle",defaultMessage:"As data is ingested from this source, each data type will be processed with the selected engines you choose below.",description:"Sub Title for the location section"}),chooseTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.choose-template",defaultMessage:"Choose a Template",description:"Choose template label for the processing section"}),createNewTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.new-template-btn",defaultMessage:"Create a New Template",description:"Create new template button for the processing section"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.error-state",defaultMessage:"Unable to load templates",description:"Error message for the processing section"}),emptyState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.empty-state",defaultMessage:"No templates found",description:"empty state label for the processing section"})},location:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.title",defaultMessage:"Location",description:"Title for the location section of location and permissions"}),chooseLocationDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-folder",defaultMessage:"Choose the Data Center folder location where this content will be stored",description:"Explanation of what the folder selector is for"}),folderSelectorLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-label",defaultMessage:"Folder",description:"Label for the folder selector"}),chooseLocation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-location-button",defaultMessage:"Choose Location",description:"Choose folder"}),chooseHome:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-home-button",defaultMessage:"Choose Home",description:"Choose root folder"}),changeLocationButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.change-location-button",defaultMessage:"Change",description:"Change the location that files will be stored in"}),homeFolderLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.home-folder-label",defaultMessage:"Home",description:"Text displayed when the user hasn't chosen a specific folder"}),folderInputLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-input-label",defaultMessage:"Folder",description:"Label for folder selection"})},permissions:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.title",defaultMessage:"Permissions",description:"Title for the permissions section of location and permissions"}),managePermissionsDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.manage-permissions",defaultMessage:"Manage who can access the content that is imported with this Scheduled Job",description:"Explanation of what permission management is for"})},sourceSelectDefaultMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-default-select",defaultMessage:"Choose a Source",description:"default select text"}),sourceSelectTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-title",defaultMessage:"Select a Source",description:"title text"}),sourceSelectSubTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-subtitle",defaultMessage:"Select the data source for this scheduled job",description:"subtitle text"}),loadingSources:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-loading-sources",defaultMessage:"Loading Sources",description:"Search Filter by Source Schedule, loader message Loading Sources"}),retryButtonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-retry-button",defaultMessage:"Retry",description:"text for button to allow retry of failed api call"}),sourcesErrorMessageText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-error",defaultMessage:"There was an error loading the sources",description:"text for error with source fetching"}),sourcesNotFoundText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-not-found",defaultMessage:"No sources match your search name or source type.",description:"text for no sources found"}),createSourceButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-source",defaultMessage:"Create New Source",description:"button for create new source"}),advancedSettingsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-advanced-settings",defaultMessage:"Advanced Settings",description:"button for advanced settings for source"}),nextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-next-button",defaultMessage:"Next",description:"button for next step"}),cancelButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-cancel-button",defaultMessage:"Cancel",description:"button for cancel"}),backButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-back-button",defaultMessage:"Back",description:"button for back"}),skipButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-skip-button",defaultMessage:"Skip",description:"button for skip"}),createScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-job-button",defaultMessage:"Create Scheduled Job",description:"button for create job"}),frequencySchedular:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-title",defaultMessage:"Schedule",description:"title"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-subtitle",defaultMessage:"How often would you like to import new data from this source?",description:"subtitle"}),radioRecurring:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-recurring",defaultMessage:"Recurring",description:"radio label recurring"}),radioContinuous:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-continuous",defaultMessage:"Continuous",description:"radio label continuous"}),radioOnDemand:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-ondemand",defaultMessage:"On Demand",description:"radio label for on demand"}),errorNoSupportedTypes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-error-not-supported-schedule",defaultMessage:"This adapter does not have any supported schedule types.",description:"error message no supported schedule types"}),messageDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-daily",defaultMessage:"This schedule will run daily at the selected time below.",description:"message for daily selected"}),messageTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-twice-daily",defaultMessage:"This schedule will run twice daily at the selected times below.",description:"message for twice daily selected"}),messageHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-hours",defaultMessage:"Schedule this job to run at an hourly interval between 1 and 24 hours.",description:"message for hours selected"}),messageDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-days",defaultMessage:"Schedule this job to run at a daily interval that will start at the selected time below.",description:"message for days selected"}),messageMediaChunk:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk",defaultMessage:"Ingested content will have a set duration of",description:"message for media chunk"}),messageMediaChunkMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk-minutes",defaultMessage:"minutes",description:"message for media chunk minutes"}),changeMediaChunkButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-button-media-chunk-minutes",defaultMessage:"CHANGE",description:"button for media chunk minutes"}),textBetweenDates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-text-between-dates",defaultMessage:"to",description:"text between date selectors"}),startDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-start-date",defaultMessage:"Start Date",description:"label for start date"}),endDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-end-date",defaultMessage:"End Date",description:"label for end date"}),labelHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-hours",defaultMessage:"Hours",description:"label for Hours"}),labelDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-days",defaultMessage:"Days",description:"label for days"}),labelDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-daily",defaultMessage:"Daily",description:"label for daily"}),labelTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-twice-daily",defaultMessage:"Twice Daily",description:"label for twice daily"}),labelWeekly:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-weekly",defaultMessage:"Weekly",description:"label for weekly"}),labelNoEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-no-end",defaultMessage:"No End Date",description:"label for no end date"}),inputLabelFrequency:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-frequency",defaultMessage:"Frequency",description:"label for frequency input"}),inputLabelInterval:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-interval",defaultMessage:"Interval",description:"label for interval selector"}),labelMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"oprocessing-panel-ingestion-schedule-step-freq-minutes",defaultMessage:"Minutes",description:"text for minutes"}),labelMediaChunkLength:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-media-chunk",defaultMessage:"Media Chunk Length",description:"label for media chunk selector"}),onDemandMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-message",defaultMessage:"Data import will begin once an external event is triggered",description:"message for on demand"}),learnMore:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-learn-more",defaultMessage:"Learn More",description:"learn more link"})}},useStyles$8=makeStyles()(e=>({onDemandContainer:{background:"#FAFAFA",display:"flex",borderRadius:"4px",flexDirection:"row",justifyContent:"space-around",alignItems:"center",width:"464px",height:"60px",marginTop:"20px"},ingestionRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"650px",marginTop:"20px"},spaceAbove:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"660px",marginTop:"20px"},textBetweenDateContainer:{width:"auto",marginLeft:"15px",marginRight:"15px"},frequencyMessageContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginLeft:"15px",height:"55px",width:"auto"},daysHoursMessageContainer:{marginTop:" 15px",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"auto"},daysHoursMessage:{fontSize:"14px",color:"#000"},chunkButton:{fontSize:"14px",marginTop:"2px"},messageContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},frequencyMessage:{width:"100%"},intervalSelectContainer:{marginLeft:"10px",width:"75px"},frequencySelectContainer:{width:"167px"},noEndContainer:{marginLeft:"15px"},radioGroupContainer:{width:"100%"},timeslotTopMargin:{marginTop:"8px"},timeslotMenu:{marginTop:"20px",width:"260px !important"},timeslotStartMenu:{marginTop:"20px",display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",width:"124px !important",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}}})),useStyles$7=makeStyles()(e=>({container:{display:"flex",flexDirection:"column",gap:"20px"},dayBubblesContainer:{display:"flex",gap:"10px"},dayBubble:{height:"40px",width:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",fontWeight:"bold",cursor:"pointer",userSelect:"none",transition:"all 0.25s ease-in-out","&.disabled:active":{opacity:.5},"&.enabled:active":{opacity:.5},"&.disabled:hover":{backgroundColor:"rgba(24,113,232,0.2)"},"&.enabled:hover":{backgroundColor:"rgba(24,113,232,0.8)"},"&.enabled":{backgroundColor:"#1871E8",color:"#fff"},"&.disabled":{backgroundColor:"#F2F3F4",color:"#555F7C"}},timeslotsWidgetContainer:{display:"flex",gap:"15px",flexDirection:"column",width:"100%",overflowY:"scroll"},timeslotRow:{display:"flex",alignItems:"flex-start",gap:"10px"},timeslotDayLabel:{width:"15%",paddingTop:"5px"},timeslotList:{display:"flex",flexDirection:"column",gap:"15px"},timeslotMenu:{display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}},timeslotDelete:{position:"absolute",top:0,right:"-60px",opacity:0,transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},inputTime:{background:"transparent",border:"none",fontFamily:"sans-serif",padding:"8px 0px",outline:"none!important",color:"#2A323C",fontSize:"15px"},rowActions:{display:"flex",alignItems:"center",gap:"15px",opacity:0,paddingLeft:"10px",transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},rowDivider:{width:"1px",display:"flex",backgroundColor:"#979797",height:"30px"},rowCopyToAll:{display:"flex",alignItems:"center",gap:"10px"}})),WEEKLY_SCHEDULER_SHARED_TEXT={ui:{invalidTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.invalid-time-slot",defaultMessage:"This time window is not valid",description:"Processing Center Wizard Schedule Step, UI tooltip for invalid time slot"}),deleteTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.delete-time-slot",defaultMessage:"Delete time",description:"Processing Center Wizard Schedule Step, UI tooltip for delete time"}),addTimeWindow:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.add-time-window",defaultMessage:"Add time window",description:"Processing Center Wizard Schedule Step, UI tooltip for add time window"}),copyTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copy-time-to-all",defaultMessage:"Copy time to all",description:"Processing Center Wizard Schedule Step, UI text for copy time to all"}),copiedTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copied-time-to-all",defaultMessage:"Copied times",description:"Processing Center Wizard Schedule Step, UI text for copied times to all"}),replaceAllDayTimes:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.replace-all-day-times",defaultMessage:"This will replace all days selected time",description:"Processing Center Wizard Schedule Step, UI tooltip for replace all days times"}),changeTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.change-time",defaultMessage:"Change Time",description:"Processing Center Wizard Schedule Step, UI Text for change time"}),chooseLaterTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-later-time",defaultMessage:"Please select a later time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose later time"}),chooseEarlierTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-earlier-time",defaultMessage:"Please select an earlier time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose earlier time"})},days:{Su:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.sunday",defaultMessage:"Sunday",description:"Processing Center Wizard Schedule Step, day label for Sunday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.sunday",defaultMessage:"Add Sunday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable Sunday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.sunday",defaultMessage:"Remove all Sunday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable Sunday"})},M:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.monday",defaultMessage:"Monday",description:"Processing Center Wizard Schedule Step, day label for Monday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.monday",defaultMessage:"Add Monday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable monday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.monday",defaultMessage:"Remove all Monday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable monday"})},Tu:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.tuesday",defaultMessage:"Tuesday",description:"Processing Center Wizard Schedule Step, day label for Tuesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.tuesday",defaultMessage:"Add Tuesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable tuesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.tuesday",defaultMessage:"Remove all Tuesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable tuesday"})},W:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.wednesday",defaultMessage:"Wednesday",description:"Processing Center Wizard Schedule Step, day label for wednesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.wednesday",defaultMessage:"Add Wednesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable wednesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.wednesday",defaultMessage:"Remove all Wednesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable wednesday"})},Th:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.thursday",defaultMessage:"Thursday",description:"Processing Center Wizard Schedule Step, day label for Thursday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.thursday",defaultMessage:"Add Thursday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable thursday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.thursday",defaultMessage:"Remove all Thursday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable thursday"})},F:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.friday",defaultMessage:"Friday",description:"Processing Center Wizard Schedule Step, day label for Friday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.friday",defaultMessage:"Add Friday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable friday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.friday",defaultMessage:"Remove all Friday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable friday"})},Sa:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.saturday",defaultMessage:"Saturday",description:"Processing Center Wizard Schedule Step, day label for Saturday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.saturday",defaultMessage:"Add Saturday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable saturday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.saturday",defaultMessage:"Remove all Saturday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable saturday"})}}},TimeDropdown=({disabled:e,time:t,onChange:r,min:n,max:s,showTooltip:o})=>{var a=useStyles$7()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:o&&!e?WEEKLY_SCHEDULER_SHARED_TEXT.ui.changeTime:""},{children:jsxRuntime.exports.jsx("input",{disabled:e,"data-testid":"pc-wizard-schedule-weekly-timeslot",value:t,name:s?"start":"end",min:n||void 0,max:s||void 0,className:a.inputTime,type:"time",onChange:e=>{var{value:e,name:t}=e.target;r(e,t)}})}))})},TimeStartEndField=({timeslot:e,showDelete:t,day:n,onDelete:r,onChangeTime:s,disabled:o})=>{var a=useStyles$7()["classes"];const{id:i,start:l,end:c,isValid:u}=e;var e=a.timeslotMenu+" "+(u?"":"is-invalid"),d=(e,t)=>{let r;r="start"===t?createTimeslot(e,c,i,validateTimeWindow(e,c),!1):createTimeslot(l,e,i,validateTimeWindow(l,e),!1),s(r,i,n)};return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:u?"":WEEKLY_SCHEDULER_SHARED_TEXT.ui.invalidTimeslot},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e},{children:[jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:l,onChange:d,max:c,showTooltip:u}),jsxRuntime.exports.jsx("span",{children:"to"}),jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:c,onChange:d,min:l,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:()=>{n&&r&&r(n,i)},"data-testid":"pc-wizard-schedule-weekly-timeslot-button-delete"},{children:jsxRuntime.exports.jsx(Delete,{})}))}))}))]}))}))},selectSearchTerm=e=>e.processingCenterIngestion.sourceStep.sourceSearchTerm||"",selectSourceTypeId=e=>e.processingCenterIngestion.sourceStep.sourceTypeId||"",selectSourceSelected=e=>e.processingCenterIngestion.sourceStep.sourceSelected||null,selectOffset=e=>e.processingCenterIngestion.sourceStep.offset,selectError=e=>e.processingCenterIngestion.sourceStep.error,selectIsLoading=e=>e.processingCenterIngestion.sourceStep.isLoading,selectHasMore=e=>e.processingCenterIngestion.sourceStep.hasMore,selectSearchedSources=e=>e.processingCenterIngestion.sourceStep.searchedSources||[],selectMediaChunkLength=e=>e.processingCenterIngestion.sourceStep.mediaChunkLength,selectClusterSelected=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusterSelected,selectClustersError=e=>e.processingCenterIngestion.sourceStep.clusterSection.error,selectClustersIsLoading=e=>e.processingCenterIngestion.sourceStep.clusterSection.isLoading,selectClustersOffset=e=>e.processingCenterIngestion.sourceStep.clusterSection.offset,selectClusters=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusters||[],selectIsAffiliateSearch=e=>e.processingCenterIngestion.sourceStep.isAffiliateSearch,Frequency={Hours:"Hours",Days:"Days",Daily:"Daily",TwiceDaily:"TwiceDaily",Weekly:"Weekly"},podcastAdapterId="a725de38-f538-4c4a-b835-b0bd4ab1a255",FrequencySchedular=({activeEngine:e})=>{const t=useStyles$8()["classes"],r=useDispatch();var n=useSelector(selectMediaChunkLength),s=Number(useSelector(selectHoursInterval)),o=Number(useSelector(selectDaysInterval));const a=useSelector(selectDailyTimeslotOne),i=useSelector(selectDailyTimeslotTwo);var l=useSelector(selectDaysTimeslot),c=useSelector(selectScheduleType),u=useSelector(selectStartDate),d=useSelector(selectEndDate),p=useSelector(selectContinuousStartDate),g=useSelector(selectContinuousEndDate);const m=useSelector(selectFrequency);var f=useSelector(selectNoEndDate);const h=useSelector(selectTimezone),y=useSelector(selectFrequencySchedularState);RunMode.Recurring,RunMode.Continuous,RunMode.Once,RunMode.Now;e=e.id;react.exports.useEffect(()=>{r(actions$5.setFrequencyIsValid(validateFrequencyScheduler(y)))},[y]),react.exports.useEffect(()=>{var e;m===Frequency.Daily&&(e=generateDailyTimeslots(a),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,h)),r(actions$5.setDailyScheduleParts(e)))},[a,h,m]),react.exports.useEffect(()=>{var e;m===Frequency.TwiceDaily&&(e=generateDailyTimeslots(a,i),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,h)),r(actions$5.setTwiceDailyScheduleParts(e)))},[a,i,h,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;r(actions$5.resetFrequencyState()),r(actions$5.setScheduleType(e))}},{children:[jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-recurring",value:RunMode.Recurring,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioRecurring()}),jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-continuous",value:RunMode.Continuous,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioContinuous()})]}))})})]}),!1,c===RunMode.Recurring&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:u,onChange:e=>{e=e.target.value;r(actions$5.setStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!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:d,onChange:e=>{e=e.target.value;r(actions$5.setEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!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;r(actions$5.setNoEndDate(e))}}),label:SHARED_TEXT.frequencySchedular.labelNoEndDate()})}))})]})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({className:t.frequencySelectContainer},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({required:!0,shrink:!0,id:"frequency-label"},{children:SHARED_TEXT.frequencySchedular.inputLabelFrequency()})),jsxRuntime.exports.jsxs(Select,Object.assign({"data-testid":"ingestion-job-frequency-select-frequency",required:!0,labelId:"frequency-label",id:"frequency",value:m,label:SHARED_TEXT.frequencySchedular.inputLabelFrequency(),displayEmpty:!0,onChange:e=>{e=e.target.value;r(actions$5.setFrequency(e)),r(actions$5.resetFrequencyFields())}},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-hours",value:Frequency.Hours},{children:SHARED_TEXT.frequencySchedular.labelHours()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-days",value:Frequency.Days},{children:SHARED_TEXT.frequencySchedular.labelDays()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-daily",value:Frequency.Daily},{children:SHARED_TEXT.frequencySchedular.labelDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-twice-daily",value:Frequency.TwiceDaily},{children:SHARED_TEXT.frequencySchedular.labelTwiceDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-weekly",value:Frequency.Weekly},{children:SHARED_TEXT.frequencySchedular.labelWeekly()}))]}))]}))}),m===Frequency.Hours&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-hours",label:SHARED_TEXT.frequencySchedular.inputLabelInterval(),type:"number",InputLabelProps:{shrink:!0},value:s,onChange:e=>{e=Number(e.target.value);24<e||e<1||r(actions$5.setHoursInterval(e))}})}))}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-days",id:"outlined-number",label:"Interval",type:"number",InputLabelProps:{shrink:!0},value:o,onChange:e=>{e=Number(e.target.value);365<e||e<1||r(actions$5.setDaysInterval(e))}})}))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.frequencyMessageContainer},{children:m===Frequency.Daily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDaily()})):m===Frequency.TwiceDaily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-twice-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageTwiceDaily()})):m===Frequency.Hours?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-hours",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageHours()})):m===Frequency.Days?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-days",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDays()})):null}))]})),(m===Frequency.Daily||m===Frequency.TwiceDaily)&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot1",timeslot:a,onChangeTime:e=>{r(actions$5.setDailyTimeslotOne(e))}})})),m===Frequency.TwiceDaily&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot2",timeslot:i,onChangeTime:e=>{r(actions$5.setDailyTimeslotTwo(e))}})}))]}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotStartMenu},{children:jsxRuntime.exports.jsx(TimeDropdown,{"data-testid":"ingestion-job-frequency-days-start-time",time:l,onChange:e=>{r(actions$5.setDaysTimeslot(e))},max:"endTime",showTooltip:!1})})),(m===Frequency.Hours||m===Frequency.Days)&&podcastAdapterId!==e&&jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"ingestion-job-frequency-message-media-chunk",className:t.daysHoursMessageContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunk()})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:t.daysHoursMessage,sx:{fontWeight:"bold"}},{children:[" ",n," "]})),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:()=>{r(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;r(actions$5.setContinuousStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-end",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:g,onChange:e=>{e=e.target.value;r(actions$5.setContinuousEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})})]}))]}))},getUTCDate=(e,t)=>{console.log(e);e=getTimezoneOffset(e),console.log("offset",e),console.log("date:",t),t+=e;return new Date(t).toISOString()},getTimezoneOffset=e=>{try{const t=(new Date).toLocaleTimeString("en-US",{timeZone:e,timeZoneName:"longOffset"}),r=t.split(" ").pop();return null===r||void 0===r?void 0:r.replace("GMT","")}catch(e){return console.error("The timezone could not be found - schedule will set in UTC time"),"00:00"}},generateDailyTimeslots=(e,t)=>{const r={};for(const n of DAYS.ids)r[n]=[e],t&&r[n].push(t);return r},validateStartAndEndTime=(e,t,r)=>!(!r||!isAfter(new Date(e),new Date(t))),validateFrequencyScheduler=e=>{if(e.scheduleType===RunMode.Once)return!0;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=>{const t={runMode:e.frequencySchedular.scheduleType};var r;return e.frequencySchedular.scheduleType===RunMode.Recurring&&(r=e.frequencySchedular.startDate+"T00:00",t.startDateTime=getUTCDate(e.timezone,r),e.frequencySchedular.noEndDate||(r=e.frequencySchedular.endDate+"T23:59",t.stopDateTime=getUTCDate(e.timezone,r)),e.frequencySchedular.frequency===Frequency.Days&&(r=e.frequencySchedular.daysTimeslot+getTimezoneOffset(e.timezone),t.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.daysInterval,startTime:r}]),e.frequencySchedular.frequency===Frequency.Hours&&(t.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.hoursInterval}]),e.frequencySchedular.frequency===Frequency.Daily&&(t.weeklyScheduleParts=e.frequencySchedular.dailyScheduleParts),e.frequencySchedular.frequency===Frequency.TwiceDaily&&(t.weeklyScheduleParts=e.frequencySchedular.twiceDailyScheduleParts),e.frequencySchedular.frequency===Frequency.Weekly&&(t.weeklyScheduleParts=e.weekly.weeklyScheduleParts)),e.frequencySchedular.scheduleType===RunMode.Continuous&&(t.startDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousStartDate),t.stopDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousEndDate)),t},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 r of e[t])if(!r.isValid)return!1;return!0},DEFAULT_TIMESLOT_TIMES={start:"09:00",end:"17:00"},createTimeslot=(e,t,r,n,s)=>({start:e,end:t,id:r,isValid:n,isConflict:s}),DAYS={labels:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ids:["Su","M","Tu","W","Th","F","Sa"]},getEnabledDays=e=>{const t=[];for(const r of Object.keys(e))e[r].length&&t.push(r);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)=>{const r=[];for(const i of Object.keys(e)){var n=DAYS.labels[DAYS.ids.indexOf(i)];for(const l of e[i]){var{start:s,end:o,isValid:a}=l,s={scheduledDay:n,startTime:s+getTimezoneOffset(t),stopTime:o+getTimezoneOffset(t)};a&&r.push(s)}}return r},namespace$5="scheduleStep",RunMode={Continuous:"Continuous",Recurring:"Recurring",Once:"Once",Now:"Now"},initialState$4={timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,frequencySchedular:{scheduleType:RunMode.Recurring,startDate:format(new Date,"yyyy-MM-dd"),endDate:format(addDays(new Date,1),"yyyy-MM-dd"),continuousStartDate:(new Date).toISOString().slice(0,16),continuousEndDate:addDays(new Date,1).toISOString().slice(0,16),hoursInterval:1,daysInterval:1,frequency:"Weekly",daysTimeslot:"09:00",dailyTimeslotOne:{id:"timeslotOne",start:"09:00",end:"11:00",isConflict:!1,isValid:!0},dailyTimeslotTwo:{id:"timeslotTwo",start:"13:00",end:"15:00",isConflict:!1,isValid:!0},noEndDate:!0,dailyScheduleParts:[],twiceDailyScheduleParts:[],frequencyIsValid:!0},weekly:{isWeeklyValid:!0,weeklyTimeslots:{Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},weeklyScheduleParts:[]},schedulePayload:{runMode:"",startDateTime:""}},scheduleStepSlice=createSlice({name:"scheduleStep",initialState:initialState$4,reducers:{setTimezone:(e,{payload:t})=>{e.timezone=t},setIsWeeklyValid:(e,{payload:t})=>{e.weekly.isWeeklyValid=t},setWeeklyTimeslots:(e,t)=>{t=t.payload;e.weekly.weeklyTimeslots=t},setWeeklyScheduleParts:(e,t)=>{t=t.payload;e.weekly.weeklyScheduleParts=t},clearWeeklyScheduleParts:e=>{e.weekly.weeklyScheduleParts=[]},setDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.dailyScheduleParts=t},setTwiceDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.twiceDailyScheduleParts=t},resetFrequencyState:e=>{e.frequencySchedular=initialState$4.frequencySchedular},resetFrequencyFields:e=>{e.frequencySchedular.dailyTimeslotOne=initialState$4.frequencySchedular.dailyTimeslotOne,e.frequencySchedular.dailyTimeslotTwo=initialState$4.frequencySchedular.dailyTimeslotTwo,e.frequencySchedular.hoursInterval=initialState$4.frequencySchedular.hoursInterval,e.frequencySchedular.daysInterval=initialState$4.frequencySchedular.daysInterval,e.frequencySchedular.daysTimeslot=initialState$4.frequencySchedular.daysTimeslot,e.frequencySchedular.dailyScheduleParts=initialState$4.frequencySchedular.dailyScheduleParts,e.frequencySchedular.twiceDailyScheduleParts=initialState$4.frequencySchedular.twiceDailyScheduleParts},setScheduleType:(e,{payload:t})=>{e.frequencySchedular.scheduleType=t},setStartDate:(e,{payload:t})=>{e.frequencySchedular.startDate=t},setEndDate:(e,{payload:t})=>{e.frequencySchedular.endDate=t},setContinuousStartDate:(e,{payload:t})=>{e.frequencySchedular.continuousStartDate=t},setContinuousEndDate:(e,{payload:t})=>{e.frequencySchedular.continuousEndDate=t},setFrequency:(e,{payload:t})=>{e.frequencySchedular.frequency=t},setNoEndDate:(e,{payload:t})=>{e.frequencySchedular.noEndDate=t},setHoursInterval:(e,{payload:t})=>{e.frequencySchedular.hoursInterval=t},setDaysInterval:(e,{payload:t})=>{e.frequencySchedular.daysInterval=t},setDailyTimeslotOne:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotOne=t},setDailyTimeslotTwo:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotTwo=t},setDaysTimeslot:(e,{payload:t})=>{e.frequencySchedular.daysTimeslot=t},setFrequencyIsValid:(e,{payload:t})=>{e.frequencySchedular.frequencyIsValid=t},setSchedulePayload:(e,{payload:t})=>{e.schedulePayload=t}}}),actions$5=scheduleStepSlice.actions;var scheduleStep_slice=scheduleStepSlice.reducer;const namespace$4="basicInfoStep",initialState$3={scheduleName:"",sourceDetails:{},error:null,isLoading:!1,isInvalidFields:!1,programs:[],basicInfoMeta:{affiliates:{}}},basicInfoSlice=createSlice({name:"basicInfoStep",initialState:initialState$3,reducers:{getProgramsStart:e=>{e.isLoading=!0},setScheduleName:(e,t)=>{t=t.payload;e.scheduleName=t},setSourceDetails:(e,t)=>{t=t.payload;e.sourceDetails=t},setPrograms:(e,t)=>{t=t.payload;e.programs=t,e.isLoading=!1},setError:(e,{payload:t})=>{e.error=t},setBasicInfoMeta:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),e.basicInfoMeta[null==t?void 0:t.key]=e.basicInfoMeta[null==t?void 0:t.key]||null,e.basicInfoMeta[null==t?void 0:t.key]=(null==t?void 0:t.meta)||null},setInvalidFields:(e,{payload:t})=>{e.isInvalidFields=t},addEditAffiliate:(e,{payload:t})=>{var r=t["source"];e.basicInfoMeta&&(e.basicInfoMeta.affiliates[r.id]=t)},deleteAffiliate:(e,{payload:t})=>{if(e.basicInfoMeta){const r=lodash.exports.cloneDeep(e.basicInfoMeta.affiliates);delete r[t],e.basicInfoMeta.affiliates=r}},setImage:(e,{})=>{},deleteImageUrl:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),delete e.basicInfoMeta[null==t?void 0:t.key]}}}),actions$4=basicInfoSlice.actions;var basicInfoStep_slice=basicInfoSlice.reducer;const namespace$3="processingStep",initialState$2={dagTemplateId:void 0,loadingStatus:LoadingStatus.Idle,allDagTemplates:[],offset:0,hasMore:!0},processingSlice=createSlice({name:"processingStep",initialState:initialState$2,reducers:{fetchDagTemplatesStart:e=>{e.loadingStatus=LoadingStatus.Pending},fetchDagTemplatesSucceeded:(e,t)=>{e.loadingStatus=LoadingStatus.Complete,e.allDagTemplates=[...e.allDagTemplates,...t.payload]},fetchDagTemplatesFailed:e=>{e.loadingStatus=LoadingStatus.Failed},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setDagTemplateId:(e,t)=>{t=t.payload;e.dagTemplateId=t},clearDagTemplateId:e=>{e.dagTemplateId=void 0}}}),actions$3=processingSlice.actions;var processingStep_slice=processingSlice.reducer;const namespace$2="location",initialState$1={selectedFolderId:void 0},locationSlice=createSlice({name:"location",initialState:initialState$1,reducers:{setSelectedFolderId:(e,{payload:t})=>{e.selectedFolderId=t}}}),actions$2=locationSlice.actions;var location_slice=locationSlice.reducer;const namespace$1="permissions",initialState={permissionsPayload:void 0},permissionsSlice=createSlice({name:"permissions",initialState:initialState,reducers:{setPermissionsPayload:(e,{payload:t})=>{e.permissionsPayload=t}}}),actions$1=permissionsSlice.actions;var permissions_slice=permissionsSlice.reducer;const selectSelectedFolderId=e=>e[SLICE_NAME][namespace$2].selectedFolderId;var locationSelectors=Object.freeze({__proto__:null,selectSelectedFolderId:selectSelectedFolderId});const selectPermissionsPayload=e=>e[SLICE_NAME][namespace$1].permissionsPayload;var permissionsSelectors=Object.freeze({__proto__:null,selectPermissionsPayload:selectPermissionsPayload});const selectors={location:locationSelectors,permissions:permissionsSelectors},namespace=SLICE_NAME,actions={[namespace$8]:actions$8,[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$8]:uiState,[namespace$7]:ingestionJobsWizard_slice,[namespace$6]:selectSourceStep_slice,[namespace$5]:scheduleStep_slice,[namespace$4]:basicInfoStep_slice,[namespace$3]:processingStep_slice,[namespace$2]:location_slice,[namespace$1]:permissions_slice}),selectUIStateStatus=e=>e[namespace].uiState.status,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]]);return r}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function s(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(n,s)}o((l=l.apply(e,a||[])).next())})}function getSourcesBySearchTerm(t,r=0,n,s,o,a){return __awaiter(this,void 0,void 0,function*(){var e="getSourcesSearch";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getSourcesSearch($sourceTypeIds: [ID!], $offset: Int, $name: String, $limit: Int, $includePublic: Boolean ){\n sources(\n sourceTypeIds: $sourceTypeIds,\n offset: $offset,\n limit: $limit,\n name: $name,\n includePublic: $includePublic,\n permission: owner,\n nameMatch: contains,\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n sourceTypeId\n thumbnailUrl\n createdDateTime\n modifiedDateTime\n permission,\n details,\n sourceType {\n name,\n sourceSchema {\n definition\n }\n }\n }\n }\n }\n ",operationName:e,variables:{sourceTypeIds:s,name:n,offset:r,limit:o,includePublic:a}},t))).sources})}function getClusters(t,r=0,n){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:r,limit:n}},t))).clusters})}function*sourcesSearchTermSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectOffset),r=yield select(selectSourceTypeId),n=yield select(selectSearchTerm),s=yield select(selectIsAffiliateSearch),o=yield call$k(getSourcesBySearchTerm,e,t,n,r,30,s);yield put(actions$6.sourcesSearchSucceeded(o.records)),30===o.count?yield put(actions$6.setHasMore(!0)):yield put(actions$6.setHasMore(!1)),yield put(actions$6.setOffset(t+30))}catch(e){yield put(actions$6.setError(e))}}function*clusterSearchSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectClustersOffset),r=yield call$k(getClusters,e,t,30);if(yield put(actions$6.clustersSearchSucceeded(r.records)),30===r.count)yield put(actions$6.clustersSetHasMore(!0)),yield put(actions$6.clustersSetOffset(t+30)),yield put(actions$6.clustersSearchStart());else{const s=yield select(selectClusters);var n=s.map(e=>e.default).indexOf(!0);(yield select(selectClusterSelected))||(yield put(actions$6.setSelectedCluster(s[n]||null))),yield put(actions$6.clustersSetOffset(t+30)),yield put(actions$6.clustersSetHasMore(!1))}}catch(e){yield put(actions$6.clusterSetError(e))}}function*getSourcesSearchTermWatcher(){yield takeLatest$1(actions$6.sourcesSearchStart.type,sourcesSearchTermSaga)}function*getClusterSearchWatcher(){yield takeLatest$1(actions$6.clustersSearchStart.type,clusterSearchSaga)}function getDagTemplates(t,r=0,n){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:r,limit:n}},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),r=yield select(selectDagTemplatesOffset),n=yield call$k(getDagTemplates,t,r,100);yield put(actions$3.fetchDagTemplatesSucceeded(n.records)),100===(null==(e=null==n?void 0:n.records)?void 0:e.length)?yield put(actions$3.setHasMore(!0)):yield put(actions$3.setHasMore(!1)),yield put(actions$3.setOffset(r+100))}catch(e){yield put(actions$3.fetchDagTemplatesFailed())}}function*fetchDagTemplatesWatcher(){yield takeLatest$1(actions$3.fetchDagTemplatesStart.type,fetchDagTemplatesSaga)}var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace,stringSlice,call$7=functionCall,hasOwn$2=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn$2(e,"flags")||!isPrototypeOf$3(RegExpPrototype$1,e)?t:call$7(regExpFlags,e)},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn$2=defineBuiltIn$7,anObject$4=anObject$f,$toString=toString$8,fails$1=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$1(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME&&n$ToString.name!=TO_STRING,$$7=((NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$2(RegExp.prototype,TO_STRING,function(){var e=anObject$4(this);return"/"+$toString(e.source)+"/"+$toString(getRegExpFlags(e))},{unsafe:!0}),_export),DESCRIPTORS$1=descriptors,global$9=global$o,uncurryThis$3=functionUncurryThis,hasOwn$1=hasOwnProperty_1,isCallable$4=isCallable$n,isPrototypeOf$2=objectIsPrototypeOf,toString$1=toString$8,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$9.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function getPrograms(t,r){var n;return __awaiter(this,void 0,void 0,function*(){var e="getPrograms",e=yield baseGraphQLApiWithError(Object.assign({query:`
1
+ import{bX as createSvgIcon,j as jsxRuntime,H as createSlice,m as makeStyles,F as FormattedMessage,p as lodash,c2 as combineReducers,c3 as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,i as useDispatch,bu as CacheProvider,bv as muiCache,c5 as AIWareThemeProvider,K as DynamicModuleLoader,A as AIWareIntlProvider,k as useSelector,r as react,B as Box,v as FormControl,w as TextField,eC as InputLabel,aS as Select,ar as Button,ac as Skeleton,aT as MenuItem,T as Typography,a2 as all,a8 as Tooltip,a9 as IconButton,bS as Hide,f7 as selectIsOLPEnabled,cd as unmountPanel,ch as mountPanel,cg as hidePanel,L as LoadingButton,a7 as Divider$1,aw as CircularProgress,bI as RadioGroup,ao as FormControlLabel,bV as Radio,ap as Checkbox,ad as takeLatest$1,ag as select,ai as call$k,af as put,M as preferredLanguageSelector,cj as userSelector,bT as showMessage,bU as MessageSeverity,b1 as AIWareFormatMessage,fu as CheckCircle,cu as baseGraphQLApiWithError}from"./js-core.esm.js";import{g as getDataCenterBrowseModule,s as selectors$1,a as actions$9}from"./js-core.esm42.js";import{g as getProcessingCenterContentTemplatesModule,s as selectContentTemplatesToSave}from"./js-core.esm64.js";import"./js-core.esm44.js";import{F as FixedSizeList}from"./js-core.esm29.js";import{I as InfiniteLoader}from"./js-core.esm46.js";import{d as default_1}from"./js-core.esm8.js";import{d as debounce_1}from"./js-core.esm45.js";import{v as v4}from"./js-core.esm48.js";import{A as Autocomplete}from"./js-core.esm21.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm51.js";import{S as Search}from"./js-core.esm10.js";import{D as Delete}from"./js-core.esm65.js";import{C as ContentCopy}from"./js-core.esm49.js";var match$2,version,store,wmget,wmhas,wmset,set$1,get,has,STATE,LoadingStatus,AddCircleOutline=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),FolderOpen=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen"),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$o=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$l=function(e){try{return!!e()}catch(e){return!0}},fails$k=fails$l,descriptors=!fails$l(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$j=fails$l,functionBindNative=!fails$l(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$j=Function.prototype.call,functionCall=NATIVE_BIND$3?call$j.bind(call$j):function(){return call$j.apply(call$j,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$4=(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$i=FunctionPrototype$2.call,uncurryThis$o=NATIVE_BIND$2&&bind$5.bind(call$i,call$i),functionUncurryThis=NATIVE_BIND$2?function(e){return e&&uncurryThis$o(e)}:function(e){return e&&function(){return call$i.apply(e,arguments)}},uncurryThis$n=functionUncurryThis,toString$a=uncurryThis$n({}.toString),stringSlice$6=uncurryThis$n("".slice),classofRaw$1=function(e){return stringSlice$6(toString$a(e),8,-1)},uncurryThis$m=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$7=function(e){if(null==e)throw $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$6=requireObjectCoercible$7,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$6(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$l=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$5=function(e,t){e=e[t];return null==e?void 0:aCallable$6(e)},call$h=functionCall,isCallable$i=isCallable$n,isObject$7=isObject$8,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$i(r=e.toString)&&!isObject$7(n=call$h(r,e)))return n;if(isCallable$i(r=e.valueOf)&&!isObject$7(n=call$h(r,e)))return n;if("string"!==t&&isCallable$i(r=e.toString)&&!isObject$7(n=call$h(r,e)))return n;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,r){try{defineProperty$6(global$l,t,{value:r,configurable:!0,writable:!0})}catch(e){global$l[t]=r}return r},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$5=((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$7),$Object$2=Object,toObject$4=function(e){return $Object$2(requireObjectCoercible$5(e))},uncurryThis$k=functionUncurryThis,toObject$3=toObject$4,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$3(e),t)},uncurryThis$j=functionUncurryThis,id=0,postfix=Math.random(),toString$9=uncurryThis$j(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$9(++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$g=functionCall,isObject$6=isObject$8,isSymbol$1=isSymbol$2,getMethod$4=getMethod$5,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 r=getMethod$4(e,TO_PRIMITIVE);if(r){if(r=call$g(r,e,t=void 0===t?"default":t),!isObject$6(r)||isSymbol$1(r))return r;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$3=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$f=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$3=createPropertyDescriptor$4,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,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$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$a(e,t))return createPropertyDescriptor$3(!call$f(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$f=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$e=anObject$f,toPropertyKey$1=toPropertyKey$3,$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,r){var n;return anObject$e(e),t=toPropertyKey$1(t),anObject$e(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&((n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:n)[ENUMERABLE],writable:!1})),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$e(e),t=toPropertyKey$1(t),anObject$e(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$5=objectDefineProperty,createPropertyDescriptor$2=createPropertyDescriptor$4,createNonEnumerableProperty$5=DESCRIPTORS$7?function(e,t,r){return definePropertyModule$5.f(e,t,createPropertyDescriptor$2(1,r))}:function(e,t,r){return e[t]=r,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$i=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$h=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$h(store.get),wmhas=uncurryThis$h(store.has),wmset=uncurryThis$h(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,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$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&&r&&hasOwn$7(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$7(r,"constructor")&&r.constructor?DESCRIPTORS$5&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$7(r,"source")||(r.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$4=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$7=function(e,t,r,n){var s=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(isCallable$e(r)&&makeBuiltIn(r,o,n),n.global)s?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:definePropertyModule$4.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.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$2=Math.max,min$3=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$3(e);return e<0?max$2(e+t,0):min$3(e,t)},toIntegerOrInfinity$2=toIntegerOrInfinity$4,min$2=Math.min,toLength$3=function(e){return 0<e?min$2(toIntegerOrInfinity$2(e),9007199254740991):0},toLength$2=toLength$3,lengthOfArrayLike$3=function(e){return toLength$2(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$2=lengthOfArrayLike$3,createMethod$2=function(i){return function(e,t,r){var n,s=toIndexedObject$3(e),o=lengthOfArrayLike$2(s),a=toAbsoluteIndex$1(r,o);if(i&&t!=t){for(;a<o;)if((n=s[a++])!=n)return!0}else for(;a<o;a++)if((i||a in s)&&s[a]===t)return i||a||0;return!i&&-1}},arrayIncludes={includes:createMethod$2(!0),indexOf:createMethod$2(!1)},uncurryThis$g=functionUncurryThis,hasOwn$6=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$2=uncurryThis$g([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),s=0,o=[];for(r in n)!hasOwn$6(hiddenKeys$2,r)&&hasOwn$6(n,r)&&push$2(o,r);for(;t.length>s;)!hasOwn$6(n,r=t[s++])||~indexOf$1(o,r)||push$2(o,r);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$f=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$d=anObject$f,concat$2=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$d(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$2(t,r(e)):t},hasOwn$5=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$3=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),s=definePropertyModule$3.f,o=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var i=n[a];hasOwn$5(e,i)||r&&hasOwn$5(r,i)||s(e,i,o(t,i))}},fails$d=fails$l,isCallable$d=isCallable$n,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$d(t)?fails$d(t):!!t)},normalize=isForced$2.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$2.data={},NATIVE=isForced$2.NATIVE="N",POLYFILL=isForced$2.POLYFILL="P",isForced_1=isForced$2,global$f=global$o,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$3=createNonEnumerableProperty$5,defineBuiltIn$6=defineBuiltIn$7,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,n,s,o=e.target,a=e.global,i=e.stat,l=a?global$f:i?global$f[o]||defineGlobalProperty(o,{}):(global$f[o]||{}).prototype;if(l)for(r in t){if(n=t[r],s=e.dontCallGetSet?(s=getOwnPropertyDescriptor$1(l,r))&&s.value:l[r],!isForced$1(a?r:o+(i?".":"#")+r,e.forced)&&void 0!==s){if(typeof n==typeof s)continue;copyConstructorProperties$1(n,s)}(e.sham||s&&s.sham)&&createNonEnumerableProperty$3(n,"sham",!0),defineBuiltIn$6(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$4=descriptors,uncurryThis$e=functionUncurryThis,call$e=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$e([].concat),objectAssign=!$assign||fails$c(function(){if(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)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r]||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var r=toObject$2(e),n=arguments.length,s=1,o=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;s<n;)for(var i,l=IndexedObject(arguments[s++]),c=o?concat$1(objectKeys$1(l),o(l)):objectKeys$1(l),u=c.length,d=0;d<u;)i=c[d++],DESCRIPTORS$4&&!call$e(a,l,i)||(r[i]=l[i]);return r}:$assign,$$b=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="processingCenterIngestion",namespace$8=(!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending",e.Complete="complete"}(LoadingStatus=LoadingStatus||{}),"uiState"),initialState$7={status:LoadingStatus.Idle},slice=createSlice({name:SLICE_NAME+"/"+namespace$8,initialState:initialState$7,reducers:{init(e){e.status=LoadingStatus.Pending},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed}}}),actions$8=slice.actions;var uiState=slice.reducer;const namespace$7="ingestionJobsWizard",initialState$6={activeStep:1,steps:[{number:1,completed:!1},{number:2,completed:!1},{number:3,completed:!1},{number:4,completed:!1},{number:5,completed:!1},{number:6,completed:!1}],activeEngine:{},saveStatus:LoadingStatus.Idle,isFullScreen:!1},ingestionJobsWizardSlice=createSlice({name:"ingestionJobsWizard",initialState:initialState$6,reducers:{nextStep:e=>{var t=e["activeStep"];t!==e.steps.length&&(e.steps[t-1].completed=!0,e.activeStep=t+1)},backStep:e=>{var t=e["activeStep"];1!==t&&(e.activeStep=t-1)},setActiveEngine:(e,t)=>{e.activeEngine=t.payload},saveScheduledJobStart:e=>{e.saveStatus=LoadingStatus.Pending},saveScheduledJobSuccess:e=>{e.saveStatus=LoadingStatus.Complete},saveScheduledJobFailure:e=>{e.saveStatus=LoadingStatus.Failed},setIsFullScreen:(e,t)=>{e.isFullScreen=t.payload}}}),actions$7=ingestionJobsWizardSlice.actions;var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,ingestionJobsWizard_slice=ingestionJobsWizardSlice.reducer,objectDefineProperties={},DESCRIPTORS$3=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$2=objectDefineProperty,anObject$c=anObject$f,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$3&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$c(e);for(var r,n=toIndexedObject$1(t),s=objectKeys(t),o=s.length,a=0;a<o;)definePropertyModule$2.f(e,r=s[a++],n[r]);return e},getBuiltIn$8),html$2=getBuiltIn$8("document","documentElement"),anObject$b=anObject$f,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 r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$b(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$g=wellKnownSymbol$i,create$2=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$g("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$1=(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){e=toObject$1(e);if(hasOwn$4(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return 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,r){(e=e&&!r?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$1=createPropertyDescriptor$4,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,r,n){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$1(+!n,r)}),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$d=functionUncurryThis,anObject$a=anObject$f,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThis$d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$a(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$a=_export,call$d=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,r,n,s,o,a){createIteratorConstructor(r,t,n);function i(e){if(e===s&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,n=t+" Iterator",u=!1,d=e.prototype,p=d[ITERATOR$5]||d["@@iterator"]||s&&d[s],g=!BUGGY_SAFARI_ITERATORS&&p||i(s),m="Array"==t&&d.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,n,!0)),PROPER_FUNCTION_NAME$1&&s==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$2(d,"name",VALUES):(u=!0,g=function(){return call$d(p,this)})),s)if(l={values:i(VALUES),keys:o?g:i(KEYS),entries:i(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$4(d,c,l[c]);else $$a({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$5]!==g&&defineBuiltIn$4(d,ITERATOR$5,g,{name:s}),Iterators$3[t]=g,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,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,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("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 r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty$1(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$e[COLLECTION_NAME]&&global$e[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const namespace$6="sourceStep",initialState$5={isAffiliateSearch:!1,sourceSearchTerm:"",sourceTypeId:[],searchedSources:[],sourceSelected:null,isLoading:!1,error:null,hasMore:!1,offset:0,clusterSection:{clusterSelected:null,clusters:[],isLoading:!0,error:null,hasMore:!1,offset:0},mediaChunkLength:"15"},sourceStepSlice=createSlice({name:"sourceStep",initialState:initialState$5,reducers:{sourcesSearchStart:(e,{payload:t})=>{e.isAffiliateSearch=t,0===e.offset&&(e.isLoading=!0)},sourcesSearchSucceeded:(e,{payload:t})=>{e.searchedSources=[...e.searchedSources,...t],e.error=null,e.isLoading=!1},resetSourcesSearch:e=>{e.isAffiliateSearch=!1,e.searchedSources=[],e.isLoading=!1,e.offset=0,e.hasMore=!1,e.error=null},setSourceTypeId:(e,{payload:t})=>{e.sourceTypeId=t},setSourceSelected:(e,{payload:t})=>{e.sourceSelected=t},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setError:(e,{payload:t})=>{e.error=t},setLoading:(e,{payload:t})=>{e.isLoading=t},setSourceSearchTerm:(e,{payload:t})=>{e.sourceSearchTerm=t},setMediaChunkLength:(e,{payload:t})=>{e.mediaChunkLength=t},setSelectedCluster:(e,{payload:t})=>{e.clusterSection.clusterSelected=t},clustersSearchStart:e=>{0===e.clusterSection.offset&&(e.clusterSection.isLoading=!0)},clustersSearchSucceeded:(e,{payload:t})=>{e.clusterSection.clusters=[...e.clusterSection.clusters,...t],e.clusterSection.error=null,e.clusterSection.isLoading=!1},clustersSetOffset:(e,{payload:t})=>{e.clusterSection.offset=t},clustersSetHasMore:(e,{payload:t})=>{e.clusterSection.hasMore=t},clusterSetError:(e,{payload:t})=>{e.clusterSection.error=t,e.clusterSection.isLoading=!1},clusterSetLoading:(e,{payload:t})=>{e.clusterSection.isLoading=t}}}),actions$6=sourceStepSlice.actions;var selectSourceStep_slice=sourceStepSlice.reducer;function toInteger(e){if(null===e||!0===e||!1===e)return NaN;e=Number(e);return 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 toDate(e){requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof 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://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function addDays(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toInteger(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function addMilliseconds(e,t){requiredArgs(2,arguments);var r=toDate(e).getTime(),n=toInteger(t);return new Date(r+n)}var MILLISECONDS_IN_MINUTE=6e4;function getDateMillisecondsPart(e){return e.getTime()%MILLISECONDS_IN_MINUTE}function getTimezoneOffsetInMilliseconds(e){var e=new Date(e.getTime()),t=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);e=0<t?(MILLISECONDS_IN_MINUTE+getDateMillisecondsPart(e))%MILLISECONDS_IN_MINUTE:getDateMillisecondsPart(e);return t*MILLISECONDS_IN_MINUTE+e}function isValid(e){requiredArgs(1,arguments);var t=toDate(e);return!isNaN(t)}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"}};function formatDistance(e,t,r){return r=r||{},e="string"==typeof formatDistanceLocale[e]?formatDistanceLocale[e]:1===t?formatDistanceLocale[e].one:formatDistanceLocale[e].other.replace("{{count}}",t),r.addSuffix?0<r.comparison?"in "+e:e+" ago":e}function buildFormatLongFn(t){return function(e){e=e||{},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"};function formatRelative(e,t,r,n){return formatRelativeLocale[e]}function buildLocalizeFn(s){return function(e,t){var r,t=t||{},n=(t="formatting"===(t.context?String(t.context):"standalone")&&s.formattingValues?(n=s.defaultFormattingWidth||s.defaultWidth,r=t.width?String(t.width):n,s.formattingValues[r]||s.formattingValues[n]):(r=s.defaultWidth,n=t.width?String(t.width):s.defaultWidth,s.values[n]||s.values[r]),s.argumentCallback?s.argumentCallback(e):e);return t[n]}}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"}};function ordinalNumber(e,t){var r=Number(e),e=r%100;if(20<e||e<10)switch(e%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"}var localize={ordinalNumber:ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:function(e){return Number(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 buildMatchPatternFn(s){return function(e,t){var e=String(e),t=t||{},r=e.match(s.matchPattern);if(!r)return null;var r=r[0],n=e.match(s.parsePattern);if(!n)return null;n=s.valueCallback?s.valueCallback(n[0]):n[0];return{value:n=t.valueCallback?t.valueCallback(n):n,rest:e.slice(r.length)}}}function buildMatchFn(o){return function(e,t){var e=String(e),t=t||{},r=t.width,n=r&&o.matchPatterns[r]||o.matchPatterns[o.defaultMatchWidth],n=e.match(n);if(!n)return null;var s=n[0],n=r&&o.parsePatterns[r]||o.parsePatterns[o.defaultParseWidth],r="[object Array]"===Object.prototype.toString.call(n)?findIndex(n,function(e){return e.test(s)}):findKey(n,function(e){return e.test(s)});return r=o.valueCallback?o.valueCallback(r):r,{value:r=t.valueCallback?t.valueCallback(r):r,rest:e.slice(s.length)}}}function findKey(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function findIndex(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}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,formatLong:formatLong$1,formatRelative:formatRelative,localize:localize$1,match:match,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale=locale;function subMilliseconds(e,t){return requiredArgs(2,arguments),addMilliseconds(e,-toInteger(t))}function addLeadingZeros(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}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 r=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":case"aaa":return r.toUpperCase();case"aaaaa":return r[0];default:return"am"===r?"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 r=t.length,e=e.getUTCMilliseconds();return addLeadingZeros(Math.floor(e*Math.pow(10,r-3)),t.length)}},formatters$3=formatters$2,MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getTime(),t=(t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),t.getTime());return Math.floor((r-t)/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCDay(),r=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function getUTCISOWeekYear(e){requiredArgs(1,arguments);var t=toDate(e),r=t.getUTCFullYear(),n=new Date(0),n=(n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0),startOfUTCISOWeek(n)),s=new Date(0),s=(s.setUTCFullYear(r,0,4),s.setUTCHours(0,0,0,0),startOfUTCISOWeek(s));return t.getTime()>=n.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function startOfUTCISOWeekYear(e){requiredArgs(1,arguments);var t=getUTCISOWeekYear(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),startOfUTCISOWeek(r)}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 r=t||{},n=r.locale,n=n&&n.options&&n.options.weekStartsOn,n=null==n?0:toInteger(n),n=null==r.weekStartsOn?n:toInteger(r.weekStartsOn);if(!(0<=n&&n<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var r=toDate(e),s=r.getUTCDay(),s=(s<n?7:0)+s-n;return r.setUTCDate(r.getUTCDate()-s),r.setUTCHours(0,0,0,0),r}function getUTCWeekYear(e,t){requiredArgs(1,arguments);var r=toDate(e,t),n=r.getUTCFullYear(),s=t||{},o=s.locale,o=o&&o.options&&o.options.firstWeekContainsDate,o=null==o?1:toInteger(o),o=null==s.firstWeekContainsDate?o:toInteger(s.firstWeekContainsDate);if(!(1<=o&&o<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var s=new Date(0),s=(s.setUTCFullYear(n+1,0,o),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)),a=new Date(0),o=(a.setUTCFullYear(n,0,o),a.setUTCHours(0,0,0,0),startOfUTCWeek(a,t));return r.getTime()>=s.getTime()?n+1:r.getTime()>=o.getTime()?n:n-1}function startOfUTCWeekYear(e,t){requiredArgs(1,arguments);var r=t||{},n=r.locale,n=n&&n.options&&n.options.firstWeekContainsDate,n=null==n?1:toInteger(n),n=null==r.firstWeekContainsDate?n:toInteger(r.firstWeekContainsDate),r=getUTCWeekYear(e,t),s=new Date(0);return s.setUTCFullYear(r,0,n),s.setUTCHours(0,0,0,0),startOfUTCWeek(s,t)}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek(e,t){requiredArgs(1,arguments);var r=toDate(e),r=startOfUTCWeek(r,t).getTime()-startOfUTCWeekYear(r,t).getTime();return Math.round(r/MILLISECONDS_IN_WEEK)+1}var dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters={G:function(e,t,r){var n=0<e.getUTCFullYear()?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){var n;return"yo"===t?(n=e.getUTCFullYear(),r.ordinalNumber(0<n?n:1-n,{unit:"year"})):formatters$3.y(e,t)},Y:function(e,t,r,n){e=getUTCWeekYear(e,n),n=0<e?e:1-e;return"YY"===t?addLeadingZeros(n%100,2):"Yo"===t?r.ordinalNumber(n,{unit:"year"}):addLeadingZeros(n,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,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return addLeadingZeros(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return addLeadingZeros(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return formatters$3.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return addLeadingZeros(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){e=getUTCWeek(e,n);return"wo"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},I:function(e,t,r){e=getUTCISOWeek(e);return"Io"===t?r.ordinalNumber(e,{unit:"week"}):addLeadingZeros(e,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):formatters$3.d(e,t)},D:function(e,t,r){e=getUTCDayOfYear(e);return"Do"===t?r.ordinalNumber(e,{unit:"dayOfYear"}):addLeadingZeros(e,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var s=e.getUTCDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return addLeadingZeros(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var s=e.getUTCDay(),o=(s-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return addLeadingZeros(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(s,{width:"narrow",context:"standalone"});case"cccccc":return r.day(s,{width:"short",context:"standalone"});default:return r.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),s=0===n?7:n;switch(t){case"i":return String(s);case"ii":return addLeadingZeros(s,t.length);case"io":return r.ordinalNumber(s,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=1<=e.getUTCHours()/12?"pm":"am";switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var e=e.getUTCHours(),n=12===e?dayPeriodEnum.noon:0===e?dayPeriodEnum.midnight:1<=e/12?"pm":"am";switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var e=e.getUTCHours(),n=17<=e?dayPeriodEnum.evening:12<=e?dayPeriodEnum.afternoon:4<=e?dayPeriodEnum.morning:dayPeriodEnum.night;switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){var n;return"ho"===t?(n=e.getUTCHours()%12,r.ordinalNumber(n=0===n?12:n,{unit:"hour"})):formatters$3.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):formatters$3.H(e,t)},K:function(e,t,r){e=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},k:function(e,t,r){e=e.getUTCHours();return 0===e&&(e=24),"ko"===t?r.ordinalNumber(e,{unit:"hour"}):addLeadingZeros(e,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):formatters$3.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):formatters$3.s(e,t)},S:function(e,t){return formatters$3.S(e,t)},X:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);default:return formatTimezone(s,":")}},x:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);default:return formatTimezone(s,":")}},O:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},z:function(e,t,r,n){var s=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(s,":");default:return"GMT"+formatTimezone(s,":")}},t:function(e,t,r,n){n=n._originalDate||e;return addLeadingZeros(Math.floor(n.getTime()/1e3),t.length)},T:function(e,t,r,n){return addLeadingZeros((n._originalDate||e).getTime(),t.length)}};function formatTimezoneShort(e,t){var r=0<e?"-":"+",e=Math.abs(e),n=Math.floor(e/60),e=e%60;if(0==e)return r+String(n);t=t||"";return r+String(n)+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||"",r=0<e?"-":"+",e=Math.abs(e);return r+addLeadingZeros(Math.floor(e/60),2)+t+addLeadingZeros(e%60,2)}var formatters$1=formatters;function dateLongFormatter(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"})}}function timeLongFormatter(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"})}}function dateTimeLongFormatter(e,t){var r,n=e.match(/(P+)(p+)?/),s=n[1],n=n[2];if(!n)return dateLongFormatter(e,t);switch(s){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",dateLongFormatter(s,t)).replace("{{time}}",timeLongFormatter(n,t))}var 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,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(n,s,e){requiredArgs(2,arguments);var t=String(s),o=e||{},a=o.locale||defaultLocale,r=a.options&&a.options.firstWeekContainsDate,r=null==r?1:toInteger(r),r=null==o.firstWeekContainsDate?r:toInteger(o.firstWeekContainsDate);if(!(1<=r&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var i=a.options&&a.options.weekStartsOn,i=null==i?0:toInteger(i),i=null==o.weekStartsOn?i:toInteger(o.weekStartsOn);if(!(0<=i&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!a.localize)throw new RangeError("locale must contain localize property");if(!a.formatLong)throw new RangeError("locale must contain formatLong property");var l=toDate(n);if(!isValid(l))throw new RangeError("Invalid time value");var c=subMilliseconds(l,getTimezoneOffsetInMilliseconds(l)),u={firstWeekContainsDate:r,weekStartsOn:i,locale:a,_originalDate:l};return t.match(longFormattingTokensRegExp).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,longFormatters$1[t])(e,a.formatLong,u):e}).join("").match(formattingTokensRegExp).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return cleanEscapedString(e);var r=formatters$1[t];if(r)return!o.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(e)&&throwProtectedError(e,s,n),!o.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(e)&&throwProtectedError(e,s,n),r(c,e,a.localize,u);if(t.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("")}function cleanEscapedString(e){return e.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function isAfter(e,t){requiredArgs(2,arguments);var r=toDate(e),n=toDate(t);return r.getTime()>n.getTime()}var wellKnownSymbol$b=wellKnownSymbol$i,TO_STRING_TAG$1=wellKnownSymbol$i("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$8=isCallable$n,classofRaw=classofRaw$1,wellKnownSymbol$a=wellKnownSymbol$i,TO_STRING_TAG=wellKnownSymbol$i("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$6=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$8(e.callee)?"Arguments":t},classof$5=classof$6,$String=String,toString$8=function(e){if("Symbol"===classof$5(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},anObject$9=anObject$f,regexpFlags$1=function(){var e=anObject$9(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$9=fails$l,global$d=global$o,$RegExp$2=global$o.RegExp,UNSUPPORTED_Y$2=fails$9(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$2||fails$9(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$2||fails$9(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$2},fails$8=fails$l,global$c=global$o,$RegExp$1=global$o.RegExp,regexpUnsupportedDotAll=fails$8(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails$7=fails$l,global$b=global$o,$RegExp=global$o.RegExp,regexpUnsupportedNcg=fails$7(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call$c=functionCall,uncurryThis$c=functionUncurryThis,toString$7=toString$8,regexpFlags=regexpFlags$1,stickyHelpers$1=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$c("".charAt),indexOf=uncurryThis$c("".indexOf),replace$3=uncurryThis$c("".replace),stringSlice$5=uncurryThis$c("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call$c(nativeExec,e,"a"),call$c(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y$1=stickyHelpers$1.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y$1||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec$3=patchedExec=PATCH?function(e){var t,r,n,s,o,a,i=this,l=getInternalState(i),e=toString$7(e),c=l.raw;if(c)return c.lastIndex=i.lastIndex,d=call$c(patchedExec,c,e),i.lastIndex=c.lastIndex,d;var u=l.groups,c=UNSUPPORTED_Y$1&&i.sticky,d=call$c(regexpFlags,i),l=i.source,p=0,g=e;if(c&&(d=replace$3(d,"y",""),-1===indexOf(d,"g")&&(d+="g"),g=stringSlice$5(e,i.lastIndex),0<i.lastIndex&&(!i.multiline||i.multiline&&"\n"!==charAt$3(e,i.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",d)),UPDATES_LAST_INDEX_WRONG&&(r=i.lastIndex),n=call$c(nativeExec,c?t:i,g),c?n?(n.input=stringSlice$5(n.input,p),n[0]=stringSlice$5(n[0],p),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&n&&(i.lastIndex=i.global?n.index+n[0].length:r),NPCG_INCLUDED&&n&&1<n.length&&call$c(nativeReplace,n[0],t,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)}),n&&u)for(n.groups=o=create(null),s=0;s<u.length;s++)o[(a=u[s])[0]]=n[a[1]];return n}:patchedExec,$$9=_export,exec$3=regexpExec$3,NATIVE_BIND$1=(_export({target:"RegExp",proto:!0,forced:/./.exec!==exec$3},{exec:exec$3}),functionBindNative),FunctionPrototype=Function.prototype,apply$3=FunctionPrototype.apply,call$b=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$b.bind(apply$3):function(){return call$b.apply(apply$3,arguments)}),uncurryThis$b=functionUncurryThis,defineBuiltIn$3=defineBuiltIn$7,regexpExec$2=regexpExec$3,fails$6=fails$l,wellKnownSymbol$9=wellKnownSymbol$i,createNonEnumerableProperty=createNonEnumerableProperty$5,SPECIES$3=wellKnownSymbol$9("species"),RegExpPrototype$2=RegExp.prototype,fixRegexpWellKnownSymbolLogic=function(r,e,t,n){var a,s=wellKnownSymbol$9(r),i=!fails$6(function(){var e={};return e[s]=function(){return 7},7!=""[r](e)}),o=i&&!fails$6(function(){var e=!1,t=/a/;return"split"===r&&((t={constructor:{}}).constructor[SPECIES$3]=function(){return t},t.flags="",t[s]=/./[s]),t.exec=function(){return e=!0,null},t[s](""),!e});i&&o&&!t||(a=uncurryThis$b(/./[s]),o=e(s,""[r],function(e,t,r,n,s){var e=uncurryThis$b(e),o=t.exec;return o===regexpExec$2||o===RegExpPrototype$2.exec?i&&!s?{done:!0,value:a(t,r,n)}:{done:!0,value:e(r,t,n)}:{done:!1}}),defineBuiltIn$3(String.prototype,r,o[0]),defineBuiltIn$3(RegExpPrototype$2,s,o[1])),n&&createNonEnumerableProperty(RegExpPrototype$2[s],"sham",!0)},isObject$2=isObject$8,classof$4=classofRaw$1,wellKnownSymbol$8=wellKnownSymbol$i,MATCH$1=wellKnownSymbol$i("match"),isRegexp=function(e){var t;return isObject$2(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$4(e))},uncurryThis$a=functionUncurryThis,fails$5=fails$l,isCallable$7=isCallable$n,classof$3=classof$6,getBuiltIn$3=getBuiltIn$8,inspectSource$1=inspectSource$4,noop=function(){},empty=[],construct=getBuiltIn$8("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec$2=uncurryThis$a(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$7(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$7(e))return!1;switch(classof$3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec$2(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$5(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$6=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw $TypeError$6(tryToString$2(e)+" is not a constructor")},anObject$8=anObject$f,aConstructor=aConstructor$1,wellKnownSymbol$7=wellKnownSymbol$i,SPECIES$2=wellKnownSymbol$i("species"),speciesConstructor$2=function(e,t){var e=anObject$8(e).constructor;return void 0===e||null==(e=anObject$8(e)[SPECIES$2])?t:aConstructor(e)},uncurryThis$9=functionUncurryThis,toIntegerOrInfinity$1=toIntegerOrInfinity$4,toString$6=toString$8,requireObjectCoercible$4=requireObjectCoercible$7,charAt$2=uncurryThis$9("".charAt),charCodeAt=uncurryThis$9("".charCodeAt),stringSlice$4=uncurryThis$9("".slice),createMethod$1=function(s){return function(e,t){var r,e=toString$6(requireObjectCoercible$4(e)),t=toIntegerOrInfinity$1(t),n=e.length;return t<0||n<=t?s?"":void 0:(r=charCodeAt(e,t))<55296||56319<r||t+1===n||(n=charCodeAt(e,t+1))<56320||57343<n?s?charAt$2(e,t):r:s?stringSlice$4(e,t,t+2):n-56320+(r-55296<<10)+65536}},stringMultibyte={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},charAt$1=stringMultibyte.charAt,advanceStringIndex$2=function(e,t,r){return t+(r?charAt$1(e,t).length:1)},toPropertyKey=toPropertyKey$3,definePropertyModule$1=objectDefineProperty,createPropertyDescriptor=createPropertyDescriptor$4,createProperty$1=function(e,t,r){t=toPropertyKey(t);t in e?definePropertyModule$1.f(e,t,createPropertyDescriptor(0,r)):e[t]=r},toAbsoluteIndex=toAbsoluteIndex$2,lengthOfArrayLike$1=lengthOfArrayLike$3,createProperty=createProperty$1,$Array=Array,max$1=Math.max,arraySliceSimple=function(e,t,r){for(var n=lengthOfArrayLike$1(e),s=toAbsoluteIndex(t,n),o=toAbsoluteIndex(void 0===r?n:r,n),a=$Array(max$1(o-s,0)),i=0;s<o;s++,i++)createProperty(a,i,e[s]);return a.length=i,a},call$a=functionCall,anObject$7=anObject$f,isCallable$6=isCallable$n,classof$2=classofRaw$1,regexpExec$1=regexpExec$3,$TypeError$5=TypeError,regexpExecAbstract=function(e,t){var r=e.exec;if(isCallable$6(r))return null!==(r=call$a(r,e,t))&&anObject$7(r),r;if("RegExp"===classof$2(e))return call$a(regexpExec$1,e,t);throw $TypeError$5("RegExp#exec called on incompatible receiver")},apply$2=functionApply,call$9=functionCall,uncurryThis$8=functionUncurryThis,fixRegExpWellKnownSymbolLogic$1=fixRegexpWellKnownSymbolLogic,isRegExp$1=isRegexp,anObject$6=anObject$f,requireObjectCoercible$3=requireObjectCoercible$7,speciesConstructor$1=speciesConstructor$2,advanceStringIndex$1=advanceStringIndex$2,toLength$1=toLength$3,toString$5=toString$8,getMethod$3=getMethod$5,arraySlice$2=arraySliceSimple,callRegExpExec=regexpExecAbstract,regexpExec=regexpExec$3,stickyHelpers=regexpStickyHelpers,fails$4=fails$l,UNSUPPORTED_Y=regexpStickyHelpers.UNSUPPORTED_Y,MAX_UINT32=4294967295,min$1=Math.min,$push=[].push,exec$1=uncurryThis$8(/./.exec),push$1=uncurryThis$8($push),stringSlice$3=uncurryThis$8("".slice),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=!fails$4(function(){var e=/(?:)/,t=e.exec,e=(e.exec=function(){return t.apply(this,arguments)},"ab".split(e));return 2!==e.length||"a"!==e[0]||"b"!==e[1]}),whitespaces$2=(fixRegExpWellKnownSymbolLogic$1("split",function(s,m,f){var h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var r=toString$5(requireObjectCoercible$3(this)),n=void 0===t?MAX_UINT32:t>>>0;if(0===n)return[];if(void 0===e)return[r];if(!isRegExp$1(e))return call$9(m,r,e,n);for(var s,o,a,i=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,c=new RegExp(e.source,t+"g");(s=call$9(regexpExec,c,r))&&!(l<(o=c.lastIndex)&&(push$1(i,stringSlice$3(r,l,s.index)),1<s.length&&s.index<r.length&&apply$2($push,i,arraySlice$2(s,1)),a=s[0].length,l=o,n<=i.length));)c.lastIndex===s.index&&c.lastIndex++;return l===r.length?!a&&exec$1(c,"")||push$1(i,""):push$1(i,stringSlice$3(r,l)),n<i.length?arraySlice$2(i,0,n):i}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:call$9(m,this,e,t)}:m;return[function(e,t){var r=requireObjectCoercible$3(this),n=null==e?void 0:getMethod$3(e,s);return n?call$9(n,e,r,t):call$9(h,toString$5(r),e,t)},function(e,t){var r=anObject$6(this),n=toString$5(e),e=f(h,r,n,t,h!==m);if(e.done)return e.value;var e=speciesConstructor$1(r,RegExp),s=r.unicode,o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(UNSUPPORTED_Y?"g":"y"),a=new e(UNSUPPORTED_Y?"^(?:"+r.source+")":r,o),i=void 0===t?MAX_UINT32:t>>>0;if(0===i)return[];if(0===n.length)return null===callRegExpExec(a,n)?[n]:[];for(var l=0,c=0,u=[];c<n.length;){a.lastIndex=UNSUPPORTED_Y?0:c;var d,p=callRegExpExec(a,UNSUPPORTED_Y?stringSlice$3(n,c):n);if(null===p||(d=min$1(toLength$1(a.lastIndex+(UNSUPPORTED_Y?c:0)),n.length))===l)c=advanceStringIndex$1(n,c,s);else{if(push$1(u,stringSlice$3(n,l,c)),u.length===i)return u;for(var g=1;g<=p.length-1;g++)if(push$1(u,p[g]),u.length===i)return u;c=l=d}}return push$1(u,stringSlice$3(n,l)),u}]},!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC,UNSUPPORTED_Y),"\t\n\v\f\r                 \u2028\u2029\ufeff"),uncurryThis$7=functionUncurryThis,requireObjectCoercible$2=requireObjectCoercible$7,toString$4=toString$8,whitespaces$1=whitespaces$2,replace$2=functionUncurryThis("".replace),whitespace="["+whitespaces$1+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(t){return function(e){e=toString$4(requireObjectCoercible$2(e));return 1&t&&(e=replace$2(e,ltrim,"")),e=2&t?replace$2(e,rtrim,""):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$a=global$o,fails$3=fails$l,uncurryThis$6=functionUncurryThis,toString$3=toString$8,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$a.parseInt,Symbol$1=global$a.Symbol,ITERATOR$3=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec=uncurryThis$6(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$3&&!fails$3(function(){$parseInt$1(Object(ITERATOR$3))}),numberParseInt=FORCED?function(e,t){e=trim(toString$3(e));return $parseInt$1(e,t>>>0||(exec(hex,e)?16:10))}:$parseInt$1,$$8=_export,$parseInt=numberParseInt,uncurryThis$5=(_export({global:!0,forced:parseInt!=numberParseInt},{parseInt:numberParseInt}),functionUncurryThis),toObject=toObject$4,floor=Math.floor,charAt=uncurryThis$5("".charAt),replace$1=uncurryThis$5("".replace),stringSlice$2=uncurryThis$5("".slice),SUBSTITUTION_SYMBOLS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&'`]|\d{1,2})/g,getSubstitution$1=function(o,a,i,l,c,e){var u=i+o.length,d=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 r;switch(charAt(t,0)){case"$":return"$";case"&":return o;case"`":return stringSlice$2(a,0,i);case"'":return stringSlice$2(a,u);case"<":r=c[stringSlice$2(t,1,-1)];break;default:var n,s=+t;if(0==s)return e;if(d<s)return 0!==(n=floor(s/10))&&n<=d?void 0===l[n-1]?charAt(t,1):l[n-1]+charAt(t,1):e;r=l[s-1]}return void 0===r?"":r})},apply$1=functionApply,call$8=functionCall,uncurryThis$4=functionUncurryThis,fixRegExpWellKnownSymbolLogic=fixRegexpWellKnownSymbolLogic,fails$2=fails$l,anObject$5=anObject$f,isCallable$5=isCallable$n,toIntegerOrInfinity=toIntegerOrInfinity$4,toLength=toLength$3,toString$2=toString$8,requireObjectCoercible$1=requireObjectCoercible$7,advanceStringIndex=advanceStringIndex$2,getMethod$2=getMethod$5,getSubstitution=getSubstitution$1,regExpExec=regexpExecAbstract,wellKnownSymbol$6=wellKnownSymbol$i,REPLACE=wellKnownSymbol$i("replace"),max=Math.max,min=Math.min,concat=uncurryThis$4([].concat),push=uncurryThis$4([].push),stringIndexOf$1=uncurryThis$4("".indexOf),stringSlice$1=uncurryThis$4("".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$2(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")});fixRegExpWellKnownSymbolLogic("replace",function(e,S,b){var $=REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE?"$":"$0";return[function(e,t){var r=requireObjectCoercible$1(this),n=null==e?void 0:getMethod$2(e,REPLACE);return n?call$8(n,e,r,t):call$8(S,toString$2(r),e,t)},function(e,t){var r=anObject$5(this),n=toString$2(e);if("string"==typeof t&&-1===stringIndexOf$1(t,$)&&-1===stringIndexOf$1(t,"$<")){e=b(S,r,n,t);if(e.done)return e.value}for(var s,o=isCallable$5(t),a=(o||(t=toString$2(t)),r.global),i=(a&&(s=r.unicode,r.lastIndex=0),[]);null!==(d=regExpExec(r,n))&&(push(i,d),a);)""===toString$2(d[0])&&(r.lastIndex=advanceStringIndex(n,toLength(r.lastIndex),s));for(var l="",c=0,u=0;u<i.length;u++){for(var d,p=toString$2((d=i[u])[0]),g=max(min(toIntegerOrInfinity(d.index),n.length),0),m=[],f=1;f<d.length;f++)push(m,maybeToString(d[f]));var h=d.groups,y=o?(y=concat([p],m,g,n),void 0!==h&&push(y,h),toString$2(apply$1(t,void 0,y))):getSubstitution(p,n,g,m,h,t);c<=g&&(l+=stringSlice$1(n,c,g)+y,c=g+p.length)}return l+stringSlice$1(n,c)}]},!REPLACE_SUPPORTS_NAMED_GROUPS||!REPLACE_KEEPS_$0||REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);const selectIsWeeklyValid=e=>e.processingCenterIngestion.scheduleStep.weekly.isWeeklyValid,selectWeeklyTimeslots=e=>e.processingCenterIngestion.scheduleStep.weekly.weeklyTimeslots,selectScheduleState=e=>e.processingCenterIngestion.scheduleStep,selectTimezone=e=>e.processingCenterIngestion.scheduleStep.timezone,selectFrequencySchedularState=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular,selectScheduleType=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.scheduleType,selectStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.startDate,selectEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.endDate,selectContinuousStartDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousStartDate,selectContinuousEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.continuousEndDate,selectFrequency=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequency,selectNoEndDate=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.noEndDate,selectHoursInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.hoursInterval,selectDaysInterval=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysInterval,selectDailyTimeslotOne=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotOne,selectDailyTimeslotTwo=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.dailyTimeslotTwo,selectDaysTimeslot=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.daysTimeslot,selectFrequencyIsValid=e=>e.processingCenterIngestion.scheduleStep.frequencySchedular.frequencyIsValid,selectSchedulePayload=e=>e.processingCenterIngestion.scheduleStep.schedulePayload,SHARED_TEXT={ingestionJobsWizard:{panelHeader:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.title",defaultMessage:"Create Schedule",description:"Panel header for the Processing Center Wizard Create Schedule Panel"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.close",defaultMessage:"Close",description:"Panel close button for the Processing Center Wizard Create Schedule Panel"}),incompleteFieldsMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.incomplete-warning-message",defaultMessage:"Please complete all required fields",description:"Incomplete fields message for the Processing Center Wizard Next Button"}),someFieldsInvalidMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.invalid-fields-warning-message",defaultMessage:"Some fields are not valid",description:"Invalid fields message for the Processing Center Wizard Next Button"}),stepLabels:{selectSource:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.select-source",defaultMessage:"Select Source",description:"Stepper Title for the Processing Center Wizard Stepper Select Source"}),basicInfo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.basic-info",defaultMessage:"Basic Info",description:"Stepper Title for the Processing Center Wizard Stepper Basic Info"}),schedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.schedule",defaultMessage:"Schedule",description:"Stepper Title for the Processing Center Wizard Stepper Schedule"}),processing:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.processing",defaultMessage:"Processing",description:"Stepper Title for the Processing Center Wizard Stepper Processing"}),contentTemplates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.content-templates",defaultMessage:"Content Templates",description:"Stepper Title for the Processing Center Wizard Stepper Content Templates"}),location:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.step-label.location",defaultMessage:"Location",description:"Stepper Title for the Processing Center Wizard Stepper Location"})}},affiliatePanel:{panelHeaders:{addAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.add",defaultMessage:"Add an Affiliate",description:"Panel Title for Add an Affiliated Station"}),editAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.edit",defaultMessage:"Edit Affiliate Schedule",description:"Panel Title for Edit an Affiliated Station Schedule"}),bulkAffiliateSchedule:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.panelHeader.bulk",defaultMessage:"Bulk Import Affiliates",description:"Panel Title for Bulk Add Affiliated Stations"})},tvAdapterText:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.title",defaultMessage:"Affiliated Stations",description:"Title for Affiliated Stations"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.subtitle",defaultMessage:"Assign affiliated stations that also broadcast programming from this ingestion source.",description:"Sub Title for Affiliated Stations"}),addAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.add-affiliate-btn",defaultMessage:"Add Affiliate",description:"Button text for Add Affiliate"}),bulkAffiliateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.tv-adapter-text.bulk-add-affiliate-btn",defaultMessage:"Bulk Add Affiliates",description:"Button text for Bulk Add Affiliate"})},controls:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.cancel",defaultMessage:"Cancel",description:"Cancel button label"}),saveAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.save",defaultMessage:"Save Affiliate",description:"Save affiliate button label"}),editAffiliate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.edit",defaultMessage:"Edit Affiliate",description:"edit affiliate button label"}),bulkImport:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-panel.controls.bulk-import",defaultMessage:"Bulk Import",description:"Bulk Import button label"})},afilliateTable:{headerId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-id",defaultMessage:"Id",description:"table header Id"}),headerName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-name",defaultMessage:"Name",description:"table header name"}),headerStartDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-startdate",defaultMessage:"Start Date",description:"table header start date"}),headerEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-enddate",defaultMessage:"End Date",description:"table header end date"}),headerEditDelete:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-edit-delete",defaultMessage:"Edit / Delete",description:"table header edit or delete"}),scheduleTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.wizard-panel.affiliate-table-header-title-schedule",defaultMessage:"Schedule",description:"header for schedule"})},addAffiliateView:{},editAffiliateView:{},bulkAffiliateView:{}},timezonePicker:{editableCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.editable",defaultMessage:"The schedule will run in this timezone",description:"Caption displayed when the user is able to edit the time zone"}),sourceBasedCaption:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.caption.source-based",defaultMessage:"The timezone is set on the Source and can not be modified",description:"Caption displayed when the time zone is pinned to the source time zone"}),changeButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.change",defaultMessage:"Change",description:"Text on the button used to change the time zone"}),saveButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.schedule-step.timezone-picker.button.save",defaultMessage:"Save",description:"Text on the button used to save time zone changes"})},processing:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.title",defaultMessage:"Processing",description:"Title for the processing section"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.subtitle",defaultMessage:"As data is ingested from this source, each data type will be processed with the selected engines you choose below.",description:"Sub Title for the location section"}),chooseTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.choose-template",defaultMessage:"Choose a Template",description:"Choose template label for the processing section"}),createNewTemplate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.new-template-btn",defaultMessage:"Create a New Template",description:"Create new template button for the processing section"}),errorState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.error-state",defaultMessage:"Unable to load templates",description:"Error message for the processing section"}),emptyState:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.processing.empty-state",defaultMessage:"No templates found",description:"empty state label for the processing section"})},location:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.title",defaultMessage:"Location",description:"Title for the location section of location and permissions"}),chooseLocationDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-folder",defaultMessage:"Choose the Data Center folder location where this content will be stored",description:"Explanation of what the folder selector is for"}),folderSelectorLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-label",defaultMessage:"Folder",description:"Label for the folder selector"}),chooseLocation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-location-button",defaultMessage:"Choose Location",description:"Choose folder"}),chooseHome:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.choose-home-button",defaultMessage:"Choose Home",description:"Choose root folder"}),changeLocationButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.change-location-button",defaultMessage:"Change",description:"Change the location that files will be stored in"}),homeFolderLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.home-folder-label",defaultMessage:"Home",description:"Text displayed when the user hasn't chosen a specific folder"}),folderInputLabel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.location.folder-input-label",defaultMessage:"Folder",description:"Label for folder selection"})},permissions:{sectionTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.title",defaultMessage:"Permissions",description:"Title for the permissions section of location and permissions"}),managePermissionsDetails:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.permissions.manage-permissions",defaultMessage:"Manage who can access the content that is imported with this Scheduled Job",description:"Explanation of what permission management is for"})},sourceSelectDefaultMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-default-select",defaultMessage:"Choose a Source",description:"default select text"}),sourceSelectTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-title",defaultMessage:"Select a Source",description:"title text"}),sourceSelectSubTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-subtitle",defaultMessage:"Select the data source for this scheduled job",description:"subtitle text"}),loadingSources:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-loading-sources",defaultMessage:"Loading Sources",description:"Search Filter by Source Schedule, loader message Loading Sources"}),retryButtonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-retry-button",defaultMessage:"Retry",description:"text for button to allow retry of failed api call"}),sourcesErrorMessageText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-error",defaultMessage:"There was an error loading the sources",description:"text for error with source fetching"}),sourcesNotFoundText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-not-found",defaultMessage:"No sources match your search name or source type.",description:"text for no sources found"}),createSourceButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-source",defaultMessage:"Create New Source",description:"button for create new source"}),advancedSettingsButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-advanced-settings",defaultMessage:"Advanced Settings",description:"button for advanced settings for source"}),nextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-next-button",defaultMessage:"Next",description:"button for next step"}),cancelButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-cancel-button",defaultMessage:"Cancel",description:"button for cancel"}),backButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-back-button",defaultMessage:"Back",description:"button for back"}),skipButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-skip-button",defaultMessage:"Skip",description:"button for skip"}),createScheduledJobButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-source-step-sources-create-job-button",defaultMessage:"Create Scheduled Job",description:"button for create job"}),frequencySchedular:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-title",defaultMessage:"Schedule",description:"title"}),subtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-subtitle",defaultMessage:"How often would you like to import new data from this source?",description:"subtitle"}),radioRecurring:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-recurring",defaultMessage:"Recurring",description:"radio label recurring"}),radioContinuous:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-continuous",defaultMessage:"Continuous",description:"radio label continuous"}),radioOnDemand:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-radio-ondemand",defaultMessage:"On Demand",description:"radio label for on demand"}),errorNoSupportedTypes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-error-not-supported-schedule",defaultMessage:"This adapter does not have any supported schedule types.",description:"error message no supported schedule types"}),messageDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-daily",defaultMessage:"This schedule will run daily at the selected time below.",description:"message for daily selected"}),messageTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-twice-daily",defaultMessage:"This schedule will run twice daily at the selected times below.",description:"message for twice daily selected"}),messageHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-hours",defaultMessage:"Schedule this job to run at an hourly interval between 1 and 24 hours.",description:"message for hours selected"}),messageDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-days",defaultMessage:"Schedule this job to run at a daily interval that will start at the selected time below.",description:"message for days selected"}),messageMediaChunk:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk",defaultMessage:"Ingested content will have a set duration of",description:"message for media chunk"}),messageMediaChunkMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-message-media-chunk-minutes",defaultMessage:"minutes",description:"message for media chunk minutes"}),changeMediaChunkButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-button-media-chunk-minutes",defaultMessage:"CHANGE",description:"button for media chunk minutes"}),textBetweenDates:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-text-between-dates",defaultMessage:"to",description:"text between date selectors"}),startDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-start-date",defaultMessage:"Start Date",description:"label for start date"}),endDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-end-date",defaultMessage:"End Date",description:"label for end date"}),labelHours:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-hours",defaultMessage:"Hours",description:"label for Hours"}),labelDays:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-days",defaultMessage:"Days",description:"label for days"}),labelDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-daily",defaultMessage:"Daily",description:"label for daily"}),labelTwiceDaily:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-twice-daily",defaultMessage:"Twice Daily",description:"label for twice daily"}),labelWeekly:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-weekly",defaultMessage:"Weekly",description:"label for weekly"}),labelNoEndDate:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-label-no-end",defaultMessage:"No End Date",description:"label for no end date"}),inputLabelFrequency:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-frequency",defaultMessage:"Frequency",description:"label for frequency input"}),inputLabelInterval:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-interval",defaultMessage:"Interval",description:"label for interval selector"}),labelMinutes:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"oprocessing-panel-ingestion-schedule-step-freq-minutes",defaultMessage:"Minutes",description:"text for minutes"}),labelMediaChunkLength:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-input-label-media-chunk",defaultMessage:"Media Chunk Length",description:"label for media chunk selector"}),onDemandMessage:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-message",defaultMessage:"Data import will begin once an external event is triggered",description:"message for on demand"}),learnMore:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"processing-panel-ingestion-schedule-step-freq-ondemand-learn-more",defaultMessage:"Learn More",description:"learn more link"})}},useStyles$8=makeStyles()(e=>({onDemandContainer:{background:"#FAFAFA",display:"flex",borderRadius:"4px",flexDirection:"row",justifyContent:"space-around",alignItems:"center",width:"464px",height:"60px",marginTop:"20px"},ingestionRow:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"650px",marginTop:"20px"},spaceAbove:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"660px",marginTop:"20px"},textBetweenDateContainer:{width:"auto",marginLeft:"15px",marginRight:"15px"},frequencyMessageContainer:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",marginLeft:"15px",height:"55px",width:"auto"},daysHoursMessageContainer:{marginTop:" 15px",display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center",width:"auto"},daysHoursMessage:{fontSize:"14px",color:"#000"},chunkButton:{fontSize:"14px",marginTop:"2px"},messageContainer:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%"},frequencyMessage:{width:"100%"},intervalSelectContainer:{marginLeft:"10px",width:"75px"},frequencySelectContainer:{width:"167px"},noEndContainer:{marginLeft:"15px"},radioGroupContainer:{width:"100%"},timeslotTopMargin:{marginTop:"8px"},timeslotMenu:{marginTop:"20px",width:"260px !important"},timeslotStartMenu:{marginTop:"20px",display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",width:"124px !important",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}}})),useStyles$7=makeStyles()(e=>({container:{display:"flex",flexDirection:"column",gap:"20px"},dayBubblesContainer:{display:"flex",gap:"10px"},dayBubble:{height:"40px",width:"40px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"14px",fontWeight:"bold",cursor:"pointer",userSelect:"none",transition:"all 0.25s ease-in-out","&.disabled:active":{opacity:.5},"&.enabled:active":{opacity:.5},"&.disabled:hover":{backgroundColor:"rgba(24,113,232,0.2)"},"&.enabled:hover":{backgroundColor:"rgba(24,113,232,0.8)"},"&.enabled":{backgroundColor:"#1871E8",color:"#fff"},"&.disabled":{backgroundColor:"#F2F3F4",color:"#555F7C"}},timeslotsWidgetContainer:{display:"flex",gap:"15px",flexDirection:"column",width:"100%",overflowY:"scroll"},timeslotRow:{display:"flex",alignItems:"flex-start",gap:"10px"},timeslotDayLabel:{width:"15%",paddingTop:"5px"},timeslotList:{display:"flex",flexDirection:"column",gap:"15px"},timeslotMenu:{display:"flex",position:"relative",background:"#F6F7FA",boxSizing:"border-box",gap:"10px",padding:"0px 12px",borderRadius:"5px",alignItems:"center",userSelect:"none",'&:hover input[type="time"]':{color:"#1871e8"},"&.is-invalid":{backgroundColor:"rgba(255,0,0,0.05)"},'&.is-invalid input[type="time"]':{color:"rgba(255,0,0,0.6)"}},timeslotDelete:{position:"absolute",top:0,right:"-60px",opacity:0,transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},inputTime:{background:"transparent",border:"none",fontFamily:"sans-serif",padding:"8px 0px",outline:"none!important",color:"#2A323C",fontSize:"15px"},rowActions:{display:"flex",alignItems:"center",gap:"15px",opacity:0,paddingLeft:"10px",transition:"all 0.25s ease-in-out","&:hover":{opacity:1}},rowDivider:{width:"1px",display:"flex",backgroundColor:"#979797",height:"30px"},rowCopyToAll:{display:"flex",alignItems:"center",gap:"10px"}})),WEEKLY_SCHEDULER_SHARED_TEXT={ui:{invalidTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.invalid-time-slot",defaultMessage:"This time window is not valid",description:"Processing Center Wizard Schedule Step, UI tooltip for invalid time slot"}),deleteTimeslot:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.delete-time-slot",defaultMessage:"Delete time",description:"Processing Center Wizard Schedule Step, UI tooltip for delete time"}),addTimeWindow:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.add-time-window",defaultMessage:"Add time window",description:"Processing Center Wizard Schedule Step, UI tooltip for add time window"}),copyTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copy-time-to-all",defaultMessage:"Copy time to all",description:"Processing Center Wizard Schedule Step, UI text for copy time to all"}),copiedTimeToAll:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.copied-time-to-all",defaultMessage:"Copied times",description:"Processing Center Wizard Schedule Step, UI text for copied times to all"}),replaceAllDayTimes:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.replace-all-day-times",defaultMessage:"This will replace all days selected time",description:"Processing Center Wizard Schedule Step, UI tooltip for replace all days times"}),changeTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.text.change-time",defaultMessage:"Change Time",description:"Processing Center Wizard Schedule Step, UI Text for change time"}),chooseLaterTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-later-time",defaultMessage:"Please select a later time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose later time"}),chooseEarlierTime:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.ui.tooltip.choose-earlier-time",defaultMessage:"Please select an earlier time",description:"Processing Center Wizard Schedule Step, UI Text for tooltip - choose earlier time"})},days:{Su:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.sunday",defaultMessage:"Sunday",description:"Processing Center Wizard Schedule Step, day label for Sunday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.sunday",defaultMessage:"Add Sunday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable Sunday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.sunday",defaultMessage:"Remove all Sunday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable Sunday"})},M:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.monday",defaultMessage:"Monday",description:"Processing Center Wizard Schedule Step, day label for Monday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.monday",defaultMessage:"Add Monday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable monday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.monday",defaultMessage:"Remove all Monday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable monday"})},Tu:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.tuesday",defaultMessage:"Tuesday",description:"Processing Center Wizard Schedule Step, day label for Tuesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.tuesday",defaultMessage:"Add Tuesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable tuesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.tuesday",defaultMessage:"Remove all Tuesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable tuesday"})},W:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.wednesday",defaultMessage:"Wednesday",description:"Processing Center Wizard Schedule Step, day label for wednesday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.wednesday",defaultMessage:"Add Wednesday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable wednesday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.wednesday",defaultMessage:"Remove all Wednesday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable wednesday"})},Th:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.thursday",defaultMessage:"Thursday",description:"Processing Center Wizard Schedule Step, day label for Thursday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.thursday",defaultMessage:"Add Thursday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable thursday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.thursday",defaultMessage:"Remove all Thursday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable thursday"})},F:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.friday",defaultMessage:"Friday",description:"Processing Center Wizard Schedule Step, day label for Friday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.friday",defaultMessage:"Add Friday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable friday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.friday",defaultMessage:"Remove all Friday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable friday"})},Sa:{label:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.day.label.saturday",defaultMessage:"Saturday",description:"Processing Center Wizard Schedule Step, day label for Saturday"}),enable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.enable.saturday",defaultMessage:"Add Saturday time",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, enable saturday"}),disable:jsxRuntime.exports.jsx(FormattedMessage,{id:"pc-ingestion-wizard-schedule.weekly-day-bubble.tooltip.disable.saturday",defaultMessage:"Remove all Saturday times",description:"Processing Center Wizard Schedule Step, weekly bubbles tooltip, disable saturday"})}}},TimeDropdown=({disabled:e,time:t,onChange:r,min:n,max:s,showTooltip:o})=>{var a=useStyles$7()["classes"];return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:o&&!e?WEEKLY_SCHEDULER_SHARED_TEXT.ui.changeTime:""},{children:jsxRuntime.exports.jsx("input",{disabled:e,"data-testid":"pc-wizard-schedule-weekly-timeslot",value:t,name:s?"start":"end",min:n||void 0,max:s||void 0,className:a.inputTime,type:"time",onChange:e=>{var{value:e,name:t}=e.target;r(e,t)}})}))})},TimeStartEndField=({timeslot:e,showDelete:t,day:n,onDelete:r,onChangeTime:s,disabled:o,id:a=""})=>{var i=useStyles$7()["classes"];const{id:l,start:c,end:u,isValid:d}=e;var e=i.timeslotMenu+" "+(d?"":"is-invalid"),p=(e,t)=>{let r;r="start"===t?createTimeslot(e,u,l,validateTimeWindow(e,u),!1):createTimeslot(c,e,l,validateTimeWindow(c,e),!1),s(r,l,n)};return jsxRuntime.exports.jsx(Tooltip,Object.assign({title:d?"":WEEKLY_SCHEDULER_SHARED_TEXT.ui.invalidTimeslot},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:e,"data-testid":"timeslot-field-row-"+a},{children:[jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:c,onChange:p,max:u,showTooltip:d}),jsxRuntime.exports.jsx("span",{children:"to"}),jsxRuntime.exports.jsx(TimeDropdown,{disabled:o,time:u,onChange:p,min:c,showTooltip:d}),t&&jsxRuntime.exports.jsx("div",Object.assign({className:i.timeslotDelete},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.deleteTimeslot},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{n&&r&&r(n,l)},"data-testid":"pc-wizard-schedule-weekly-timeslot-button-delete"},{children:jsxRuntime.exports.jsx(Delete,{})}))}))}))]}))}))},selectSearchTerm=e=>e.processingCenterIngestion.sourceStep.sourceSearchTerm||"",selectSourceTypeId=e=>e.processingCenterIngestion.sourceStep.sourceTypeId||"",selectSourceSelected=e=>e.processingCenterIngestion.sourceStep.sourceSelected||null,selectOffset=e=>e.processingCenterIngestion.sourceStep.offset,selectError=e=>e.processingCenterIngestion.sourceStep.error,selectIsLoading=e=>e.processingCenterIngestion.sourceStep.isLoading,selectHasMore=e=>e.processingCenterIngestion.sourceStep.hasMore,selectSearchedSources=e=>e.processingCenterIngestion.sourceStep.searchedSources||[],selectMediaChunkLength=e=>e.processingCenterIngestion.sourceStep.mediaChunkLength,selectClusterSelected=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusterSelected,selectClustersError=e=>e.processingCenterIngestion.sourceStep.clusterSection.error,selectClustersIsLoading=e=>e.processingCenterIngestion.sourceStep.clusterSection.isLoading,selectClustersOffset=e=>e.processingCenterIngestion.sourceStep.clusterSection.offset,selectClusters=e=>e.processingCenterIngestion.sourceStep.clusterSection.clusters||[],selectIsAffiliateSearch=e=>e.processingCenterIngestion.sourceStep.isAffiliateSearch,Frequency={Hours:"Hours",Days:"Days",Daily:"Daily",TwiceDaily:"TwiceDaily",Weekly:"Weekly"},podcastAdapterId="a725de38-f538-4c4a-b835-b0bd4ab1a255",FrequencySchedular=({activeEngine:e})=>{const t=useStyles$8()["classes"],r=useDispatch();var n=useSelector(selectMediaChunkLength),s=Number(useSelector(selectHoursInterval)),o=Number(useSelector(selectDaysInterval));const a=useSelector(selectDailyTimeslotOne),i=useSelector(selectDailyTimeslotTwo);var l=useSelector(selectDaysTimeslot),c=useSelector(selectScheduleType),u=useSelector(selectStartDate),d=useSelector(selectEndDate),p=useSelector(selectContinuousStartDate),g=useSelector(selectContinuousEndDate);const m=useSelector(selectFrequency);var f=useSelector(selectNoEndDate);const h=useSelector(selectTimezone),y=useSelector(selectFrequencySchedularState);RunMode.Recurring,RunMode.Continuous,RunMode.Once,RunMode.Now;e=e.id;react.exports.useEffect(()=>{r(actions$5.setFrequencyIsValid(validateFrequencyScheduler(y)))},[y]),react.exports.useEffect(()=>{var e;m===Frequency.Daily&&(e=generateDailyTimeslots(a),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,h)),r(actions$5.setDailyScheduleParts(e)))},[a,h,m]),react.exports.useEffect(()=>{var e;m===Frequency.TwiceDaily&&(e=generateDailyTimeslots(a,i),e=lodash.exports.cloneDeep(formatWeeklyPayload(e,h)),r(actions$5.setTwiceDailyScheduleParts(e)))},[a,i,h,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;r(actions$5.resetFrequencyState()),r(actions$5.setScheduleType(e))}},{children:[jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-recurring",value:RunMode.Recurring,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioRecurring()}),jsxRuntime.exports.jsx(FormControlLabel,{"data-testid":"ingestion-job-frequency-radio-continuous",value:RunMode.Continuous,control:jsxRuntime.exports.jsx(Radio,{}),label:SHARED_TEXT.frequencySchedular.radioContinuous()})]}))})})]}),!1,c===RunMode.Recurring&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:u,onChange:e=>{e=e.target.value;r(actions$5.setStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!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:d,onChange:e=>{e=e.target.value;r(actions$5.setEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(u,d,!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;r(actions$5.setNoEndDate(e))}}),label:SHARED_TEXT.frequencySchedular.labelNoEndDate()})}))})]})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.ingestionRow},{children:[jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsxs(FormControl,Object.assign({className:t.frequencySelectContainer},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({required:!0,shrink:!0,id:"frequency-label"},{children:SHARED_TEXT.frequencySchedular.inputLabelFrequency()})),jsxRuntime.exports.jsxs(Select,Object.assign({"data-testid":"ingestion-job-frequency-select-frequency",required:!0,labelId:"frequency-label",id:"frequency",value:m,label:SHARED_TEXT.frequencySchedular.inputLabelFrequency(),displayEmpty:!0,onChange:e=>{e=e.target.value;r(actions$5.setFrequency(e)),r(actions$5.resetFrequencyFields())}},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-hours",value:Frequency.Hours},{children:SHARED_TEXT.frequencySchedular.labelHours()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-days",value:Frequency.Days},{children:SHARED_TEXT.frequencySchedular.labelDays()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-daily",value:Frequency.Daily},{children:SHARED_TEXT.frequencySchedular.labelDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-twice-daily",value:Frequency.TwiceDaily},{children:SHARED_TEXT.frequencySchedular.labelTwiceDaily()})),jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-testid":"ingestion-job-frequency-select-weekly",value:Frequency.Weekly},{children:SHARED_TEXT.frequencySchedular.labelWeekly()}))]}))]}))}),m===Frequency.Hours&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-hours",label:SHARED_TEXT.frequencySchedular.inputLabelInterval(),type:"number",InputLabelProps:{shrink:!0},value:s,onChange:e=>{e=Number(e.target.value);24<e||e<1||r(actions$5.setHoursInterval(e))}})}))}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,Object.assign({className:t.intervalSelectContainer},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-select-interval-days",id:"outlined-number",label:"Interval",type:"number",InputLabelProps:{shrink:!0},value:o,onChange:e=>{e=Number(e.target.value);365<e||e<1||r(actions$5.setDaysInterval(e))}})}))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.frequencyMessageContainer},{children:m===Frequency.Daily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDaily()})):m===Frequency.TwiceDaily?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-twice-daily",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageTwiceDaily()})):m===Frequency.Hours?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-hours",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageHours()})):m===Frequency.Days?jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"ingestion-job-frequency-message-days",className:t.frequencyMessage},{children:SHARED_TEXT.frequencySchedular.messageDays()})):null}))]})),(m===Frequency.Daily||m===Frequency.TwiceDaily)&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot1",timeslot:a,onChangeTime:e=>{r(actions$5.setDailyTimeslotOne(e))}})})),m===Frequency.TwiceDaily&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotMenu},{children:jsxRuntime.exports.jsx(TimeStartEndField,{"data-testid":"ingestion-job-frequency-select-timeslot2",timeslot:i,onChangeTime:e=>{r(actions$5.setDailyTimeslotTwo(e))}})}))]}),m===Frequency.Days&&jsxRuntime.exports.jsx("div",Object.assign({className:t.timeslotStartMenu},{children:jsxRuntime.exports.jsx(TimeDropdown,{"data-testid":"ingestion-job-frequency-days-start-time",time:l,onChange:e=>{r(actions$5.setDaysTimeslot(e))},max:"endTime",showTooltip:!1})})),(m===Frequency.Hours||m===Frequency.Days)&&podcastAdapterId!==e&&jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"ingestion-job-frequency-message-media-chunk",className:t.daysHoursMessageContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({className:t.daysHoursMessage},{children:SHARED_TEXT.frequencySchedular.messageMediaChunk()})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:t.daysHoursMessage,sx:{fontWeight:"bold"}},{children:[" ",n," "]})),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:()=>{r(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;r(actions$5.setContinuousStartDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})}),jsxRuntime.exports.jsx("div",Object.assign({className:t.textBetweenDateContainer},{children:jsxRuntime.exports.jsx(Typography,{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})})),jsxRuntime.exports.jsx("div",{children:jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-frequency-continuous-end",required:!0,id:"date",label:SHARED_TEXT.frequencySchedular.startDate(),type:"datetime-local",value:g,onChange:e=>{e=e.target.value;r(actions$5.setContinuousEndDate(e))},InputLabelProps:{shrink:!0},error:validateStartAndEndTime(p,g,!0)})})})]}))]}))},getUTCDate=(e,t)=>{t+=getTimezoneOffset(e);try{return new Date(t).toISOString()}catch(e){return(new Date).toISOString()}},getTimezoneOffset=e=>{try{const t=(new Date).toLocaleTimeString("en-US",{timeZone:e,timeZoneName:"longOffset"}),r=t.split(" ").pop();return null===r||void 0===r?void 0:r.replace("GMT","")}catch(e){return console.error("The timezone could not be found - schedule will set in UTC time"),"+00:00"}},generateDailyTimeslots=(e,t)=>{const r={};for(const n of DAYS.ids)r[n]=[e],t&&r[n].push(t);return r},validateStartAndEndTime=(e,t,r)=>!(!r||!isAfter(new Date(e),new Date(t))),validateFrequencyScheduler=e=>{if(e.scheduleType===RunMode.Once)return!0;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=>{const t={runMode:e.frequencySchedular.scheduleType};var r;return e.frequencySchedular.scheduleType===RunMode.Recurring&&(r=e.frequencySchedular.startDate+"T00:00",t.startDateTime=getUTCDate(e.timezone,r),e.frequencySchedular.noEndDate||(r=e.frequencySchedular.endDate+"T23:59",t.stopDateTime=getUTCDate(e.timezone,r)),e.frequencySchedular.frequency===Frequency.Days&&(r=e.frequencySchedular.daysTimeslot+getTimezoneOffset(e.timezone),t.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.daysInterval,startTime:r}]),e.frequencySchedular.frequency===Frequency.Hours&&(t.recurringScheduleParts=[{repeatIntervalUnit:e.frequencySchedular.frequency,repeatInterval:e.frequencySchedular.hoursInterval}]),e.frequencySchedular.frequency===Frequency.Daily&&(t.weeklyScheduleParts=e.frequencySchedular.dailyScheduleParts),e.frequencySchedular.frequency===Frequency.TwiceDaily&&(t.weeklyScheduleParts=e.frequencySchedular.twiceDailyScheduleParts),e.frequencySchedular.frequency===Frequency.Weekly&&(t.weeklyScheduleParts=e.weekly.weeklyScheduleParts)),e.frequencySchedular.scheduleType===RunMode.Continuous&&(t.startDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousStartDate),t.stopDateTime=getUTCDate(e.timezone,e.frequencySchedular.continuousEndDate)),t},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 r of e[t])if(!r.isValid)return!1;return!0},DEFAULT_TIMESLOT_TIMES={start:"09:00",end:"17:00"},createTimeslot=(e,t,r,n,s)=>({start:e,end:t,id:r,isValid:n,isConflict:s}),DAYS={labels:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ids:["Su","M","Tu","W","Th","F","Sa"]},getEnabledDays=e=>{const t=[];for(const r of Object.keys(e))e[r].length&&t.push(r);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)=>{const r=[];for(const i of Object.keys(e)){var n=DAYS.labels[DAYS.ids.indexOf(i)];for(const l of e[i]){var{start:s,end:o,isValid:a}=l,s={scheduledDay:n,startTime:s+getTimezoneOffset(t),stopTime:o+getTimezoneOffset(t)};a&&r.push(s)}}return r},namespace$5="scheduleStep",RunMode={Continuous:"Continuous",Recurring:"Recurring",Once:"Once",Now:"Now"},initialState$4={timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,frequencySchedular:{scheduleType:RunMode.Recurring,startDate:format(new Date,"yyyy-MM-dd"),endDate:format(addDays(new Date,1),"yyyy-MM-dd"),continuousStartDate:(new Date).toISOString().slice(0,16),continuousEndDate:addDays(new Date,1).toISOString().slice(0,16),hoursInterval:1,daysInterval:1,frequency:"Weekly",daysTimeslot:"09:00",dailyTimeslotOne:{id:"timeslotOne",start:"09:00",end:"11:00",isConflict:!1,isValid:!0},dailyTimeslotTwo:{id:"timeslotTwo",start:"13:00",end:"15:00",isConflict:!1,isValid:!0},noEndDate:!0,dailyScheduleParts:[],twiceDailyScheduleParts:[],frequencyIsValid:!0},weekly:{isWeeklyValid:!0,weeklyTimeslots:{Su:[],M:[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],Tu:[],W:[],Th:[],F:[],Sa:[]},weeklyScheduleParts:[]},schedulePayload:{runMode:"",startDateTime:""}},scheduleStepSlice=createSlice({name:"scheduleStep",initialState:initialState$4,reducers:{setTimezone:(e,{payload:t})=>{e.timezone=t},setIsWeeklyValid:(e,{payload:t})=>{e.weekly.isWeeklyValid=t},setWeeklyTimeslots:(e,t)=>{t=t.payload;e.weekly.weeklyTimeslots=t},setWeeklyScheduleParts:(e,t)=>{t=t.payload;e.weekly.weeklyScheduleParts=t},clearWeeklyScheduleParts:e=>{e.weekly.weeklyScheduleParts=[]},setDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.dailyScheduleParts=t},setTwiceDailyScheduleParts:(e,t)=>{t=t.payload;e.frequencySchedular.twiceDailyScheduleParts=t},resetFrequencyState:e=>{e.frequencySchedular=initialState$4.frequencySchedular},resetFrequencyFields:e=>{e.frequencySchedular.dailyTimeslotOne=initialState$4.frequencySchedular.dailyTimeslotOne,e.frequencySchedular.dailyTimeslotTwo=initialState$4.frequencySchedular.dailyTimeslotTwo,e.frequencySchedular.hoursInterval=initialState$4.frequencySchedular.hoursInterval,e.frequencySchedular.daysInterval=initialState$4.frequencySchedular.daysInterval,e.frequencySchedular.daysTimeslot=initialState$4.frequencySchedular.daysTimeslot,e.frequencySchedular.dailyScheduleParts=initialState$4.frequencySchedular.dailyScheduleParts,e.frequencySchedular.twiceDailyScheduleParts=initialState$4.frequencySchedular.twiceDailyScheduleParts},setScheduleType:(e,{payload:t})=>{e.frequencySchedular.scheduleType=t},setStartDate:(e,{payload:t})=>{e.frequencySchedular.startDate=t},setEndDate:(e,{payload:t})=>{e.frequencySchedular.endDate=t},setContinuousStartDate:(e,{payload:t})=>{e.frequencySchedular.continuousStartDate=t},setContinuousEndDate:(e,{payload:t})=>{e.frequencySchedular.continuousEndDate=t},setFrequency:(e,{payload:t})=>{e.frequencySchedular.frequency=t},setNoEndDate:(e,{payload:t})=>{e.frequencySchedular.noEndDate=t},setHoursInterval:(e,{payload:t})=>{e.frequencySchedular.hoursInterval=t},setDaysInterval:(e,{payload:t})=>{e.frequencySchedular.daysInterval=t},setDailyTimeslotOne:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotOne=t},setDailyTimeslotTwo:(e,{payload:t})=>{e.frequencySchedular.dailyTimeslotTwo=t},setDaysTimeslot:(e,{payload:t})=>{e.frequencySchedular.daysTimeslot=t},setFrequencyIsValid:(e,{payload:t})=>{e.frequencySchedular.frequencyIsValid=t},setSchedulePayload:(e,{payload:t})=>{e.schedulePayload=t}}}),actions$5=scheduleStepSlice.actions;var scheduleStep_slice=scheduleStepSlice.reducer;const namespace$4="basicInfoStep",initialState$3={scheduleName:"",sourceDetails:{},error:null,isLoading:!1,isInvalidFields:!1,programs:[],basicInfoMeta:{affiliates:{}}},basicInfoSlice=createSlice({name:"basicInfoStep",initialState:initialState$3,reducers:{getProgramsStart:e=>{e.isLoading=!0},setScheduleName:(e,t)=>{t=t.payload;e.scheduleName=t},setSourceDetails:(e,t)=>{t=t.payload;e.sourceDetails=t},setPrograms:(e,t)=>{t=t.payload;e.programs=t,e.isLoading=!1},setError:(e,{payload:t})=>{e.error=t},setBasicInfoMeta:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),e.basicInfoMeta[null==t?void 0:t.key]=e.basicInfoMeta[null==t?void 0:t.key]||null,e.basicInfoMeta[null==t?void 0:t.key]=(null==t?void 0:t.meta)||null},setInvalidFields:(e,{payload:t})=>{e.isInvalidFields=t},addEditAffiliate:(e,{payload:t})=>{var r=t["source"];e.basicInfoMeta&&(e.basicInfoMeta.affiliates[r.id]=t)},deleteAffiliate:(e,{payload:t})=>{if(e.basicInfoMeta){const r=lodash.exports.cloneDeep(e.basicInfoMeta.affiliates);delete r[t],e.basicInfoMeta.affiliates=r}},setImage:(e,{})=>{},deleteImageUrl:(e,{payload:t})=>{e.basicInfoMeta||(e.basicInfoMeta={affiliates:{}}),delete e.basicInfoMeta[null==t?void 0:t.key]}}}),actions$4=basicInfoSlice.actions;var basicInfoStep_slice=basicInfoSlice.reducer;const namespace$3="processingStep",initialState$2={dagTemplateId:void 0,loadingStatus:LoadingStatus.Idle,allDagTemplates:[],offset:0,hasMore:!0},processingSlice=createSlice({name:"processingStep",initialState:initialState$2,reducers:{fetchDagTemplatesStart:e=>{e.loadingStatus=LoadingStatus.Pending},fetchDagTemplatesSucceeded:(r,e)=>{r.loadingStatus=LoadingStatus.Complete,e.payload.forEach(t=>{var e=r.allDagTemplates.findIndex(e=>e.id===t.id);-1===e?r.allDagTemplates.push(t):r.allDagTemplates.splice(e,1,t)})},fetchDagTemplatesFailed:e=>{e.loadingStatus=LoadingStatus.Failed},setOffset:(e,{payload:t})=>{e.offset=t},setHasMore:(e,{payload:t})=>{e.hasMore=t},setDagTemplateId:(e,t)=>{t=t.payload;e.dagTemplateId=t},clearDagTemplateId:e=>{e.dagTemplateId=void 0}}}),actions$3=processingSlice.actions;var processingStep_slice=processingSlice.reducer;const namespace$2="location",initialState$1={selectedFolderId:void 0},locationSlice=createSlice({name:"location",initialState:initialState$1,reducers:{setSelectedFolderId:(e,{payload:t})=>{e.selectedFolderId=t}}}),actions$2=locationSlice.actions;var location_slice=locationSlice.reducer;const namespace$1="permissions",initialState={permissionsPayload:void 0},permissionsSlice=createSlice({name:"permissions",initialState:initialState,reducers:{setPermissionsPayload:(e,{payload:t})=>{e.permissionsPayload=t}}}),actions$1=permissionsSlice.actions;var permissions_slice=permissionsSlice.reducer;const selectSelectedFolderId=e=>e[SLICE_NAME][namespace$2].selectedFolderId;var locationSelectors=Object.freeze({__proto__:null,selectSelectedFolderId:selectSelectedFolderId});const selectPermissionsPayload=e=>e[SLICE_NAME][namespace$1].permissionsPayload;var permissionsSelectors=Object.freeze({__proto__:null,selectPermissionsPayload:selectPermissionsPayload});const selectors={location:locationSelectors,permissions:permissionsSelectors},namespace=SLICE_NAME,actions={[namespace$8]:actions$8,[namespace$7]:actions$7,[namespace$6]:actions$6,[namespace$5]:actions$5,[namespace$4]:actions$4,[namespace$3]:actions$3,[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$8]:uiState,[namespace$7]:ingestionJobsWizard_slice,[namespace$6]:selectSourceStep_slice,[namespace$5]:scheduleStep_slice,[namespace$4]:basicInfoStep_slice,[namespace$3]:processingStep_slice,[namespace$2]:location_slice,[namespace$1]:permissions_slice}),selectUIStateStatus=e=>e[namespace].uiState.status,selectApiConfigs=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,r)=>({apiRoot:e,graphQLEndpoint:t,token:r}));function __rest(e,t){var r={};for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)t.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(e,s[n])&&(r[s[n]]=e[s[n]]);return r}function __awaiter(e,a,i,l){return new(i=i||Promise)(function(r,t){function n(e){try{o(l.next(e))}catch(e){t(e)}}function s(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(n,s)}o((l=l.apply(e,a||[])).next())})}function getSourcesBySearchTerm(t,r=0,n,s,o,a){return __awaiter(this,void 0,void 0,function*(){console.log("sourceTypeIds:",s);var e="getSourcesSearch";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getSourcesSearch($sourceTypeIds: [ID!], $offset: Int, $name: String, $limit: Int, $includePublic: Boolean ){\n sources(\n sourceTypeIds: $sourceTypeIds,\n offset: $offset,\n limit: $limit,\n name: $name,\n includePublic: $includePublic,\n permission: owner,\n nameMatch: contains,\n orderBy:{\n direction: asc\n field: name\n }\n ) {\n count\n records {\n id\n name\n sourceTypeId\n thumbnailUrl\n createdDateTime\n modifiedDateTime\n permission,\n details,\n sourceType {\n name,\n sourceSchema {\n definition\n }\n }\n }\n }\n }\n ",operationName:e,variables:{sourceTypeIds:s,name:n,offset:r,limit:o,includePublic:a}},t))).sources})}function getClusters(t,r=0,n){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:r,limit:n}},t))).clusters})}function*sourcesSearchTermSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectOffset),r=yield select(selectSourceTypeId),n=yield select(selectSearchTerm),s=yield select(selectIsAffiliateSearch),o=yield call$k(getSourcesBySearchTerm,e,t,n,r,30,s);yield put(actions$6.sourcesSearchSucceeded(o.records)),30===o.count?yield put(actions$6.setHasMore(!0)):yield put(actions$6.setHasMore(!1)),yield put(actions$6.setOffset(t+30))}catch(e){yield put(actions$6.setError(e))}}function*clusterSearchSaga(){try{var e=yield select(selectApiConfigs),t=yield select(selectClustersOffset),r=yield call$k(getClusters,e,t,30);if(yield put(actions$6.clustersSearchSucceeded(r.records)),30===r.count)yield put(actions$6.clustersSetHasMore(!0)),yield put(actions$6.clustersSetOffset(t+30)),yield put(actions$6.clustersSearchStart());else{const s=yield select(selectClusters);var n=s.map(e=>e.default).indexOf(!0);(yield select(selectClusterSelected))||(yield put(actions$6.setSelectedCluster(s[n]||null))),yield put(actions$6.clustersSetOffset(t+30)),yield put(actions$6.clustersSetHasMore(!1))}}catch(e){yield put(actions$6.clusterSetError(e))}}function*getSourcesSearchTermWatcher(){yield takeLatest$1(actions$6.sourcesSearchStart.type,sourcesSearchTermSaga)}function*getClusterSearchWatcher(){yield takeLatest$1(actions$6.clustersSearchStart.type,clusterSearchSaga)}function getDagTemplates(t,r=0,n){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:r,limit:n}},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),r=yield select(selectDagTemplatesOffset),n=yield call$k(getDagTemplates,t,r,100);yield put(actions$3.fetchDagTemplatesSucceeded(n.records)),100===(null==(e=null==n?void 0:n.records)?void 0:e.length)?yield put(actions$3.setHasMore(!0)):yield put(actions$3.setHasMore(!1)),yield put(actions$3.setOffset(r+100))}catch(e){yield put(actions$3.fetchDagTemplatesFailed())}}function*fetchDagTemplatesWatcher(){yield takeLatest$1(actions$3.fetchDagTemplatesStart.type,fetchDagTemplatesSaga)}var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace,stringSlice,call$7=functionCall,hasOwn$2=hasOwnProperty_1,isPrototypeOf$3=objectIsPrototypeOf,regExpFlags=regexpFlags$1,RegExpPrototype$1=RegExp.prototype,regexpGetFlags=function(e){var t=e.flags;return void 0!==t||"flags"in RegExpPrototype$1||hasOwn$2(e,"flags")||!isPrototypeOf$3(RegExpPrototype$1,e)?t:call$7(regExpFlags,e)},PROPER_FUNCTION_NAME=functionName.PROPER,defineBuiltIn$2=defineBuiltIn$7,anObject$4=anObject$f,$toString=toString$8,fails$1=fails$l,getRegExpFlags=regexpGetFlags,TO_STRING="toString",RegExpPrototype=RegExp.prototype,n$ToString=RegExpPrototype[TO_STRING],NOT_GENERIC=fails$1(function(){return"/a/b"!=n$ToString.call({source:"a",flags:"b"})}),INCORRECT_NAME=PROPER_FUNCTION_NAME&&n$ToString.name!=TO_STRING,$$7=((NOT_GENERIC||INCORRECT_NAME)&&defineBuiltIn$2(RegExp.prototype,TO_STRING,function(){var e=anObject$4(this);return"/"+$toString(e.source)+"/"+$toString(getRegExpFlags(e))},{unsafe:!0}),_export),DESCRIPTORS$1=descriptors,global$9=global$o,uncurryThis$3=functionUncurryThis,hasOwn$1=hasOwnProperty_1,isCallable$4=isCallable$n,isPrototypeOf$2=objectIsPrototypeOf,toString$1=toString$8,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$9.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function getPrograms(t,r){var n;return __awaiter(this,void 0,void 0,function*(){var e="getPrograms",e=yield baseGraphQLApiWithError(Object.assign({query:`
2
2
  query ${e} {
3
3
  sourceType(id: ${r}) {
4
4
  programFormats
@@ -11,4 +11,4 @@ import{bX as createSvgIcon,j as jsxRuntime,H as createSlice,m as makeStyles,F as
11
11
  getUrl
12
12
  }
13
13
  }
14
- `,operationName:"getUrl",variables:e},n))).getSignedWritableUrl,r={method:"PUT",headers:{"Content-Type":s.type,"X-Veritone-Application":"aiware-sdk"},body:s};try{return yield fetch(e,r),t}catch(e){return console.log(e),""}})}function createScheduledJob(t,r){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:r}},t))).id})}getBuiltIn("Promise"),$$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),function(e){e[e.Once=0]="Once",e[e.Continuous=1]="Continuous",e[e.Recurring=2]="Recurring",e[e.Now=3]="Now"}(ERunMode=ERunMode||{}),function(e){e[e.chunk=0]="chunk",e[e.stream=1]="stream"}(EIoFolderMode=EIoFolderMode||{}),function(e){e[e.input=0]="input",e[e.output=1]="output"}(EIoFolderType=EIoFolderType||{});const selectScheduleName=e=>e.processingCenterIngestion.basicInfoStep.scheduleName||"",selectPrograms=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.programs},selectBasicInfoMeta=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta},selectBasicInfoInvalidFields=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.isInvalidFields},selectBasicInfoAffiliates=e=>{return null==(e=null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta)?void 0:e.affiliates};function*saveScheduledJobSaga(){var e,t,r,n=yield select(preferredLanguageSelector);const s=AIWareFormatMessage(n);try{var o=yield select(selectApiConfigs),a=yield select(selectSelectedFolderId),i=yield select(selectSchedulePayload),l=yield select(selectTimezone),c=yield select(selectDagTemplateId),u=yield select(selectScheduleName);const $=yield select(selectBasicInfoMeta);var d=yield select(userSelector),p=(null==(t=null==(e=null==d?void 0:d.organization)?void 0:e.organizationId)?void 0:t.toString())||"",g=yield select(selectSourceSelected),m=yield select(selectMediaChunkLength),f=yield select(selectClusterSelected);const x=yield select(selectClusters);var h=yield select(selectContentTemplatesToSave),y=Object.values(h).map(e=>({schemaId:e.schemaId,data:e.data})),S=null==(r=x.find(e=>!0===e.default))?void 0:r.id;const T={name:u,description:$.description,isActive:!0,runMode:i.runMode,organizationId:p,startDateTime:i.startDateTime,stopDateTime:i.stopDateTime,weeklyScheduleParts:i.weeklyScheduleParts,details:{dagTemplateId:c,timezone:l},dagTemplates:{dagTemplateIds:[c],params:{SOURCE_ID:g.id,CLUSTER_ID:f?f.id:S},jobConfig:{maxTDODuration:m,createTDOInput:{parentFolderId:a,sourceData:{sourceId:g.id}}}}},E=(0<y.length&&(T.contentTemplates=y),{Su:"Sunday",M:"Monday",Tu:"Tuesday",W:"Wednesday",Th:"Thursday",F:"Friday",Sa:"Saturday"});Object.keys($).forEach(e=>{var t=$[e];switch(e){case"programWebsite":T.details.websiteUrl=t;break;case"affiliates":0<Object.keys(t).length&&(T.affiliates=[],Object.values(t).forEach(n=>{const s=n.source.id;Object.keys(n.schedule).forEach(e=>{const t=E[e],r=n.schedule[e];Array.isArray(r)&&0<r.length&&r.forEach(e=>{T.affiliates.push({sourceId:s,scheduledDay:t,startDateTime:n.startDate,stopDateTime:n.stopDate,startTime:e.start,stopTime:e.end})})})}));break;default:T.details[e]=t}});var b=yield call$k(createScheduledJob,o,T);console.log("Created scheduled job "+b),yield put(showMessage({content:s({id:"os-processing-center-ingestion.wizard-panel.save-success",defaultMessage:[{type:0,value:"Scheduled job created"}]}),severity:MessageSeverity.Success})),yield put(hidePanel("PROCESSING_CENTER_INGESTION")),yield put(actions$7.saveScheduledJobSuccess())}catch(e){yield put(showMessage({content:s({id:"os-processing-center-ingestion.wizard-panel.save-failure",defaultMessage:[{type:0,value:"Problem creating scheduled job, please try again"}]}),severity:MessageSeverity.Error})),yield put(actions$7.saveScheduledJobFailure())}}function*saveScheduledJobWatcher(){yield takeLatest$1(actions$7.saveScheduledJobStart.type,saveScheduledJobSaga)}function*getProgramsSaga(){try{var e=yield select(selectApiConfigs),t=(yield select(selectSourceSelected)).sourceTypeId,r=yield call$k(getPrograms,e,t);yield put(actions$4.setPrograms(r))}catch(e){yield put(actions$4.setError(e))}}function*getImageURLSaga(e){try{var t=yield select(selectApiConfigs),{image:r,type:n}=e.payload,s=yield call$k(getImageURL,t,r);yield put(actions$4.setBasicInfoMeta({key:n,meta:s}))}catch(e){yield put(actions$4.setError(e))}}function*getProgramsWatcher(){yield takeLatest$1(actions$4.getProgramsStart.type,getProgramsSaga)}function*getImageURLWatcher(){yield takeLatest$1(actions$4.setImage.type,getImageURLSaga)}function*initProcessingCenterIngestion(){(yield select(selectUIStateStatus))===LoadingStatus.Pending&&(yield put(actions.uiState.initDone()))}function*watchProcessingCenterIngestionInit(){yield takeLatest$1(actions.uiState.init.type,initProcessingCenterIngestion)}function*rootSaga(){yield all([watchProcessingCenterIngestionInit(),getSourcesSearchTermWatcher(),getClusterSearchWatcher(),getProgramsWatcher(),fetchDagTemplatesWatcher(),saveScheduledJobWatcher(),getImageURLWatcher()])}function getProcessingCenterIngestionModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var ENextButtonType,visuallyHidden$1=visuallyHidden;const useStyles$6=makeStyles()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),stepperStyles=makeStyles()(e=>({container:{padding:"20px",borderBottom:"1px solid #D5DFE9"},step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"&+.MuiStepConnector-horizontal":{display:"none"},"& svg":{border:"2px solid white",borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"transparent!important",border:"1px solid",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),PanelHeader=({height:e,onPanelClose:t,activeStep:l,stepLabels:c,steps:u})=>{e=useStyles$6({height:e}).classes;const d=stepperStyles()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"os-pc-ingestion-wizard-close-panel-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1","data-testid":"os-pc-ingestion-wizard-close-panel-title",className:e.title},{children:SHARED_TEXT.ingestionJobsWizard.panelHeader()})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"os-pc-ingestion-wizard-close-panel"},{children:SHARED_TEXT.ingestionJobsWizard.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.ingestionJobsWizard.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"os-pc-ingestion-wizard-close-panel","data-testid":"os-pc-ingestion-wizard-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:d.container},{children:jsxRuntime.exports.jsx(Stepper,Object.assign({activeStep:l},{children:u.map((e,t)=>{var{number:e,completed:r}=e;const n=c[e];var s=Math.abs(e-l)<2,o=0===e,a=e===u.length-1,i=e<l,e=l<e,e=`${d.step} ${e?d.futureStep:""} ${i?d.previousStep:""} ${s||i?"":d.hiddenStep} ${o?"is-first-step":""} `+(a?"is-last-step":"");return jsxRuntime.exports.jsx(Step,Object.assign({className:e,completed:r},{children:jsxRuntime.exports.jsx(StepLabel,{children:s&&n()})}),t)})}))}))]})},useStyles$5=makeStyles()(e=>({panelContainer:{padding:"30px",height:"calc(100vh - 265px)",overflowY:"scroll"}})),selectActiveStep=e=>e.processingCenterIngestion.ingestionJobsWizard.activeStep,selectSteps=e=>e.processingCenterIngestion.ingestionJobsWizard.steps,selectIsFullScreen=e=>{return e.processingCenterIngestion.ingestionJobsWizard.isFullScreen},useStyles$4=makeStyles()(e=>({locationAndPermissionsWrapper:{display:"flex",flexDirection:"column",gap:e.spacing(4)},locationFolderWrapper:{width:"100%",marginTop:e.spacing(4),padding:e.spacing(2),border:"1px solid #D5DFE9",borderRadius:4,display:"flex",alignItems:"center",position:"relative"},spacer:{display:"block",flex:1},folderIcon:{marginRight:e.spacing(2)},folderLabel:{fontFamily:"Nunito",display:"block",color:"#5C6269",fontSize:12,position:"absolute",top:-10,left:e.spacing(1),paddingLeft:e.spacing(1),paddingRight:e.spacing(1),background:"#fff"},folderInputLabel:{fontFamily:"Nunito",cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:"#1871E8"}}})),useStyles$3=makeStyles()(e=>({buttonRow:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px",flexDirection:"row"}})),PanelControls$1=(!function(e){e.SKIP="SKIP",e.NEXT="NEXT",e.CREATE_SCHEDULED_JOB="CREATE_SCHEDULED_JOB"}(ENextButtonType=ENextButtonType||{}),({disableNext:e,disableBack:t,onClickNext:r,onClickBack:n,nextButtonType:s=ENextButtonType.NEXT,invalidFields:o=!1})=>{var a=useStyles$3()["classes"];const i=useSelector(selectScheduleState),l=useSelector(selectActiveStep),c=useDispatch();return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-ingestion-wizard-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-back-btn",sx:{color:"#2A323C"},onClick:()=>{1===l&&c(hidePanel("PROCESSING_CENTER_INGESTION")),c(actions$7.backStep()),n&&n()},disabled:t},{children:1!==l?SHARED_TEXT.backButton():SHARED_TEXT.cancelButton()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-next-btn",onClick:()=>{var e;3===l&&(e=setApiPayload(i),c(actions$5.setSchedulePayload(e))),6===l&&c(actions$7.saveScheduledJobStart()),c(actions$7.nextStep()),r&&r()},variant:"contained",disabled:e},{children:(()=>{switch(s){case ENextButtonType.NEXT:return SHARED_TEXT.nextButton();case ENextButtonType.SKIP:return SHARED_TEXT.skipButton();case ENextButtonType.CREATE_SCHEDULED_JOB:return SHARED_TEXT.createScheduledJobButton();default:return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})}})()}))})}))]}))}),enablePermissions=!1,LocationAndPermissionsStep=()=>{var e=useStyles$4()["classes"];const r=useDispatch(),n=useSelector(selectIsFullScreen),t=(useSelector(selectIsOLPEnabled),useSelector(selectors$1.viewMyFiles.selectRootFolderId)),s=useSelector(selectors.location.selectSelectedFolderId);var o=useSelector(selectors$1.entities.selectFolderEntity(s||t));react.exports.useEffect(()=>{t&&!s&&r(actions.location.setSelectedFolderId(t))},[r,t,s]);const a=react.exports.useCallback(e=>{r(unmountPanel("DATA_CENTER_FOLDERS_AND_FILES")),r(actions.location.setSelectedFolderId(e))},[r]);var i=react.exports.useCallback(()=>{r(actions$9.viewMyFiles.toggleFileOrFolderSelected(null));var e={name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:"folders",onSelect:a,selectHomeText:SHARED_TEXT.location.chooseHome(),selectItemText:SHARED_TEXT.location.chooseLocation()}},t={panelId:"DATA_CENTER_FOLDERS_AND_FILES",disableHide:!1,parentPanelId:"PROCESSING_CENTER_INGESTION",type:"APP_BAR_PANEL_TEMPLATE",size:"small",marginTop:n?0:55,marginStart:n?0:80,height:600,header:{title:"Choose a Location"},dimmed:0,zIndex:n?1011:1002,dimmedStatus:"dimParent"};r(mountPanel({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:e,panelConfig:t}))},[r,n,a]);return jsxRuntime.exports.jsxs("div",Object.assign({className:e.locationAndPermissionsWrapper},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2"},{children:SHARED_TEXT.location.sectionTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.location.chooseLocationDetails()})),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"processing-center-location-folder",className:e.locationFolderWrapper},{children:[jsxRuntime.exports.jsx("span",Object.assign({className:e.folderLabel,"data-test":"processing-center-location-folder-label"},{children:SHARED_TEXT.location.folderInputLabel()})),jsxRuntime.exports.jsx(FolderOpen,{className:e.folderIcon}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",color:"textPrimary","data-test":"processing-center-location-folder-path"},{children:(null==o?void 0:o.id)===t?SHARED_TEXT.location.homeFolderLabel():null==o?void 0:o.name})),jsxRuntime.exports.jsx("span",{className:e.spacer}),jsxRuntime.exports.jsx("span",Object.assign({className:e.folderInputLabel,onClick:i,role:"button","data-test":"processing-center-location-select-btn"},{children:SHARED_TEXT.location.changeLocationButton()}))]}))]}),enablePermissions,jsxRuntime.exports.jsx(PanelControls$1,{disableNext:!1,disableBack:!1,nextButtonType:ENextButtonType.CREATE_SCHEDULED_JOB})]}))},stepLabels={1:SHARED_TEXT.ingestionJobsWizard.stepLabels.selectSource,2:SHARED_TEXT.ingestionJobsWizard.stepLabels.basicInfo,3:SHARED_TEXT.ingestionJobsWizard.stepLabels.schedule,4:SHARED_TEXT.ingestionJobsWizard.stepLabels.processing,5:SHARED_TEXT.ingestionJobsWizard.stepLabels.contentTemplates,6:SHARED_TEXT.ingestionJobsWizard.stepLabels.location};class IngestionJobsWizardErrorBoundary extends react.exports.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e){console.log("componentDidCatch",e)}render(){return this.state.hasError&&console.log("Render Error",this.state.hasError),this.state.hasError?jsxRuntime.exports.jsx("h3",{children:"An error has occurred."}):this.props.children}}const IngestionJobsWizard=e=>{var t=useStyles$5()["classes"];const r=useDispatch();var n=useSelector(selectSteps),s=useSelector(selectActiveStep),o=react.exports.lazy(()=>import("./js-core.esm72.js")),a=react.exports.lazy(()=>import("./js-core.esm73.js")),i=react.exports.lazy(()=>import("./js-core.esm74.js")),l=react.exports.lazy(()=>import("./js-core.esm75.js")),c=react.exports.lazy(()=>import("./js-core.esm76.js"));react.exports.useEffect(()=>{r(actions$7.setActiveEngine(e.activeEngine)),r(actions$7.setIsFullScreen(Boolean(null==e?void 0:e.isFullScreen)))},[e.activeEngine,null==e?void 0:e.isFullScreen]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"700px"}},{children:[jsxRuntime.exports.jsx(PanelHeader,{steps:n,activeStep:s,stepLabels:stepLabels,height:64,onPanelClose:()=>r(hidePanel("PROCESSING_CENTER_INGESTION"))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.panelContainer},{children:jsxRuntime.exports.jsx(IngestionJobsWizardErrorBoundary,{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[1===s&&jsxRuntime.exports.jsx(o,{sourceTypeIds:null==(n=null==e?void 0:e.activeEngine)?void 0:n.supportedSourceTypes}),2===s&&jsxRuntime.exports.jsx(a,{activeEngine:null==e?void 0:e.activeEngine}),3===s&&jsxRuntime.exports.jsx(i,{activeEngine:null==e?void 0:e.activeEngine}),4===s&&jsxRuntime.exports.jsx(c,{}),5===s&&jsxRuntime.exports.jsx(l,{}),6===s&&jsxRuntime.exports.jsx(LocationAndPermissionsStep,{})]}))})}))]}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),ProcessingCenterIngestion=e=>(useDispatch(),jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(lib.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"],r=useDispatch(),n=["1","5","15","30","45","60"];var e=useSelector(selectMediaChunkLength)||"15",s=useSelector(selectClusters);const o=useSelector(selectClusterSelected),[a,i]=react.exports.useState(null),[l,c]=react.exports.useState(e);e=useSelector(selectClustersError);const u=useSelector(selectClustersIsLoading);react.exports.useEffect(()=>{r(actions$6.clustersSearchStart())},[]),react.exports.useEffect(()=>{u||i(o||null)},[u,o]);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginLeft:"30px"}},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:!u&&!e&&jsxRuntime.exports.jsx(Autocomplete,{value:a,onChange:(e,t)=>{i(t)},sx:{width:"320px"},options:s,getOptionLabel:e=>e?e.name:"",renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{InputLabelProps:{shrink:!0},label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.clusterLabel",defaultMessage:"Cluster",description:"text for cluster label"})})),renderOption:(e,t)=>react.exports.createElement("div",Object.assign({},e,{key:t.id,"data-test":"processing-center-ingestion-cluster-item-"+t.id}),jsxRuntime.exports.jsx(Typography,Object.assign({noWrap:!0},{children:t.name})))})})),jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({id:"ingestion-media-chunk-length-label"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.mediaChunkLabel",defaultMessage:"Media Chunk Length",description:"text for media chunk label"})})),jsxRuntime.exports.jsx(Select,Object.assign({sx:{width:"320px"},labelId:"ingestion-media-chunk-length-label",id:"ingestion-media-chunk-length","data-test":"ingestion-media-chunk-length-select",value:l,label:"Media Chunk Length",onChange:e=>{e=e.target.value;c(e)}},{children:[n.map(e=>jsxRuntime.exports.jsxs(MenuItem,Object.assign({value:e},{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:()=>r(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-test":"os-processing-center-ingestion-advanced-savebutton",onClick:()=>{a&&r(actions$6.setSelectedCluster(a)),r(actions$6.setMediaChunkLength(l)),r(t())},variant:"contained",disabled:!a},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.savebutton",defaultMessage:"Save",description:"Save button text"})}))]}))]}))},useStyles$2=makeStyles()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column",padding:"30px",boxSizing:"border-box",gap:"25px"}})),PanelControls=({disableSave:e,disableCancel:t=!1,activeView:r,onClose:n,onSave:s,invalidFields:o=!1})=>{var a=useStyles$1()["classes"];const[i,l]=react.exports.useState(!1);return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-affiliate-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-affiliate-panel-cancel-btn",sx:{color:"#2A323C"},onClick:()=>{n()},disabled:t||i},{children:SHARED_TEXT.affiliatePanel.controls.cancel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(LoadingButton,Object.assign({loading:i,"data-testid":"pc-affiliate-panel-save-btn",onClick:()=>{l(!0),setTimeout(()=>{l(!1),s(),n()},1e3)},variant:"contained",disabled:e},{children:(()=>{switch(r){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[r,n]=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;n(e),t(e)},value:r,placeholder:"Search Source name.."})]}))},SelectSourceItem=({source:e,onChangeSource:t})=>{var r=useStyles()["classes"],{id:n,name:s}=e;return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({onClick:()=>{t(e)},className:r.source},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-source-"+n,className:r.sourceItem,noWrap:!0},{children:s||n}))}),n),jsxRuntime.exports.jsx(Divider,{})]})},LoadingStateRow=()=>{var e=useStyles()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.rowLoader},{children:jsxRuntime.exports.jsx(CircularProgress,{})}))},SelectSourceInfiniteList=({hasNextPage:t,isNextPageLoading:e,items:s,loadNextPage:r,onChangeSource:o})=>{const n=t?s.length+1:s.length;const a=e=>!t||e<s.length,i=({index:e,style:t})=>{let r;var n;return r=a(e)?(n=s[e],jsxRuntime.exports.jsx(SelectSourceItem,{source:n,onChangeSource:o},e)):jsxRuntime.exports.jsx(LoadingStateRow,{}),jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:r}))};return jsxRuntime.exports.jsx(InfiniteLoader,Object.assign({isItemLoaded:a,itemCount:n,loadMoreItems:e?()=>{}:r},{children:({onItemsRendered:e,ref:t})=>jsxRuntime.exports.jsx(FixedSizeList,Object.assign({height:300,itemCount:n,itemSize:40,onItemsRendered:e,ref:t,width:"100%"},{children:i}))}))},SelectSource=({sourceTypeIds:e,sourceSelected:t,onChangeSource:r,isAffiliate:n,disabled:s})=>{const o=useDispatch();var a=useStyles()["classes"],i=sharedStyles()["classes"],l=react.exports.useRef(null);const[c,u]=react.exports.useState(!1),d=useSelector(selectIsFullScreen);var p=useSelector(selectSearchedSources),g=useSelector(selectHasMore),m=useSelector(selectError);const f=useSelector(selectIsLoading);react.exports.useEffect(()=>{u(!1)},[t]),react.exports.useEffect(()=>{c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceTypeId(e)),o(actions$6.sourcesSearchStart(n)))},[c]);var h=debounce_1(e=>{o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(e)),o(actions$6.sourcesSearchStart(n))},300);return jsxRuntime.exports.jsx(FormControl,Object.assign({id:"selectSourceStep",size:"small",sx:{width:"100%"}},{children:jsxRuntime.exports.jsxs(Select,Object.assign({disabled:s||!1,id:"sources","data-test":"processing-center-ingestion-source-selected",sx:muiSelectStyleOverrides,variant:"outlined",multiple:!1,displayEmpty:!0,onClick:()=>{s||(c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(""))),u(!c))},className:i.field,open:c,onOpen:()=>f,renderValue:()=>t?t.name:SHARED_TEXT.sourceSelectDefaultMessage(),MenuProps:{sx:{padding:0,width:"100%"},anchorOrigin:{vertical:"bottom",horizontal:"center"},classes:{list:a.removePadding,paper:a.removePadding}}},{children:[[jsxRuntime.exports.jsx("div",Object.assign({id:"sourceMenu",className:a.dropdownContainer,ref:l},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.sourceList},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-test":"processing-center-ingestion-source-select-item",disableRipple:!0,focusRipple:!1,sx:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"transparent !important"}},dense:!0,onKeyDown:e=>e.stopPropagation()},{children:jsxRuntime.exports.jsx(SelectSourceSearchInput,{onChange:h})})),jsxRuntime.exports.jsx("div",Object.assign({style:{paddingRight:"8px"}},{children:jsxRuntime.exports.jsx(Divider,{})})),!m&&!f&&0===p.length&&jsxRuntime.exports.jsx("div",Object.assign({style:{width:"100%",display:"flex",height:"100px",alignItems:"center",justifyContent:"center",flexDirection:"column"}},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-not-found",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesNotFoundText()}))})),m&&jsxRuntime.exports.jsxs("div",Object.assign({style:{width:"100%",display:"flex",alignItems:"center",flexDirection:"column"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-has-error-message",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesErrorMessageText()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"ingestion-sources-has-error-retry-button",onClick:()=>{o(actions$6.sourcesSearchStart(n))},sx:{marginTop:"20px"},variant:"contained"},{children:SHARED_TEXT.retryButtonText()}))]})),!m&&0<p.length&&jsxRuntime.exports.jsx("div",Object.assign({id:"sourcesInfiniteList",className:"aiware-el "},{children:jsxRuntime.exports.jsx(SelectSourceInfiniteList,{hasNextPage:g,isNextPageLoading:f,items:p,loadNextPage:()=>{o(actions$6.sourcesSearchStart(n))},onChangeSource:r})}))]}))}),"sourceMenu")],!m&&f&&0===p.length&&jsxRuntime.exports.jsx(LoadingStateList,{text:SHARED_TEXT.loadingSources()}),[!m&&!n&&jsxRuntime.exports.jsxs("div",Object.assign({style:{padding:"0px 25px"}},{children:[jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx("div",Object.assign({className:a.newSourceButton},{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"processing-center-ingestion-create-source-button",onClick:()=>{var e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:d?0:55,marginStart:d?0:80,size:"large",zIndex:d?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,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 r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$=_export,uncurryThis=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$7,toString=toString$8,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:r})=>{var n=useStyles$7()["classes"],n=n.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:r,className:n},{children:e}))}))},TimeRowHoverActions=({onAdd:e,onCopyToAll:t,day:r})=>{var n=useStyles$7()["classes"];const[s,o]=react.exports.useState(!1);return react.exports.useEffect(()=>{s&&(t(r),setTimeout(()=>{o(!1)},1e3))},[s]),jsxRuntime.exports.jsxs("div",Object.assign({className:n.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(r),"data-testid":"pc-wizard-schedule-weekly-timeslot-add-new"},{children:jsxRuntime.exports.jsx(AddCircleOutline,{sx:{color:"#1871E8"}})}))})),jsxRuntime.exports.jsx("div",{className:n.rowDivider}),jsxRuntime.exports.jsxs("div",Object.assign({className:n.rowCopyToAll},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.replaceAllDayTimes},{children:jsxRuntime.exports.jsxs(IconButton,Object.assign({onClick:()=>o(!0),"data-testid":"pc-wizard-schedule-weekly-timeslot-copy-to-all"},{children:[!s&&jsxRuntime.exports.jsx(ContentCopy,{sx:{color:"#1871E8"}}),s&&jsxRuntime.exports.jsx(CheckCircle,{sx:{color:"#40c057"}})]}))})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:"weekly-schedule-row-copy-all-text",sx:{color:s?"#40c057":"#1871E8"}},{children:[!s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copyTimeToAll,s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copiedTimeToAll]}))]}))]}))},DayTimeslotsRow=({day:r,enabled:e,timeslots:t,onAdd:n,onDelete:s,onChangeTime:o,onCopyToAll:a,disabled:i})=>{const l=useStyles$7()["classes"];var c=WEEKLY_SCHEDULER_SHARED_TEXT.days[r].label;if(!e)return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{});return jsxRuntime.exports.jsxs("div",Object.assign({className:l.timeslotRow},{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},{children:t.map((e,t)=>jsxRuntime.exports.jsx(TimeStartEndField,{day:r,timeslot:e,showDelete:0!==t,onDelete:s,onChangeTime:o,disabled:i},t))})),{}),!i&&jsxRuntime.exports.jsx(TimeRowHoverActions,{onAdd:n,onCopyToAll:a,day:r})]}))},DayTimeslotsContainer=({enabledDays:r,timeslots:n,onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l})=>{var e=useStyles$7()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.timeslotsWidgetContainer},{children:DAYS.ids.map((e,t)=>jsxRuntime.exports.jsx(DayTimeslotsRow,{day:e,timeslots:n[e],enabled:r.includes(e),onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l},t))}))},WeeklyScheduler=({isEnabled:e,timeslots:s,onChangeTimeslots:o})=>{var t=useStyles$7()["classes"];const r=e=>{if(getEnabledDays(s).includes(e)){if(1!==getEnabledDays(s).length){const t=lodash.exports.cloneDeep(s);t[e]=[],o(t)}}else{const r=lodash.exports.cloneDeep(s);r[e]=[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],o(r)}};return e?jsxRuntime.exports.jsxs("div",Object.assign({className:t.container},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:t.dayBubblesContainer},{children:DAYS.ids.map((e,t)=>jsxRuntime.exports.jsx(DayBubble,{day:e,enabled:getEnabledDays(s).includes(e),onClick:()=>r(e)},t))})),jsxRuntime.exports.jsx(DayTimeslotsContainer,{enabledDays:getEnabledDays(s),timeslots:s,onAdd:e=>{const t=lodash.exports.cloneDeep(s);t[e]=lodash.exports.cloneDeep(t[e]),t[e].push(createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)),o(t)},onDelete:(e,t)=>{const r=lodash.exports.cloneDeep(s);r[e]=r[e].filter(e=>{e=e.id;return!(t===e)}),o(r)},onChangeTime:(r,n,e)=>{const t=lodash.exports.cloneDeep(s);e&&(t[e]=t[e].map(e=>{var t=e["id"];return n===t?Object.assign(Object.assign(Object.assign({},e),r),{id:n}):e})),o(t)},onCopyToAll:e=>{const t=lodash.exports.cloneDeep(s);for(const r of Object.keys(t))t[r].length&&(t[r]=lodash.exports.cloneDeep(t[e]));o(t)}})]})):null},AddEditAffiliateView=({onClose:e,affiliateId:t,isEdit:r})=>{const[n,s]=react.exports.useState(null),[o,a]=react.exports.useState(initialTimeslots),[i,l]=react.exports.useState(""),[c,u]=react.exports.useState("");var d=validateStartAndEndTime(i,c,!0);const[p,g]=react.exports.useState(!0);var m=useSelector(selectSourceTypeId)||[];const f=useSelector(selectBasicInfoAffiliates),h=useDispatch();react.exports.useEffect(()=>{r&&t&&(s(f[t].source),l(f[t].startDate),u(f[t].stopDate),a(f[t].schedule))},[t,r]);var y=!n||d||!i||!c||!p;const S=(e,t)=>{e=e.target.value;("start"===t?l:u)(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:n,onChangeSource:e=>{s(e)},isAffiliate:!0,disabled:!!r})]}),!!n&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()}))}),jsxRuntime.exports.jsxs(Box,Object.assign({alignItems:"center",display:"flex",justifyContent:"flex-start"},{children:[jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-affiliate-add-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:i,onChange:e=>S(e,"start"),InputLabelProps:{shrink:!0},error:d})}),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-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",value:c,onChange:e=>S(e,"end"),InputLabelProps:{shrink:!0},error:d})})]}))]}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{"& .weekly-schedule-row-copy-all-text":{display:"none"},maxHeight:"60vh"}},{children:jsxRuntime.exports.jsx(WeeklyScheduler,{isEnabled:!!n,onChangeTimeslots:a,timeslots:o})})),jsxRuntime.exports.jsx(PanelControls,{disableSave:y,activeView:r?EAffiliatePanelView.editAffiliate:EAffiliatePanelView.addAffiliate,onClose:e,onSave:()=>{var e;n&&(e={source:n,startDate:i,stopDate:c,schedule:o},h(actions$4.addEditAffiliate(e)))},invalidFields:d||!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:r,isEdit:n})=>{var s=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:s.container},{children:[e===EAffiliatePanelView.addAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t}),e===EAffiliatePanelView.editAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t,affiliateId:r,isEdit:n}),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{isArrayIteratorMethod$1 as $,actions$4 as A,toString$8 as B,internalState as C,anInstance$1 as D,EAffiliatePanelView as E,classof$6 as F,isObject$8 as G,objectCreate as H,createPropertyDescriptor$4 as I,validateArgumentsLength$1 as J,selectBasicInfoAffiliates as K,stringMultibyte as L,makeBuiltIn$2 as M,objectDefineProperty as N,functionCall as O,PanelControls$1 as P,hasOwnProperty_1 as Q,anObject$f as R,SHARED_TEXT as S,getIterator$1 as T,getIteratorMethod$2 as U,arraySliceSimple as V,tryToString$4 as W,format as X,DayTimeslotsContainer as Y,getEnabledDays as Z,_export as _,selectSourceSelected as a,isConstructor$1 as a0,createProperty$1 as a1,iteratorClose$1 as a2,selectTimezone as a3,selectScheduleType as a4,selectFrequency as a5,selectWeeklyTimeslots as a6,selectIsWeeklyValid as a7,actions$5 as a8,selectFrequencyIsValid as a9,initialTimeslots as aa,validateAllTimeslots as ab,formatWeeklyPayload as ac,FrequencySchedular as ad,WeeklyScheduler as ae,ENextButtonType as af,selectDagTemplateId as ag,selectDagTemplatesLoadingStatus as ah,LoadingStatus as ai,actions$3 as aj,selectAllDagTemplates as ak,selectDagTemplatesHasMore as al,__rest as am,index_esm as an,SelectSource as b,actions$6 as c,selectScheduleName as d,selectBasicInfoInvalidFields as e,defineIterator$1 as f,fails$l as g,functionUncurryThis as h,global$o as i,defineBuiltIn$7 as j,setToStringTag$3 as k,createIteratorConstructor$1 as l,isCallable$n as m,descriptors as n,functionBindContext as o,objectAssign as p,engineUserAgent as q,aCallable$7 as r,selectIsFullScreen as s,toObject$4 as t,useStyles as u,lengthOfArrayLike$3 as v,wellKnownSymbol$i as w,engineV8Version as x,selectPrograms as y,selectBasicInfoMeta as z};
14
+ `,operationName:"getUrl",variables:e},n))).getSignedWritableUrl,r={method:"PUT",headers:{"Content-Type":s.type,"X-Veritone-Application":"aiware-sdk"},body:s};try{return yield fetch(e,r),t}catch(e){return console.log(e),""}})}function createScheduledJob(t,r){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:r}},t))).id})}getBuiltIn("Promise"),$$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),function(e){e[e.Once=0]="Once",e[e.Continuous=1]="Continuous",e[e.Recurring=2]="Recurring",e[e.Now=3]="Now"}(ERunMode=ERunMode||{}),function(e){e[e.chunk=0]="chunk",e[e.stream=1]="stream"}(EIoFolderMode=EIoFolderMode||{}),function(e){e[e.input=0]="input",e[e.output=1]="output"}(EIoFolderType=EIoFolderType||{});const selectScheduleName=e=>e.processingCenterIngestion.basicInfoStep.scheduleName||"",selectPrograms=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.programs},selectBasicInfoMeta=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta},selectBasicInfoInvalidFields=e=>{return null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.isInvalidFields},selectBasicInfoAffiliates=e=>{return null==(e=null==(e=null==(e=e.processingCenterIngestion)?void 0:e.basicInfoStep)?void 0:e.basicInfoMeta)?void 0:e.affiliates};function*saveScheduledJobSaga(){var e,t,r,n=yield select(preferredLanguageSelector);const s=AIWareFormatMessage(n);try{var o=yield select(selectApiConfigs),a=yield select(selectSelectedFolderId),i=yield select(selectSchedulePayload),l=yield select(selectTimezone),c=yield select(selectDagTemplateId),u=yield select(selectScheduleName);const $=yield select(selectBasicInfoMeta);var d=yield select(userSelector),p=(null==(t=null==(e=null==d?void 0:d.organization)?void 0:e.organizationId)?void 0:t.toString())||"",g=yield select(selectSourceSelected),m=yield select(selectMediaChunkLength),f=yield select(selectClusterSelected);const x=yield select(selectClusters);var h=yield select(selectContentTemplatesToSave),y=Object.values(h).map(e=>({schemaId:e.schemaId,data:e.data})),S=null==(r=x.find(e=>!0===e.default))?void 0:r.id;const T={name:u,description:$.description,isActive:!0,runMode:i.runMode,organizationId:p,startDateTime:i.startDateTime,stopDateTime:i.stopDateTime,weeklyScheduleParts:i.weeklyScheduleParts,details:{dagTemplateId:c,timezone:l},dagTemplates:{dagTemplateIds:[c],params:{SOURCE_ID:g.id,CLUSTER_ID:f?f.id:S},jobConfig:{maxTDODuration:m,createTDOInput:{parentFolderId:a,sourceData:{sourceId:g.id}}}}},E=(0<y.length&&(T.contentTemplates=y),{Su:"Sunday",M:"Monday",Tu:"Tuesday",W:"Wednesday",Th:"Thursday",F:"Friday",Sa:"Saturday"});Object.keys($).forEach(e=>{var t=$[e];switch(e){case"programWebsite":T.details.websiteUrl=t;break;case"affiliates":0<Object.keys(t).length&&(T.affiliates=[],Object.values(t).forEach(n=>{const s=n.source.id;Object.keys(n.schedule).forEach(e=>{const t=E[e],r=n.schedule[e];Array.isArray(r)&&0<r.length&&r.forEach(e=>{T.affiliates.push({sourceId:s,scheduledDay:t,startDateTime:n.startDate,stopDateTime:n.stopDate,startTime:e.start,stopTime:e.end})})})}));break;default:T.details[e]=t}});var b=yield call$k(createScheduledJob,o,T);console.log("Created scheduled job "+b),yield put(showMessage({content:s({id:"os-processing-center-ingestion.wizard-panel.save-success",defaultMessage:[{type:0,value:"Scheduled job created"}]}),severity:MessageSeverity.Success})),yield put(hidePanel("PROCESSING_CENTER_INGESTION")),yield put(actions$7.saveScheduledJobSuccess())}catch(e){yield put(showMessage({content:s({id:"os-processing-center-ingestion.wizard-panel.save-failure",defaultMessage:[{type:0,value:"Problem creating scheduled job, please try again"}]}),severity:MessageSeverity.Error})),yield put(actions$7.saveScheduledJobFailure())}}function*saveScheduledJobWatcher(){yield takeLatest$1(actions$7.saveScheduledJobStart.type,saveScheduledJobSaga)}function*getProgramsSaga(){try{var e=yield select(selectApiConfigs),t=(yield select(selectSourceSelected)).sourceTypeId,r=yield call$k(getPrograms,e,t);yield put(actions$4.setPrograms(r))}catch(e){yield put(actions$4.setError(e))}}function*getImageURLSaga(e){try{var t=yield select(selectApiConfigs),{image:r,type:n}=e.payload,s=yield call$k(getImageURL,t,r);yield put(actions$4.setBasicInfoMeta({key:n,meta:s}))}catch(e){yield put(actions$4.setError(e))}}function*getProgramsWatcher(){yield takeLatest$1(actions$4.getProgramsStart.type,getProgramsSaga)}function*getImageURLWatcher(){yield takeLatest$1(actions$4.setImage.type,getImageURLSaga)}function*initProcessingCenterIngestion(){(yield select(selectUIStateStatus))===LoadingStatus.Pending&&(yield put(actions.uiState.initDone()))}function*watchProcessingCenterIngestionInit(){yield takeLatest$1(actions.uiState.init.type,initProcessingCenterIngestion)}function*rootSaga(){yield all([watchProcessingCenterIngestionInit(),getSourcesSearchTermWatcher(),getClusterSearchWatcher(),getProgramsWatcher(),fetchDagTemplatesWatcher(),saveScheduledJobWatcher(),getImageURLWatcher()])}function getProcessingCenterIngestionModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var ENextButtonType,visuallyHidden$1=visuallyHidden;const useStyles$6=makeStyles()((e,{height:t})=>({header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(2,2,2,6)},headerNoBorder:{alignItems:"center",borderBottom:"0.5px solid transparent",display:"flex",justifyContent:"space-between",height:t,padding:e.spacing(0,0,0,6)},marginRight:{marginRight:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},title:{userSelect:"none",fontStyle:"normal",fontSize:"18px",lineHeight:e.spacing(5),letterSpacing:"0.25px",textTransform:"uppercase",color:e.palette.text.secondary}})),stepperStyles=makeStyles()(e=>({container:{padding:"20px",borderBottom:"1px solid #D5DFE9"},step:{"& svg":{fontSize:"37px",fill:"#465364"},"& text":{fontSize:"10px",translate:"0px -1px"}},previousStep:{"&+.MuiStepConnector-horizontal":{display:"none"},"& svg":{border:"2px solid white",borderRadius:"50%"},"&:not(.is-first-step)":{}},futureStep:{"& svg":{fill:"transparent!important",border:"1px solid",borderRadius:"50%"},"& text":{fill:"#5C6269"},"&:not(.is-last-step)":{}},hiddenStep:{paddingRight:"0","& svg":{fill:"#F2F5F9!important",border:"2px solid white",color:"#5C6269",fontSize:"32px"},"& text":{fill:"#5C6269"},"&+.MuiStepConnector-horizontal":{display:"none"}}})),PanelHeader=({height:e,onPanelClose:t,activeStep:l,stepLabels:c,steps:u})=>{e=useStyles$6({height:e}).classes;const d=stepperStyles()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs("header",Object.assign({className:e.header,"data-testid":"os-pc-ingestion-wizard-close-panel-header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h1","data-testid":"os-pc-ingestion-wizard-close-panel-title",className:e.title},{children:SHARED_TEXT.ingestionJobsWizard.panelHeader()})),jsxRuntime.exports.jsxs("div",Object.assign({className:e.headerActionContainer},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({style:visuallyHidden$1,id:"os-pc-ingestion-wizard-close-panel"},{children:SHARED_TEXT.ingestionJobsWizard.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.ingestionJobsWizard.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"os-pc-ingestion-wizard-close-panel","data-testid":"os-pc-ingestion-wizard-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:d.container},{children:jsxRuntime.exports.jsx(Stepper,Object.assign({activeStep:l},{children:u.map((e,t)=>{var{number:e,completed:r}=e;const n=c[e];var s=Math.abs(e-l)<2,o=0===e,a=e===u.length-1,i=e<l,e=l<e,e=`${d.step} ${e?d.futureStep:""} ${i?d.previousStep:""} ${s||i?"":d.hiddenStep} ${o?"is-first-step":""} `+(a?"is-last-step":"");return jsxRuntime.exports.jsx(Step,Object.assign({className:e,completed:r},{children:jsxRuntime.exports.jsx(StepLabel,{children:s&&n()})}),t)})}))}))]})},useStyles$5=makeStyles()(e=>({panelContainer:{padding:"30px",height:"calc(100vh - 265px)",overflowY:"scroll"}})),selectActiveStep=e=>e.processingCenterIngestion.ingestionJobsWizard.activeStep,selectSteps=e=>e.processingCenterIngestion.ingestionJobsWizard.steps,selectIsFullScreen=e=>{return e.processingCenterIngestion.ingestionJobsWizard.isFullScreen},useStyles$4=makeStyles()(e=>({locationAndPermissionsWrapper:{display:"flex",flexDirection:"column",gap:e.spacing(4)},locationFolderWrapper:{width:"100%",marginTop:e.spacing(4),padding:e.spacing(2),border:"1px solid #D5DFE9",borderRadius:4,display:"flex",alignItems:"center",position:"relative"},spacer:{display:"block",flex:1},folderIcon:{marginRight:e.spacing(2)},folderLabel:{fontFamily:"Nunito",display:"block",color:"#5C6269",fontSize:12,position:"absolute",top:-10,left:e.spacing(1),paddingLeft:e.spacing(1),paddingRight:e.spacing(1),background:"#fff"},folderInputLabel:{fontFamily:"Nunito",cursor:"pointer",color:"#6098D1",fontSize:14,"&:hover":{color:"#1871E8"}}})),useStyles$3=makeStyles()(e=>({buttonRow:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px",flexDirection:"row"}})),PanelControls$1=(!function(e){e.SKIP="SKIP",e.NEXT="NEXT",e.CREATE_SCHEDULED_JOB="CREATE_SCHEDULED_JOB"}(ENextButtonType=ENextButtonType||{}),({disableNext:e,disableBack:t,onClickNext:r,onClickBack:n,nextButtonType:s=ENextButtonType.NEXT,invalidFields:o=!1})=>{var a=useStyles$3()["classes"];const i=useSelector(selectScheduleState),l=useSelector(selectActiveStep),c=useDispatch();return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-ingestion-wizard-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-back-btn",sx:{color:"#2A323C"},onClick:()=>{1===l&&c(hidePanel("PROCESSING_CENTER_INGESTION")),c(actions$7.backStep()),n&&n()},disabled:t},{children:1!==l?SHARED_TEXT.backButton():SHARED_TEXT.cancelButton()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-ingestion-wizard-next-btn",onClick:()=>{var e;3===l&&(e=setApiPayload(i),c(actions$5.setSchedulePayload(e))),6===l&&c(actions$7.saveScheduledJobStart()),c(actions$7.nextStep()),r&&r()},variant:"contained",disabled:e},{children:(()=>{switch(s){case ENextButtonType.NEXT:return SHARED_TEXT.nextButton();case ENextButtonType.SKIP:return SHARED_TEXT.skipButton();case ENextButtonType.CREATE_SCHEDULED_JOB:return SHARED_TEXT.createScheduledJobButton();default:return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{})}})()}))})}))]}))}),enablePermissions=!1,LocationAndPermissionsStep=()=>{var e=useStyles$4()["classes"];const r=useDispatch(),n=useSelector(selectIsFullScreen),t=(useSelector(selectIsOLPEnabled),useSelector(selectors$1.viewMyFiles.selectRootFolderId)),s=useSelector(selectors.location.selectSelectedFolderId);var o=useSelector(selectors$1.entities.selectFolderEntity(s||t));react.exports.useEffect(()=>{t&&!s&&r(actions.location.setSelectedFolderId(t))},[r,t,s]);const a=react.exports.useCallback(e=>{r(unmountPanel("DATA_CENTER_FOLDERS_AND_FILES")),r(actions.location.setSelectedFolderId(e))},[r]);var i=react.exports.useCallback(()=>{r(actions$9.viewMyFiles.toggleFileOrFolderSelected(null));var e={name:"DATA_CENTER_FOLDERS_AND_FILES",config:{viewType:"folders",onSelect:a,selectHomeText:SHARED_TEXT.location.chooseHome(),selectItemText:SHARED_TEXT.location.chooseLocation()}},t={panelId:"DATA_CENTER_FOLDERS_AND_FILES",disableHide:!1,parentPanelId:"PROCESSING_CENTER_INGESTION",type:"APP_BAR_PANEL_TEMPLATE",size:"small",marginTop:n?0:55,marginStart:n?0:80,height:600,header:{title:"Choose a Location"},dimmed:0,zIndex:n?1011:1002,dimmedStatus:"dimParent"};r(mountPanel({panelId:"DATA_CENTER_FOLDERS_AND_FILES",microFrontend:e,panelConfig:t}))},[r,n,a]);return jsxRuntime.exports.jsxs("div",Object.assign({className:e.locationAndPermissionsWrapper},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h2"},{children:SHARED_TEXT.location.sectionTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2"},{children:SHARED_TEXT.location.chooseLocationDetails()})),jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"processing-center-location-folder",className:e.locationFolderWrapper},{children:[jsxRuntime.exports.jsx("span",Object.assign({className:e.folderLabel,"data-test":"processing-center-location-folder-label"},{children:SHARED_TEXT.location.folderInputLabel()})),jsxRuntime.exports.jsx(FolderOpen,{className:e.folderIcon}),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1",color:"textPrimary","data-test":"processing-center-location-folder-path"},{children:(null==o?void 0:o.id)===t?SHARED_TEXT.location.homeFolderLabel():null==o?void 0:o.name})),jsxRuntime.exports.jsx("span",{className:e.spacer}),jsxRuntime.exports.jsx("span",Object.assign({className:e.folderInputLabel,onClick:i,role:"button","data-test":"processing-center-location-select-btn"},{children:SHARED_TEXT.location.changeLocationButton()}))]}))]}),enablePermissions,jsxRuntime.exports.jsx(PanelControls$1,{disableNext:!1,disableBack:!1,nextButtonType:ENextButtonType.CREATE_SCHEDULED_JOB})]}))},stepLabels={1:SHARED_TEXT.ingestionJobsWizard.stepLabels.selectSource,2:SHARED_TEXT.ingestionJobsWizard.stepLabels.basicInfo,3:SHARED_TEXT.ingestionJobsWizard.stepLabels.schedule,4:SHARED_TEXT.ingestionJobsWizard.stepLabels.processing,5:SHARED_TEXT.ingestionJobsWizard.stepLabels.contentTemplates,6:SHARED_TEXT.ingestionJobsWizard.stepLabels.location};class IngestionJobsWizardErrorBoundary extends react.exports.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e){console.log("componentDidCatch",e)}render(){return this.state.hasError&&console.log("Render Error",this.state.hasError),this.state.hasError?jsxRuntime.exports.jsx("h3",{children:"An error has occurred."}):this.props.children}}const IngestionJobsWizard=e=>{var t=useStyles$5()["classes"];const r=useDispatch();var n=useSelector(selectSteps),s=useSelector(selectActiveStep),o=react.exports.lazy(()=>import("./js-core.esm74.js")),a=react.exports.lazy(()=>import("./js-core.esm75.js")),i=react.exports.lazy(()=>import("./js-core.esm76.js")),l=react.exports.lazy(()=>import("./js-core.esm77.js")),c=react.exports.lazy(()=>import("./js-core.esm78.js"));react.exports.useEffect(()=>{r(actions$7.setActiveEngine(e.activeEngine)),r(actions$7.setIsFullScreen(Boolean(null==e?void 0:e.isFullScreen)))},[e.activeEngine,null==e?void 0:e.isFullScreen]);return jsxRuntime.exports.jsxs("div",Object.assign({style:{height:"700px"}},{children:[jsxRuntime.exports.jsx(PanelHeader,{steps:n,activeStep:s,stepLabels:stepLabels,height:64,onPanelClose:()=>r(hidePanel("PROCESSING_CENTER_INGESTION"))}),jsxRuntime.exports.jsx("div",Object.assign({className:t.panelContainer},{children:jsxRuntime.exports.jsx(IngestionJobsWizardErrorBoundary,{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[1===s&&jsxRuntime.exports.jsx(o,{sourceTypeIds:null==(n=null==e?void 0:e.activeEngine)?void 0:n.supportedSourceTypes}),2===s&&jsxRuntime.exports.jsx(a,{activeEngine:null==e?void 0:e.activeEngine}),3===s&&jsxRuntime.exports.jsx(i,{activeEngine:null==e?void 0:e.activeEngine}),4===s&&jsxRuntime.exports.jsx(c,{}),5===s&&jsxRuntime.exports.jsx(l,{}),6===s&&jsxRuntime.exports.jsx(LocationAndPermissionsStep,{})]}))})}))]}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),ProcessingCenterIngestion=e=>(useDispatch(),jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getProcessingCenterIngestionModule(),getProcessingCenterContentTemplatesModule(),getDataCenterBrowseModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(IngestionJobsWizard,Object.assign({},e))})}))})}))),ProcessingCenterAdvancedSettings=e=>{const t=e["hidePanel"],r=useDispatch(),n=["1","5","15","30","45","60"];var e=useSelector(selectMediaChunkLength)||"15",s=useSelector(selectClusters);const o=useSelector(selectClusterSelected),[a,i]=react.exports.useState(null),[l,c]=react.exports.useState(e);e=useSelector(selectClustersError);const u=useSelector(selectClustersIsLoading);react.exports.useEffect(()=>{r(actions$6.clustersSearchStart())},[]),react.exports.useEffect(()=>{u||i(o||null)},[u,o]);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginLeft:"30px"}},{children:[jsxRuntime.exports.jsx(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:!u&&!e&&jsxRuntime.exports.jsx(Autocomplete,{"data-testid":"processing-center-ingestion-cluster-select",value:a,onChange:(e,t)=>{i(t)},sx:{width:"320px"},options:s,getOptionLabel:e=>e?e.name:"",renderInput:e=>jsxRuntime.exports.jsx(TextField,Object.assign({},e,{InputLabelProps:{shrink:!0},label:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.clusterLabel",defaultMessage:"Cluster",description:"text for cluster label"})})),renderOption:(e,t)=>react.exports.createElement("div",Object.assign({},e,{key:t.id,"data-test":"processing-center-ingestion-cluster-item-"+t.id}),jsxRuntime.exports.jsx(Typography,Object.assign({noWrap:!0},{children:t.name})))})})),jsxRuntime.exports.jsxs(FormControl,Object.assign({sx:{marginTop:"30px"},fullWidth:!0},{children:[jsxRuntime.exports.jsx(InputLabel,Object.assign({id:"ingestion-media-chunk-length-label"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.mediaChunkLabel",defaultMessage:"Media Chunk Length",description:"text for media chunk label"})})),jsxRuntime.exports.jsx(Select,Object.assign({sx:{width:"320px"},labelId:"ingestion-media-chunk-length-label",id:"ingestion-media-chunk-length","data-testid":"ingestion-media-chunk-length-select",value:l,label:"Media Chunk Length",onChange:e=>{e=e.target.value;c(e)}},{children:[n.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:()=>r(t())},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.cancelbutton",defaultMessage:"Cancel",description:"cancel button text"})})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"os-processing-center-ingestion-advanced-savebutton",onClick:()=>{a&&r(actions$6.setSelectedCluster(a)),r(actions$6.setMediaChunkLength(l)),r(t())},variant:"contained",disabled:!a},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-processing-center-ingestion.advanced.savebutton",defaultMessage:"Save",description:"Save button text"})}))]}))]}))},useStyles$2=makeStyles()(e=>({container:{width:"100%",height:"100%",display:"flex",flexDirection:"column",padding:"30px",boxSizing:"border-box",gap:"25px"}})),PanelControls=({disableSave:e,disableCancel:t=!1,activeView:r,onClose:n,onSave:s,invalidFields:o=!1})=>{var a=useStyles$1()["classes"];const[i,l]=react.exports.useState(!1);return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"pc-affiliate-panel-controls",className:a.buttonRow},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"pc-affiliate-panel-cancel-btn",sx:{color:"#2A323C"},onClick:()=>{n()},disabled:t||i},{children:SHARED_TEXT.affiliatePanel.controls.cancel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.ingestionJobsWizard.someFieldsInvalidMessage():e?SHARED_TEXT.ingestionJobsWizard.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(LoadingButton,Object.assign({loading:i,"data-testid":"pc-affiliate-panel-save-btn",onClick:()=>{l(!0),setTimeout(()=>{l(!1),s(),n()},1e3)},variant:"contained",disabled:e},{children:(()=>{switch(r){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[r,n]=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;n(e),t(e)},value:r,placeholder:"Search Source name.."})]}))},SelectSourceItem=({source:e,onChangeSource:t})=>{var r=useStyles()["classes"],{id:n,name:s}=e;return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("div",Object.assign({onClick:()=>{t(e)},className:r.source},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-source-"+s,className:r.sourceItem,noWrap:!0},{children:s||n}))}),n),jsxRuntime.exports.jsx(Divider$1,{})]})},LoadingStateRow=()=>{var e=useStyles()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.rowLoader},{children:jsxRuntime.exports.jsx(CircularProgress,{})}))},SelectSourceInfiniteList=({hasNextPage:t,isNextPageLoading:e,items:s,loadNextPage:r,onChangeSource:o})=>{const n=t?s.length+1:s.length;const a=e=>!t||e<s.length,i=({index:e,style:t})=>{let r;var n;return r=a(e)?(n=s[e],jsxRuntime.exports.jsx(SelectSourceItem,{source:n,onChangeSource:o},e)):jsxRuntime.exports.jsx(LoadingStateRow,{}),jsxRuntime.exports.jsx("div",Object.assign({style:t},{children:r}))};return jsxRuntime.exports.jsx(InfiniteLoader,Object.assign({isItemLoaded:a,itemCount:n,loadMoreItems:e?()=>{}:r},{children:({onItemsRendered:e,ref:t})=>jsxRuntime.exports.jsx(FixedSizeList,Object.assign({height:300,itemCount:n,itemSize:40,onItemsRendered:e,ref:t,width:"100%"},{children:i}))}))},SelectSource=({sourceTypeIds:e,sourceSelected:t,onChangeSource:r,isAffiliate:n,disabled:s})=>{const o=useDispatch();var a=useStyles()["classes"],i=sharedStyles()["classes"],l=react.exports.useRef(null);const[c,u]=react.exports.useState(!1),d=useSelector(selectIsFullScreen);var p=useSelector(selectSearchedSources),g=useSelector(selectHasMore),m=useSelector(selectError);const f=useSelector(selectIsLoading);react.exports.useEffect(()=>{u(!1)},[t]),react.exports.useEffect(()=>{c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceTypeId(e)),o(actions$6.sourcesSearchStart(n)))},[c]);var h=debounce_1(e=>{o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(e)),o(actions$6.sourcesSearchStart(n))},300);return jsxRuntime.exports.jsx(FormControl,Object.assign({id:"selectSourceStep",size:"small",sx:{width:"100%"}},{children:jsxRuntime.exports.jsxs(Select,Object.assign({disabled:s||!1,id:"sources","data-test":"processing-center-ingestion-source-selected",sx:muiSelectStyleOverrides,variant:"outlined",multiple:!1,displayEmpty:!0,onClick:()=>{s||(c&&(o(actions$6.resetSourcesSearch()),o(actions$6.setSourceSearchTerm(""))),u(!c))},className:i.field,open:c,onOpen:()=>f,renderValue:()=>t?t.name:SHARED_TEXT.sourceSelectDefaultMessage(),MenuProps:{sx:{padding:0,width:"100%"},anchorOrigin:{vertical:"bottom",horizontal:"center"},classes:{list:a.removePadding,paper:a.removePadding}}},{children:[[jsxRuntime.exports.jsx("div",Object.assign({id:"sourceMenu",className:a.dropdownContainer,ref:l},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:a.sourceList},{children:[jsxRuntime.exports.jsx(MenuItem,Object.assign({"data-test":"processing-center-ingestion-source-select-item",disableRipple:!0,focusRipple:!1,sx:{backgroundColor:"transparent !important","&:hover":{backgroundColor:"transparent !important"}},dense:!0,onKeyDown:e=>e.stopPropagation()},{children:jsxRuntime.exports.jsx(SelectSourceSearchInput,{onChange:h})})),jsxRuntime.exports.jsx("div",Object.assign({style:{paddingRight:"8px"}},{children:jsxRuntime.exports.jsx(Divider$1,{})})),!m&&!f&&0===p.length&&jsxRuntime.exports.jsx("div",Object.assign({style:{width:"100%",display:"flex",height:"100px",alignItems:"center",justifyContent:"center",flexDirection:"column"}},{children:jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-not-found",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesNotFoundText()}))})),m&&jsxRuntime.exports.jsxs("div",Object.assign({style:{width:"100%",display:"flex",alignItems:"center",flexDirection:"column"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-test":"ingestion-sources-has-error-message",align:"center",variant:"caption",sx:{marginTop:"15px"}},{children:SHARED_TEXT.sourcesErrorMessageText()})),jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"ingestion-sources-has-error-retry-button",onClick:()=>{o(actions$6.sourcesSearchStart(n))},sx:{marginTop:"20px"},variant:"contained"},{children:SHARED_TEXT.retryButtonText()}))]})),!m&&0<p.length&&jsxRuntime.exports.jsx("div",Object.assign({id:"sourcesInfiniteList",className:"aiware-el "},{children:jsxRuntime.exports.jsx(SelectSourceInfiniteList,{hasNextPage:g,isNextPageLoading:f,items:p,loadNextPage:()=>{o(actions$6.sourcesSearchStart(n))},onChangeSource:r})}))]}))}),"sourceMenu")],!m&&f&&0===p.length&&jsxRuntime.exports.jsx(LoadingStateList,{text:SHARED_TEXT.loadingSources()}),[!m&&!n&&jsxRuntime.exports.jsxs("div",Object.assign({style:{padding:"0px 25px"}},{children:[jsxRuntime.exports.jsx(Divider$1,{}),jsxRuntime.exports.jsx("div",Object.assign({className:a.newSourceButton},{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-test":"processing-center-ingestion-create-source-button",onClick:()=>{var e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:d?0:55,marginStart:d?0:80,size:"large",zIndex:d?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,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 r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$=_export,uncurryThis=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$7,toString=toString$8,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:r})=>{var n=useStyles$7()["classes"],n=n.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:r,className:n,"data-testid":"day-bubble-"+e.toLowerCase()},{children:e}))}))},TimeRowHoverActions=({onAdd:e,onCopyToAll:t,day:r})=>{var n=useStyles$7()["classes"];const[s,o]=react.exports.useState(!1);return react.exports.useEffect(()=>{let e;return s&&(t(r),e=setTimeout(()=>{o(!1)},1e3)),()=>{e&&clearTimeout(e)}},[s]),jsxRuntime.exports.jsxs("div",Object.assign({className:n.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(r),"data-testid":"pc-wizard-schedule-weekly-timeslot-add-new"},{children:jsxRuntime.exports.jsx(AddCircleOutline,{sx:{color:"#1871E8"}})}))})),jsxRuntime.exports.jsx("div",{className:n.rowDivider}),jsxRuntime.exports.jsxs("div",Object.assign({className:n.rowCopyToAll},{children:[jsxRuntime.exports.jsx(Tooltip,Object.assign({enterDelay:0,title:WEEKLY_SCHEDULER_SHARED_TEXT.ui.replaceAllDayTimes},{children:jsxRuntime.exports.jsxs(IconButton,Object.assign({onClick:()=>o(!0),"data-testid":"pc-wizard-schedule-weekly-timeslot-copy-to-all"},{children:[!s&&jsxRuntime.exports.jsx(ContentCopy,{sx:{color:"#1871E8"}}),s&&jsxRuntime.exports.jsx(CheckCircle,{sx:{color:"#40c057"}})]}))})),jsxRuntime.exports.jsxs(Typography,Object.assign({className:"weekly-schedule-row-copy-all-text",sx:{color:s?"#40c057":"#1871E8"}},{children:[!s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copyTimeToAll,s&&WEEKLY_SCHEDULER_SHARED_TEXT.ui.copiedTimeToAll]}))]}))]}))},DayTimeslotsRow=({day:r,enabled:e,timeslots:t,onAdd:n,onDelete:s,onChangeTime:o,onCopyToAll:a,disabled:i})=>{const l=useStyles$7()["classes"];var c=WEEKLY_SCHEDULER_SHARED_TEXT.days[r].label;if(!e)return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{});return jsxRuntime.exports.jsxs("div",Object.assign({className:l.timeslotRow,"data-testid":"timeslot-row-day-"+r.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:r,timeslot:e,showDelete:0!==t,onDelete:s,onChangeTime:o,disabled:i,id:""+(t+1)},t))})),{}),!i&&jsxRuntime.exports.jsx(TimeRowHoverActions,{onAdd:n,onCopyToAll:a,day:r})]}))},DayTimeslotsContainer=({enabledDays:r,timeslots:n,onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l})=>{var e=useStyles$7()["classes"];return jsxRuntime.exports.jsx("div",Object.assign({className:e.timeslotsWidgetContainer,"data-testid":"timeslots-container"},{children:DAYS.ids.map((e,t)=>jsxRuntime.exports.jsx(DayTimeslotsRow,{day:e,timeslots:n[e],enabled:r.includes(e),onAdd:s,onDelete:o,onChangeTime:a,onCopyToAll:i,disabled:l},t))}))},WeeklyScheduler=({isEnabled:e,timeslots:s,onChangeTimeslots:o})=>{var t=useStyles$7()["classes"];const r=e=>{if(getEnabledDays(s).includes(e)){if(1!==getEnabledDays(s).length){const t=lodash.exports.cloneDeep(s);t[e]=[],o(t)}}else{const r=lodash.exports.cloneDeep(s);r[e]=[createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)],o(r)}};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((e,t)=>jsxRuntime.exports.jsx(DayBubble,{day:e,enabled:getEnabledDays(s).includes(e),onClick:()=>r(e)},t))})),jsxRuntime.exports.jsx(DayTimeslotsContainer,{enabledDays:getEnabledDays(s),timeslots:s,onAdd:e=>{const t=lodash.exports.cloneDeep(s);t[e]=lodash.exports.cloneDeep(t[e]),t[e].push(createTimeslot(DEFAULT_TIMESLOT_TIMES.start,DEFAULT_TIMESLOT_TIMES.end,v4(),!0,!1)),o(t)},onDelete:(e,t)=>{const r=lodash.exports.cloneDeep(s);r[e]=r[e].filter(e=>{e=e.id;return!(t===e)}),o(r)},onChangeTime:(r,n,e)=>{const t=lodash.exports.cloneDeep(s);e&&(t[e]=t[e].map(e=>{var t=e["id"];return n===t?Object.assign(Object.assign(Object.assign({},e),r),{id:n}):e})),o(t)},onCopyToAll:e=>{const t=lodash.exports.cloneDeep(s);for(const r of Object.keys(t))t[r].length&&(t[r]=lodash.exports.cloneDeep(t[e]));o(t)}})]})):null},AddEditAffiliateView=({onClose:e,affiliateId:t,isEdit:r})=>{const[n,s]=react.exports.useState(null),[o,a]=react.exports.useState(initialTimeslots),[i,l]=react.exports.useState(""),[c,u]=react.exports.useState("");var d=validateStartAndEndTime(i,c,!0);const[p,g]=react.exports.useState(!0);var m=useSelector(selectSourceTypeId)||[];const f=useSelector(selectBasicInfoAffiliates),h=useDispatch();react.exports.useEffect(()=>{r&&t&&(s(f[t].source),l(f[t].startDate),u(f[t].stopDate),a(f[t].schedule))},[t,r]);var y=!n||d||!i||!c||!p;const S=(e,t)=>{e=e.target.value;("start"===t?l:u)(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:n,onChangeSource:e=>{s(e)},isAffiliate:!0,disabled:!!r})]}),!!n&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.frequencySchedular.subtitle()}))}),jsxRuntime.exports.jsxs(Box,Object.assign({alignItems:"center",display:"flex",justifyContent:"flex-start"},{children:[jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-affiliate-add-start-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.startDate(),type:"date",value:i,onChange:e=>S(e,"start"),InputLabelProps:{shrink:!0},error:d})}),jsxRuntime.exports.jsx(Typography,Object.assign({m:"0 10px"},{children:SHARED_TEXT.frequencySchedular.textBetweenDates()})),jsxRuntime.exports.jsx(FormControl,{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"ingestion-job-affiliate-add-end-date",id:"date",required:!0,label:SHARED_TEXT.frequencySchedular.endDate(),type:"date",value:c,onChange:e=>S(e,"end"),InputLabelProps:{shrink:!0},error:d})})]}))]}),jsxRuntime.exports.jsx(Box,Object.assign({sx:{"& .weekly-schedule-row-copy-all-text":{display:"none"},maxHeight:"60vh"}},{children:jsxRuntime.exports.jsx(WeeklyScheduler,{isEnabled:!!n,onChangeTimeslots:a,timeslots:o})})),jsxRuntime.exports.jsx(PanelControls,{disableSave:y,activeView:r?EAffiliatePanelView.editAffiliate:EAffiliatePanelView.addAffiliate,onClose:e,onSave:()=>{var e;n&&(e={source:n,startDate:i,stopDate:c,schedule:o},h(actions$4.addEditAffiliate(e)))},invalidFields:d||!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:r,isEdit:n})=>{var s=useStyles$2()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:s.container},{children:[e===EAffiliatePanelView.addAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t}),e===EAffiliatePanelView.editAffiliate&&jsxRuntime.exports.jsx(AddEditAffiliateView,{onClose:t,affiliateId:r,isEdit:n}),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{isArrayIteratorMethod$1 as $,actions$4 as A,toString$8 as B,internalState as C,anInstance$1 as D,EAffiliatePanelView as E,classof$6 as F,isObject$8 as G,objectCreate as H,createPropertyDescriptor$4 as I,validateArgumentsLength$1 as J,selectBasicInfoAffiliates as K,stringMultibyte as L,makeBuiltIn$2 as M,objectDefineProperty as N,functionCall as O,PanelControls$1 as P,hasOwnProperty_1 as Q,anObject$f as R,SHARED_TEXT as S,getIterator$1 as T,getIteratorMethod$2 as U,arraySliceSimple as V,tryToString$4 as W,format as X,DayTimeslotsContainer as Y,getEnabledDays as Z,_export as _,selectSourceSelected as a,isConstructor$1 as a0,createProperty$1 as a1,iteratorClose$1 as a2,selectTimezone as a3,selectScheduleType as a4,selectFrequency as a5,selectWeeklyTimeslots as a6,selectIsWeeklyValid as a7,actions$5 as a8,selectFrequencyIsValid as a9,initialTimeslots as aa,validateAllTimeslots as ab,formatWeeklyPayload as ac,FrequencySchedular as ad,WeeklyScheduler as ae,ENextButtonType as af,selectDagTemplateId as ag,selectDagTemplatesLoadingStatus as ah,LoadingStatus as ai,actions$3 as aj,selectAllDagTemplates as ak,selectDagTemplatesHasMore as al,__rest as am,index_esm as an,SelectSource as b,actions$6 as c,selectScheduleName as d,selectBasicInfoInvalidFields as e,defineIterator$1 as f,fails$l as g,functionUncurryThis as h,global$o as i,defineBuiltIn$7 as j,setToStringTag$3 as k,createIteratorConstructor$1 as l,isCallable$n as m,descriptors as n,functionBindContext as o,objectAssign as p,engineUserAgent as q,aCallable$7 as r,selectIsFullScreen as s,toObject$4 as t,useStyles as u,lengthOfArrayLike$3 as v,wellKnownSymbol$i as w,engineV8Version as x,selectPrograms as y,selectBasicInfoMeta as z};