aiware-js 2.55.0 → 2.55.2

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 (105) hide show
  1. package/js-core.esm.js +1 -1
  2. package/js-core.esm.js.gz +0 -0
  3. package/js-core.esm11.js +1 -1
  4. package/js-core.esm11.js.gz +0 -0
  5. package/js-core.esm12.js +1 -1
  6. package/js-core.esm12.js.gz +0 -0
  7. package/js-core.esm13.js +2 -2
  8. package/js-core.esm13.js.gz +0 -0
  9. package/js-core.esm15.js +1 -1
  10. package/js-core.esm15.js.gz +0 -0
  11. package/js-core.esm18.js +1 -1
  12. package/js-core.esm18.js.gz +0 -0
  13. package/js-core.esm19.js +1 -1
  14. package/js-core.esm19.js.gz +0 -0
  15. package/js-core.esm2.js +2 -2
  16. package/js-core.esm2.js.gz +0 -0
  17. package/js-core.esm20.js +1 -1
  18. package/js-core.esm20.js.gz +0 -0
  19. package/js-core.esm21.js +1 -1
  20. package/js-core.esm21.js.gz +0 -0
  21. package/js-core.esm23.js +1 -1
  22. package/js-core.esm23.js.gz +0 -0
  23. package/js-core.esm28.js +1 -1
  24. package/js-core.esm28.js.gz +0 -0
  25. package/js-core.esm29.js +1 -1
  26. package/js-core.esm29.js.gz +0 -0
  27. package/js-core.esm3.js +1 -1
  28. package/js-core.esm3.js.gz +0 -0
  29. package/js-core.esm30.js +1 -1
  30. package/js-core.esm30.js.gz +0 -0
  31. package/js-core.esm32.js +1 -1
  32. package/js-core.esm32.js.gz +0 -0
  33. package/js-core.esm36.js +1 -1
  34. package/js-core.esm36.js.gz +0 -0
  35. package/js-core.esm38.js +1 -1
  36. package/js-core.esm38.js.gz +0 -0
  37. package/js-core.esm39.js +1 -1
  38. package/js-core.esm39.js.gz +0 -0
  39. package/js-core.esm41.js +1 -1
  40. package/js-core.esm41.js.gz +0 -0
  41. package/js-core.esm45.js +1 -1
  42. package/js-core.esm45.js.gz +0 -0
  43. package/js-core.esm46.js +1 -1
  44. package/js-core.esm46.js.gz +0 -0
  45. package/js-core.esm48.js +1 -1
  46. package/js-core.esm48.js.gz +0 -0
  47. package/js-core.esm49.js +1 -1
  48. package/js-core.esm49.js.gz +0 -0
  49. package/js-core.esm5.js +1 -1
  50. package/js-core.esm5.js.gz +0 -0
  51. package/js-core.esm50.js +1 -1
  52. package/js-core.esm50.js.gz +0 -0
  53. package/js-core.esm52.js +1 -1
  54. package/js-core.esm52.js.gz +0 -0
  55. package/js-core.esm6.js +1 -1
  56. package/js-core.esm6.js.gz +0 -0
  57. package/js-core.esm60.js +1 -1
  58. package/js-core.esm60.js.gz +0 -0
  59. package/js-core.esm63.js +1 -1
  60. package/js-core.esm63.js.gz +0 -0
  61. package/js-core.esm65.js +1 -1
  62. package/js-core.esm65.js.gz +0 -0
  63. package/js-core.esm66.js +1 -1
  64. package/js-core.esm66.js.gz +0 -0
  65. package/js-core.esm67.js +1 -1
  66. package/js-core.esm67.js.gz +0 -0
  67. package/js-core.esm69.js +1 -1
  68. package/js-core.esm69.js.gz +0 -0
  69. package/js-core.esm7.js +1 -1
  70. package/js-core.esm7.js.gz +0 -0
  71. package/js-core.esm70.js +1 -1
  72. package/js-core.esm70.js.gz +0 -0
  73. package/js-core.esm71.js +1 -1
  74. package/js-core.esm71.js.gz +0 -0
  75. package/js-core.esm73.js +1 -1
  76. package/js-core.esm73.js.gz +0 -0
  77. package/js-core.esm74.js +1 -1
  78. package/js-core.esm74.js.gz +0 -0
  79. package/js-core.esm75.js +1 -1
  80. package/js-core.esm75.js.gz +0 -0
  81. package/js-core.esm76.js +1 -1
  82. package/js-core.esm76.js.gz +0 -0
  83. package/js-core.esm78.js +1 -1
  84. package/js-core.esm78.js.gz +0 -0
  85. package/js-core.esm81.js +1 -1
  86. package/js-core.esm81.js.gz +0 -0
  87. package/js-core.esm84.js +1 -1
  88. package/js-core.esm84.js.gz +0 -0
  89. package/js-core.esm9.js +1 -1
  90. package/js-core.esm9.js.gz +0 -0
  91. package/js-core.esm91.js +1 -1
  92. package/js-core.esm91.js.gz +0 -0
  93. package/js-core.esm92.js +1 -1
  94. package/js-core.esm92.js.gz +0 -0
  95. package/js-core.esm93.js +1 -1
  96. package/js-core.esm93.js.gz +0 -0
  97. package/js-core.esm95.js +1 -1
  98. package/js-core.esm95.js.gz +0 -0
  99. package/js-core.esm96.js +1 -1
  100. package/js-core.esm96.js.gz +0 -0
  101. package/js-core.umd.js +4 -4
  102. package/js-core.umd.js.gz +0 -0
  103. package/locales/es.json +1 -1
  104. package/locales/fr.json +1 -1
  105. package/package.json +1 -1
