aiware-js 2.17.0 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js-core.esm39.js CHANGED
@@ -1 +1 @@
1
- import{z as createSvgIcon,C as interopRequireDefault,j as jsxRuntime,H as createSlice,ce as combineReducers,m as makeStyles,ch as AIWareThemeProvider,A as AIWareIntlProvider,s as store,k as useSelector,i as useDispatch,T as Typography$1,at as Button$1,a8 as Tooltip,a9 as IconButton,fv as Settings,cj as FullscreenExit,ck as Fullscreen,bU as Hide,r as react,x as classnames,bD as CircularProgress$1,Y as Portal,a2 as all,F as FormattedMessage,aM as Fade,en as Slide,a7 as Divider,dv as takeEvery$1,ai as select,M as preferredLanguageSelector,ah as put,bV as showMessage,bW as MessageSeverity,b4 as AIWareFormatMessage}from"./js-core.esm.js";var EntityType,LoadingStatus,MimeType,Save={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(Save,"__esModule",{value:!0}),Save.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save"),default_1=Save.default=_default;!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const SLICE_NAME="dataLabeler",initialAnnotationSettings=(!function(e){e.Annotation="annotation",e.Publish="publish",e.DatasetAssets="datasetAssets"}(EntityType=EntityType||{}),!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{}),LoadingStatus.Idle,!function(e){e.VideoMp4="video/mp4",e.AudioMp4="audio/mp4"}(MimeType=MimeType||{}),{isOpen:!1}),initialPublishAnnotationSettings={isOpen:!1},namespace$2="uiState",initialState$1={status:LoadingStatus.Pending,isFullScreen:!1,isFluffy:!1,isInfoOpen:!1,annotationToolSettings:initialAnnotationSettings,publishAnnotationSettings:initialPublishAnnotationSettings},slice$1=createSlice({name:SLICE_NAME+"/"+namespace$2,initialState:initialState$1,reducers:{init(e){e.status=LoadingStatus.Pending},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed},toggleFullScreen(e){e.isFullScreen=!e.isFullScreen},togglePublishAnnotationSettings(e,{payload:t}){t?(e.publishAnnotationSettings.isOpen=!0,e.publishAnnotationSettings.entityType=t):(e.publishAnnotationSettings.isOpen=!1,delete e.publishAnnotationSettings.entityType)},toggleAnnotationSettings(e,{payload:t}){t?(e.annotationToolSettings.isOpen=!0,e.annotationToolSettings.entityType=t):(e.annotationToolSettings.isOpen=!1,delete e.annotationToolSettings.entityType)}}}),actions$2=slice$1.actions;var uiState=slice$1.reducer;const namespace$1="panelPublishAnnotations",initialState={ids:[]},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{submitPublishAnnotations(e,{payload:t}){e.ids=t.ids}}}),actions$1=slice.actions;var panelPublishAnnotations=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$2]:actions$2,[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$2]:uiState,[namespace$1]:panelPublishAnnotations}),selectIsFullScreen=e=>e[namespace].uiState.isFullScreen,selectPublishAnnotationSettings=e=>e[namespace].uiState.publishAnnotationSettings,selectAnnotationSettings=e=>e[namespace].uiState.annotationToolSettings,visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var visuallyHidden$1=visuallyHidden;const DATA_LABELER_TEXT={publishAnnotation:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.y9CGIM",defaultMessage:"Publish Annotation",description:"Publish Annotation"}),publishAnnotationSubtitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.r0ufb8",defaultMessage:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics.",description:"Published annotations will be available as Ground Truth within your dataset and used for comparison metrics."}),annotationSettings:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.XONoJU",defaultMessage:"Annotation Settings",description:"Annotation Settings"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),exitFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.awe7uYc",defaultMessage:"Exit Fullscreen",description:"Exit Fullscreen"}),enterFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.stiZt+b",defaultMessage:"Enter Fullscreen",description:"Enter Fullscreen"}),toggleFullScreen:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.TUGpHT",defaultMessage:"Toggle FullScreen",description:"Toggle FullScreen"}),submit:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.lOLf4e",defaultMessage:"Submit",description:"Submit"}),show:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.HTVdQU",defaultMessage:"Show",description:"Show"}),hide:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-data-labeler.sX3mXR",defaultMessage:"Hide",description:"Hide"})},useStyles$2=makeStyles()((e,t,s)=>({root:{flexGrow:1},gridText:{minHeight:0,minWidth:0},divider:{opacity:.9},name:{fontWeight:400,maxWidth:"100%"},type:{paddingLeft:e.spacing(1),maxWidth:e.spacing(12)},padding:{paddingRight:e.spacing(1)},thumbnailContainer:{paddingLeft:e.spacing(3),maxWidth:"60px"},tableHeaderTitle:{paddingLeft:e.spacing(3),maxWidth:"120px"},thumbnail:{width:32,height:32,borderRadius:4,border:".5px solid "+e.palette.divider,objectFit:"cover",verticalAlign:"middle"},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,display:"flex",height:64,padding:e.spacing(2)},navigationToggle:{marginRight:e.spacing(1)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},folderMoreIcon:{},row:{cursor:"pointer","&:hover":{borderRadius:4,backgroundColor:"#EEF3F9",["& "+s.folderMoreIcon]:{visibility:"visible",width:"100%",display:"flex",justifyContent:"flex-end"},"& #engineIconContainer":{background:"#fff"}},["& "+s.folderMoreIcon]:{visibility:"hidden"}},publishRoot:{height:"calc(100vh - 260px)",width:"100%"},dRoot:{height:"calc(100vh - 120px)",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"}})),Header=({isFullScreen:e,onPanelClose:t,onFullScreenToggle:s,disableSetting:a})=>{var n=useStyles$2()["classes"];const i=useDispatch();return jsxRuntime.exports.jsxs("header",Object.assign({className:n.header,"data-test":"data-labeler-header"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1","data-test":"data-labeler-title",style:{marginLeft:30}},{children:"Data Labeler"})),jsxRuntime.exports.jsx("div",Object.assign({style:{alignItems:"center",border:"1px solid #E1E6ED",borderRadius:4,display:"none",flexGrow:1,height:44,padding:20}},{children:"[PLACEHOLDER FOR SEARCH COMPONENT]"})),jsxRuntime.exports.jsxs("div",Object.assign({className:n.headerActionContainer},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"contained",color:"primary",size:"large","data-test":"data-labeler-open-publish-annotations",style:{marginRight:10},startIcon:jsxRuntime.exports.jsx(default_1,{style:{color:"#FFF"}}),onClick:()=>i(actions.uiState.togglePublishAnnotationSettings(EntityType.Publish))},{children:DATA_LABELER_TEXT.publishAnnotation()})),jsxRuntime.exports.jsx("div",{className:n.verticalDivider}),jsxRuntime.exports.jsx(Typography$1,Object.assign({style:visuallyHidden$1,id:"data-labeler-toolbar-open-annotation-settings"},{children:DATA_LABELER_TEXT.annotationSettings()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.annotationSettings()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({disabled:a,onClick:()=>i(actions.uiState.toggleAnnotationSettings(EntityType.Annotation)),"data-test":"data-labeler-open-annotation-settings","aria-labelledby":"data-labeler-toolbar-open-annotation-settings",size:"large"},{children:jsxRuntime.exports.jsx(Settings,{})}))})),jsxRuntime.exports.jsx(Typography$1,Object.assign({style:visuallyHidden$1,id:"data-labeler-toggle-fullscreen"},{children:DATA_LABELER_TEXT.toggleFullScreen()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:e?DATA_LABELER_TEXT.exitFullScreen():DATA_LABELER_TEXT.enterFullScreen()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:s,"aria-labelledby":"data-labeler-toggle-fullscreen","data-test":"data-labeler-fullscreen-toggle",size:"large"},{children:e?jsxRuntime.exports.jsx(FullscreenExit,{}):jsxRuntime.exports.jsx(Fullscreen,{})}))})),jsxRuntime.exports.jsx(Typography$1,Object.assign({style:visuallyHidden$1,id:"data-labeler-close-panel"},{children:DATA_LABELER_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:t,"aria-labelledby":"data-labeler-close-panel","data-test":"data-labeler-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]}))},LabelerIframe=({path:e,fullScreen:t=!1,onClosePanel:s,onSavePublishAnnotation:a})=>{var n=useStyles$2()["classes"];const[i,l]=react.exports.useState(!0),o=react.exports.useRef(null);react.exports.useEffect(()=>{const e=t=>{t=t.data;if(t){let e;try{e=JSON.parse(t)}finally{e&&"closePanel"===e.action&&s&&s(),e&&"savePublishAnnotation"===e.action&&a&&a()}}};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)}),react.exports.useEffect(()=>{o&&o.current&&o.current.focus()},[o]);t=`calc(100vh - ${t?"64":"120"}px)`;return jsxRuntime.exports.jsxs("div",Object.assign({className:classnames(n.dRoot,"hide-in-percy"),style:{height:t}},{children:[i&&jsxRuntime.exports.jsx("div",Object.assign({className:n.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-test":"data-labeler-iframe",title:"Data Labeler Iframe",ref:o,style:{width:"100%",height:"100%",overflow:"auto"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{l(!1)},1e3)}})]}))},useStyles$1=makeStyles()(e=>({panelRoot:{position:"absolute",right:0,top:0,display:"flex","&$fullScreen":{height:"100vh"}},panelContainer:{display:"flex",flexDirection:"column",width:"100%",padding:e.spacing(2)},panelHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:e.spacing(1),marginBottom:e.spacing(1),"&.with-secondary-title":{alignItems:"flex-start"}},panelBody:{display:"flex",flexGrow:1,padding:e.spacing(1)},divider:{marginBottom:e.spacing(2)},panelOverlay:{backgroundColor:e.palette.grey[50],opacity:"0.5 !important",height:"100%",position:"absolute",top:0,width:"100%"},EmptyAssetContainer:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",paddingTop:e.spacing(18),width:"100%"},emptyImage:{display:"flex",textAlign:"center",width:"235px",height:"235px",marginBottom:e.spacing(2)},message:{userSelect:"none",paddingBottom:e.spacing(2)}})),SubPanel=({isOpen:e,panelTitle:t,className:s="",onClose:a,children:n,setIsActive:i,width:l=400})=>{var o=useStyles$1()["classes"];return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(Fade,Object.assign({in:e,mountOnEnter:!0,unmountOnExit:!0},{children:jsxRuntime.exports.jsx("div",{className:o.panelOverlay})})),jsxRuntime.exports.jsx(Slide,Object.assign({direction:"left",in:e,mountOnEnter:!0,unmountOnExit:!0,onEntered:()=>{i(!0)},onExited:()=>i(!1)},{children:jsxRuntime.exports.jsx("div",Object.assign({className:classnames(s,o.panelRoot),style:{width:l},"data-test":"data-labeler-action-panel"},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.panelContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:classnames(o.panelHeader)},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"data-labeler-action-panel-title",variant:"h1"},{children:t})),jsxRuntime.exports.jsx(Typography$1,Object.assign({style:visuallyHidden$1,id:"data-labeler-close-action-panel"},{children:DATA_LABELER_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:DATA_LABELER_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:a,"aria-labelledby":"data-labeler-close-action-panel","data-test":"data-labeler-close-action-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]})),jsxRuntime.exports.jsx(Divider,{className:o.divider}),jsxRuntime.exports.jsx("div",Object.assign({className:o.panelBody},{children:n}))]}))}))}))]})},AnnotationSettings=e=>{var[t,s]=react.exports.useState(!1);const a=useDispatch();var{isOpen:n,entityType:i}=useSelector(selectAnnotationSettings),l=()=>{a(actions.uiState.toggleAnnotationSettings(null))};return jsxRuntime.exports.jsx(SubPanel,Object.assign({isOpen:!(!n||!i),panelTitle:DATA_LABELER_TEXT.annotationSettings(),onClose:l,setIsActive:s,width:1020},e,{children:t&&jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:e.fullScreen,path:e.blueEyeConfig.settingUri,onClosePanel:l})}))},PublishAnnotations=t=>{var[e,s]=react.exports.useState(!1);const a=useDispatch();var{isOpen:n,entityType:i}=useSelector(selectPublishAnnotationSettings),l=()=>{a(actions.uiState.togglePublishAnnotationSettings(null))};return jsxRuntime.exports.jsx(SubPanel,Object.assign({isOpen:!(!n||!i),panelTitle:DATA_LABELER_TEXT.publishAnnotation(),onClose:l,setIsActive:s,width:400},t,{children:e&&jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:t.fullScreen,path:t.blueEyeConfig.publishUri,onClosePanel:l,onSavePublishAnnotation:()=>{const e=t["publishCallback"];e()}})}))},useStyles=makeStyles()(e=>({root:{width:"100%",position:"relative"},panel:{backgroundColor:e.palette.background.paper,boxShadow:"0px 0px 12px rgba(0, 0, 0, 0.25)",height:"100%",overflow:"hidden"},fullScreen:{position:"fixed",width:"100%",height:"100vh",top:0,left:0,right:0,bottom:0,zIndex:1200}})),Container=({isFullScreen:e,classes:t,children:s})=>e?jsxRuntime.exports.jsx(Portal,{children:jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:classnames(t.root,t.panel,t.fullScreen)},{children:s}))}):jsxRuntime.exports.jsx("div",Object.assign({role:"presentation","data-test":"data-labeler-widget",className:classnames(t.root,t.panel)},{children:s})),MainLayout=({hidePanel:e,blueEyeConfig:t,datasetAssets:s,publishCallback:a,disableSetting:n})=>{var i=useStyles()["classes"],l=useSelector(selectIsFullScreen);const o=useDispatch();return jsxRuntime.exports.jsxs(Container,Object.assign({isFullScreen:l,classes:i},{children:[jsxRuntime.exports.jsx(Header,{isFullScreen:l,onFullScreenToggle:()=>{o(actions.uiState.toggleFullScreen())},onPanelClose:()=>{e&&e()},disableSetting:n}),jsxRuntime.exports.jsx(LabelerIframe,{fullScreen:l,path:t.annotateUri}),jsxRuntime.exports.jsx(AnnotationSettings,{className:i.panel,fullScreen:l,blueEyeConfig:t}),jsxRuntime.exports.jsx(PublishAnnotations,{className:i.panel,fullScreen:l,blueEyeConfig:t,datasetAssets:s,publishCallback:a})]}))},DataLabelerPanel=e=>e.panelRendered?jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}):null;function*submitPublishAnnotationns(e){var e=e.payload,t=e.ids;const s=e.callback;s(t);e=yield select(preferredLanguageSelector);const a=AIWareFormatMessage(e);yield put(showMessage({content:a({id:"os-data-labeler.snackbar.submitPublishSuccess",defaultMessage:[{type:0,value:"Submit publish annotations successfully."}]}),severity:MessageSeverity.Info}))}function*watchSubmitPublishAnnotations(){yield takeEvery$1(actions.panelPublishAnnotations.submitPublishAnnotations.type,submitPublishAnnotationns)}function*rootSaga(){yield all([watchSubmitPublishAnnotations()])}function getDataLabelerBrowseModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}store.addModules([getDataLabelerBrowseModule()]);export{DataLabelerPanel};
1
+ import{z as createSvgIcon,C as interopRequireDefault,j as jsxRuntime}from"./js-core.esm.js";var VisibilityOutlined={},_interopRequireDefault=interopRequireDefault.exports,default_1=(Object.defineProperty(VisibilityOutlined,"__esModule",{value:!0}),VisibilityOutlined.default=void 0),_createSvgIcon=_interopRequireDefault(createSvgIcon),_jsxRuntime=jsxRuntime.exports,_default=(0,_createSvgIcon.default)((0,_jsxRuntime.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),default_1=VisibilityOutlined.default=_default;export{default_1 as d};
package/js-core.esm4.js CHANGED
@@ -1 +1 @@
1
- import{j as jsxRuntime,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,i as useDispatch,k as useSelector,l as authStatusSelector,n as authContextSelector,r as react,o as AuthContext,p as lodash,B as Box$1,T as Typography$1,q as Alert,t as authErrorMessage,G as Grid$1,v as FormControl$1,w as TextField,x as classnames,L as LoadingButton$1,y as resetPasswordRequest}from"./js-core.esm.js";var match,version,store,wmget,wmhas,wmset,set,get,has,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$c=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$b=function(e){try{return!!e()}catch(e){return!0}},fails$a=fails$b,descriptors=!fails$b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$9=fails$b,functionBindNative=!fails$b(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$1=functionBindNative,call$6=Function.prototype.call,functionCall=NATIVE_BIND$1?call$6.bind(call$6):function(){return call$6.apply(call$6,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,bind=FunctionPrototype$1.bind,call$5=FunctionPrototype$1.call,uncurryThis$d=NATIVE_BIND&&bind.bind(call$5,call$5),functionUncurryThis=NATIVE_BIND?function(e){return e&&uncurryThis$d(e)}:function(e){return e&&function(){return call$5.apply(e,arguments)}},uncurryThis$c=functionUncurryThis,toString$4=uncurryThis$c({}.toString),stringSlice$1=uncurryThis$c("".slice),classofRaw$1=function(e){return stringSlice$1(toString$4(e),8,-1)},uncurryThis$b=functionUncurryThis,fails$8=fails$b,classof$3=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$8(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$3(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$7=TypeError,requireObjectCoercible$3=function(e){if(null==e)throw $TypeError$7("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$2=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2(e))},isCallable$g=function(e){return"function"==typeof e},isCallable$f=isCallable$g,isObject$6=function(e){return"object"==typeof e?null!==e:isCallable$f(e)},global$b=global$c,isCallable$e=isCallable$g,aFunction=function(e){return isCallable$e(e)?e:void 0},getBuiltIn$4=function(e,t){return arguments.length<2?aFunction(global$b[e]):global$b[e]&&global$b[e][t]},uncurryThis$a=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$3=getBuiltIn$4,engineUserAgent=getBuiltIn$4("navigator","userAgent")||"",global$a=global$c,userAgent=engineUserAgent,process=global$a.process,Deno=global$a.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$7=fails$b,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$7(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$2=getBuiltIn$4,isCallable$d=isCallable$g,isPrototypeOf$1=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$2("Symbol");return isCallable$d(t)&&isPrototypeOf$1(t.prototype,$Object$3(e))},$String$3=String,tryToString$1=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$c=isCallable$g,tryToString=tryToString$1,$TypeError$6=TypeError,aCallable$1=function(e){if(isCallable$c(e))return e;throw $TypeError$6(tryToString(e)+" is not a function")},aCallable=aCallable$1,getMethod$1=function(e,t){e=e[t];return null==e?void 0:aCallable(e)},call$4=functionCall,isCallable$b=isCallable$g,isObject$5=isObject$6,$TypeError$5=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$b(r=e.toString)&&!isObject$5(o=call$4(r,e)))return o;if(isCallable$b(r=e.valueOf)&&!isObject$5(o=call$4(r,e)))return o;if("string"!==t&&isCallable$b(r=e.toString)&&!isObject$5(o=call$4(r,e)))return o;throw $TypeError$5("Can't convert object to primitive value")},shared$3={exports:{}},global$9=global$c,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$9,t,{value:r,configurable:!0,writable:!0})}catch(e){global$9[t]=r}return r},global$8=global$c,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$c[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$1=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$1(e))},uncurryThis$9=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$8=functionUncurryThis,id=0,postfix=Math.random(),toString$3=uncurryThis$8(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$3(++id+postfix,36)},global$7=global$c,shared$2=shared$3.exports,hasOwn$9=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$7.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$a=function(e){var t;return hasOwn$9(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$9(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$3=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$9=wellKnownSymbol$a,$TypeError$4=TypeError,TO_PRIMITIVE=wellKnownSymbol$a("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var r=getMethod(e,TO_PRIMITIVE);if(r){if(r=call$3(r,e,t=void 0===t?"default":t),!isObject$4(r)||isSymbol$1(r))return r;throw $TypeError$4("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$6=global$c,isObject$3=isObject$6,document$1=global$c.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$a=descriptors,fails$6=fails$b,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$b(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors,call$2=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$8(e,t))return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$8=descriptors,fails$5=fails$b,v8PrototypeDefineBug=descriptors&&fails$b(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$2=String,$TypeError$3=TypeError,anObject$5=function(e){if(isObject$2(e))return e;throw $TypeError$3($String$2(e)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$4=anObject$5,toPropertyKey=toPropertyKey$2,$TypeError$2=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$6=(objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$4(e),t=toPropertyKey(t),anObject$4(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&((o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1})),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$4(e),t=toPropertyKey(t),anObject$4(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$2("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6?function(e,t,r){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||getDescriptor(FunctionPrototype,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$7=functionUncurryThis,isCallable$a=isCallable$g,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$2=(isCallable$a(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$5=global$c,isCallable$9=isCallable$g,inspectSource$1=inspectSource$2,WeakMap$1=global$c.WeakMap,nativeWeakMap=isCallable$9(WeakMap$1)&&/native code/.test(inspectSource$1(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=nativeWeakMap,global$4=global$c,uncurryThis$6=functionUncurryThis,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$4.TypeError,WeakMap=global$4.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap),wmget=uncurryThis$6(store.get),wmhas=uncurryThis$6(store.has),wmset=uncurryThis$6(store.set),set=function(e,t){if(wmhas(store,e))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$6(e,STATE))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$6(e,STATE)?e[STATE]:{}},function(e){return hasOwn$6(e,STATE)}),{set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$4=fails$b,isCallable$8=isCallable$g,hasOwn$5=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource=inspectSource$2,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$1=InternalStateModule$1.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$4(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$5(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$5(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$5(r,"constructor")&&r.constructor?DESCRIPTORS$4&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$5(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$7=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$8(this)&&getInternalState$1(this).source||inspectSource(this)},"toString"),isCallable$g),definePropertyModule$2=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$3=function(e,t,r,o){var n=(o=o||{}).enumerable,s=void 0!==o.name?o.name:t;if(isCallable$7(r)&&makeBuiltIn(r,s,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$2.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$1=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike=lengthOfArrayLike$1,createMethod=function(a){return function(e,t,r){var o,n=toIndexedObject$3(e),s=lengthOfArrayLike(n),i=toAbsoluteIndex(r,s);if(a&&t!=t){for(;i<s;)if((o=n[i++])!=o)return!0}else for(;i<s;i++)if((a||i in n)&&n[i]===t)return a||i||0;return!a&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$5=functionUncurryThis,hasOwn$4=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$5([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,s=[];for(r in o)!hasOwn$4(hiddenKeys$2,r)&&hasOwn$4(o,r)&&push(s,r);for(;t.length>n;)!hasOwn$4(o,r=t[n++])||~indexOf(s,r)||push(s,r);return s},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$1=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$4),uncurryThis$4=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$3=anObject$5,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$3(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$3=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$1.f,s=getOwnPropertyDescriptorModule.f,i=0;i<o.length;i++){var a=o[i];hasOwn$3(e,a)||r&&hasOwn$3(r,a)||n(e,a,s(t,a))}},fails$3=fails$b,isCallable$6=isCallable$g,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$6(t)?fails$3(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$3=global$c,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced=isForced_1,_export=function(e,t){var r,o,n,s=e.target,i=e.global,a=e.stat,l=i?global$3:a?global$3[s]||defineGlobalProperty(s,{}):(global$3[s]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor(l,r))&&n.value:l[r],!isForced(i?r:s+(a?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties$1(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$2(o,"sham",!0),defineBuiltIn$2(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$3=descriptors,uncurryThis$3=functionUncurryThis,call$1=functionCall,fails$2=fails$b,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$3([].concat),objectAssign=!$assign||fails$2(function(){if(DESCRIPTORS$3&&1!==$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r]||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$1(e),o=arguments.length,n=1,s=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n<o;)for(var a,l=IndexedObject(arguments[n++]),c=s?concat(objectKeys$1(l),s(l)):objectKeys$1(l),u=c.length,$=0;$<u;)a=c[$++],DESCRIPTORS$3&&!call$1(i,l,a)||(r[a]=l[a]);return r}:$assign,$$3=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SHARED_TEXT={resetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},useStyles=makeStyles()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"}}));var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$2=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$2=anObject$5,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn=(objectDefineProperties.f=DESCRIPTORS$2&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$2(e);for(var r,o=toIndexedObject$1(t),n=objectKeys(t),s=n.length,i=0;i<s;)definePropertyModule.f(e,r=n[i++],o[r]);return e},getBuiltIn$4),html$1=getBuiltIn$4("document","documentElement"),anObject$1=anObject$5,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$1(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$8=wellKnownSymbol$a,create$1=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$8("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$1=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$3(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),iterators={},fails$1=fails$b,correctPrototypeGetter=!fails$b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$2=hasOwnProperty_1,isCallable$5=isCallable$g,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){e=toObject(e);if(hasOwn$2(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return isCallable$5(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null},fails=fails$b,isCallable$4=isCallable$g,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$7=wellKnownSymbol$a,ITERATOR$2=wellKnownSymbol$a("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$4((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$1=hasOwnProperty_1,wellKnownSymbol$6=wellKnownSymbol$a,TO_STRING_TAG$3=wellKnownSymbol$a("toStringTag"),setToStringTag$2=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$1(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$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,r,o){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!o,r)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},isCallable$3=isCallable$g,$String$1=String,$TypeError$1=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$3(e))return e;throw $TypeError$1("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$2=functionUncurryThis,anObject=anObject$5,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=uncurryThis$2(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return anObject(e),aPossiblePrototype(t),o?r(e,t):e.__proto__=t,e}}():void 0),$$2=_export,call=functionCall,FunctionName=functionName,isCallable$2=isCallable$g,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$5=wellKnownSymbol$a,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$5("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,o,n,s,i){createIteratorConstructor(r,t,o);function a(e){if(e===n&&y)return y;if(!BUGGY_SAFARI_ITERATORS&&e in $)return $[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,o=t+" Iterator",u=!1,$=e.prototype,p=$[ITERATOR$1]||$["@@iterator"]||n&&$[n],y=!BUGGY_SAFARI_ITERATORS&&p||a(n),b="Array"==t&&$.entries||p;if(b&&(b=getPrototypeOf(b.call(new e)))!==Object.prototype&&b.next&&(getPrototypeOf(b)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(b,IteratorPrototype):isCallable$2(b[ITERATOR$1])||defineBuiltIn(b,ITERATOR$1,returnThis)),setToStringTag(b,o,!0)),PROPER_FUNCTION_NAME&&n==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1($,"name",VALUES):(u=!0,y=function(){return call(p,this)})),n)if(l={values:a(VALUES),keys:s?y:a(KEYS),entries:a(ENTRIES)},i)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in $||defineBuiltIn($,c,l[c]);else $$2({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return $[ITERATOR$1]!==y&&defineBuiltIn($,ITERATOR$1,y,{name:n}),Iterators$1[t]=y,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$1=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:o,done:!1}:"values"==r?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$1&&"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$2=global$c,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$4=wellKnownSymbol$a,ITERATOR=wellKnownSymbol$4("iterator"),TO_STRING_TAG$2=wellKnownSymbol$4("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$2[COLLECTION_NAME]&&global$2[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace,stringSlice,PwdRequirements,isObject=isObject$6,classof$2=classofRaw$1,wellKnownSymbol$3=wellKnownSymbol$a,MATCH$1=wellKnownSymbol$a("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$2(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},wellKnownSymbol$2=wellKnownSymbol$a,TO_STRING_TAG$1=wellKnownSymbol$a("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$1=isCallable$g,classofRaw=classofRaw$1,wellKnownSymbol$1=wellKnownSymbol$a,TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$1(e.callee)?"Arguments":t},classof=classof$1,$String=String,toString$2=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},wellKnownSymbol=wellKnownSymbol$a,MATCH=wellKnownSymbol$a("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$1=_export,uncurryThis$1=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$3,toString$1=toString$2,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf),$=($$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$1(requireObjectCoercible(this)),toString$1(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),_export),DESCRIPTORS=descriptors,global$1=global$c,uncurryThis=functionUncurryThis,hasOwn=hasOwnProperty_1,isCallable=isCallable$g,isPrototypeOf=objectIsPrototypeOf,toString=toString$2,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$1.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ResetPasswordForm({onBtnClick:e,requiresRestriction:t,disableForm:r=!1,columnView:o=!1}){var n=useStyles()["classes"],s=useSelector(authStatusSelector);const i=useSelector(authErrorMessage);var a=useSelector(authContextSelector);const[l,c]=react.exports.useState(""),[u,$]=react.exports.useState(""),[p,y]=react.exports.useState({[PwdRequirements.lengthCheck]:null,[PwdRequirements.userNameCheck]:null,[PwdRequirements.dictionaryCheck]:null,[PwdRequirements.pastPasswordCheck]:null,[PwdRequirements.passwordComplexityCheck]:null,[PwdRequirements.passwordChangeFrequencyCheck]:null}),[b,d]=react.exports.useState(null);s="loading"===s&&a===AuthContext.ResetPassword;const f=lodash.exports.isEqual(l,u);a=Object.values(p).includes(!1);react.exports.useEffect(()=>{try{if(i){var e=JSON.parse(i);const t=e["description"],o=__rest(e,["description"]);Object.keys(o).forEach(e=>{var t=e,r=o[e];y(e=>Object.assign(Object.assign({},e),{[t]:r}))}),d(t)}else d(null)}catch(e){d(i)}finally{$("")}},[i]);const m=[{label:SHARED_TEXT.lengthCheck,error:p[PwdRequirements.lengthCheck]},{label:SHARED_TEXT.pastPasswordCheck,error:p[PwdRequirements.pastPasswordCheck]},{label:SHARED_TEXT.userNameCheck,error:p[PwdRequirements.userNameCheck]},{label:SHARED_TEXT.dictionaryCheck,error:p[PwdRequirements.dictionaryCheck]},...p[PwdRequirements.passwordComplexityCheck]?[{label:SHARED_TEXT.passwordComplexityCheckSymbols,error:!0},{label:SHARED_TEXT.passwordComplexityCheckDays,error:!0}]:[]];return jsxRuntime.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:jsxRuntime.exports.jsxs(Grid$1,Object.assign({container:!0,spacing:6,mt:3},{children:[jsxRuntime.exports.jsxs(Grid$1,Object.assign({item:!0,sm:o?12:7,xs:12},{children:[jsxRuntime.exports.jsx(FormControl$1,Object.assign({fullWidth:!0,sx:{mb:6}},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",value:l,onChange:e=>c(e.target.value),error:a,autoComplete:"off",disabled:r})})),jsxRuntime.exports.jsx(FormControl$1,Object.assign({fullWidth:!0},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:u,onChange:e=>$(e.target.value),autoComplete:"off",error:!f&&!!u,helperText:!f&&u&&SHARED_TEXT.passwordsNotMatching,disabled:r})})),b&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:b}))]})),t&&jsxRuntime.exports.jsxs(Grid$1,Object.assign({item:!0,sm:o?12:5,xs:12},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h6",className:n.h6},{children:SHARED_TEXT.passwordRequirements})),jsxRuntime.exports.jsx("ul",Object.assign({className:n.requirements,"data-testid":"rp-requirements-list"},{children:m.map((e,t)=>jsxRuntime.exports.jsx("li",Object.assign({className:classnames({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),jsxRuntime.exports.jsx(Grid$1,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:jsxRuntime.exports.jsx(LoadingButton$1,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:n.submitButton,onClick:()=>{lodash.exports.isEmpty(l)||lodash.exports.isEmpty(u)||!f||e(l)},loading:s,disabled:r},{children:SHARED_TEXT.resetPasswordSubmitButton}))}))]}))}))}!DESCRIPTORS||!isCallable(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString(arguments[0]),t=isPrototypeOf(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis(SymbolPrototype.toString),symbolValueOf=uncurryThis(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);if(hasOwn(EmptyStringDescriptionStore,e))return"";e=NATIVE_SYMBOL?stringSlice(t,7,-1):replace(t,regexp,"$1");return""===e?void 0:e}}),$({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),function(e){e.lengthCheck="lengthCheck",e.userNameCheck="userNameCheck",e.dictionaryCheck="dictionaryCheck",e.pastPasswordCheck="pastPasswordCheck",e.passwordComplexityCheck="passwordComplexityCheck",e.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck"}(PwdRequirements=PwdRequirements||{});const DEFAULT_CONTAINER_WIDTH=740,CONTAINER_WIDTH_BREAKPOINT=400;function ResetPasswordWidget({resetToken:t,username:r,requiresPasswordRestriction:e=!1,onSuccess:o,organizationInviteId:n,containerWidth:s=DEFAULT_CONTAINER_WIDTH}){var i=useStyles()["classes"];const a=useDispatch(),l=useSelector(authStatusSelector),c=useSelector(authContextSelector);react.exports.useEffect(()=>{"success"===l&&c===AuthContext.ResetPassword&&null!=o&&o()},[l,c]);var u=lodash.exports.isEmpty(t)||lodash.exports.isEmpty(r),$=s<=CONTAINER_WIDTH_BREAKPOINT||!e;return jsxRuntime.exports.jsxs(Box$1,Object.assign({p:4,id:"reset-password-widget",width:s},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:i.title},{children:SHARED_TEXT.resetPasswordTitle})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT.resetPasswordSubHeader})),u&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:SHARED_TEXT.invalidTokenOrUsername})),jsxRuntime.exports.jsx(ResetPasswordForm,{onBtnClick:e=>{a(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n}))},requiresRestriction:e,disableForm:u,columnView:$})]}))}const ResetPassword=e=>jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ResetPasswordWidget,Object.assign({},e))});export{ResetPassword};
1
+ import{j as jsxRuntime,F as FormattedMessage,m as makeStyles,A as AIWareIntlProvider,i as useDispatch,k as useSelector,l as authStatusSelector,n as authContextSelector,r as react,o as AuthContext,p as lodash,B as Box$1,T as Typography$1,q as Alert,t as authErrorMessage,G as Grid,v as FormControl$1,w as TextField,x as classnames,L as LoadingButton,y as resetPasswordRequest}from"./js-core.esm.js";var match,version,store,wmget,wmhas,wmset,set,get,has,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$c=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$b=function(e){try{return!!e()}catch(e){return!0}},fails$a=fails$b,descriptors=!fails$b(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),fails$9=fails$b,functionBindNative=!fails$b(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),NATIVE_BIND$1=functionBindNative,call$6=Function.prototype.call,functionCall=NATIVE_BIND$1?call$6.bind(call$6):function(){return call$6.apply(call$6,arguments)},objectPropertyIsEnumerable={},$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$1&&!$propertyIsEnumerable.call({1:2},1),createPropertyDescriptor$3=(objectPropertyIsEnumerable.f=NASHORN_BUG?function(e){e=getOwnPropertyDescriptor$1(this,e);return!!e&&e.enumerable}:$propertyIsEnumerable,function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}),NATIVE_BIND=functionBindNative,FunctionPrototype$1=Function.prototype,bind=FunctionPrototype$1.bind,call$5=FunctionPrototype$1.call,uncurryThis$d=NATIVE_BIND&&bind.bind(call$5,call$5),functionUncurryThis=NATIVE_BIND?function(e){return e&&uncurryThis$d(e)}:function(e){return e&&function(){return call$5.apply(e,arguments)}},uncurryThis$c=functionUncurryThis,toString$4=uncurryThis$c({}.toString),stringSlice$1=uncurryThis$c("".slice),classofRaw$1=function(e){return stringSlice$1(toString$4(e),8,-1)},uncurryThis$b=functionUncurryThis,fails$8=fails$b,classof$3=classofRaw$1,$Object$4=Object,split=functionUncurryThis("".split),indexedObject=fails$8(function(){return!$Object$4("z").propertyIsEnumerable(0)})?function(e){return"String"==classof$3(e)?split(e,""):$Object$4(e)}:$Object$4,$TypeError$7=TypeError,requireObjectCoercible$3=function(e){if(null==e)throw $TypeError$7("Can't call method on "+e);return e},IndexedObject$1=indexedObject,requireObjectCoercible$2=requireObjectCoercible$3,toIndexedObject$5=function(e){return IndexedObject$1(requireObjectCoercible$2(e))},isCallable$g=function(e){return"function"==typeof e},isCallable$f=isCallable$g,isObject$6=function(e){return"object"==typeof e?null!==e:isCallable$f(e)},global$b=global$c,isCallable$e=isCallable$g,aFunction=function(e){return isCallable$e(e)?e:void 0},getBuiltIn$4=function(e,t){return arguments.length<2?aFunction(global$b[e]):global$b[e]&&global$b[e][t]},uncurryThis$a=functionUncurryThis,objectIsPrototypeOf=functionUncurryThis({}.isPrototypeOf),getBuiltIn$3=getBuiltIn$4,engineUserAgent=getBuiltIn$4("navigator","userAgent")||"",global$a=global$c,userAgent=engineUserAgent,process=global$a.process,Deno=global$a.Deno,versions=process&&process.versions||Deno&&Deno.version,v8=versions&&versions.v8,engineV8Version=version=!(version=v8?0<(match=v8.split("."))[0]&&match[0]<4?1:+(match[0]+match[1]):version)&&userAgent&&(!(match=userAgent.match(/Edge\/(\d+)/))||74<=match[1])&&(match=userAgent.match(/Chrome\/(\d+)/))?+match[1]:version,V8_VERSION=version,fails$7=fails$b,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails$7(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&V8_VERSION&&V8_VERSION<41}),NATIVE_SYMBOL$2=nativeSymbol,useSymbolAsUid=nativeSymbol&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,getBuiltIn$2=getBuiltIn$4,isCallable$d=isCallable$g,isPrototypeOf$1=objectIsPrototypeOf,USE_SYMBOL_AS_UID$1=useSymbolAsUid,$Object$3=Object,isSymbol$2=useSymbolAsUid?function(e){return"symbol"==typeof e}:function(e){var t=getBuiltIn$2("Symbol");return isCallable$d(t)&&isPrototypeOf$1(t.prototype,$Object$3(e))},$String$3=String,tryToString$1=function(e){try{return $String$3(e)}catch(e){return"Object"}},isCallable$c=isCallable$g,tryToString=tryToString$1,$TypeError$6=TypeError,aCallable$1=function(e){if(isCallable$c(e))return e;throw $TypeError$6(tryToString(e)+" is not a function")},aCallable=aCallable$1,getMethod$1=function(e,t){e=e[t];return null==e?void 0:aCallable(e)},call$4=functionCall,isCallable$b=isCallable$g,isObject$5=isObject$6,$TypeError$5=TypeError,ordinaryToPrimitive$1=function(e,t){var r,o;if("string"===t&&isCallable$b(r=e.toString)&&!isObject$5(o=call$4(r,e)))return o;if(isCallable$b(r=e.valueOf)&&!isObject$5(o=call$4(r,e)))return o;if("string"!==t&&isCallable$b(r=e.toString)&&!isObject$5(o=call$4(r,e)))return o;throw $TypeError$5("Can't convert object to primitive value")},shared$3={exports:{}},global$9=global$c,defineProperty$6=Object.defineProperty,defineGlobalProperty$3=function(t,r){try{defineProperty$6(global$9,t,{value:r,configurable:!0,writable:!0})}catch(e){global$9[t]=r}return r},global$8=global$c,defineGlobalProperty$2=defineGlobalProperty$3,SHARED="__core-js_shared__",store$3=global$c[SHARED]||defineGlobalProperty$2(SHARED,{}),sharedStore=store$3,store$2=sharedStore,requireObjectCoercible$1=((shared$3.exports=function(e,t){return store$2[e]||(store$2[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),requireObjectCoercible$3),$Object$2=Object,toObject$3=function(e){return $Object$2(requireObjectCoercible$1(e))},uncurryThis$9=functionUncurryThis,toObject$2=toObject$3,hasOwnProperty=functionUncurryThis({}.hasOwnProperty),hasOwnProperty_1=Object.hasOwn||function(e,t){return hasOwnProperty(toObject$2(e),t)},uncurryThis$8=functionUncurryThis,id=0,postfix=Math.random(),toString$3=uncurryThis$8(1..toString),uid$2=function(e){return"Symbol("+(void 0===e?"":e)+")_"+toString$3(++id+postfix,36)},global$7=global$c,shared$2=shared$3.exports,hasOwn$9=hasOwnProperty_1,uid$1=uid$2,NATIVE_SYMBOL$1=nativeSymbol,USE_SYMBOL_AS_UID=useSymbolAsUid,WellKnownSymbolsStore=shared$2("wks"),Symbol$1=global$7.Symbol,symbolFor=Symbol$1&&Symbol$1.for,createWellKnownSymbol=USE_SYMBOL_AS_UID?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid$1,wellKnownSymbol$a=function(e){var t;return hasOwn$9(WellKnownSymbolsStore,e)&&(NATIVE_SYMBOL$1||"string"==typeof WellKnownSymbolsStore[e])||(t="Symbol."+e,NATIVE_SYMBOL$1&&hasOwn$9(Symbol$1,e)?WellKnownSymbolsStore[e]=Symbol$1[e]:WellKnownSymbolsStore[e]=(USE_SYMBOL_AS_UID&&symbolFor?symbolFor:createWellKnownSymbol)(t)),WellKnownSymbolsStore[e]},call$3=functionCall,isObject$4=isObject$6,isSymbol$1=isSymbol$2,getMethod=getMethod$1,ordinaryToPrimitive=ordinaryToPrimitive$1,wellKnownSymbol$9=wellKnownSymbol$a,$TypeError$4=TypeError,TO_PRIMITIVE=wellKnownSymbol$a("toPrimitive"),toPrimitive$1=function(e,t){if(!isObject$4(e)||isSymbol$1(e))return e;var r=getMethod(e,TO_PRIMITIVE);if(r){if(r=call$3(r,e,t=void 0===t?"default":t),!isObject$4(r)||isSymbol$1(r))return r;throw $TypeError$4("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$6=global$c,isObject$3=isObject$6,document$1=global$c.document,EXISTS$1=isObject$3(document$1)&&isObject$3(document$1.createElement),documentCreateElement$2=function(e){return EXISTS$1?document$1.createElement(e):{}},DESCRIPTORS$a=descriptors,fails$6=fails$b,createElement=documentCreateElement$2,ie8DomDefine=!descriptors&&!fails$b(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a}),DESCRIPTORS$9=descriptors,call$2=functionCall,propertyIsEnumerableModule$1=objectPropertyIsEnumerable,createPropertyDescriptor$2=createPropertyDescriptor$3,toIndexedObject$4=toIndexedObject$5,toPropertyKey$1=toPropertyKey$2,hasOwn$8=hasOwnProperty_1,IE8_DOM_DEFINE$1=ie8DomDefine,$getOwnPropertyDescriptor$1=Object.getOwnPropertyDescriptor,objectDefineProperty=(objectGetOwnPropertyDescriptor.f=DESCRIPTORS$9?$getOwnPropertyDescriptor$1:function(e,t){if(e=toIndexedObject$4(e),t=toPropertyKey$1(t),IE8_DOM_DEFINE$1)try{return $getOwnPropertyDescriptor$1(e,t)}catch(e){}if(hasOwn$8(e,t))return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f,e,t),e[t])},{}),DESCRIPTORS$8=descriptors,fails$5=fails$b,v8PrototypeDefineBug=descriptors&&fails$b(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),isObject$2=isObject$6,$String$2=String,$TypeError$3=TypeError,anObject$5=function(e){if(isObject$2(e))return e;throw $TypeError$3($String$2(e)+" is not an object")},DESCRIPTORS$7=descriptors,IE8_DOM_DEFINE=ie8DomDefine,V8_PROTOTYPE_DEFINE_BUG$1=v8PrototypeDefineBug,anObject$4=anObject$5,toPropertyKey=toPropertyKey$2,$TypeError$2=TypeError,$defineProperty=Object.defineProperty,$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,ENUMERABLE="enumerable",CONFIGURABLE$1="configurable",WRITABLE="writable",DESCRIPTORS$6=(objectDefineProperty.f=DESCRIPTORS$7?V8_PROTOTYPE_DEFINE_BUG$1?function(e,t,r){var o;return anObject$4(e),t=toPropertyKey(t),anObject$4(r),"function"==typeof e&&"prototype"===t&&"value"in r&&WRITABLE in r&&!r[WRITABLE]&&((o=$getOwnPropertyDescriptor(e,t))&&o[WRITABLE]&&(e[t]=r.value,r={configurable:(CONFIGURABLE$1 in r?r:o)[CONFIGURABLE$1],enumerable:(ENUMERABLE in r?r:o)[ENUMERABLE],writable:!1})),$defineProperty(e,t,r)}:$defineProperty:function(e,t,r){if(anObject$4(e),t=toPropertyKey(t),anObject$4(r),IE8_DOM_DEFINE)try{return $defineProperty(e,t,r)}catch(e){}if("get"in r||"set"in r)throw $TypeError$2("Accessors not supported");return"value"in r&&(e[t]=r.value),e},descriptors),definePropertyModule$3=objectDefineProperty,createPropertyDescriptor$1=createPropertyDescriptor$3,createNonEnumerableProperty$4=DESCRIPTORS$6?function(e,t,r){return definePropertyModule$3.f(e,t,createPropertyDescriptor$1(1,r))}:function(e,t,r){return e[t]=r,e},makeBuiltIn$2={exports:{}},DESCRIPTORS$5=descriptors,hasOwn$7=hasOwnProperty_1,FunctionPrototype=Function.prototype,getDescriptor=DESCRIPTORS$5&&Object.getOwnPropertyDescriptor,EXISTS=hasOwn$7(FunctionPrototype,"name"),PROPER=EXISTS&&"something"===function(){}.name,CONFIGURABLE=EXISTS&&(!DESCRIPTORS$5||getDescriptor(FunctionPrototype,"name").configurable),functionName={EXISTS:EXISTS,PROPER:PROPER,CONFIGURABLE:CONFIGURABLE},uncurryThis$7=functionUncurryThis,isCallable$a=isCallable$g,store$1=sharedStore,functionToString=functionUncurryThis(Function.toString),inspectSource$2=(isCallable$a(store$1.inspectSource)||(store$1.inspectSource=function(e){return functionToString(e)}),store$1.inspectSource),global$5=global$c,isCallable$9=isCallable$g,inspectSource$1=inspectSource$2,WeakMap$1=global$c.WeakMap,nativeWeakMap=isCallable$9(WeakMap$1)&&/native code/.test(inspectSource$1(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=nativeWeakMap,global$4=global$c,uncurryThis$6=functionUncurryThis,isObject$1=isObject$6,createNonEnumerableProperty$3=createNonEnumerableProperty$4,hasOwn$6=hasOwnProperty_1,shared=sharedStore,sharedKey$2=sharedKey$3,hiddenKeys$3=hiddenKeys$4,OBJECT_ALREADY_INITIALIZED="Object already initialized",TypeError$1=global$4.TypeError,WeakMap=global$4.WeakMap,enforce=function(e){return has(e)?get(e):set(e,{})},getterFor=function(t){return function(e){if(isObject$1(e)&&(e=get(e)).type===t)return e;throw TypeError$1("Incompatible receiver, "+t+" required")}},internalState=(has=NATIVE_WEAK_MAP||shared.state?(store=shared.state||(shared.state=new WeakMap),wmget=uncurryThis$6(store.get),wmhas=uncurryThis$6(store.has),wmset=uncurryThis$6(store.set),set=function(e,t){if(wmhas(store,e))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,wmset(store,e,t),t},get=function(e){return wmget(store,e)||{}},function(e){return wmhas(store,e)}):(STATE=sharedKey$2("state"),hiddenKeys$3[STATE]=!0,set=function(e,t){if(hasOwn$6(e,STATE))throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);return t.facade=e,createNonEnumerableProperty$3(e,STATE,t),t},get=function(e){return hasOwn$6(e,STATE)?e[STATE]:{}},function(e){return hasOwn$6(e,STATE)}),{set:set,get:get,has:has,enforce:enforce,getterFor:getterFor}),fails$4=fails$b,isCallable$8=isCallable$g,hasOwn$5=hasOwnProperty_1,DESCRIPTORS$4=descriptors,CONFIGURABLE_FUNCTION_NAME$1=functionName.CONFIGURABLE,inspectSource=inspectSource$2,InternalStateModule$1=internalState,enforceInternalState=InternalStateModule$1.enforce,getInternalState$1=InternalStateModule$1.get,defineProperty$5=Object.defineProperty,CONFIGURABLE_LENGTH=DESCRIPTORS$4&&!fails$4(function(){return 8!==defineProperty$5(function(){},"length",{value:8}).length}),TEMPLATE=String(String).split("String"),makeBuiltIn$1=makeBuiltIn$2.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!hasOwn$5(e,"name")||CONFIGURABLE_FUNCTION_NAME$1&&e.name!==t)&&(DESCRIPTORS$4?defineProperty$5(e,"name",{value:t,configurable:!0}):e.name=t),CONFIGURABLE_LENGTH&&r&&hasOwn$5(r,"arity")&&e.length!==r.arity&&defineProperty$5(e,"length",{value:r.arity});try{r&&hasOwn$5(r,"constructor")&&r.constructor?DESCRIPTORS$4&&defineProperty$5(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=enforceInternalState(e);return hasOwn$5(r,"source")||(r.source=TEMPLATE.join("string"==typeof t?t:"")),e},isCallable$7=(Function.prototype.toString=makeBuiltIn$1(function(){return isCallable$8(this)&&getInternalState$1(this).source||inspectSource(this)},"toString"),isCallable$g),definePropertyModule$2=objectDefineProperty,makeBuiltIn=makeBuiltIn$2.exports,defineGlobalProperty$1=defineGlobalProperty$3,defineBuiltIn$3=function(e,t,r,o){var n=(o=o||{}).enumerable,s=void 0!==o.name?o.name:t;if(isCallable$7(r)&&makeBuiltIn(r,s,o),o.global)n?e[t]=r:defineGlobalProperty$1(t,r);else{try{o.unsafe?e[t]&&(n=!0):delete e[t]}catch(e){}n?e[t]=r:definePropertyModule$2.f(e,t,{value:r,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e},objectGetOwnPropertyNames={},ceil=Math.ceil,floor=Math.floor,mathTrunc=Math.trunc||function(e){e=+e;return(0<e?floor:ceil)(e)},trunc=mathTrunc,toIntegerOrInfinity$2=function(e){e=+e;return e!=e||0==e?0:trunc(e)},toIntegerOrInfinity$1=toIntegerOrInfinity$2,max=Math.max,min$1=Math.min,toAbsoluteIndex$1=function(e,t){e=toIntegerOrInfinity$1(e);return e<0?max(e+t,0):min$1(e,t)},toIntegerOrInfinity=toIntegerOrInfinity$2,min=Math.min,toLength$1=function(e){return 0<e?min(toIntegerOrInfinity(e),9007199254740991):0},toLength=toLength$1,lengthOfArrayLike$1=function(e){return toLength(e.length)},toIndexedObject$3=toIndexedObject$5,toAbsoluteIndex=toAbsoluteIndex$1,lengthOfArrayLike=lengthOfArrayLike$1,createMethod=function(a){return function(e,t,r){var o,n=toIndexedObject$3(e),s=lengthOfArrayLike(n),i=toAbsoluteIndex(r,s);if(a&&t!=t){for(;i<s;)if((o=n[i++])!=o)return!0}else for(;i<s;i++)if((a||i in n)&&n[i]===t)return a||i||0;return!a&&-1}},arrayIncludes={includes:createMethod(!0),indexOf:createMethod(!1)},uncurryThis$5=functionUncurryThis,hasOwn$4=hasOwnProperty_1,toIndexedObject$2=toIndexedObject$5,indexOf=arrayIncludes.indexOf,hiddenKeys$2=hiddenKeys$4,push=uncurryThis$5([].push),objectKeysInternal=function(e,t){var r,o=toIndexedObject$2(e),n=0,s=[];for(r in o)!hasOwn$4(hiddenKeys$2,r)&&hasOwn$4(o,r)&&push(s,r);for(;t.length>n;)!hasOwn$4(o,r=t[n++])||~indexOf(s,r)||push(s,r);return s},enumBugKeys$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],internalObjectKeys$1=objectKeysInternal,enumBugKeys$2=enumBugKeys$3,hiddenKeys$1=enumBugKeys$3.concat("length","prototype"),objectGetOwnPropertySymbols=(objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(e){return internalObjectKeys$1(e,hiddenKeys$1)},{}),getBuiltIn$1=(objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols,getBuiltIn$4),uncurryThis$4=functionUncurryThis,getOwnPropertyNamesModule=objectGetOwnPropertyNames,getOwnPropertySymbolsModule$1=objectGetOwnPropertySymbols,anObject$3=anObject$5,concat$1=functionUncurryThis([].concat),ownKeys$1=getBuiltIn$1("Reflect","ownKeys")||function(e){var t=getOwnPropertyNamesModule.f(anObject$3(e)),r=getOwnPropertySymbolsModule$1.f;return r?concat$1(t,r(e)):t},hasOwn$3=hasOwnProperty_1,ownKeys=ownKeys$1,getOwnPropertyDescriptorModule=objectGetOwnPropertyDescriptor,definePropertyModule$1=objectDefineProperty,copyConstructorProperties$2=function(e,t,r){for(var o=ownKeys(t),n=definePropertyModule$1.f,s=getOwnPropertyDescriptorModule.f,i=0;i<o.length;i++){var a=o[i];hasOwn$3(e,a)||r&&hasOwn$3(r,a)||n(e,a,s(t,a))}},fails$3=fails$b,isCallable$6=isCallable$g,replacement=/#|\.prototype\./,isForced$1=function(e,t){e=data[normalize(e)];return e==POLYFILL||e!=NATIVE&&(isCallable$6(t)?fails$3(t):!!t)},normalize=isForced$1.normalize=function(e){return String(e).replace(replacement,".").toLowerCase()},data=isForced$1.data={},NATIVE=isForced$1.NATIVE="N",POLYFILL=isForced$1.POLYFILL="P",isForced_1=isForced$1,global$3=global$c,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,createNonEnumerableProperty$2=createNonEnumerableProperty$4,defineBuiltIn$2=defineBuiltIn$3,defineGlobalProperty=defineGlobalProperty$3,copyConstructorProperties$1=copyConstructorProperties$2,isForced=isForced_1,_export=function(e,t){var r,o,n,s=e.target,i=e.global,a=e.stat,l=i?global$3:a?global$3[s]||defineGlobalProperty(s,{}):(global$3[s]||{}).prototype;if(l)for(r in t){if(o=t[r],n=e.dontCallGetSet?(n=getOwnPropertyDescriptor(l,r))&&n.value:l[r],!isForced(i?r:s+(a?".":"#")+r,e.forced)&&void 0!==n){if(typeof o==typeof n)continue;copyConstructorProperties$1(o,n)}(e.sham||n&&n.sham)&&createNonEnumerableProperty$2(o,"sham",!0),defineBuiltIn$2(l,r,o,e)}},internalObjectKeys=objectKeysInternal,enumBugKeys$1=enumBugKeys$3,objectKeys$2=Object.keys||function(e){return internalObjectKeys(e,enumBugKeys$1)},DESCRIPTORS$3=descriptors,uncurryThis$3=functionUncurryThis,call$1=functionCall,fails$2=fails$b,objectKeys$1=objectKeys$2,getOwnPropertySymbolsModule=objectGetOwnPropertySymbols,propertyIsEnumerableModule=objectPropertyIsEnumerable,toObject$1=toObject$3,IndexedObject=indexedObject,$assign=Object.assign,defineProperty$4=Object.defineProperty,concat=uncurryThis$3([].concat),objectAssign=!$assign||fails$2(function(){if(DESCRIPTORS$3&&1!==$assign({b:1},$assign(defineProperty$4({},"a",{enumerable:!0,get:function(){defineProperty$4(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r]||objectKeys$1($assign({},t)).join("")!=o})?function(e,t){for(var r=toObject$1(e),o=arguments.length,n=1,s=getOwnPropertySymbolsModule.f,i=propertyIsEnumerableModule.f;n<o;)for(var a,l=IndexedObject(arguments[n++]),c=s?concat(objectKeys$1(l),s(l)):objectKeys$1(l),u=c.length,$=0;$<u;)a=c[$++],DESCRIPTORS$3&&!call$1(i,l,a)||(r[a]=l[a]);return r}:$assign,$$3=_export,assign=objectAssign;_export({target:"Object",stat:!0,arity:2,forced:Object.assign!==assign},{assign:assign});const SHARED_TEXT={resetPasswordTitle:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.subHeader",defaultMessage:"A strong password contains a mix of numbers, letters and symbols. It is hard to guess, does not resemble a real word and is only used for this account.",description:"Description of the reset password widget"}),passwordRequirements:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckSymbols",defaultMessage:"Requires 1 lowercase, 1 uppercase, 1 number, and 1 symbol.",description:"The error message for the check symbols error."}),passwordComplexityCheckDays:jsxRuntime.exports.jsx(FormattedMessage,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},useStyles=makeStyles()(e=>({title:{textTransform:"initial",fontSize:22,marginBottom:e.spacing(4)},subHeader:{color:"#9CA8B4"},h6:{color:"#27292B"},requirements:{listStyle:"disc",padding:0,marginLeft:e.spacing(5),"& li":{marginBottom:e.spacing(1),color:"#27292B",fontSize:14,fontWeight:400,"&.requirementError":{color:"#D50000"}}},submitButton:{height:55,background:"#214167",fontSize:18,width:"100%",maxWidth:380,textTransform:"uppercase"}}));var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$2=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$2=anObject$5,toIndexedObject$1=toIndexedObject$5,objectKeys=objectKeys$2,getBuiltIn=(objectDefineProperties.f=DESCRIPTORS$2&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$2(e);for(var r,o=toIndexedObject$1(t),n=objectKeys(t),s=n.length,i=0;i<s;)definePropertyModule.f(e,r=n[i++],o[r]);return e},getBuiltIn$4),html$1=getBuiltIn$4("document","documentElement"),anObject$1=anObject$5,definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$3,hiddenKeys=hiddenKeys$4,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$3,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$3("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject$1(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$8=wellKnownSymbol$a,create$1=objectCreate,defineProperty$3=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$8("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$1=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$3(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),iterators={},fails$1=fails$b,correctPrototypeGetter=!fails$b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn$2=hasOwnProperty_1,isCallable$5=isCallable$g,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){e=toObject(e);if(hasOwn$2(e,IE_PROTO))return e[IE_PROTO];var t=e.constructor;return isCallable$5(t)&&e instanceof t?t.prototype:e instanceof $Object$1?ObjectPrototype:null},fails=fails$b,isCallable$4=isCallable$g,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$7=wellKnownSymbol$a,ITERATOR$2=wellKnownSymbol$a("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$4((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),defineProperty$2=objectDefineProperty.f,hasOwn$1=hasOwnProperty_1,wellKnownSymbol$6=wellKnownSymbol$a,TO_STRING_TAG$3=wellKnownSymbol$a("toStringTag"),setToStringTag$2=function(e,t,r){(e=e&&!r?e.prototype:e)&&!hasOwn$1(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$1=setToStringTag$2,Iterators$2=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,r,o){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!o,r)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},isCallable$3=isCallable$g,$String$1=String,$TypeError$1=TypeError,aPossiblePrototype$1=function(e){if("object"==typeof e||isCallable$3(e))return e;throw $TypeError$1("Can't set "+$String$1(e)+" as a prototype")},uncurryThis$2=functionUncurryThis,anObject=anObject$5,aPossiblePrototype=aPossiblePrototype$1,objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var r,o=!1,e={};try{(r=uncurryThis$2(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),o=e instanceof Array}catch(e){}return function(e,t){return anObject(e),aPossiblePrototype(t),o?r(e,t):e.__proto__=t,e}}():void 0),$$2=_export,call=functionCall,FunctionName=functionName,isCallable$2=isCallable$g,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$2,createNonEnumerableProperty$1=createNonEnumerableProperty$4,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$5=wellKnownSymbol$a,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$5("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,o,n,s,i){createIteratorConstructor(r,t,o);function a(e){if(e===n&&y)return y;if(!BUGGY_SAFARI_ITERATORS&&e in $)return $[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,o=t+" Iterator",u=!1,$=e.prototype,p=$[ITERATOR$1]||$["@@iterator"]||n&&$[n],y=!BUGGY_SAFARI_ITERATORS&&p||a(n),b="Array"==t&&$.entries||p;if(b&&(b=getPrototypeOf(b.call(new e)))!==Object.prototype&&b.next&&(getPrototypeOf(b)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(b,IteratorPrototype):isCallable$2(b[ITERATOR$1])||defineBuiltIn(b,ITERATOR$1,returnThis)),setToStringTag(b,o,!0)),PROPER_FUNCTION_NAME&&n==VALUES&&p&&p.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1($,"name",VALUES):(u=!0,y=function(){return call(p,this)})),n)if(l={values:a(VALUES),keys:s?y:a(KEYS),entries:a(ENTRIES)},i)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in $||defineBuiltIn($,c,l[c]);else $$2({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return $[ITERATOR$1]!==y&&defineBuiltIn($,ITERATOR$1,y,{name:n}),Iterators$1[t]=y,l},toIndexedObject=toIndexedObject$5,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty$1=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS$1=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,o=e.index++;return!t||o>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:o,done:!1}:"values"==r?{value:t[o],done:!1}:{value:[o,t[o]],done:!1}},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS$1&&"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$2=global$c,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$4,wellKnownSymbol$4=wellKnownSymbol$a,ITERATOR=wellKnownSymbol$4("iterator"),TO_STRING_TAG$2=wellKnownSymbol$4("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG$2]||createNonEnumerableProperty(t,TO_STRING_TAG$2,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global$2[COLLECTION_NAME]&&global$2[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");var EmptyStringDescriptionStore,SymbolWrapper,NATIVE_SYMBOL,symbolToString,symbolValueOf,regexp,replace,stringSlice,PwdRequirements,isObject=isObject$6,classof$2=classofRaw$1,wellKnownSymbol$3=wellKnownSymbol$a,MATCH$1=wellKnownSymbol$a("match"),isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH$1])?!!t:"RegExp"==classof$2(e))},isRegExp=isRegexp,$TypeError=TypeError,notARegexp=function(e){if(isRegExp(e))throw $TypeError("The method doesn't accept regular expressions");return e},wellKnownSymbol$2=wellKnownSymbol$a,TO_STRING_TAG$1=wellKnownSymbol$a("toStringTag"),test={},toStringTagSupport=(test[TO_STRING_TAG$1]="z","[object z]"===String(test)),TO_STRING_TAG_SUPPORT=toStringTagSupport,isCallable$1=isCallable$g,classofRaw=classofRaw$1,wellKnownSymbol$1=wellKnownSymbol$a,TO_STRING_TAG=wellKnownSymbol$a("toStringTag"),$Object=Object,CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},classof$1=TO_STRING_TAG_SUPPORT?classofRaw:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(e=$Object(e),TO_STRING_TAG))?t:CORRECT_ARGUMENTS?classofRaw(e):"Object"==(t=classofRaw(e))&&isCallable$1(e.callee)?"Arguments":t},classof=classof$1,$String=String,toString$2=function(e){if("Symbol"===classof(e))throw TypeError("Cannot convert a Symbol value to a string");return $String(e)},wellKnownSymbol=wellKnownSymbol$a,MATCH=wellKnownSymbol$a("match"),correctIsRegexpLogic=function(t){var r=/./;try{"/./"[t](r)}catch(e){try{return r[MATCH]=!1,"/./"[t](r)}catch(e){}}return!1},$$1=_export,uncurryThis$1=functionUncurryThis,notARegExp=notARegexp,requireObjectCoercible=requireObjectCoercible$3,toString$1=toString$2,correctIsRegExpLogic=correctIsRegexpLogic,stringIndexOf=functionUncurryThis("".indexOf),$=($$1({target:"String",proto:!0,forced:!correctIsRegExpLogic("includes")},{includes:function(e){return!!~stringIndexOf(toString$1(requireObjectCoercible(this)),toString$1(notARegExp(e)),1<arguments.length?arguments[1]:void 0)}}),_export),DESCRIPTORS=descriptors,global$1=global$c,uncurryThis=functionUncurryThis,hasOwn=hasOwnProperty_1,isCallable=isCallable$g,isPrototypeOf=objectIsPrototypeOf,toString=toString$2,defineProperty=objectDefineProperty.f,copyConstructorProperties=copyConstructorProperties$2,NativeSymbol=global$1.Symbol,SymbolPrototype=NativeSymbol&&NativeSymbol.prototype;function __rest(e,t){var r={};for(n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ResetPasswordForm({onBtnClick:e,requiresRestriction:t,disableForm:r=!1,columnView:o=!1}){var n=useStyles()["classes"],s=useSelector(authStatusSelector);const i=useSelector(authErrorMessage);var a=useSelector(authContextSelector);const[l,c]=react.exports.useState(""),[u,$]=react.exports.useState(""),[p,y]=react.exports.useState({[PwdRequirements.lengthCheck]:null,[PwdRequirements.userNameCheck]:null,[PwdRequirements.dictionaryCheck]:null,[PwdRequirements.pastPasswordCheck]:null,[PwdRequirements.passwordComplexityCheck]:null,[PwdRequirements.passwordChangeFrequencyCheck]:null}),[b,d]=react.exports.useState(null);s="loading"===s&&a===AuthContext.ResetPassword;const f=lodash.exports.isEqual(l,u);a=Object.values(p).includes(!1);react.exports.useEffect(()=>{try{if(i){var e=JSON.parse(i);const t=e["description"],o=__rest(e,["description"]);Object.keys(o).forEach(e=>{var t=e,r=o[e];y(e=>Object.assign(Object.assign({},e),{[t]:r}))}),d(t)}else d(null)}catch(e){d(i)}finally{$("")}},[i]);const m=[{label:SHARED_TEXT.lengthCheck,error:p[PwdRequirements.lengthCheck]},{label:SHARED_TEXT.pastPasswordCheck,error:p[PwdRequirements.pastPasswordCheck]},{label:SHARED_TEXT.userNameCheck,error:p[PwdRequirements.userNameCheck]},{label:SHARED_TEXT.dictionaryCheck,error:p[PwdRequirements.dictionaryCheck]},...p[PwdRequirements.passwordComplexityCheck]?[{label:SHARED_TEXT.passwordComplexityCheckSymbols,error:!0},{label:SHARED_TEXT.passwordComplexityCheckDays,error:!0}]:[]];return jsxRuntime.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0,spacing:6,mt:3},{children:[jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:7,xs:12},{children:[jsxRuntime.exports.jsx(FormControl$1,Object.assign({fullWidth:!0,sx:{mb:6}},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",value:l,onChange:e=>c(e.target.value),error:a,autoComplete:"off",disabled:r})})),jsxRuntime.exports.jsx(FormControl$1,Object.assign({fullWidth:!0},{children:jsxRuntime.exports.jsx(TextField,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:u,onChange:e=>$(e.target.value),autoComplete:"off",error:!f&&!!u,helperText:!f&&u&&SHARED_TEXT.passwordsNotMatching,disabled:r})})),b&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:b}))]})),t&&jsxRuntime.exports.jsxs(Grid,Object.assign({item:!0,sm:o?12:5,xs:12},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h6",className:n.h6},{children:SHARED_TEXT.passwordRequirements})),jsxRuntime.exports.jsx("ul",Object.assign({className:n.requirements,"data-testid":"rp-requirements-list"},{children:m.map((e,t)=>jsxRuntime.exports.jsx("li",Object.assign({className:classnames({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),jsxRuntime.exports.jsx(Grid,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:jsxRuntime.exports.jsx(LoadingButton,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:n.submitButton,onClick:()=>{lodash.exports.isEmpty(l)||lodash.exports.isEmpty(u)||!f||e(l)},loading:s,disabled:r},{children:SHARED_TEXT.resetPasswordSubmitButton}))}))]}))}))}!DESCRIPTORS||!isCallable(NativeSymbol)||"description"in SymbolPrototype&&void 0===NativeSymbol().description||(EmptyStringDescriptionStore={},copyConstructorProperties(SymbolWrapper=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:toString(arguments[0]),t=isPrototypeOf(SymbolPrototype,this)?new NativeSymbol(e):void 0===e?NativeSymbol():NativeSymbol(e);return""===e&&(EmptyStringDescriptionStore[t]=!0),t},NativeSymbol),(SymbolWrapper.prototype=SymbolPrototype).constructor=SymbolWrapper,NATIVE_SYMBOL="Symbol(test)"==String(NativeSymbol("test")),symbolToString=uncurryThis(SymbolPrototype.toString),symbolValueOf=uncurryThis(SymbolPrototype.valueOf),regexp=/^Symbol\((.*)\)[^)]+$/,replace=uncurryThis("".replace),stringSlice=uncurryThis("".slice),defineProperty(SymbolPrototype,"description",{configurable:!0,get:function(){var e=symbolValueOf(this),t=symbolToString(e);if(hasOwn(EmptyStringDescriptionStore,e))return"";e=NATIVE_SYMBOL?stringSlice(t,7,-1):replace(t,regexp,"$1");return""===e?void 0:e}}),$({global:!0,constructor:!0,forced:!0},{Symbol:SymbolWrapper})),function(e){e.lengthCheck="lengthCheck",e.userNameCheck="userNameCheck",e.dictionaryCheck="dictionaryCheck",e.pastPasswordCheck="pastPasswordCheck",e.passwordComplexityCheck="passwordComplexityCheck",e.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck"}(PwdRequirements=PwdRequirements||{});const DEFAULT_CONTAINER_WIDTH=740,CONTAINER_WIDTH_BREAKPOINT=400;function ResetPasswordWidget({resetToken:t,username:r,requiresPasswordRestriction:e=!1,onSuccess:o,organizationInviteId:n,containerWidth:s=DEFAULT_CONTAINER_WIDTH}){var i=useStyles()["classes"];const a=useDispatch(),l=useSelector(authStatusSelector),c=useSelector(authContextSelector);react.exports.useEffect(()=>{"success"===l&&c===AuthContext.ResetPassword&&null!=o&&o()},[l,c]);var u=lodash.exports.isEmpty(t)||lodash.exports.isEmpty(r),$=s<=CONTAINER_WIDTH_BREAKPOINT||!e;return jsxRuntime.exports.jsxs(Box$1,Object.assign({p:4,id:"reset-password-widget",width:s},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h1",className:i.title},{children:SHARED_TEXT.resetPasswordTitle})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2"},{children:SHARED_TEXT.resetPasswordSubHeader})),u&&jsxRuntime.exports.jsx(Alert,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:SHARED_TEXT.invalidTokenOrUsername})),jsxRuntime.exports.jsx(ResetPasswordForm,{onBtnClick:e=>{a(resetPasswordRequest({resetToken:t,username:r,password:e,organizationInviteId:n}))},requiresRestriction:e,disableForm:u,columnView:$})]}))}const ResetPassword=e=>jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ResetPasswordWidget,Object.assign({},e))});export{ResetPassword};
package/js-core.esm40.js CHANGED
@@ -1,31 +1 @@
1
- import{m as makeStyles,H as createSlice,ce as combineReducers,cf as createSelector,O as rootApiSelector,R as graphEndpointSelector,Q as sessionTokenSelector,j as jsxRuntime,bw as CacheProvider,bx as muiCache,ch as AIWareThemeProvider,K as lib,A as AIWareIntlProvider,k as useSelector,i as useDispatch,eE as userSelector,r as react,co as unmountPanel,x as classnames,T as Typography$1,a8 as Tooltip,a9 as IconButton,bU as Hide,at as Button$1,a7 as Divider,fs as img$6,a2 as all,F as FormattedMessage,af as takeLatest$1,w as TextField,S as Switch,bD as CircularProgress$1,ai as select,M as preferredLanguageSelector,ak as call,ah as put,bV as showMessage,bW as MessageSeverity,bH as Icon,cw as Upload,bO as FormHelperText$2,b4 as AIWareFormatMessage,p as lodash,cC as baseGraphQLApiWithError}from"./js-core.esm.js";import{d as default_1}from"./js-core.esm38.js";import{S as Stepper,a as Step,b as StepLabel}from"./js-core.esm36.js";!function(){var e={};try{if(process)return process.env=Object.assign({},process.env),Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();var useStyles=makeStyles()(e=>({root:{width:"560px",height:"auto"},configurationContainer:{minHeight:"650px"},spacer:{minHeight:e.spacing(2)},header:{alignItems:"center",borderBottom:"0.5px solid "+e.palette.divider,backgroundColor:"#FAFAFA !important",display:"flex",height:64,padding:e.spacing(2)},headerTitle:{paddingLeft:e.spacing(4)},headerActionContainer:{alignItems:"center",display:"flex",flexGrow:1,height:"100%",justifyContent:"flex-end"},verticalDivider:{borderRight:".5px solid "+e.palette.divider,height:"70%",margin:"0 "+e.spacing(1)},stepsContent:{overflowY:"scroll","&::-webkit-scrollbar":{width:"0"},height:"100vh - 195px"},stepper:{width:"80%",height:"75px",paddingLeft:"30px"},step:{".MuiStepIcon-root.Mui-active":{fill:e.palette.secondary.main},".MuiStepIcon-root.Mui-completed":{fill:e.palette.secondary.main}},sectionsButton:{paddingBottom:e.spacing(3)},sections:{paddingTop:e.spacing(3),paddingBottom:e.spacing(2.8)},container:{paddingTop:e.spacing(3),paddingLeft:e.spacing(3),paddingRight:e.spacing(3)},clientDivider:{paddingBottom:e.spacing(3)},previewButtonContainer:{marginTop:e.spacing(3),padding:e.spacing(3),background:"#FAFAFA"},previewButtonImage:{width:"30px",height:"30px",objectFit:"contain",marginRight:e.spacing(2)},previewButton:{height:"55px",marginBottom:e.spacing(4),textTransform:"none"},designContainer:{display:"flex",width:"100%",marginTop:e.spacing(3)},colorBlocksContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"},colorBlock:{width:"30px",height:"30px",borderRadius:"4px"},colorValuesContainer:{display:"flex",justifyContent:"space-between",width:"100%"},buttonDesignErrorContainer:{marginTop:"10px",display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",color:"#E53935"},buttonDesignContainer:{display:"flex",flexDirection:"column",height:"137px",width:"100%",justifyContent:"space-between"},buttonPreviewLabel:{position:"absolute",fontSize:"12px",fontWeight:300,width:"75px",backgroundColor:"#fff",transform:"translate(2px, 0px) scale(.98)",color:"#5C6269",textAlign:"center",top:"-8px",left:"5px"},logo:{width:"100%",objectFit:"fill",borderRadius:"4px"},logoContainer:{height:"138px",width:"138px",position:"relative",borderRadius:"4px",marginRight:e.spacing(2)},buttonGroup:{position:"fixed",bottom:"20px",right:"5px",display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"flex-end",marginTop:e.spacing(3),marginRight:e.spacing(3)},button:{marginRight:e.spacing(1)},instructions:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},textField:{width:"100%"},textFieldButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"100%"},textFieldHexButtonDesign:{marginLeft:0,marginRight:0,marginTop:0,width:"48%"},inputBase:{fontWeight:400,fontSize:"14px"},inputContainer:{position:"relative"},fileInput:{position:"absolute",height:1,width:1,overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"},imageWrapper:{position:"relative",alignItems:"center",borderRadius:4,border:"1px solid #ccc",boxSizing:"border-box",cursor:"pointer",display:"flex",width:137,height:137,justifyContent:"center",overflow:"hidden"},inputLogo:{position:"relative",height:138,width:138,objectFit:"contain"},removeBtn:{backgroundColor:"rgba(255, 255, 255, .7)",color:"#000",borderRadius:"25px",padding:8,position:"absolute",right:4,top:92},loadingCreate:{marginTop:"50px",display:"flex",width:"100%",height:"400px",justifyContent:"space-around",alignItems:"center",flexDirection:"column"},errorImage:{width:"235px",height:"235px"},retryButton:{marginTop:"10px"},isGlobalContainer:{borderRadius:4,backgroundColor:"#FAFAFA",padding:"10px",display:"flex",flexDirection:"row"},isGlobalTitle:{marginBottom:"5px"},isGlobalDescription:{width:"90%"}}));const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var LoadingStatus,visuallyHidden$1=visuallyHidden;const SHARED_TEXT={panelHeaderTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.ciRSCG",defaultMessage:"Login Connector",description:"Login Connector"}),closePanel:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.kOsSpC",defaultMessage:"Close Panel",description:"Close Panel"}),loginStepsProviderConfiguration:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.6+P+4t",defaultMessage:"Provider Configuration",description:"Provider Configuration"}),loginStepsButtonDesign:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.pgJQ+P",defaultMessage:"Button Design",description:"Button Design"}),loginStepsNextButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.6V6DQY",defaultMessage:"Next",description:"Next Button"}),loginStepsBackButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.nsJ82A",defaultMessage:"Back",description:"Back Button"}),loginStepsCreateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.DOAMwO",defaultMessage:"Create",description:"Create Button"}),loginStepsUpdateButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.aW7Qtx",defaultMessage:"Update",description:"Button that allows users to update their open id provider"}),loginStepsCloseButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.q5zf7S",defaultMessage:"Close",description:"Create Button"}),loginStepsErrorRequired:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.vjutlG",defaultMessage:"This field is required.",description:"required field"}),loginStepsErrorIssuerUrl:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.2VJeNw",defaultMessage:"This field is required. OpenID connect metaData document",description:"OPenId Metadata Document Required"}),loginStepsErrorBtnText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.JuCywi",defaultMessage:"This field is required",description:"Button Text Required"}),loginStepsErrorBtnColor:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.lQChal",defaultMessage:'Needs Valid Six Digit Hex color ie.. "#FFFFFF"',description:"Valid Button Text Color Required"}),loginStepsErrorBtnLogo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.8vQBmc",defaultMessage:"Please use a valid JPEG, PNG or SVG file smaller than 300KB",description:"Valid Button Logo Type File Size"}),providerInstructions:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.rpVpIA",defaultMessage:"Configure your new authentication option for users of this organization. This will be displayed on login.",description:"Provider Instructions"}),providerUpdateInstructions:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.i1Yvqc",defaultMessage:"Update your authentication options for users of this organization. This will be displayed on login. You will need to re-enter your Client Secret and Issuer URL for this connector",description:"Text to describe Instructions for this step of Login Connector Updating"}),providerSectionBasic:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.3nxOek",defaultMessage:"Basic Info",description:"Basic Info"}),providerInputName:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.+fYwFL",defaultMessage:"Name",description:"Name"}),providerInputDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.3T09+Q",defaultMessage:"Description",description:"Description"}),providerInputWebsiteUrl:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.pnHn3q",defaultMessage:"Website URL",description:"Website URL"}),providerSectionClient:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.EcoPxV",defaultMessage:"Client Info",description:"Client Info"}),providerInputClientId:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.uWdwr0",defaultMessage:"Client ID",description:"Client ID"}),providerInputClientSecret:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.6OgfIg",defaultMessage:"Client Secret",description:"Client Secret "}),providerInputIssuerUrl:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.mXH+F+",defaultMessage:"Issuer URL",description:"Issuer URL"}),providerGlobalTitle:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.+k+hp1",defaultMessage:"Global Authentication",description:"Global Authentication"}),providerGlobalDescription:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.fxc8x4",defaultMessage:"When enabled, this login provider will be available for all organizations within this environment. Please use with caution!",description:"Global description"}),buttonInstructions:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.gQIG1D",defaultMessage:"Set the look and feel of your login button for your users.",description:"Button Instructions"}),buttonPreview:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.dtsZya",defaultMessage:"Button Preview",description:"Button Preview"}),buttonLogo:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.XtAWcG",defaultMessage:"Button Logo",description:"Button Logo"}),buttonText:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.w2NwY1",defaultMessage:"Button Text Label",description:"Button Text"}),buttonColor:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.J2U6tX",defaultMessage:"Button Color",description:"Button Color"}),buttonTextColor:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.3GdHqA",defaultMessage:"Button Text Color",description:"Button Text Color"}),providerCreationCreated:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.q+GZ9g",defaultMessage:"Your Login Connector is being created!",description:"connector being created"}),providerCreationFailed:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.DVnePp",defaultMessage:"There was an error while creating your Open ID connector:",description:"connector creation failed"}),providerCreationRetryButton:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.muMXB+",defaultMessage:"Retry",description:"retry button"}),getProviderFailed:()=>jsxRuntime.exports.jsx(FormattedMessage,{id:"os-admin-center-open-id.Iuo8e2",defaultMessage:"There was an error retrieving your existing Open ID connector",description:"Message to let user know that we could not retrieve thier Login Connector"})},Header=({onPanelClose:e})=>{var t=useStyles()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:t.header,"data-test":"admin-center-header"},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({className:t.headerTitle,variant:"h1",color:"secondary","data-test":"admin-center-title"},{children:SHARED_TEXT.panelHeaderTitle()})),jsxRuntime.exports.jsxs("div",Object.assign({className:t.headerActionContainer},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({style:visuallyHidden$1,id:"admin-center-close-panel"},{children:SHARED_TEXT.closePanel()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({title:SHARED_TEXT.closePanel()},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:e,"aria-labelledby":"admin-center-close-panel","data-test":"admin-center-close-panel",size:"large"},{children:jsxRuntime.exports.jsx(Hide,{})}))}))]}))]}))},SLICE_NAME="adminCenter",LoginPrefix="Log in with ";function isImage(e){e=e.type;return["image/jpeg","image/png","image/svg+xml"].includes(e)}!function(e){e.Failed="failed",e.Idle="idle",e.Pending="pending"}(LoadingStatus=LoadingStatus||{});const ImageInput=({logoUrl:e,onChangeFormItem:t})=>{var i=useStyles()["classes"];const n=react.exports.useRef(null),[s,o]=react.exports.useState(e),[r,a]=react.exports.useState(!1);react.exports.useEffect(()=>{t("btnLogo",s)},[s,t]);return jsxRuntime.exports.jsxs("div",Object.assign({className:i.inputContainer},{children:[jsxRuntime.exports.jsx("input",{ref:n,id:"logo-input",name:"logo-input",type:"file",accept:"image/*",onChange:e=>{e=lodash.exports.get(e,"target.files[0]",null);if(null!==n.current&&(n.current.value=""),isImage(e)&&e.size<=3e5){var t=e=>{"string"==typeof e&&o(e),a(!1)};const i=new FileReader;i.readAsDataURL(e),i.onload=function(){t(i.result)},i.onerror=function(e){a(!0),console.log("Error: ",e)}}else a(!0)},className:i.fileInput,"aria-label":"Upload Logo"}),jsxRuntime.exports.jsx("div",Object.assign({className:i.imageWrapper,role:"button"},{children:s?jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx("img",{"data-test":"admin-center-image-loaded",src:s,alt:"logo",className:i.inputLogo}),jsxRuntime.exports.jsx(Icon,{"data-test":"admin-center-remove-image","aria-label":"Remove Image",fontSize:"large",className:i.removeBtn,onClick:()=>{a(!1),o("")},component:default_1})]}):jsxRuntime.exports.jsx(Icon,{onClick:()=>{null!==n.current&&n.current.click()},"data-test":"upload-icon",fontSize:"large",component:Upload})})),jsxRuntime.exports.jsx(FormHelperText$2,Object.assign({"data-test":"admin-center-logo-upload-error",error:r},{children:r?SHARED_TEXT.loginStepsErrorBtnLogo():""}))]}))},ButtonDesign=({formData:e,errorForm:t,onChangeFormItem:i,handleChangeForm:n})=>{const s=useStyles()["classes"];return jsxRuntime.exports.jsxs("div",Object.assign({className:s.configurationContainer},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:s.container},{children:jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"admin-center-button-instructions",variant:"body2",color:"textPrimary"},{children:SHARED_TEXT.buttonInstructions()}))})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.previewButtonContainer},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({className:s.sectionsButton,variant:"h6",color:"textPrimary"},{children:SHARED_TEXT.buttonPreview()})),jsxRuntime.exports.jsxs(Button$1,Object.assign({style:{color:""+e.btnTextColor,backgroundColor:""+e.btnColor},"data-test":"admin-center-input-previewButton",variant:"outlined",color:"primary",fullWidth:!0,className:s.previewButton},{children:[e.btnLogo?jsxRuntime.exports.jsx("img",{"data-test":"admin-center-preview-logo",alt:"previewLogo",className:s.previewButtonImage,src:e.btnLogo}):null,null!=e&&e.btnText?""+LoginPrefix+(null==e?void 0:e.btnText):LoginPrefix+"<open id connect name>"]}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.container},{children:[jsxRuntime.exports.jsxs("div",Object.assign({className:s.designContainer},{children:[jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-logo",className:s.logoContainer},{children:[jsxRuntime.exports.jsx(ImageInput,{onChangeFormItem:i,logoUrl:null!=e&&e.btnLogo?null==e?void 0:e.btnLogo:""}),jsxRuntime.exports.jsx("div",Object.assign({className:s.buttonPreviewLabel},{children:SHARED_TEXT.buttonLogo()}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.buttonDesignContainer},{children:[jsxRuntime.exports.jsx(TextField,{required:!0,id:"btnText","data-test":"admin-center-input-btnText",autoComplete:"off",label:SHARED_TEXT.buttonText(),variant:"outlined",className:s.textFieldButtonDesign,value:null==e?void 0:e.btnText,onChange:n("btnText"),error:""!==t.btnText}),jsxRuntime.exports.jsx("div",Object.assign({className:s.colorBlocksContainer},{children:["#FB8C00","#FFB300","#00897B","#43A047","#039BE5","#1E88E5","#ADB8C2","#E53935","#D81B60","#8E24AA"].map(e=>jsxRuntime.exports.jsx("div",{className:s.colorBlock,style:{backgroundColor:e},onClick:()=>i("btnColor",""+e)},e))})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.colorValuesContainer},{children:[jsxRuntime.exports.jsx(TextField,{required:!0,id:"btnColor","data-test":"admin-center-input-btnColor",autoComplete:"off",label:SHARED_TEXT.buttonColor(),variant:"outlined",className:s.textFieldHexButtonDesign,value:null==e?void 0:e.btnColor,onChange:n("btnColor"),error:""!==t.btnColor,InputProps:{classes:{input:s.inputBase}},size:"small"}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"btnTextColor","data-test":"admin-center-input-btnTextColor",autoComplete:"off",label:SHARED_TEXT.buttonTextColor(),variant:"outlined",className:s.textFieldHexButtonDesign,value:null==e?void 0:e.btnTextColor,onChange:n("btnTextColor"),error:""!==t.btnTextColor,InputProps:{classes:{input:s.inputBase}},size:"small"})]}))]}))]})),jsxRuntime.exports.jsxs("div",Object.assign({className:s.buttonDesignErrorContainer},{children:[t.btnText?jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-error"},{children:[SHARED_TEXT.buttonText(),": ",t.btnText]})):null,t.btnColor?jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-color-error"},{children:[SHARED_TEXT.buttonColor(),": ",t.btnColor]})):null,t.btnTextColor?jsxRuntime.exports.jsxs("div",Object.assign({"data-test":"admin-center-button-text-color-error"},{children:[SHARED_TEXT.buttonTextColor(),": ",t.btnTextColor]})):null]}))]}))]}))};function roleHelper(e){const t={isSuperAdmin:!1,isAdmin:!1};return e&&(0<=e.indexOf("superadmin")&&(t.isSuperAdmin=!0),0<=e.indexOf("admin")&&(t.isAdmin=!0)),t}const namespace$1="uiState",initialState={status:LoadingStatus.Pending,openIdProvider:{name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"#FFFFFF",btnTextColor:"#000000",isGlobal:!1},appId:{id:""},existingOpenIdProvider:{id:""},newProvider:{status:LoadingStatus.Idle,errorMessage:""}},slice=createSlice({name:SLICE_NAME+"/"+namespace$1,initialState:initialState,reducers:{init(e,{payload:t}){e.status=LoadingStatus.Pending,e.existingOpenIdProvider.id=t.connectorId,e.appId.id=t.appId},initDone(e){e.status=LoadingStatus.Idle},initFailed(e){e.status=LoadingStatus.Failed},updateAppId(e,{payload:t}){e.appId=t},updateOpenIdConnector(e,{payload:t}){e.openIdProvider=t},startCreateNewProvider(e){e.newProvider.status=LoadingStatus.Pending},createNewProviderSuccess(e){e.newProvider.status=LoadingStatus.Idle,e.openIdProvider=initialState.openIdProvider},createNewProviderFailed(e,{payload:t}){e.newProvider={status:t.status,errorMessage:t.errorMessage}}}}),actions$1=slice.actions;var uiState$1=slice.reducer;const namespace=SLICE_NAME,actions={[namespace$1]:actions$1},rootReducer=combineReducers({[namespace$1]:uiState$1}),selectUIStateStatus=e=>e[namespace].uiState.status,selectAppId=e=>e[namespace].uiState.appId,selectOpenIdProvider=e=>e[namespace].uiState.openIdProvider,selectCreateNewProvider=e=>e[namespace].uiState.newProvider,selectExistingProvider=e=>e[namespace].uiState.existingOpenIdProvider;var uiState=Object.freeze({__proto__:null,selectUIStateStatus:selectUIStateStatus,selectAppId:selectAppId,selectOpenIdProvider:selectOpenIdProvider,selectCreateNewProvider:selectCreateNewProvider,selectExistingProvider:selectExistingProvider});const ProviderConfiguration=({formData:e,errorForm:t,handleChangeForm:i})=>{var n=useStyles()["classes"],s=useSelector(userSelector),o=roleHelper(s.roles||null),r=useSelector(selectExistingProvider),s=null==(s=null==s?void 0:s.organization)?void 0:s.organizationId;return jsxRuntime.exports.jsx("div",Object.assign({className:n.configurationContainer},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:n.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"admin-center-provider-instructions",variant:"body2",color:"textPrimary"},{children:r.id?SHARED_TEXT.providerUpdateInstructions():SHARED_TEXT.providerInstructions()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:n.sections,variant:"h6",color:"textPrimary"},{children:SHARED_TEXT.providerSectionBasic()})),jsxRuntime.exports.jsx(TextField,{required:!0,id:"name","data-test":"admin-center-input-name",autoComplete:"off",label:SHARED_TEXT.providerInputName(),variant:"outlined",className:n.textField,value:null==e?void 0:e.name,onChange:i("name"),error:""!==t.name,helperText:t.name}),jsxRuntime.exports.jsx("div",{className:n.spacer}),jsxRuntime.exports.jsx(TextField,{id:"description","data-test":"admin-center-input-description",autoComplete:"off",label:SHARED_TEXT.providerInputDescription(),variant:"outlined",multiline:!0,rows:3,className:n.textField,value:null==e?void 0:e.description,onChange:i("description"),error:""!==t.description,helperText:t.description,inputProps:{maxLength:100}}),jsxRuntime.exports.jsx("div",{className:n.spacer}),jsxRuntime.exports.jsx(TextField,{id:"websiteUrl","data-test":"admin-center-input-websiteUrl",autoComplete:"off",label:SHARED_TEXT.providerInputWebsiteUrl(),variant:"outlined",className:n.textField,value:null==e?void 0:e.websiteUrl,onChange:i("websiteUrl"),error:""!==t.websiteUrl,helperText:t.websiteUrl}),jsxRuntime.exports.jsx(Divider,{variant:"fullWidth"}),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:n.sections,variant:"h6",color:"textPrimary"},{children:SHARED_TEXT.providerSectionClient()})),!r.id&&jsxRuntime.exports.jsx(TextField,{required:!0,id:"clientId","data-test":"admin-center-input-clientId",autoComplete:"off",label:SHARED_TEXT.providerInputClientId(),variant:"outlined",className:n.textField,value:null==e?void 0:e.clientId,onChange:i("clientId"),error:""!==t.clientId,helperText:t.clientId}),jsxRuntime.exports.jsx("div",{className:n.spacer}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"clientSecret","data-test":"admin-center-input-clientSecret",autoComplete:"off",label:SHARED_TEXT.providerInputClientSecret(),variant:"outlined",className:n.textField,value:null==e?void 0:e.clientSecret,onChange:i("clientSecret"),error:""!==t.clientSecret,helperText:t.clientSecret}),jsxRuntime.exports.jsx("div",{className:n.spacer}),jsxRuntime.exports.jsx(TextField,{required:!0,id:"issuerUrl","data-test":"admin-center-input-issuerUrl",autoComplete:"off",label:SHARED_TEXT.providerInputIssuerUrl(),variant:"outlined",className:n.textField,value:null==e?void 0:e.issuerUrl,onChange:i("issuerUrl"),error:""!==t.issuerUrl,helperText:t.issuerUrl}),jsxRuntime.exports.jsx("div",{className:n.spacer}),!r.id&&o.isSuperAdmin&&7682===s&&jsxRuntime.exports.jsxs("div",Object.assign({className:n.isGlobalContainer},{children:[jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({className:n.isGlobalTitle,variant:"h6"},{children:SHARED_TEXT.providerGlobalTitle()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({className:n.isGlobalDescription,variant:"body2"},{children:SHARED_TEXT.providerGlobalDescription()}))]}),jsxRuntime.exports.jsx(Switch,{"data-test":"admin-center-isglobal-switch",value:e.isGlobal,onChange:i("isGlobal")})]}))]}))}))},ProviderCreation=({handlePanelClose:e})=>{const t=useStyles()["classes"],i=useDispatch(),n=useSelector(selectCreateNewProvider),s=react.exports.useRef(!1);react.exports.useEffect(()=>{s.current&&n.status===LoadingStatus.Idle&&e(),s.current=!0},[n,e]);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.configurationContainer},{children:[jsxRuntime.exports.jsx(Divider,{variant:"fullWidth"}),n.status===LoadingStatus.Idle?null:n.status===LoadingStatus.Pending?jsxRuntime.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"h2"},{children:SHARED_TEXT.providerCreationCreated()})),jsxRuntime.exports.jsx(CircularProgress$1,{"data-test":"admin-center-provider-creation-loader"})]})):n.status===LoadingStatus.Failed?jsxRuntime.exports.jsxs("div",Object.assign({className:t.loadingCreate},{children:[jsxRuntime.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:t.errorImage,src:img$6}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1"},{children:SHARED_TEXT.providerCreationFailed()})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1"},{children:n.errorMessage})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>i(actions.uiState.startCreateNewProvider()),className:t.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:SHARED_TEXT.providerCreationRetryButton()}))]})):void 0]}))},LoginConnectorSteps=({handlePanelClose:e})=>{const i=useStyles()["classes"],t=useDispatch(),n=useSelector(selectExistingProvider);var s=useSelector(selectOpenIdProvider);const[o,r]=react.exports.useState(0),[a,d]=react.exports.useState(s),[l,c]=react.exports.useState({name:"",description:"",websiteUrl:"",clientId:"",clientSecret:"",issuerUrl:"",btnText:"",btnLogo:"",btnColor:"",btnTextColor:"",isGlobal:!1});react.exports.useEffect(()=>{t(actions.uiState.updateOpenIdConnector(a))},[a,t]);const p=[SHARED_TEXT.loginStepsProviderConfiguration(),SHARED_TEXT.loginStepsButtonDesign()];var s=()=>{0===o&&!(()=>{let e=!0;const t={};return a.name||(t.name=SHARED_TEXT.loginStepsErrorRequired(),e=!1),a.clientId||n.id||(t.clientId=SHARED_TEXT.loginStepsErrorRequired(),e=!1),a.clientSecret||(t.clientSecret=SHARED_TEXT.loginStepsErrorRequired(),e=!1),a.issuerUrl||(t.issuerUrl=SHARED_TEXT.loginStepsErrorIssuerUrl(),e=!1),c(Object.assign(Object.assign({},l),t)),e})()||1===o&&!(()=>{let e=!0;const t={};var i="^#[A-Fa-f0-9]{6}$";return a.btnText||(t.btnText=SHARED_TEXT.loginStepsErrorBtnText(),e=!1),a.btnColor&&a.btnColor.match(i)||(t.btnColor=SHARED_TEXT.loginStepsErrorBtnColor(),e=!1),a.btnTextColor&&a.btnTextColor.match(i)||(t.btnTextColor=SHARED_TEXT.loginStepsErrorBtnColor(),e=!1),c(Object.assign(Object.assign({},l),t)),e})()||(r(e=>e+1),o===p.length-1&&t(actions.uiState.startCreateNewProvider()))},u=()=>{r(e=>e-1)};const x=react.exports.useCallback((t,i)=>{d(e=>Object.assign(Object.assign({},e),{[t]:i})),c(e=>Object.assign(Object.assign({},e),{[t]:""}))},[d,c]),g=t=>e=>{e="isGlobal"===t?e.target.checked:e.target.value;x(t,e)};return jsxRuntime.exports.jsxs("div",Object.assign({className:i.root},{children:[jsxRuntime.exports.jsx(Stepper,Object.assign({className:i.stepper,activeStep:o},{children:p.map((e,t)=>{return jsxRuntime.exports.jsx(Step,Object.assign({className:i.step},{},{children:jsxRuntime.exports.jsx(StepLabel,Object.assign({},{},{children:e}))}),t)})})),jsxRuntime.exports.jsxs("div",{children:[o===p.length&&jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(ProviderCreation,{handlePanelClose:e}),jsxRuntime.exports.jsxs("div",Object.assign({className:i.buttonGroup},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===o,onClick:u,className:i.button},{children:SHARED_TEXT.loginStepsBackButton()})),jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"contained",color:"primary",onClick:e,className:i.button,"data-test":"admin-center-steps-btn-close"},{children:SHARED_TEXT.loginStepsCloseButton()}))]}))]}),o!==p.length&&jsxRuntime.exports.jsxs("div",{children:[jsxRuntime.exports.jsx(Divider,{}),jsxRuntime.exports.jsx("div",Object.assign({className:i.stepsContent},{children:function(e){switch(e){case 0:return jsxRuntime.exports.jsx(ProviderConfiguration,{errorForm:l,formData:a,handleChangeForm:g});case 1:return jsxRuntime.exports.jsx(ButtonDesign,{errorForm:l,formData:a,handleChangeForm:g,onChangeFormItem:x});default:return}}(o)})),jsxRuntime.exports.jsxs("div",Object.assign({className:i.buttonGroup},{children:[jsxRuntime.exports.jsx(Button$1,Object.assign({"data-test":"admin-center-steps-btn-back",disabled:0===o,onClick:u,className:i.button},{children:SHARED_TEXT.loginStepsBackButton()})),o===p.length-1?jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"contained",color:"primary",onClick:s,className:i.button,"data-test":"admin-center-steps-btn-create"},{children:n.id?SHARED_TEXT.loginStepsUpdateButton():SHARED_TEXT.loginStepsCreateButton()})):jsxRuntime.exports.jsx(Button$1,Object.assign({variant:"contained",color:"primary",onClick:s,className:i.button,"data-test":"admin-center-steps-btn-next"},{children:SHARED_TEXT.loginStepsNextButton()}))]}))]})]})]}))},ConnectorError=()=>{var e=useStyles()["classes"];const t=useDispatch(),i=useSelector(selectExistingProvider),n=useSelector(selectAppId);return jsxRuntime.exports.jsxs("div",Object.assign({className:e.loadingCreate},{children:[jsxRuntime.exports.jsx("img",{"data-test":"admin-center-error-image",alt:"error",className:e.errorImage,src:img$6}),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body1"},{children:SHARED_TEXT.getProviderFailed()})),jsxRuntime.exports.jsx(Button$1,Object.assign({onClick:()=>t(actions.uiState.init({connectorId:i.id,appId:n.id})),className:e.retryButton,variant:"outlined",color:"primary","data-test":"admin-center-retry-button"},{children:SHARED_TEXT.providerCreationRetryButton()}))]}))},selectApiConfigs$1=createSelector([rootApiSelector,graphEndpointSelector,sessionTokenSelector],(e,t,i)=>({apiRoot:e,graphQLEndpoint:t,token:i}));var selectors=Object.freeze({__proto__:null,selectApiConfigs:selectApiConfigs$1,uiState:uiState});const MainLayout=({dataId:e,appId:t,connectorId:i,panelRendered:n})=>{var s=useStyles()["classes"];const o=useSelector(selectUIStateStatus),r=useDispatch(),a=useSelector(userSelector),{apiRoot:d,graphQLEndpoint:l,token:c}=useSelector(selectApiConfigs$1);react.exports.useEffect(()=>{o===LoadingStatus.Pending&&d&&l&&c&&a&&r(actions.uiState.init({connectorId:i,appId:t}))},[o,d,l,c,t,i,a,r]);var p=react.exports.useCallback(()=>{r(unmountPanel(e))},[r,e]);return!(d&&l&&c&&n&&a&&null!==a&&void 0!==a&&a.roles&&roleHelper(a.roles).isAdmin&&o!==LoadingStatus.Pending)?null:jsxRuntime.exports.jsxs("div",Object.assign({id:e,role:"presentation","data-test":"admin-center-widget",className:classnames(s.root)},{children:[jsxRuntime.exports.jsx(Header,{onPanelClose:p}),o===LoadingStatus.Failed&&jsxRuntime.exports.jsx(ConnectorError,{}),o===LoadingStatus.Idle&&jsxRuntime.exports.jsx(LoginConnectorSteps,{handlePanelClose:p})]}))};function __awaiter(e,r,a,d){return new(a=a||Promise)(function(i,t){function n(e){try{o(d.next(e))}catch(e){t(e)}}function s(e){try{o(d.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,s)}o((d=d.apply(e,r||[])).next())})}function createOpenIdProvider(t,i){return __awaiter(this,void 0,void 0,function*(){var e=yield baseGraphQLApiWithError(Object.assign({query:`
2
- mutation createNewOpenIdProvider($input: CreateOpenIdProvider!){
3
- createOpenIdProvider(input: $input){
4
- name
5
- id
6
- }
7
- }
8
- `,operationName:"createNewOpenIdProvider",variables:{input:i}},t));return Object.assign({},e.createOpenIdProvider)})}function getOpenIdProvider(t,i){return __awaiter(this,void 0,void 0,function*(){var e=yield baseGraphQLApiWithError(Object.assign({query:`
9
- query getOpenIdProvider($id: ID!){
10
- openIdProvider(id: $id){
11
- name,
12
- description,
13
- websiteUrl,
14
- loginUrl
15
- loginButtonStyle{
16
- btnText,
17
- btnTextColor,
18
- btnColor,
19
- btnLogo
20
- },
21
- isGlobal
22
- }
23
- }
24
- `,operationName:"getOpenIdProvider",variables:i},t));return Object.assign({},e.openIdProvider)})}function updateOpenIdProvider(t,i){return __awaiter(this,void 0,void 0,function*(){var e=yield baseGraphQLApiWithError(Object.assign({query:`
25
- mutation updateExistingOpenIdProvider($input: UpdateOpenIdProvider!){
26
- updateOpenIdProvider(input: $input){
27
- name
28
- id
29
- }
30
- }
31
- `,operationName:"updateExistingOpenIdProvider",variables:{input:i}},t));return Object.assign({},e.updateOpenIdProvider)})}const selectApiConfigs=selectors["selectApiConfigs"];function*initAdminCenter(){var e,t,i,n,s=yield select(selectUIStateStatus),o=yield select(preferredLanguageSelector);const r=AIWareFormatMessage(o);if(s===LoadingStatus.Pending){o=yield select(selectExistingProvider);if(o.id){s=yield select(selectApiConfigs);try{var a=yield call(getOpenIdProvider,s,o),d={name:(null==a?void 0:a.name)||"",description:(null==a?void 0:a.description)||"",websiteUrl:(null==a?void 0:a.websiteUrl)||"",clientId:(null==a?void 0:a.clientId)||"",clientSecret:(null==a?void 0:a.clientSecret)||"",issuerUrl:(null==a?void 0:a.issuerUrl)||"",btnText:(null==(e=null==a?void 0:a.loginButtonStyle)?void 0:e.btnText.replace(LoginPrefix,""))||"",btnLogo:(null==(t=null==a?void 0:a.loginButtonStyle)?void 0:t.btnLogo)||"",btnColor:(null==(i=null==a?void 0:a.loginButtonStyle)?void 0:i.btnColor)||"#FFFFFF",btnTextColor:(null==(n=null==a?void 0:a.loginButtonStyle)?void 0:n.btnTextColor)||"#000000",isGlobal:(null==a?void 0:a.isGlobal)||!1};yield put(actions.uiState.updateOpenIdConnector(d)),yield put(actions.uiState.initDone())}catch(e){yield put(showMessage({content:r({id:"os-admin-center.snackbar.loginConnectorError",defaultMessage:[{type:0,value:"Login Connector could not Found"}]}),severity:MessageSeverity.Error})),yield put(actions.uiState.initFailed())}}else yield put(actions.uiState.initDone())}}function*newProviderCreateOrUpdate(){var t=uiState["selectOpenIdProvider"],i=yield select(selectExistingProvider),n=yield select(selectApiConfigs),t=yield select(t),s=yield select(preferredLanguageSelector);const o=AIWareFormatMessage(s);var s=LoginPrefix+t.btnText,t=Object.assign(Object.assign({},t),{btnText:s});try{let e=o({id:"os-admin-center.snackbar.loginConnectorCreated",defaultMessage:[{type:0,value:"Login Connector Created"}]});if(i.id){const r=Object.assign(Object.assign({},t),i);delete r.clientId,delete r.isGlobal,yield call(updateOpenIdProvider,n,r),e=o({id:"os-admin-center.snackbar.loginConnectorUpdated",defaultMessage:[{type:0,value:"Login Connector Updated"}]})}else yield call(createOpenIdProvider,n,t);yield put(showMessage({content:e,severity:MessageSeverity.Success})),yield put(actions.uiState.createNewProviderSuccess())}catch(e){s=(null==e?void 0:e.message)||"",yield put(actions.uiState.createNewProviderFailed({status:LoadingStatus.Failed,errorMessage:s}));n=i.id?o({id:"os-admin-center.snackbar.loginConnectorNotUpdated",defaultMessage:[{type:0,value:"Login Connector could not be Updated"}]}):o({id:"os-admin-center.snackbar.loginConnectorNotCreated",defaultMessage:[{type:0,value:"Login Connector could not be created"}]});yield put(showMessage({content:n,severity:MessageSeverity.Error}))}}function*watchAdminCenterInit(){yield takeLatest$1(actions.uiState.init.type,initAdminCenter)}function*watchCreateNewProvider(){yield takeLatest$1(actions.uiState.startCreateNewProvider.type,newProviderCreateOrUpdate)}function*rootSaga(){yield all([watchAdminCenterInit(),watchCreateNewProvider()])}function getAdminCenterOpenIdModule(){return{id:SLICE_NAME,reducerMap:{[SLICE_NAME]:rootReducer},sagas:[rootSaga],initialActions:[]}}const AdminCenterOpenId=e=>jsxRuntime.exports.jsx(CacheProvider,Object.assign({value:muiCache},{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(lib.DynamicModuleLoader,Object.assign({modules:[getAdminCenterOpenIdModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(MainLayout,Object.assign({},e))})}))})}));export{AdminCenterOpenId};
1
+ import{g as generateUtilityClass,a as generateUtilityClasses,b as styled,_ as _extends,r as react,u as useThemeProps,e as _objectWithoutPropertiesLoose,fZ as StepperContext,j as jsxRuntime,f as clsx,f_ as StepContext,h as composeClasses,bc as createSvgIcon,d2 as SvgIcon,fT as StepConnector}from"./js-core.esm.js";function getStepUtilityClass(e){return generateUtilityClass("MuiStep",e)}generateUtilityClasses("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const _excluded$3=["active","children","className","completed","disabled","expanded","index","last"],useUtilityClasses$3=e=>{var{classes:e,orientation:t,alternativeLabel:a,completed:o}=e;return composeClasses({root:["root",t,a&&"alternativeLabel",o&&"completed"]},getStepUtilityClass,e)},StepRoot=styled("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{e=e.ownerState;return[t.root,t[e.orientation],e.alternativeLabel&&t.alternativeLabel,e.completed&&t.completed]}})(({ownerState:e})=>_extends({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),Step=react.exports.forwardRef(function(e,t){e=useThemeProps({props:e,name:"MuiStep"});const{active:a,children:o,className:r,completed:s,disabled:n,expanded:l=!1,index:i,last:c}=e,p=_objectWithoutPropertiesLoose(e,_excluded$3);var{activeStep:d,connector:x,alternativeLabel:m,orientation:u,nonLinear:S}=react.exports.useContext(StepperContext);let[v=!1,b=!1,C=!1]=[a,s,n];d===i?v=void 0===a||a:!S&&d>i?b=void 0===s||s:!S&&d<i&&(C=void 0===n||n);S=react.exports.useMemo(()=>({index:i,last:c,expanded:l,icon:i+1,active:v,completed:b,disabled:C}),[i,c,l,v,b,C]),d=_extends({},e,{active:v,orientation:u,alternativeLabel:m,completed:b,disabled:C,expanded:l}),e=useUtilityClasses$3(d),u=jsxRuntime.exports.jsxs(StepRoot,_extends({className:clsx(e.root,r),ref:t,ownerState:d},p,{children:[x&&m&&0!==i?x:null,o]}));return jsxRuntime.exports.jsx(StepContext.Provider,{value:S,children:x&&!m&&0!==i?jsxRuntime.exports.jsxs(react.exports.Fragment,{children:[x,u]}):u})});var Step$1=Step,CheckCircle=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Warning=createSvgIcon(jsxRuntime.exports.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function getStepIconUtilityClass(e){return generateUtilityClass("MuiStepIcon",e)}const stepIconClasses=generateUtilityClasses("MuiStepIcon",["root","active","completed","error","text"]);var _circle,stepIconClasses$1=stepIconClasses;const _excluded$2=["active","className","completed","error","icon"],useUtilityClasses$2=e=>{var{classes:e,active:t,completed:a,error:o}=e;return composeClasses({root:["root",t&&"active",a&&"completed",o&&"error"],text:["text"]},getStepIconUtilityClass,e)},StepIconRoot=styled(SvgIcon,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:e.palette.text.disabled,["&."+stepIconClasses$1.completed]:{color:e.palette.primary.main},["&."+stepIconClasses$1.active]:{color:e.palette.primary.main},["&."+stepIconClasses$1.error]:{color:e.palette.error.main}})),StepIconText=styled("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),StepIcon=react.exports.forwardRef(function(e,t){var e=useThemeProps({props:e,name:"MuiStepIcon"}),{active:a=!1,className:o,completed:r=!1,error:s=!1,icon:n}=e,l=_objectWithoutPropertiesLoose(e,_excluded$2),e=_extends({},e,{active:a,completed:r,error:s}),a=useUtilityClasses$2(e);return"number"==typeof n||"string"==typeof n?(o=clsx(o,a.root),s?jsxRuntime.exports.jsx(StepIconRoot,_extends({as:Warning,className:o,ref:t,ownerState:e},l)):r?jsxRuntime.exports.jsx(StepIconRoot,_extends({as:CheckCircle,className:o,ref:t,ownerState:e},l)):jsxRuntime.exports.jsxs(StepIconRoot,_extends({className:o,ref:t,ownerState:e},l,{children:[_circle=_circle||jsxRuntime.exports.jsx("circle",{cx:"12",cy:"12",r:"12"}),jsxRuntime.exports.jsx(StepIconText,{className:a.text,x:"12",y:"16",textAnchor:"middle",ownerState:e,children:n})]}))):n});var StepIcon$1=StepIcon;function getStepLabelUtilityClass(e){return generateUtilityClass("MuiStepLabel",e)}const stepLabelClasses=generateUtilityClasses("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]);var stepLabelClasses$1=stepLabelClasses;const _excluded$1=["children","className","componentsProps","error","icon","optional","StepIconComponent","StepIconProps"],useUtilityClasses$1=e=>{var{classes:e,orientation:t,active:a,completed:o,error:r,disabled:s,alternativeLabel:n}=e;return composeClasses({root:["root",t,r&&"error",s&&"disabled",n&&"alternativeLabel"],label:["label",a&&"active",o&&"completed",r&&"error",s&&"disabled",n&&"alternativeLabel"],iconContainer:["iconContainer",n&&"alternativeLabel"],labelContainer:["labelContainer"]},getStepLabelUtilityClass,e)},StepLabelRoot=styled("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{e=e.ownerState;return[t.root,t[e.orientation]]}})(({ownerState:e})=>_extends({display:"flex",alignItems:"center",["&."+stepLabelClasses$1.alternativeLabel]:{flexDirection:"column"},["&."+stepLabelClasses$1.disabled]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"})),StepLabelLabel=styled("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>_extends({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),["&."+stepLabelClasses$1.active]:{color:e.palette.text.primary,fontWeight:500},["&."+stepLabelClasses$1.completed]:{color:e.palette.text.primary,fontWeight:500},["&."+stepLabelClasses$1.alternativeLabel]:{textAlign:"center",marginTop:16},["&."+stepLabelClasses$1.error]:{color:e.palette.error.main}})),StepLabelIconContainer=styled("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,["&."+stepLabelClasses$1.alternativeLabel]:{paddingRight:0}})),StepLabelLabelContainer=styled("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:e.palette.text.secondary})),StepLabel=react.exports.forwardRef(function(e,t){var e=useThemeProps({props:e,name:"MuiStepLabel"}),{children:a,className:o,componentsProps:r={},error:s=!1,icon:n,optional:l,StepIconComponent:i,StepIconProps:c}=e,p=_objectWithoutPropertiesLoose(e,_excluded$1),{alternativeLabel:d,orientation:x}=react.exports.useContext(StepperContext),{active:m,disabled:u,completed:S,icon:v}=react.exports.useContext(StepContext),n=n||v;let b=i;n&&!b&&(b=StepIcon$1);v=_extends({},e,{active:m,alternativeLabel:d,completed:S,disabled:u,error:s,orientation:x}),i=useUtilityClasses$1(v);return jsxRuntime.exports.jsxs(StepLabelRoot,_extends({className:clsx(i.root,o),ref:t,ownerState:v},p,{children:[n||b?jsxRuntime.exports.jsx(StepLabelIconContainer,{className:i.iconContainer,ownerState:v,children:jsxRuntime.exports.jsx(b,_extends({completed:S,active:m,error:s,icon:n},c))}):null,jsxRuntime.exports.jsxs(StepLabelLabelContainer,{className:i.labelContainer,ownerState:v,children:[a?jsxRuntime.exports.jsx(StepLabelLabel,_extends({className:i.label,ownerState:v},r.label,{children:a})):null,l]})]}))});StepLabel.muiName="StepLabel";var StepLabel$1=StepLabel;function getStepperUtilityClass(e){return generateUtilityClass("MuiStepper",e)}generateUtilityClasses("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const _excluded=["activeStep","alternativeLabel","children","className","connector","nonLinear","orientation"],useUtilityClasses=e=>{var{orientation:e,alternativeLabel:t,classes:a}=e;return composeClasses({root:["root",e,t&&"alternativeLabel"]},getStepperUtilityClass,a)},StepperRoot=styled("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{e=e.ownerState;return[t.root,t[e.orientation],e.alternativeLabel&&t.alternativeLabel]}})(({ownerState:e})=>_extends({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),defaultConnector=jsxRuntime.exports.jsx(StepConnector,{}),Stepper=react.exports.forwardRef(function(e,t){e=useThemeProps({props:e,name:"MuiStepper"});const{activeStep:a=0,alternativeLabel:o=!1,children:r,className:s,connector:n=defaultConnector,nonLinear:l=!1,orientation:i="horizontal"}=e,c=_objectWithoutPropertiesLoose(e,_excluded);var e=_extends({},e,{alternativeLabel:o,orientation:i}),p=useUtilityClasses(e);const d=react.exports.Children.toArray(r).filter(Boolean);var x=d.map((e,t)=>react.exports.cloneElement(e,_extends({index:t,last:t+1===d.length},e.props))),m=react.exports.useMemo(()=>({activeStep:a,alternativeLabel:o,connector:n,nonLinear:l,orientation:i}),[a,o,n,l,i]);return jsxRuntime.exports.jsx(StepperContext.Provider,{value:m,children:jsxRuntime.exports.jsx(StepperRoot,_extends({ownerState:e,className:clsx(p.root,s),ref:t},c,{children:x}))})});var Stepper$1=Stepper;export{Stepper$1 as S,Step$1 as a,StepLabel$1 as b};