aiware-js 1.0.0-master.1179 → 1.0.0-master.1180

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.esm100.js CHANGED
@@ -1 +1 @@
1
- import{d as selectButtonColor,e as selectButtonTextColor,S as SHARED_TEXT,p as actions,r as actions$2,q as CUSTOM_LOGIN_PANEL_ID}from"./js-core.esm67.js";import{$ as useSelector,j as jsxRuntime,ao as Box,a2 as hidePanel}from"./js-core.esm.js";import{k as Stack,aG as CustomColorInput,aH as ButtonPreview}from"./js-core.esm6.js";import"./js-core.esm2.js";import{T as Typography,h as Button}from"./js-core.esm5.js";import{u as useDispatch}from"./js-core.esm7.js";import"./js-core.esm4.js";import"./js-core.esm3.js";const CustomLoginConfigurationStep=({isEditMode:t})=>{const o=useDispatch();var e=useSelector(selectButtonColor),s=useSelector(selectButtonTextColor);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"column",gap:"20px",sx:{height:"90%",position:"relative",overflow:"auto"}},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginTop:"25px",marginBottom:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.configurationStep.title()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.configurationStep.description()})),jsxRuntime.exports.jsx(CustomColorInput,{isButtonColorRequired:!1,onReset:()=>o(actions.resetButton()),buttonColor:e,buttonTextColor:s,onChangeButtonColor:t=>o(actions.setButtonColor(t)),onChangeTextColor:t=>o(actions.setButtonTextColor(t))})]})),jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(ButtonPreview,{buttonColor:e,buttonTextColor:s})})]})),jsxRuntime.exports.jsx(Footer,{onBack:()=>{o(actions$2.setActiveStep(1))},onSave:()=>{o(actions$2.updateLoginConfigStart()),o(hidePanel(CUSTOM_LOGIN_PANEL_ID))},isEditMode:t})]}))},Footer=({onBack:t,onSave:o,isEditMode:e})=>jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",sx:{padding:"60px 0 30px 30px",display:"flex",justifyContent:"flex-end",height:"10%",alignItems:"center"}},{children:[jsxRuntime.exports.jsx(Button,Object.assign({onClick:t,disabled:!1,variant:"text","data-testid":"admin-center-custom-login--back-btn",sx:{marginRight:"15px"}},{children:SHARED_TEXT.configurationStep.backBtn()})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:o,disabled:!1,variant:"contained","data-testid":"admin-center-custom-login--create-btn"},{children:e?SHARED_TEXT.configurationStep.saveBtn():SHARED_TEXT.configurationStep.createBtn()}))]}));export{CustomLoginConfigurationStep as default};
1
+ import{d as selectButtonColor,e as selectButtonTextColor,x as selectHideVeritoneBranding,S as SHARED_TEXT,p as actions,r as actions$2,q as CUSTOM_LOGIN_PANEL_ID}from"./js-core.esm67.js";import{$ as useSelector,j as jsxRuntime,ao as Box,a2 as hidePanel}from"./js-core.esm.js";import{k as Stack,aG as CustomColorInput,aH as ButtonPreview}from"./js-core.esm6.js";import{S as Switch}from"./js-core.esm2.js";import{T as Typography,h as Button}from"./js-core.esm5.js";import{u as useDispatch}from"./js-core.esm7.js";import"./js-core.esm4.js";import"./js-core.esm3.js";const CustomLoginConfigurationStep=({isEditMode:t})=>{const e=useDispatch();var o=useSelector(selectButtonColor),s=useSelector(selectButtonTextColor);const n=useSelector(selectHideVeritoneBranding);return jsxRuntime.exports.jsxs(Box,Object.assign({sx:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"space-between"}},{children:[jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"column",gap:"20px",sx:{height:"90%",position:"relative",overflow:"auto"}},{children:[jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginTop:"25px",marginBottom:"30px"}},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.configurationStep.title()})),jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.configurationStep.description()})),jsxRuntime.exports.jsx(CustomColorInput,{isButtonColorRequired:!1,onReset:()=>e(actions.resetButton()),buttonColor:o,buttonTextColor:s,onChangeButtonColor:t=>e(actions.setButtonColor(t)),onChangeTextColor:t=>e(actions.setButtonTextColor(t))})]})),jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsx(ButtonPreview,{buttonColor:o,buttonTextColor:s})}),jsxRuntime.exports.jsx(Box,{children:jsxRuntime.exports.jsxs(Stack,{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"h3",sx:{fontWeight:600,fontSize:"16px",marginBottom:"5px"}},{children:SHARED_TEXT.configurationStep.hideVeritoneBrandingTitle()})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption",sx:{fontWeight:400,fontSize:"14px"}},{children:SHARED_TEXT.configurationStep.hideVeritoneBrandingDescription()})),jsxRuntime.exports.jsx(Switch,{checked:n,onChange:()=>e(actions.setHideVeritoneBranding(!n))})]}))]})})]})),jsxRuntime.exports.jsx(Footer,{onBack:()=>{e(actions$2.setActiveStep(1))},onSave:()=>{e(actions$2.updateLoginConfigStart()),e(hidePanel(CUSTOM_LOGIN_PANEL_ID))},isEditMode:t})]}))},Footer=({onBack:t,onSave:e,isEditMode:o})=>jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",sx:{padding:"60px 0 30px 30px",display:"flex",justifyContent:"flex-end",height:"10%",alignItems:"center"}},{children:[jsxRuntime.exports.jsx(Button,Object.assign({onClick:t,disabled:!1,variant:"text","data-testid":"admin-center-custom-login--back-btn",sx:{marginRight:"15px"}},{children:SHARED_TEXT.configurationStep.backBtn()})),jsxRuntime.exports.jsx(Button,Object.assign({onClick:e,disabled:!1,variant:"contained","data-testid":"admin-center-custom-login--create-btn"},{children:o?SHARED_TEXT.configurationStep.saveBtn():SHARED_TEXT.configurationStep.createBtn()}))]}));export{CustomLoginConfigurationStep as default};
Binary file
package/js-core.esm19.js CHANGED
@@ -1 +1 @@
1
- import{aq as unmountPanel$1,a2 as hidePanel$1,dU as unmountAllPanel$1,dV as getUniqueID,ar as mountPanel$1,bI as AvailableWidgets,bH as updatePanelMicroFrontendProps,dW as mountWidget,dX as unmountWidget,dY as updateTokenRequest,dZ as HelpCenter,D as takeEvery$1,d_ as mountPanelForResponse$1,d$ as DataCenter,E as select}from"./js-core.esm.js";import{s as setData,b as logout,u as updateActivityStatus}from"./js-core.esm4.js";import{setCustomKnowledgeBaseUrl,setCustomDocsUrl,updateSelectedTab}from"./js-core.esm20.js";import"./js-core.esm5.js";import"./js-core.esm7.js";class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout())},1e3)):t.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),unmountAllPanel=e=>()=>{e.dispatch(unmountAllPanel$1(""))},mountPanel=s=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:a}=e;s.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:a}));const o=[...(null==(e=null==a?void 0:a.header)?void 0:e.actions)||[],...(null==(e=null==a?void 0:a.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);a={id:n,sagas:[function*(){yield takeEvery$1(o.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return s.addModule(a),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,bootstrapOptions:a}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:a.registry,registryLookup:a.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,commit:"4679b3e5ce"})};export{attachSdkToWindow,hidePanel,mountPanel,unmountAllPanel,unmountPanel};
1
+ import{aq as unmountPanel$1,a2 as hidePanel$1,dU as unmountAllPanel$1,dV as getUniqueID,ar as mountPanel$1,bI as AvailableWidgets,bH as updatePanelMicroFrontendProps,dW as mountWidget,dX as unmountWidget,dY as updateTokenRequest,dZ as HelpCenter,D as takeEvery$1,d_ as mountPanelForResponse$1,d$ as DataCenter,E as select}from"./js-core.esm.js";import{s as setData,b as logout,u as updateActivityStatus}from"./js-core.esm4.js";import{setCustomKnowledgeBaseUrl,setCustomDocsUrl,updateSelectedTab}from"./js-core.esm20.js";import"./js-core.esm5.js";import"./js-core.esm7.js";class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter,createAuthHelpers=t=>({updateToken(e){e?t.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{t.dispatch(logout())},1e3)):t.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&t.dispatch(updateActivityStatus())}}),helpCenter=()=>{var e=new HelpCenter({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}},dataCenter=()=>{var e=new DataCenter;return{openImporterPanel:e.openImporterPanel.bind(e)}},unmountPanel=t=>e=>(t.dispatch(unmountPanel$1(e)),!0),hidePanel=t=>e=>(t.dispatch(hidePanel$1(e)),!0),unmountAllPanel=e=>()=>{e.dispatch(unmountAllPanel$1(""))},mountPanel=s=>(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:a}=e;s.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:a}));const o=[...(null==(e=null==a?void 0:a.header)?void 0:e.actions)||[],...(null==(e=null==a?void 0:a.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);a={id:n,sagas:[function*(){yield takeEvery$1(o.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return s.addModule(a),n},mountPanelForResponse=t=>e=>mountPanelForResponse$1(e,t),attachSdkToWindow=e=>{var{init:e,store:t,aiwareEvents:n,bootstrapOptions:a}=e;!window||void 0!==window.aiware&&0!==Object.keys(window.aiware).length||(window.aiware={init:e,store:t,auth:createAuthHelpers(t),helpCenter:helpCenter(),dataCenter:dataCenter(),on:n.on,off:n.off,hidePanel:hidePanel(t),unmountPanel:unmountPanel(t),mountPanel:mountPanel(t),mountPanelForResponse:mountPanelForResponse(t),registry:a.registry,registryLookup:a.registryLookup,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,unmountWidget:unmountWidget,commit:"2f4b61b7f8"})};export{attachSdkToWindow,hidePanel,mountPanel,unmountAllPanel,unmountPanel};
Binary file
package/js-core.esm67.js CHANGED
@@ -1,4 +1,4 @@
1
- import{Y as createSlice,Z as combineReducers,j as jsxRuntime,bQ as AIWareCacheProvider,aJ as AIWareThemeProvider,$ as useSelector,r as react,B as all,bR as selectIsFullscreenEnabled,ao as Box,a2 as hidePanel,C as takeLatest$1,ar as mountPanel,E as select,a1 as selectApiConfigs,H as call$f,I as put,a6 as showMessage,a7 as MessageSeverity,V as gqlIntrospection,U as baseGraphQLApi}from"./js-core.esm.js";import{p as DynamicModuleLoader,A as AIWareIntlProvider,k as FormattedMessage}from"./js-core.esm5.js";import{f as Skeleton,ap as CustomLoginTableHeader,aq as CustomLoginPreviewModal,ar as EmptyState,as as ConfirmDialog,l as centerComponents,G as panelComponents,t as tableInfiniteScroll,at as CustomLoginTableRow,i as devErrorLogger}from"./js-core.esm6.js";import{s as selectAdminCenterOrgId}from"./js-core.esm2.js";import{u as useDispatch}from"./js-core.esm7.js";var match,version,set$1,get,store,STATE,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$h=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$d=function(e){try{return!!e()}catch(e){return!0}},fails$c=fails$d,descriptors=!fails$d(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$b=fails$d,functionBindNative=!fails$d(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$e=Function.prototype.call,functionCall=NATIVE_BIND$3?call$e.bind(call$e):function(){return call$e.apply(call$e,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$d=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$d,call$d),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis,toString$3=uncurryThis$f({}.toString),stringSlice$2=uncurryThis$f("".slice),classofRaw$2=function(e){return stringSlice$2(toString$3(e),8,-1)},uncurryThis$e=functionUncurryThis,fails$a=fails$d,classof$5=classofRaw$2,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$a(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$5(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$c=TypeError,requireObjectCoercible$2=function(e){if(isNullOrUndefined$3(e))throw $TypeError$c("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$1(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$l=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$k=isCallable$l,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$8=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$k(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$k(e)},global$g=global$h,isCallable$j=isCallable$l,aFunction=function(e){return isCallable$j(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$g[e]):global$g[e]&&global$g[e][t]},uncurryThis$d=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$f=global$h,userAgent$3=engineUserAgent,process$4=global$f.process,Deno$1=global$f.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$9=fails$d,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$9(function(){var e=Symbol();return!String(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$i=isCallable$l,isPrototypeOf$3=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$i(t)&&isPrototypeOf$3(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$h=isCallable$l,tryToString$3=tryToString$4,$TypeError$b=TypeError,aCallable$8=function(e){if(isCallable$h(e))return e;throw $TypeError$b(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$c=functionCall,isCallable$g=isCallable$l,isObject$7=isObject$8,$TypeError$a=TypeError,ordinaryToPrimitive$1=function(e,t){var o,n;if("string"===t&&isCallable$g(o=e.toString)&&!isObject$7(n=call$c(o,e)))return n;if(isCallable$g(o=e.valueOf)&&!isObject$7(n=call$c(o,e)))return n;if("string"!==t&&isCallable$g(o=e.toString)&&!isObject$7(n=call$c(o,e)))return n;throw $TypeError$a("Can't convert object to primitive value")},shared$3={exports:{}},global$e=global$h,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,o){try{defineProperty$6(global$e,t,{value:o,configurable:!0,writable:!0})}catch(e){global$e[t]=o}return o},global$d=global$h,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$h[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$2),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible(e))},uncurryThis$c=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$b=functionUncurryThis,id=0,postfix=Math.random(),toString$2=uncurryThis$b(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id+postfix,36)},global$c=global$h,shared$2=shared$3.exports,hasOwn$a=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$c.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$e=function(e){return hasOwn$a(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$a(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$b=functionCall,isObject$6=isObject$8,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$d=wellKnownSymbol$e,$TypeError$9=TypeError,TO_PRIMITIVE=wellKnownSymbol$e("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$6(e)||isSymbol$1(e))return e;var o=getMethod$2(e,TO_PRIMITIVE);if(o){if(o=call$b(o,e,t=void 0===t?"default":t),!isObject$6(o)||isSymbol$1(o))return o;throw $TypeError$9("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$b=global$h,isObject$5=isObject$8,document$3=global$h.document,EXISTS$1=isObject$5(document$3)&&isObject$5(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$b=descriptors,fails$8=fails$d,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$d(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$a=descriptors,call$a=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$a?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$9(e,t))return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$9=descriptors,fails$7=fails$d,v8PrototypeDefineBug=descriptors&&fails$d(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$4=isObject$8,$String$3=String,$TypeError$8=TypeError,anObject$a=function(e){if(isObject$4(e))return e;throw $TypeError$8($String$3(e)+" is not an object")},DESCRIPTORS$8=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$9=anObject$a,toPropertyKey=toPropertyKey$2,$TypeError$7=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$7=(objectDefineProperty.f=DESCRIPTORS$8?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,o){var n;return anObject$9(e),t=toPropertyKey(t),anObject$9(o),"function"==typeof e&&"prototype"===t&&"value"in o&&WRITABLE in o&&!o[WRITABLE]&&(n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=o.value,o={configurable:(CONFIGURABLE$1 in o?o:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in o?o:n)[ENUMERABLE],writable:!1}),$defineProperty(e,t,o)}:$defineProperty:function(e,t,o){if(anObject$9(e),t=toPropertyKey(t),anObject$9(o),IE8_DOM_DEFINE)try{return $defineProperty(e,t,o)}catch(e){}if("get"in o||"set"in o)throw $TypeError$7("Accessors not supported");return"value"in o&&(e[t]=o.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$7?function(e,t,o){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,o))}:function(e,t,o){return e[t]=o,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$6=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$6&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$6||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$a=functionUncurryThis,isCallable$f=isCallable$l,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$f(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$a=global$h,isCallable$e=isCallable$l,WeakMap$1=global$h.WeakMap,weakMapBasicDetection=isCallable$e(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$9=global$h,isObject$3=isObject$8,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$7=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$9.TypeError,WeakMap=global$9.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$3(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store=shared.state||(shared.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$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 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$9=functionUncurryThis,fails$6=fails$d,isCallable$d=isCallable$l,hasOwn$6=hasOwnProperty_1,DESCRIPTORS$5=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$9("".slice),replace$1=uncurryThis$9("".replace),join=uncurryThis$9([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$5&&!fails$6(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,o){"Symbol("===stringSlice$1($String$2(t),0,7)&&(t="["+replace$1($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!hasOwn$6(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$5?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&o&&hasOwn$6(o,"arity")&&e.length!==o.arity&&defineProperty$5(e,"length",{value:o.arity});try{o&&hasOwn$6(o,"constructor")&&o.constructor?DESCRIPTORS$5&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}o=enforceInternalState(e);return hasOwn$6(o,"source")||(o.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$c=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$d(this)&&getInternalState$1(this).source||inspectSource$2(this)},"toString"),isCallable$l),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$5=function(e,t,o,n){var r=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$c(o)&&makeBuiltIn$1(o,i,n),n.global)r?e[t]=o:defineGlobalProperty$1(t,o);else{try{n.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=o:definePropertyModule$2.f(e,t,{value:o,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){return 0<e?min(toIntegerOrInfinity(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=function(s){return function(e,t,o){var n,r=toIndexedObject$3(e),i=lengthOfArrayLike$1(r),a=toAbsoluteIndex(o,i);if(s&&t!=t){for(;a<i;)if((n=r[a++])!=n)return!0}else for(;a<i;a++)if((s||a in r)&&r[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$8=functionUncurryThis,hasOwn$5=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$8([].push),objectKeysInternal=function(e,t){var o,n=toIndexedObject$2(e),r=0,i=[];for(o in n)!hasOwn$5(hiddenKeys$2,o)&&hasOwn$5(n,o)&&push(i,o);for(;t.length>r;)!hasOwn$5(n,o=t[r++])||~indexOf(i,o)||push(i,o);return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$7=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$a,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$8(e)),o=getOwnPropertySymbolsModule$1.f;return o?concat$1(t,o(e)):t},hasOwn$4=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,o){for(var n=ownKeys(t),r=definePropertyModule$1.f,i=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var s=n[a];hasOwn$4(e,s)||o&&hasOwn$4(o,s)||r(e,s,i(t,s))}},fails$5=fails$d,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$b(t)?fails$5(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$8=global$h,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 o,n,r,i=e.target,a=e.global,s=e.stat,l=a?global$8:s?global$8[i]||defineGlobalProperty(i,{}):(global$8[i]||{}).prototype;if(l)for(o in t){if(n=t[o],r=e.dontCallGetSet?(r=getOwnPropertyDescriptor$1(l,o))&&r.value:l[o],!isForced$1(a?o:i+(s?".":"#")+o,e.forced)&&void 0!==r){if(typeof n==typeof r)continue;copyConstructorProperties$1(n,r)}(e.sham||r&&r.sham)&&createNonEnumerableProperty$2(n,"sham",!0),defineBuiltIn$4(l,o,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$4=descriptors,uncurryThis$6=functionUncurryThis,call$9=functionCall,fails$4=fails$d,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$6([].concat),objectAssign=!$assign||fails$4(function(){var e,t,o,n;return!(!DESCRIPTORS$4||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[o=Symbol()]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[o])||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var o=toObject$1(e),n=arguments.length,r=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;r<n;)for(var s,l=IndexedObject(arguments[r++]),c=i?concat(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$4&&!call$9(a,l,s)||(o[s]=l[s]);return o}:$assign,$$8=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="adminCenterCustomLogin",TEST_ID="os-admin-center.custom-login",TEST_ID_PANEL="os-admin-center.custom-login-panel",CUSTOM_LOGIN_PANEL_ID="ADMIN_CENTER_CUSTOM_LOGIN_PANEL",namespace$2="customLoginWizard",initialState$2={loginConfig:{loadingStatus:"idle",config:null},updateLoginConfig:{loadingStatus:"idle",deleteStatus:"idle"},activeStep:1,steps:[{stepNumber:1,completed:!1,disabled:!1,error:!1},{stepNumber:2,completed:!1,disabled:!1,error:!1}],orgId:void 0,querySlug:void 0,instanceLoginConfig:void 0},customLoginWizardSlice=createSlice({name:namespace$2,initialState:initialState$2,reducers:{fetchLoginConfigStart:(e,t)=>{e.loginConfig.loadingStatus="pending",e.orgId=null!==t.payload.orgId?t.payload.orgId:void 0,e.querySlug=null!==t.payload.querySlug?t.payload.querySlug:void 0,e.instanceLoginConfig=null!==t.payload.instanceLoginConfig?t.payload.instanceLoginConfig:void 0},fetchLoginConfigSuccess:(e,t)=>{e.loginConfig.loadingStatus="success",e.loginConfig.config=t.payload},fetchLoginConfigFailure:e=>{e.loginConfig.loadingStatus="failure"},updateLoginConfigStart:e=>{e.updateLoginConfig.loadingStatus="pending"},updateLoginConfigSuccess:e=>{e.updateLoginConfig.loadingStatus="success"},updateLoginConfigFailure:e=>{e.updateLoginConfig.loadingStatus="failure"},deleteLoginConfigStart:e=>{e.updateLoginConfig.deleteStatus="pending"},deleteLoginConfigSuccess:e=>{e.updateLoginConfig.deleteStatus="success",e.loginConfig.config=null},deleteLoginConfigFailure:e=>{e.updateLoginConfig.deleteStatus="failure"},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},setQuerySlug:(e,t)=>{e.querySlug=t.payload}}}),actions$2=customLoginWizardSlice.actions;var customLoginWizard_slice=customLoginWizardSlice.reducer;const namespace$1="basicInfoStep",initialState$1={customLoginId:null,loginName:"",urlSlug:"",logoUrl:"",isPreviewModalOpen:!1},customLoginBasicInfoStepSlice=createSlice({name:namespace$1,initialState:initialState$1,reducers:{setCustomLoginId:(e,t)=>{e.customLoginId=t.payload},setLoginName:(e,t)=>{e.loginName=t.payload},setUrlSlug:(e,t)=>{e.urlSlug=t.payload},setLogoUrl:(e,t)=>{e.logoUrl=t.payload},setIsPreviewModalOpen:(e,t)=>{e.isPreviewModalOpen=t.payload},resetBasicInfo:e=>{e.loginName=initialState$1.loginName,e.urlSlug=initialState$1.urlSlug,e.logoUrl=initialState$1.logoUrl}}}),actions$1=customLoginBasicInfoStepSlice.actions;var customLoginBasicInfoStep_slice=customLoginBasicInfoStepSlice.reducer;const namespace="configurationStep",initialState={buttonColor:"#1E88E5",buttonTextColor:"#FFFFFF"},customLoginConfigurationStepSlice=createSlice({name:namespace,initialState:initialState,reducers:{setButtonColor:(e,t)=>{e.buttonColor=t.payload},setButtonTextColor:(e,t)=>{e.buttonTextColor=t.payload},resetButton:e=>{e.buttonColor=initialState.buttonColor,e.buttonTextColor=initialState.buttonTextColor}}}),actions=customLoginConfigurationStepSlice.actions;var customLoginConfigurationStep_slice=customLoginConfigurationStepSlice.reducer;const rootReducer=combineReducers({[namespace$2]:customLoginWizard_slice,[namespace$1]:customLoginBasicInfoStep_slice,[namespace]:customLoginConfigurationStep_slice}),selectLoginName=e=>e.adminCenterCustomLogin.basicInfoStep.loginName,selectUrlSlug=e=>e.adminCenterCustomLogin.basicInfoStep.urlSlug,selectLogoUrl=e=>e.adminCenterCustomLogin.basicInfoStep.logoUrl,selectBasicInfoStep=e=>e.adminCenterCustomLogin.basicInfoStep,selectIsPreviewModalOpen=e=>e.adminCenterCustomLogin.basicInfoStep.isPreviewModalOpen,selectButtonColor=e=>e.adminCenterCustomLogin.configurationStep.buttonColor,selectButtonTextColor=e=>e.adminCenterCustomLogin.configurationStep.buttonTextColor,selectConfigurationStep=e=>e.adminCenterCustomLogin.configurationStep,selectActiveStep=e=>e.adminCenterCustomLogin.customLoginWizard.activeStep,selectSteps=e=>e.adminCenterCustomLogin.customLoginWizard.steps,selectCustomLoginConfigStatus=e=>e.adminCenterCustomLogin.customLoginWizard.loginConfig.loadingStatus,selectCustomLoginConfig=e=>e.adminCenterCustomLogin.customLoginWizard.loginConfig.config,selectLoginOrgID=e=>e.adminCenterCustomLogin.customLoginWizard.orgId,selectQuerySlug=e=>e.adminCenterCustomLogin.customLoginWizard.querySlug;function __awaiter(e,a,s,l){return new(s=s||Promise)(function(o,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function r(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?o(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,r)}i((l=l.apply(e,a||[])).next())})}const fetchCustomLoginConfig=(l,c,u)=>__awaiter(void 0,void 0,void 0,function*(){var t,o,n="fetchCustomLoginConfig",r=`query ${n}($organizationId: ID!) {
1
+ import{Y as createSlice,Z as combineReducers,j as jsxRuntime,bQ as AIWareCacheProvider,aJ as AIWareThemeProvider,$ as useSelector,r as react,B as all,bR as selectIsFullscreenEnabled,ao as Box,a2 as hidePanel,C as takeLatest$1,ar as mountPanel,E as select,a1 as selectApiConfigs,H as call$f,I as put,a6 as showMessage,a7 as MessageSeverity,V as gqlIntrospection,U as baseGraphQLApi}from"./js-core.esm.js";import{p as DynamicModuleLoader,A as AIWareIntlProvider,k as FormattedMessage}from"./js-core.esm5.js";import{f as Skeleton,ap as CustomLoginTableHeader,aq as CustomLoginPreviewModal,ar as EmptyState,as as ConfirmDialog,l as centerComponents,G as panelComponents,t as tableInfiniteScroll,at as CustomLoginTableRow,i as devErrorLogger}from"./js-core.esm6.js";import{s as selectAdminCenterOrgId}from"./js-core.esm2.js";import{u as useDispatch}from"./js-core.esm7.js";var match,version,set$1,get,store,STATE,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},check=function(e){return e&&e.Math==Math&&e},global$h=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof commonjsGlobal&&commonjsGlobal)||function(){return this}()||Function("return this")(),objectGetOwnPropertyDescriptor={},fails$d=function(e){try{return!!e()}catch(e){return!0}},fails$c=fails$d,descriptors=!fails$d(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$b=fails$d,functionBindNative=!fails$d(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$3=functionBindNative,call$e=Function.prototype.call,functionCall=NATIVE_BIND$3?call$e.bind(call$e):function(){return call$e.apply(call$e,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$d=FunctionPrototype$2.call,uncurryThisWithBind=NATIVE_BIND$2&&FunctionPrototype$2.bind.bind(call$d,call$d),functionUncurryThis=NATIVE_BIND$2?uncurryThisWithBind:function(e){return function(){return call$d.apply(e,arguments)}},uncurryThis$f=functionUncurryThis,toString$3=uncurryThis$f({}.toString),stringSlice$2=uncurryThis$f("".slice),classofRaw$2=function(e){return stringSlice$2(toString$3(e),8,-1)},uncurryThis$e=functionUncurryThis,fails$a=fails$d,classof$5=classofRaw$2,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$a(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$5(e)?split(e,""):$Object$4(e)}:$Object$4,isNullOrUndefined$4=function(e){return null==e},isNullOrUndefined$3=isNullOrUndefined$4,$TypeError$c=TypeError,requireObjectCoercible$2=function(e){if(isNullOrUndefined$3(e))throw $TypeError$c("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$1=requireObjectCoercible$2,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$1(e))},documentAll$2="object"==typeof document&&document.all,IS_HTMLDDA=void 0===documentAll$2&&void 0!==documentAll$2,documentAll_1={all:documentAll$2,IS_HTMLDDA:IS_HTMLDDA},$documentAll$1=documentAll_1,documentAll$1=$documentAll$1.all,isCallable$l=$documentAll$1.IS_HTMLDDA?function(e){return"function"==typeof e||e===documentAll$1}:function(e){return"function"==typeof e},isCallable$k=isCallable$l,$documentAll=documentAll_1,documentAll=$documentAll.all,isObject$8=$documentAll.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:isCallable$k(e)||e===documentAll}:function(e){return"object"==typeof e?null!==e:isCallable$k(e)},global$g=global$h,isCallable$j=isCallable$l,aFunction=function(e){return isCallable$j(e)?e:void 0},getBuiltIn$7=function(e,t){return arguments.length<2?aFunction(global$g[e]):global$g[e]&&global$g[e][t]},uncurryThis$d=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),engineUserAgent="undefined"!=typeof navigator&&String(navigator.userAgent)||"",global$f=global$h,userAgent$3=engineUserAgent,process$4=global$f.process,Deno$1=global$f.Deno,versions=process$4&&process$4.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent$3&&(!(match=userAgent$3.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent$3.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION$1=engineV8Version,fails$9=fails$d,symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!fails$9(function(){var e=Symbol();return!String(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$i=isCallable$l,isPrototypeOf$3=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$6("Symbol");return isCallable$i(t)&&isPrototypeOf$3(t.prototype,$Object$3(e))},$String$4=String,tryToString$4=function(e){try{return $String$4(e)}catch(e){return"Object"}},isCallable$h=isCallable$l,tryToString$3=tryToString$4,$TypeError$b=TypeError,aCallable$8=function(e){if(isCallable$h(e))return e;throw $TypeError$b(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$c=functionCall,isCallable$g=isCallable$l,isObject$7=isObject$8,$TypeError$a=TypeError,ordinaryToPrimitive$1=function(e,t){var o,n;if("string"===t&&isCallable$g(o=e.toString)&&!isObject$7(n=call$c(o,e)))return n;if(isCallable$g(o=e.valueOf)&&!isObject$7(n=call$c(o,e)))return n;if("string"!==t&&isCallable$g(o=e.toString)&&!isObject$7(n=call$c(o,e)))return n;throw $TypeError$a("Can't convert object to primitive value")},shared$3={exports:{}},global$e=global$h,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,o){try{defineProperty$6(global$e,t,{value:o,configurable:!0,writable:!0})}catch(e){global$e[t]=o}return o},global$d=global$h,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$h[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.29.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$2),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible(e))},uncurryThis$c=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$b=functionUncurryThis,id=0,postfix=Math.random(),toString$2=uncurryThis$b(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$2(++id+postfix,36)},global$c=global$h,shared$2=shared$3.exports,hasOwn$a=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=symbolConstructorDetection,USE_SYMBOL_AS_UID=useSymbolAsUid,Symbol$1=global$c.Symbol,WellKnownSymbolsStore=shared$2("wks"),createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1.for||Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$e=function(e){return hasOwn$a(WellKnownSymbolsStore,e)||(WellKnownSymbolsStore[e]=NATIVE_SYMBOL$1&&hasOwn$a(Symbol$1,e)?Symbol$1[e]:createWellKnownSymbol("Symbol."+e)),WellKnownSymbolsStore[e]},call$b=functionCall,isObject$6=isObject$8,isSymbol$1=isSymbol$2,getMethod$2=getMethod$3,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$d=wellKnownSymbol$e,$TypeError$9=TypeError,TO_PRIMITIVE=wellKnownSymbol$e("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$6(e)||isSymbol$1(e))return e;var o=getMethod$2(e,TO_PRIMITIVE);if(o){if(o=call$b(o,e,t=void 0===t?"default":t),!isObject$6(o)||isSymbol$1(o))return o;throw $TypeError$9("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$b=global$h,isObject$5=isObject$8,document$3=global$h.document,EXISTS$1=isObject$5(document$3)&&isObject$5(document$3.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$3.createElement(e):{}},DESCRIPTORS$b=descriptors,fails$8=fails$d,createElement$1=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$d(function(){return 7!=Object.defineProperty(createElement$1("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$a=descriptors,call$a=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$a?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$9(e,t))return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$9=descriptors,fails$7=fails$d,v8PrototypeDefineBug=descriptors&&fails$d(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$4=isObject$8,$String$3=String,$TypeError$8=TypeError,anObject$a=function(e){if(isObject$4(e))return e;throw $TypeError$8($String$3(e)+" is not an object")},DESCRIPTORS$8=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$9=anObject$a,toPropertyKey=toPropertyKey$2,$TypeError$7=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$7=(objectDefineProperty.f=DESCRIPTORS$8?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,o){var n;return anObject$9(e),t=toPropertyKey(t),anObject$9(o),"function"==typeof e&&"prototype"===t&&"value"in o&&WRITABLE in o&&!o[WRITABLE]&&(n=$getOwnPropertyDescriptor(e,t))&&n[WRITABLE]&&(e[t]=o.value,o={configurable:(CONFIGURABLE$1 in o?o:n)[CONFIGURABLE$1],enumerable:(ENUMERABLE in o?o:n)[ENUMERABLE],writable:!1}),$defineProperty(e,t,o)}:$defineProperty:function(e,t,o){if(anObject$9(e),t=toPropertyKey(t),anObject$9(o),IE8_DOM_DEFINE)try{return $defineProperty(e,t,o)}catch(e){}if("get"in o||"set"in o)throw $TypeError$7("Accessors not supported");return"value"in o&&(e[t]=o.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$7?function(e,t,o){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,o))}:function(e,t,o){return e[t]=o,e},makeBuiltIn$3={exports:{}},DESCRIPTORS$6=descriptors,hasOwn$8=hasOwnProperty_1,FunctionPrototype$1=Function.prototype,getDescriptor=DESCRIPTORS$6&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$8(FunctionPrototype$1,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$6||getDescriptor(FunctionPrototype$1,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$a=functionUncurryThis,isCallable$f=isCallable$l,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$3=(isCallable$f(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$a=global$h,isCallable$e=isCallable$l,WeakMap$1=global$h.WeakMap,weakMapBasicDetection=isCallable$e(WeakMap$1)&&/native code/.test(String(WeakMap$1)),shared$1=shared$3.exports,uid=uid$2,keys=shared$1("keys"),sharedKey$3=function(e){return keys[e]||(keys[e]=uid(e))},hiddenKeys$4={},NATIVE_WEAK_MAP=weakMapBasicDetection,global$9=global$h,isObject$3=isObject$8,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$7=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$2=global$9.TypeError,WeakMap=global$9.WeakMap,enforce=function(e){return has(e)?get(e):set$1(e,{})},getterFor=function(t){return function(e){if(isObject$3(e)&&(e=get(e)).type===t)return e;throw TypeError$2("Incompatible receiver, "+t+" required")}},has=NATIVE_WEAK_MAP||shared.state?((store=shared.state||(shared.state=new WeakMap)).get=store.get,store.has=store.has,store.set=store.set,set$1=function(e,t){if(store.has(e))throw TypeError$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 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$9=functionUncurryThis,fails$6=fails$d,isCallable$d=isCallable$l,hasOwn$6=hasOwnProperty_1,DESCRIPTORS$5=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$9("".slice),replace$1=uncurryThis$9("".replace),join=uncurryThis$9([].join),CONFIGURABLE_LENGTH=DESCRIPTORS$5&&!fails$6(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$2=makeBuiltIn$3.exports=function(e,t,o){"Symbol("===stringSlice$1($String$2(t),0,7)&&(t="["+replace$1($String$2(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(t="get "+t),o&&o.setter&&(t="set "+t),(!hasOwn$6(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$5?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&o&&hasOwn$6(o,"arity")&&e.length!==o.arity&&defineProperty$5(e,"length",{value:o.arity});try{o&&hasOwn$6(o,"constructor")&&o.constructor?DESCRIPTORS$5&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}o=enforceInternalState(e);return hasOwn$6(o,"source")||(o.source=join(TEMPLATE,"string"==typeof t?t:"")),e},isCallable$c=(Function.prototype.toString=makeBuiltIn$2(function(){return isCallable$d(this)&&getInternalState$1(this).source||inspectSource$2(this)},"toString"),isCallable$l),definePropertyModule$2=objectDefineProperty,makeBuiltIn$1=makeBuiltIn$3.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$5=function(e,t,o,n){var r=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(isCallable$c(o)&&makeBuiltIn$1(o,i,n),n.global)r?e[t]=o:defineGlobalProperty$1(t,o);else{try{n.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=o:definePropertyModule$2.f(e,t,{value:o,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){return 0<e?min(toIntegerOrInfinity(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=function(s){return function(e,t,o){var n,r=toIndexedObject$3(e),i=lengthOfArrayLike$1(r),a=toAbsoluteIndex(o,i);if(s&&t!=t){for(;a<i;)if((n=r[a++])!=n)return!0}else for(;a<i;a++)if((s||a in r)&&r[a]===t)return s||a||0;return!s&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$8=functionUncurryThis,hasOwn$5=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$8([].push),objectKeysInternal=function(e,t){var o,n=toIndexedObject$2(e),r=0,i=[];for(o in n)!hasOwn$5(hiddenKeys$2,o)&&hasOwn$5(n,o)&&push(i,o);for(;t.length>r;)!hasOwn$5(n,o=t[r++])||~indexOf(i,o)||push(i,o);return i},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$5=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$7),uncurryThis$7=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$8=anObject$a,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$5("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$8(e)),o=getOwnPropertySymbolsModule$1.f;return o?concat$1(t,o(e)):t},hasOwn$4=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,o){for(var n=ownKeys(t),r=definePropertyModule$1.f,i=getOwnPropertyDescriptorModule.f,a=0;a<n.length;a++){var s=n[a];hasOwn$4(e,s)||o&&hasOwn$4(o,s)||r(e,s,i(t,s))}},fails$5=fails$d,isCallable$b=isCallable$l,replacement=/#|\.prototype\./,isForced$2=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$b(t)?fails$5(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$8=global$h,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 o,n,r,i=e.target,a=e.global,s=e.stat,l=a?global$8:s?global$8[i]||defineGlobalProperty(i,{}):(global$8[i]||{}).prototype;if(l)for(o in t){if(n=t[o],r=e.dontCallGetSet?(r=getOwnPropertyDescriptor$1(l,o))&&r.value:l[o],!isForced$1(a?o:i+(s?".":"#")+o,e.forced)&&void 0!==r){if(typeof n==typeof r)continue;copyConstructorProperties$1(n,r)}(e.sham||r&&r.sham)&&createNonEnumerableProperty$2(n,"sham",!0),defineBuiltIn$4(l,o,n,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$4=descriptors,uncurryThis$6=functionUncurryThis,call$9=functionCall,fails$4=fails$d,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$6([].concat),objectAssign=!$assign||fails$4(function(){var e,t,o,n;return!(!DESCRIPTORS$4||1===$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},n="abcdefghijklmnopqrst",(e={})[o=Symbol()]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[o])||objectKeys$1($assign({},t)).join("")!=n})?function(e,t){for(var o=toObject$1(e),n=arguments.length,r=1,i=getOwnPropertySymbolsModule.f,a=propertyIsEnumerableModule.f;r<n;)for(var s,l=IndexedObject(arguments[r++]),c=i?concat(objectKeys$1(l),i(l)):objectKeys$1(l),u=c.length,d=0;d<u;)s=c[d++],DESCRIPTORS$4&&!call$9(a,l,s)||(o[s]=l[s]);return o}:$assign,$$8=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SLICE_NAME="adminCenterCustomLogin",TEST_ID="os-admin-center.custom-login",TEST_ID_PANEL="os-admin-center.custom-login-panel",CUSTOM_LOGIN_PANEL_ID="ADMIN_CENTER_CUSTOM_LOGIN_PANEL",namespace$2="customLoginWizard",initialState$2={loginConfig:{loadingStatus:"idle",config:null},updateLoginConfig:{loadingStatus:"idle",deleteStatus:"idle"},activeStep:1,steps:[{stepNumber:1,completed:!1,disabled:!1,error:!1},{stepNumber:2,completed:!1,disabled:!1,error:!1}],orgId:void 0,querySlug:void 0,instanceLoginConfig:void 0},customLoginWizardSlice=createSlice({name:namespace$2,initialState:initialState$2,reducers:{fetchLoginConfigStart:(e,t)=>{e.loginConfig.loadingStatus="pending",e.orgId=null!==t.payload.orgId?t.payload.orgId:void 0,e.querySlug=null!==t.payload.querySlug?t.payload.querySlug:void 0,e.instanceLoginConfig=null!==t.payload.instanceLoginConfig?t.payload.instanceLoginConfig:void 0},fetchLoginConfigSuccess:(e,t)=>{e.loginConfig.loadingStatus="success",e.loginConfig.config=t.payload},fetchLoginConfigFailure:e=>{e.loginConfig.loadingStatus="failure"},updateLoginConfigStart:e=>{e.updateLoginConfig.loadingStatus="pending"},updateLoginConfigSuccess:e=>{e.updateLoginConfig.loadingStatus="success"},updateLoginConfigFailure:e=>{e.updateLoginConfig.loadingStatus="failure"},deleteLoginConfigStart:e=>{e.updateLoginConfig.deleteStatus="pending"},deleteLoginConfigSuccess:e=>{e.updateLoginConfig.deleteStatus="success",e.loginConfig.config=null},deleteLoginConfigFailure:e=>{e.updateLoginConfig.deleteStatus="failure"},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},setQuerySlug:(e,t)=>{e.querySlug=t.payload}}}),actions$2=customLoginWizardSlice.actions;var customLoginWizard_slice=customLoginWizardSlice.reducer;const namespace$1="basicInfoStep",initialState$1={customLoginId:null,loginName:"",urlSlug:"",logoUrl:"",isPreviewModalOpen:!1},customLoginBasicInfoStepSlice=createSlice({name:namespace$1,initialState:initialState$1,reducers:{setCustomLoginId:(e,t)=>{e.customLoginId=t.payload},setLoginName:(e,t)=>{e.loginName=t.payload},setUrlSlug:(e,t)=>{e.urlSlug=t.payload},setLogoUrl:(e,t)=>{e.logoUrl=t.payload},setIsPreviewModalOpen:(e,t)=>{e.isPreviewModalOpen=t.payload},resetBasicInfo:e=>{e.loginName=initialState$1.loginName,e.urlSlug=initialState$1.urlSlug,e.logoUrl=initialState$1.logoUrl}}}),actions$1=customLoginBasicInfoStepSlice.actions;var customLoginBasicInfoStep_slice=customLoginBasicInfoStepSlice.reducer;const namespace="configurationStep",initialState={buttonColor:"#1E88E5",buttonTextColor:"#FFFFFF",hideVeritoneBranding:!1},customLoginConfigurationStepSlice=createSlice({name:namespace,initialState:initialState,reducers:{setButtonColor:(e,t)=>{e.buttonColor=t.payload},setButtonTextColor:(e,t)=>{e.buttonTextColor=t.payload},setHideVeritoneBranding:(e,t)=>{e.hideVeritoneBranding=t.payload},resetButton:e=>{e.buttonColor=initialState.buttonColor,e.buttonTextColor=initialState.buttonTextColor}}}),actions=customLoginConfigurationStepSlice.actions;var customLoginConfigurationStep_slice=customLoginConfigurationStepSlice.reducer;const rootReducer=combineReducers({[namespace$2]:customLoginWizard_slice,[namespace$1]:customLoginBasicInfoStep_slice,[namespace]:customLoginConfigurationStep_slice}),selectLoginName=e=>e.adminCenterCustomLogin.basicInfoStep.loginName,selectUrlSlug=e=>e.adminCenterCustomLogin.basicInfoStep.urlSlug,selectLogoUrl=e=>e.adminCenterCustomLogin.basicInfoStep.logoUrl,selectBasicInfoStep=e=>e.adminCenterCustomLogin.basicInfoStep,selectIsPreviewModalOpen=e=>e.adminCenterCustomLogin.basicInfoStep.isPreviewModalOpen,selectButtonColor=e=>e.adminCenterCustomLogin.configurationStep.buttonColor,selectButtonTextColor=e=>e.adminCenterCustomLogin.configurationStep.buttonTextColor,selectHideVeritoneBranding=e=>e.adminCenterCustomLogin.configurationStep.hideVeritoneBranding,selectConfigurationStep=e=>e.adminCenterCustomLogin.configurationStep,selectActiveStep=e=>e.adminCenterCustomLogin.customLoginWizard.activeStep,selectSteps=e=>e.adminCenterCustomLogin.customLoginWizard.steps,selectCustomLoginConfigStatus=e=>e.adminCenterCustomLogin.customLoginWizard.loginConfig.loadingStatus,selectCustomLoginConfig=e=>e.adminCenterCustomLogin.customLoginWizard.loginConfig.config,selectLoginOrgID=e=>e.adminCenterCustomLogin.customLoginWizard.orgId,selectQuerySlug=e=>e.adminCenterCustomLogin.customLoginWizard.querySlug;function __awaiter(e,a,s,l){return new(s=s||Promise)(function(o,t){function n(e){try{i(l.next(e))}catch(e){t(e)}}function r(e){try{i(l.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?o(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,r)}i((l=l.apply(e,a||[])).next())})}const fetchCustomLoginConfig=(l,c,u)=>__awaiter(void 0,void 0,void 0,function*(){var t,o,n="fetchCustomLoginConfig",r=`query ${n}($organizationId: ID!) {
2
2
  organization(id: $organizationId) {
3
3
  loginConfiguration {
4
4
  name
@@ -12,6 +12,7 @@ import{Y as createSlice,Z as combineReducers,j as jsxRuntime,bQ as AIWareCachePr
12
12
  buttonColor
13
13
  buttonTextColor
14
14
  enabled
15
+ hideVeritoneBranding
15
16
  }
16
17
  }
17
18
  }`;try{var i=yield gqlIntrospection.queryParser(c,u,r);let e=r;null!=i&&i.query&&(e=null==i?void 0:i.query);var{data:a,errors:s}=yield baseGraphQLApi({query:e,graphEndpoint:c,token:u,operationName:n,variables:{organizationId:l},extraHeaders:void 0});if(!s&&a&&(null===(null==(t=null==a?void 0:a.organization)?void 0:t.loginConfiguration)||null!=(o=null==a?void 0:a.organization)&&o.loginConfiguration))return a.organization.loginConfiguration;throw new Error("Fetching API Custom Login Configuration failed. Please try again later")}catch(e){return devErrorLogger(JSON.stringify(e)),e}}),updateCustomLoginConfig=(l,c,u,d)=>__awaiter(void 0,void 0,void 0,function*(){var t,o,n="updateOrganizationLoginConfig",r=`mutation ${n}($input: UpdateOrganization!) {
@@ -22,7 +23,7 @@ import{Y as createSlice,Z as combineReducers,j as jsxRuntime,bQ as AIWareCachePr
22
23
  }
23
24
  }
24
25
  }
25
- `;try{var i=yield gqlIntrospection.queryParser(c,u,r);let e=r;null!=i&&i.query&&(e=null==i?void 0:i.query);var{data:a,errors:s}=yield baseGraphQLApi({query:e,graphEndpoint:c,token:u,operationName:n,variables:{input:{id:l,loginConfiguration:{enabled:!0,name:d.name,slug:d.slug,buttonColor:d.buttonColor,buttonTextColor:d.buttonTextColor,logo:d.logo}}},extraHeaders:void 0});if(!s&&a&&(null===(null==(t=null==a?void 0:a.updateOrganization)?void 0:t.loginConfiguration)||null!=(o=null==a?void 0:a.updateOrganization)&&o.loginConfiguration))return a.updateOrganization.loginConfiguration;throw new Error("Updating API Custom Login Configuration failed. Please try again later")}catch(e){return devErrorLogger(JSON.stringify(e)),e}}),deleteCustomLoginConfig=(e,s,l)=>__awaiter(void 0,void 0,void 0,function*(){var t,o="deleteLoginConfig",n=`mutation ${o} {
26
+ `;try{var i=yield gqlIntrospection.queryParser(c,u,r);let e=r;null!=i&&i.query&&(e=null==i?void 0:i.query);var{data:a,errors:s}=yield baseGraphQLApi({query:e,graphEndpoint:c,token:u,operationName:n,variables:{input:{id:l,loginConfiguration:{enabled:!0,name:d.name,slug:d.slug,buttonColor:d.buttonColor,buttonTextColor:d.buttonTextColor,logo:d.logo,hideVeritoneBranding:d.hideVeritoneBranding}}},extraHeaders:void 0});if(!s&&a&&(null===(null==(t=null==a?void 0:a.updateOrganization)?void 0:t.loginConfiguration)||null!=(o=null==a?void 0:a.updateOrganization)&&o.loginConfiguration))return a.updateOrganization.loginConfiguration;throw new Error("Updating API Custom Login Configuration failed. Please try again later")}catch(e){return devErrorLogger(JSON.stringify(e)),e}}),deleteCustomLoginConfig=(e,s,l)=>__awaiter(void 0,void 0,void 0,function*(){var t,o="deleteLoginConfig",n=`mutation ${o} {
26
27
  deleteLoginConfiguration(organizationId: ${e}) {
27
28
  message
28
29
  }
@@ -33,10 +34,10 @@ import{Y as createSlice,Z as combineReducers,j as jsxRuntime,bQ as AIWareCachePr
33
34
  slug
34
35
  }
35
36
  }
36
- `;try{var n=yield gqlIntrospection.queryParser(a,s,o);let e=o;null!=n&&n.query&&(e=null==n?void 0:n.query);var{data:r,errors:i}=yield baseGraphQLApi({query:e,graphEndpoint:a,token:s,operationName:t,variables:{input:{enabled:!0,name:l.name,slug:l.slug,buttonColor:l.buttonColor,buttonTextColor:l.buttonTextColor,logo:l.logo}},extraHeaders:void 0});if(!i&&r&&(null===(null==r?void 0:r.createInstanceLoginConfiguration)||null!=r&&r.createInstanceLoginConfiguration))return r.createInstanceLoginConfiguration;throw new Error("Updating API Custom Login Configuration failed. Please try again later")}catch(e){return devErrorLogger(JSON.stringify(e)),e}}),updateInstanceLoginConfig=(a,s,l,c)=>__awaiter(void 0,void 0,void 0,function*(){var t="updateInstanceLoginConfig",o=`mutation ${t}($querySlug: String!, $input: SetLoginConfiguration!) {
37
+ `;try{var n=yield gqlIntrospection.queryParser(a,s,o);let e=o;null!=n&&n.query&&(e=null==n?void 0:n.query);var{data:r,errors:i}=yield baseGraphQLApi({query:e,graphEndpoint:a,token:s,operationName:t,variables:{input:{enabled:!0,name:l.name,slug:l.slug,buttonColor:l.buttonColor,buttonTextColor:l.buttonTextColor,logo:l.logo,hideVeritoneBranding:l.hideVeritoneBranding}},extraHeaders:void 0});if(!i&&r&&(null===(null==r?void 0:r.createInstanceLoginConfiguration)||null!=r&&r.createInstanceLoginConfiguration))return r.createInstanceLoginConfiguration;throw new Error("Updating API Custom Login Configuration failed. Please try again later")}catch(e){return devErrorLogger(JSON.stringify(e)),e}}),updateInstanceLoginConfig=(a,s,l,c)=>__awaiter(void 0,void 0,void 0,function*(){var t="updateInstanceLoginConfig",o=`mutation ${t}($querySlug: String!, $input: SetLoginConfiguration!) {
37
38
  updateInstanceLoginConfiguration(querySlug: $querySlug, input: $input) {
38
39
  name
39
40
  slug
40
41
  }
41
42
  }
42
- `;try{var n=yield gqlIntrospection.queryParser(s,l,o);let e=o;null!=n&&n.query&&(e=null==n?void 0:n.query);var{data:r,errors:i}=yield baseGraphQLApi({query:e,graphEndpoint:s,token:l,operationName:t,variables:{querySlug:a,input:{enabled:!0,name:c.name,slug:c.slug,buttonColor:c.buttonColor,buttonTextColor:c.buttonTextColor,logo:c.logo}},extraHeaders:void 0});if(!i&&r&&(null===(null==r?void 0:r.updateInstanceLoginConfiguration)||null!=r&&r.updateInstanceLoginConfiguration))return r.updateInstanceLoginConfiguration;throw new Error("Updating API Custom Login Configuration failed. Please try again later")}catch(e){return devErrorLogger(JSON.stringify(e)),e}});function*fetchCustomLoginConfigSaga(e){let t=null;try{var{graphQLEndpoint:o,token:n}=yield select(selectApiConfigs),r=e.payload.orgId;if(r){var i=yield call$f(fetchCustomLoginConfig,r,o,n);if((t=i)instanceof Error)throw new Error(t.message);yield put(actions$2.fetchLoginConfigSuccess(t))}}catch(e){yield put(actions$2.fetchLoginConfigFailure()),yield put(showMessage({content:"Failed to fetch Custom Login for Organization.",severity:MessageSeverity.Error}))}}function*updateCustomLoginConfigSaga(e){try{var{graphQLEndpoint:t,token:o}=yield select(selectApiConfigs),n=yield select(selectQuerySlug),r=yield select(selectLoginOrgID),i=yield select(selectBasicInfoStep),a=yield select(selectConfigurationStep),s={name:i.loginName||"",slug:i.urlSlug,logo:i.logoUrl||"",buttonColor:a.buttonColor,buttonTextColor:a.buttonTextColor,enabled:!0};let e;if(r&&(e=yield call$f(updateCustomLoginConfig,r,t,o,s)),r||n||(e=yield call$f(createInstanceLoginConfig,t,o,s)),(e=!r&&n?yield call$f(updateInstanceLoginConfig,n,t,o,s):e)instanceof Error)throw new Error(e.message);yield put(actions$2.updateLoginConfigSuccess()),r&&(yield put(showMessage({content:"Custom Login Updated!",severity:MessageSeverity.Success})),yield put(actions$2.fetchLoginConfigStart({orgId:r||void 0}))),r||n||(yield put(showMessage({content:"Instance Login Created!",severity:MessageSeverity.Success})),yield put({type:"ADMIN_CENTER_CUSTOM_LOGIN_PANEL_RESPONSE",payload:!0})),!r&&n&&(yield put(showMessage({content:"Instance Login Updated!",severity:MessageSeverity.Success})),yield put({type:"ADMIN_CENTER_CUSTOM_LOGIN_PANEL_RESPONSE",payload:!0}))}catch(e){i=yield select(selectLoginOrgID);console.error("error:",e),yield put(actions$2.updateLoginConfigFailure()),yield put(showMessage({content:"Failed to update Custom Login for Organization.",severity:MessageSeverity.Error})),i||(yield put({type:"ADMIN_CENTER_CUSTOM_LOGIN_PANEL_RESPONSE",payload:!1}))}}function*deleteCustomLoginConfigSaga(e){try{var{graphQLEndpoint:t,token:o}=yield select(selectApiConfigs),n=yield select(selectLoginOrgID),r=yield call$f(deleteCustomLoginConfig,n,t,o);if(r instanceof Error)throw new Error(r.message);yield put(actions$2.deleteLoginConfigSuccess()),yield put(showMessage({content:"Custom Login Deleted",severity:MessageSeverity.Success})),yield put(actions$2.fetchLoginConfigStart({orgId:n}))}catch(e){console.error("error:",e),yield put(actions$2.deleteLoginConfigFailure()),yield put(showMessage({content:"Failed to delete Custom Login for Organization.",severity:MessageSeverity.Error}))}}function*fetchCustomLoginConfigWatcher(){yield takeLatest$1(actions$2.fetchLoginConfigStart.type,fetchCustomLoginConfigSaga)}function*updateCustomLoginConfigWatcher(){yield takeLatest$1(actions$2.updateLoginConfigStart.type,updateCustomLoginConfigSaga)}function*deleteCustomLoginConfigWatcher(){yield takeLatest$1(actions$2.deleteLoginConfigStart.type,deleteCustomLoginConfigSaga)}function*rootSaga(){yield all([fetchCustomLoginConfigWatcher(),updateCustomLoginConfigWatcher(),deleteCustomLoginConfigWatcher()])}function getAdminCenterCustomLoginModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const SHARED_TEXT={title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.title",defaultMessage:"Custom Login",description:"Admin Center Custom Login Title"}),subTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.sub-title",defaultMessage:"Create a custom branded login for users of this Organization.",description:"Admin Center Custom Login Subtitle"}),panel:{createTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.panel.create-title",defaultMessage:"New Login",description:"Admin Center Custom Login Panel Create Title"}),editTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.panel.edit-title",defaultMessage:"Edit Login",description:"Admin Center Custom Login Panel Edit Title"})},emptyState:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.empty-state.title",defaultMessage:"No Custom Login Found",description:"Admin Center custom login table empty state"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.empty-state.description",defaultMessage:"You haven’t created a custom login for this Organization",description:"Admin Center custom login table empty state"}),createButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.empty-state.create-button",defaultMessage:"Create Custom Login",description:"Admin Center custom login table empty state"})},basicInfoStep:{description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.description",defaultMessage:"Create a custom branded login page for this organization, with a didicated domain for users to access their aiWARE account.",description:"Admin Center Custom Login Basic Info Step Description"}),customUrlSlugTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-title",defaultMessage:"Custom Login URL Slug",description:"Admin Center Custom Login Basic Info Step Custom URL Slug Title"}),customUrlSlugDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-description",defaultMessage:"Type in the slug name that will be added to your login url. (Field is required)",description:"Admin Center Custom Login Basic Info Step Custom URL Slug Description"}),brandLogoTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.brand-logo-title",defaultMessage:"Brand Logo",description:"Admin Center Custom Login Basic Info Step Brand Logo Title"}),brandLogoDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.brand-logo-description",defaultMessage:"This logo will be used on your login page. ",description:"Admin Center Custom Login Basic Info Step Brand Logo Description"}),loginNameInputPlaceholder:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.login-name-input-placeholder",defaultMessage:"Login Name",description:"Admin Center Custom Login Basic Info Step Login Name Input Placeholder"}),cancelBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.cancel-btn",defaultMessage:"Cancel",description:"Admin Center Custom Login Basic Info Step Cancel Button"}),saveBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.save-btn",defaultMessage:"Save",description:"Admin Center Custom Login Basic Info Step Save Button"}),nextBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.next-btn",defaultMessage:"Next",description:"Admin Center Custom Login Basic Info Step Next Button"}),customUrlSlugError:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-error",defaultMessage:"Please enter a valid URL slug",description:"Admin Center Custom Login Basic Info Step Custom URL Slug Error"}),showMeLink:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.show-me-link",defaultMessage:"Show me",description:"Admin Center Custom Login Basic Info Step Show Me Link"})},configurationStep:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.title",defaultMessage:"Customize Colors",description:"Admin Center Custom Login Configuration Step Title"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.description",defaultMessage:"Change the primary and secondary colors of the login and sign up pages to match your brand.",description:"Admin Center Custom Login Configuration Step Description"}),backBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.back-btn",defaultMessage:"Back",description:"Admin Center Custom Login Configuration Step Back Button"}),createBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.create-btn",defaultMessage:"Create",description:"Admin Center Custom Login Configuration Step Create Button"}),saveBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.save-btn",defaultMessage:"Save",description:"Admin Center Custom Login Configuration Step Save Button"})}},formattedMessages=e=>({loginNamePlaceholder:e.formatMessage({id:"os-admin-center-custom-login.basic-info-step.login-name-input-placeholder",defaultMessage:[{type:0,value:"Login Name"}]}),customLoginUrlSlugPlaceholder:e.formatMessage({id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-placeholder",defaultMessage:[{type:0,value:"login.veritone.com/"}]})});var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$3=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$7=anObject$a,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$3&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$7(e);for(var o,n=toIndexedObject$1(t),r=objectKeys(t),i=r.length,a=0;a<i;)definePropertyModule.f(e,o=r[a++],n[o]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$6=anObject$a,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 o;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$6(e),o=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,o[IE_PROTO$1]=e):o=NullProtoObject(),void 0===t?o:definePropertiesModule.f(o,t)}),wellKnownSymbol$c=wellKnownSymbol$e,create$1=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$c("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$1=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$3=fails$d,correctPrototypeGetter=!fails$d(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$3=hasOwnProperty_1,isCallable$a=isCallable$l,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$a(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$2=fails$d,isCallable$9=isCallable$l,isObject$2=isObject$8,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$5,wellKnownSymbol$b=wellKnownSymbol$e,ITERATOR$5=wellKnownSymbol$e("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$2(IteratorPrototype$2)||fails$2(function(){var e={};return IteratorPrototype$2[ITERATOR$5].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$5])||defineBuiltIn$3(IteratorPrototype$2,ITERATOR$5,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,wellKnownSymbol$a=wellKnownSymbol$e,TO_STRING_TAG$3=wellKnownSymbol$e("toStringTag"),setToStringTag$3=function(e,t,o){(e=e&&!o?e.prototype:e)&&!hasOwn$2(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,o,n){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!n,o)}),setToStringTag$2(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$5=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,o){try{return uncurryThis$5(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}},isCallable$8=isCallable$l,$String$1=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$8(e))return e;throw $TypeError$6("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$5=anObject$a,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var o,n=!1,e={};try{(o=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$5(e),aPossiblePrototype(t),n?o(e,t):e.__proto__=t,e}}():void 0),$$7=_export,call$8=functionCall,FunctionName=functionName,isCallable$7=isCallable$l,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$5,wellKnownSymbol$9=wellKnownSymbol$e,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$4=wellKnownSymbol$9("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,o,n,r,i,a){createIteratorConstructor(o,t,n);function s(e){if(e===r&&p)return p;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new o(this,e)}}return function(){return new o(this)}}var l,c,n=t+" Iterator",u=!1,d=e.prototype,$=d[ITERATOR$4]||d["@@iterator"]||r&&d[r],p=!BUGGY_SAFARI_ITERATORS&&$||s(r),g="Array"==t&&d.entries||$;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(g,IteratorPrototype):isCallable$7(g[ITERATOR$4])||defineBuiltIn$2(g,ITERATOR$4,returnThis)),setToStringTag$1(g,n,!0)),PROPER_FUNCTION_NAME&&r==VALUES&&$&&$.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,p=function(){return call$8($,this)})),r)if(l={values:s(VALUES),keys:i?p:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$2(d,c,l[c]);else $$7({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$4]!==p&&defineBuiltIn$2(d,ITERATOR$4,p,{name:r}),Iterators$3[t]=p,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators$2=iterators,InternalStateModule$1=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$2=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,o=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==o?n:"values"==o?t[n]:[n,t[n]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$2&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$7=global$h,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$8=wellKnownSymbol$e,ITERATOR$3=wellKnownSymbol$8("iterator"),TO_STRING_TAG$2=wellKnownSymbol$8("toStringTag"),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(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var o in ArrayIteratorMethods)if(t[o]!==ArrayIteratorMethods[o])try{createNonEnumerableProperty(t,o,ArrayIteratorMethods[o])}catch(e){t[o]=ArrayIteratorMethods[o]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$7[COLLECTION_NAME]&&global$7[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,thisSymbolValue,symbolDescriptiveString,regexp,replace,stringSlice,wellKnownSymbol$7=wellKnownSymbol$e,TO_STRING_TAG$1=wellKnownSymbol$e("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$6=isCallable$l,classofRaw$1=classofRaw$2,wellKnownSymbol$6=wellKnownSymbol$e,TO_STRING_TAG=wellKnownSymbol$e("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$4=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$3=classof$4,$String=String,toString$1=function(e){if("Symbol"===classof$3(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$2=function(e,t,o){return o.get&&makeBuiltIn(o.get,t,{getter:!0}),o.set&&makeBuiltIn(o.set,t,{setter:!0}),defineProperty.f(e,t,o)},$$6=_export,DESCRIPTORS$1=descriptors,global$6=global$h,uncurryThis$4=functionUncurryThis,hasOwn$1=hasOwnProperty_1,isCallable$5=isCallable$l,isPrototypeOf$2=objectIsPrototypeOf,toString=toString$1,defineBuiltInAccessor$1=defineBuiltInAccessor$2,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$h.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;!DESCRIPTORS$1||!isCallable$5(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString(arguments[0]),t=isPrototypeOf$2(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),thisSymbolValue=uncurryThis$4(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis$4(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace=uncurryThis$4("".replace),stringSlice=uncurryThis$4("".slice),defineBuiltInAccessor$1(SymbolPrototype,"description",{configurable:!0,get:function(){var e=thisSymbolValue(this);return hasOwn$1(EmptyStringDescriptionStore,e)?"":(e=symbolDescriptiveString(e),""===(e=NATIVE_SYMBOL?stringSlice(e,7,-1):replace(e,regexp,"$1"))?void 0:e)}}),$$6({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));const{TableInfiniteScroll}=tableInfiniteScroll["jsx"],itemHeight=60,LoginTable=()=>{const o=useDispatch(),n=useSelector(selectIsFullscreenEnabled),[e,r]=react.exports.useState(!1),[t,i]=react.exports.useState(null),[a,s]=react.exports.useState(!1),l=useSelector(selectAdminCenterOrgId);var c=useSelector(selectCustomLoginConfig),c=c?[c]:[],u=useSelector(selectCustomLoginConfigStatus),d="pending"===u,u="failure"===u;return jsxRuntime.exports.jsxs(Box,Object.assign({height:"500px"},{children:[jsxRuntime.exports.jsx(TableInfiniteScroll,{hasMore:!1,fetchMore:()=>{o(actions$2.fetchLoginConfigStart({orgId:l}))},fetchOnMount:0===c.length,offset:0,items:c,itemHeight:itemHeight,isLoading:d,error:u,TableHeaderComponent:jsxRuntime.exports.jsx(CustomLoginTableHeader,{}),TableRowComponent:({item:t,index:e})=>jsxRuntime.exports.jsx(CustomLoginTableRow,{index:e,onEdit:()=>{var e;e=t,o(mountPanel({panelId:CUSTOM_LOGIN_PANEL_ID,microFrontend:{name:CUSTOM_LOGIN_PANEL_ID,config:{customLoginId:e.name,isFullScreen:n,orgId:l}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:n?0:55,marginStart:n?0:80,size:"medium",parentPanelId:"ADMIN_CENTER",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))},onPreview:()=>{return e=t,i(e),void r(!0);var e},onDelete:()=>{return e=t,s(!0),void i(e);var e},buttonColor:t.buttonColor,buttonTextColor:t.buttonTextColor,logoUrl:t.logo,name:t.name,slug:t.slug,enabled:t.enabled,testId:TEST_ID}),TableEmptyStateComponent:jsxRuntime.exports.jsx(LoginEmptyState,{}),testId:TEST_ID}),jsxRuntime.exports.jsx(CustomLoginPreviewModal,Object.assign({},{onClose:()=>r(!1),isOpen:e,buttonTextColor:(null===t||void 0===t?void 0:t.buttonTextColor)||"",buttonColor:(null===t||void 0===t?void 0:t.buttonColor)||"",logoUrl:(null===t||void 0===t?void 0:t.logo)||""})),jsxRuntime.exports.jsx(DeleteModal,{isOpen:a,onClose:()=>s(!1),onConfirmDelete:()=>{o(actions$2.deleteLoginConfigStart())}})]}))},LoginEmptyState=()=>{const e=useDispatch(),t=useSelector(selectIsFullscreenEnabled);return jsxRuntime.exports.jsx(EmptyState,{title:SHARED_TEXT.emptyState.title(),description:SHARED_TEXT.emptyState.description(),buttonLabel:SHARED_TEXT.emptyState.createButton(),onClick:()=>{e(mountPanel({panelId:CUSTOM_LOGIN_PANEL_ID,microFrontend:{name:CUSTOM_LOGIN_PANEL_ID,config:{customLoginId:null,isFullScreen:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:t?0:55,marginStart:t?0:80,size:"medium",parentPanelId:"ADMIN_CENTER",dimmed:0,dimmedStatus:"dimParent"}}))}})},DeleteModal=({onConfirmDelete:e,isOpen:t,onClose:o})=>{return jsxRuntime.exports.jsx(ConfirmDialog,{testId:TEST_ID,title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-title",defaultMessage:"Delete this Custom Login",description:"Admin Center Custom Login Delete Modal Title"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-body",defaultMessage:"Deleting this Custom Login Configuration will revert the login page to the default logo and colors. This action is permanent and cannot be undone.",description:"Admin Center Custom Login Delete Modal body"}),isOpen:t,onClose:o,onConfirm:()=>{o(),e()},confirmLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-button-confirm-delete",defaultMessage:"Confirm Delete",description:"Admin Center Custom Login Delete Modal button confirm delete"}),cancelLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-button-go-back",defaultMessage:"Go Back",description:"Admin Center Custom Login Delete Modal button go back"})})},{CenterTabHeading,CenterTabContainer,CenterTabContent}=centerComponents,MainLayout=()=>jsxRuntime.exports.jsxs(CenterTabContainer,Object.assign({testId:TEST_ID},{children:[jsxRuntime.exports.jsx(CenterTabHeading,{title:SHARED_TEXT.title(),subtitle:SHARED_TEXT.subTitle(),testId:TEST_ID}),jsxRuntime.exports.jsx(CenterTabContent,Object.assign({testId:TEST_ID},{children:jsxRuntime.exports.jsx(LoginTable,{})}))]})),CustomLoginTab=()=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAdminCenterCustomLoginModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,{})})}))})});var $location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,classof$2=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),getBuiltIn$3=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$2,wellKnownSymbol$5=wellKnownSymbol$e,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$e("species"),setSpecies$1=function(e){e=getBuiltIn$3(e);DESCRIPTORS&&e&&!e[SPECIES$2]&&defineBuiltInAccessor(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},uncurryThis$3=functionUncurryThis,fails$1=fails$d,isCallable$4=isCallable$l,classof$1=classof$4,getBuiltIn$2=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof$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 $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$a,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,wellKnownSymbol$4=wellKnownSymbol$e,SPECIES$1=wellKnownSymbol$e("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$7=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$7.bind(apply$1):function(){return call$7.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$2=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$2(e)},uncurryThis$1=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=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$5=global$h,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$l,hasOwn=hasOwnProperty_1,fails=fails$d,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$5.setImmediate,clear=global$5.clearImmediate,process$3=global$5.process,Dispatch=global$5.Dispatch,Function$1=global$5.Function,MessageChannel=global$5.MessageChannel,String$1=global$5.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails(function(){$location=global$5.location}),function(e){var t;hasOwn(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$5.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),o=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,o)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.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$5.addEventListener&&isCallable$3(global$5.postMessage)&&!global$5.importScripts&&$location&&"file:"!==$location.protocol&&!fails(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$5.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}),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$4=global$h,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,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$4.MutationObserver||global$4.WebKitMutationObserver,document$2=global$4.document,process$2=global$4.process,Promise$1=global$4.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$4,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.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$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$4),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$3=global$h,promiseNativeConstructor=global$h.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$h,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$3=wellKnownSymbol$e,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$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function o(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=o,!(SUBCLASSING=e.then(function(){})instanceof o))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 o,n;this.promise=new e(function(e,t){if(void 0!==o||void 0!==n)throw $TypeError$2("Bad Promise constructor");o=e,n=t}),this.resolve=aCallable$4(o),this.reject=aCallable$4(n)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$h,call$6=functionCall,defineBuiltIn$1=defineBuiltIn$5,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$3,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$1=isCallable$l,isObject$1=isObject$8,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$1.TypeError,document$1=global$1.document,process$1=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var o,n,r,i=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?o=i:(u&&u.enter(),o=s(i),u&&(u.exit(),r=!0)),o===e.promise?c(TypeError$1("Promise-chain cycle")):(n=isThenable(o))?call$6(n,o,l,c):l(o)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},notify=function(o,n){o.notified||(o.notified=!0,microtask(function(){for(var e,t=o.reactions;e=t.get();)callReaction(e,o);o.notified=!1,n&&!o.rejection&&onUnhandled(o)}))},dispatchEvent=function(e,t,o){var n;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=o,n.initEvent(e,!1,!0),global$1.dispatchEvent(n)):n={promise:t,reason:o},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",o)},onUnhandled=function(n){call$6(task,global$1,function(){var e=n.facade,t=n.value,o=isUnhandled(n);if(o&&(o=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),n.rejection=IS_NODE||isUnhandled(n)?UNHANDLED:HANDLED,o.error))throw o.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$6(task,global$1,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,o,n){return function(e){t(o,e,n)}},internalReject=function(e,t,o){e.done||(e.done=!0,(e=o?o:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(o,e,t){if(!o.done){o.done=!0,t&&(o=t);try{if(o.facade===e)throw TypeError$1("Promise can't be resolved itself");var n=isThenable(e);n?microtask(function(){var t={done:!1};try{call$6(n,e,bind$1(internalResolve,t,o),bind$1(internalReject,t,o))}catch(e){internalReject(t,e,o)}}):(o.value=e,o.state=FULFILLED,notify(o,!1))}catch(e){internalReject({done:!1},e,o)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$6(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var o=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return o.parent=!0,n.ok=!isCallable$1(e)||e,n.fail=isCallable$1(t)&&t,n.domain=IS_NODE?process$1.domain:void 0,o.state==PENDING?o.reactions.add(n):microtask(function(){callReaction(n,o)}),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$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var o=this;return new PromiseConstructor(function(e,t){call$6(nativeThen,o,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$2=wellKnownSymbol$e,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$e("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof=classof$4,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$1=wellKnownSymbol$e,ITERATOR$1=wellKnownSymbol$e("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof(e)]},call$5=functionCall,aCallable$2=aCallable$8,anObject$3=anObject$a,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$1=TypeError,getIterator$1=function(e,t){var o=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(o))return anObject$3(call$5(o,e));throw $TypeError$1(tryToString$1(e)+" is not iterable")},call$4=functionCall,anObject$2=anObject$a,getMethod=getMethod$3,iteratorClose$1=function(e,t,o){var n,r;anObject$2(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw o;return o}n=call$4(n,e)}catch(e){r=!0,n=e}if("throw"===t)throw o;if(r)throw n;return anObject$2(n),o},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$a,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf=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,o){function n(e){return i&&iteratorClose(i,"normal",e),new Result(!0,e)}function r(e){return $?(anObject$1(e),f?m(e[0],e[1],n):m(e[0],e[1])):f?m(e,n):m(e)}var i,a,s,l,c,u,d=o&&o.that,$=!(!o||!o.AS_ENTRIES),p=!(!o||!o.IS_RECORD),g=!(!o||!o.IS_ITERATOR),f=!(!o||!o.INTERRUPTED),m=bind(t,d);if(p)i=e.iterator;else if(g)i=e;else{if(!(o=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(o)){for(a=0,s=lengthOfArrayLike(e);a<s;a++)if((l=r(e[a]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}i=getIterator(e,o)}for(c=(p?e:i).next;!(u=call$3(c,i)).done;){try{l=r(u.value)}catch(e){iteratorClose(i,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$e,ITERATOR=wellKnownSymbol$e("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,STEP_ID,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var o=!1;try{var n={};n[ITERATOR]=function(){return{next:function(){return{done:o=!0}}}},e(n)}catch(e){}return o},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(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,o=perform$1(function(){var n=aCallable$1(s.resolve),r=[],i=0,a=1;iterate$1(e,function(e){var t=i++,o=!1;a++,call$2(n,s,e).then(function(e){o||(o=!0,r[t]=e,--a)||l(r)},c)}),--a||l(r)});return o.error&&c(o.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable=isCallable$l,defineBuiltIn=defineBuiltIn$5,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var o=this,n=newPromiseCapabilityModule$1.f(o),r=n.reject,t=perform(function(){var t=aCallable(o.resolve);iterate(e,function(e){call$1(t,o,e).then(n.resolve,r)})});return t.error&&r(t.value),n.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$a),isObject=isObject$8,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)},$=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),function(e){e[e.BASIC_INFO=1]="BASIC_INFO",e[e.CONFIGURATION=2]="CONFIGURATION"}(STEP_ID=STEP_ID||{});const{header:PanelHeader,container:PanelContainer,content:PanelContent,stepper:PanelStepper}=panelComponents,stepLabels=[{stepNumber:STEP_ID.BASIC_INFO,stepLabel:"Basic Info"},{stepNumber:STEP_ID.CONFIGURATION,stepLabel:"Configuration"}],BasicInfoStep=react.exports.lazy(()=>import("./js-core.esm99.js")),ConfigurationStep=react.exports.lazy(()=>import("./js-core.esm100.js")),CustomLoginPanelWizard=({customLoginId:e,isFullScreen:t,orgId:o,querySlug:n,instanceLoginConfig:r})=>{const i=useDispatch();var a=useSelector(selectSteps),s=useSelector(selectActiveStep);const l=!!e;var c=useSelector(selectCustomLoginConfigStatus),u="pending"===c,c="failure"===c;const d=useSelector(selectCustomLoginConfig);function $(){n&&r?(i(actions$2.setQuerySlug(n)),i(actions$2.fetchLoginConfigSuccess(r))):i(actions$2.fetchLoginConfigStart({orgId:o||void 0}))}return react.exports.useEffect(()=>{l&&$()},[e,l]),react.exports.useEffect(()=>{var e,t,o,n,r;d&&({buttonTextColor:e,buttonColor:t,logo:o,name:n,slug:r}=d,i(actions$1.setLogoUrl(o)),i(actions$1.setLoginName(n)),i(actions$1.setUrlSlug(r)),i(actions.setButtonColor(t)),i(actions.setButtonTextColor(e)))},[d]),jsxRuntime.exports.jsxs(PanelContainer,Object.assign({testId:TEST_ID_PANEL+"-panel-container",panelId:CUSTOM_LOGIN_PANEL_ID,isFullScreen:t},{children:[jsxRuntime.exports.jsx(PanelHeader,{title:l?SHARED_TEXT.panel.editTitle():SHARED_TEXT.panel.createTitle(),testId:TEST_ID_PANEL+"-panel-header",onPanelClose:function(){i(actions$1.resetBasicInfo()),i(actions.resetButton()),i(actions$2.setActiveStep(1)),i(hidePanel(CUSTOM_LOGIN_PANEL_ID))}}),jsxRuntime.exports.jsx(PanelStepper,{enableTabs:l,steps:a,stepLabels:stepLabels,activeStep:s,TabsProps:{scrollButtons:!1},onClickTab:e=>{i(actions$2.setActiveStep(e))},testId:"custom-login-stepper"}),jsxRuntime.exports.jsx(PanelContent,Object.assign({isLoading:u,isErrored:c,onRetry:$,style:{padding:"0 30px",height:"100vh"},testId:TEST_ID_PANEL+"-panel-content"},{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[s===STEP_ID.BASIC_INFO&&jsxRuntime.exports.jsx(BasicInfoStep,{}),s===STEP_ID.CONFIGURATION&&jsxRuntime.exports.jsx(ConfigurationStep,{isEditMode:l})]}))}))]}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),CustomLoginPanel=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAdminCenterCustomLoginModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(CustomLoginPanelWizard,Object.assign({},e))})}))})});export{CustomLoginTab as C,SHARED_TEXT as S,_export as _,CustomLoginPanel as a,selectUrlSlug as b,selectLogoUrl as c,selectButtonColor as d,selectButtonTextColor as e,formattedMessages as f,selectIsPreviewModalOpen as g,actions$1 as h,fails$d as i,global$h as j,functionCall as k,functionUncurryThis as l,shared$3 as m,arrayIncludes as n,addToUnscopables$1 as o,actions as p,CUSTOM_LOGIN_PANEL_ID as q,actions$2 as r,selectLoginName as s,toString$1 as t,objectCreate as u,internalState as v,anObject$a as w};
43
+ `;try{var n=yield gqlIntrospection.queryParser(s,l,o);let e=o;null!=n&&n.query&&(e=null==n?void 0:n.query);var{data:r,errors:i}=yield baseGraphQLApi({query:e,graphEndpoint:s,token:l,operationName:t,variables:{querySlug:a,input:{enabled:!0,name:c.name,slug:c.slug,buttonColor:c.buttonColor,buttonTextColor:c.buttonTextColor,logo:c.logo,hideVeritoneBranding:c.hideVeritoneBranding}},extraHeaders:void 0});if(!i&&r&&(null===(null==r?void 0:r.updateInstanceLoginConfiguration)||null!=r&&r.updateInstanceLoginConfiguration))return r.updateInstanceLoginConfiguration;throw new Error("Updating API Custom Login Configuration failed. Please try again later")}catch(e){return devErrorLogger(JSON.stringify(e)),e}});function*fetchCustomLoginConfigSaga(e){let t=null;try{var{graphQLEndpoint:o,token:n}=yield select(selectApiConfigs),r=e.payload.orgId;if(r){var i=yield call$f(fetchCustomLoginConfig,r,o,n);if((t=i)instanceof Error)throw new Error(t.message);yield put(actions$2.fetchLoginConfigSuccess(t))}}catch(e){yield put(actions$2.fetchLoginConfigFailure()),yield put(showMessage({content:"Failed to fetch Custom Login for Organization.",severity:MessageSeverity.Error}))}}function*updateCustomLoginConfigSaga(e){try{var{graphQLEndpoint:t,token:o}=yield select(selectApiConfigs),n=yield select(selectQuerySlug),r=yield select(selectLoginOrgID),i=yield select(selectBasicInfoStep),a=yield select(selectConfigurationStep),s={name:i.loginName||"",slug:i.urlSlug,logo:i.logoUrl||"",buttonColor:a.buttonColor,buttonTextColor:a.buttonTextColor,enabled:!0,hideVeritoneBranding:a.hideVeritoneBranding};let e;if(r&&(e=yield call$f(updateCustomLoginConfig,r,t,o,s)),r||n||(e=yield call$f(createInstanceLoginConfig,t,o,s)),(e=!r&&n?yield call$f(updateInstanceLoginConfig,n,t,o,s):e)instanceof Error)throw new Error(e.message);yield put(actions$2.updateLoginConfigSuccess()),r&&(yield put(showMessage({content:"Custom Login Updated!",severity:MessageSeverity.Success})),yield put(actions$2.fetchLoginConfigStart({orgId:r||void 0}))),r||n||(yield put(showMessage({content:"Instance Login Created!",severity:MessageSeverity.Success})),yield put({type:"ADMIN_CENTER_CUSTOM_LOGIN_PANEL_RESPONSE",payload:!0})),!r&&n&&(yield put(showMessage({content:"Instance Login Updated!",severity:MessageSeverity.Success})),yield put({type:"ADMIN_CENTER_CUSTOM_LOGIN_PANEL_RESPONSE",payload:!0}))}catch(e){i=yield select(selectLoginOrgID);console.error("error:",e),yield put(actions$2.updateLoginConfigFailure()),yield put(showMessage({content:"Failed to update Custom Login for Organization.",severity:MessageSeverity.Error})),i||(yield put({type:"ADMIN_CENTER_CUSTOM_LOGIN_PANEL_RESPONSE",payload:!1}))}}function*deleteCustomLoginConfigSaga(e){try{var{graphQLEndpoint:t,token:o}=yield select(selectApiConfigs),n=yield select(selectLoginOrgID),r=yield call$f(deleteCustomLoginConfig,n,t,o);if(r instanceof Error)throw new Error(r.message);yield put(actions$2.deleteLoginConfigSuccess()),yield put(showMessage({content:"Custom Login Deleted",severity:MessageSeverity.Success})),yield put(actions$2.fetchLoginConfigStart({orgId:n}))}catch(e){console.error("error:",e),yield put(actions$2.deleteLoginConfigFailure()),yield put(showMessage({content:"Failed to delete Custom Login for Organization.",severity:MessageSeverity.Error}))}}function*fetchCustomLoginConfigWatcher(){yield takeLatest$1(actions$2.fetchLoginConfigStart.type,fetchCustomLoginConfigSaga)}function*updateCustomLoginConfigWatcher(){yield takeLatest$1(actions$2.updateLoginConfigStart.type,updateCustomLoginConfigSaga)}function*deleteCustomLoginConfigWatcher(){yield takeLatest$1(actions$2.deleteLoginConfigStart.type,deleteCustomLoginConfigSaga)}function*rootSaga(){yield all([fetchCustomLoginConfigWatcher(),updateCustomLoginConfigWatcher(),deleteCustomLoginConfigWatcher()])}function getAdminCenterCustomLoginModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const SHARED_TEXT={title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.title",defaultMessage:"Custom Login",description:"Admin Center Custom Login Title"}),subTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.sub-title",defaultMessage:"Create a custom branded login for users of this Organization.",description:"Admin Center Custom Login Subtitle"}),panel:{createTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.panel.create-title",defaultMessage:"New Login",description:"Admin Center Custom Login Panel Create Title"}),editTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.panel.edit-title",defaultMessage:"Edit Login",description:"Admin Center Custom Login Panel Edit Title"})},emptyState:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.empty-state.title",defaultMessage:"No Custom Login Found",description:"Admin Center custom login table empty state"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.empty-state.description",defaultMessage:"You haven’t created a custom login for this Organization",description:"Admin Center custom login table empty state"}),createButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.empty-state.create-button",defaultMessage:"Create Custom Login",description:"Admin Center custom login table empty state"})},basicInfoStep:{description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.description",defaultMessage:"Create a custom branded login page for this organization, with a didicated domain for users to access their aiWARE account.",description:"Admin Center Custom Login Basic Info Step Description"}),customUrlSlugTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-title",defaultMessage:"Custom Login URL Slug",description:"Admin Center Custom Login Basic Info Step Custom URL Slug Title"}),customUrlSlugDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-description",defaultMessage:"Type in the slug name that will be added to your login url. (Field is required)",description:"Admin Center Custom Login Basic Info Step Custom URL Slug Description"}),brandLogoTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.brand-logo-title",defaultMessage:"Brand Logo",description:"Admin Center Custom Login Basic Info Step Brand Logo Title"}),brandLogoDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.brand-logo-description",defaultMessage:"This logo will be used on your login page. ",description:"Admin Center Custom Login Basic Info Step Brand Logo Description"}),loginNameInputPlaceholder:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.login-name-input-placeholder",defaultMessage:"Login Name",description:"Admin Center Custom Login Basic Info Step Login Name Input Placeholder"}),cancelBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.cancel-btn",defaultMessage:"Cancel",description:"Admin Center Custom Login Basic Info Step Cancel Button"}),saveBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.save-btn",defaultMessage:"Save",description:"Admin Center Custom Login Basic Info Step Save Button"}),nextBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.next-btn",defaultMessage:"Next",description:"Admin Center Custom Login Basic Info Step Next Button"}),customUrlSlugError:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-error",defaultMessage:"Please enter a valid URL slug",description:"Admin Center Custom Login Basic Info Step Custom URL Slug Error"}),showMeLink:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.basic-info-step.show-me-link",defaultMessage:"Show me",description:"Admin Center Custom Login Basic Info Step Show Me Link"})},configurationStep:{title:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.title",defaultMessage:"Customize Colors",description:"Admin Center Custom Login Configuration Step Title"}),description:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.description",defaultMessage:"Change the primary and secondary colors of the login and sign up pages to match your brand.",description:"Admin Center Custom Login Configuration Step Description"}),hideVeritoneBrandingTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.hide-veritone-branding.title",defaultMessage:"Remove Veritone Branding",description:"Admin Center Custom Login Configuration option to hide veritone branding"}),hideVeritoneBrandingDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.hide-veritone-branding.description",defaultMessage:"When enabled, Veritone logos and branding will be removed from your custom login page.",description:"Admin Center Custom Login Configuration option to hide veritone branding"}),backBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.back-btn",defaultMessage:"Back",description:"Admin Center Custom Login Configuration Step Back Button"}),createBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.create-btn",defaultMessage:"Create",description:"Admin Center Custom Login Configuration Step Create Button"}),saveBtn:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login.configuration-step.save-btn",defaultMessage:"Save",description:"Admin Center Custom Login Configuration Step Save Button"})}},formattedMessages=e=>({loginNamePlaceholder:e.formatMessage({id:"os-admin-center-custom-login.basic-info-step.login-name-input-placeholder",defaultMessage:[{type:0,value:"Login Name"}]}),customLoginUrlSlugPlaceholder:e.formatMessage({id:"os-admin-center-custom-login.basic-info-step.custom-url-slug-placeholder",defaultMessage:[{type:0,value:"login.veritone.com/"}]})});var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$3=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$7=anObject$a,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn$4=(objectDefineProperties.f=DESCRIPTORS$3&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$7(e);for(var o,n=toIndexedObject$1(t),r=objectKeys(t),i=r.length,a=0;a<i;)definePropertyModule.f(e,o=r[a++],n[o]);return e},getBuiltIn$7),html$2=getBuiltIn$7("document","documentElement"),anObject$6=anObject$a,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 o;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$6(e),o=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,o[IE_PROTO$1]=e):o=NullProtoObject(),void 0===t?o:definePropertiesModule.f(o,t)}),wellKnownSymbol$c=wellKnownSymbol$e,create$1=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$c("unscopables"),ArrayPrototype$1=Array.prototype,addToUnscopables$1=(null==ArrayPrototype$1[UNSCOPABLES]&&defineProperty$3(ArrayPrototype$1,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype$1[UNSCOPABLES][e]=!0}),iterators={},fails$3=fails$d,correctPrototypeGetter=!fails$d(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$3=hasOwnProperty_1,isCallable$a=isCallable$l,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$a(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null)},fails$2=fails$d,isCallable$9=isCallable$l,isObject$2=isObject$8,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$3=defineBuiltIn$5,wellKnownSymbol$b=wellKnownSymbol$e,ITERATOR$5=wellKnownSymbol$e("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$2(IteratorPrototype$2)||fails$2(function(){var e={};return IteratorPrototype$2[ITERATOR$5].call(e)!==e})),iteratorsCore=(isCallable$9((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$5])||defineBuiltIn$3(IteratorPrototype$2,ITERATOR$5,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$2=hasOwnProperty_1,wellKnownSymbol$a=wellKnownSymbol$e,TO_STRING_TAG$3=wellKnownSymbol$e("toStringTag"),setToStringTag$3=function(e,t,o){(e=e&&!o?e.prototype:e)&&!hasOwn$2(e,TO_STRING_TAG$3)&&defineProperty$2(e,TO_STRING_TAG$3,{configurable:!0,value:t})},IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$3,setToStringTag$2=setToStringTag$3,Iterators$4=iterators,returnThis$1=function(){return this},iteratorCreateConstructor=function(e,t,o,n){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!n,o)}),setToStringTag$2(e,t,!1),Iterators$4[t]=returnThis$1,e},uncurryThis$5=functionUncurryThis,aCallable$6=aCallable$8,functionUncurryThisAccessor=function(e,t,o){try{return uncurryThis$5(aCallable$6(Object.getOwnPropertyDescriptor(e,t)[o]))}catch(e){}},isCallable$8=isCallable$l,$String$1=String,$TypeError$6=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$8(e))return e;throw $TypeError$6("Can't set "+$String$1(e)+" as a prototype")},uncurryThisAccessor=functionUncurryThisAccessor,anObject$5=anObject$a,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var o,n=!1,e={};try{(o=uncurryThisAccessor(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return anObject$5(e),aPossiblePrototype(t),n?o(e,t):e.__proto__=t,e}}():void 0),$$7=_export,call$8=functionCall,FunctionName=functionName,isCallable$7=isCallable$l,createIteratorConstructor=iteratorCreateConstructor,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf$1=objectSetPrototypeOf,setToStringTag$1=setToStringTag$3,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$5,wellKnownSymbol$9=wellKnownSymbol$e,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$4=wellKnownSymbol$9("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},iteratorDefine=function(e,t,o,n,r,i,a){createIteratorConstructor(o,t,n);function s(e){if(e===r&&p)return p;if(!BUGGY_SAFARI_ITERATORS&&e in d)return d[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new o(this,e)}}return function(){return new o(this)}}var l,c,n=t+" Iterator",u=!1,d=e.prototype,$=d[ITERATOR$4]||d["@@iterator"]||r&&d[r],p=!BUGGY_SAFARI_ITERATORS&&$||s(r),g="Array"==t&&d.entries||$;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf$1?setPrototypeOf$1(g,IteratorPrototype):isCallable$7(g[ITERATOR$4])||defineBuiltIn$2(g,ITERATOR$4,returnThis)),setToStringTag$1(g,n,!0)),PROPER_FUNCTION_NAME&&r==VALUES&&$&&$.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(d,"name",VALUES):(u=!0,p=function(){return call$8($,this)})),r)if(l={values:s(VALUES),keys:i?p:s(KEYS),entries:s(ENTRIES)},a)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in d||defineBuiltIn$2(d,c,l[c]);else $$7({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return d[ITERATOR$4]!==p&&defineBuiltIn$2(d,ITERATOR$4,p,{name:r}),Iterators$3[t]=p,l},createIterResultObject$1=function(e,t){return{value:e,done:t}},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators$2=iterators,InternalStateModule$1=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=iteratorDefine,createIterResultObject=createIterResultObject$1,DESCRIPTORS$2=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,o=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,createIterResultObject(void 0,!0)):createIterResultObject("keys"==o?n:"values"==o?t[n]:[n,t[n]],!1)},"values"),values=Iterators$2.Arguments=Iterators$2.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$2&&"values"!==values.name)try{defineProperty$1(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global$7=global$h,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$8=wellKnownSymbol$e,ITERATOR$3=wellKnownSymbol$8("iterator"),TO_STRING_TAG$2=wellKnownSymbol$8("toStringTag"),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(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var o in ArrayIteratorMethods)if(t[o]!==ArrayIteratorMethods[o])try{createNonEnumerableProperty(t,o,ArrayIteratorMethods[o])}catch(e){t[o]=ArrayIteratorMethods[o]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$7[COLLECTION_NAME]&&global$7[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,thisSymbolValue,symbolDescriptiveString,regexp,replace,stringSlice,wellKnownSymbol$7=wellKnownSymbol$e,TO_STRING_TAG$1=wellKnownSymbol$e("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$6=isCallable$l,classofRaw$1=classofRaw$2,wellKnownSymbol$6=wellKnownSymbol$e,TO_STRING_TAG=wellKnownSymbol$e("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw$1(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$4=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$3=classof$4,$String=String,toString$1=function(e){if("Symbol"===classof$3(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},makeBuiltIn=makeBuiltIn$3.exports,defineProperty=objectDefineProperty,defineBuiltInAccessor$2=function(e,t,o){return o.get&&makeBuiltIn(o.get,t,{getter:!0}),o.set&&makeBuiltIn(o.set,t,{setter:!0}),defineProperty.f(e,t,o)},$$6=_export,DESCRIPTORS$1=descriptors,global$6=global$h,uncurryThis$4=functionUncurryThis,hasOwn$1=hasOwnProperty_1,isCallable$5=isCallable$l,isPrototypeOf$2=objectIsPrototypeOf,toString=toString$1,defineBuiltInAccessor$1=defineBuiltInAccessor$2,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$h.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;!DESCRIPTORS$1||!isCallable$5(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString(arguments[0]),t=isPrototypeOf$2(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),thisSymbolValue=uncurryThis$4(SymbolPrototype.valueOf),symbolDescriptiveString=uncurryThis$4(SymbolPrototype.toString),regexp=/^Symbol\((.*)\)[^)]+$/,replace=uncurryThis$4("".replace),stringSlice=uncurryThis$4("".slice),defineBuiltInAccessor$1(SymbolPrototype,"description",{configurable:!0,get:function(){var e=thisSymbolValue(this);return hasOwn$1(EmptyStringDescriptionStore,e)?"":(e=symbolDescriptiveString(e),""===(e=NATIVE_SYMBOL?stringSlice(e,7,-1):replace(e,regexp,"$1"))?void 0:e)}}),$$6({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper}));const{TableInfiniteScroll}=tableInfiniteScroll["jsx"],itemHeight=60,LoginTable=()=>{const o=useDispatch(),n=useSelector(selectIsFullscreenEnabled),[e,r]=react.exports.useState(!1),[t,i]=react.exports.useState(null),[a,s]=react.exports.useState(!1),l=useSelector(selectAdminCenterOrgId);var c=useSelector(selectCustomLoginConfig),c=c?[c]:[],u=useSelector(selectCustomLoginConfigStatus),d="pending"===u,u="failure"===u;return jsxRuntime.exports.jsxs(Box,Object.assign({height:"500px"},{children:[jsxRuntime.exports.jsx(TableInfiniteScroll,{hasMore:!1,fetchMore:()=>{o(actions$2.fetchLoginConfigStart({orgId:l}))},fetchOnMount:0===c.length,offset:0,items:c,itemHeight:itemHeight,isLoading:d,error:u,TableHeaderComponent:jsxRuntime.exports.jsx(CustomLoginTableHeader,{}),TableRowComponent:({item:t,index:e})=>jsxRuntime.exports.jsx(CustomLoginTableRow,{index:e,onEdit:()=>{var e;e=t,o(mountPanel({panelId:CUSTOM_LOGIN_PANEL_ID,microFrontend:{name:CUSTOM_LOGIN_PANEL_ID,config:{customLoginId:e.name,isFullScreen:n,orgId:l}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:n?0:55,marginStart:n?0:80,size:"medium",parentPanelId:"ADMIN_CENTER",dimmed:0,dimmedStatus:"dimParent",borderBottom:!0}}))},onPreview:()=>{return e=t,i(e),void r(!0);var e},onDelete:()=>{return e=t,s(!0),void i(e);var e},buttonColor:t.buttonColor,buttonTextColor:t.buttonTextColor,logoUrl:t.logo,name:t.name,slug:t.slug,enabled:t.enabled,testId:TEST_ID}),TableEmptyStateComponent:jsxRuntime.exports.jsx(LoginEmptyState,{}),testId:TEST_ID}),jsxRuntime.exports.jsx(CustomLoginPreviewModal,Object.assign({},{onClose:()=>r(!1),isOpen:e,buttonTextColor:(null===t||void 0===t?void 0:t.buttonTextColor)||"",buttonColor:(null===t||void 0===t?void 0:t.buttonColor)||"",logoUrl:(null===t||void 0===t?void 0:t.logo)||""})),jsxRuntime.exports.jsx(DeleteModal,{isOpen:a,onClose:()=>s(!1),onConfirmDelete:()=>{o(actions$2.deleteLoginConfigStart())}})]}))},LoginEmptyState=()=>{const e=useDispatch(),t=useSelector(selectIsFullscreenEnabled);return jsxRuntime.exports.jsx(EmptyState,{title:SHARED_TEXT.emptyState.title(),description:SHARED_TEXT.emptyState.description(),buttonLabel:SHARED_TEXT.emptyState.createButton(),onClick:()=>{e(mountPanel({panelId:CUSTOM_LOGIN_PANEL_ID,microFrontend:{name:CUSTOM_LOGIN_PANEL_ID,config:{customLoginId:null,isFullScreen:t}},panelConfig:{type:"APP_BAR_PANEL_TEMPLATE",marginTop:t?0:55,marginStart:t?0:80,size:"medium",parentPanelId:"ADMIN_CENTER",dimmed:0,dimmedStatus:"dimParent"}}))}})},DeleteModal=({onConfirmDelete:e,isOpen:t,onClose:o})=>{return jsxRuntime.exports.jsx(ConfirmDialog,{testId:TEST_ID,title:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-title",defaultMessage:"Delete this Custom Login",description:"Admin Center Custom Login Delete Modal Title"}),description:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-body",defaultMessage:"Deleting this Custom Login Configuration will revert the login page to the default logo and colors. This action is permanent and cannot be undone.",description:"Admin Center Custom Login Delete Modal body"}),isOpen:t,onClose:o,onConfirm:()=>{o(),e()},confirmLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-button-confirm-delete",defaultMessage:"Confirm Delete",description:"Admin Center Custom Login Delete Modal button confirm delete"}),cancelLabel:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-custom-login-delete-modal-button-go-back",defaultMessage:"Go Back",description:"Admin Center Custom Login Delete Modal button go back"})})},{CenterTabHeading,CenterTabContainer,CenterTabContent}=centerComponents,MainLayout=()=>jsxRuntime.exports.jsxs(CenterTabContainer,Object.assign({testId:TEST_ID},{children:[jsxRuntime.exports.jsx(CenterTabHeading,{title:SHARED_TEXT.title(),subtitle:SHARED_TEXT.subTitle(),testId:TEST_ID}),jsxRuntime.exports.jsx(CenterTabContent,Object.assign({testId:TEST_ID},{children:jsxRuntime.exports.jsx(LoginTable,{})}))]})),CustomLoginTab=()=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAdminCenterCustomLoginModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,{})})}))})});var $location,defer,channel,port,toggle,node,promise,then,queue,flush,notify$1,Internal,OwnPromiseCapability,PromiseWrapper,nativeThen,classof$2=classofRaw$2,engineIsNode="undefined"!=typeof process&&"process"==classofRaw$2(process),getBuiltIn$3=getBuiltIn$7,defineBuiltInAccessor=defineBuiltInAccessor$2,wellKnownSymbol$5=wellKnownSymbol$e,DESCRIPTORS=descriptors,SPECIES$2=wellKnownSymbol$e("species"),setSpecies$1=function(e){e=getBuiltIn$3(e);DESCRIPTORS&&e&&!e[SPECIES$2]&&defineBuiltInAccessor(e,SPECIES$2,{configurable:!0,get:function(){return this}})},isPrototypeOf$1=objectIsPrototypeOf,$TypeError$5=TypeError,anInstance$1=function(e,t){if(isPrototypeOf$1(t,e))return e;throw $TypeError$5("Incorrect invocation")},uncurryThis$3=functionUncurryThis,fails$1=fails$d,isCallable$4=isCallable$l,classof$1=classof$4,getBuiltIn$2=getBuiltIn$7,inspectSource$1=inspectSource$3,noop=function(){},empty=[],construct=getBuiltIn$7("Reflect","construct"),constructorRegExp=/^\s*(?:class|function)\b/,exec=uncurryThis$3(constructorRegExp.exec),INCORRECT_TO_STRING=!constructorRegExp.exec(noop),isConstructorModern=function(e){if(!isCallable$4(e))return!1;try{return construct(noop,empty,e),!0}catch(e){return!1}},isConstructorLegacy=function(e){if(!isCallable$4(e))return!1;switch(classof$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 $TypeError$4(tryToString$2(e)+" is not a constructor")},anObject$4=anObject$a,aConstructor=aConstructor$1,isNullOrUndefined$1=isNullOrUndefined$4,wellKnownSymbol$4=wellKnownSymbol$e,SPECIES$1=wellKnownSymbol$e("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$7=FunctionPrototype.call,functionApply="object"==typeof Reflect&&Reflect.apply||(NATIVE_BIND$1?call$7.bind(apply$1):function(){return call$7.apply(apply$1,arguments)}),classofRaw=classofRaw$2,uncurryThis$2=functionUncurryThis,functionUncurryThisClause=function(e){if("Function"===classofRaw(e))return uncurryThis$2(e)},uncurryThis$1=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=functionUncurryThis,arraySlice$1=functionUncurryThis([].slice),$TypeError$3=TypeError,validateArgumentsLength$1=function(e,t){if(e<t)throw $TypeError$3("Not enough arguments");return e},userAgent$2=engineUserAgent,engineIsIos=/(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2),global$5=global$h,apply=functionApply,bind$3=functionBindContext,isCallable$3=isCallable$l,hasOwn=hasOwnProperty_1,fails=fails$d,html=html$2,arraySlice=arraySlice$1,createElement=documentCreateElement$2,validateArgumentsLength=validateArgumentsLength$1,IS_IOS$1=engineIsIos,IS_NODE$3=engineIsNode,set=global$5.setImmediate,clear=global$5.clearImmediate,process$3=global$5.process,Dispatch=global$5.Dispatch,Function$1=global$5.Function,MessageChannel=global$5.MessageChannel,String$1=global$5.String,counter=0,queue$2={},ONREADYSTATECHANGE="onreadystatechange",run=(fails(function(){$location=global$5.location}),function(e){var t;hasOwn(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$5.postMessage(String$1(e),$location.protocol+"//"+$location.host)},task$1=(set&&clear||(set=function(e){validateArgumentsLength(arguments.length,1);var t=isCallable$3(e)?e:Function$1(e),o=arraySlice(arguments,1);return queue$2[++counter]=function(){apply(t,void 0,o)},defer(counter),counter},clear=function(e){delete queue$2[e]},IS_NODE$3?defer=function(e){process$3.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$5.addEventListener&&isCallable$3(global$5.postMessage)&&!global$5.importScripts&&$location&&"file:"!==$location.protocol&&!fails(globalPostMessageDefer)?(defer=globalPostMessageDefer,global$5.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}),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$4=global$h,bind$2=functionBindContext,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,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$4.MutationObserver||global$4.WebKitMutationObserver,document$2=global$4.document,process$2=global$4.process,Promise$1=global$4.Promise,queueMicrotaskDescriptor=getOwnPropertyDescriptor(global$4,"queueMicrotask"),microtask$1=queueMicrotaskDescriptor&&queueMicrotaskDescriptor.value,microtask_1=(microtask$1||(queue=new Queue$1,flush=function(){var e,t;for(IS_NODE$2&&(e=process$2.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$2.nextTick(flush)}:(macrotask=bind$2(macrotask,global$4),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$3=global$h,promiseNativeConstructor=global$h.Promise,engineIsDeno="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,IS_DENO$1=engineIsDeno,IS_NODE$1=engineIsNode,engineIsBrowser=!engineIsDeno&&!engineIsNode&&"object"==typeof window&&"object"==typeof document,global$2=global$h,NativePromiseConstructor$3=promiseNativeConstructor,isCallable$2=isCallable$l,isForced=isForced_1,inspectSource=inspectSource$3,wellKnownSymbol$3=wellKnownSymbol$e,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$2(global$2.PromiseRejectionEvent),FORCED_PROMISE_CONSTRUCTOR$5=isForced("Promise",function(){var e=inspectSource(NativePromiseConstructor$3),t=e!==String(NativePromiseConstructor$3);if(!t&&66===V8_VERSION)return!0;if(!V8_VERSION||V8_VERSION<51||!/native code/.test(e)){function o(e){e(function(){},function(){})}e=new NativePromiseConstructor$3(function(e){e(1)});if((e.constructor={})[SPECIES]=o,!(SUBCLASSING=e.then(function(){})instanceof o))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 o,n;this.promise=new e(function(e,t){if(void 0!==o||void 0!==n)throw $TypeError$2("Bad Promise constructor");o=e,n=t}),this.resolve=aCallable$4(o),this.reject=aCallable$4(n)},$$5=(newPromiseCapability$2.f=function(e){return new PromiseCapability(e)},_export),IS_NODE=engineIsNode,global$1=global$h,call$6=functionCall,defineBuiltIn$1=defineBuiltIn$5,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$3,setSpecies=setSpecies$1,aCallable$3=aCallable$8,isCallable$1=isCallable$l,isObject$1=isObject$8,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$1.TypeError,document$1=global$1.document,process$1=global$1.process,newPromiseCapability$1=newPromiseCapabilityModule$3.f,newGenericPromiseCapability=newPromiseCapability$1,DISPATCH_EVENT=!!(document$1&&document$1.createEvent&&global$1.dispatchEvent),UNHANDLED_REJECTION="unhandledrejection",REJECTION_HANDLED="rejectionhandled",PENDING=0,FULFILLED=1,REJECTED=2,HANDLED=1,UNHANDLED=2,isThenable=function(e){var t;return!(!isObject$1(e)||!isCallable$1(t=e.then))&&t},callReaction=function(e,t){var o,n,r,i=t.value,a=t.state==FULFILLED,s=a?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(a||(t.rejection===UNHANDLED&&onHandleUnhandled(t),t.rejection=HANDLED),!0===s?o=i:(u&&u.enter(),o=s(i),u&&(u.exit(),r=!0)),o===e.promise?c(TypeError$1("Promise-chain cycle")):(n=isThenable(o))?call$6(n,o,l,c):l(o)):c(i)}catch(e){u&&!r&&u.exit(),c(e)}},notify=function(o,n){o.notified||(o.notified=!0,microtask(function(){for(var e,t=o.reactions;e=t.get();)callReaction(e,o);o.notified=!1,n&&!o.rejection&&onUnhandled(o)}))},dispatchEvent=function(e,t,o){var n;DISPATCH_EVENT?((n=document$1.createEvent("Event")).promise=t,n.reason=o,n.initEvent(e,!1,!0),global$1.dispatchEvent(n)):n={promise:t,reason:o},!NATIVE_PROMISE_REJECTION_EVENT&&(t=global$1["on"+e])?t(n):e===UNHANDLED_REJECTION&&hostReportErrors("Unhandled promise rejection",o)},onUnhandled=function(n){call$6(task,global$1,function(){var e=n.facade,t=n.value,o=isUnhandled(n);if(o&&(o=perform$2(function(){IS_NODE?process$1.emit("unhandledRejection",t,e):dispatchEvent(UNHANDLED_REJECTION,e,t)}),n.rejection=IS_NODE||isUnhandled(n)?UNHANDLED:HANDLED,o.error))throw o.value})},isUnhandled=function(e){return e.rejection!==HANDLED&&!e.parent},onHandleUnhandled=function(t){call$6(task,global$1,function(){var e=t.facade;IS_NODE?process$1.emit("rejectionHandled",e):dispatchEvent(REJECTION_HANDLED,e,t.value)})},bind$1=function(t,o,n){return function(e){t(o,e,n)}},internalReject=function(e,t,o){e.done||(e.done=!0,(e=o?o:e).value=t,e.state=REJECTED,notify(e,!0))},internalResolve=function(o,e,t){if(!o.done){o.done=!0,t&&(o=t);try{if(o.facade===e)throw TypeError$1("Promise can't be resolved itself");var n=isThenable(e);n?microtask(function(){var t={done:!1};try{call$6(n,e,bind$1(internalResolve,t,o),bind$1(internalReject,t,o))}catch(e){internalReject(t,e,o)}}):(o.value=e,o.state=FULFILLED,notify(o,!1))}catch(e){internalReject({done:!1},e,o)}}};if(FORCED_PROMISE_CONSTRUCTOR$4&&(PromisePrototype=(PromiseConstructor=function(e){anInstance(this,PromisePrototype),aCallable$3(e),call$6(Internal,this);var t=getInternalPromiseState(this);try{e(bind$1(internalResolve,t),bind$1(internalReject,t))}catch(e){internalReject(t,e)}}).prototype,(Internal=function(e){setInternalState(this,{type:PROMISE,done:!1,notified:!1,parent:!1,reactions:new Queue,rejection:!1,state:PENDING,value:void 0})}).prototype=defineBuiltIn$1(PromisePrototype,"then",function(e,t){var o=getInternalPromiseState(this),n=newPromiseCapability$1(speciesConstructor(this,PromiseConstructor));return o.parent=!0,n.ok=!isCallable$1(e)||e,n.fail=isCallable$1(t)&&t,n.domain=IS_NODE?process$1.domain:void 0,o.state==PENDING?o.reactions.add(n):microtask(function(){callReaction(n,o)}),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$1(NativePromiseConstructor$2))&&NativePromisePrototype$1!==Object.prototype){nativeThen=NativePromisePrototype$1.then,NATIVE_PROMISE_SUBCLASSING||defineBuiltIn$1(NativePromisePrototype$1,"then",function(e,t){var o=this;return new PromiseConstructor(function(e,t){call$6(nativeThen,o,e,t)}).then(e,t)},{unsafe:!0});try{delete NativePromisePrototype$1.constructor}catch(e){}setPrototypeOf&&setPrototypeOf(NativePromisePrototype$1,PromisePrototype)}$$5({global:!0,constructor:!0,wrap:!0,forced:FORCED_PROMISE_CONSTRUCTOR$4},{Promise:PromiseConstructor}),setToStringTag(PromiseConstructor,PROMISE,!1),setSpecies(PROMISE);var wellKnownSymbol$2=wellKnownSymbol$e,Iterators$1=iterators,ITERATOR$2=wellKnownSymbol$e("iterator"),ArrayPrototype=Array.prototype,isArrayIteratorMethod$1=function(e){return void 0!==e&&(Iterators$1.Array===e||ArrayPrototype[ITERATOR$2]===e)},classof=classof$4,getMethod$1=getMethod$3,isNullOrUndefined=isNullOrUndefined$4,Iterators=iterators,wellKnownSymbol$1=wellKnownSymbol$e,ITERATOR$1=wellKnownSymbol$e("iterator"),getIteratorMethod$2=function(e){if(!isNullOrUndefined(e))return getMethod$1(e,ITERATOR$1)||getMethod$1(e,"@@iterator")||Iterators[classof(e)]},call$5=functionCall,aCallable$2=aCallable$8,anObject$3=anObject$a,tryToString$1=tryToString$4,getIteratorMethod$1=getIteratorMethod$2,$TypeError$1=TypeError,getIterator$1=function(e,t){var o=arguments.length<2?getIteratorMethod$1(e):t;if(aCallable$2(o))return anObject$3(call$5(o,e));throw $TypeError$1(tryToString$1(e)+" is not iterable")},call$4=functionCall,anObject$2=anObject$a,getMethod=getMethod$3,iteratorClose$1=function(e,t,o){var n,r;anObject$2(e);try{if(!(n=getMethod(e,"return"))){if("throw"===t)throw o;return o}n=call$4(n,e)}catch(e){r=!0,n=e}if("throw"===t)throw o;if(r)throw n;return anObject$2(n),o},bind=functionBindContext,call$3=functionCall,anObject$1=anObject$a,tryToString=tryToString$4,isArrayIteratorMethod=isArrayIteratorMethod$1,lengthOfArrayLike=lengthOfArrayLike$2,isPrototypeOf=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,o){function n(e){return i&&iteratorClose(i,"normal",e),new Result(!0,e)}function r(e){return $?(anObject$1(e),f?m(e[0],e[1],n):m(e[0],e[1])):f?m(e,n):m(e)}var i,a,s,l,c,u,d=o&&o.that,$=!(!o||!o.AS_ENTRIES),p=!(!o||!o.IS_RECORD),g=!(!o||!o.IS_ITERATOR),f=!(!o||!o.INTERRUPTED),m=bind(t,d);if(p)i=e.iterator;else if(g)i=e;else{if(!(o=getIteratorMethod(e)))throw $TypeError(tryToString(e)+" is not iterable");if(isArrayIteratorMethod(o)){for(a=0,s=lengthOfArrayLike(e);a<s;a++)if((l=r(e[a]))&&isPrototypeOf(ResultPrototype,l))return l;return new Result(!1)}i=getIterator(e,o)}for(c=(p?e:i).next;!(u=call$3(c,i)).done;){try{l=r(u.value)}catch(e){iteratorClose(i,"throw",e)}if("object"==typeof l&&l&&isPrototypeOf(ResultPrototype,l))return l}return new Result(!1)},wellKnownSymbol=wellKnownSymbol$e,ITERATOR=wellKnownSymbol$e("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,STEP_ID,checkCorrectnessOfIteration$1=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var o=!1;try{var n={};n[ITERATOR]=function(){return{next:function(){return{done:o=!0}}}},e(n)}catch(e){}return o},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(){})}),$$4=_export,call$2=functionCall,aCallable$1=aCallable$8,newPromiseCapabilityModule$2=newPromiseCapability$2,perform$1=perform$3,iterate$1=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION$1=promiseStaticsIncorrectIteration,$$3=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{all:function(e){var s=this,t=newPromiseCapabilityModule$2.f(s),l=t.resolve,c=t.reject,o=perform$1(function(){var n=aCallable$1(s.resolve),r=[],i=0,a=1;iterate$1(e,function(e){var t=i++,o=!1;a++,call$2(n,s,e).then(function(e){o||(o=!0,r[t]=e,--a)||l(r)},c)}),--a||l(r)});return o.error&&c(o.value),t.promise}}),_export),FORCED_PROMISE_CONSTRUCTOR$2=promiseConstructorDetection.CONSTRUCTOR,NativePromiseConstructor=promiseNativeConstructor,getBuiltIn$1=getBuiltIn$7,isCallable=isCallable$l,defineBuiltIn=defineBuiltIn$5,NativePromisePrototype=NativePromiseConstructor&&NativePromiseConstructor.prototype,$$2=($$3({target:"Promise",proto:!0,forced:FORCED_PROMISE_CONSTRUCTOR$2,real:!0},{catch:function(e){return this.then(void 0,e)}}),isCallable(NativePromiseConstructor)&&(method=getBuiltIn$1("Promise").prototype.catch,NativePromisePrototype.catch!==method)&&defineBuiltIn(NativePromisePrototype,"catch",method,{unsafe:!0}),_export),call$1=functionCall,aCallable=aCallable$8,newPromiseCapabilityModule$1=newPromiseCapability$2,perform=perform$3,iterate=iterate$2,PROMISE_STATICS_INCORRECT_ITERATION=promiseStaticsIncorrectIteration,$$1=(_export({target:"Promise",stat:!0,forced:promiseStaticsIncorrectIteration},{race:function(e){var o=this,n=newPromiseCapabilityModule$1.f(o),r=n.reject,t=perform(function(){var t=aCallable(o.resolve);iterate(e,function(e){call$1(t,o,e).then(n.resolve,r)})});return t.error&&r(t.value),n.promise}}),_export),call=functionCall,newPromiseCapabilityModule=newPromiseCapability$2,FORCED_PROMISE_CONSTRUCTOR$1=promiseConstructorDetection.CONSTRUCTOR,anObject=($$1({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR$1},{reject:function(e){var t=newPromiseCapabilityModule.f(this);return call(t.reject,void 0,e),t.promise}}),anObject$a),isObject=isObject$8,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)},$=_export,getBuiltIn=getBuiltIn$7,FORCED_PROMISE_CONSTRUCTOR=promiseConstructorDetection.CONSTRUCTOR,promiseResolve=promiseResolve$1;getBuiltIn("Promise"),$({target:"Promise",stat:!0,forced:FORCED_PROMISE_CONSTRUCTOR},{resolve:function(e){return promiseResolve(this,e)}}),function(e){e[e.BASIC_INFO=1]="BASIC_INFO",e[e.CONFIGURATION=2]="CONFIGURATION"}(STEP_ID=STEP_ID||{});const{header:PanelHeader,container:PanelContainer,content:PanelContent,stepper:PanelStepper}=panelComponents,stepLabels=[{stepNumber:STEP_ID.BASIC_INFO,stepLabel:"Basic Info"},{stepNumber:STEP_ID.CONFIGURATION,stepLabel:"Configuration"}],BasicInfoStep=react.exports.lazy(()=>import("./js-core.esm99.js")),ConfigurationStep=react.exports.lazy(()=>import("./js-core.esm100.js")),CustomLoginPanelWizard=({customLoginId:e,isFullScreen:t,orgId:o,querySlug:n,instanceLoginConfig:r})=>{const a=useDispatch();var i=useSelector(selectSteps),s=useSelector(selectActiveStep);const l=!!e;var c=useSelector(selectCustomLoginConfigStatus),u="pending"===c,c="failure"===c;const d=useSelector(selectCustomLoginConfig);function $(){n&&r?(a(actions$2.setQuerySlug(n)),a(actions$2.fetchLoginConfigSuccess(r))):a(actions$2.fetchLoginConfigStart({orgId:o||void 0}))}return react.exports.useEffect(()=>{l&&$()},[e,l]),react.exports.useEffect(()=>{var e,t,o,n,r,i;d&&({buttonTextColor:e,buttonColor:t,logo:o,name:n,slug:r,hideVeritoneBranding:i}=d,a(actions$1.setLogoUrl(o)),a(actions$1.setLoginName(n)),a(actions$1.setUrlSlug(r)),a(actions.setButtonColor(t)),a(actions.setButtonTextColor(e)),a(actions.setHideVeritoneBranding(i)))},[d]),jsxRuntime.exports.jsxs(PanelContainer,Object.assign({testId:TEST_ID_PANEL+"-panel-container",panelId:CUSTOM_LOGIN_PANEL_ID,isFullScreen:t},{children:[jsxRuntime.exports.jsx(PanelHeader,{title:l?SHARED_TEXT.panel.editTitle():SHARED_TEXT.panel.createTitle(),testId:TEST_ID_PANEL+"-panel-header",onPanelClose:function(){a(actions$1.resetBasicInfo()),a(actions.resetButton()),a(actions$2.setActiveStep(1)),a(hidePanel(CUSTOM_LOGIN_PANEL_ID))}}),jsxRuntime.exports.jsx(PanelStepper,{enableTabs:l,steps:i,stepLabels:stepLabels,activeStep:s,TabsProps:{scrollButtons:!1},onClickTab:e=>{a(actions$2.setActiveStep(e))},testId:"custom-login-stepper"}),jsxRuntime.exports.jsx(PanelContent,Object.assign({isLoading:u,isErrored:c,onRetry:$,style:{padding:"0 30px",height:"100vh"},testId:TEST_ID_PANEL+"-panel-content"},{children:jsxRuntime.exports.jsxs(react.exports.Suspense,Object.assign({fallback:jsxRuntime.exports.jsx(Loader,{})},{children:[s===STEP_ID.BASIC_INFO&&jsxRuntime.exports.jsx(BasicInfoStep,{}),s===STEP_ID.CONFIGURATION&&jsxRuntime.exports.jsx(ConfigurationStep,{isEditMode:l})]}))}))]}))},Loader=()=>jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"30%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:40,sx:{marginBottom:"10px"}}),jsxRuntime.exports.jsx(Skeleton,{variant:"rectangular",width:"100%",height:150,sx:{marginBottom:"10px"}})]}),CustomLoginPanel=e=>jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAdminCenterCustomLoginModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(CustomLoginPanelWizard,Object.assign({},e))})}))})});export{CustomLoginTab as C,SHARED_TEXT as S,_export as _,CustomLoginPanel as a,selectUrlSlug as b,selectLogoUrl as c,selectButtonColor as d,selectButtonTextColor as e,formattedMessages as f,selectIsPreviewModalOpen as g,actions$1 as h,fails$d as i,global$h as j,functionCall as k,functionUncurryThis as l,shared$3 as m,arrayIncludes as n,addToUnscopables$1 as o,actions as p,CUSTOM_LOGIN_PANEL_ID as q,actions$2 as r,selectLoginName as s,toString$1 as t,objectCreate as u,internalState as v,anObject$a as w,selectHideVeritoneBranding as x};
Binary file
package/js-core.esm85.js CHANGED
@@ -32,6 +32,7 @@ import{j as jsxRuntime,Y as createSlice,fz as md5,Z as combineReducers,$ as useS
32
32
  buttonColor
33
33
  buttonTextColor
34
34
  enabled
35
+ hideVeritoneBranding
35
36
  }
36
37
  }
37
38
  }`,i={offset:s,limit:l};try{let e;var $=yield gqlIntrospection.queryParser(t,r,o),a=(e=$&&null!=$&&$.query?$.query:o,yield baseGraphQLApi({query:e,graphEndpoint:t,token:r,operationName:n,variables:i}))["data"];return a.instanceLoginConfigurations.records}catch(e){return devErrorLogger(JSON.stringify(e)),[]}})}const deleteInstanceLoginConfiguration=e=>__awaiter(void 0,void 0,void 0,function*(){var t,{graphQLEndpoint:r,token:n}=e.apiConfigs,o="deleteInstanceLoginConfiguration",i=`mutation ${o} {
Binary file