Binary file
package/js-core.esm92.js CHANGED
@@ -1,4 +1,4 @@
1
- import{X as createSlice,Y as combineReducers,j as jsxRuntime,bV as AIWareCacheProvider,aK as AIWareThemeProvider,r as react,Z as useSelector,dH as selectIsFullscreenEnabled,aq as unmountPanel,a0 as selectApiConfigs,ao as Box,a1 as hidePanel,B as all,fJ as img$G,ff as createExportEngineAssetsInit,D as takeEvery$1,a2 as lodash,a3 as baseGraphQLApiWithError,V as gqlIntrospection,U as baseGraphQLApi,W as isEqual_1,E as select,I as put,an as CircularProgress}from"./js-core.esm.js";import{m as makeStyles,p as DynamicModuleLoader,A as AIWareIntlProvider,T as Typography,h as Button,ae as Grid,F as FormControl,S as Select,U as MenuItem,D as Divider,k as FormattedMessage,aT as Tabs,aV as Tab,Z as Close,dj as Activity,cI as AddGroup,cd as Information,ab as Process,bh as MoreVert,b7 as Engines}from"./js-core.esm5.js";import{p as generateState,n as Stack,B as Badge,A as Avatar,e as InputLabel,I as IconButton,ag as ExpandLess,ah as ExpandMore,T as TextField,ap as Stack$1,d as Tooltip}from"./js-core.esm6.js";import{v as v4}from"./js-core.esm56.js";import{S as Switch}from"./js-core.esm2.js";import{B as Box$1}from"./js-core.esm27.js";import{F as FileUploadOutlined}from"./js-core.esm54.js";import{u as useDispatch}from"./js-core.esm7.js";import"./js-core.esm4.js";import"./js-core.esm3.js";var match,version,set$1,get,store,STATE,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,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$j=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$i=function(e){try{return!!e()}catch(e){return!0}},fails$h=fails$i,descriptors=!fails$i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$g=fails$i,functionBindNative=!fails$i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$h=Function.prototype.call,functionCall=NATIVE_BIND$3?call$h.bind(call$h):function(){return call$h.apply(call$h,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$g=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$g,call$g),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$g.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$7=uncurryThis$l({}.toString),stringSlice$4=uncurryThis$l("".slice),classofRaw$2=function(e){return stringSlice$4(toString$7(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$f=fails$i,classof$7=classofRaw$2,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$f(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$e=TypeError,requireObjectCoercible$5=function(e){if(isNullOrUndefined$3(e))throw $TypeError$e("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$5=function(e){return IndexedObject$2(requireObjectCoercible$4(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$l=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$k=isCallable$l,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$a=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$k(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$k(e)},global$i=global$j,isCallable$j=isCallable$l,aFunction=function(e){return isCallable$j(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$i[e]):global$i[e]&&global$i[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$h=global$j,userAgent$3=engineUserAgent,process$4=global$h.process,Deno$1=global$h.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$e=fails$i,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$e(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$i=isCallable$l,isPrototypeOf$3=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$i(t)&&isPrototypeOf$3(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$h=isCallable$l,tryToString$3=tryToString$4,$TypeError$d=TypeError,aCallable$9=function(e){if(isCallable$h(e))return e;throw $TypeError$d(tryToString$3(e)+" is not a function")},aCallable$8=aCallable$9,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){e=e[t];return isNullOrUndefined$2(e)?void 0:aCallable$8(e)},call$f=functionCall,isCallable$g=isCallable$l,isObject$9=isObject$a,$TypeError$c=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$g(r=e.toString)&&!isObject$9(n=call$f(r,e)))return n;if(isCallable$g(r=e.valueOf)&&!isObject$9(n=call$f(r,e)))return n;if("string"!==t&&isCallable$g(r=e.toString)&&!isObject$9(n=call$f(r,e)))return n;throw $TypeError$c("Can't convert object to primitive value")},shared$3={exports:{}},isPure=!1,global$g=global$j,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$g,t,{value:r,configurable:!0,writable:!0})}catch(e){global$g[t]=r}return r},global$f=global$j,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$j[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$3=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$5),$Object$2=Object,toObject$5=function(e){return $Object$2(requireObjectCoercible$3(e))},uncurryThis$i=functionUncurryThis,toObject$4=toObject$5,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$4(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$6=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$6(++id+postfix,36)},global$e=global$j,shared$2=shared$3.exports,hasOwn$c=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$e.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$i=function(e){return hasOwn$c(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL&&hasOwn$c(Symbol$2,e)?Symbol$2[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$e=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$b=TypeError,TO_PRIMITIVE=wellKnownSymbol$i("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$e(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$b("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$d=global$j,isObject$7=isObject$a,document$3=global$j.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$d=descriptors,fails$d=fails$i,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$i(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$c=descriptors,call$d=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$b=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$b(e,t))return createPropertyDescriptor$4(!call$d(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$b=descriptors,fails$c=fails$i,v8PrototypeDefineBug=descriptors&&fails$i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$3=String,$TypeError$a=TypeError,anObject$e=function(e){if(isObject$6(e))return e;throw $TypeError$a($String$3(e)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$1=toPropertyKey$3,$TypeError$9=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$9=(objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$d(e),t=toPropertyKey$1(t),anObject$d(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$d(e),t=toPropertyKey$1(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$9("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$4=DESCRIPTORS$9?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$a=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$a(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$f=isCallable$l,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$f(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$c=global$j,isCallable$e=isCallable$l,WeakMap$1=global$j.WeakMap,weakMapBasicDetection=isCallable$e(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$b=global$j,isObject$5=isObject$a,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$9=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$b.TypeError,WeakMap=global$b.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store=shared.state||(shared.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$9(e,STATE))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$9(e,STATE)?e[STATE]:{}},function(e){return hasOwn$9(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$f=functionUncurryThis,fails$b=fails$i,isCallable$d=isCallable$l,hasOwn$8=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$5=internalState,enforceInternalState=InternalStateModule$5.enforce,getInternalState$2=InternalStateModule$5.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$3=uncurryThis$f("".slice),replace$4=uncurryThis$f("".replace),join$3=uncurryThis$f([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$b(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===stringSlice$3($String$2(t),0,7)&&(t="["+replace$4($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$8(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$7?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$8(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$8(r,"constructor")&&r.constructor?DESCRIPTORS$7&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$8(r,"source")||(r.source=join$3(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$c=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$d(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$l),definePropertyModule$3=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$9=function(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$c(r)&&makeBuiltIn$1(r,i,n),n.global)o?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:definePropertyModule$3.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$3:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$3=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$2(e);return e<0?max$1(e+t,0):min$1(e,t)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity$1(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$5=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$4=lengthOfArrayLike$5,createMethod$3=function(a){return function(e,t,r){var n,o=toIndexedObject$3(e),i=lengthOfArrayLike$4(o),s=toAbsoluteIndex$1(r,i);if(a&&t!=t){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},uncurryThis$e=functionUncurryThis,hasOwn$7=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$3=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),o=0,i=[];for(r in n)!hasOwn$7(hiddenKeys$2,r)&&hasOwn$7(n,r)&&push$3(i,r);for(;t.length>o;)!hasOwn$7(n,r=t[o++])||~indexOf(i,r)||push$3(i,r);return i},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$7),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$6=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys(t),o=definePropertyModule$2.f,i=getOwnPropertyDescriptorModule.f,s=0;s<n.length;s++){var a=n[s];hasOwn$6(e,a)||r&&hasOwn$6(r,a)||o(e,a,i(t,a))}},fails$a=fails$i,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$b(t)?fails$a(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$a=global$j,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$8=defineBuiltIn$9,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(e,t){var r,n,o,i=e.target,s=e.global,a=e.stat,l=s?global$a:a?global$a[i]||defineGlobalProperty(i,{}):(global$a[i]||{}).prototype;if(l)for(r in t){if(n=t[r],o=e.dontCallGetSet?(o=getOwnPropertyDescriptor$2(l,r))&&o.value:l[r],!isForced$1(s?r:i+(a?".":"#")+r,e.forced)&&void 0!==o){if(typeof n==typeof o)continue;copyConstructorProperties(n,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$2(n,"sham",!0),defineBuiltIn$8(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$6=descriptors,uncurryThis$c=functionUncurryThis,call$c=functionCall,fails$9=fails$i,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$5,IndexedObject$1=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$c([].concat),objectAssign=!$assign||fails$9(function(){var e,t,r,n;return!(!DESCRIPTORS$6||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[r=Symbol()]=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$3(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,s=propertyIsEnumerableModule.f;o<n;)for(var a,l=IndexedObject$1(arguments[o++]),c=i?concat(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,d=0;d<u;)a=c[d++],DESCRIPTORS$6&&!call$c(s,l,a)||(r[a]=l[a]);return r}:$assign,$$d=_export,assign$1=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1}),{}),DESCRIPTORS$5=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$b=anObject$e,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$5&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$b(e);for(var r,n=toIndexedObject$1(t),o=objectKeys(t),i=o.length,s=0;s<i;)definePropertyModule$1.f(e,r=o[s++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$a=anObject$e,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$a(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$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$2(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$8=fails$i,correctPrototypeGetter=!fails$i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$5=hasOwnProperty_1,isCallable$a=isCallable$l,toObject$2=toObject$5,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){var t,e=toObject$2(e);return hasOwn$5(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$a(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$7=fails$i,isCallable$9=isCallable$l,isObject$4=isObject$a,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$7=defineBuiltIn$9,wellKnownSymbol$f=wellKnownSymbol$i,ITERATOR$8=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),!isObject$4(IteratorPrototype$2)||fails$7(function(){var e={};return IteratorPrototype$2[ITERATOR$8].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$8])||defineBuiltIn$7(IteratorPrototype$2,ITERATOR$8,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$4=hasOwnProperty_1,wellKnownSymbol$e=wellKnownSymbol$i,TO_STRING_TAG$3=wellKnownSymbol$i("toStringTag"),setToStringTag$5=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$4(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$4=setToStringTag$5,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$4(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$b=functionUncurryThis,aCallable$7=aCallable$9,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$b(aCallable$7(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$8=isCallable$l,$String$1=String,$TypeError$8=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$8(e))return e;throw $TypeError$8("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$9(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$c=_export,call$b=functionCall,FunctionName=functionName,isCallable$7=isCallable$l,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$3=setToStringTag$5,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn$6=defineBuiltIn$9,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$7=wellKnownSymbol$d("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,i,s){createIteratorConstructor$1(r,t,n);function a(e){if(e===o&&$)return $;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$7]||d["@@iterator"]||o&&d[o],$=!BUGGY_SAFARI_ITERATORS&&p||a(o),g="Array"==t&&d.entries||p;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(g,IteratorPrototype):isCallable$7(g[ITERATOR$7])||defineBuiltIn$6(g,ITERATOR$7,returnThis)),setToStringTag$3(g,n,!0)),PROPER_FUNCTION_NAME$1&&o==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,$=function(){return call$b(p,this)})),o)if(l={values:a(VALUES),keys:i?$:a(KEYS),entries:a(ENTRIES)},s)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$6(d,c,l[c]);else $$c({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$7]!==$&&defineBuiltIn$6(d,ITERATOR$7,$,{name:o}),Iterators$3[t]=$,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$4=internalState,defineProperty$1=objectDefineProperty.f,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,DESCRIPTORS$4=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$1(Array,"Array",function(e,t){setInternalState$4(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?(e.target=void 0,createIterResultObject$1(void 0,!0)):createIterResultObject$1("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$4&&"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$9=global$j,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$c=wellKnownSymbol$i,ITERATOR$6=wellKnownSymbol$c("iterator"),TO_STRING_TAG$2=wellKnownSymbol$c("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$6,ArrayValues)}catch(e){t[ITERATOR$6]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$9[COLLECTION_NAME]&&global$9[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const SLICE_NAME="dataDetails",namespace$2="uiState",initialState$2={status:"idle"},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$2,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"}}}),actions$2=slice$1.actions;var uiState_slice=slice$1.reducer;const namespace$1="dataDetails",initialState$1={tdoLoadingStatus:"idle",tdoId:"",tdo:null,engineRuns:[],selectedEngineRun:void 0,selectedCategory:void 0,selectedAsset:null,selectedViewer:null,exportRequestStatus:"idle",exportRequestAssertUri:void 0},dataDetailsSlice=createSlice({name:namespace$1,initialState:initialState$1,reducers:{loadInitialStateInit:(e,t)=>{e.tdoId=t.payload.tdoId,e.tdoLoadingStatus="pending"},loadInitialStateSuccess:(e,t)=>{e.tdo=t.payload,e.tdoLoadingStatus="success"},loadInitialStateFailed:e=>{e.tdo=null,e.tdoLoadingStatus="failure"},setTdoId:(e,t)=>{e.tdoId=t.payload},setTdo:(e,t)=>{e.tdo=t.payload},setEngineRuns:(e,t)=>{e.engineRuns=t.payload},setSelectedEngineRun:(e,t)=>{e.selectedEngineRun=t.payload},setSelectedEngineCategory:(e,t)=>{e.selectedCategory=t.payload},setSelectedAsset:(e,t)=>{e.selectedAsset=t.payload},setSelectedViewer:(e,t)=>{e.selectedViewer=t.payload}}}),actions$1=dataDetailsSlice.actions;var dataDetails_slice=dataDetailsSlice.reducer;function __awaiter(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((l=l.apply(e,s||[])).next())})}function getTdoById(r,n){return __awaiter(this,void 0,void 0,function*(){var e="temporalDataObject",t="temporalDataObject";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query temporalDataObject($tdoId: ID!) {\n temporalDataObject(id: $tdoId) {\n id\n name\n details\n previewUrl\n engineRuns {\n records {\n status\n engine {\n id\n name\n signedIconPath\n category {\n id\n name\n categoryType\n iconClass\n exportFormats {\n format\n label\n types\n }\n }\n }\n }\n }\n assets {\n records {\n id\n signedUri\n contentType\n assetType\n jsondata\n details\n sourceData {\n engine {\n id\n categoryId\n outputFormats\n }\n }\n }\n }\n }\n }\n ",variables:{tdoId:n},operationName:e},r)))[t]})}var aCallable$6=aCallable$9,toObject$1=toObject$5,IndexedObject=indexedObject,lengthOfArrayLike$3=lengthOfArrayLike$5,$TypeError$7=TypeError,createMethod$2=function(c){return function(e,t,r,n){aCallable$6(t);var o=toObject$1(e),i=IndexedObject(o),s=lengthOfArrayLike$3(o),a=c?s-1:0,l=c?-1:1;if(r<2)for(;;){if(a in i){n=i[a],a+=l;break}if(a+=l,c?a<0:s<=a)throw $TypeError$7("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=l)a in i&&(n=t(n,i[a],a,o));return n}},arrayReduce={left:createMethod$2(!1),right:createMethod$2(!0)},fails$6=fails$i,arrayMethodIsStrict$1=function(e,t){var r=[][e];return!!r&&fails$6(function(){r.call(null,t||function(){return 1},1)})},classof$6=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),$$b=_export,$reduce=arrayReduce.left,arrayMethodIsStrict=arrayMethodIsStrict$1,CHROME_VERSION=engineV8Version,IS_NODE$4=engineIsNode,CHROME_BUG=!engineIsNode&&79<engineV8Version&&engineV8Version<83,FORCED$1=CHROME_BUG||!arrayMethodIsStrict$1("reduce");function getApplicationViewers({apiConfigs:a,offset:l,limit:c,additionalSelectors:u}){var d;return __awaiter(this,void 0,void 0,function*(){const r=[{name:"limit",type:"Int",value:c},{name:"offset",type:"Int",value:l}];u&&Object.keys(u).forEach(e=>{var t=u[e];"ids"===e&&r.push({name:e,type:"[ID!]",value:t})});var e=r.map(e=>`$${e.name}: `+e.type).join(" "),t=r.map(e=>e.name+": $"+e.name).join(" ");const n=r.reduce((e,t)=>(e[t.name]=t.value,e),{});var o="getApplicationViewers",e=`query ${o} (${e}) {
1
+ import{X as createSlice,Y as combineReducers,j as jsxRuntime,bW as AIWareCacheProvider,aK as AIWareThemeProvider,r as react,Z as useSelector,dH as selectIsFullscreenEnabled,aq as unmountPanel,a0 as selectApiConfigs,ao as Box,a1 as hidePanel,B as all,fJ as img$G,ff as createExportEngineAssetsInit,D as takeEvery$1,a2 as lodash,a3 as baseGraphQLApiWithError,V as gqlIntrospection,U as baseGraphQLApi,W as isEqual_1,E as select,I as put,an as CircularProgress}from"./js-core.esm.js";import{m as makeStyles,p as DynamicModuleLoader,A as AIWareIntlProvider,T as Typography,h as Button,ae as Grid,F as FormControl,S as Select,U as MenuItem,D as Divider,k as FormattedMessage,aT as Tabs,aV as Tab,Z as Close,dj as Activity,cI as AddGroup,cd as Information,ab as Process,bh as MoreVert,b7 as Engines}from"./js-core.esm5.js";import{p as generateState,n as Stack,B as Badge,A as Avatar,e as InputLabel,I as IconButton,ag as ExpandLess,ah as ExpandMore,T as TextField,ap as Stack$1,d as Tooltip}from"./js-core.esm6.js";import{v as v4}from"./js-core.esm56.js";import{S as Switch}from"./js-core.esm2.js";import{B as Box$1}from"./js-core.esm27.js";import{F as FileUploadOutlined}from"./js-core.esm54.js";import{u as useDispatch}from"./js-core.esm7.js";import"./js-core.esm4.js";import"./js-core.esm3.js";var match,version,set$1,get,store,STATE,activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,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$j=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$i=function(e){try{return!!e()}catch(e){return!0}},fails$h=fails$i,descriptors=!fails$i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$g=fails$i,functionBindNative=!fails$i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$h=Function.prototype.call,functionCall=NATIVE_BIND$3?call$h.bind(call$h):function(){return call$h.apply(call$h,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$3=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$3&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$5=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$3(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$g=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$g,call$g),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$g.apply(e,arguments)}},uncurryThis$l=functionUncurryThis,toString$7=uncurryThis$l({}.toString),stringSlice$4=uncurryThis$l("".slice),classofRaw$2=function(e){return stringSlice$4(toString$7(e),8,-1)},uncurryThis$k=functionUncurryThis,fails$f=fails$i,classof$7=classofRaw$2,$Object$4=Object,split$3=functionUncurryThis("".split),indexedObject=fails$f(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$7(e)?split$3(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$e=TypeError,requireObjectCoercible$5=function(e){if(isNullOrUndefined$3(e))throw $TypeError$e("Can't call method on "+e);return e},IndexedObject$2=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$5=function(e){return IndexedObject$2(requireObjectCoercible$4(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$l=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$k=isCallable$l,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$a=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$k(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$k(e)},global$i=global$j,isCallable$j=isCallable$l,aFunction=function(e){return isCallable$j(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$i[e]):global$i[e]&&global$i[e][t]},uncurryThis$j=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$h=global$j,userAgent$3=engineUserAgent,process$4=global$h.process,Deno$1=global$h.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$e=fails$i,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$e(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$1=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$i=isCallable$l,isPrototypeOf$3=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$i(t)&&isPrototypeOf$3(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$h=isCallable$l,tryToString$3=tryToString$4,$TypeError$d=TypeError,aCallable$9=function(e){if(isCallable$h(e))return e;throw $TypeError$d(tryToString$3(e)+" is not a function")},aCallable$8=aCallable$9,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){e=e[t];return isNullOrUndefined$2(e)?void 0:aCallable$8(e)},call$f=functionCall,isCallable$g=isCallable$l,isObject$9=isObject$a,$TypeError$c=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$g(r=e.toString)&&!isObject$9(n=call$f(r,e)))return n;if(isCallable$g(r=e.valueOf)&&!isObject$9(n=call$f(r,e)))return n;if("string"!==t&&isCallable$g(r=e.toString)&&!isObject$9(n=call$f(r,e)))return n;throw $TypeError$c("Can't convert object to primitive value")},shared$3={exports:{}},isPure=!1,global$g=global$j,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$g,t,{value:r,configurable:!0,writable:!0})}catch(e){global$g[t]=r}return r},global$f=global$j,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$j[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$3=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$5),$Object$2=Object,toObject$5=function(e){return $Object$2(requireObjectCoercible$3(e))},uncurryThis$i=functionUncurryThis,toObject$4=toObject$5,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$4(e),t)},uncurryThis$h=functionUncurryThis,id=0,postfix=Math.random(),toString$6=uncurryThis$h(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$6(++id+postfix,36)},global$e=global$j,shared$2=shared$3.exports,hasOwn$c=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$e.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$i=function(e){return hasOwn$c(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL&&hasOwn$c(Symbol$2,e)?Symbol$2[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$e=functionCall,isObject$8=isObject$a,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$h=wellKnownSymbol$i,$TypeError$b=TypeError,TO_PRIMITIVE=wellKnownSymbol$i("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$8(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$e(r,e,t=void 0===t?"default":t),!isObject$8(r)||isSymbol$1(r))return r;throw $TypeError$b("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$d=global$j,isObject$7=isObject$a,document$3=global$j.document,EXISTS$1=isObject$7(document$3)&&isObject$7(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$d=descriptors,fails$d=fails$i,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$i(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$c=descriptors,call$d=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$4=createPropertyDescriptor$5,toIndexedObject$4=toIndexedObject$5,toPropertyKey$2=toPropertyKey$3,hasOwn$b=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$c?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$2(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$b(e,t))return createPropertyDescriptor$4(!call$d(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$b=descriptors,fails$c=fails$i,v8PrototypeDefineBug=descriptors&&fails$i(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$6=isObject$a,$String$3=String,$TypeError$a=TypeError,anObject$e=function(e){if(isObject$6(e))return e;throw $TypeError$a($String$3(e)+" is not an object")},DESCRIPTORS$a=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$d=anObject$e,toPropertyKey$1=toPropertyKey$3,$TypeError$9=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$9=(objectDefineProperty.f=DESCRIPTORS$a?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$d(e),t=toPropertyKey$1(t),anObject$d(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$d(e),t=toPropertyKey$1(t),anObject$d(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$9("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$4=objectDefineProperty,createPropertyDescriptor$3=createPropertyDescriptor$5,createNonEnumerableProperty$4=DESCRIPTORS$9?function(e,t,r){return definePropertyModule$4.f(e,t,createPropertyDescriptor$3(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$8=descriptors,hasOwn$a=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$8&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$a(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$8||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$g=functionUncurryThis,isCallable$f=isCallable$l,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$f(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$c=global$j,isCallable$e=isCallable$l,WeakMap$1=global$j.WeakMap,weakMapBasicDetection=isCallable$e(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$b=global$j,isObject$5=isObject$a,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$9=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$4=global$b.TypeError,WeakMap=global$b.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$5(e)&&(e=get(e)).type===t)return e;throw TypeError$4("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store=shared.state||(shared.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set$1=function(e,t){if(hasOwn$9(e,STATE))throw TypeError$4(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$9(e,STATE)?e[STATE]:{}},function(e){return hasOwn$9(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$f=functionUncurryThis,fails$b=fails$i,isCallable$d=isCallable$l,hasOwn$8=hasOwnProperty_1,DESCRIPTORS$7=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$5=internalState,enforceInternalState=InternalStateModule$5.enforce,getInternalState$2=InternalStateModule$5.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$3=uncurryThis$f("".slice),replace$4=uncurryThis$f("".replace),join$3=uncurryThis$f([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$7&&!fails$b(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,r){"Symbol("===stringSlice$3($String$2(t),0,7)&&(t="["+replace$4($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$8(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$7?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$8(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$8(r,"constructor")&&r.constructor?DESCRIPTORS$7&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$8(r,"source")||(r.source=join$3(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$c=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$d(this)&&getInternalState$2(this).source||inspectSource$2(this)},"toString"),isCallable$l),definePropertyModule$3=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$9=function(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$c(r)&&makeBuiltIn$1(r,i,n),n.global)o?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:definePropertyModule$3.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor$3=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor$3:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$3=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$2=toIntegerOrInfinity$3,max$1=Math.max,min$1=Math.min,toAbsoluteIndex$2=function(e,t){e=toIntegerOrInfinity$2(e);return e<0?max$1(e+t,0):min$1(e,t)},toIntegerOrInfinity$1=toIntegerOrInfinity$3,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity$1(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$5=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex$1=toAbsoluteIndex$2,lengthOfArrayLike$4=lengthOfArrayLike$5,createMethod$3=function(a){return function(e,t,r){var n,o=toIndexedObject$3(e),i=lengthOfArrayLike$4(o),s=toAbsoluteIndex$1(r,i);if(a&&t!=t){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((a||s in o)&&o[s]===t)return a||s||0;return!a&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},uncurryThis$e=functionUncurryThis,hasOwn$7=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push$3=uncurryThis$e([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),o=0,i=[];for(r in n)!hasOwn$7(hiddenKeys$2,r)&&hasOwn$7(n,r)&&push$3(i,r);for(;t.length>o;)!hasOwn$7(n,r=t[o++])||~indexOf(i,r)||push$3(i,r);return i},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$7),uncurryThis$d=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$c=anObject$e,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$c(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$6=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$2=objectDefineProperty,copyConstructorProperties$1=function(e,t,r){for(var n=ownKeys(t),o=definePropertyModule$2.f,i=getOwnPropertyDescriptorModule.f,s=0;s<n.length;s++){var a=n[s];hasOwn$6(e,a)||r&&hasOwn$6(r,a)||o(e,a,i(t,a))}},fails$a=fails$i,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$b(t)?fails$a(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$a=global$j,getOwnPropertyDescriptor$2=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$8=defineBuiltIn$9,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties=copyConstructorProperties$1,isForced$1=isForced_1,_export=function(e,t){var r,n,o,i=e.target,s=e.global,a=e.stat,l=s?global$a:a?global$a[i]||defineGlobalProperty(i,{}):(global$a[i]||{}).prototype;if(l)for(r in t){if(n=t[r],o=e.dontCallGetSet?(o=getOwnPropertyDescriptor$2(l,r))&&o.value:l[r],!isForced$1(s?r:i+(a?".":"#")+r,e.forced)&&void 0!==o){if(typeof n==typeof o)continue;copyConstructorProperties(n,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$2(n,"sham",!0),defineBuiltIn$8(l,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$6=descriptors,uncurryThis$c=functionUncurryThis,call$c=functionCall,fails$9=fails$i,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$3=toObject$5,IndexedObject$1=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$c([].concat),objectAssign=!$assign||fails$9(function(){var e,t,r,n;return!(!DESCRIPTORS$6||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[r=Symbol()]=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$3(e),n=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,s=propertyIsEnumerableModule.f;o<n;)for(var a,l=IndexedObject$1(arguments[o++]),c=i?concat(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,d=0;d<u;)a=c[d++],DESCRIPTORS$6&&!call$c(s,l,a)||(r[a]=l[a]);return r}:$assign,$$d=_export,assign$1=objectAssign,objectDefineProperties=(_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign$1},{assign:assign$1}),{}),DESCRIPTORS$5=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule$1=objectDefineProperty,anObject$b=anObject$e,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$5&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$b(e);for(var r,n=toIndexedObject$1(t),o=objectKeys(t),i=o.length,s=0;s<i;)definePropertyModule$1.f(e,r=o[s++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$a=anObject$e,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html$1=html$2,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html$1.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$a(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$2=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$2(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$8=fails$i,correctPrototypeGetter=!fails$i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$5=hasOwnProperty_1,isCallable$a=isCallable$l,toObject$2=toObject$5,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object$1=Object,ObjectPrototype=$Object$1.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object$1.getPrototypeOf:function(e){var t,e=toObject$2(e);return hasOwn$5(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$a(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$7=fails$i,isCallable$9=isCallable$l,isObject$4=isObject$a,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$7=defineBuiltIn$9,wellKnownSymbol$f=wellKnownSymbol$i,ITERATOR$8=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),!isObject$4(IteratorPrototype$2)||fails$7(function(){var e={};return IteratorPrototype$2[ITERATOR$8].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$8])||defineBuiltIn$7(IteratorPrototype$2,ITERATOR$8,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$4=hasOwnProperty_1,wellKnownSymbol$e=wellKnownSymbol$i,TO_STRING_TAG$3=wellKnownSymbol$i("toStringTag"),setToStringTag$5=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$4(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor$2=createPropertyDescriptor$5,setToStringTag$4=setToStringTag$5,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor$2(+!n,r)}),setToStringTag$4(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$b=functionUncurryThis,aCallable$7=aCallable$9,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$b(aCallable$7(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isCallable$8=isCallable$l,$String$1=String,$TypeError$8=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$8(e))return e;throw $TypeError$8("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$9=anObject$e,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$9(e),aPossiblePrototype(t),n?r(e,t):e.__proto__=t,e}}():void 0),$$c=_export,call$b=functionCall,FunctionName=functionName,isCallable$7=isCallable$l,createIteratorConstructor$1=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$3=setToStringTag$5,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn$6=defineBuiltIn$9,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$7=wellKnownSymbol$d("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,o,i,s){createIteratorConstructor$1(r,t,n);function a(e){if(e===o&&$)return $;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$7]||d["@@iterator"]||o&&d[o],$=!BUGGY_SAFARI_ITERATORS&&p||a(o),g="Array"==t&&d.entries||p;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(g,IteratorPrototype):isCallable$7(g[ITERATOR$7])||defineBuiltIn$6(g,ITERATOR$7,returnThis)),setToStringTag$3(g,n,!0)),PROPER_FUNCTION_NAME$1&&o==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,$=function(){return call$b(p,this)})),o)if(l={values:a(VALUES),keys:i?$:a(KEYS),entries:a(ENTRIES)},s)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$6(d,c,l[c]);else $$c({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$7]!==$&&defineBuiltIn$6(d,ITERATOR$7,$,{name:o}),Iterators$3[t]=$,l},createIterResultObject$2=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$4=internalState,defineProperty$1=objectDefineProperty.f,defineIterator$1=iteratorDefine,createIterResultObject$1=createIterResultObject$2,DESCRIPTORS$4=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$4=InternalStateModule$4.set,getInternalState$1=InternalStateModule$4.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator$1(Array,"Array",function(e,t){setInternalState$4(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?(e.target=void 0,createIterResultObject$1(void 0,!0)):createIterResultObject$1("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$4&&"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$9=global$j,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$c=wellKnownSymbol$i,ITERATOR$6=wellKnownSymbol$c("iterator"),TO_STRING_TAG$2=wellKnownSymbol$c("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$6]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$6,ArrayValues)}catch(e){t[ITERATOR$6]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$9[COLLECTION_NAME]&&global$9[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const SLICE_NAME="dataDetails",namespace$2="uiState",initialState$2={status:"idle"},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$2,reducers:{init(e){e.status="pending"},initDone(e){e.status="idle"},initFailed(e){e.status="failure"}}}),actions$2=slice$1.actions;var uiState_slice=slice$1.reducer;const namespace$1="dataDetails",initialState$1={tdoLoadingStatus:"idle",tdoId:"",tdo:null,engineRuns:[],selectedEngineRun:void 0,selectedCategory:void 0,selectedAsset:null,selectedViewer:null,exportRequestStatus:"idle",exportRequestAssertUri:void 0},dataDetailsSlice=createSlice({name:namespace$1,initialState:initialState$1,reducers:{loadInitialStateInit:(e,t)=>{e.tdoId=t.payload.tdoId,e.tdoLoadingStatus="pending"},loadInitialStateSuccess:(e,t)=>{e.tdo=t.payload,e.tdoLoadingStatus="success"},loadInitialStateFailed:e=>{e.tdo=null,e.tdoLoadingStatus="failure"},setTdoId:(e,t)=>{e.tdoId=t.payload},setTdo:(e,t)=>{e.tdo=t.payload},setEngineRuns:(e,t)=>{e.engineRuns=t.payload},setSelectedEngineRun:(e,t)=>{e.selectedEngineRun=t.payload},setSelectedEngineCategory:(e,t)=>{e.selectedCategory=t.payload},setSelectedAsset:(e,t)=>{e.selectedAsset=t.payload},setSelectedViewer:(e,t)=>{e.selectedViewer=t.payload}}}),actions$1=dataDetailsSlice.actions;var dataDetails_slice=dataDetailsSlice.reducer;function __awaiter(e,s,a,l){return new(a=a||Promise)(function(r,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,o)}i((l=l.apply(e,s||[])).next())})}function getTdoById(r,n){return __awaiter(this,void 0,void 0,function*(){var e="temporalDataObject",t="temporalDataObject";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query temporalDataObject($tdoId: ID!) {\n temporalDataObject(id: $tdoId) {\n id\n name\n details\n previewUrl\n engineRuns {\n records {\n status\n engine {\n id\n name\n signedIconPath\n category {\n id\n name\n categoryType\n iconClass\n exportFormats {\n format\n label\n types\n }\n }\n }\n }\n }\n assets {\n records {\n id\n signedUri\n contentType\n assetType\n jsondata\n details\n sourceData {\n engine {\n id\n categoryId\n outputFormats\n }\n }\n }\n }\n }\n }\n ",variables:{tdoId:n},operationName:e},r)))[t]})}var aCallable$6=aCallable$9,toObject$1=toObject$5,IndexedObject=indexedObject,lengthOfArrayLike$3=lengthOfArrayLike$5,$TypeError$7=TypeError,createMethod$2=function(c){return function(e,t,r,n){aCallable$6(t);var o=toObject$1(e),i=IndexedObject(o),s=lengthOfArrayLike$3(o),a=c?s-1:0,l=c?-1:1;if(r<2)for(;;){if(a in i){n=i[a],a+=l;break}if(a+=l,c?a<0:s<=a)throw $TypeError$7("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=l)a in i&&(n=t(n,i[a],a,o));return n}},arrayReduce={left:createMethod$2(!1),right:createMethod$2(!0)},fails$6=fails$i,arrayMethodIsStrict$1=function(e,t){var r=[][e];return!!r&&fails$6(function(){r.call(null,t||function(){return 1},1)})},classof$6=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),$$b=_export,$reduce=arrayReduce.left,arrayMethodIsStrict=arrayMethodIsStrict$1,CHROME_VERSION=engineV8Version,IS_NODE$4=engineIsNode,CHROME_BUG=!engineIsNode&&79<engineV8Version&&engineV8Version<83,FORCED$1=CHROME_BUG||!arrayMethodIsStrict$1("reduce");function getApplicationViewers({apiConfigs:a,offset:l,limit:c,additionalSelectors:u}){var d;return __awaiter(this,void 0,void 0,function*(){const r=[{name:"limit",type:"Int",value:c},{name:"offset",type:"Int",value:l}];u&&Object.keys(u).forEach(e=>{var t=u[e];"ids"===e&&r.push({name:e,type:"[ID!]",value:t})});var e=r.map(e=>`$${e.name}: `+e.type).join(" "),t=r.map(e=>e.name+": $"+e.name).join(" ");const n=r.reduce((e,t)=>(e[t.name]=t.value,e),{});var o="getApplicationViewers",e=`query ${o} (${e}) {
2
2
  applicationViewers(${t}){
3
3
  records{
4
4
  id
Binary file
package/js-core.esm93.js CHANGED
@@ -1 +1 @@
1
- import{X as createSlice,Y as combineReducers,j as jsxRuntime,bV as AIWareCacheProvider,aK as AIWareThemeProvider,Z as useSelector,r as react,B as all,ao as Box,a1 as hidePanel,D as takeEvery$1,C as takeLatest$1,E as select,a0 as selectApiConfigs,I as put,a4 as preferredLanguageSelector,a5 as showMessage,W as isEqual_1,a6 as MessageSeverity,a7 as AIWareFormatMessage,a3 as baseGraphQLApiWithError}from"./js-core.esm.js";import{p as DynamicModuleLoader,A as AIWareIntlProvider,k as FormattedMessage,T as Typography,h as Button,D as Divider,aR as Fade,B as ButtonBase}from"./js-core.esm5.js";import{n as Stack,z as panelComponents,T as TextField,d as Tooltip,ai as Check,o as imageUpload}from"./js-core.esm6.js";import{u as useDispatch}from"./js-core.esm7.js";var match,version,set,get,store,STATE,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$f=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$f=function(e){try{return!!e()}catch(e){return!0}},fails$e=fails$f,descriptors=!fails$f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$d=fails$f,functionBindNative=!fails$f(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$1=functionBindNative,call$7=Function.prototype.call,functionCall=NATIVE_BIND$1?call$7.bind(call$7):function(){return call$7.apply(call$7,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,call$6=FunctionPrototype$1.call,uncurryThisWithBind=NATIVE_BIND&&FunctionPrototype$1.bind.bind(call$6,call$6),functionUncurryThis=NATIVE_BIND?uncurryThisWithBind:function(e){return function(){return call$6.apply(e,arguments)}},uncurryThis$c=functionUncurryThis,toString$4=uncurryThis$c({}.toString),stringSlice$3=uncurryThis$c("".slice),classofRaw$1=function(e){return stringSlice$3(toString$4(e),8,-1)},uncurryThis$b=functionUncurryThis,fails$c=fails$f,classof$2=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$c(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$2(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$2=function(e){return null==e},isNullOrUndefined$1=isNullOrUndefined$2,$TypeError$6=TypeError,requireObjectCoercible$2=function(e){if(isNullOrUndefined$1(e))throw $TypeError$6("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$1(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$g=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$f=isCallable$g,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$6=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$f(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$f(e)},global$e=global$f,isCallable$e=isCallable$g,aFunction=function(e){return isCallable$e(e)?e:void 0},getBuiltIn$3=function(e,t){return arguments.length<2?aFunction(global$e[e]):global$e[e]&&global$e[e][t]},uncurryThis$a=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$d=global$f,userAgent=engineUserAgent,process=global$d.process,Deno=global$d.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$b=fails$f,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$b(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$2=getBuiltIn$3,isCallable$d=isCallable$g,isPrototypeOf$1=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$2("Symbol");return isCallable$d(t)&&isPrototypeOf$1(t.prototype,$Object$3(e))},$String$4=String,tryToString$1=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$c=isCallable$g,tryToString=tryToString$1,$TypeError$5=TypeError,aCallable$2=function(e){if(isCallable$c(e))return e;throw $TypeError$5(tryToString(e)+" is not a function")},aCallable$1=aCallable$2,isNullOrUndefined=isNullOrUndefined$2,getMethod$1=function(e,t){e=e[t];return isNullOrUndefined(e)?void 0:aCallable$1(e)},call$5=functionCall,isCallable$b=isCallable$g,isObject$5=isObject$6,$TypeError$4=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$b(n=e.toString)&&!isObject$5(r=call$5(n,e)))return r;if(isCallable$b(n=e.valueOf)&&!isObject$5(r=call$5(n,e)))return r;if("string"!==t&&isCallable$b(n=e.toString)&&!isObject$5(r=call$5(n,e)))return r;throw $TypeError$4("Can't convert object to primitive value")},shared$4={exports:{}},global$c=global$f,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$6(global$c,t,{value:n,configurable:!0,writable:!0})}catch(e){global$c[t]=n}return n},global$b=global$f,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$f[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$2),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible(e))},uncurryThis$9=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$8=functionUncurryThis,id=0,postfix=Math.random(),toString$3=uncurryThis$8(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$3(++id+postfix,36)},global$a=global$f,shared$3=shared$4.exports,hasOwn$9=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$a.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$8=function(e){return hasOwn$9(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$9(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$4=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$7=wellKnownSymbol$8,$TypeError$3=TypeError,TO_PRIMITIVE=wellKnownSymbol$8("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var n=getMethod(e,TO_PRIMITIVE);if(n){if(n=call$4(n,e,t=void 0===t?"default":t),!isObject$4(n)||isSymbol$1(n))return n;throw $TypeError$3("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$9=global$f,isObject$3=isObject$6,document$1=global$f.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$a=descriptors,fails$a=fails$f,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$f(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors,call$3=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$8(e,t))return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$8=descriptors,fails$9=fails$f,v8PrototypeDefineBug=descriptors&&fails$f(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$3=String,$TypeError$2=TypeError,anObject$6=function(e){if(isObject$2(e))return e;throw $TypeError$2($String$3(e)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$5=anObject$6,toPropertyKey=toPropertyKey$2,$TypeError$1=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$6=(objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$5(e),t=toPropertyKey(t),anObject$5(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$5(e),t=toPropertyKey(t),anObject$5(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$1("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||getDescriptor(FunctionPrototype,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$7=functionUncurryThis,isCallable$a=isCallable$g,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$1=(isCallable$a(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$8=global$f,isCallable$9=isCallable$g,WeakMap$1=global$f.WeakMap,weakMapBasicDetection=isCallable$9(WeakMap$1)&&/native code/.test(String(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=weakMapBasicDetection,global$7=global$f,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$7.TypeError,WeakMap=global$7.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared$1.state?((store=shared$1.state||(shared$1.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set=function(e,t){if(store.has(e))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$6(e,STATE))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$6(e,STATE)?e[STATE]:{}},function(e){return hasOwn$6(e,STATE)}),internalState={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$6=functionUncurryThis,fails$8=fails$f,isCallable$8=isCallable$g,hasOwn$5=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource=inspectSource$1,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$2=InternalStateModule$1.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$2=uncurryThis$6("".slice),replace$2=uncurryThis$6("".replace),join=uncurryThis$6([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$8(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,n){"Symbol("===stringSlice$2($String$2(t),0,7)&&(t="["+replace$2($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$5(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5(n,"constructor")&&n.constructor?DESCRIPTORS$4&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$5(n,"source")||(n.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$7=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$8(this)&&getInternalState$2(this).source||inspectSource(this)},"toString"),isCallable$g),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$3=function(e,t,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:t;if(isCallable$7(n)&&makeBuiltIn$1(n,i,r),r.global)o?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:definePropertyModule$2.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$1=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike=lengthOfArrayLike$1,createMethod=function(s){return function(e,t,n){var r,o=toIndexedObject$3(e),i=lengthOfArrayLike(o),a=toAbsoluteIndex(n,i);if(s&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$5=functionUncurryThis,hasOwn$4=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$5([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),o=0,i=[];for(n in r)!hasOwn$4(hiddenKeys$2,n)&&hasOwn$4(r,n)&&push(i,n);for(;t.length>o;)!hasOwn$4(r,n=t[o++])||~indexOf$1(i,n)||push(i,n);return i},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$1=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$3),uncurryThis$4=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$4=anObject$6,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$4(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,n){for(var r=ownKeys(t),o=definePropertyModule$1.f,i=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3(e,s)||n&&hasOwn$3(n,s)||o(e,s,i(t,s))}},fails$7=fails$f,isCallable$6=isCallable$g,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$6(t)?fails$7(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$6=global$f,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced=isForced_1,_export=function(e,t){var n,r,o,i=e.target,a=e.global,s=e.stat,l=a?global$6:s?global$6[i]||defineGlobalProperty(i,{}):(global$6[i]||{}).prototype;if(l)for(n in t){if(r=t[n],o=e.dontCallGetSet?(o=getOwnPropertyDescriptor(l,n))&&o.value:l[n],!isForced(a?n:i+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;copyConstructorProperties$1(r,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$2(r,"sham",!0),defineBuiltIn$2(l,n,r,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$3=descriptors,uncurryThis$3=functionUncurryThis,call$2=functionCall,fails$6=fails$f,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$3([].concat),objectAssign=!$assign||fails$6(function(){var e,t,n,r;return!(!DESCRIPTORS$3||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys$1($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$1(e),r=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;o<r;)for(var s,l=IndexedObject(arguments[o++]),c=i?concat(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,p=0;p<u;)s=c[p++],DESCRIPTORS$3&&!call$2(a,l,s)||(n[s]=l[s]);return n}:$assign,$$4=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="instanceLogin",PANEL_ID="INSTANCE_ADMIN_CENTER_INSTANCE_LOGIN",namespace="instanceLogin",initialState={isEditMode:!1,instanceLoginLoadingStatus:"idle",loginConfig:null,initialPlatformProperties:null,saveStatus:"idle",isPreviewModalOpen:!1,isInputsValid:!0},instanceLoginSlice=createSlice({name:namespace,initialState:initialState,reducers:{setIsInputsValid:(e,t)=>{e.isInputsValid=t.payload},setPreviewModalOpen:(e,t)=>{e.isPreviewModalOpen=t.payload},loadInitialStateInit:e=>{e.instanceLoginLoadingStatus="pending"},loadInitialStateSuccess:(e,t)=>{t.payload.properties.loginConfig&&(e.loginConfig=t.payload.properties.loginConfig,e.isEditMode=!0),e.initialPlatformProperties=t.payload,e.instanceLoginLoadingStatus="success"},loadInitialStateFailed:e=>{e.loginConfig=null,e.instanceLoginLoadingStatus="failure"},setLoginConfig:(e,t)=>{e.loginConfig=t.payload},setPlatformProperties:(e,t)=>{e.initialPlatformProperties=t.payload},setEditMode:(e,t)=>{e.isEditMode=t.payload},saveLoginConfigInit:e=>{e.saveStatus="pending"},saveLoginConfigSuccess:e=>{e.saveStatus="success"},saveLoginConfigFailed:e=>{e.saveStatus="failure"}}}),actions$1=instanceLoginSlice.actions;var instanceLogin_slice=instanceLoginSlice.reducer;const rootReducer=combineReducers({[namespace]:instanceLogin_slice}),actions={[namespace]:actions$1};function __awaiter(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}i((l=l.apply(e,a||[])).next())})}function getPlatformProperties(n){return __awaiter(this,void 0,void 0,function*(){var e="platformInfo",t="platformInfo";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query platformInfo{\n platformInfo {\n properties\n }\n }\n ",operationName:e},n)))[t]})}function savePlatformProperties(t,n){return __awaiter(this,void 0,void 0,function*(){var e="savePlatformProperties";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation savePlatformProperties($properties: JSONData!) {\n setPlatformProperties(properties: $properties)\n }\n ",operationName:e,variables:{properties:n}},t))).setPlatformProperties})}const selectInstanceLoginLoadingStatus=e=>e[namespace].instanceLogin.instanceLoginLoadingStatus,selectLoginConfig=e=>e[namespace].instanceLogin.loginConfig,selectInitialPlatformProperties=e=>e[namespace].instanceLogin.initialPlatformProperties,selectIsEditMode=e=>e[namespace].instanceLogin.isEditMode,selectIsPreviewModalOpen=e=>e[namespace].instanceLogin.isPreviewModalOpen,selectIsInputsValid=e=>e[namespace].instanceLogin.isInputsValid;function*fetchPlatformInfoSaga(e){try{var t=yield getPlatformProperties(yield select(selectApiConfigs));yield put(actions.instanceLogin.loadInitialStateSuccess(t))}catch(e){console.error("error:",e),yield put(actions.instanceLogin.loadInitialStateFailed())}}function*savePlatformPropertiesSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t),n=yield select(selectInitialPlatformProperties),r=yield select(selectLoginConfig),n=Object.assign(Object.assign({},n.properties),{loginConfig:r});try{yield savePlatformProperties(yield select(selectApiConfigs),n),yield put(actions.instanceLogin.saveLoginConfigSuccess()),yield put(showMessage({content:isEqual_1("production","development")?"Login configuration saved.":t({id:"instanceLoginConfig.success",defaultMessage:[{type:0,value:"Login configuration saved."}]}),severity:MessageSeverity.Success}))}catch(e){console.error("error:",e),yield put(actions.instanceLogin.saveLoginConfigFailed()),yield put(showMessage({content:isEqual_1("production","development")?"Save login configuration failed.":t({id:"instanceLoginConfig.failed",defaultMessage:[{type:0,value:"Save login configuration failed."}]}),severity:MessageSeverity.Error}))}}function*fetchPlatformInfoWatcher(){yield takeEvery$1(actions.instanceLogin.loadInitialStateInit,fetchPlatformInfoSaga)}function*savePlatformPropertiesWatcher(){yield takeLatest$1(actions.instanceLogin.saveLoginConfigInit.type,savePlatformPropertiesSaga)}function*rootSaga(){yield all([fetchPlatformInfoWatcher(),savePlatformPropertiesWatcher()])}function getInstanceAdminCenterInstanceLoginModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const SHARED_TEXT={panel:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.cancel-btn",defaultMessage:"Cancel",description:"Cancel Instance Login text"}),save:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.save-btn",defaultMessage:"Save",description:"Save Instance Login text"}),editLogin:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.header-edit-login-text",defaultMessage:"Edit Login",description:"Instance Login header edit login text"}),newLogin:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.header-new-login-text",defaultMessage:"New Login",description:"Instance Login header new login text"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.instructions-text",defaultMessage:"Create a custom branded login page for this organization, with a dedicated domain for users to access their aiWARE account.",description:"Instance Login instructions text"}),logoTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.brand-logo",defaultMessage:"Brand Logo",description:"Brand Logo"}),logoDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.brand-logo-text",defaultMessage:"This logo will be used on your login page.",description:"Brand Logo description"}),showMeLink:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me-link",defaultMessage:"Show me",description:"Show me link"}),imageSize:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.recommended-image-size-text",defaultMessage:"Recommended image size:",description:"Recommended image size text"}),fileSpec:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.recommended-image-size",defaultMessage:"300x200 .png or .svg",description:"Recommended image size"}),buttonPreview:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.button-preview-heading",defaultMessage:"Button Preview",description:"Button Preview heading"}),buttonPreviewDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.button-preview-text",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Preview text description"}),continueButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.modal-continue-button",defaultMessage:"Continue",description:"Instance Login show me modal continue button"}),colorPickerTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"customize-button-title",defaultMessage:"Customize Colors",description:"Customize Colors title"}),colorPickerDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"customize-button-description",defaultMessage:"Change the primary and secondary color of the login and sign up pages to match your brand.",description:"Customize Colors description"}),resetToDefault:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"customize-button-reset-to-default",defaultMessage:"Reset to Default",description:"Customize Colors reset to default"})},previewModal:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.modal-title",defaultMessage:"PREVIEW",description:"Instance Login show me modal title"}),body1:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.modal-description",defaultMessage:"This is how your login page will look.",description:"Instance Login show me modal description"}),body2:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.text",defaultMessage:"Your custom logo will be placed here.",description:"Instance Login show me modal text"})}};var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,thisSymbolValue,symbolDescriptiveString,regexp,replace$1,stringSlice$1,activeXDocument,wellKnownSymbol$6=wellKnownSymbol$8,TO_STRING_TAG$3=wellKnownSymbol$8("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$5=isCallable$g,classofRaw=classofRaw$1,wellKnownSymbol$5=wellKnownSymbol$8,TO_STRING_TAG$2=wellKnownSymbol$8("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$5(e.callee)?"Arguments":t},classof=classof$1,$String$1=String,toString$2=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},makeBuiltIn=makeBuiltIn$3.exports,defineProperty$3=objectDefineProperty,defineBuiltInAccessor$1=function(e,t,n){return n.get&&makeBuiltIn(n.get,t,{getter:!0}),n.set&&makeBuiltIn(n.set,t,{setter:!0}),defineProperty$3.f(e,t,n)},$$3=_export,DESCRIPTORS$2=descriptors,global$5=global$f,uncurryThis$2=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$4=isCallable$g,isPrototypeOf=objectIsPrototypeOf,toString$1=toString$2,defineBuiltInAccessor=defineBuiltInAccessor$1,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$f.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype,objectDefineProperties=(!DESCRIPTORS$2||!isCallable$4(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$1(arguments[0]),t=isPrototypeOf(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),thisSymbolValue=uncurryThis$2(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis$2(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace$1=uncurryThis$2("".replace),stringSlice$1=uncurryThis$2("".slice),defineBuiltInAccessor(SymbolPrototype,"description",{configurable:!0,get:function(){var e=thisSymbolValue(this);return hasOwn$2(EmptyStringDescriptionStore,e)?"":(e=symbolDescriptiveString(e),""===(e=NATIVE_SYMBOL?stringSlice$1(e,7,-1):replace$1(e,regexp,"$1"))?void 0:e)}}),$$3({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),{}),DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$3=anObject$6,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$3(e);for(var n,r=toIndexedObject$1(t),o=objectKeys(t),i=o.length,a=0;a<i;)definePropertyModule.f(e,n=o[a++],r[n]);return e},getBuiltIn$3),html$1=getBuiltIn$3("document","documentElement"),anObject$2=anObject$6,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,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.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$2(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$4=wellKnownSymbol$8,create$2=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$4("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$2=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$2(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),$$2=_export,$includes=arrayIncludes.includes,fails$5=fails$f,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$f(function(){return!Array(1).includes()});function getFileAsBase64(e,t){const n=new FileReader;n.readAsDataURL(e),n.onload=function(){t(n.result)},n.onerror=function(e){console.log("error getting base64: ",e)}}function isFileImage(e){e=e.type;return["image/png","image/svg+xml","image/jpeg"].includes(e)}$$2({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables$1("includes");const PanelModal=panelComponents["modal"],PreviewModal=()=>{const e=useDispatch();var t=useSelector(selectIsPreviewModalOpen),{logoUrl:n,buttonColor:r,buttonTextColor:o}=useSelector(selectLoginConfig)||{},i=()=>{e(actions.instanceLogin.setPreviewModalOpen(!1))};return jsxRuntime.exports.jsx(PanelModal,{sx:{maxHeight:"95vh"},ContainerProps:{sx:{width:"100%",padding:"15px 30px",boxSizing:"border-box",overflow:"hidden"}},isOpen:t,onClose:i,title:SHARED_TEXT.previewModal.title(),content:jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{gap:"10px"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{paddingBottom:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:0}},{children:SHARED_TEXT.previewModal.body1()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:SHARED_TEXT.previewModal.body2()}))]})),jsxRuntime.exports.jsx(Divider,{sx:{marginBottom:"20px"}}),n&&jsxRuntime.exports.jsx(Stack,Object.assign({sx:{height:"200px",width:"300px",alignItems:"center",justifyContent:"center",margin:"0 auto",border:"2px dashed rgb(213 223 233 / 69%)",borderRadius:"10px","& img":{width:"100%",height:"100%",objectFit:"contain",borderRadius:"10px"}}},{children:jsxRuntime.exports.jsx("img",{"data-testid":"instance-admin-center-login-modal-logo-preview",style:{pointerEvents:"none"},draggable:!1,src:n,alt:"logo-preview"})})),jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{alignItems:"center",justifyContent:"center",gap:"10px",paddingBottom:"50px"}},{children:[jsxRuntime.exports.jsx(Box,{sx:{width:"300px",height:"40px",background:"#e4e4e4",borderRadius:"10px"}}),jsxRuntime.exports.jsx(Button,Object.assign({onClick:i,"data-testid":"instance-admin-center-login-modal-button-preview",variant:"contained",sx:{width:"300px",height:"40px",borderRadius:"10px",background:r+"!important",backgroundColor:r+"!important",color:o+"!important","&.Sdk-MuiButton-root:not(:disabled):not(:hover)":{background:r+"!important",backgroundColor:r+"!important",color:o+"!important"}}},{children:SHARED_TEXT.panel.continueButton()}))]}))]})),labeledBy:"instance-admin-center.instance-login.show-me.modal-title",describedBy:"instance-admin-center.instance-login.show-me.modal-description"})};var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,iterators={},fails$4=fails$f,correctPrototypeGetter=!fails$f(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$3=isCallable$g,toObject=toObject$3,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject(e);return hasOwn$1(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$3(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$3=fails$f,isCallable$2=isCallable$g,isObject=isObject$6,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$3=wellKnownSymbol$8,ITERATOR$2=wellKnownSymbol$8("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),!isObject(IteratorPrototype$2)||fails$3(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$2((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$1=objectDefineProperty.f,hasOwn=hasOwnProperty_1,wellKnownSymbol$2=wellKnownSymbol$8,TO_STRING_TAG$1=wellKnownSymbol$8("toStringTag"),setToStringTag$2=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn(e,TO_STRING_TAG$1)&&defineProperty$1(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},uncurryThis$1=functionUncurryThis,aCallable=aCallable$2,functionUncurryThisAccessor=function(e,t,n){try{return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$1=isCallable$g,$String=String,$TypeError=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$1(e))return e;throw $TypeError("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$1=anObject$6,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$1(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),$$1=_export,call$1=functionCall,FunctionName=functionName,isCallable=isCallable$g,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$1=wellKnownSymbol$8,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,o,i,a){createIteratorConstructor(n,t,r);function s(e){if(e===o&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$1]||p["@@iterator"]||o&&p[o],g=!BUGGY_SAFARI_ITERATORS&&d||s(o),$="Array"==t&&p.entries||d;if($&&($=getPrototypeOf($.call(new e)))!==Object.prototype&&$.next&&(getPrototypeOf($)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf($,IteratorPrototype):isCallable($[ITERATOR$1])||defineBuiltIn($,ITERATOR$1,returnThis)),setToStringTag($,r,!0)),PROPER_FUNCTION_NAME&&o==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,g=function(){return call$1(d,this)})),o)if(l={values:s(VALUES),keys:i?g:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn(p,c,l[c]);else $$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$1]!==g&&defineBuiltIn(p,ITERATOR$1,g,{name:o}),Iterators$1[t]=g,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState$1=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(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$4=global$f,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol=wellKnownSymbol$8,ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var n in ArrayIteratorMethods)if(t[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty(t,n,ArrayIteratorMethods[n])}catch(e){t[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$4[COLLECTION_NAME]&&global$4[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var anObject=anObject$6,regexpFlags$1=function(){var e=anObject(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$2=fails$f,global$3=global$f,$RegExp$2=global$f.RegExp,UNSUPPORTED_Y$1=fails$2(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$2(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$2(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$1=fails$f,global$2=global$f,$RegExp$1=global$f.RegExp,regexpUnsupportedDotAll=fails$1(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails=fails$f,global$1=global$f,$RegExp=global$f.RegExp,regexpUnsupportedNcg=fails(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call=functionCall,uncurryThis=functionUncurryThis,toString=toString$2,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt=uncurryThis("".charAt),indexOf=uncurryThis("".indexOf),replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call(nativeExec,e,"a"),call(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec=patchedExec=PATCH?function(e){var t,n,r,o,i,a,s=this,l=getInternalState(s),e=toString(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,p=call(patchedExec,c,e),s.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y&&s.sticky,p=call(regexpFlags,s),l=s.source,d=0,g=e;if(c&&(p=replace(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),g=stringSlice(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==charAt(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(n=s.lastIndex),r=call(nativeExec,c?t:s,g),c?r?(r.input=stringSlice(r.input,d),r[0]=stringSlice(r[0],d),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),NPCG_INCLUDED&&r&&1<r.length&&call(nativeReplace,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&u)for(r.groups=i=create(null),o=0;o<u.length;o++)i[(a=u[o])[0]]=r[a[1]];return r}:patchedExec,$=_export,exec=patchedExec;_export({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec:exec});const COLOR_BLOCKS=["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"],ColorBlockInput=({buttonColor:r,buttonTextColor:o,isButtonColorRequired:i=!1,onChangeButtonColor:t,onChangeTextColor:n,onValidationCheck:a,onReset:e})=>{const[s,l]=react.exports.useState(""),[c,u]=react.exports.useState(""),p=(react.exports.useEffect(()=>{var e=/^#([0-9A-Fa-f]{3}){1,2}$/.test(r),t=/^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(o),n=(l(e||0===r.length?"":"Invalid hex color format"),u(t||0===o.length?"":"Invalid hex color format"),t&&e);a&&a(n&&(!i||e&&t))},[o,r]),react.exports.useCallback(e=>{t(e)},[t]));return jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{position:"relative"}},{children:[jsxRuntime.exports.jsx(Stack,Object.assign({direction:"row",spacing:2,sx:{marginTop:"22px"}},{children:COLOR_BLOCKS.map(e=>jsxRuntime.exports.jsx(ColorBlock,{id:e,color:e,isActive:r===e,onClick:()=>p(e)},e))})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",spacing:2,sx:{marginTop:"18px"}},{children:[jsxRuntime.exports.jsx(TextField,{required:!0,id:"instance-admin-center-login-btnColor","data-test":"instance-admin-center-input-btnColor",autoComplete:"off",label:"Button Color",variant:"outlined",value:r,onChange:e=>{e=e.target.value;t(e)},error:0<s.length,helperText:s,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"instance-admin-center-login-btnTextColor","data-test":"admin-center-input-btnTextColor",autoComplete:"off",label:"Button Text Color",variant:"outlined",value:o,onChange:e=>{e=e.target.value;n(e)},error:0<c.length,helperText:c,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}})]})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"instance-admin-center-login-reset-color-button",variant:"text",size:"small",sx:{marginLeft:0,marginTop:"5px",width:"130px"},onClick:()=>{e()}},{children:jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontWeight:600,fontSize:"14px"}},{children:SHARED_TEXT.panel.resetToDefault()}))}))]}))},ColorBlock=({id:e,color:t,isActive:n,onClick:r})=>jsxRuntime.exports.jsx(Tooltip,Object.assign({TransitionComponent:Fade,title:t,placement:"top"},{children:jsxRuntime.exports.jsx(ButtonBase,Object.assign({id:e,"data-testid":t,sx:{"&:hover":{transform:n?"scale(1)":"scale(0.9)"},transition:"transform 0.2s ease-in-out",backgroundColor:t,width:"30px",height:"30px",borderRadius:"4px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:r},{children:n&&jsxRuntime.exports.jsx(Check,{sx:{color:"white"}})}))})),Footer=({onCancel:e,onSave:t,isSaveDisabled:n})=>jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",sx:{padding:"60px 30px 30px 30px",display:"flex",justifyContent:"flex-end",height:"10%",alignItems:"center"}},{children:[jsxRuntime.exports.jsx(Button,Object.assign({onClick:e,disabled:!1,variant:"text","data-testid":"instance-admin-center-instance-login--cancel-btn",sx:{marginRight:"15px"}},{children:SHARED_TEXT.panel.cancel()})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:t,disabled:n,variant:"contained","data-testid":"instance-admin-center-instance-login--save-btn"},{children:SHARED_TEXT.panel.save()}))]})),{ImageUpload}=imageUpload["jsx"],Content=()=>{const n=useDispatch(),t=react.exports.useRef(null);const{logoUrl:r="",buttonColor:o="",buttonTextColor:i=""}=useSelector(selectLoginConfig)||{};var e=useSelector(selectIsInputsValid);const a=e=>{var t=(new Date).toISOString(),t=Object.assign({logoUrl:r,buttonColor:o,buttonTextColor:i,createdDateTime:t},e||{});n(actions.instanceLogin.setLoginConfig(t))};return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({gap:"15px",sx:{height:"90%",overflow:"auto",paddingRight:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.description()})),jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"instance-admin-center-instance-login--title",variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.panel.logoTitle()})),jsxRuntime.exports.jsxs(Stack,Object.assign({gap:"8px",direction:"row"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"instance-admin-center-instance-login--logo-description",variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.logoDescription()})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"instance-admin-center-instance-login--show-me-link",component:"span",variant:"caption",sx:{fontWeight:400,fontSize:"14px",color:r?"#1565C0":"gray",cursor:r?"pointer":"not-allowed"},onClick:r?()=>{n(actions.instanceLogin.setPreviewModalOpen(!0))}:void 0},{children:SHARED_TEXT.panel.showMeLink()})),jsxRuntime.exports.jsx(PreviewModal,{})]}))]}),jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.panel.imageSize()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.panel.fileSpec()}))]}),jsxRuntime.exports.jsx(Stack,{children:jsxRuntime.exports.jsx(ImageUpload,{image:r,getUrl:!1,outerWidth:"366px",outerHeight:"161px",innerHeight:"145px",innerWidth:"350px",handleChange:e=>{null!==t.current&&(t.current.value=""),isFileImage(e)?getFileAsBase64(e,e=>{"string"==typeof e&&a({logoUrl:e})}):a({logoUrl:""})},testId:"instance-admin-center-instance-login--brand-logo"})}),jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.panel.colorPickerTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.colorPickerDescription()}))]}),jsxRuntime.exports.jsx(ColorBlockInput,{buttonColor:o,buttonTextColor:i,isButtonColorRequired:!0,onChangeButtonColor:e=>a({buttonColor:e}),onChangeTextColor:e=>a({buttonTextColor:e}),onReset:()=>a({buttonColor:"",buttonTextColor:""}),onValidationCheck:e=>{e=e,n(actions.instanceLogin.setIsInputsValid(e))}}),jsxRuntime.exports.jsx(ButtonPreview,{})]})),jsxRuntime.exports.jsx(Footer,{onCancel:()=>{n(hidePanel(PANEL_ID))},onSave:()=>{var e=(new Date).toISOString();a({createdDateTime:e}),n(actions.instanceLogin.saveLoginConfigInit()),n(hidePanel(PANEL_ID))},isSaveDisabled:!e})]}))},ButtonPreview=()=>{var{buttonColor:e="",buttonTextColor:t=""}=useSelector(selectLoginConfig)||{};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.panel.buttonPreview()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.buttonPreviewDescription()}))]}),jsxRuntime.exports.jsx(Button,Object.assign({fullWidth:!0,variant:"contained",color:"primary",disableTouchRipple:!0,sx:{background:e+"!important",backgroundColor:e+"!important",color:t+"!important","&.Sdk-MuiButton-root:not(:disabled):not(:hover)":{background:e+"!important",backgroundColor:e+"!important",color:t+"!important"},border:"1px solid "+e,height:"56px",width:"368px",fontSize:"18px",fontWeight:600,flexShrink:0}},{children:SHARED_TEXT.panel.continueButton()}))]})},{header:PanelHeader,container:PanelContainer,content:PanelContent}=panelComponents,MainLayout=({isFullScreen:e})=>{const t=useDispatch();var n=useSelector(selectInstanceLoginLoadingStatus),r="pending"===n,n="failure"===n,o=useSelector(selectIsEditMode);const i=()=>{t(actions.instanceLogin.loadInitialStateInit())};return react.exports.useEffect(()=>{i()},[]),jsxRuntime.exports.jsxs(PanelContainer,Object.assign({panelId:PANEL_ID,isFullScreen:e},{children:[jsxRuntime.exports.jsx(PanelHeader,{title:o?SHARED_TEXT.panel.editLogin():SHARED_TEXT.panel.newLogin(),testId:"instance-admin-center-instance-login--header",onPanelClose:function(){t(hidePanel(PANEL_ID))}}),jsxRuntime.exports.jsx(PanelContent,Object.assign({isLoading:r,isErrored:n,onRetry:i,style:{padding:"30px 0 0 30px"}},{children:jsxRuntime.exports.jsx(Content,{})}))]}))},InstanceAdminCenterInstanceLogin=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getInstanceAdminCenterInstanceLoginModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}))})});export{InstanceAdminCenterInstanceLogin};
1
+ import{X as createSlice,Y as combineReducers,j as jsxRuntime,bW as AIWareCacheProvider,aK as AIWareThemeProvider,Z as useSelector,r as react,B as all,ao as Box,a1 as hidePanel,D as takeEvery$1,C as takeLatest$1,E as select,a0 as selectApiConfigs,I as put,a4 as preferredLanguageSelector,a5 as showMessage,W as isEqual_1,a6 as MessageSeverity,a7 as AIWareFormatMessage,a3 as baseGraphQLApiWithError}from"./js-core.esm.js";import{p as DynamicModuleLoader,A as AIWareIntlProvider,k as FormattedMessage,T as Typography,h as Button,D as Divider,aR as Fade,B as ButtonBase}from"./js-core.esm5.js";import{n as Stack,z as panelComponents,T as TextField,d as Tooltip,ai as Check,o as imageUpload}from"./js-core.esm6.js";import{u as useDispatch}from"./js-core.esm7.js";var match,version,set,get,store,STATE,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$f=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$f=function(e){try{return!!e()}catch(e){return!0}},fails$e=fails$f,descriptors=!fails$f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$d=fails$f,functionBindNative=!fails$f(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$1=functionBindNative,call$7=Function.prototype.call,functionCall=NATIVE_BIND$1?call$7.bind(call$7):function(){return call$7.apply(call$7,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,call$6=FunctionPrototype$1.call,uncurryThisWithBind=NATIVE_BIND&&FunctionPrototype$1.bind.bind(call$6,call$6),functionUncurryThis=NATIVE_BIND?uncurryThisWithBind:function(e){return function(){return call$6.apply(e,arguments)}},uncurryThis$c=functionUncurryThis,toString$4=uncurryThis$c({}.toString),stringSlice$3=uncurryThis$c("".slice),classofRaw$1=function(e){return stringSlice$3(toString$4(e),8,-1)},uncurryThis$b=functionUncurryThis,fails$c=fails$f,classof$2=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$c(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$2(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$2=function(e){return null==e},isNullOrUndefined$1=isNullOrUndefined$2,$TypeError$6=TypeError,requireObjectCoercible$2=function(e){if(isNullOrUndefined$1(e))throw $TypeError$6("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$1(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$g=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$f=isCallable$g,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$6=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$f(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$f(e)},global$e=global$f,isCallable$e=isCallable$g,aFunction=function(e){return isCallable$e(e)?e:void 0},getBuiltIn$3=function(e,t){return arguments.length<2?aFunction(global$e[e]):global$e[e]&&global$e[e][t]},uncurryThis$a=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$d=global$f,userAgent=engineUserAgent,process=global$d.process,Deno=global$d.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$b=fails$f,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$b(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$2=getBuiltIn$3,isCallable$d=isCallable$g,isPrototypeOf$1=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$2("Symbol");return isCallable$d(t)&&isPrototypeOf$1(t.prototype,$Object$3(e))},$String$4=String,tryToString$1=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$c=isCallable$g,tryToString=tryToString$1,$TypeError$5=TypeError,aCallable$2=function(e){if(isCallable$c(e))return e;throw $TypeError$5(tryToString(e)+" is not a function")},aCallable$1=aCallable$2,isNullOrUndefined=isNullOrUndefined$2,getMethod$1=function(e,t){e=e[t];return isNullOrUndefined(e)?void 0:aCallable$1(e)},call$5=functionCall,isCallable$b=isCallable$g,isObject$5=isObject$6,$TypeError$4=TypeError,ordinaryToPrimitive$1=function(e,t){var n,r;if("string"===t&&isCallable$b(n=e.toString)&&!isObject$5(r=call$5(n,e)))return r;if(isCallable$b(n=e.valueOf)&&!isObject$5(r=call$5(n,e)))return r;if("string"!==t&&isCallable$b(n=e.toString)&&!isObject$5(r=call$5(n,e)))return r;throw $TypeError$4("Can't convert object to primitive value")},shared$4={exports:{}},global$c=global$f,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,n){try{defineProperty$6(global$c,t,{value:n,configurable:!0,writable:!0})}catch(e){global$c[t]=n}return n},global$b=global$f,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$f[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible=((shared$4.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$2),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible(e))},uncurryThis$9=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$8=functionUncurryThis,id=0,postfix=Math.random(),toString$3=uncurryThis$8(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$3(++id+postfix,36)},global$a=global$f,shared$3=shared$4.exports,hasOwn$9=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$a.Symbol,WellKnownSymbolsStore=shared$3("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$8=function(e){return hasOwn$9(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$9(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$4=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$7=wellKnownSymbol$8,$TypeError$3=TypeError,TO_PRIMITIVE=wellKnownSymbol$8("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var n=getMethod(e,TO_PRIMITIVE);if(n){if(n=call$4(n,e,t=void 0===t?"default":t),!isObject$4(n)||isSymbol$1(n))return n;throw $TypeError$3("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$9=global$f,isObject$3=isObject$6,document$1=global$f.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$a=descriptors,fails$a=fails$f,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$f(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors,call$3=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$8(e,t))return createPropertyDescriptor$2(!call$3(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$8=descriptors,fails$9=fails$f,v8PrototypeDefineBug=descriptors&&fails$f(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$3=String,$TypeError$2=TypeError,anObject$6=function(e){if(isObject$2(e))return e;throw $TypeError$2($String$3(e)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$5=anObject$6,toPropertyKey=toPropertyKey$2,$TypeError$1=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$6=(objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,n){var r;return anObject$5(e),t=toPropertyKey(t),anObject$5(n),"function"==typeof e&&"prototype"===t&&"value"in n&&WRITABLE in n&&!n[WRITABLE]&&(r=$getOwnPropertyDescriptor(e,t))&&r[WRITABLE]&&(e[t]=n.value,n={configurable:(CONFIGURABLE$1 in n?n:r)[CONFIGURABLE$1],enumerable:(ENUMERABLE in n?n:r)[ENUMERABLE],writable:!1}),$defineProperty(e,t,n)}:$defineProperty:function(e,t,n){if(anObject$5(e),t=toPropertyKey(t),anObject$5(n),IE8_DOM_DEFINE)try{return $defineProperty(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $TypeError$1("Accessors not supported");return"value"in n&&(e[t]=n.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6?function(e,t,n){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,n))}:function(e,t,n){return e[t]=n,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||getDescriptor(FunctionPrototype,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$7=functionUncurryThis,isCallable$a=isCallable$g,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$1=(isCallable$a(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$8=global$f,isCallable$9=isCallable$g,WeakMap$1=global$f.WeakMap,weakMapBasicDetection=isCallable$9(WeakMap$1)&&/native code/.test(String(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=weakMapBasicDetection,global$7=global$f,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared$1=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$7.TypeError,WeakMap=global$7.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared$1.state?((store=shared$1.state||(shared$1.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set=function(e,t){if(store.has(e))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,store.set(e,t),t},get=function(e){return store.get(e)||{}},function(e){return store.has(e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$6(e,STATE))throw TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$6(e,STATE)?e[STATE]:{}},function(e){return hasOwn$6(e,STATE)}),internalState={set:set,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$6=functionUncurryThis,fails$8=fails$f,isCallable$8=isCallable$g,hasOwn$5=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource=inspectSource$1,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$2=InternalStateModule$1.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$2=uncurryThis$6("".slice),replace$2=uncurryThis$6("".replace),join=uncurryThis$6([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$8(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,n){"Symbol("===stringSlice$2($String$2(t),0,7)&&(t="["+replace$2($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hasOwn$5(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&n&&hasOwn$5(n,"arity")&&e.length!==n.arity&&defineProperty$5(e,"length",{value:n.arity});try{n&&hasOwn$5(n,"constructor")&&n.constructor?DESCRIPTORS$4&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=enforceInternalState(e);return hasOwn$5(n,"source")||(n.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$7=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$8(this)&&getInternalState$2(this).source||inspectSource(this)},"toString"),isCallable$g),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$3=function(e,t,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:t;if(isCallable$7(n)&&makeBuiltIn$1(n,i,r),r.global)o?e[t]=n:defineGlobalProperty$1(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:definePropertyModule$2.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$1=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike=lengthOfArrayLike$1,createMethod=function(s){return function(e,t,n){var r,o=toIndexedObject$3(e),i=lengthOfArrayLike(o),a=toAbsoluteIndex(n,i);if(s&&t!=t){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$5=functionUncurryThis,hasOwn$4=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf$1=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$5([].push),objectKeysInternal=function(e,t){var n,r=toIndexedObject$2(e),o=0,i=[];for(n in r)!hasOwn$4(hiddenKeys$2,n)&&hasOwn$4(r,n)&&push(i,n);for(;t.length>o;)!hasOwn$4(r,n=t[o++])||~indexOf$1(i,n)||push(i,n);return i},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$1=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$3),uncurryThis$4=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$4=anObject$6,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$4(e)),n=getOwnPropertySymbolsModule$1.f;return n?concat$1(t,n(e)):t},hasOwn$3=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,n){for(var r=ownKeys(t),o=definePropertyModule$1.f,i=getOwnPropertyDescriptorModule.f,a=0;a<r.length;a++){var s=r[a];hasOwn$3(e,s)||n&&hasOwn$3(n,s)||o(e,s,i(t,s))}},fails$7=fails$f,isCallable$6=isCallable$g,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$6(t)?fails$7(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$6=global$f,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced=isForced_1,_export=function(e,t){var n,r,o,i=e.target,a=e.global,s=e.stat,l=a?global$6:s?global$6[i]||defineGlobalProperty(i,{}):(global$6[i]||{}).prototype;if(l)for(n in t){if(r=t[n],o=e.dontCallGetSet?(o=getOwnPropertyDescriptor(l,n))&&o.value:l[n],!isForced(a?n:i+(s?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;copyConstructorProperties$1(r,o)}(e.sham||o&&o.sham)&&createNonEnumerableProperty$2(r,"sham",!0),defineBuiltIn$2(l,n,r,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$3=descriptors,uncurryThis$3=functionUncurryThis,call$2=functionCall,fails$6=fails$f,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$3([].concat),objectAssign=!$assign||fails$6(function(){var e,t,n,r;return!(!DESCRIPTORS$3||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[n])||objectKeys$1($assign({},t)).join("")!=r})?function(e,t){for(var n=toObject$1(e),r=arguments.length,o=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;o<r;)for(var s,l=IndexedObject(arguments[o++]),c=i?concat(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,p=0;p<u;)s=c[p++],DESCRIPTORS$3&&!call$2(a,l,s)||(n[s]=l[s]);return n}:$assign,$$4=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="instanceLogin",PANEL_ID="INSTANCE_ADMIN_CENTER_INSTANCE_LOGIN",namespace="instanceLogin",initialState={isEditMode:!1,instanceLoginLoadingStatus:"idle",loginConfig:null,initialPlatformProperties:null,saveStatus:"idle",isPreviewModalOpen:!1,isInputsValid:!0},instanceLoginSlice=createSlice({name:namespace,initialState:initialState,reducers:{setIsInputsValid:(e,t)=>{e.isInputsValid=t.payload},setPreviewModalOpen:(e,t)=>{e.isPreviewModalOpen=t.payload},loadInitialStateInit:e=>{e.instanceLoginLoadingStatus="pending"},loadInitialStateSuccess:(e,t)=>{t.payload.properties.loginConfig&&(e.loginConfig=t.payload.properties.loginConfig,e.isEditMode=!0),e.initialPlatformProperties=t.payload,e.instanceLoginLoadingStatus="success"},loadInitialStateFailed:e=>{e.loginConfig=null,e.instanceLoginLoadingStatus="failure"},setLoginConfig:(e,t)=>{e.loginConfig=t.payload},setPlatformProperties:(e,t)=>{e.initialPlatformProperties=t.payload},setEditMode:(e,t)=>{e.isEditMode=t.payload},saveLoginConfigInit:e=>{e.saveStatus="pending"},saveLoginConfigSuccess:e=>{e.saveStatus="success"},saveLoginConfigFailed:e=>{e.saveStatus="failure"}}}),actions$1=instanceLoginSlice.actions;var instanceLogin_slice=instanceLoginSlice.reducer;const rootReducer=combineReducers({[namespace]:instanceLogin_slice}),actions={[namespace]:actions$1};function __awaiter(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{i(l.next(e))}catch(e){t(e)}}function o(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}i((l=l.apply(e,a||[])).next())})}function getPlatformProperties(n){return __awaiter(this,void 0,void 0,function*(){var e="platformInfo",t="platformInfo";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query platformInfo{\n platformInfo {\n properties\n }\n }\n ",operationName:e},n)))[t]})}function savePlatformProperties(t,n){return __awaiter(this,void 0,void 0,function*(){var e="savePlatformProperties";return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation savePlatformProperties($properties: JSONData!) {\n setPlatformProperties(properties: $properties)\n }\n ",operationName:e,variables:{properties:n}},t))).setPlatformProperties})}const selectInstanceLoginLoadingStatus=e=>e[namespace].instanceLogin.instanceLoginLoadingStatus,selectLoginConfig=e=>e[namespace].instanceLogin.loginConfig,selectInitialPlatformProperties=e=>e[namespace].instanceLogin.initialPlatformProperties,selectIsEditMode=e=>e[namespace].instanceLogin.isEditMode,selectIsPreviewModalOpen=e=>e[namespace].instanceLogin.isPreviewModalOpen,selectIsInputsValid=e=>e[namespace].instanceLogin.isInputsValid;function*fetchPlatformInfoSaga(e){try{var t=yield getPlatformProperties(yield select(selectApiConfigs));yield put(actions.instanceLogin.loadInitialStateSuccess(t))}catch(e){console.error("error:",e),yield put(actions.instanceLogin.loadInitialStateFailed())}}function*savePlatformPropertiesSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t),n=yield select(selectInitialPlatformProperties),r=yield select(selectLoginConfig),n=Object.assign(Object.assign({},n.properties),{loginConfig:r});try{yield savePlatformProperties(yield select(selectApiConfigs),n),yield put(actions.instanceLogin.saveLoginConfigSuccess()),yield put(showMessage({content:isEqual_1("production","development")?"Login configuration saved.":t({id:"instanceLoginConfig.success",defaultMessage:[{type:0,value:"Login configuration saved."}]}),severity:MessageSeverity.Success}))}catch(e){console.error("error:",e),yield put(actions.instanceLogin.saveLoginConfigFailed()),yield put(showMessage({content:isEqual_1("production","development")?"Save login configuration failed.":t({id:"instanceLoginConfig.failed",defaultMessage:[{type:0,value:"Save login configuration failed."}]}),severity:MessageSeverity.Error}))}}function*fetchPlatformInfoWatcher(){yield takeEvery$1(actions.instanceLogin.loadInitialStateInit,fetchPlatformInfoSaga)}function*savePlatformPropertiesWatcher(){yield takeLatest$1(actions.instanceLogin.saveLoginConfigInit.type,savePlatformPropertiesSaga)}function*rootSaga(){yield all([fetchPlatformInfoWatcher(),savePlatformPropertiesWatcher()])}function getInstanceAdminCenterInstanceLoginModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const SHARED_TEXT={panel:{cancel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.cancel-btn",defaultMessage:"Cancel",description:"Cancel Instance Login text"}),save:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.save-btn",defaultMessage:"Save",description:"Save Instance Login text"}),editLogin:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.header-edit-login-text",defaultMessage:"Edit Login",description:"Instance Login header edit login text"}),newLogin:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.header-new-login-text",defaultMessage:"New Login",description:"Instance Login header new login text"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.instructions-text",defaultMessage:"Create a custom branded login page for this organization, with a dedicated domain for users to access their aiWARE account.",description:"Instance Login instructions text"}),logoTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.brand-logo",defaultMessage:"Brand Logo",description:"Brand Logo"}),logoDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.brand-logo-text",defaultMessage:"This logo will be used on your login page.",description:"Brand Logo description"}),showMeLink:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me-link",defaultMessage:"Show me",description:"Show me link"}),imageSize:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.recommended-image-size-text",defaultMessage:"Recommended image size:",description:"Recommended image size text"}),fileSpec:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.recommended-image-size",defaultMessage:"300x200 .png or .svg",description:"Recommended image size"}),buttonPreview:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.button-preview-heading",defaultMessage:"Button Preview",description:"Button Preview heading"}),buttonPreviewDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.button-preview-text",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Preview text description"}),continueButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.modal-continue-button",defaultMessage:"Continue",description:"Instance Login show me modal continue button"}),colorPickerTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"customize-button-title",defaultMessage:"Customize Colors",description:"Customize Colors title"}),colorPickerDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"customize-button-description",defaultMessage:"Change the primary and secondary color of the login and sign up pages to match your brand.",description:"Customize Colors description"}),resetToDefault:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"customize-button-reset-to-default",defaultMessage:"Reset to Default",description:"Customize Colors reset to default"})},previewModal:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.modal-title",defaultMessage:"PREVIEW",description:"Instance Login show me modal title"}),body1:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.modal-description",defaultMessage:"This is how your login page will look.",description:"Instance Login show me modal description"}),body2:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.instance-login.show-me.text",defaultMessage:"Your custom logo will be placed here.",description:"Instance Login show me modal text"})}};var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,thisSymbolValue,symbolDescriptiveString,regexp,replace$1,stringSlice$1,activeXDocument,wellKnownSymbol$6=wellKnownSymbol$8,TO_STRING_TAG$3=wellKnownSymbol$8("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$3]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$5=isCallable$g,classofRaw=classofRaw$1,wellKnownSymbol$5=wellKnownSymbol$8,TO_STRING_TAG$2=wellKnownSymbol$8("toStringTag"),$Object$1=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object$1(e),TO_STRING_TAG$2))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$5(e.callee)?"Arguments":t},classof=classof$1,$String$1=String,toString$2=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String$1(e)},makeBuiltIn=makeBuiltIn$3.exports,defineProperty$3=objectDefineProperty,defineBuiltInAccessor$1=function(e,t,n){return n.get&&makeBuiltIn(n.get,t,{getter:!0}),n.set&&makeBuiltIn(n.set,t,{setter:!0}),defineProperty$3.f(e,t,n)},$$3=_export,DESCRIPTORS$2=descriptors,global$5=global$f,uncurryThis$2=functionUncurryThis,hasOwn$2=hasOwnProperty_1,isCallable$4=isCallable$g,isPrototypeOf=objectIsPrototypeOf,toString$1=toString$2,defineBuiltInAccessor=defineBuiltInAccessor$1,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$f.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype,objectDefineProperties=(!DESCRIPTORS$2||!isCallable$4(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString$1(arguments[0]),t=isPrototypeOf(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),thisSymbolValue=uncurryThis$2(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis$2(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace$1=uncurryThis$2("".replace),stringSlice$1=uncurryThis$2("".slice),defineBuiltInAccessor(SymbolPrototype,"description",{configurable:!0,get:function(){var e=thisSymbolValue(this);return hasOwn$2(EmptyStringDescriptionStore,e)?"":(e=symbolDescriptiveString(e),""===(e=NATIVE_SYMBOL?stringSlice$1(e,7,-1):replace$1(e,regexp,"$1"))?void 0:e)}}),$$3({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),{}),DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$3=anObject$6,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$3(e);for(var n,r=toIndexedObject$1(t),o=objectKeys(t),i=o.length,a=0;a<i;)definePropertyModule.f(e,n=o[a++],r[n]);return e},getBuiltIn$3),html$1=getBuiltIn$3("document","documentElement"),anObject$2=anObject$6,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,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.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var n;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$2(e),n=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,n[IE_PROTO$1]=e):n=NullProtoObject(),void 0===t?n:definePropertiesModule.f(n,t)}),wellKnownSymbol$4=wellKnownSymbol$8,create$2=objectCreate,defineProperty$2=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$4("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$2=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$2(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$2(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),$$2=_export,$includes=arrayIncludes.includes,fails$5=fails$f,addToUnscopables$1=addToUnscopables$2,BROKEN_ON_SPARSE=fails$f(function(){return!Array(1).includes()});function getFileAsBase64(e,t){const n=new FileReader;n.readAsDataURL(e),n.onload=function(){t(n.result)},n.onerror=function(e){console.log("error getting base64: ",e)}}function isFileImage(e){e=e.type;return["image/png","image/svg+xml","image/jpeg"].includes(e)}$$2({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables$1("includes");const PanelModal=panelComponents["modal"],PreviewModal=()=>{const e=useDispatch();var t=useSelector(selectIsPreviewModalOpen),{logoUrl:n,buttonColor:r,buttonTextColor:o}=useSelector(selectLoginConfig)||{},i=()=>{e(actions.instanceLogin.setPreviewModalOpen(!1))};return jsxRuntime.exports.jsx(PanelModal,{sx:{maxHeight:"95vh"},ContainerProps:{sx:{width:"100%",padding:"15px 30px",boxSizing:"border-box",overflow:"hidden"}},isOpen:t,onClose:i,title:SHARED_TEXT.previewModal.title(),content:jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{gap:"10px"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{paddingBottom:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:0}},{children:SHARED_TEXT.previewModal.body1()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body1"},{children:SHARED_TEXT.previewModal.body2()}))]})),jsxRuntime.exports.jsx(Divider,{sx:{marginBottom:"20px"}}),n&&jsxRuntime.exports.jsx(Stack,Object.assign({sx:{height:"200px",width:"300px",alignItems:"center",justifyContent:"center",margin:"0 auto",border:"2px dashed rgb(213 223 233 / 69%)",borderRadius:"10px","& img":{width:"100%",height:"100%",objectFit:"contain",borderRadius:"10px"}}},{children:jsxRuntime.exports.jsx("img",{"data-testid":"instance-admin-center-login-modal-logo-preview",style:{pointerEvents:"none"},draggable:!1,src:n,alt:"logo-preview"})})),jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{alignItems:"center",justifyContent:"center",gap:"10px",paddingBottom:"50px"}},{children:[jsxRuntime.exports.jsx(Box,{sx:{width:"300px",height:"40px",background:"#e4e4e4",borderRadius:"10px"}}),jsxRuntime.exports.jsx(Button,Object.assign({onClick:i,"data-testid":"instance-admin-center-login-modal-button-preview",variant:"contained",sx:{width:"300px",height:"40px",borderRadius:"10px",background:r+"!important",backgroundColor:r+"!important",color:o+"!important","&.Sdk-MuiButton-root:not(:disabled):not(:hover)":{background:r+"!important",backgroundColor:r+"!important",color:o+"!important"}}},{children:SHARED_TEXT.panel.continueButton()}))]}))]})),labeledBy:"instance-admin-center.instance-login.show-me.modal-title",describedBy:"instance-admin-center.instance-login.show-me.modal-description"})};var IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,iterators={},fails$4=fails$f,correctPrototypeGetter=!fails$f(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$1=hasOwnProperty_1,isCallable$3=isCallable$g,toObject=toObject$3,sharedKey=sharedKey$3,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$3("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject(e);return hasOwn$1(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$3(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails$3=fails$f,isCallable$2=isCallable$g,isObject=isObject$6,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$3=wellKnownSymbol$8,ITERATOR$2=wellKnownSymbol$8("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),!isObject(IteratorPrototype$2)||fails$3(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$2((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$1=objectDefineProperty.f,hasOwn=hasOwnProperty_1,wellKnownSymbol$2=wellKnownSymbol$8,TO_STRING_TAG$1=wellKnownSymbol$8("toStringTag"),setToStringTag$2=function(e,t,n){(e=e&&!n?e.prototype:e)&&!hasOwn(e,TO_STRING_TAG$1)&&defineProperty$1(e,TO_STRING_TAG$1,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create$1=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,n,r){t+=" Iterator";return e.prototype=create$1(IteratorPrototype$1,{next:createPropertyDescriptor(+!r,n)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},uncurryThis$1=functionUncurryThis,aCallable=aCallable$2,functionUncurryThisAccessor=function(e,t,n){try{return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},isCallable$1=isCallable$g,$String=String,$TypeError=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$1(e))return e;throw $TypeError("Can't set "+$String(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$1=anObject$6,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return anObject$1(e),aPossiblePrototype(t),r?n(e,t):e.__proto__=t,e}}():void 0),$$1=_export,call$1=functionCall,FunctionName=functionName,isCallable=isCallable$g,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$1=wellKnownSymbol$8,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,n,r,o,i,a){createIteratorConstructor(n,t,r);function s(e){if(e===o&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$1]||p["@@iterator"]||o&&p[o],g=!BUGGY_SAFARI_ITERATORS&&d||s(o),$="Array"==t&&p.entries||d;if($&&($=getPrototypeOf($.call(new e)))!==Object.prototype&&$.next&&(getPrototypeOf($)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf($,IteratorPrototype):isCallable($[ITERATOR$1])||defineBuiltIn($,ITERATOR$1,returnThis)),setToStringTag($,r,!0)),PROPER_FUNCTION_NAME&&o==VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,g=function(){return call$1(d,this)})),o)if(l={values:s(VALUES),keys:i?g:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn(p,c,l[c]);else $$1({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$1]!==g&&defineBuiltIn(p,ITERATOR$1,g,{name:o}),Iterators$1[t]=g,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$2,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState$1=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState$1(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(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$4=global$f,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol=wellKnownSymbol$8,ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var n in ArrayIteratorMethods)if(t[n]!==ArrayIteratorMethods[n])try{createNonEnumerableProperty(t,n,ArrayIteratorMethods[n])}catch(e){t[n]=ArrayIteratorMethods[n]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$4[COLLECTION_NAME]&&global$4[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var anObject=anObject$6,regexpFlags$1=function(){var e=anObject(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$2=fails$f,global$3=global$f,$RegExp$2=global$f.RegExp,UNSUPPORTED_Y$1=fails$2(function(){var e=$RegExp$2("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),MISSED_STICKY=UNSUPPORTED_Y$1||fails$2(function(){return!$RegExp$2("a","y").sticky}),BROKEN_CARET=UNSUPPORTED_Y$1||fails$2(function(){var e=$RegExp$2("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),regexpStickyHelpers={BROKEN_CARET:BROKEN_CARET,MISSED_STICKY:MISSED_STICKY,UNSUPPORTED_Y:UNSUPPORTED_Y$1},fails$1=fails$f,global$2=global$f,$RegExp$1=global$f.RegExp,regexpUnsupportedDotAll=fails$1(function(){var e=$RegExp$1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),fails=fails$f,global$1=global$f,$RegExp=global$f.RegExp,regexpUnsupportedNcg=fails(function(){var e=$RegExp("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),call=functionCall,uncurryThis=functionUncurryThis,toString=toString$2,regexpFlags=regexpFlags$1,stickyHelpers=regexpStickyHelpers,shared=shared$4.exports,create=objectCreate,getInternalState=internalState.get,UNSUPPORTED_DOT_ALL=regexpUnsupportedDotAll,UNSUPPORTED_NCG=regexpUnsupportedNcg,nativeReplace=shared("native-string-replace",String.prototype.replace),nativeExec=RegExp.prototype.exec,patchedExec=nativeExec,charAt=uncurryThis("".charAt),indexOf=uncurryThis("".indexOf),replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return call(nativeExec,e,"a"),call(nativeExec,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UNSUPPORTED_Y=stickyHelpers.BROKEN_CARET,NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED||UNSUPPORTED_Y||UNSUPPORTED_DOT_ALL||UNSUPPORTED_NCG,regexpExec=patchedExec=PATCH?function(e){var t,n,r,o,i,a,s=this,l=getInternalState(s),e=toString(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,p=call(patchedExec,c,e),s.lastIndex=c.lastIndex,p;var u=l.groups,c=UNSUPPORTED_Y&&s.sticky,p=call(regexpFlags,s),l=s.source,d=0,g=e;if(c&&(p=replace(p,"y",""),-1===indexOf(p,"g")&&(p+="g"),g=stringSlice(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==charAt(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,d++),t=new RegExp("^(?:"+l+")",p)),NPCG_INCLUDED&&(t=new RegExp("^"+l+"$(?!\\s)",p)),UPDATES_LAST_INDEX_WRONG&&(n=s.lastIndex),r=call(nativeExec,c?t:s,g),c?r?(r.input=stringSlice(r.input,d),r[0]=stringSlice(r[0],d),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:UPDATES_LAST_INDEX_WRONG&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),NPCG_INCLUDED&&r&&1<r.length&&call(nativeReplace,r[0],t,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r&&u)for(r.groups=i=create(null),o=0;o<u.length;o++)i[(a=u[o])[0]]=r[a[1]];return r}:patchedExec,$=_export,exec=patchedExec;_export({target:"RegExp",proto:!0,forced:/./.exec!==exec},{exec:exec});const COLOR_BLOCKS=["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"],ColorBlockInput=({buttonColor:r,buttonTextColor:o,isButtonColorRequired:i=!1,onChangeButtonColor:t,onChangeTextColor:n,onValidationCheck:a,onReset:e})=>{const[s,l]=react.exports.useState(""),[c,u]=react.exports.useState(""),p=(react.exports.useEffect(()=>{var e=/^#([0-9A-Fa-f]{3}){1,2}$/.test(r),t=/^#[0-9A-Fa-f]{3}([0-9A-Fa-f]{3})?$/.test(o),n=(l(e||0===r.length?"":"Invalid hex color format"),u(t||0===o.length?"":"Invalid hex color format"),t&&e);a&&a(n&&(!i||e&&t))},[o,r]),react.exports.useCallback(e=>{t(e)},[t]));return jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{position:"relative"}},{children:[jsxRuntime.exports.jsx(Stack,Object.assign({direction:"row",spacing:2,sx:{marginTop:"22px"}},{children:COLOR_BLOCKS.map(e=>jsxRuntime.exports.jsx(ColorBlock,{id:e,color:e,isActive:r===e,onClick:()=>p(e)},e))})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",spacing:2,sx:{marginTop:"18px"}},{children:[jsxRuntime.exports.jsx(TextField,{required:!0,id:"instance-admin-center-login-btnColor","data-test":"instance-admin-center-input-btnColor",autoComplete:"off",label:"Button Color",variant:"outlined",value:r,onChange:e=>{e=e.target.value;t(e)},error:0<s.length,helperText:s,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"instance-admin-center-login-btnTextColor","data-test":"admin-center-input-btnTextColor",autoComplete:"off",label:"Button Text Color",variant:"outlined",value:o,onChange:e=>{e=e.target.value;n(e)},error:0<c.length,helperText:c,size:"medium",sx:{marginLeft:0,marginRight:0,marginTop:0,width:"190px"}})]})),jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"instance-admin-center-login-reset-color-button",variant:"text",size:"small",sx:{marginLeft:0,marginTop:"5px",width:"130px"},onClick:()=>{e()}},{children:jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontWeight:600,fontSize:"14px"}},{children:SHARED_TEXT.panel.resetToDefault()}))}))]}))},ColorBlock=({id:e,color:t,isActive:n,onClick:r})=>jsxRuntime.exports.jsx(Tooltip,Object.assign({TransitionComponent:Fade,title:t,placement:"top"},{children:jsxRuntime.exports.jsx(ButtonBase,Object.assign({id:e,"data-testid":t,sx:{"&:hover":{transform:n?"scale(1)":"scale(0.9)"},transition:"transform 0.2s ease-in-out",backgroundColor:t,width:"30px",height:"30px",borderRadius:"4px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center"},onClick:r},{children:n&&jsxRuntime.exports.jsx(Check,{sx:{color:"white"}})}))})),Footer=({onCancel:e,onSave:t,isSaveDisabled:n})=>jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",sx:{padding:"60px 30px 30px 30px",display:"flex",justifyContent:"flex-end",height:"10%",alignItems:"center"}},{children:[jsxRuntime.exports.jsx(Button,Object.assign({onClick:e,disabled:!1,variant:"text","data-testid":"instance-admin-center-instance-login--cancel-btn",sx:{marginRight:"15px"}},{children:SHARED_TEXT.panel.cancel()})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:t,disabled:n,variant:"contained","data-testid":"instance-admin-center-instance-login--save-btn"},{children:SHARED_TEXT.panel.save()}))]})),{ImageUpload}=imageUpload["jsx"],Content=()=>{const n=useDispatch(),t=react.exports.useRef(null);const{logoUrl:r="",buttonColor:o="",buttonTextColor:i=""}=useSelector(selectLoginConfig)||{};var e=useSelector(selectIsInputsValid);const a=e=>{var t=(new Date).toISOString(),t=Object.assign({logoUrl:r,buttonColor:o,buttonTextColor:i,createdDateTime:t},e||{});n(actions.instanceLogin.setLoginConfig(t))};return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({gap:"15px",sx:{height:"90%",overflow:"auto",paddingRight:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.description()})),jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"instance-admin-center-instance-login--title",variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.panel.logoTitle()})),jsxRuntime.exports.jsxs(Stack,Object.assign({gap:"8px",direction:"row"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"instance-admin-center-instance-login--logo-description",variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.logoDescription()})),jsxRuntime.exports.jsx(Typography,Object.assign({"data-testid":"instance-admin-center-instance-login--show-me-link",component:"span",variant:"caption",sx:{fontWeight:400,fontSize:"14px",color:r?"#1565C0":"gray",cursor:r?"pointer":"not-allowed"},onClick:r?()=>{n(actions.instanceLogin.setPreviewModalOpen(!0))}:void 0},{children:SHARED_TEXT.panel.showMeLink()})),jsxRuntime.exports.jsx(PreviewModal,{})]}))]}),jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.panel.imageSize()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.panel.fileSpec()}))]}),jsxRuntime.exports.jsx(Stack,{children:jsxRuntime.exports.jsx(ImageUpload,{image:r,getUrl:!1,outerWidth:"366px",outerHeight:"161px",innerHeight:"145px",innerWidth:"350px",handleChange:e=>{null!==t.current&&(t.current.value=""),isFileImage(e)?getFileAsBase64(e,e=>{"string"==typeof e&&a({logoUrl:e})}):a({logoUrl:""})},testId:"instance-admin-center-instance-login--brand-logo"})}),jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.panel.colorPickerTitle()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.colorPickerDescription()}))]}),jsxRuntime.exports.jsx(ColorBlockInput,{buttonColor:o,buttonTextColor:i,isButtonColorRequired:!0,onChangeButtonColor:e=>a({buttonColor:e}),onChangeTextColor:e=>a({buttonTextColor:e}),onReset:()=>a({buttonColor:"",buttonTextColor:""}),onValidationCheck:e=>{e=e,n(actions.instanceLogin.setIsInputsValid(e))}}),jsxRuntime.exports.jsx(ButtonPreview,{})]})),jsxRuntime.exports.jsx(Footer,{onCancel:()=>{n(hidePanel(PANEL_ID))},onSave:()=>{var e=(new Date).toISOString();a({createdDateTime:e}),n(actions.instanceLogin.saveLoginConfigInit()),n(hidePanel(PANEL_ID))},isSaveDisabled:!e})]}))},ButtonPreview=()=>{var{buttonColor:e="",buttonTextColor:t=""}=useSelector(selectLoginConfig)||{};return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.panel.buttonPreview()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.panel.buttonPreviewDescription()}))]}),jsxRuntime.exports.jsx(Button,Object.assign({fullWidth:!0,variant:"contained",color:"primary",disableTouchRipple:!0,sx:{background:e+"!important",backgroundColor:e+"!important",color:t+"!important","&.Sdk-MuiButton-root:not(:disabled):not(:hover)":{background:e+"!important",backgroundColor:e+"!important",color:t+"!important"},border:"1px solid "+e,height:"56px",width:"368px",fontSize:"18px",fontWeight:600,flexShrink:0}},{children:SHARED_TEXT.panel.continueButton()}))]})},{header:PanelHeader,container:PanelContainer,content:PanelContent}=panelComponents,MainLayout=({isFullScreen:e})=>{const t=useDispatch();var n=useSelector(selectInstanceLoginLoadingStatus),r="pending"===n,n="failure"===n,o=useSelector(selectIsEditMode);const i=()=>{t(actions.instanceLogin.loadInitialStateInit())};return react.exports.useEffect(()=>{i()},[]),jsxRuntime.exports.jsxs(PanelContainer,Object.assign({panelId:PANEL_ID,isFullScreen:e},{children:[jsxRuntime.exports.jsx(PanelHeader,{title:o?SHARED_TEXT.panel.editLogin():SHARED_TEXT.panel.newLogin(),testId:"instance-admin-center-instance-login--header",onPanelClose:function(){t(hidePanel(PANEL_ID))}}),jsxRuntime.exports.jsx(PanelContent,Object.assign({isLoading:r,isErrored:n,onRetry:i,style:{padding:"30px 0 0 30px"}},{children:jsxRuntime.exports.jsx(Content,{})}))]}))},InstanceAdminCenterInstanceLogin=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getInstanceAdminCenterInstanceLoginModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}))})});export{InstanceAdminCenterInstanceLogin};
Binary file