aiware-js 1.0.0-master.1237 → 1.0.0-master.1239

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.
package/js-core.esm75.js CHANGED
@@ -1,4 +1,4 @@
1
- import{bP as AvailableComponents,X as createSlice,fX as md5,Z as useSelector,bX as selectIsFullscreenEnabled,j as jsxRuntime,V as Box,aJ as AIWareThemeProvider,Y as combineReducers,a2 as lodash,U as createSelector,r as react,ap as mountPanel,z as all,a1 as hidePanel,B as takeEvery$1,A as takeLatest$1,C as select,a0 as selectApiConfigs,G as put,a4 as preferredLanguageSelector,ao as unmountPanel,a5 as showMessage,a6 as MessageSeverity,a7 as AIWareFormatMessage,a3 as baseGraphQLApiWithError,S as baseGraphQLApi}from"./js-core.esm.js";import{m as makeStyles,T as Typography,F as FormattedMessage,g as Button,bN as Add,o as DynamicModuleLoader,ah as Grid,D as Divider}from"./js-core.esm4.js";import{b as Stack,j as Skeleton,z as debounce_1,p as panelComponents,t as tableInfiniteScroll,K as tableSearchComponents,A as Avatar,N as index,aG as ChipComponents,y as statusPill,m as devErrorLogger}from"./js-core.esm5.js";import{u as useDispatch}from"./js-core.esm6.js";var match,version,set$1,get,store,STATE,TOrganizationStatus,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$k=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||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$3=functionBindNative,call$d=Function.prototype.call,functionCall=NATIVE_BIND$3?call$d.bind(call$d):function(){return call$d.apply(call$d,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$c=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$c,call$c),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$c.apply(e,arguments)}},uncurryThis$i=functionUncurryThis,toString$6=uncurryThis$i({}.toString),stringSlice$2=uncurryThis$i("".slice),classofRaw$2=function(e){return stringSlice$2(toString$6(e),8,-1)},uncurryThis$h=functionUncurryThis,fails$c=fails$f,classof$6=classofRaw$2,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$c(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"===classof$6(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$d=TypeError,requireObjectCoercible$5=function(e){if(isNullOrUndefined$3(e))throw new $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$4(e))},documentAll="object"==typeof document&&document.all,isCallable$k=void 0===documentAll&&void 0!==documentAll?function(e){return"function"==typeof e||e===documentAll}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,isObject$b=function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$j=global$k,isCallable$i=isCallable$k,aFunction=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$j[e]):global$j[e]&&global$j[e][t]},uncurryThis$g=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$i=global$k,userAgent$3=engineUserAgent,process$3=global$i.process,Deno$1=global$i.Deno,versions=process$3&&process$3.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$b=fails$f,global$h=global$k,$String$5=global$k.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$b(function(){var e=Symbol("symbol detection");return!$String$5(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$h=isCallable$k,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$h(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$g=isCallable$k,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$8=function(e){if(isCallable$g(e))return e;throw new $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){e=e[t];return isNullOrUndefined$2(e)?void 0:aCallable$7(e)},call$b=functionCall,isCallable$f=isCallable$k,isObject$a=isObject$b,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$f(r=e.toString)&&!isObject$a(n=call$b(r,e)))return n;if(isCallable$f(r=e.valueOf)&&!isObject$a(n=call$b(r,e)))return n;if("string"!==t&&isCallable$f(r=e.toString)&&!isObject$a(n=call$b(r,e)))return n;throw new $TypeError$b("Can't convert object to primitive value")},sharedStore={exports:{}},global$g=global$k,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},globalThis$1=global$k,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$1[SHARED]||defineGlobalProperty$2(SHARED,{}),store$2=((store$3.versions||(store$3.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"}),sharedStore.exports),shared$3=function(e,t){return store$2[e]||(store$2[e]=t||{})},requireObjectCoercible$3=requireObjectCoercible$5,$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$3(e))},uncurryThis$f=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$e=functionUncurryThis,id=0,postfix=Math.random(),toString$5=uncurryThis$e(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$5(++id+postfix,36)},global$f=global$k,shared$2=shared$3,hasOwn$a=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$k.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$g=function(e){return hasOwn$a(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$a(Symbol$2,e)?Symbol$2[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$a=functionCall,isObject$9=isObject$b,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$f=wellKnownSymbol$g,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$g("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$9(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$a(r,e,t=void 0===t?"default":t),!isObject$9(r)||isSymbol$1(r))return r;throw new $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$e=global$k,isObject$8=isObject$b,document$3=global$k.document,EXISTS$1=isObject$8(document$3)&&isObject$8(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$c=descriptors,fails$a=fails$f,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$f(function(){return 7!==Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$b=descriptors,call$9=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$9=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$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$9(e,t))return createPropertyDescriptor$2(!call$9(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$a=descriptors,fails$9=fails$f,v8PrototypeDefineBug=descriptors&&fails$f(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$7=isObject$b,$String$3=String,$TypeError$9=TypeError,anObject$9=function(e){if(isObject$7(e))return e;throw new $TypeError$9($String$3(e)+" is not an object")},DESCRIPTORS$9=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$8=anObject$9,toPropertyKey=toPropertyKey$2,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$8=(objectDefineProperty.f=DESCRIPTORS$9?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$8(e),t=toPropertyKey(t),anObject$8(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$8(e),t=toPropertyKey(t),anObject$8(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$8?function(e,t,r){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$7=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$7&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$7||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$d=functionUncurryThis,isCallable$e=isCallable$k,store$1=sharedStore.exports,functionToString=uncurryThis$d(Function.toString),inspectSource$3=(isCallable$e(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$d=global$k,isCallable$d=isCallable$k,WeakMap$1=global$k.WeakMap,weakMapBasicDetection=isCallable$d(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3,uid=uid$2,keys=shared$3("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$c=global$k,isObject$6=isObject$b,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$7=hasOwnProperty_1,shared=sharedStore.exports,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$c.TypeError,WeakMap=global$c.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$6(e)&&(e=get(e)).type===t)return e;throw new TypeError$2("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 new TypeError$2(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$7(e,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$7(e,STATE)?e[STATE]:{}},function(e){return hasOwn$7(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$c=functionUncurryThis,fails$8=fails$f,isCallable$c=isCallable$k,hasOwn$6=hasOwnProperty_1,DESCRIPTORS$6=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$1=uncurryThis$c("".slice),replace$2=uncurryThis$c("".replace),join=uncurryThis$c([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$6&&!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,r){"Symbol("===stringSlice$1($String$2(t),0,7)&&(t="["+replace$2($String$2(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$6(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$6?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$6(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$6(r,"constructor")&&r.constructor?DESCRIPTORS$6&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$6(r,"source")||(r.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$b=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$c(this)&&getInternalState$1(this).source||inspectSource$2(this)},"toString"),isCallable$k),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$5=function(e,t,r,n){var a=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(isCallable$b(r)&&makeBuiltIn$1(r,o,n),n.global)a?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:definePropertyModule$2.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.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){e=toIntegerOrInfinity(e);return 0<e?min(e,9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$2=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$1=function(s){return function(e,t,r){var n=toIndexedObject$3(e),a=lengthOfArrayLike$1(n);if(0!==a){var o,i=toAbsoluteIndex(r,a);if(s&&t!=t){for(;i<a;)if((o=n[i++])!=o)return!0}else for(;i<a;i++)if((s||i in n)&&n[i]===t)return s||i||0}return!s&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$b=functionUncurryThis,hasOwn$5=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$b([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),a=0,o=[];for(r in n)!hasOwn$5(hiddenKeys$2,r)&&hasOwn$5(n,r)&&push(o,r);for(;t.length>a;)!hasOwn$5(n,r=t[a++])||~indexOf(o,r)||push(o,r);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$a=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$7=anObject$9,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$7(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$4=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),a=definePropertyModule$1.f,o=getOwnPropertyDescriptorModule.f,i=0;i<n.length;i++){var s=n[i];hasOwn$4(e,s)||r&&hasOwn$4(r,s)||a(e,s,o(t,s))}},fails$7=fails$f,isCallable$a=isCallable$k,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e===POLYFILL||e!==NATIVE&&(isCallable$a(t)?fails$7(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$b=global$k,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,n,a,o=e.target,i=e.global,s=e.stat,c=i?global$b:s?global$b[o]||defineGlobalProperty(o,{}):global$b[o]&&global$b[o].prototype;if(c)for(r in t){if(n=t[r],a=e.dontCallGetSet?(a=getOwnPropertyDescriptor$1(c,r))&&a.value:c[r],!isForced$1(i?r:o+(s?".":"#")+r,e.forced)&&void 0!==a){if(typeof n==typeof a)continue;copyConstructorProperties$1(n,a)}(e.sham||a&&a.sham)&&createNonEnumerableProperty$2(n,"sham",!0),defineBuiltIn$4(c,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$5=descriptors,uncurryThis$9=functionUncurryThis,call$8=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$9([].concat),objectAssign=!$assign||fails$6(function(){var e,t,r,n;return!(!DESCRIPTORS$5||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("assign detection")]=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$1(e),n=arguments.length,a=1,o=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;a<n;)for(var s,c=IndexedObject(arguments[a++]),l=o?concat(objectKeys$1(c),o(c)):objectKeys$1(c),u=l.length,p=0;p<u;)s=l[p++],DESCRIPTORS$5&&!call$8(i,c,s)||(r[s]=c[s]);return r}:$assign,$$b=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const PARENT_PANEL_ID=AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE,ADMIN_CENTER_PANEL_ID=AvailableComponents.ADMIN_CENTER,CREATE_ORGANIZATION_PANEL_ID=AvailableComponents.CREATE_ORGANIZATION_PANEL,SLICE_NAME="instanceAdminCenterOrgs",PAGE_LIMIT=30;!function(e){e.ACTIVE="active",e.DELETED="deleted"}(TOrganizationStatus=TOrganizationStatus||{});var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$4=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$6=anObject$9,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$4&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$6(e);for(var r,n=toIndexedObject$1(t),a=objectKeys(t),o=a.length,i=0;i<o;)definePropertyModule.f(e,r=a[i++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$5=anObject$9,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$5(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$e=wellKnownSymbol$g,create$1=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$e("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(void 0===ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$5=fails$f,correctPrototypeGetter=!fails$f(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$3=hasOwnProperty_1,isCallable$9=isCallable$k,toObject=toObject$3,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(e);return hasOwn$3(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$9(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$4=fails$f,isCallable$8=isCallable$k,isObject$5=isObject$b,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$5,wellKnownSymbol$d=wellKnownSymbol$g,ITERATOR$6=wellKnownSymbol$g("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$5(IteratorPrototype$2)||fails$4(function(){var e={};return IteratorPrototype$2[ITERATOR$6].call(e)!==e})),iteratorsCore=(isCallable$8((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$6])||defineBuiltIn$3(IteratorPrototype$2,ITERATOR$6,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,wellKnownSymbol$c=wellKnownSymbol$g,TO_STRING_TAG$2=wellKnownSymbol$g("toStringTag"),setToStringTag$4=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$2(e,TO_STRING_TAG$2)&&defineProperty$2(e,TO_STRING_TAG$2,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$3=setToStringTag$4,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!n,r)}),setToStringTag$3(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$8=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$8(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isObject$4=isObject$b,isPossiblePrototype$1=function(e){return isObject$4(e)||null===e},isPossiblePrototype=isPossiblePrototype$1,$String$1=String,$TypeError$7=TypeError,aPossiblePrototype$1=function(e){if(isPossiblePrototype(e))return e;throw new $TypeError$7("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,isObject$3=isObject$b,requireObjectCoercible$2=requireObjectCoercible$5,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 requireObjectCoercible$2(e),aPossiblePrototype(t),isObject$3(e)&&(n?r(e,t):e.__proto__=t),e}}():void 0),$$a=_export,call$7=functionCall,FunctionName=functionName,isCallable$7=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$4,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$5,wellKnownSymbol$b=wellKnownSymbol$g,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$5=wellKnownSymbol$b("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,a,o,i){createIteratorConstructor(r,t,n);function s(e){if(e===a&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var c,l,n=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$5]||p["@@iterator"]||a&&p[a],g=!BUGGY_SAFARI_ITERATORS&&d||s(a),$="Array"===t&&p.entries||d;if($&&($=getPrototypeOf($.call(new e)))!==Object.prototype&&$.next&&(getPrototypeOf($)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1($,IteratorPrototype):isCallable$7($[ITERATOR$5])||defineBuiltIn$2($,ITERATOR$5,returnThis)),setToStringTag$2($,n,!0)),PROPER_FUNCTION_NAME&&a===VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,g=function(){return call$7(d,this)})),a)if(c={values:s(VALUES),keys:o?g:s(KEYS),entries:s(ENTRIES)},i)for(l in c)!BUGGY_SAFARI_ITERATORS&&!u&&l in p||defineBuiltIn$2(p,l,c[l]);else $$a({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},c);return p[ITERATOR$5]!==g&&defineBuiltIn$2(p,ITERATOR$5,g,{name:a}),Iterators$3[t]=g,c},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$1=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$3=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$1=InternalStateModule$1.set,getInternalState=InternalStateModule$1.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$1(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,createIterResultObject(void 0,!0);switch(e.kind){case"keys":return createIterResultObject(r,!1);case"values":return createIterResultObject(t[r],!1)}return createIterResultObject([r,t[r]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$3&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,wellKnownSymbol$a=wellKnownSymbol$g,TO_STRING_TAG$1=wellKnownSymbol$g("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$6=isCallable$k,classofRaw$1=classofRaw$2,wellKnownSymbol$9=wellKnownSymbol$g,TO_STRING_TAG=wellKnownSymbol$g("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"===classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$5=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"===(t=classofRaw$1(e))&&isCallable$6(e.callee)?"Arguments":t},classof$4=classof$5,$String=String,toString$4=function(e){if("Symbol"===classof$4(e))throw new TypeError("Cannot convert a Symbol value to a string");return $String(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$7=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$5,toString$3=toString$4,whitespaces$1=whitespaces$2,replace$1=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod=function(t){return function(e){e=toString$3(requireObjectCoercible$1(e));return 1&t&&(e=replace$1(e,ltrim,"")),e=2&t?replace$1(e,rtrim,"$1"):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$a=global$k,fails$3=fails$f,uncurryThis$6=functionUncurryThis,toString$2=toString$4,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$a.parseInt,Symbol$1=global$a.Symbol,ITERATOR$4=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$1=uncurryThis$6(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$4&&!fails$3(function(){$parseInt$1(Object(ITERATOR$4))}),numberParseInt=FORCED?function(e,t){e=trim(toString$2(e));return $parseInt$1(e,t>>>0||(exec$1(hex,e)?16:10))}:$parseInt$1,$$9=_export,$parseInt=numberParseInt,domIterables=(_export({global:!0,forced:parseInt!==numberParseInt},{parseInt:numberParseInt}),{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$k,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,setToStringTag$1=setToStringTag$4,wellKnownSymbol$8=wellKnownSymbol$g,ITERATOR$3=wellKnownSymbol$g("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$3]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$3,ArrayValues)}catch(e){t[ITERATOR$3]=ArrayValues}if(setToStringTag$1(t,e,!0),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 namespace$5="instanceAdminCenterOrgs",avatarColors=["#f94144ff","#f3722cff","#f8961eff","#f9844aff","#f9c74fff","#90be6dff","#43aa8bff","#4d908eff","#577590ff","#277da1ff"];let prevIndex=0;const initialState$5={organizations:[],offset:0,hasMore:!0,status:"idle",searchTerm:"",isSearching:!1},instanceAdminCenterOrgsSlice=createSlice({name:SLICE_NAME+"/"+namespace$5,initialState:initialState$5,reducers:{fetchAllOrganizationsStart(e,t){e.status="loading",t.payload.offsetReset&&(e.offset=0)},fetchAllOrganizationsSuccess(e,t){var{hasMore:t,records:r,nextOffset:n}=t.payload,a=(e.status="success",[]);for(const i of r){var o=md5((i.id||"")+(i.name||"")+i.createdDateTime);let e=parseInt(o,16)%avatarColors.length;e===prevIndex&&(e+1>avatarColors.length-1?--e:e+=1),prevIndex=e,a.push(Object.assign(Object.assign({},i),{avatarColor:avatarColors[e]}))}e.organizations=[...e.organizations,...a],e.hasMore=t,e.offset=n,e.isSearching=!1},fetchAllOrganizationsFailure(e){e.status="failure",e.isSearching=!1},resetAndFetch(e){e.organizations=[],e.offset=0,e.hasMore=!0,e.status="idle"},setSearchTerm(e,t){e.status="loading",e.searchTerm=t.payload,e.organizations=[]},setIsSearching(e,t){e.isSearching=t.payload}}}),actions$5=instanceAdminCenterOrgsSlice.actions;var instanceAdminCenterOrgs_state=instanceAdminCenterOrgsSlice.reducer;const selectOrganizations=e=>{var{organizations:e,hasMore:t,offset:r}=null!=(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$5])?e:{};return{organizations:e,hasMore:t,offset:r}},selectStatus=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$5].status},selectSearchTerm=e=>null==e?void 0:e[SLICE_NAME][namespace$5].searchTerm,selectIsSearching=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$5].isSearching};var $$8=_export,$includes=arrayIncludes.includes,fails$2=fails$f,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$f(function(){return!Array(1).includes()}),isObject$2=($$8({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$b),classof$3=classofRaw$2,wellKnownSymbol$7=wellKnownSymbol$g,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject$2(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"===classof$3(e))},isRegExp=isRegexp,$TypeError$6=TypeError,notARegexp=function(e){if(isRegExp(e))throw new $TypeError$6("The method doesn't accept regular expressions");return e},wellKnownSymbol$6=wellKnownSymbol$g,MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$7=_export,uncurryThis$5=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$5,toString$1=toString$4,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf);$$7({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$1(requireObjectCoercible(this)),toString$1(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});const CopyChip=ChipComponents["CopyChip"],StatusPill=statusPill["jsx"],DateFormatter=index["DateFormatter"],useStyles$1=makeStyles()(e=>({orgAvatar:{border:"2px solid #FFFFFF",height:"40px",width:"40px",marginRight:"14px",fontSize:"14px",color:"white",fontWeight:400,lineHeight:"20px"},truncate:{paddingRight:"20px","& p":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},row:{padding:"0 13px",height:itemHeight+"px",boxSizing:"border-box",cursor:"pointer","&:hover":{backgroundColor:"#f2f5f9",cursor:"pointer"}}})),OrgsTableRow=({org:t,index:e})=>{var r;const n=useDispatch();var a=useStyles$1()["classes"],{avatarColor:o,id:i,name:s,createdDateTime:c,imageUrl:l,status:u}=t;return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"instance-admin-center-orgs-row-"+i},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",container:!0,"data-testid":"instance-admin-center-orgs-row",className:a.row,onClick:e=>{e&&!e.target.className.includes("MuiChip-label")&&"deleted"!==t.status&&n(mountPanel({panelId:ADMIN_CENTER_PANEL_ID,microFrontend:{name:ADMIN_CENTER_PANEL_ID,config:{name:ADMIN_CENTER_PANEL_ID,organizationId:t.id,organizationName:t.name}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",parentPanelId:PARENT_PANEL_ID,size:"xlarge",marginTop:55,marginStart:80}}))}},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({sx:{display:"flex"},xs:4,item:!0,className:a.truncate,"data-testid":"instance-admin-center-orgs.avatar-name-col"},{children:[l?jsxRuntime.exports.jsx(Avatar,{alt:""+(null==(r=null==s?void 0:s.charAt(0))?void 0:r.toUpperCase())+String(e+1)[0],src:l,className:a.orgAvatar,"data-testid":"instance-admin-center-orgs-imageUrl"}):jsxRuntime.exports.jsx(Avatar,Object.assign({className:a.orgAvatar,sx:{background:""+o},"data-testid":"instance-admin-center-orgs-no-image"},{children:s?""+(null==(r=null==s?void 0:s.charAt(0))?void 0:r.toUpperCase())+String(e)[0]:"--"})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",sx:{fontWeight:400,translate:"0px 3px",whiteSpace:"nowrap",lineHeight:"40px"},"data-testid":"instance-admin-center-all-orgs.org-name"},{children:index.truncatedString(s||"",15)}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:i?jsxRuntime.exports.jsx(CopyChip,{value:i,ChipProps:{size:"small"},testId:"instance-admin-center-org.id"}):"--"})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:c?jsxRuntime.exports.jsx(DateFormatter,{value:c,rawDateValue:new Date(c).toLocaleDateString(),testIdDate:"instance-admin-center-org.created-date",testIdTime:"instance-admin-center-org.created-time"}):"--"})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,"data-testid":"instance-admin-center-org.status-col"},{children:u?jsxRuntime.exports.jsx(StatusPill,{statusType:"orgStatus",status:u,testId:"instance-admin-center.orgs-status-badge"}):"--"}))]})),jsxRuntime.exports.jsx(Divider,{})]}))},OrgsTableHeader=()=>jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",container:!0,"data-testid":"instance-admin-center-orgs-table-header",sx:{pl:"13px",pr:"13px",height:"35px"}},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({xs:4,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-name"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.name-col",defaultMessage:"Name",description:"Name column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-orgId"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.email-col",defaultMessage:"Org ID",description:"Organization ID column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-created"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.created-col",defaultMessage:"Created",description:"Created column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-status"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.status-col",defaultMessage:"Status",description:"Status column header"})}))})),jsxRuntime.exports.jsx(Grid,{xs:1,item:!0})]})),jsxRuntime.exports.jsx(Divider,{})]}),{TableInfiniteScroll}=tableInfiniteScroll["jsx"],itemHeight=60,TableRow=({item:e,index:t})=>jsxRuntime.exports.jsx(Box,Object.assign({sx:{width:"100%",height:itemHeight+"px"}},{children:jsxRuntime.exports.jsx(OrgsTableRow,{org:e,index:t})})),OrgsTable=()=>{var{organizations:e,hasMore:t,offset:r}=useSelector(selectOrganizations),n=useSelector(selectStatus);const a=useDispatch();return jsxRuntime.exports.jsx(TableInfiniteScroll,{hasMore:t||!1,fetchMore:()=>{a(actions$5.fetchAllOrganizationsStart({offsetReset:!1}))},fetchOnMount:0===(null==e?void 0:e.length),offset:r||0,items:e||[],itemHeight:itemHeight,isLoading:"pending"===n||"loading"===n,error:"failure"===n,TableRowComponent:TableRow,TableHeaderComponent:jsxRuntime.exports.jsx(OrgsTableHeader,{}),adjustTableHeight:-35})},TableSearchInputButton=tableSearchComponents["TableSearchInputButton"],OrgTableSearchButton=()=>{const[e,t]=react.exports.useState(""),[r,n]=react.exports.useState(!1),a=react.exports.useRef(debounce_1(e=>{o(actions$5.setSearchTerm(e))},1e3)).current,o=useDispatch();var i=useSelector(selectSearchTerm),s=useSelector(selectIsSearching);return jsxRuntime.exports.jsx(TableSearchInputButton,{onChange:e=>{t(e.target.value),e.target.value?(o(actions$5.setIsSearching(!0)),a(e.target.value)):a("")},onClear:()=>{t(""),a("")},onToggleSearch:()=>{n(e=>!e)},testId:"instance-org-table-search",placeholderText:"Search by organization name",searchValue:i,inputValue:e,isSearchVisible:r,isSearching:s,searchItemTooltipText:"Organizations"})},useStyles=makeStyles()(e=>({root:{display:"flex",flexDirection:"column"},header:{display:"flex",justifyContent:"space-between",padding:e.spacing(4),borderBottom:"0.5px solid "+e.palette.divider,"& h5":{lineHeight:"40px",marginLeft:"10px"}},orgHeader:{display:"flex",flexDirection:"column",justifyContent:"space-between",verticalAlign:"center","& h5":{lineHeight:"28px"}},titleStyle:{fontWeight:"400"},tableWrapper:{height:"calc(100vh - 55px - 64px - 69px - 22px)",overflow:"hidden"},createBox:{display:"flex",alignItems:"center"},createBtn:{flexShrink:0,fontSize:"12px",lineHeight:"16px","& svg":{height:"15px",width:"15px",marginRight:"7px"}},searchBox:{display:"flex",flexGrow:1,alignItems:"center",justifyContent:"flex-end",padding:"0 16px"}})),AllOrgsPanel=()=>{const r=useDispatch();var e=useStyles()["classes"];const n=useSelector(selectIsFullscreenEnabled);e=jsxRuntime.exports.jsxs(Box,Object.assign({"data-testid":"os-instance-admin-center-orgs.nav"},{children:[jsxRuntime.exports.jsx("section",Object.assign({className:e.root},{children:jsxRuntime.exports.jsxs("header",Object.assign({className:e.header},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({className:e.orgHeader,"data-testid":"os-instance-admin-center-orgs.header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",className:e.titleStyle,id:"os-instance-admin-center-orgs.header-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-instance-admin-center-orgs.table.header",defaultMessage:"All Organizations",description:"Organizations Header"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",className:e.titleStyle,id:"os-instance-admin-center-orgs.sub-header-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-instance-admin-center-orgs.table.sub-header",defaultMessage:"View all Organizations available inside of this Instance",description:"Organizations sub Header"})}))]})),jsxRuntime.exports.jsx(Box,Object.assign({className:e.searchBox,sx:{maxWidth:n?"100%":"360px"}},{children:jsxRuntime.exports.jsx(OrgTableSearchButton,{})})),jsxRuntime.exports.jsx(Box,Object.assign({className:e.createBox},{children:jsxRuntime.exports.jsxs(Button,Object.assign({color:"primary",variant:"contained",className:e.createBtn,"data-testid":"instance-admin-center-create-new-org-btn",onClick:()=>{var e={name:CREATE_ORGANIZATION_PANEL_ID,config:{name:CREATE_ORGANIZATION_PANEL_ID,isPanelFullScreen:n}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:n?0:55,marginStart:n?0:80,size:"large",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0,parentPanelId:PARENT_PANEL_ID};r(mountPanel({panelId:CREATE_ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t}))}},{children:[jsxRuntime.exports.jsx(Add,{}),jsxRuntime.exports.jsx(FormattedMessage,{id:"os-instance-admin-center-orgs.create-new-organization.button",defaultMessage:"Create New",description:"Create New Organization"})]}))}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:e.tableWrapper},{children:jsxRuntime.exports.jsx(OrgsTable,{})}))]}));return n?jsxRuntime.exports.jsx(AIWareThemeProvider,{children:e}):e};var $location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,global$8=global$k,classof$2=classofRaw$2,engineIsNode="process"===classofRaw$2(global$k.process),makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$2=function(e,t,r){return r.get&&makeBuiltIn(r.get,t,{getter:!0}),r.set&&makeBuiltIn(r.set,t,{setter:!0}),defineProperty.f(e,t,r)},getBuiltIn$3=getBuiltIn$7,defineBuiltInAccessor$1=defineBuiltInAccessor$2,wellKnownSymbol$5=wellKnownSymbol$g,DESCRIPTORS$2=descriptors,SPECIES$2=wellKnownSymbol$g("species"),setSpecies$1=function(e){e=getBuiltIn$3(e);DESCRIPTORS$2&&e&&!e[SPECIES$2]&&defineBuiltInAccessor$1(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$2(t,e))return e;throw new $TypeError$5("Incorrect invocation")},uncurryThis$4=functionUncurryThis,fails$1=fails$f,isCallable$5=isCallable$k,classof$1=classof$5,getBuiltIn$2=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$4(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function(e){if(!isCallable$5(e))return!1;try{return construct(noop,[],e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$5(e))return!1;switch(classof$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw new $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$9,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,wellKnownSymbol$4=wellKnownSymbol$g,SPECIES$1=wellKnownSymbol$g("species"),speciesConstructor$1=function(e,t){var e=anObject$4(e).constructor;return void 0===e||isNullOrUndefined$1(e=anObject$4(e)[SPECIES$1])?t:aConstructor(e)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$6=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$6.bind(apply$1):function(){return call$6.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$3=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$3(e)},uncurryThis$2=functionUncurryThisClause,aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},uncurryThis$1=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw new $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$k,apply=functionApply,bind$3=functionBindContext,isCallable$4=isCallable$k,hasOwn$1=hasOwnProperty_1,fails=fails$f,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$2=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails(function(){$location=global$7.location}),function(e){var t;hasOwn$1(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$7.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$4(e)?e:Function$1(e),r=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$4(global$7.postMessage)&&!global$7.importScripts&&$location&&"file:"!==$location.protocol&&!fails(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$7.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),global$6=global$k,DESCRIPTORS$1=descriptors,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,safeGetBuiltIn$1=function(e){var t;return DESCRIPTORS$1?(t=getOwnPropertyDescriptor(global$6,e))&&t.value:global$6[e]},Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$k,safeGetBuiltIn=safeGetBuiltIn$1,bind$2=functionBindContext,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$1=global$5.process,Promise$1=global$5.Promise,microtask$1=safeGetBuiltIn("queueMicrotask"),microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&&notify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$4=global$k,promiseNativeConstructor=global$k.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$3=global$k,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$3=isCallable$k,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$3=wellKnownSymbol$g,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$3("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$3(global$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function r(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=r,!(SUBCLASSING=e.then(function(){})instanceof r))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$2=TypeError,PromiseCapability=function(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw new $TypeError$2("Bad Promise constructor");r=e,n=t}),this.resolve=aCallable$4(r),this.reject=aCallable$4(n)},$$6=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$2=global$k,call$5=functionCall,defineBuiltIn$1=defineBuiltIn$5,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$4,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$2=isCallable$k,isObject$1=isObject$b,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$2.TypeError,document$1=global$2.document,process=global$2.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$2(t=e.then))&&t},callReaction=function(e,t){var r,n,a,o=t.value,i=t.state===FULFILLED,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),a=!0)),r===e.promise?l(new TypeError$1("Promise-chain cycle")):(n=isThenable(r))?call$5(n,r,c,l):c(r)):l(o)}catch(e){u&&!a&&u.exit(),l(e)}},notify=function(r,n){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,n&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var n;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$2.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$2["on"+e])?t(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(n){call$5(task,global$2,function(){var e=n.facade,t=n.value,r=isUnhandled(n);if(r&&(r=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),n.rejection=IS_NODE||isUnhandled(n)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$5(task,global$2,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,r,n){return function(e){t(r,e,n)}},internalReject=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new TypeError$1("Promise can't be resolved itself");var n=isThenable(e);n?microtask(function(){var t={done:!1};try{call$5(n,e,bind$1(internalResolve,t,r),bind$1(internalReject,t,r))}catch(e){internalReject(t,e,r)}}):(r.value=e,r.state=FULFILLED,notify(r,!1))}catch(e){internalReject({done:!1},e,r)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$5(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$2(e)||e,n.fail=isCallable$2(t)&&t,n.domain=IS_NODE?process.domain:void 0,r.state===PENDING?r.reactions.add(n):microtask(function(){callReaction(n,r)}),n.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$2(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$5(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$6({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$2=wellKnownSymbol$g,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$g("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof=classof$5,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$1=wellKnownSymbol$g,ITERATOR$1=wellKnownSymbol$g("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof(e)]},call$4=functionCall,aCallable$2=aCallable$8,anObject$3=anObject$9,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$1=TypeError,getIterator$1=function(e,t){var r=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(r))return anObject$3(call$4(r,e));throw new $TypeError$1(tryToString$1(e)+" is not iterable")},call$3=functionCall,anObject$2=anObject$9,getMethod=getMethod$3,iteratorClose$1=function(e,t,r){var n,a;anObject$2(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$3(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return anObject$2(n),r},bind=functionBindContext,call$2=functionCall,anObject$1=anObject$9,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf$1=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function n(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function a(e){return d?(anObject$1(e),f?y(e[0],e[1],n):y(e[0],e[1])):f?y(e,n):y(e)}var o,i,s,c,l,u,p=r&&r.that,d=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),$=!(!r||!r.IS_ITERATOR),f=!(!r||!r.INTERRUPTED),y=bind(t,p);if(g)o=e.iterator;else if($)o=e;else{if(!(r=getIteratorMethod(e)))throw new $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(r)){for(i=0,s=lengthOfArrayLike(e);i<s;i++)if((c=a(e[i]))&&isPrototypeOf$1(ResultPrototype,c))return c;return new Result(!1)}o=getIterator(e,r)}for(l=(g?e:o).next;!(u=call$2(l,o)).done;){try{c=a(u.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof c&&c&&isPrototypeOf$1(ResultPrototype,c))return c}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$g,ITERATOR=wellKnownSymbol$g("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){try{if(!t&&!SAFE_CLOSING)return!1}catch(e){return!1}var r=!1;try{var n={};n[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$5=_export,call$1=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$4=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),c=t.resolve,l=t.reject,r=perform$1(function(){var n=aCallable$1(s.resolve),a=[],o=0,i=1;iterate$1(e,function(e){var t=o++,r=!1;i++,call$1(n,s,e).then(function(e){r||(r=!0,a[t]=e,--i)||c(a)},l)}),--i||c(a)});return r.error&&l(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$1=isCallable$k,defineBuiltIn=defineBuiltIn$5,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$3=($$4({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$1(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$2=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,n=newPromiseCapabilityModule$1.f(r),a=n.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call(t,r,e).then(n.resolve,a)})});return t.error&&a(t.value),n.promise}}),_export),newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$2({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return(0,t.reject)(e),t.promise}}),anObject$9),isObject=isObject$b,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$1=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const namespace$4=SLICE_NAME,initialState$4={[namespace$5]:initialState$5},actions$4={[namespace$5]:actions$5},rootReducer=combineReducers({[namespace$5]:instanceAdminCenterOrgs_state}),namespace$3="createOrgBasicInfoStep",initialState$3={orgName:"",businessUnit:"",orgLogo:"",logoPreviewImage:""},createOrgBasicInfoStepSlice=createSlice({name:namespace$3,initialState:initialState$3,reducers:{setOrgName:(e,t)=>{e.orgName=t.payload},setBusinessUnit:(e,t)=>{e.businessUnit=t.payload},setOrgLogo:(e,t)=>{e.orgLogo=t.payload},setLogoPreviewImage:(e,t)=>{e.logoPreviewImage=t.payload},resetBasicInfo:e=>{e.orgName=initialState$3.orgName,e.businessUnit=initialState$3.businessUnit,e.orgLogo=initialState$3.orgLogo,e.logoPreviewImage=initialState$3.logoPreviewImage}}}),actions$3=createOrgBasicInfoStepSlice.actions;var createOrgBasicInfoStep_slice=createOrgBasicInfoStepSlice.reducer;const namespace$2="createOrgPackagesStep",initialState$2={defaultPackages:{application:[],status:"idle"},selectedPackages:{application:[],engine:[]},resourceTypeToFetch:"application",resources:{application:{packages:[],offset:0,hasMore:!0},engine:{packages:[],offset:0,hasMore:!0}},status:"idle"},createOrgPackagesStepSlice=createSlice({name:namespace$2,initialState:initialState$2,reducers:{fetchDefaultPackagesStart:e=>{e.defaultPackages.status="loading"},fetchDefaultPackagesSuccess:(e,t)=>{0<t.payload.records.length&&(e.defaultPackages.application=t.payload.records)},fetchDefaultPackagesFailure:e=>{e.defaultPackages.status="failure"},setSelectedPackages:(e,t)=>{e.selectedPackages=t.payload},setResourceTypeToFetch(e,t){e.resourceTypeToFetch=t.payload},togglePackageSelection(e,t){var r=[...e.selectedPackages[e.resourceTypeToFetch]],n=r.findIndex(e=>e.id===t.payload.id);-1!==n?r.splice(n,1):r.push(t.payload),e.selectedPackages[e.resourceTypeToFetch]=r},fetchPackagesStart(e,t){e.status="loading",t.payload.reset&&(e.resources[e.resourceTypeToFetch].offset=0)},fetchPackagesSuccess(e,t){var{records:t,hasMore:r,nextOffset:n,reset:a,packageNameFilter:o}=t.payload,i=(e.status="success",e.resources[e.resourceTypeToFetch]);i.hasMore=r,i.offset=n,a?(r=""===o&&"application"===e.resourceTypeToFetch&&30===n&&0<e.defaultPackages.application.length?e.defaultPackages.application:[],i.packages=lodash.exports.uniqBy([...r,...t],"primaryResource.resourceId"),e.selectedPackages.application=lodash.exports.uniqBy([...e.defaultPackages.application,...e.selectedPackages.application],"primaryResource.resourceId")):i.packages=lodash.exports.uniqBy([...i.packages,...t],"primaryResource.resourceId")},fetchPackagesFailure(e){e.status="failure"},resetPackagesStep(e){"application"===e.resourceTypeToFetch&&0<e.defaultPackages.application.length?e.resources[e.resourceTypeToFetch].packages=lodash.exports.uniqBy([...e.defaultPackages.application],"primaryResource.resourceId"):e.resources[e.resourceTypeToFetch].packages=initialState$2.resources[e.resourceTypeToFetch].packages,e.selectedPackages=initialState$2.selectedPackages,e.resourceTypeToFetch=initialState$2.resourceTypeToFetch,e.resources=initialState$2.resources,e.status=initialState$2.status}}}),actions$2=createOrgPackagesStepSlice.actions;var createOrgPackagesStep_slice=createOrgPackagesStepSlice.reducer;const namespace$1="createOrgSettingsStep",initialState$1={olpEnabled:!1,autoApproveEnginesEnabled:!1,dataRetentionPolicyEnabled:!1,dataRetentionPolicyDays:30,firstLoadApplicationId:"",autoUpdatePackagesEnabled:!1,applications:[],applicationsLoading:!1,applicationsStatus:"idle"},createOrgSettingsStepSlice=createSlice({name:namespace$1,initialState:initialState$1,reducers:{setOlpEnabled:(e,t)=>{e.olpEnabled=t.payload},setAutoApproveEnginesEnabled:(e,t)=>{e.autoApproveEnginesEnabled=t.payload},setDataRetentionPolicyEnabled:(e,t)=>{e.dataRetentionPolicyEnabled=t.payload,e.dataRetentionPolicyDays=t.payload?e.dataRetentionPolicyDays:30},setDataRetentionPolicyDays:(e,t)=>{e.dataRetentionPolicyDays=e.dataRetentionPolicyEnabled?t.payload:0,e.dataRetentionPolicyEnabled=!!t.payload},setFirstLoadApplicationId:(e,t)=>{e.firstLoadApplicationId=t.payload},setAutoUpdatePackagesEnabled:(e,t)=>{e.autoUpdatePackagesEnabled=t.payload},resetOrgSettingsStep:e=>{e.olpEnabled=initialState$1.olpEnabled,e.autoApproveEnginesEnabled=initialState$1.autoApproveEnginesEnabled,e.dataRetentionPolicyDays=initialState$1.dataRetentionPolicyDays,e.firstLoadApplicationId=initialState$1.firstLoadApplicationId,e.autoUpdatePackagesEnabled=initialState$1.autoUpdatePackagesEnabled},fetchApplicationsInit:e=>{e.applicationsLoading=!0,e.applicationsStatus="pending"},fetchApplicationsSuccess:(e,t)=>{e.applications=t.payload,e.applicationsLoading=!1,e.applicationsStatus="success"},fetchApplicationsFailure:e=>{e.applicationsLoading=!1,e.applicationsStatus="failure"}}}),actions$1=createOrgSettingsStepSlice.actions;var createOrgSettingsStep_slice=createOrgSettingsStepSlice.reducer;const namespace="createOrgWizard",initialState={activeStep:1,steps:[{stepNumber:1,completed:!1,disabled:!1,error:!1},{stepNumber:2,completed:!1,disabled:!1,error:!1},{stepNumber:3,completed:!1,disabled:!1,error:!1}],saveStatus:"idle",orgId:""},createOrgWizardSlice=createSlice({name:namespace,initialState:initialState,reducers:{setActiveStep:(e,t)=>{e.activeStep=t.payload},setStepCompleted:(e,t)=>{e.steps[t.payload-1].completed=!0},setStepUncompleted:(e,t)=>{e.steps[t.payload-1].completed=!1},setSaveStatus:(e,t)=>{e.saveStatus=t.payload},saveCreateOrgInit:e=>{e.saveStatus="pending"},saveCreateOrgSuccess:(e,t)=>{e.saveStatus="success",e.orgId=t.payload},saveCreateOrgFailed:e=>{e.saveStatus="failure"},resetCreateOrgWizard:e=>{e.activeStep=initialState.activeStep,e.steps=initialState.steps,e.saveStatus=initialState.saveStatus,e.orgId=initialState.orgId},viewOrg:(e,t)=>{}}}),actions=createOrgWizardSlice.actions;var createOrgWizard_slice=createOrgWizardSlice.reducer;const createOrgWizardRootReducer=combineReducers({[namespace]:createOrgWizard_slice,[namespace$3]:createOrgBasicInfoStep_slice,[namespace$2]:createOrgPackagesStep_slice,[namespace$1]:createOrgSettingsStep_slice});function __awaiter(e,i,s,c){return new(s=s||Promise)(function(r,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function a(e){try{o(c.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,a)}o((c=c.apply(e,i||[])).next())})}function createOrganization(n,a){return __awaiter(this,void 0,void 0,function*(){var e="createOrganization",t="createOrganization",r={input:{name:a.name,businessUnit:a.businessUnit,metadata:a.metadata}};return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createOrganization($input: CreateOrganization!) {\n createOrganization (input: $input) {\n id\n }\n }\n ",operationName:e,variables:r},n)))[t]})}function updatePackageGrants(n,a,o){return __awaiter(this,void 0,void 0,function*(){var e=`
1
+ import{bP as AvailableComponents,X as createSlice,fX as md5,Z as useSelector,bX as selectIsFullscreenEnabled,j as jsxRuntime,V as Box,aJ as AIWareThemeProvider,Y as combineReducers,a2 as lodash,U as createSelector,r as react,ap as mountPanel,z as all,a1 as hidePanel,B as takeEvery$1,A as takeLatest$1,C as select,a0 as selectApiConfigs,G as put,a4 as preferredLanguageSelector,ao as unmountPanel,a5 as showMessage,a6 as MessageSeverity,a7 as AIWareFormatMessage,a3 as baseGraphQLApiWithError,S as baseGraphQLApi}from"./js-core.esm.js";import{m as makeStyles,T as Typography,F as FormattedMessage,g as Button,bN as Add,o as DynamicModuleLoader,ah as Grid,D as Divider}from"./js-core.esm4.js";import{b as Stack,j as Skeleton,z as debounce_1,p as panelComponents,t as tableInfiniteScroll,K as tableSearchComponents,A as Avatar,N as index,aG as ChipComponents,y as statusPill,m as devErrorLogger}from"./js-core.esm5.js";import{u as useDispatch}from"./js-core.esm6.js";var match,version,set$1,get,store,STATE,TOrganizationStatus,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$k=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||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$3=functionBindNative,call$d=Function.prototype.call,functionCall=NATIVE_BIND$3?call$d.bind(call$d):function(){return call$d.apply(call$d,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$2(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND$2=functionBindNative,FunctionPrototype$2=Function.prototype,call$c=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$c,call$c),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$c.apply(e,arguments)}},uncurryThis$i=functionUncurryThis,toString$6=uncurryThis$i({}.toString),stringSlice$2=uncurryThis$i("".slice),classofRaw$2=function(e){return stringSlice$2(toString$6(e),8,-1)},uncurryThis$h=functionUncurryThis,fails$c=fails$f,classof$6=classofRaw$2,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$c(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"===classof$6(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$d=TypeError,requireObjectCoercible$5=function(e){if(isNullOrUndefined$3(e))throw new $TypeError$d("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$4=requireObjectCoercible$5,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$4(e))},documentAll="object"==typeof document&&document.all,isCallable$k=void 0===documentAll&&void 0!==documentAll?function(e){return"function"==typeof e||e===documentAll}:function(e){return"function"==typeof e},isCallable$j=isCallable$k,isObject$b=function(e){return"object"==typeof e?null!==e:isCallable$j(e)},global$j=global$k,isCallable$i=isCallable$k,aFunction=function(e){return isCallable$i(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$j[e]):global$j[e]&&global$j[e][t]},uncurryThis$g=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$i=global$k,userAgent$3=engineUserAgent,process$3=global$i.process,Deno$1=global$i.Deno,versions=process$3&&process$3.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$b=fails$f,global$h=global$k,$String$5=global$k.String,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$b(function(){var e=Symbol("symbol detection");return!$String$5(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION$1&&V8_VERSION$1<41}),NATIVE_SYMBOL$2=symbolConstructorDetection,useSymbolAsUid=symbolConstructorDetection&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$6=getBuiltIn$7,isCallable$h=isCallable$k,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$h(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$g=isCallable$k,tryToString$3=tryToString$4,$TypeError$c=TypeError,aCallable$8=function(e){if(isCallable$g(e))return e;throw new $TypeError$c(tryToString$3(e)+" is not a function")},aCallable$7=aCallable$8,isNullOrUndefined$2=isNullOrUndefined$4,getMethod$3=function(e,t){e=e[t];return isNullOrUndefined$2(e)?void 0:aCallable$7(e)},call$b=functionCall,isCallable$f=isCallable$k,isObject$a=isObject$b,$TypeError$b=TypeError,ordinaryToPrimitive$1=function(e,t){var r,n;if("string"===t&&isCallable$f(r=e.toString)&&!isObject$a(n=call$b(r,e)))return n;if(isCallable$f(r=e.valueOf)&&!isObject$a(n=call$b(r,e)))return n;if("string"!==t&&isCallable$f(r=e.toString)&&!isObject$a(n=call$b(r,e)))return n;throw new $TypeError$b("Can't convert object to primitive value")},sharedStore={exports:{}},global$g=global$k,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},globalThis$1=global$k,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=sharedStore.exports=globalThis$1[SHARED]||defineGlobalProperty$2(SHARED,{}),store$2=((store$3.versions||(store$3.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"}),sharedStore.exports),shared$3=function(e,t){return store$2[e]||(store$2[e]=t||{})},requireObjectCoercible$3=requireObjectCoercible$5,$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$3(e))},uncurryThis$f=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$e=functionUncurryThis,id=0,postfix=Math.random(),toString$5=uncurryThis$e(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$5(++id+postfix,36)},global$f=global$k,shared$2=shared$3,hasOwn$a=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$2=global$k.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$2.for||Symbol$2:Symbol$2&&Symbol$2.withoutSetter||uid$1,wellKnownSymbol$g=function(e){return hasOwn$a(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$a(Symbol$2,e)?Symbol$2[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$a=functionCall,isObject$9=isObject$b,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$f=wellKnownSymbol$g,$TypeError$a=TypeError,TO_PRIMITIVE=wellKnownSymbol$g("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$9(e)||isSymbol$1(e))return e;var r=getMethod$2(e,TO_PRIMITIVE);if(r){if(r=call$a(r,e,t=void 0===t?"default":t),!isObject$9(r)||isSymbol$1(r))return r;throw new $TypeError$a("Can't convert object to primitive value")}return ordinaryToPrimitive(e,t=void 0===t?"number":t)},toPrimitive=toPrimitive$1,isSymbol=isSymbol$2,toPropertyKey$2=function(e){e=toPrimitive(e,"string");return isSymbol(e)?e:e+""},global$e=global$k,isObject$8=isObject$b,document$3=global$k.document,EXISTS$1=isObject$8(document$3)&&isObject$8(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$c=descriptors,fails$a=fails$f,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$f(function(){return 7!==Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$b=descriptors,call$9=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$9=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$b?$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$9(e,t))return createPropertyDescriptor$2(!call$9(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$a=descriptors,fails$9=fails$f,v8PrototypeDefineBug=descriptors&&fails$f(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$7=isObject$b,$String$3=String,$TypeError$9=TypeError,anObject$9=function(e){if(isObject$7(e))return e;throw new $TypeError$9($String$3(e)+" is not an object")},DESCRIPTORS$9=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$8=anObject$9,toPropertyKey=toPropertyKey$2,$TypeError$8=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$8=(objectDefineProperty.f=DESCRIPTORS$9?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var n;return anObject$8(e),t=toPropertyKey(t),anObject$8(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$8(e),t=toPropertyKey(t),anObject$8(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new $TypeError$8("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$8?function(e,t,r){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$7=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$7&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$7||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$d=functionUncurryThis,isCallable$e=isCallable$k,store$1=sharedStore.exports,functionToString=uncurryThis$d(Function.toString),inspectSource$3=(isCallable$e(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$d=global$k,isCallable$d=isCallable$k,WeakMap$1=global$k.WeakMap,weakMapBasicDetection=isCallable$d(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3,uid=uid$2,keys=shared$3("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$c=global$k,isObject$6=isObject$b,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$7=hasOwnProperty_1,shared=sharedStore.exports,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$c.TypeError,WeakMap=global$c.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$6(e)&&(e=get(e)).type===t)return e;throw new TypeError$2("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 new TypeError$2(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$7(e,STATE))throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$7(e,STATE)?e[STATE]:{}},function(e){return hasOwn$7(e,STATE)}),internalState={set:set$1,get:get,has:has,enforce:enforce,getterFor:getterFor},uncurryThis$c=functionUncurryThis,fails$8=fails$f,isCallable$c=isCallable$k,hasOwn$6=hasOwnProperty_1,DESCRIPTORS$6=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource$2=inspectSource$3,InternalStateModule$2=internalState,enforceInternalState=InternalStateModule$2.enforce,getInternalState$1=InternalStateModule$2.get,$String$2=String,defineProperty$5=Object.defineProperty,stringSlice$1=uncurryThis$c("".slice),replace$2=uncurryThis$c("".replace),join=uncurryThis$c([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$6&&!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,r){"Symbol("===stringSlice$1($String$2(t),0,7)&&(t="["+replace$2($String$2(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$6(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$6?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$6(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$6(r,"constructor")&&r.constructor?DESCRIPTORS$6&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$6(r,"source")||(r.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$b=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$c(this)&&getInternalState$1(this).source||inspectSource$2(this)},"toString"),isCallable$k),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$5=function(e,t,r,n){var a=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(isCallable$b(r)&&makeBuiltIn$1(r,o,n),n.global)a?e[t]=r:defineGlobalProperty$1(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:definePropertyModule$2.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.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){e=toIntegerOrInfinity(e);return 0<e?min(e,9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$2=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike$1=lengthOfArrayLike$2,createMethod$1=function(s){return function(e,t,r){var n=toIndexedObject$3(e),a=lengthOfArrayLike$1(n);if(0!==a){var o,i=toAbsoluteIndex(r,a);if(s&&t!=t){for(;i<a;)if((o=n[i++])!=o)return!0}else for(;i<a;i++)if((s||i in n)&&n[i]===t)return s||i||0}return!s&&-1}},arrayIncludes={includes:createMethod$1(!0),indexOf:createMethod$1(!1)},uncurryThis$b=functionUncurryThis,hasOwn$5=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$b([].push),objectKeysInternal=function(e,t){var r,n=toIndexedObject$2(e),a=0,o=[];for(r in n)!hasOwn$5(hiddenKeys$2,r)&&hasOwn$5(n,r)&&push(o,r);for(;t.length>a;)!hasOwn$5(n,r=t[a++])||~indexOf(o,r)||push(o,r);return o},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$a=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$7=anObject$9,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$7(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$4=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var n=ownKeys(t),a=definePropertyModule$1.f,o=getOwnPropertyDescriptorModule.f,i=0;i<n.length;i++){var s=n[i];hasOwn$4(e,s)||r&&hasOwn$4(r,s)||a(e,s,o(t,s))}},fails$7=fails$f,isCallable$a=isCallable$k,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e===POLYFILL||e!==NATIVE&&(isCallable$a(t)?fails$7(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$b=global$k,getOwnPropertyDescriptor$1=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$4=defineBuiltIn$5,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced$1=isForced_1,_export=function(e,t){var r,n,a,o=e.target,i=e.global,s=e.stat,c=i?global$b:s?global$b[o]||defineGlobalProperty(o,{}):global$b[o]&&global$b[o].prototype;if(c)for(r in t){if(n=t[r],a=e.dontCallGetSet?(a=getOwnPropertyDescriptor$1(c,r))&&a.value:c[r],!isForced$1(i?r:o+(s?".":"#")+r,e.forced)&&void 0!==a){if(typeof n==typeof a)continue;copyConstructorProperties$1(n,a)}(e.sham||a&&a.sham)&&createNonEnumerableProperty$2(n,"sham",!0),defineBuiltIn$4(c,r,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$5=descriptors,uncurryThis$9=functionUncurryThis,call$8=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$9([].concat),objectAssign=!$assign||fails$6(function(){var e,t,r,n;return!(!DESCRIPTORS$5||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("assign detection")]=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$1(e),n=arguments.length,a=1,o=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;a<n;)for(var s,c=IndexedObject(arguments[a++]),l=o?concat(objectKeys$1(c),o(c)):objectKeys$1(c),u=l.length,p=0;p<u;)s=l[p++],DESCRIPTORS$5&&!call$8(i,c,s)||(r[s]=c[s]);return r}:$assign,$$b=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const PARENT_PANEL_ID=AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE,ADMIN_CENTER_PANEL_ID=AvailableComponents.ADMIN_CENTER,CREATE_ORGANIZATION_PANEL_ID=AvailableComponents.CREATE_ORGANIZATION_PANEL,SLICE_NAME="instanceAdminCenterOrgs",PAGE_LIMIT=30;!function(e){e.ACTIVE="active",e.DELETED="deleted"}(TOrganizationStatus=TOrganizationStatus||{});var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$4=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$6=anObject$9,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$4&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$6(e);for(var r,n=toIndexedObject$1(t),a=objectKeys(t),o=a.length,i=0;i<o;)definePropertyModule.f(e,r=a[i++],n[r]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$5=anObject$9,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$5(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$e=wellKnownSymbol$g,create$1=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$e("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$2=(void 0===ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$5=fails$f,correctPrototypeGetter=!fails$f(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$3=hasOwnProperty_1,isCallable$9=isCallable$k,toObject=toObject$3,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(e);return hasOwn$3(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$9(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$4=fails$f,isCallable$8=isCallable$k,isObject$5=isObject$b,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$5,wellKnownSymbol$d=wellKnownSymbol$g,ITERATOR$6=wellKnownSymbol$g("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$5(IteratorPrototype$2)||fails$4(function(){var e={};return IteratorPrototype$2[ITERATOR$6].call(e)!==e})),iteratorsCore=(isCallable$8((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$6])||defineBuiltIn$3(IteratorPrototype$2,ITERATOR$6,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,wellKnownSymbol$c=wellKnownSymbol$g,TO_STRING_TAG$2=wellKnownSymbol$g("toStringTag"),setToStringTag$4=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$2(e,TO_STRING_TAG$2)&&defineProperty$2(e,TO_STRING_TAG$2,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$3=setToStringTag$4,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,r,n){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!n,r)}),setToStringTag$3(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$8=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,r){try{return uncurryThis$8(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},isObject$4=isObject$b,isPossiblePrototype$1=function(e){return isObject$4(e)||null===e},isPossiblePrototype=isPossiblePrototype$1,$String$1=String,$TypeError$7=TypeError,aPossiblePrototype$1=function(e){if(isPossiblePrototype(e))return e;throw new $TypeError$7("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,isObject$3=isObject$b,requireObjectCoercible$2=requireObjectCoercible$5,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 requireObjectCoercible$2(e),aPossiblePrototype(t),isObject$3(e)&&(n?r(e,t):e.__proto__=t),e}}():void 0),$$a=_export,call$7=functionCall,FunctionName=functionName,isCallable$7=isCallable$k,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$2=setToStringTag$4,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$5,wellKnownSymbol$b=wellKnownSymbol$g,Iterators$3=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$5=wellKnownSymbol$b("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,r,n,a,o,i){createIteratorConstructor(r,t,n);function s(e){if(e===a&&g)return g;if(!BUGGY_SAFARI_ITERATORS&&e&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var c,l,n=t+" Iterator",u=!1,p=e.prototype,d=p[ITERATOR$5]||p["@@iterator"]||a&&p[a],g=!BUGGY_SAFARI_ITERATORS&&d||s(a),$="Array"===t&&p.entries||d;if($&&($=getPrototypeOf($.call(new e)))!==Object.prototype&&$.next&&(getPrototypeOf($)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1($,IteratorPrototype):isCallable$7($[ITERATOR$5])||defineBuiltIn$2($,ITERATOR$5,returnThis)),setToStringTag$2($,n,!0)),PROPER_FUNCTION_NAME&&a===VALUES&&d&&d.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,g=function(){return call$7(d,this)})),a)if(c={values:s(VALUES),keys:o?g:s(KEYS),entries:s(ENTRIES)},i)for(l in c)!BUGGY_SAFARI_ITERATORS&&!u&&l in p||defineBuiltIn$2(p,l,c[l]);else $$a({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},c);return p[ITERATOR$5]!==g&&defineBuiltIn$2(p,ITERATOR$5,g,{name:a}),Iterators$3[t]=g,c},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables$1=addToUnscopables$2,Iterators$2=iterators,InternalStateModule$1=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$3=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState$1=InternalStateModule$1.set,getInternalState=InternalStateModule$1.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState$1(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,createIterResultObject(void 0,!0);switch(e.kind){case"keys":return createIterResultObject(r,!1);case"values":return createIterResultObject(t[r],!1)}return createIterResultObject([r,t[r]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables$1("keys"),addToUnscopables$1("values"),addToUnscopables$1("entries"),DESCRIPTORS$3&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,wellKnownSymbol$a=wellKnownSymbol$g,TO_STRING_TAG$1=wellKnownSymbol$g("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$6=isCallable$k,classofRaw$1=classofRaw$2,wellKnownSymbol$9=wellKnownSymbol$g,TO_STRING_TAG=wellKnownSymbol$g("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"===classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$5=TO_STRING_TAG_SUPPORT?classofRaw$1:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw$1(e):"Object"===(t=classofRaw$1(e))&&isCallable$6(e.callee)?"Arguments":t},classof$4=classof$5,$String=String,toString$4=function(e){if("Symbol"===classof$4(e))throw new TypeError("Cannot convert a Symbol value to a string");return $String(e)},whitespaces$2="\t\n\v\f\r                 \u2028\u2029\ufeff",uncurryThis$7=functionUncurryThis,requireObjectCoercible$1=requireObjectCoercible$5,toString$3=toString$4,whitespaces$1=whitespaces$2,replace$1=functionUncurryThis("".replace),ltrim=RegExp("^["+whitespaces$1+"]+"),rtrim=RegExp("(^|[^"+whitespaces$1+"])["+whitespaces$1+"]+$"),createMethod=function(t){return function(e){e=toString$3(requireObjectCoercible$1(e));return 1&t&&(e=replace$1(e,ltrim,"")),e=2&t?replace$1(e,rtrim,"$1"):e}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},global$a=global$k,fails$3=fails$f,uncurryThis$6=functionUncurryThis,toString$2=toString$4,trim=stringTrim.trim,whitespaces=whitespaces$2,$parseInt$1=global$a.parseInt,Symbol$1=global$a.Symbol,ITERATOR$4=Symbol$1&&Symbol$1.iterator,hex=/^[+-]?0x/i,exec$1=uncurryThis$6(hex.exec),FORCED=8!==$parseInt$1(whitespaces+"08")||22!==$parseInt$1(whitespaces+"0x16")||ITERATOR$4&&!fails$3(function(){$parseInt$1(Object(ITERATOR$4))}),numberParseInt=FORCED?function(e,t){e=trim(toString$2(e));return $parseInt$1(e,t>>>0||(exec$1(hex,e)?16:10))}:$parseInt$1,$$9=_export,$parseInt=numberParseInt,domIterables=(_export({global:!0,forced:parseInt!==numberParseInt},{parseInt:numberParseInt}),{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$k,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,setToStringTag$1=setToStringTag$4,wellKnownSymbol$8=wellKnownSymbol$g,ITERATOR$3=wellKnownSymbol$g("iterator"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR$3]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR$3,ArrayValues)}catch(e){t[ITERATOR$3]=ArrayValues}if(setToStringTag$1(t,e,!0),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 namespace$5="instanceAdminCenterOrgs",avatarColors=["#f94144ff","#f3722cff","#f8961eff","#f9844aff","#f9c74fff","#90be6dff","#43aa8bff","#4d908eff","#577590ff","#277da1ff"];let prevIndex=0;const initialState$5={organizations:[],offset:0,hasMore:!0,status:"idle",searchTerm:"",isSearching:!1},instanceAdminCenterOrgsSlice=createSlice({name:SLICE_NAME+"/"+namespace$5,initialState:initialState$5,reducers:{fetchAllOrganizationsStart(e,t){e.status="loading",t.payload.offsetReset&&(e.offset=0)},fetchAllOrganizationsSuccess(e,t){var{hasMore:t,records:r,nextOffset:n}=t.payload,a=(e.status="success",[]);for(const i of r){var o=md5((i.id||"")+(i.name||"")+i.createdDateTime);let e=parseInt(o,16)%avatarColors.length;e===prevIndex&&(e+1>avatarColors.length-1?--e:e+=1),prevIndex=e,a.push(Object.assign(Object.assign({},i),{avatarColor:avatarColors[e]}))}e.organizations=[...e.organizations,...a],e.hasMore=t,e.offset=n,e.isSearching=!1},fetchAllOrganizationsFailure(e){e.status="failure",e.isSearching=!1},resetAndFetch(e){e.organizations=[],e.offset=0,e.hasMore=!0,e.status="idle"},setSearchTerm(e,t){e.status="loading",e.searchTerm=t.payload,e.organizations=[]},setIsSearching(e,t){e.isSearching=t.payload}}}),actions$5=instanceAdminCenterOrgsSlice.actions;var instanceAdminCenterOrgs_state=instanceAdminCenterOrgsSlice.reducer;const selectOrganizations=e=>{var{organizations:e,hasMore:t,offset:r}=null!=(e=null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$5])?e:{};return{organizations:e,hasMore:t,offset:r}},selectStatus=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$5].status},selectSearchTerm=e=>null==e?void 0:e[SLICE_NAME][namespace$5].searchTerm,selectIsSearching=e=>{return null==(e=null==e?void 0:e[SLICE_NAME])?void 0:e[namespace$5].isSearching};var $$8=_export,$includes=arrayIncludes.includes,fails$2=fails$f,addToUnscopables=addToUnscopables$2,BROKEN_ON_SPARSE=fails$f(function(){return!Array(1).includes()}),isObject$2=($$8({target:"Array",proto:!0,forced:BROKEN_ON_SPARSE},{includes:function(e){return $includes(this,e,1<arguments.length?arguments[1]:void 0)}}),addToUnscopables("includes"),isObject$b),classof$3=classofRaw$2,wellKnownSymbol$7=wellKnownSymbol$g,MATCH$1=wellKnownSymbol$g("match"),isRegexp=function(e){var t;return isObject$2(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"===classof$3(e))},isRegExp=isRegexp,$TypeError$6=TypeError,notARegexp=function(e){if(isRegExp(e))throw new $TypeError$6("The method doesn't accept regular expressions");return e},wellKnownSymbol$6=wellKnownSymbol$g,MATCH=wellKnownSymbol$g("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$7=_export,uncurryThis$5=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$5,toString$1=toString$4,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf);$$7({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$1(requireObjectCoercible(this)),toString$1(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}});const CopyChip=ChipComponents["CopyChip"],StatusPill=statusPill["jsx"],DateFormatter=index["DateFormatter"],useStyles$1=makeStyles()(e=>({orgAvatar:{border:"2px solid #FFFFFF",height:"40px",width:"40px",marginRight:"14px",fontSize:"14px",color:"white",fontWeight:400,lineHeight:"20px"},truncate:{paddingRight:"20px","& p":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},row:{padding:"0 13px",height:itemHeight+"px",boxSizing:"border-box",cursor:"pointer","&:hover":{backgroundColor:"#f2f5f9",cursor:"pointer"}}})),OrgsTableRow=({org:t,index:e})=>{var r;const n=useDispatch();var a=useStyles$1()["classes"],{avatarColor:o,id:i,name:s,createdDateTime:c,imageUrl:l,status:u}=t;return jsxRuntime.exports.jsxs("div",Object.assign({"data-testid":"instance-admin-center-orgs-row-"+i},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",container:!0,"data-testid":"instance-admin-center-orgs-row",className:a.row,onClick:e=>{e&&!e.target.className.includes("MuiChip-label")&&"deleted"!==t.status&&n(mountPanel({panelId:ADMIN_CENTER_PANEL_ID,microFrontend:{name:ADMIN_CENTER_PANEL_ID,config:{name:ADMIN_CENTER_PANEL_ID,organizationId:t.id,organizationName:t.name,organizationGuid:t.guid}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",parentPanelId:PARENT_PANEL_ID,size:"xlarge",marginTop:55,marginStart:80}}))}},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({sx:{display:"flex"},xs:4,item:!0,className:a.truncate,"data-testid":"instance-admin-center-orgs.avatar-name-col"},{children:[l?jsxRuntime.exports.jsx(Avatar,{alt:""+(null==(r=null==s?void 0:s.charAt(0))?void 0:r.toUpperCase())+String(e+1)[0],src:l,className:a.orgAvatar,"data-testid":"instance-admin-center-orgs-imageUrl"}):jsxRuntime.exports.jsx(Avatar,Object.assign({className:a.orgAvatar,sx:{background:""+o},"data-testid":"instance-admin-center-orgs-no-image"},{children:s?""+(null==(r=null==s?void 0:s.charAt(0))?void 0:r.toUpperCase())+String(e)[0]:"--"})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"body2",sx:{fontWeight:400,translate:"0px 3px",whiteSpace:"nowrap",lineHeight:"40px"},"data-testid":"instance-admin-center-all-orgs.org-name"},{children:index.truncatedString(s||"",15)}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:i?jsxRuntime.exports.jsx(CopyChip,{value:i,ChipProps:{size:"small"},testId:"instance-admin-center-org.id"}):"--"})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:c?jsxRuntime.exports.jsx(DateFormatter,{value:c,rawDateValue:new Date(c).toLocaleDateString(),testIdDate:"instance-admin-center-org.created-date",testIdTime:"instance-admin-center-org.created-time"}):"--"})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,"data-testid":"instance-admin-center-org.status-col"},{children:u?jsxRuntime.exports.jsx(StatusPill,{statusType:"orgStatus",status:u,testId:"instance-admin-center.orgs-status-badge"}):"--"}))]})),jsxRuntime.exports.jsx(Divider,{})]}))},OrgsTableHeader=()=>jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",container:!0,"data-testid":"instance-admin-center-orgs-table-header",sx:{pl:"13px",pr:"13px",height:"35px"}},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({xs:4,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-name"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.name-col",defaultMessage:"Name",description:"Name column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-orgId"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.email-col",defaultMessage:"Org ID",description:"Organization ID column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:3,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-created"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.created-col",defaultMessage:"Created",description:"Created column header"})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400},"data-testid":"instance-admin-center-orgs-table-header-status"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center-orgs-table.header.status-col",defaultMessage:"Status",description:"Status column header"})}))})),jsxRuntime.exports.jsx(Grid,{xs:1,item:!0})]})),jsxRuntime.exports.jsx(Divider,{})]}),{TableInfiniteScroll}=tableInfiniteScroll["jsx"],itemHeight=60,TableRow=({item:e,index:t})=>jsxRuntime.exports.jsx(Box,Object.assign({sx:{width:"100%",height:itemHeight+"px"}},{children:jsxRuntime.exports.jsx(OrgsTableRow,{org:e,index:t})})),OrgsTable=()=>{var{organizations:e,hasMore:t,offset:r}=useSelector(selectOrganizations),n=useSelector(selectStatus);const a=useDispatch();return jsxRuntime.exports.jsx(TableInfiniteScroll,{hasMore:t||!1,fetchMore:()=>{a(actions$5.fetchAllOrganizationsStart({offsetReset:!1}))},fetchOnMount:0===(null==e?void 0:e.length),offset:r||0,items:e||[],itemHeight:itemHeight,isLoading:"pending"===n||"loading"===n,error:"failure"===n,TableRowComponent:TableRow,TableHeaderComponent:jsxRuntime.exports.jsx(OrgsTableHeader,{}),adjustTableHeight:-35})},TableSearchInputButton=tableSearchComponents["TableSearchInputButton"],OrgTableSearchButton=()=>{const[e,t]=react.exports.useState(""),[r,n]=react.exports.useState(!1),a=react.exports.useRef(debounce_1(e=>{o(actions$5.setSearchTerm(e))},1e3)).current,o=useDispatch();var i=useSelector(selectSearchTerm),s=useSelector(selectIsSearching);return jsxRuntime.exports.jsx(TableSearchInputButton,{onChange:e=>{t(e.target.value),e.target.value?(o(actions$5.setIsSearching(!0)),a(e.target.value)):a("")},onClear:()=>{t(""),a("")},onToggleSearch:()=>{n(e=>!e)},testId:"instance-org-table-search",placeholderText:"Search by organization name",searchValue:i,inputValue:e,isSearchVisible:r,isSearching:s,searchItemTooltipText:"Organizations"})},useStyles=makeStyles()(e=>({root:{display:"flex",flexDirection:"column"},header:{display:"flex",justifyContent:"space-between",padding:e.spacing(4),borderBottom:"0.5px solid "+e.palette.divider,"& h5":{lineHeight:"40px",marginLeft:"10px"}},orgHeader:{display:"flex",flexDirection:"column",justifyContent:"space-between",verticalAlign:"center","& h5":{lineHeight:"28px"}},titleStyle:{fontWeight:"400"},tableWrapper:{height:"calc(100vh - 55px - 64px - 69px - 22px)",overflow:"hidden"},createBox:{display:"flex",alignItems:"center"},createBtn:{flexShrink:0,fontSize:"12px",lineHeight:"16px","& svg":{height:"15px",width:"15px",marginRight:"7px"}},searchBox:{display:"flex",flexGrow:1,alignItems:"center",justifyContent:"flex-end",padding:"0 16px"}})),AllOrgsPanel=()=>{const r=useDispatch();var e=useStyles()["classes"];const n=useSelector(selectIsFullscreenEnabled);e=jsxRuntime.exports.jsxs(Box,Object.assign({"data-testid":"os-instance-admin-center-orgs.nav"},{children:[jsxRuntime.exports.jsx("section",Object.assign({className:e.root},{children:jsxRuntime.exports.jsxs("header",Object.assign({className:e.header},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({className:e.orgHeader,"data-testid":"os-instance-admin-center-orgs.header"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",className:e.titleStyle,id:"os-instance-admin-center-orgs.header-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-instance-admin-center-orgs.table.header",defaultMessage:"All Organizations",description:"Organizations Header"})})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",className:e.titleStyle,id:"os-instance-admin-center-orgs.sub-header-title"},{children:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-instance-admin-center-orgs.table.sub-header",defaultMessage:"View all Organizations available inside of this Instance",description:"Organizations sub Header"})}))]})),jsxRuntime.exports.jsx(Box,Object.assign({className:e.searchBox,sx:{maxWidth:n?"100%":"360px"}},{children:jsxRuntime.exports.jsx(OrgTableSearchButton,{})})),jsxRuntime.exports.jsx(Box,Object.assign({className:e.createBox},{children:jsxRuntime.exports.jsxs(Button,Object.assign({color:"primary",variant:"contained",className:e.createBtn,"data-testid":"instance-admin-center-create-new-org-btn",onClick:()=>{var e={name:CREATE_ORGANIZATION_PANEL_ID,config:{name:CREATE_ORGANIZATION_PANEL_ID,isPanelFullScreen:n}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:n?0:55,marginStart:n?0:80,size:"large",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0,parentPanelId:PARENT_PANEL_ID};r(mountPanel({panelId:CREATE_ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t}))}},{children:[jsxRuntime.exports.jsx(Add,{}),jsxRuntime.exports.jsx(FormattedMessage,{id:"os-instance-admin-center-orgs.create-new-organization.button",defaultMessage:"Create New",description:"Create New Organization"})]}))}))]}))})),jsxRuntime.exports.jsx("div",Object.assign({className:e.tableWrapper},{children:jsxRuntime.exports.jsx(OrgsTable,{})}))]}));return n?jsxRuntime.exports.jsx(AIWareThemeProvider,{children:e}):e};var $location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,global$8=global$k,classof$2=classofRaw$2,engineIsNode="process"===classofRaw$2(global$k.process),makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$2=function(e,t,r){return r.get&&makeBuiltIn(r.get,t,{getter:!0}),r.set&&makeBuiltIn(r.set,t,{setter:!0}),defineProperty.f(e,t,r)},getBuiltIn$3=getBuiltIn$7,defineBuiltInAccessor$1=defineBuiltInAccessor$2,wellKnownSymbol$5=wellKnownSymbol$g,DESCRIPTORS$2=descriptors,SPECIES$2=wellKnownSymbol$g("species"),setSpecies$1=function(e){e=getBuiltIn$3(e);DESCRIPTORS$2&&e&&!e[SPECIES$2]&&defineBuiltInAccessor$1(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$2=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$2(t,e))return e;throw new $TypeError$5("Incorrect invocation")},uncurryThis$4=functionUncurryThis,fails$1=fails$f,isCallable$5=isCallable$k,classof$1=classof$5,getBuiltIn$2=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$4(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.test(noop),isConstructorModern=function(e){if(!isCallable$5(e))return!1;try{return construct(noop,[],e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$5(e))return!1;switch(classof$1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return INCORRECT_TO_STRING||!!exec(constructorRegExp,inspectSource$1(e))}catch(e){return!0}},isConstructor$1=(isConstructorLegacy.sham=!0,!construct||fails$1(function(){var e;return isConstructorModern(isConstructorModern.call)||!isConstructorModern(Object)||!isConstructorModern(function(){e=!0})||e})?isConstructorLegacy:isConstructorModern),isConstructor=isConstructor$1,tryToString$2=tryToString$4,$TypeError$4=TypeError,aConstructor$1=function(e){if(isConstructor(e))return e;throw new $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$9,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,wellKnownSymbol$4=wellKnownSymbol$g,SPECIES$1=wellKnownSymbol$g("species"),speciesConstructor$1=function(e,t){var e=anObject$4(e).constructor;return void 0===e||isNullOrUndefined$1(e=anObject$4(e)[SPECIES$1])?t:aConstructor(e)},NATIVE_BIND$1=functionBindNative,FunctionPrototype=Function.prototype,apply$1=FunctionPrototype.apply,call$6=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$6.bind(apply$1):function(){return call$6.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$3=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$3(e)},uncurryThis$2=functionUncurryThisClause,aCallable$5=aCallable$8,NATIVE_BIND=functionBindNative,bind$4=functionUncurryThisClause(functionUncurryThisClause.bind),functionBindContext=function(e,t){return aCallable$5(e),void 0===t?e:NATIVE_BIND?bind$4(e,t):function(){return e.apply(t,arguments)}},uncurryThis$1=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw new $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$7=global$k,apply=functionApply,bind$3=functionBindContext,isCallable$4=isCallable$k,hasOwn$1=hasOwnProperty_1,fails=fails$f,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$7.setImmediate,clear=global$7.clearImmediate,process$2=global$7.process,Dispatch=global$7.Dispatch,Function$1=global$7.Function,MessageChannel=global$7.MessageChannel,String$1=global$7.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails(function(){$location=global$7.location}),function(e){var t;hasOwn$1(queue$2,e)&&(t=queue$2[e],delete queue$2[e],t())}),runner=function(e){return function(){run(e)}},eventListener=function(e){run(e.data)},globalPostMessageDefer=function(e){global$7.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$4(e)?e:Function$1(e),r=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,r)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$2.nextTick(runner(e))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(runner(e))}:MessageChannel&&!IS_IOS$1?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=eventListener,defer=bind$3(port.postMessage,port)):global$7.addEventListener&&isCallable$4(global$7.postMessage)&&!global$7.importScripts&&$location&&"file:"!==$location.protocol&&!fails(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$7.addEventListener("message",eventListener,!1)):defer=ONREADYSTATECHANGE in createElement("script")?function(e){html.appendChild(createElement("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run(e)}}:function(e){setTimeout(runner(e),0)}),{set:set,clear:clear}),global$6=global$k,DESCRIPTORS$1=descriptors,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,safeGetBuiltIn$1=function(e){var t;return DESCRIPTORS$1?(t=getOwnPropertyDescriptor(global$6,e))&&t.value:global$6[e]},Queue$2=function(){this.head=null,this.tail=null},queue$1=(Queue$2.prototype={add:function(e){var e={item:e,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},Queue$2),userAgent$1=engineUserAgent,engineIsIosPebble=/ipad|iphone|ipod/i.test(userAgent$1)&&"undefined"!=typeof Pebble,userAgent=engineUserAgent,engineIsWebosWebkit=/web0s(?!.*chrome)/i.test(userAgent),global$5=global$k,safeGetBuiltIn=safeGetBuiltIn$1,bind$2=functionBindContext,macrotask=task$1.set,Queue$1=queue$1,IS_IOS=engineIsIos,IS_IOS_PEBBLE=engineIsIosPebble,IS_WEBOS_WEBKIT=engineIsWebosWebkit,IS_NODE$2=engineIsNode,MutationObserver=global$5.MutationObserver||global$5.WebKitMutationObserver,document$2=global$5.document,process$1=global$5.process,Promise$1=global$5.Promise,microtask$1=safeGetBuiltIn("queueMicrotask"),microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$1.domain)&&e.exit();t=queue.get();)try{t()}catch(e){throw queue.head&&notify$1(),e}e&&e.enter()},notify$1=IS_IOS||IS_NODE$2||IS_WEBOS_WEBKIT||!MutationObserver||!document$2?!IS_IOS_PEBBLE&&Promise$1&&Promise$1.resolve?((promise=Promise$1.resolve(void 0)).constructor=Promise$1,then=bind$2(promise.then,promise),function(){then(flush)}):IS_NODE$2?function(){process$1.nextTick(flush)}:(macrotask=bind$2(macrotask,global$5),function(){macrotask(flush)}):(toggle=!0,node=document$2.createTextNode(""),new MutationObserver(flush).observe(node,{characterData:!0}),function(){node.data=toggle=!toggle}),microtask$1=function(e){queue.head||notify$1(),queue.add(e)}),microtask$1),hostReportErrors$1=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},perform$3=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},global$4=global$k,promiseNativeConstructor=global$k.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$3=global$k,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$3=isCallable$k,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$3=wellKnownSymbol$g,IS_BROWSER=engineIsBrowser,IS_DENO=engineIsDeno,V8_VERSION=engineV8Version,SPECIES=(NativePromiseConstructor$3&&NativePromiseConstructor$3.prototype,wellKnownSymbol$3("species")),SUBCLASSING=!1,NATIVE_PROMISE_REJECTION_EVENT$1=isCallable$3(global$3.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function r(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=r,!(SUBCLASSING=e.then(function(){})instanceof r))return!0}return!t&&(IS_BROWSER||IS_DENO)&&!NATIVE_PROMISE_REJECTION_EVENT$1}),promiseConstructorDetection={CONSTRUCTOR:FORCED_PROMISE_CONSTRUCTOR$5,REJECTION_EVENT:NATIVE_PROMISE_REJECTION_EVENT$1,SUBCLASSING:SUBCLASSING},newPromiseCapability$2={},aCallable$4=aCallable$8,$TypeError$2=TypeError,PromiseCapability=function(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw new $TypeError$2("Bad Promise constructor");r=e,n=t}),this.resolve=aCallable$4(r),this.reject=aCallable$4(n)},$$6=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$2=global$k,call$5=functionCall,defineBuiltIn$1=defineBuiltIn$5,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$4,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$2=isCallable$k,isObject$1=isObject$b,anInstance=anInstance$1,speciesConstructor=speciesConstructor$1,task=task$1.set,microtask=microtask_1,hostReportErrors=hostReportErrors$1,perform$2=perform$3,Queue=queue$1,InternalStateModule=internalState,NativePromiseConstructor$2=promiseNativeConstructor,PromiseConstructorDetection=promiseConstructorDetection,newPromiseCapabilityModule$3=newPromiseCapability$2,PROMISE="Promise",FORCED_PROMISE_CONSTRUCTOR$4=PromiseConstructorDetection.CONSTRUCTOR,NATIVE_PROMISE_REJECTION_EVENT=PromiseConstructorDetection.REJECTION_EVENT,NATIVE_PROMISE_SUBCLASSING=PromiseConstructorDetection.SUBCLASSING,getInternalPromiseState=InternalStateModule.getterFor(PROMISE),setInternalState=InternalStateModule.set,NativePromisePrototype$1=NativePromiseConstructor$2&&NativePromiseConstructor$2.prototype,PromiseConstructor=NativePromiseConstructor$2,PromisePrototype=NativePromisePrototype$1,TypeError$1=global$2.TypeError,document$1=global$2.document,process=global$2.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$2.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$2(t=e.then))&&t},callReaction=function(e,t){var r,n,a,o=t.value,i=t.state===FULFILLED,s=i?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(i||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?r=o:(u&&u.enter(),r=s(o),u&&(u.exit(),a=!0)),r===e.promise?l(new TypeError$1("Promise-chain cycle")):(n=isThenable(r))?call$5(n,r,c,l):c(r)):l(o)}catch(e){u&&!a&&u.exit(),l(e)}},notify=function(r,n){r.notified||(r.notified=!0,microtask(function(){for(var e,t=r.reactions;e=t.get();)callReaction(e,r);r.notified=!1,n&&!r.rejection&&onUnhandled(r)}))},dispatchEvent=function(e,t,r){var n;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),global$2.dispatchEvent(n)):n={promise:t,reason:r},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$2["on"+e])?t(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",r)},onUnhandled=function(n){call$5(task,global$2,function(){var e=n.facade,t=n.value,r=isUnhandled(n);if(r&&(r=perform$2(function(){IS_NODE?process.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),n.rejection=IS_NODE||isUnhandled(n)?UNHANDLED:HANDLED,r.error))throw r.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$5(task,global$2,function(){var e=t.facade;IS_NODE?process.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,r,n){return function(e){t(r,e,n)}},internalReject=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new TypeError$1("Promise can't be resolved itself");var n=isThenable(e);n?microtask(function(){var t={done:!1};try{call$5(n,e,bind$1(internalResolve,t,r),bind$1(internalReject,t,r))}catch(e){internalReject(t,e,r)}}):(r.value=e,r.state=FULFILLED,notify(r,!1))}catch(e){internalReject({done:!1},e,r)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$5(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var r=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return r.parent=!0,n.ok=!isCallable$2(e)||e,n.fail=isCallable$2(t)&&t,n.domain=IS_NODE?process.domain:void 0,r.state===PENDING?r.reactions.add(n):microtask(function(){callReaction(n,r)}),n.promise}),OwnPromiseCapability=function(){var e=new Internal,t=getInternalPromiseState(e);this.promise=e,this.resolve=bind$1(internalResolve,t),this.reject=bind$1(internalReject,t)},newPromiseCapabilityModule$3.f=newPromiseCapability$1=function(e){return e===PromiseConstructor||e===PromiseWrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)},isCallable$2(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var r=this;return new PromiseConstructor(function(e,t){call$5(nativeThen,r,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$6({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$2=wellKnownSymbol$g,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$g("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof=classof$5,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$1=wellKnownSymbol$g,ITERATOR$1=wellKnownSymbol$g("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof(e)]},call$4=functionCall,aCallable$2=aCallable$8,anObject$3=anObject$9,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$1=TypeError,getIterator$1=function(e,t){var r=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(r))return anObject$3(call$4(r,e));throw new $TypeError$1(tryToString$1(e)+" is not iterable")},call$3=functionCall,anObject$2=anObject$9,getMethod=getMethod$3,iteratorClose$1=function(e,t,r){var n,a;anObject$2(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw r;return r}n=call$3(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return anObject$2(n),r},bind=functionBindContext,call$2=functionCall,anObject$1=anObject$9,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf$1=objectIsPrototypeOf,getIterator=getIterator$1,getIteratorMethod=getIteratorMethod$2,iteratorClose=iteratorClose$1,$TypeError=TypeError,Result=function(e,t){this.stopped=e,this.result=t},ResultPrototype=Result.prototype,iterate$2=function(e,t,r){function n(e){return o&&iteratorClose(o,"normal",e),new Result(!0,e)}function a(e){return d?(anObject$1(e),f?y(e[0],e[1],n):y(e[0],e[1])):f?y(e,n):y(e)}var o,i,s,c,l,u,p=r&&r.that,d=!(!r||!r.AS_ENTRIES),g=!(!r||!r.IS_RECORD),$=!(!r||!r.IS_ITERATOR),f=!(!r||!r.INTERRUPTED),y=bind(t,p);if(g)o=e.iterator;else if($)o=e;else{if(!(r=getIteratorMethod(e)))throw new $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(r)){for(i=0,s=lengthOfArrayLike(e);i<s;i++)if((c=a(e[i]))&&isPrototypeOf$1(ResultPrototype,c))return c;return new Result(!1)}o=getIterator(e,r)}for(l=(g?e:o).next;!(u=call$2(l,o)).done;){try{c=a(u.value)}catch(e){iteratorClose(o,"throw",e)}if("object"==typeof c&&c&&isPrototypeOf$1(ResultPrototype,c))return c}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$g,ITERATOR=wellKnownSymbol$g("iterator"),SAFE_CLOSING=!1;try{var called=0,iteratorWithReturn={next:function(){return{done:!!called++}},return:function(){SAFE_CLOSING=!0}};iteratorWithReturn[ITERATOR]=function(){return this},Array.from(iteratorWithReturn,function(){throw 2})}catch(e){}var method,checkCorrectnessOfIteration$1=function(e,t){try{if(!t&&!SAFE_CLOSING)return!1}catch(e){return!1}var r=!1;try{var n={};n[ITERATOR]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},NativePromiseConstructor$1=promiseNativeConstructor,checkCorrectnessOfIteration=checkCorrectnessOfIteration$1,FORCED_PROMISE_CONSTRUCTOR$3=promiseConstructorDetection.CONSTRUCTOR,promiseStaticsIncorrectIteration=FORCED_PROMISE_CONSTRUCTOR$3||!checkCorrectnessOfIteration(function(e){NativePromiseConstructor$1.all(e).then(void 0,function(){})}),$$5=_export,call$1=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$4=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),c=t.resolve,l=t.reject,r=perform$1(function(){var n=aCallable$1(s.resolve),a=[],o=0,i=1;iterate$1(e,function(e){var t=o++,r=!1;i++,call$1(n,s,e).then(function(e){r||(r=!0,a[t]=e,--i)||c(a)},l)}),--i||c(a)});return r.error&&l(r.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable$1=isCallable$k,defineBuiltIn=defineBuiltIn$5,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$3=($$4({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable$1(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$2=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var r=this,n=newPromiseCapabilityModule$1.f(r),a=n.reject,t=perform(function(){var t=aCallable(r.resolve);iterate(e,function(e){call(t,r,e).then(n.resolve,a)})});return t.error&&a(t.value),n.promise}}),_export),newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$2({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return(0,t.reject)(e),t.promise}}),anObject$9),isObject=isObject$b,newPromiseCapability=newPromiseCapability$2,promiseResolve$1=function(e,t){return anObject(e),isObject(t)&&t.constructor===e?t:((0,(e=newPromiseCapability.f(e)).resolve)(t),e.promise)},$$1=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}});const namespace$4=SLICE_NAME,initialState$4={[namespace$5]:initialState$5},actions$4={[namespace$5]:actions$5},rootReducer=combineReducers({[namespace$5]:instanceAdminCenterOrgs_state}),namespace$3="createOrgBasicInfoStep",initialState$3={orgName:"",businessUnit:"",orgLogo:"",logoPreviewImage:""},createOrgBasicInfoStepSlice=createSlice({name:namespace$3,initialState:initialState$3,reducers:{setOrgName:(e,t)=>{e.orgName=t.payload},setBusinessUnit:(e,t)=>{e.businessUnit=t.payload},setOrgLogo:(e,t)=>{e.orgLogo=t.payload},setLogoPreviewImage:(e,t)=>{e.logoPreviewImage=t.payload},resetBasicInfo:e=>{e.orgName=initialState$3.orgName,e.businessUnit=initialState$3.businessUnit,e.orgLogo=initialState$3.orgLogo,e.logoPreviewImage=initialState$3.logoPreviewImage}}}),actions$3=createOrgBasicInfoStepSlice.actions;var createOrgBasicInfoStep_slice=createOrgBasicInfoStepSlice.reducer;const namespace$2="createOrgPackagesStep",initialState$2={defaultPackages:{application:[],status:"idle"},selectedPackages:{application:[],engine:[]},resourceTypeToFetch:"application",resources:{application:{packages:[],offset:0,hasMore:!0},engine:{packages:[],offset:0,hasMore:!0}},status:"idle"},createOrgPackagesStepSlice=createSlice({name:namespace$2,initialState:initialState$2,reducers:{fetchDefaultPackagesStart:e=>{e.defaultPackages.status="loading"},fetchDefaultPackagesSuccess:(e,t)=>{0<t.payload.records.length&&(e.defaultPackages.application=t.payload.records)},fetchDefaultPackagesFailure:e=>{e.defaultPackages.status="failure"},setSelectedPackages:(e,t)=>{e.selectedPackages=t.payload},setResourceTypeToFetch(e,t){e.resourceTypeToFetch=t.payload},togglePackageSelection(e,t){var r=[...e.selectedPackages[e.resourceTypeToFetch]],n=r.findIndex(e=>e.id===t.payload.id);-1!==n?r.splice(n,1):r.push(t.payload),e.selectedPackages[e.resourceTypeToFetch]=r},fetchPackagesStart(e,t){e.status="loading",t.payload.reset&&(e.resources[e.resourceTypeToFetch].offset=0)},fetchPackagesSuccess(e,t){var{records:t,hasMore:r,nextOffset:n,reset:a,packageNameFilter:o}=t.payload,i=(e.status="success",e.resources[e.resourceTypeToFetch]);i.hasMore=r,i.offset=n,a?(r=""===o&&"application"===e.resourceTypeToFetch&&30===n&&0<e.defaultPackages.application.length?e.defaultPackages.application:[],i.packages=lodash.exports.uniqBy([...r,...t],"primaryResource.resourceId"),e.selectedPackages.application=lodash.exports.uniqBy([...e.defaultPackages.application,...e.selectedPackages.application],"primaryResource.resourceId")):i.packages=lodash.exports.uniqBy([...i.packages,...t],"primaryResource.resourceId")},fetchPackagesFailure(e){e.status="failure"},resetPackagesStep(e){"application"===e.resourceTypeToFetch&&0<e.defaultPackages.application.length?e.resources[e.resourceTypeToFetch].packages=lodash.exports.uniqBy([...e.defaultPackages.application],"primaryResource.resourceId"):e.resources[e.resourceTypeToFetch].packages=initialState$2.resources[e.resourceTypeToFetch].packages,e.selectedPackages=initialState$2.selectedPackages,e.resourceTypeToFetch=initialState$2.resourceTypeToFetch,e.resources=initialState$2.resources,e.status=initialState$2.status}}}),actions$2=createOrgPackagesStepSlice.actions;var createOrgPackagesStep_slice=createOrgPackagesStepSlice.reducer;const namespace$1="createOrgSettingsStep",initialState$1={olpEnabled:!1,autoApproveEnginesEnabled:!1,dataRetentionPolicyEnabled:!1,dataRetentionPolicyDays:30,firstLoadApplicationId:"",autoUpdatePackagesEnabled:!1,applications:[],applicationsLoading:!1,applicationsStatus:"idle"},createOrgSettingsStepSlice=createSlice({name:namespace$1,initialState:initialState$1,reducers:{setOlpEnabled:(e,t)=>{e.olpEnabled=t.payload},setAutoApproveEnginesEnabled:(e,t)=>{e.autoApproveEnginesEnabled=t.payload},setDataRetentionPolicyEnabled:(e,t)=>{e.dataRetentionPolicyEnabled=t.payload,e.dataRetentionPolicyDays=t.payload?e.dataRetentionPolicyDays:30},setDataRetentionPolicyDays:(e,t)=>{e.dataRetentionPolicyDays=e.dataRetentionPolicyEnabled?t.payload:0,e.dataRetentionPolicyEnabled=!!t.payload},setFirstLoadApplicationId:(e,t)=>{e.firstLoadApplicationId=t.payload},setAutoUpdatePackagesEnabled:(e,t)=>{e.autoUpdatePackagesEnabled=t.payload},resetOrgSettingsStep:e=>{e.olpEnabled=initialState$1.olpEnabled,e.autoApproveEnginesEnabled=initialState$1.autoApproveEnginesEnabled,e.dataRetentionPolicyDays=initialState$1.dataRetentionPolicyDays,e.firstLoadApplicationId=initialState$1.firstLoadApplicationId,e.autoUpdatePackagesEnabled=initialState$1.autoUpdatePackagesEnabled},fetchApplicationsInit:e=>{e.applicationsLoading=!0,e.applicationsStatus="pending"},fetchApplicationsSuccess:(e,t)=>{e.applications=t.payload,e.applicationsLoading=!1,e.applicationsStatus="success"},fetchApplicationsFailure:e=>{e.applicationsLoading=!1,e.applicationsStatus="failure"}}}),actions$1=createOrgSettingsStepSlice.actions;var createOrgSettingsStep_slice=createOrgSettingsStepSlice.reducer;const namespace="createOrgWizard",initialState={activeStep:1,steps:[{stepNumber:1,completed:!1,disabled:!1,error:!1},{stepNumber:2,completed:!1,disabled:!1,error:!1},{stepNumber:3,completed:!1,disabled:!1,error:!1}],saveStatus:"idle",orgId:""},createOrgWizardSlice=createSlice({name:namespace,initialState:initialState,reducers:{setActiveStep:(e,t)=>{e.activeStep=t.payload},setStepCompleted:(e,t)=>{e.steps[t.payload-1].completed=!0},setStepUncompleted:(e,t)=>{e.steps[t.payload-1].completed=!1},setSaveStatus:(e,t)=>{e.saveStatus=t.payload},saveCreateOrgInit:e=>{e.saveStatus="pending"},saveCreateOrgSuccess:(e,t)=>{e.saveStatus="success",e.orgId=t.payload},saveCreateOrgFailed:e=>{e.saveStatus="failure"},resetCreateOrgWizard:e=>{e.activeStep=initialState.activeStep,e.steps=initialState.steps,e.saveStatus=initialState.saveStatus,e.orgId=initialState.orgId},viewOrg:(e,t)=>{}}}),actions=createOrgWizardSlice.actions;var createOrgWizard_slice=createOrgWizardSlice.reducer;const createOrgWizardRootReducer=combineReducers({[namespace]:createOrgWizard_slice,[namespace$3]:createOrgBasicInfoStep_slice,[namespace$2]:createOrgPackagesStep_slice,[namespace$1]:createOrgSettingsStep_slice});function __awaiter(e,i,s,c){return new(s=s||Promise)(function(r,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function a(e){try{o(c.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,a)}o((c=c.apply(e,i||[])).next())})}function createOrganization(n,a){return __awaiter(this,void 0,void 0,function*(){var e="createOrganization",t="createOrganization",r={input:{name:a.name,businessUnit:a.businessUnit,metadata:a.metadata}};return(yield baseGraphQLApiWithError(Object.assign({query:"\n mutation createOrganization($input: CreateOrganization!) {\n createOrganization (input: $input) {\n id\n }\n }\n ",operationName:e,variables:r},n)))[t]})}function updatePackageGrants(n,a,o){return __awaiter(this,void 0,void 0,function*(){var e=`
2
2
  mutation packageGrants{
3
3
  ${a.map((e,t)=>`
4
4
  package${t}: packageUpdateGrants(input: {packageId: "${e}", packageGrants: {organizationId: ${o}, grantType: GRANT}}) {
@@ -15,6 +15,7 @@ import{bP as AvailableComponents,X as createSlice,fX as md5,Z as useSelector,bX
15
15
  ) {
16
16
  records {
17
17
  id
18
+ guid
18
19
  name
19
20
  imageUrl
20
21
  status
@@ -22,4 +23,4 @@ import{bP as AvailableComponents,X as createSlice,fX as md5,Z as useSelector,bX
22
23
  }
23
24
  }
24
25
  }
25
- `,operationName:e},n)))[t]})}function fetchPackages(i,s,c,l,u=""){return __awaiter(this,void 0,void 0,function*(){var e="fetchPackages",t="packages",r={offset:c,limit:l,packageFilter:{primaryResourceType:s,isLatest:!0},nameRegexp:u,status:"published",distributionType:"engine"===s?"public":void 0},{token:n,graphQLEndpoint:a}=i;try{var o=yield baseGraphQLApi({query:"\n query fetchPackages ($offset: Int $limit: Int $packageFilter: PackageFilter $nameRegexp: String $distributionType: EngineDistributionType $status: PackageStatus) {\n packages (\n offset: $offset,\n limit: $limit,\n packageFilter: $packageFilter\n nameRegexp: $nameRegexp\n status: $status\n distributionType: $distributionType\n ) {\n records {\n id\n name\n icon\n version\n status\n sourceOriginId\n primaryResource {\n resourceId\n }\n }\n }\n }\n ",variables:r,operationName:e,graphEndpoint:a,token:n});if(o.data[t])return o.data[t];throw new Error("Error retrieving packages")}catch(e){return devErrorLogger(e),e}})}function fetchDefaultPackages(i){return __awaiter(this,void 0,void 0,function*(){var e="fetchDefaultPackages",t="packages",r={packageFilter:{primaryResourceType:"application",isLatest:!0},primaryResourceId:RESOURCE_ID,status:"published"},{token:n,graphQLEndpoint:a}=i;try{var o=yield baseGraphQLApi({query:"\n query fetchDefaultPackages ($packageFilter: PackageFilter $primaryResourceId: ID $status: PackageStatus) {\n packages (\n packageFilter: $packageFilter\n primaryResourceId: $primaryResourceId\n status: $status\n ) {\n records {\n id\n name\n icon\n version\n status\n sourceOriginId\n primaryResource {\n resourceId\n }\n }\n }\n }\n ",variables:r,operationName:e,graphEndpoint:a,token:n});if(o.data[t])return o.data[t];throw new Error("Error retrieving default packages")}catch(e){return devErrorLogger(e),e}})}function*fetchAllOrganizationsSaga(){try{var e,t=yield select(selectApiConfigs),{offset:r,hasMore:n}=yield select(selectOrganizations);n?(e=(yield fetchAllOrganizations(t,r,PAGE_LIMIT))["records"],yield put(actions$5.fetchAllOrganizationsSuccess({records:e,hasMore:PAGE_LIMIT===e.length,nextOffset:r+PAGE_LIMIT}))):yield put(actions$5.fetchAllOrganizationsSuccess({records:[],hasMore:n,nextOffset:r}))}catch(e){yield put(actions$5.fetchAllOrganizationsFailure()),console.log(e)}}function*searchOrgsSaga(e){try{var t=e.payload,r=t?{name:t}:void 0,n=(yield fetchAllOrganizations(yield select(selectApiConfigs),0,PAGE_LIMIT,r))["records"];yield put(actions$5.fetchAllOrganizationsSuccess({records:n,hasMore:PAGE_LIMIT===n.length,nextOffset:PAGE_LIMIT}))}catch(e){console.log(e),yield put(actions$5.fetchAllOrganizationsFailure())}}function*fetchAllOrganizationsWatcher(){yield takeEvery$1(actions$5.fetchAllOrganizationsStart.type,fetchAllOrganizationsSaga)}function*resetAndFetchWatcher(){yield takeEvery$1(actions$5.resetAndFetch.type,fetchAllOrganizationsSaga)}function*searchOrgsWatcher(){yield takeEvery$1(actions$5.setSearchTerm.type,searchOrgsSaga)}function*rootSaga(){yield all([fetchAllOrganizationsWatcher(),resetAndFetchWatcher(),searchOrgsWatcher()])}const selectResourcePagination=createSelector(e=>e.instanceAdminCenterCreateOrg.createOrgPackagesStep,({resourceTypeToFetch:e,resources:t})=>{var{hasMore:t,offset:r}=t[e];return{hasMore:t,offset:r,resourceTypeToFetch:e}}),selectPackages=e=>{var{resourceTypeToFetch:e,resources:t}=e.instanceAdminCenterCreateOrg.createOrgPackagesStep;return t[e].packages},selectSelectedPackages=e=>{var t=e.instanceAdminCenterCreateOrg.createOrgPackagesStep["resourceTypeToFetch"];return e.instanceAdminCenterCreateOrg.createOrgPackagesStep.selectedPackages[t]},selectSelectedPackagesAll=e=>e.instanceAdminCenterCreateOrg.createOrgPackagesStep.selectedPackages,selectPackagesStatus=e=>e.instanceAdminCenterCreateOrg.createOrgPackagesStep.status,selectDefaultApplication=e=>{return null==(e=null==(e=null==(e=e.instanceAdminCenterCreateOrg)?void 0:e.createOrgPackagesStep)?void 0:e.defaultPackages)?void 0:e.application[0]};function*fetchDefaultPackagesSaga(e){try{var t=(yield fetchDefaultPackages(yield select(selectApiConfigs)))["records"];yield put(actions$2.fetchDefaultPackagesSuccess({records:t||[]}))}catch(e){yield put(actions$2.fetchDefaultPackagesFailure()),console.log(e)}}function*fetchPackagesSaga(e){try{var t,{filter:r,reset:n}=e.payload,a=yield select(selectApiConfigs),{offset:o,hasMore:i,resourceTypeToFetch:s}=yield select(selectResourcePagination);i||n?(t=(yield fetchPackages(a,s,o,PAGE_LIMIT,"(?i)"+r))["records"],yield put(actions$2.fetchPackagesSuccess({records:t.filter(e=>e),hasMore:PAGE_LIMIT===t.length,nextOffset:o+PAGE_LIMIT,reset:n,packageNameFilter:r}))):yield put(actions$2.fetchPackagesSuccess({records:[],hasMore:i,nextOffset:o,reset:n}))}catch(e){yield put(actions$2.fetchPackagesFailure()),console.log(e)}}function*fetchPackagesWatcher(){yield takeEvery$1(actions$2.fetchPackagesStart.type,fetchPackagesSaga)}function*fetchDefaultPackagesWatcher(){yield takeEvery$1(actions$2.fetchDefaultPackagesStart.type,fetchDefaultPackagesSaga)}function*fetchApplicationsSaga(){try{var e=yield select(selectSelectedPackagesAll),t=(null==e?void 0:e.application)||[];yield put(actions$1.fetchApplicationsSuccess(t))}catch(e){console.log(e),yield put(actions$1.fetchApplicationsFailure())}}function*fetchApplicationsWatcher(){yield takeLatest$1(actions$1.fetchApplicationsInit.type,fetchApplicationsSaga)}const selectOrgName=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep.orgName,selectBusinessUnit=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep.businessUnit,selectLogoPreviewImage=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep.logoPreviewImage,selectBasicInfoStep=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep,selectOlpEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.olpEnabled,selectAutoApproveEnginesEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.autoApproveEnginesEnabled,selectDataRetentionPolicyDays=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.dataRetentionPolicyDays,selectDataRetentionPolicyEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.dataRetentionPolicyEnabled,selectFirstLoadApplicationId=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.firstLoadApplicationId,selectApplications=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.applications,selectAutoUpdatePackagesEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.autoUpdatePackagesEnabled,panelId$1="CREATE_ORGANIZATION_PANEL";function*viewOrgSaga(e){yield put(mountPanel({panelId:ADMIN_CENTER_PANEL_ID,microFrontend:{name:ADMIN_CENTER_PANEL_ID,config:{name:ADMIN_CENTER_PANEL_ID,organizationId:e.payload.orgId,organizationName:e.payload.orgName}},panelConfig:{show:!1,type:"APP_BAR_PANEL_TEMPLATE",parentPanelId:PARENT_PANEL_ID,size:"xlarge",marginTop:55,marginStart:80}}))}function*createOrgSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);let r=void 0,n=!1;try{var a,o=yield select(selectApiConfigs),{orgName:i,businessUnit:s,orgLogo:c}=yield select(selectBasicInfoStep),l=yield select(selectOlpEnabled),u=yield select(selectAutoApproveEnginesEnabled),p=yield select(selectDataRetentionPolicyDays),d=yield select(selectDataRetentionPolicyEnabled),g=yield select(selectAutoUpdatePackagesEnabled),$={name:i,businessUnit:s,metadata:{image:c,engineApprovalWhiteListed:u?"enabled":"disabled",features:{enableRBACFeature:l?"enabled":"disabled",retentionCleanup:d?"enabled":"disabled",retentionDays:d?p:0,defaultApplication:yield select(selectFirstLoadApplicationId),automaticPackageCreation:g?"enabled":"disabled",useEngineGrant:g?"enabled":"disabled",useAppGrant:g?"enabled":"disabled"}}},f=({id:r}=yield createOrganization(o,$),yield select(selectSelectedPackagesAll)),y=0<f.application.length||0<f.engine.length;if(r&&y&&(a=[...f.application,...f.engine].map(e=>e.id),n=yield updatePackageGrants(o,a,r)),!r||y&&!n)throw new Error;yield put(actions.saveCreateOrgSuccess(r)),yield put(actions$5.resetAndFetch()),yield put(actions$3.resetBasicInfo()),yield put(actions$2.resetPackagesStep()),yield put(actions$1.resetOrgSettingsStep()),yield put(actions.resetCreateOrgWizard()),yield put(unmountPanel(panelId$1)),yield put(showMessage({maxWidth:"500px",content:lodash.exports.isEqual("production","development")?"The Organization has been created successfully. You can now add users and modify additional settings from this Organization Admin Center Preview.":t({id:"os-iac.org-creation-success-message",defaultMessage:[{type:0,value:"The Organization has been created successfully. You can now add users and modify additional settings from this Organization Admin Center Preview."}]}),severity:MessageSeverity.Success,actions:[{reduxActionType:actions.viewOrg({orgId:r,orgName:i}),actionButtonText:"View Org"}]}))}catch(e){yield put(actions.saveCreateOrgFailed()),r?n||(yield put(showMessage({content:lodash.exports.isEqual("production","development")?"Organization creation failed. Please try again later":t({id:"os-iac.org-creation-failed-package-grants-message",defaultMessage:[{type:0,value:"Organization creation successful, but the package grants failed"}]}),severity:MessageSeverity.Error}))):yield put(showMessage({content:lodash.exports.isEqual("production","development")?"Organization creation failed. Please try again later":t({id:"os-iac.org-creation-no-id-message",defaultMessage:[{type:0,value:"Organization creation failed. Please try again later"}]}),severity:MessageSeverity.Error})),yield put(actions$3.resetBasicInfo()),yield put(actions$2.resetPackagesStep()),yield put(actions$1.resetOrgSettingsStep()),yield put(actions.resetCreateOrgWizard()),yield put(unmountPanel(panelId$1))}}function*viewOrgWatcher(){yield takeLatest$1(actions.viewOrg.type,viewOrgSaga)}function*createOrgWatcher(){yield takeLatest$1(actions.saveCreateOrgInit.type,createOrgSaga)}function*createOrgWizardRootSaga(){yield all([fetchDefaultPackagesWatcher(),fetchPackagesWatcher(),fetchApplicationsWatcher(),createOrgWatcher(),viewOrgWatcher()])}function getInstanceAdminCenterOrgsModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer,instanceAdminCenterCreateOrg:createOrgWizardRootReducer},sagas:[rootSaga,createOrgWizardRootSaga],initialActions:[]}}const selectActiveStep=e=>e.instanceAdminCenterCreateOrg.createOrgWizard.activeStep,selectSteps=e=>e.instanceAdminCenterCreateOrg.createOrgWizard.steps;var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,thisSymbolValue,symbolDescriptiveString,regexp,replace,stringSlice,STEP_ID,$=_export,DESCRIPTORS=descriptors,global$1=global$k,uncurryThis=functionUncurryThis,hasOwn=hasOwnProperty_1,isCallable=isCallable$k,isPrototypeOf=objectIsPrototypeOf,toString=toString$4,defineBuiltInAccessor=defineBuiltInAccessor$2,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$k.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;!DESCRIPTORS||!isCallable(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString(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(description detection)"===String(NativeSymbol("description detection")),thisSymbolValue=uncurryThis(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),defineBuiltInAccessor(SymbolPrototype,"description",{configurable:!0,get:function(){var e=thisSymbolValue(this);return hasOwn(EmptyStringDescriptionStore,e)?"":(e=symbolDescriptiveString(e),""===(e=NATIVE_SYMBOL?stringSlice(e,7,-1):replace(e,regexp,"$1"))?void 0:e)}}),$({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));const RowSetting=({isFirstItem:e=!1,title:t,description:r,textDirection:n="column",bottomBorder:a=!0,renderLeftComponent:o,renderRightComponent:i})=>jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",sx:{borderBottom:a?"0.5px solid #dadfe8":"0",paddingBottom:"25px",paddingTop:e?"0":"25px",width:"100%"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({direction:n,sx:{width:"506px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5",sx:{fontWeight:600,fontSize:"14px",marginBottom:"5px"}},{children:t})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"12px",lineHeight:"16px"}},{children:r})),o&&o()]})),i&&i()]})),panelId="CREATE_ORGANIZATION_PANEL",{header:PanelHeader,container:PanelContainer,content:PanelContent,stepper:PanelStepper}=panelComponents,stepLabels=(!function(e){e[e.BASIC_INFO=1]="BASIC_INFO",e[e.PACKAGES=2]="PACKAGES",e[e.ORG_SETTINGS=3]="ORG_SETTINGS"}(STEP_ID=STEP_ID||{}),[{stepNumber:STEP_ID.BASIC_INFO,stepLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.basic-info",defaultMessage:"Basic Info",description:"Basic Info description"})},{stepNumber:STEP_ID.PACKAGES,stepLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.packages",defaultMessage:"Packages",description:"Packages description"})},{stepNumber:STEP_ID.ORG_SETTINGS,stepLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.org-settings",defaultMessage:"Organization Settings",description:"Organization Settings description"})}]),BasicInfoStep=react.exports.lazy(()=>import("./js-core.esm106.js")),PacakgesStep=react.exports.lazy(()=>import("./js-core.esm108.js")),OrganizationSettingsStep=react.exports.lazy(()=>import("./js-core.esm109.js")),CreateOrgPanel=()=>{const e=useDispatch();var t=useSelector(selectActiveStep),r=useSelector(selectSteps),n=useSelector(selectIsFullscreenEnabled);return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getInstanceAdminCenterOrgsModule()]},{children:jsxRuntime.exports.jsxs(PanelContainer,Object.assign({testId:"instance-admin-create-org-wizard-container",panelId:panelId,isFullScreen:n},{children:[jsxRuntime.exports.jsx(PanelHeader,{title:"Create Organization",testId:"iaco-wizard-header",onPanelClose:function(){e(actions$3.resetBasicInfo()),e(actions$2.resetPackagesStep()),e(actions$1.resetOrgSettingsStep()),e(actions.setActiveStep(1)),e(hidePanel(panelId))}}),jsxRuntime.exports.jsx(PanelStepper,{enableTabs:!1,steps:r,stepLabels:stepLabels,activeStep:t,TabsProps:{scrollButtons:!1},onClickTab:e=>{},testId:"iaco-wizard-stepper"}),jsxRuntime.exports.jsx(PanelContent,Object.assign({isLoading:!1,isErrored:!1,style:{padding:"0 30px",height:"100vh"},testId:"instance-admin-create-org-wizard-content"},{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[t===STEP_ID.BASIC_INFO&&jsxRuntime.exports.jsx(BasicInfoStep,{}),t===STEP_ID.PACKAGES&&jsxRuntime.exports.jsx(PacakgesStep,{}),t===STEP_ID.ORG_SETTINGS&&jsxRuntime.exports.jsx(OrganizationSettingsStep,{})]}))}))]}))}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px",marginTop:"30px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),SHARED_TEXT={orgSettingsStep:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.title",defaultMessage:"Organization Settings",description:"Create Org Org Settings Step Title"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.description",defaultMessage:"Manage settings for all users of this Organization.",description:"Create Org Org Settings Step Description"}),backBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.back-btn",defaultMessage:"Back",description:"Create Org Org Settings Step Back Button"}),saveBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.save-btn",defaultMessage:"Create Organization",description:"Create Org Org Settings Step Save Button"}),olpTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.olp-title",defaultMessage:"Object Level Permissions",description:"Org Settings Step OLP Title"}),olpDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.olp-description",defaultMessage:"Enabling this feature will include OLP features in Admin Center, enable default permission sets and groups, and apply them to all current Folders and Objects in the account.",description:"Org Settings Step OLP Description"}),firstLoadApplicationSettingTitle:e=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.first-load-application-setting-title",defaultMessage:"First Load Application{name}",description:"First Load Application Setting Title",values:{name:e?": "+e:""}}),firstLoadApplicationSettingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.description",defaultMessage:"Select the first application that will be loaded when a user logs into aiWARE.",description:"First Load Application Setting Description"}),dataRetentionPolicySettingTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-title",defaultMessage:"Data Retention Policy",description:"Data Retention Policy Setting Title"}),dataRetentionPolicySettingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-description",defaultMessage:"Manage the default time that data is retained for this Organization.",description:"Data Retention Policy Setting Description"}),dataRetentionPolicySetting30Days:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-30-days",defaultMessage:"30 days",description:"Data Retention Policy Setting 30 Days"}),dataRetentionPolicySetting90Days:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-90-days",defaultMessage:"90 days",description:"Data Retention Policy Setting 90 Days"}),dataRetentionPolicySetting15Months:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-15-months",defaultMessage:"15 months",description:"Data Retention Policy Setting 15 Months"}),autoApproveEnginesSettingTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.auto-approve-engines-setting-title",defaultMessage:"Auto Approve Engines",description:"Auto Approve Engines Setting Title"}),autoApproveEnginesSettingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.auto-approve-engines-setting-description",defaultMessage:"Any Engine built in aiWARE Developer will not require approval from an Organization Administrator and will be automatically changed to an approved status.",description:"Auto Approve Engines Setting Description"}),autoUpdatePackagesTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.autoUpdatePackages-title",defaultMessage:"Auto Update Packages",description:"Org Settings Step autoUpdatePackages Title"}),autoUpdatePackagesDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.autoUpdatePackages-description",defaultMessage:"Any update to packages will be automatically accepted.",description:"Org Settings Step autoUpdatePackages Description"})},orgSettingsStepModal:{firstLoadApplicationModalDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.first-load-application-modal-description",defaultMessage:"Select the first application that will be loaded when a user logs into aiWARE.",description:"First Load Application Modal Description"}),doneBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.done-btn",defaultMessage:"Done",description:"Create Org Org Settings Step Done Button"})}};export{AllOrgsPanel as A,selectDataRetentionPolicyDays as B,CREATE_ORGANIZATION_PANEL_ID as C,selectApplications as D,actions$1 as E,PAGE_LIMIT as P,RowSetting as R,SHARED_TEXT as S,TOrganizationStatus as T,ADMIN_CENTER_PANEL_ID as a,CreateOrgPanel as b,PARENT_PANEL_ID as c,SLICE_NAME as d,actions$4 as e,selectBusinessUnit as f,getInstanceAdminCenterOrgsModule as g,selectLogoPreviewImage as h,initialState$4 as i,actions$3 as j,actions as k,actions$2 as l,selectResourcePagination as m,namespace$4 as n,selectPackagesStatus as o,panelId as p,selectPackages as q,rootReducer as r,selectOrgName as s,selectSelectedPackages as t,selectActiveStep as u,selectDefaultApplication as v,selectOlpEnabled as w,selectAutoApproveEnginesEnabled as x,selectDataRetentionPolicyEnabled as y,selectAutoUpdatePackagesEnabled as z};
26
+ `,operationName:e,skipErrorIfData:!0},n)))[t]})}function fetchPackages(i,s,c,l,u=""){return __awaiter(this,void 0,void 0,function*(){var e="fetchPackages",t="packages",r={offset:c,limit:l,packageFilter:{primaryResourceType:s,isLatest:!0},nameRegexp:u,status:"published",distributionType:"engine"===s?"public":void 0},{token:n,graphQLEndpoint:a}=i;try{var o=yield baseGraphQLApi({query:"\n query fetchPackages ($offset: Int $limit: Int $packageFilter: PackageFilter $nameRegexp: String $distributionType: EngineDistributionType $status: PackageStatus) {\n packages (\n offset: $offset,\n limit: $limit,\n packageFilter: $packageFilter\n nameRegexp: $nameRegexp\n status: $status\n distributionType: $distributionType\n ) {\n records {\n id\n name\n icon\n version\n status\n sourceOriginId\n primaryResource {\n resourceId\n }\n }\n }\n }\n ",variables:r,operationName:e,graphEndpoint:a,token:n});if(o.data[t])return o.data[t];throw new Error("Error retrieving packages")}catch(e){return devErrorLogger(e),e}})}function fetchDefaultPackages(i){return __awaiter(this,void 0,void 0,function*(){var e="fetchDefaultPackages",t="packages",r={packageFilter:{primaryResourceType:"application",isLatest:!0},primaryResourceId:RESOURCE_ID,status:"published"},{token:n,graphQLEndpoint:a}=i;try{var o=yield baseGraphQLApi({query:"\n query fetchDefaultPackages ($packageFilter: PackageFilter $primaryResourceId: ID $status: PackageStatus) {\n packages (\n packageFilter: $packageFilter\n primaryResourceId: $primaryResourceId\n status: $status\n ) {\n records {\n id\n name\n icon\n version\n status\n sourceOriginId\n primaryResource {\n resourceId\n }\n }\n }\n }\n ",variables:r,operationName:e,graphEndpoint:a,token:n});if(o.data[t])return o.data[t];throw new Error("Error retrieving default packages")}catch(e){return devErrorLogger(e),e}})}function*fetchAllOrganizationsSaga(){try{var e,t=yield select(selectApiConfigs),{offset:r,hasMore:n}=yield select(selectOrganizations);n?(e=(yield fetchAllOrganizations(t,r,PAGE_LIMIT))["records"],yield put(actions$5.fetchAllOrganizationsSuccess({records:e,hasMore:PAGE_LIMIT===e.length,nextOffset:r+PAGE_LIMIT}))):yield put(actions$5.fetchAllOrganizationsSuccess({records:[],hasMore:n,nextOffset:r}))}catch(e){yield put(actions$5.fetchAllOrganizationsFailure()),console.log(e)}}function*searchOrgsSaga(e){try{var t=e.payload,r=t?{name:t}:void 0,n=(yield fetchAllOrganizations(yield select(selectApiConfigs),0,PAGE_LIMIT,r))["records"];yield put(actions$5.fetchAllOrganizationsSuccess({records:n,hasMore:PAGE_LIMIT===n.length,nextOffset:PAGE_LIMIT}))}catch(e){console.log(e),yield put(actions$5.fetchAllOrganizationsFailure())}}function*fetchAllOrganizationsWatcher(){yield takeEvery$1(actions$5.fetchAllOrganizationsStart.type,fetchAllOrganizationsSaga)}function*resetAndFetchWatcher(){yield takeEvery$1(actions$5.resetAndFetch.type,fetchAllOrganizationsSaga)}function*searchOrgsWatcher(){yield takeEvery$1(actions$5.setSearchTerm.type,searchOrgsSaga)}function*rootSaga(){yield all([fetchAllOrganizationsWatcher(),resetAndFetchWatcher(),searchOrgsWatcher()])}const selectResourcePagination=createSelector(e=>e.instanceAdminCenterCreateOrg.createOrgPackagesStep,({resourceTypeToFetch:e,resources:t})=>{var{hasMore:t,offset:r}=t[e];return{hasMore:t,offset:r,resourceTypeToFetch:e}}),selectPackages=e=>{var{resourceTypeToFetch:e,resources:t}=e.instanceAdminCenterCreateOrg.createOrgPackagesStep;return t[e].packages},selectSelectedPackages=e=>{var t=e.instanceAdminCenterCreateOrg.createOrgPackagesStep["resourceTypeToFetch"];return e.instanceAdminCenterCreateOrg.createOrgPackagesStep.selectedPackages[t]},selectSelectedPackagesAll=e=>e.instanceAdminCenterCreateOrg.createOrgPackagesStep.selectedPackages,selectPackagesStatus=e=>e.instanceAdminCenterCreateOrg.createOrgPackagesStep.status,selectDefaultApplication=e=>{return null==(e=null==(e=null==(e=e.instanceAdminCenterCreateOrg)?void 0:e.createOrgPackagesStep)?void 0:e.defaultPackages)?void 0:e.application[0]};function*fetchDefaultPackagesSaga(e){try{var t=(yield fetchDefaultPackages(yield select(selectApiConfigs)))["records"];yield put(actions$2.fetchDefaultPackagesSuccess({records:t||[]}))}catch(e){yield put(actions$2.fetchDefaultPackagesFailure()),console.log(e)}}function*fetchPackagesSaga(e){try{var t,{filter:r,reset:n}=e.payload,a=yield select(selectApiConfigs),{offset:o,hasMore:i,resourceTypeToFetch:s}=yield select(selectResourcePagination);i||n?(t=(yield fetchPackages(a,s,o,PAGE_LIMIT,"(?i)"+r))["records"],yield put(actions$2.fetchPackagesSuccess({records:t.filter(e=>e),hasMore:PAGE_LIMIT===t.length,nextOffset:o+PAGE_LIMIT,reset:n,packageNameFilter:r}))):yield put(actions$2.fetchPackagesSuccess({records:[],hasMore:i,nextOffset:o,reset:n}))}catch(e){yield put(actions$2.fetchPackagesFailure()),console.log(e)}}function*fetchPackagesWatcher(){yield takeEvery$1(actions$2.fetchPackagesStart.type,fetchPackagesSaga)}function*fetchDefaultPackagesWatcher(){yield takeEvery$1(actions$2.fetchDefaultPackagesStart.type,fetchDefaultPackagesSaga)}function*fetchApplicationsSaga(){try{var e=yield select(selectSelectedPackagesAll),t=(null==e?void 0:e.application)||[];yield put(actions$1.fetchApplicationsSuccess(t))}catch(e){console.log(e),yield put(actions$1.fetchApplicationsFailure())}}function*fetchApplicationsWatcher(){yield takeLatest$1(actions$1.fetchApplicationsInit.type,fetchApplicationsSaga)}const selectOrgName=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep.orgName,selectBusinessUnit=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep.businessUnit,selectLogoPreviewImage=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep.logoPreviewImage,selectBasicInfoStep=e=>e.instanceAdminCenterCreateOrg.createOrgBasicInfoStep,selectOlpEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.olpEnabled,selectAutoApproveEnginesEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.autoApproveEnginesEnabled,selectDataRetentionPolicyDays=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.dataRetentionPolicyDays,selectDataRetentionPolicyEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.dataRetentionPolicyEnabled,selectFirstLoadApplicationId=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.firstLoadApplicationId,selectApplications=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.applications,selectAutoUpdatePackagesEnabled=e=>e.instanceAdminCenterCreateOrg.createOrgSettingsStep.autoUpdatePackagesEnabled,panelId$1="CREATE_ORGANIZATION_PANEL";function*viewOrgSaga(e){yield put(mountPanel({panelId:ADMIN_CENTER_PANEL_ID,microFrontend:{name:ADMIN_CENTER_PANEL_ID,config:{name:ADMIN_CENTER_PANEL_ID,organizationId:e.payload.orgId,organizationName:e.payload.orgName}},panelConfig:{show:!1,type:"APP_BAR_PANEL_TEMPLATE",parentPanelId:PARENT_PANEL_ID,size:"xlarge",marginTop:55,marginStart:80}}))}function*createOrgSaga(e){var t=yield select(preferredLanguageSelector),t=AIWareFormatMessage(t);let r=void 0,n=!1;try{var a,o=yield select(selectApiConfigs),{orgName:i,businessUnit:s,orgLogo:c}=yield select(selectBasicInfoStep),l=yield select(selectOlpEnabled),u=yield select(selectAutoApproveEnginesEnabled),p=yield select(selectDataRetentionPolicyDays),d=yield select(selectDataRetentionPolicyEnabled),g=yield select(selectAutoUpdatePackagesEnabled),$={name:i,businessUnit:s,metadata:{image:c,engineApprovalWhiteListed:u?"enabled":"disabled",features:{enableRBACFeature:l?"enabled":"disabled",retentionCleanup:d?"enabled":"disabled",retentionDays:d?p:0,defaultApplication:yield select(selectFirstLoadApplicationId),automaticPackageCreation:g?"enabled":"disabled",useEngineGrant:g?"enabled":"disabled",useAppGrant:g?"enabled":"disabled"}}},f=({id:r}=yield createOrganization(o,$),yield select(selectSelectedPackagesAll)),y=0<f.application.length||0<f.engine.length;if(r&&y&&(a=[...f.application,...f.engine].map(e=>e.id),n=yield updatePackageGrants(o,a,r)),!r||y&&!n)throw new Error;yield put(actions.saveCreateOrgSuccess(r)),yield put(actions$5.resetAndFetch()),yield put(actions$3.resetBasicInfo()),yield put(actions$2.resetPackagesStep()),yield put(actions$1.resetOrgSettingsStep()),yield put(actions.resetCreateOrgWizard()),yield put(unmountPanel(panelId$1)),yield put(showMessage({maxWidth:"500px",content:lodash.exports.isEqual("production","development")?"The Organization has been created successfully. You can now add users and modify additional settings from this Organization Admin Center Preview.":t({id:"os-iac.org-creation-success-message",defaultMessage:[{type:0,value:"The Organization has been created successfully. You can now add users and modify additional settings from this Organization Admin Center Preview."}]}),severity:MessageSeverity.Success,actions:[{reduxActionType:actions.viewOrg({orgId:r,orgName:i}),actionButtonText:"View Org"}]}))}catch(e){yield put(actions.saveCreateOrgFailed()),r?n||(yield put(showMessage({content:lodash.exports.isEqual("production","development")?"Organization creation failed. Please try again later":t({id:"os-iac.org-creation-failed-package-grants-message",defaultMessage:[{type:0,value:"Organization creation successful, but the package grants failed"}]}),severity:MessageSeverity.Error}))):yield put(showMessage({content:lodash.exports.isEqual("production","development")?"Organization creation failed. Please try again later":t({id:"os-iac.org-creation-no-id-message",defaultMessage:[{type:0,value:"Organization creation failed. Please try again later"}]}),severity:MessageSeverity.Error})),yield put(actions$3.resetBasicInfo()),yield put(actions$2.resetPackagesStep()),yield put(actions$1.resetOrgSettingsStep()),yield put(actions.resetCreateOrgWizard()),yield put(unmountPanel(panelId$1))}}function*viewOrgWatcher(){yield takeLatest$1(actions.viewOrg.type,viewOrgSaga)}function*createOrgWatcher(){yield takeLatest$1(actions.saveCreateOrgInit.type,createOrgSaga)}function*createOrgWizardRootSaga(){yield all([fetchDefaultPackagesWatcher(),fetchPackagesWatcher(),fetchApplicationsWatcher(),createOrgWatcher(),viewOrgWatcher()])}function getInstanceAdminCenterOrgsModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer,instanceAdminCenterCreateOrg:createOrgWizardRootReducer},sagas:[rootSaga,createOrgWizardRootSaga],initialActions:[]}}const selectActiveStep=e=>e.instanceAdminCenterCreateOrg.createOrgWizard.activeStep,selectSteps=e=>e.instanceAdminCenterCreateOrg.createOrgWizard.steps;var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,thisSymbolValue,symbolDescriptiveString,regexp,replace,stringSlice,STEP_ID,$=_export,DESCRIPTORS=descriptors,global$1=global$k,uncurryThis=functionUncurryThis,hasOwn=hasOwnProperty_1,isCallable=isCallable$k,isPrototypeOf=objectIsPrototypeOf,toString=toString$4,defineBuiltInAccessor=defineBuiltInAccessor$2,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$k.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;!DESCRIPTORS||!isCallable(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString(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(description detection)"===String(NativeSymbol("description detection")),thisSymbolValue=uncurryThis(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),defineBuiltInAccessor(SymbolPrototype,"description",{configurable:!0,get:function(){var e=thisSymbolValue(this);return hasOwn(EmptyStringDescriptionStore,e)?"":(e=symbolDescriptiveString(e),""===(e=NATIVE_SYMBOL?stringSlice(e,7,-1):replace(e,regexp,"$1"))?void 0:e)}}),$({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));const RowSetting=({isFirstItem:e=!1,title:t,description:r,textDirection:n="column",bottomBorder:a=!0,renderLeftComponent:o,renderRightComponent:i})=>jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",justifyContent:"space-between",alignItems:"center",sx:{borderBottom:a?"0.5px solid #dadfe8":"0",paddingBottom:"25px",paddingTop:e?"0":"25px",width:"100%"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({direction:n,sx:{width:"506px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h5",sx:{fontWeight:600,fontSize:"14px",marginBottom:"5px"}},{children:t})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"12px",lineHeight:"16px"}},{children:r})),o&&o()]})),i&&i()]})),panelId="CREATE_ORGANIZATION_PANEL",{header:PanelHeader,container:PanelContainer,content:PanelContent,stepper:PanelStepper}=panelComponents,stepLabels=(!function(e){e[e.BASIC_INFO=1]="BASIC_INFO",e[e.PACKAGES=2]="PACKAGES",e[e.ORG_SETTINGS=3]="ORG_SETTINGS"}(STEP_ID=STEP_ID||{}),[{stepNumber:STEP_ID.BASIC_INFO,stepLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.basic-info",defaultMessage:"Basic Info",description:"Basic Info description"})},{stepNumber:STEP_ID.PACKAGES,stepLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.packages",defaultMessage:"Packages",description:"Packages description"})},{stepNumber:STEP_ID.ORG_SETTINGS,stepLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"instance-admin-center.org-settings",defaultMessage:"Organization Settings",description:"Organization Settings description"})}]),BasicInfoStep=react.exports.lazy(()=>import("./js-core.esm106.js")),PacakgesStep=react.exports.lazy(()=>import("./js-core.esm108.js")),OrganizationSettingsStep=react.exports.lazy(()=>import("./js-core.esm109.js")),CreateOrgPanel=()=>{const e=useDispatch();var t=useSelector(selectActiveStep),r=useSelector(selectSteps),n=useSelector(selectIsFullscreenEnabled);return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getInstanceAdminCenterOrgsModule()]},{children:jsxRuntime.exports.jsxs(PanelContainer,Object.assign({testId:"instance-admin-create-org-wizard-container",panelId:panelId,isFullScreen:n},{children:[jsxRuntime.exports.jsx(PanelHeader,{title:"Create Organization",testId:"iaco-wizard-header",onPanelClose:function(){e(actions$3.resetBasicInfo()),e(actions$2.resetPackagesStep()),e(actions$1.resetOrgSettingsStep()),e(actions.setActiveStep(1)),e(hidePanel(panelId))}}),jsxRuntime.exports.jsx(PanelStepper,{enableTabs:!1,steps:r,stepLabels:stepLabels,activeStep:t,TabsProps:{scrollButtons:!1},onClickTab:e=>{},testId:"iaco-wizard-stepper"}),jsxRuntime.exports.jsx(PanelContent,Object.assign({isLoading:!1,isErrored:!1,style:{padding:"0 30px",height:"100vh"},testId:"instance-admin-create-org-wizard-content"},{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[t===STEP_ID.BASIC_INFO&&jsxRuntime.exports.jsx(BasicInfoStep,{}),t===STEP_ID.PACKAGES&&jsxRuntime.exports.jsx(PacakgesStep,{}),t===STEP_ID.ORG_SETTINGS&&jsxRuntime.exports.jsx(OrganizationSettingsStep,{})]}))}))]}))}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px",marginTop:"30px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),SHARED_TEXT={orgSettingsStep:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.title",defaultMessage:"Organization Settings",description:"Create Org Org Settings Step Title"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.description",defaultMessage:"Manage settings for all users of this Organization.",description:"Create Org Org Settings Step Description"}),backBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.back-btn",defaultMessage:"Back",description:"Create Org Org Settings Step Back Button"}),saveBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.save-btn",defaultMessage:"Create Organization",description:"Create Org Org Settings Step Save Button"}),olpTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.olp-title",defaultMessage:"Object Level Permissions",description:"Org Settings Step OLP Title"}),olpDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.olp-description",defaultMessage:"Enabling this feature will include OLP features in Admin Center, enable default permission sets and groups, and apply them to all current Folders and Objects in the account.",description:"Org Settings Step OLP Description"}),firstLoadApplicationSettingTitle:e=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.first-load-application-setting-title",defaultMessage:"First Load Application{name}",description:"First Load Application Setting Title",values:{name:e?": "+e:""}}),firstLoadApplicationSettingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.description",defaultMessage:"Select the first application that will be loaded when a user logs into aiWARE.",description:"First Load Application Setting Description"}),dataRetentionPolicySettingTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-title",defaultMessage:"Data Retention Policy",description:"Data Retention Policy Setting Title"}),dataRetentionPolicySettingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-description",defaultMessage:"Manage the default time that data is retained for this Organization.",description:"Data Retention Policy Setting Description"}),dataRetentionPolicySetting30Days:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-30-days",defaultMessage:"30 days",description:"Data Retention Policy Setting 30 Days"}),dataRetentionPolicySetting90Days:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-90-days",defaultMessage:"90 days",description:"Data Retention Policy Setting 90 Days"}),dataRetentionPolicySetting15Months:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.data-retention-policy-setting-15-months",defaultMessage:"15 months",description:"Data Retention Policy Setting 15 Months"}),autoApproveEnginesSettingTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.auto-approve-engines-setting-title",defaultMessage:"Auto Approve Engines",description:"Auto Approve Engines Setting Title"}),autoApproveEnginesSettingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.auto-approve-engines-setting-description",defaultMessage:"Any Engine built in aiWARE Developer will not require approval from an Organization Administrator and will be automatically changed to an approved status.",description:"Auto Approve Engines Setting Description"}),autoUpdatePackagesTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.autoUpdatePackages-title",defaultMessage:"Auto Update Packages",description:"Org Settings Step autoUpdatePackages Title"}),autoUpdatePackagesDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.autoUpdatePackages-description",defaultMessage:"Any update to packages will be automatically accepted.",description:"Org Settings Step autoUpdatePackages Description"})},orgSettingsStepModal:{firstLoadApplicationModalDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.first-load-application-modal-description",defaultMessage:"Select the first application that will be loaded when a user logs into aiWARE.",description:"First Load Application Modal Description"}),doneBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-orgs.create-org.org-settings-step.done-btn",defaultMessage:"Done",description:"Create Org Org Settings Step Done Button"})}};export{AllOrgsPanel as A,selectDataRetentionPolicyDays as B,CREATE_ORGANIZATION_PANEL_ID as C,selectApplications as D,actions$1 as E,PAGE_LIMIT as P,RowSetting as R,SHARED_TEXT as S,TOrganizationStatus as T,ADMIN_CENTER_PANEL_ID as a,CreateOrgPanel as b,PARENT_PANEL_ID as c,SLICE_NAME as d,actions$4 as e,selectBusinessUnit as f,getInstanceAdminCenterOrgsModule as g,selectLogoPreviewImage as h,initialState$4 as i,actions$3 as j,actions as k,actions$2 as l,selectResourcePagination as m,namespace$4 as n,selectPackagesStatus as o,panelId as p,selectPackages as q,rootReducer as r,selectOrgName as s,selectSelectedPackages as t,selectActiveStep as u,selectDefaultApplication as v,selectOlpEnabled as w,selectAutoApproveEnginesEnabled as x,selectDataRetentionPolicyEnabled as y,selectAutoUpdatePackagesEnabled as z};
Binary file