aiware-js 1.0.0-master.818 → 1.0.0-master.819
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.esm.js +1 -1
- package/js-core.esm.js.gz +0 -0
- package/js-core.umd.js +1 -1
- package/js-core.umd.js.gz +0 -0
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +1 -1
package/js-core.esm.js
CHANGED
|
@@ -1528,4 +1528,4 @@ createScheduledJob(input:{
|
|
|
1528
1528
|
}
|
|
1529
1529
|
`)}),n},[]).join("\r\n")}
|
|
1530
1530
|
}
|
|
1531
|
-
`,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$5.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$5.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$5.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$5.dispatch(logout())},1e3)):store$5.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$5.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$5.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$5.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$5.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$5.addModule(r),n},unmountPanel=e=>(store$5.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$5.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$5.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$5.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$5),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$5,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$5,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"932c26ea8",releaseDate:"2023-08-30T18:33:20.249Z"});export{Select$1 as $,AIWareIntlProvider as A,Box$1 as B,devErrorLogger as C,useLocation as D,DynamicModuleLoader as E,FormattedMessage$1 as F,Button$1 as G,useSearchParams as H,img$5 as I,StyledEngineProvider as J,LoadingButton$1 as K,LinearProgress$1 as L,authErrorMessage as M,Grid$1 as N,FormControl$1 as O,Provider$2 as P,TextField$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,classNames as U,resetPasswordRequest as V,InputLabel$1 as W,OutlinedInput$1 as X,InputAdornment$1 as Y,IconButton$1 as Z,_extends$3 as _,generateUtilityClasses as a,takeLatest$1 as a$,Location as a0,MenuItem$1 as a1,Divider$1 as a2,enableBetaFeatures as a3,Popover$1 as a4,all$2 as a5,CheckmarkFilled as a6,Bullet as a7,debounce_1 as a8,takeEvery$1 as a9,ENGINE_OWNER_TYPES as aA,ENGINE_FILTER_TYPES as aB,preferredLanguageSelector as aC,baseUrlSelector as aD,rootApiSelector as aE,sessionTokenSelector as aF,graphEndpointSelector as aG,controllerNodeRedImageSelector as aH,controllerUrlSelector as aI,automateControllerUrlSelector as aJ,flowCenterDialogSelector as aK,automateUrlSelector as aL,Portal$1 as aM,flowCenterDialogReducer as aN,List$2 as aO,ListItem$1 as aP,ListItemIcon$1 as aQ,ListItemText$1 as aR,flowCenterDialogAction as aS,img$q as aT,img$r as aU,img$t as aV,img$u as aW,Tooltip$1 as aX,img$k as aY,img$J as aZ,Skeleton$1 as a_,select as aa,call$j as ab,put as ac,showMessage as ad,MessageSeverity as ae,createTheme$1 as af,systemStyled as ag,useThemeProps$1 as ah,useId as ai,useControlled$1 as aj,usePreviousProps$1 as ak,useEventCallback as al,setRef as am,inputClasses$1 as an,inputBaseClasses$1 as ao,outlinedInputClasses$1 as ap,filledInputClasses$1 as aq,Popper$1 as ar,alpha as as,ListSubheader$1 as at,ClearIcon as au,ArrowDropDownIcon as av,Chip$1 as aw,createBox$1 as ax,createAction as ay,createReducer as az,styled$1 as b,__generator$2 as b$,fetchAllTags as b0,fetchFlows as b1,fetchTemplateGallery as b2,isRevisionsExistOnServerRequest as b3,FormLabel$1 as b4,default_1$e as b5,FormGroup$1 as b6,FormControlLabel$1 as b7,Checkbox$1 as b8,fetchTemplateGalleryFallback as b9,DialogContent$1 as bA,DialogActions$1 as bB,Snackbar$1 as bC,default_1$6 as bD,Search$1 as bE,img$l as bF,img$n as bG,img$X as bH,Tabs$2 as bI,Tab$2 as bJ,deleteEngine as bK,fetchEngine as bL,img$m as bM,AIWareFormatMessage as bN,FormattedDate as bO,fetchVeritoneGraphQLApi as bP,useTheme as bQ,KeyboardArrowRight as bR,KeyboardArrowLeft as bS,InputUnstyled as bT,isHostComponent as bU,getDefaultExportFromNamespaceIfNotNamed as bV,commonjsRequire as bW,reactDom as bX,Transition$1 as bY,_defineProperty$x as bZ,__awaiter$e as b_,Card$1 as ba,CardContent$1 as bb,img$o as bc,CardActions$1 as bd,flowStyles as be,NoResults as bf,CircularProgress$1 as bg,img$e as bh,Dialog$1 as bi,setApiEndpoint as bj,TableContainer$1 as bk,Table$1 as bl,TableHead$1 as bm,TableRow$1 as bn,TableCell$1 as bo,TableSortLabel$1 as bp,TableBody$1 as bq,img$j as br,default_1 as bs,ClickAwayListener as bt,Fade$1 as bu,img$v as bv,img$s as bw,img$T as bx,img$F as by,DialogTitle$1 as bz,Paper$1 as c,ReactMarkdown as c$,__spread as c0,React5 as c1,PropTypes as c2,TransitionGroup$1 as c3,connect$1 as c4,Bookmark as c5,EngineFlagIcons as c6,createAsyncThunk as c7,withStyles as c8,getConfigModule as c9,lightTheme$1 as cA,CssBaseline as cB,Hide as cC,has_1 as cD,Radio$2 as cE,createSvgIcon$2 as cF,_createCompounder as cG,_typeof$D as cH,_assertThisInitialized$x as cI,_setPrototypeOf$z as cJ,_toPropertyKey as cK,_inheritsLoose$2 as cL,hoistNonReactStatics_cjs as cM,commonjsGlobal$2 as cN,combineReducers as cO,createSelector$1 as cP,fork as cQ,statusPill as cR,AIWareThemeProvider$1 as cS,LocalizationProvider as cT,AdapterDateFns as cU,CalendarPicker as cV,Stack$4 as cW,Close$1 as cX,FullscreenExit as cY,Fullscreen as cZ,TabPanel as c_,getAuthModule as ca,getSnackbarModule as cb,AIWareCacheProvider as cc,img$U as cd,img$g as ce,img$f as cf,isEmpty_1 as cg,find_1 as ch,Backdrop$1 as ci,getDefaultMiddleware as cj,isNil_1 as ck,useForm as cl,UpDown as cm,Icon$1 as cn,get_1 as co,map_1 as cp,keys_1 as cq,RadioGroup$1 as cr,Avatar$1 as cs,img$z as ct,baseGraphQLApi as cu,default_1$9 as cv,Controller as cw,FormHelperText$2 as cx,img$i as cy,ThemeProvider as cz,capitalize$2 as d,CurlyBraces as d$,default_1$8 as d0,unmountPanel$1 as d1,AvailableComponents as d2,delay$1 as d3,hidePanel$1 as d4,mountPanel$1 as d5,DialogContentText$1 as d6,userSelector$2 as d7,MoreVert$1 as d8,Menu$1 as d9,_baseTrim as dA,_castSlice as dB,_stringToArray as dC,toString_1 as dD,upperFirst_1 as dE,isArrayLike_1 as dF,isString_1 as dG,toInteger_1 as dH,_baseGet as dI,_baseSlice as dJ,_castPath as dK,_toKey as dL,_isIndex as dM,channel$2 as dN,useFormContext as dO,useIntl as dP,useFieldArray as dQ,VideoCamera as dR,Image$1 as dS,Sound as dT,Description as dU,toNumber_1 as dV,FormProvider as dW,ProgressStepper as dX,size_1 as dY,findIndex_1 as dZ,take as d_,Edit as da,Upload as db,Delete$1 as dc,CustomTabs as dd,useBackupImg as de,img$1C as df,validate as dg,configSelector as dh,baseGraphQLApiWithError as di,VerifiedFilled as dj,Add as dk,ExpandLess$1 as dl,ExpandMore$1 as dm,Collapse$1 as dn,img$19 as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_baseIteratee as dy,_baseToString as dz,_objectWithoutPropertiesLoose$2 as e,Information as e$,UnknownDocument as e0,VariableSizeList as e1,sdkEventManager as e2,SdkEvents as e3,SdkError as e4,distributionTypes as e5,EngineClassIcons as e6,Mode2 as e7,EngineModeIcons as e8,DeploymentModelIcons as e9,isSymbol_1 as eA,_baseMap as eB,_baseUnary as eC,_baseFindIndex as eD,_Set as eE,_setToArray as eF,_SetCache as eG,_cacheHas as eH,img$Q as eI,img$P as eJ,img$1y as eK,img$1x as eL,img$1w as eM,img$N as eN,img$1A as eO,img$M as eP,authSelector as eQ,ListItemAvatar$1 as eR,emphasize as eS,useSlotProps as eT,_arraySome as eU,EntityType as eV,generateState as eW,injectIntl as eX,ErrorBoundary$1 as eY,EPermissionAction as eZ,Process as e_,markdown as ea,guid as eb,EditList as ec,ButtonBase$1 as ed,isObject_1 as ee,_arrayMap as ef,_Symbol as eg,isArguments_1 as eh,_baseEach as ei,_arrayFilter as ej,_getNative as ek,eq_1 as el,_root as em,_Uint8Array as en,_overArg as eo,_isPrototype as ep,isObjectLike_1 as eq,_baseGetTag as er,_arrayLikeKeys as es,isBuffer$5 as et,isFunction_1 as eu,isTypedArray_1 as ev,_Stack as ew,_baseFor as ex,identity_1 as ey,_isIterateeCall as ez,clsx as f,index$1 as f$,Download as f0,NewFolder as f1,SpecialFolder as f2,User as f3,Source as f4,Search$2 as f5,selectIsOLPEnabled as f6,ListItemSecondaryAction$1 as f7,getLibraryModule as f8,cmsUrlSelector as f9,FixedSizeList as fA,selectUserOrgEdgeVersion as fB,EditAttributes as fC,gqlIntrospection as fD,ProcessingDetail as fE,img$y as fF,img$A as fG,img$6 as fH,FilterRemove as fI,AlarmTwo as fJ,tableInfiniteScroll as fK,CheckCircle as fL,FolderOpen as fM,Voice as fN,useDoubleClick as fO,FolderFilled as fP,Time as fQ,img$B as fR,Undefined as fS,PodcastSource as fT,YoutubeSource as fU,TVSource as fV,RadioSource as fW,selectOrgId as fX,navSectionStyles as fY,selectIsUserAdmin as fZ,AvatarGroup$1 as f_,SearchStructuredData as fa,Grow$1 as fb,index as fc,actions as fd,hasPermission as fe,UserAddFilled as ff,MenuList$1 as fg,MoveFolder as fh,EAuthResourceType as fi,Slide$1 as fj,img$c as fk,selectApiConfigs$2 as fl,selectPanelByPanelName as fm,FullScreenContainer as fn,EngineCategoryIcons as fo,isPermissionLoading as fp,Settings$2 as fq,Hamburger as fr,List as fs,enginesFilter as ft,panelsSelector as fu,Badge$1 as fv,MoreHor as fw,convertEntityToAuthResource as fx,AutoSizer as fy,InfiniteLoader as fz,generateUtilityClass as g,View as g$,ErrorState$2 as g0,Stepper$1 as g1,StepConnector$1 as g2,Step$1 as g3,StepLabel$1 as g4,isEqual_1 as g5,NullState$2 as g6,Group as g7,PermissionChangedAction as g8,Lock as g9,green$1 as gA,md5 as gB,selectIsSuperAdmin as gC,organizations_selector as gD,actions$5 as gE,AddUser as gF,selectors as gG,LibraryDropdown as gH,Remove as gI,Save as gJ,Input$3 as gK,getElement as gL,client$1 as gM,Copy as gN,ArrowForward as gO,Modal$1 as gP,Slider$1 as gQ,getDefaultExportFromCjs as gR,_getSymbols as gS,stubArray_1 as gT,_baseGetAllKeys as gU,_getTag as gV,_nodeUtil as gW,_getAllKeys as gX,_castFunction as gY,Article as gZ,Task as g_,useOrganizationPermissions as ga,EAuthSubResourceType as gb,AddGroup as gc,initialConfigSelector as gd,EMessageTypes as ge,errors as gf,ConfirmationModal as gg,EnumHelpers as gh,formatBytes as gi,NotInterested as gj,mountPanelForResponse$1 as gk,default_1$a as gl,tableStyles as gm,ArrowDown as gn,ArrowUp as go,useInterval as gp,Iam as gq,safeFormatMessage as gr,contextMenuStyles as gs,Users as gt,SecurityGroup as gu,getOrganizationPanelModule as gv,Lock2 as gw,EApplicationConfigLevel as gx,NoApps as gy,EApplicationConfigType as gz,composeClasses as h,mountPanel as h$,_objectSpread2 as h0,serialize as h1,stringify$4 as h2,compile as h3,isNumber_1 as h4,Check as h5,EngineIconsRenderer as h6,FormattedRelativeTime$1 as h7,BottomQueue as h8,TopQueue as h9,PackagesAvatar as hA,actionChannel as hB,cancelled as hC,flush$4 as hD,tableSearchComponents as hE,cancel as hF,FlowTemplate as hG,Node as hH,Palette as hI,FlowCenter2 as hJ,ArrowBack as hK,Schema$1 as hL,panelComponents as hM,img$1 as hN,img$x as hO,AutomateNode as hP,Clear as hQ,ExpandLess as hR,ExpandMore as hS,registry as hT,registerComponent as hU,AvailableWidgets as hV,updatePanelMicroFrontendProps as hW,setData as hX,root as hY,mountWidget as hZ,unmountWidget as h_,Pause as ha,Cancel as hb,Folder as hc,Hidden as hd,dateRangeFilter as he,statusFilter as hf,TableLoadingState as hg,setDuration as hh,resetDuration as hi,createStack as hj,ButtonGroupContext$1 as hk,toFinite_1 as hl,_baseForOwn as hm,_arrayReduce as hn,hasIn_1 as ho,now_1 as hp,useSyncExternalStoreExports as hq,Engines as hr,EngineComponentLoader as hs,EngineFieldType as ht,imageUpload as hu,characterCountTextField as hv,tabsClasses$1 as hw,Packages as hx,Resources$1 as hy,selectUserCanCreatePackage as hz,createSvgIcon$1 as i,unmountPanel as i0,hidePanel as i1,unmountAllPanel as i2,init as i3,aiwareEvents as i4,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$5 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,betaFeaturesSelector as y,useNavigate as z};
|
|
1531
|
+
`,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$5.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$5.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$5.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$5.dispatch(logout())},1e3)):store$5.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$5.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$5.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$5.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$5.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$5.addModule(r),n},unmountPanel=e=>(store$5.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$5.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$5.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$5.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$5),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$5,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$5,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"ba8564acf",releaseDate:"2023-08-30T19:48:18.178Z"});export{Select$1 as $,AIWareIntlProvider as A,Box$1 as B,devErrorLogger as C,useLocation as D,DynamicModuleLoader as E,FormattedMessage$1 as F,Button$1 as G,useSearchParams as H,img$5 as I,StyledEngineProvider as J,LoadingButton$1 as K,LinearProgress$1 as L,authErrorMessage as M,Grid$1 as N,FormControl$1 as O,Provider$2 as P,TextField$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,classNames as U,resetPasswordRequest as V,InputLabel$1 as W,OutlinedInput$1 as X,InputAdornment$1 as Y,IconButton$1 as Z,_extends$3 as _,generateUtilityClasses as a,takeLatest$1 as a$,Location as a0,MenuItem$1 as a1,Divider$1 as a2,enableBetaFeatures as a3,Popover$1 as a4,all$2 as a5,CheckmarkFilled as a6,Bullet as a7,debounce_1 as a8,takeEvery$1 as a9,ENGINE_OWNER_TYPES as aA,ENGINE_FILTER_TYPES as aB,preferredLanguageSelector as aC,baseUrlSelector as aD,rootApiSelector as aE,sessionTokenSelector as aF,graphEndpointSelector as aG,controllerNodeRedImageSelector as aH,controllerUrlSelector as aI,automateControllerUrlSelector as aJ,flowCenterDialogSelector as aK,automateUrlSelector as aL,Portal$1 as aM,flowCenterDialogReducer as aN,List$2 as aO,ListItem$1 as aP,ListItemIcon$1 as aQ,ListItemText$1 as aR,flowCenterDialogAction as aS,img$q as aT,img$r as aU,img$t as aV,img$u as aW,Tooltip$1 as aX,img$k as aY,img$J as aZ,Skeleton$1 as a_,select as aa,call$j as ab,put as ac,showMessage as ad,MessageSeverity as ae,createTheme$1 as af,systemStyled as ag,useThemeProps$1 as ah,useId as ai,useControlled$1 as aj,usePreviousProps$1 as ak,useEventCallback as al,setRef as am,inputClasses$1 as an,inputBaseClasses$1 as ao,outlinedInputClasses$1 as ap,filledInputClasses$1 as aq,Popper$1 as ar,alpha as as,ListSubheader$1 as at,ClearIcon as au,ArrowDropDownIcon as av,Chip$1 as aw,createBox$1 as ax,createAction as ay,createReducer as az,styled$1 as b,__generator$2 as b$,fetchAllTags as b0,fetchFlows as b1,fetchTemplateGallery as b2,isRevisionsExistOnServerRequest as b3,FormLabel$1 as b4,default_1$e as b5,FormGroup$1 as b6,FormControlLabel$1 as b7,Checkbox$1 as b8,fetchTemplateGalleryFallback as b9,DialogContent$1 as bA,DialogActions$1 as bB,Snackbar$1 as bC,default_1$6 as bD,Search$1 as bE,img$l as bF,img$n as bG,img$X as bH,Tabs$2 as bI,Tab$2 as bJ,deleteEngine as bK,fetchEngine as bL,img$m as bM,AIWareFormatMessage as bN,FormattedDate as bO,fetchVeritoneGraphQLApi as bP,useTheme as bQ,KeyboardArrowRight as bR,KeyboardArrowLeft as bS,InputUnstyled as bT,isHostComponent as bU,getDefaultExportFromNamespaceIfNotNamed as bV,commonjsRequire as bW,reactDom as bX,Transition$1 as bY,_defineProperty$x as bZ,__awaiter$e as b_,Card$1 as ba,CardContent$1 as bb,img$o as bc,CardActions$1 as bd,flowStyles as be,NoResults as bf,CircularProgress$1 as bg,img$e as bh,Dialog$1 as bi,setApiEndpoint as bj,TableContainer$1 as bk,Table$1 as bl,TableHead$1 as bm,TableRow$1 as bn,TableCell$1 as bo,TableSortLabel$1 as bp,TableBody$1 as bq,img$j as br,default_1 as bs,ClickAwayListener as bt,Fade$1 as bu,img$v as bv,img$s as bw,img$T as bx,img$F as by,DialogTitle$1 as bz,Paper$1 as c,ReactMarkdown as c$,__spread as c0,React5 as c1,PropTypes as c2,TransitionGroup$1 as c3,connect$1 as c4,Bookmark as c5,EngineFlagIcons as c6,createAsyncThunk as c7,withStyles as c8,getConfigModule as c9,lightTheme$1 as cA,CssBaseline as cB,Hide as cC,has_1 as cD,Radio$2 as cE,createSvgIcon$2 as cF,_createCompounder as cG,_typeof$D as cH,_assertThisInitialized$x as cI,_setPrototypeOf$z as cJ,_toPropertyKey as cK,_inheritsLoose$2 as cL,hoistNonReactStatics_cjs as cM,commonjsGlobal$2 as cN,combineReducers as cO,createSelector$1 as cP,fork as cQ,statusPill as cR,AIWareThemeProvider$1 as cS,LocalizationProvider as cT,AdapterDateFns as cU,CalendarPicker as cV,Stack$4 as cW,Close$1 as cX,FullscreenExit as cY,Fullscreen as cZ,TabPanel as c_,getAuthModule as ca,getSnackbarModule as cb,AIWareCacheProvider as cc,img$U as cd,img$g as ce,img$f as cf,isEmpty_1 as cg,find_1 as ch,Backdrop$1 as ci,getDefaultMiddleware as cj,isNil_1 as ck,useForm as cl,UpDown as cm,Icon$1 as cn,get_1 as co,map_1 as cp,keys_1 as cq,RadioGroup$1 as cr,Avatar$1 as cs,img$z as ct,baseGraphQLApi as cu,default_1$9 as cv,Controller as cw,FormHelperText$2 as cx,img$i as cy,ThemeProvider as cz,capitalize$2 as d,CurlyBraces as d$,default_1$8 as d0,unmountPanel$1 as d1,AvailableComponents as d2,delay$1 as d3,hidePanel$1 as d4,mountPanel$1 as d5,DialogContentText$1 as d6,userSelector$2 as d7,MoreVert$1 as d8,Menu$1 as d9,_baseTrim as dA,_castSlice as dB,_stringToArray as dC,toString_1 as dD,upperFirst_1 as dE,isArrayLike_1 as dF,isString_1 as dG,toInteger_1 as dH,_baseGet as dI,_baseSlice as dJ,_castPath as dK,_toKey as dL,_isIndex as dM,channel$2 as dN,useFormContext as dO,useIntl as dP,useFieldArray as dQ,VideoCamera as dR,Image$1 as dS,Sound as dT,Description as dU,toNumber_1 as dV,FormProvider as dW,ProgressStepper as dX,size_1 as dY,findIndex_1 as dZ,take as d_,Edit as da,Upload as db,Delete$1 as dc,CustomTabs as dd,useBackupImg as de,img$1C as df,validate as dg,configSelector as dh,baseGraphQLApiWithError as di,VerifiedFilled as dj,Add as dk,ExpandLess$1 as dl,ExpandMore$1 as dm,Collapse$1 as dn,img$19 as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_baseIteratee as dy,_baseToString as dz,_objectWithoutPropertiesLoose$2 as e,Information as e$,UnknownDocument as e0,VariableSizeList as e1,sdkEventManager as e2,SdkEvents as e3,SdkError as e4,distributionTypes as e5,EngineClassIcons as e6,Mode2 as e7,EngineModeIcons as e8,DeploymentModelIcons as e9,isSymbol_1 as eA,_baseMap as eB,_baseUnary as eC,_baseFindIndex as eD,_Set as eE,_setToArray as eF,_SetCache as eG,_cacheHas as eH,img$Q as eI,img$P as eJ,img$1y as eK,img$1x as eL,img$1w as eM,img$N as eN,img$1A as eO,img$M as eP,authSelector as eQ,ListItemAvatar$1 as eR,emphasize as eS,useSlotProps as eT,_arraySome as eU,EntityType as eV,generateState as eW,injectIntl as eX,ErrorBoundary$1 as eY,EPermissionAction as eZ,Process as e_,markdown as ea,guid as eb,EditList as ec,ButtonBase$1 as ed,isObject_1 as ee,_arrayMap as ef,_Symbol as eg,isArguments_1 as eh,_baseEach as ei,_arrayFilter as ej,_getNative as ek,eq_1 as el,_root as em,_Uint8Array as en,_overArg as eo,_isPrototype as ep,isObjectLike_1 as eq,_baseGetTag as er,_arrayLikeKeys as es,isBuffer$5 as et,isFunction_1 as eu,isTypedArray_1 as ev,_Stack as ew,_baseFor as ex,identity_1 as ey,_isIterateeCall as ez,clsx as f,index$1 as f$,Download as f0,NewFolder as f1,SpecialFolder as f2,User as f3,Source as f4,Search$2 as f5,selectIsOLPEnabled as f6,ListItemSecondaryAction$1 as f7,getLibraryModule as f8,cmsUrlSelector as f9,FixedSizeList as fA,selectUserOrgEdgeVersion as fB,EditAttributes as fC,gqlIntrospection as fD,ProcessingDetail as fE,img$y as fF,img$A as fG,img$6 as fH,FilterRemove as fI,AlarmTwo as fJ,tableInfiniteScroll as fK,CheckCircle as fL,FolderOpen as fM,Voice as fN,useDoubleClick as fO,FolderFilled as fP,Time as fQ,img$B as fR,Undefined as fS,PodcastSource as fT,YoutubeSource as fU,TVSource as fV,RadioSource as fW,selectOrgId as fX,navSectionStyles as fY,selectIsUserAdmin as fZ,AvatarGroup$1 as f_,SearchStructuredData as fa,Grow$1 as fb,index as fc,actions as fd,hasPermission as fe,UserAddFilled as ff,MenuList$1 as fg,MoveFolder as fh,EAuthResourceType as fi,Slide$1 as fj,img$c as fk,selectApiConfigs$2 as fl,selectPanelByPanelName as fm,FullScreenContainer as fn,EngineCategoryIcons as fo,isPermissionLoading as fp,Settings$2 as fq,Hamburger as fr,List as fs,enginesFilter as ft,panelsSelector as fu,Badge$1 as fv,MoreHor as fw,convertEntityToAuthResource as fx,AutoSizer as fy,InfiniteLoader as fz,generateUtilityClass as g,View as g$,ErrorState$2 as g0,Stepper$1 as g1,StepConnector$1 as g2,Step$1 as g3,StepLabel$1 as g4,isEqual_1 as g5,NullState$2 as g6,Group as g7,PermissionChangedAction as g8,Lock as g9,green$1 as gA,md5 as gB,selectIsSuperAdmin as gC,organizations_selector as gD,actions$5 as gE,AddUser as gF,selectors as gG,LibraryDropdown as gH,Remove as gI,Save as gJ,Input$3 as gK,getElement as gL,client$1 as gM,Copy as gN,ArrowForward as gO,Modal$1 as gP,Slider$1 as gQ,getDefaultExportFromCjs as gR,_getSymbols as gS,stubArray_1 as gT,_baseGetAllKeys as gU,_getTag as gV,_nodeUtil as gW,_getAllKeys as gX,_castFunction as gY,Article as gZ,Task as g_,useOrganizationPermissions as ga,EAuthSubResourceType as gb,AddGroup as gc,initialConfigSelector as gd,EMessageTypes as ge,errors as gf,ConfirmationModal as gg,EnumHelpers as gh,formatBytes as gi,NotInterested as gj,mountPanelForResponse$1 as gk,default_1$a as gl,tableStyles as gm,ArrowDown as gn,ArrowUp as go,useInterval as gp,Iam as gq,safeFormatMessage as gr,contextMenuStyles as gs,Users as gt,SecurityGroup as gu,getOrganizationPanelModule as gv,Lock2 as gw,EApplicationConfigLevel as gx,NoApps as gy,EApplicationConfigType as gz,composeClasses as h,mountPanel as h$,_objectSpread2 as h0,serialize as h1,stringify$4 as h2,compile as h3,isNumber_1 as h4,Check as h5,EngineIconsRenderer as h6,FormattedRelativeTime$1 as h7,BottomQueue as h8,TopQueue as h9,PackagesAvatar as hA,actionChannel as hB,cancelled as hC,flush$4 as hD,tableSearchComponents as hE,cancel as hF,FlowTemplate as hG,Node as hH,Palette as hI,FlowCenter2 as hJ,ArrowBack as hK,Schema$1 as hL,panelComponents as hM,img$1 as hN,img$x as hO,AutomateNode as hP,Clear as hQ,ExpandLess as hR,ExpandMore as hS,registry as hT,registerComponent as hU,AvailableWidgets as hV,updatePanelMicroFrontendProps as hW,setData as hX,root as hY,mountWidget as hZ,unmountWidget as h_,Pause as ha,Cancel as hb,Folder as hc,Hidden as hd,dateRangeFilter as he,statusFilter as hf,TableLoadingState as hg,setDuration as hh,resetDuration as hi,createStack as hj,ButtonGroupContext$1 as hk,toFinite_1 as hl,_baseForOwn as hm,_arrayReduce as hn,hasIn_1 as ho,now_1 as hp,useSyncExternalStoreExports as hq,Engines as hr,EngineComponentLoader as hs,EngineFieldType as ht,imageUpload as hu,characterCountTextField as hv,tabsClasses$1 as hw,Packages as hx,Resources$1 as hy,selectUserCanCreatePackage as hz,createSvgIcon$1 as i,unmountPanel as i0,hidePanel as i1,unmountAllPanel as i2,init as i3,aiwareEvents as i4,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$5 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,betaFeaturesSelector as y,useNavigate as z};
|
package/js-core.esm.js.gz
CHANGED
|
Binary file
|
package/js-core.umd.js
CHANGED
|
@@ -1528,7 +1528,7 @@ createScheduledJob(input:{
|
|
|
1528
1528
|
}
|
|
1529
1529
|
`)}),n},[]).join("\r\n")}
|
|
1530
1530
|
}
|
|
1531
|
-
`,l={entityId:t,entityType:e};try{a=yield Sne({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(g=(a.errors||[])[0])?void 0:g.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function gct(t){return dct(this,void 0,void 0,function*(){var e="getMyRights";return(yield A(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const fct=(t,n,r)=>e=>{return t&&n&&(e=e[cct].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},hct=e=>e[cct].rights;var mct=Object.freeze({__proto__:null,selectPermissionsByEntity:fct,selectMyRights:hct});function*vct(t){var{entityId:t,entityType:n}=t.payload,i=yield E(Xre),e=yield E(Lre),o=yield E(gre),a=yield E(Are),r=yield E(fct(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield k(uct.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield T(pct,e,o,{entityType:n,entityId:t});else{let e=yield E(hct);if("success"!==e.status&&"pending"!==e.status){yield k(uct.fetchMyRightsStarted);try{var s=yield T(gct,i);yield k(uct.fetchMyRightsSucceeded(s)),e=yield E(hct)}catch(e){throw yield k(uct.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield of([uct.fetchMyRightsFailed,uct.fetchMyRightsSucceeded]),e=yield E(hct));const l=e["myRights"];act(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=((e,t,n)=>{const r=(null==(e=$lt[e])?void 0:e[t])||[];return 0<n.filter(e=>r&&r.includes(e)).length})(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield k(uct.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){uct.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*xct(){yield af([function*(){yield QL(uct.fetchObjectPermissionsStart.type,vct)}()])}const yct=e=>{const t=De.exports.useRef(),n=de(),r=null==(o=ue(hre).organization)?void 0:o.organizationId,i=ue(fct(Jlt.Organization,String(r),e));De.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(uct.fetchObjectPermissionsStart({entityType:Jlt.Organization,entityId:String(r)})))},[n,r,i]);var o=De.exports.useCallback(e=>{return!sct(i)&&lct(i,e)},[i]);return{permissions:i,hasPermission:o}},bct=new class{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}};Wh.addModules([{id:mlt,reducerMap:{[mlt]:vlt},sagas:[Slt],initialActions:[]},(Nce=dlt,Yde=plt,{id:dte,reducerMap:{panels:(e,{type:t,payload:n})=>{switch(t){case pte({}).type:{var r=[...e],i=(n.panelConfig.show=!0,n.panelConfig);const a=null==i?void 0:i.parentPanelId;var i=null==i?void 0:i.dimmedStatus;return"dimAllParents"===i?[...r.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)+1})})}),n]:a&&i?(r[i=e.findIndex(e=>e.panelId===a)]=Object.assign(Object.assign({},r[i]),{panelConfig:Object.assign(Object.assign({},null==(o=r[i])?void 0:o.panelConfig),{dimmed:((null==(i=null==(o=r[i])?void 0:o.panelConfig)?void 0:i.dimmed)||0)+1})}),[...r,n]):[...e,n]}case fte("").type:{i=null==(o=e.find(e=>e.panelId===n))?void 0:o.panelConfig;const s=null==i?void 0:i.parentPanelId;var r=null==i?void 0:i.dimmedStatus,o=e.filter(e=>e.panelId!==n);return"dimAllParents"===r?o.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)-1})})}):(s&&r&&-1!==(i=e.findIndex(e=>e.panelId===s))&&(o[i]=Object.assign(Object.assign({},o[i]),{panelConfig:Object.assign(Object.assign({},o[i].panelConfig),{dimmed:((null==(r=o[i].panelConfig)?void 0:r.dimmed)||0)-1})})),o)}case hte("").type:i=e.find(e=>e.panelId===n),r=e.filter(e=>e.panelId!==n),i=Object.assign(Object.assign({},i),{panelConfig:Object.assign(Object.assign({},null==i?void 0:i.panelConfig),{show:!1})});return[...r,i];case xte("").type:return e.map(e=>Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null==e?void 0:e.panelConfig),{show:!1})}));case mte({}).type:o=e.find(e=>e.panelId===n.id),r=e.filter(e=>e.panelId!==n.id),o=Object.assign(Object.assign({},o),{microFrontend:Object.assign(Object.assign({},null==o?void 0:o.microFrontend),{config:n.props})});return[...r,o]}return e||[]}},sagas:[function(p,g){const f={};return function*(){yield QL(pte({}).type,function*(e){const{panelId:t,microFrontend:{name:n},panelConfig:r}=null==e?void 0:e.payload;let i=void 0;g&&(i=p[r.type]||(yield T(g,r.type)),yield lf(g,n));var o,a,s,l=i||p[r.type],c=(r.siblingPanelId?(c=yield E(e=>e.panels.find(e=>e.panelId===r.siblingPanelId)))&&Ste(c.panelConfig.ancestorCenterPanelId)&&({panelConfig:{marginTop:o=0,marginStart:u=0,zIndex:s=1e3},panelId:a}=c,a=(null==(a=null===document||void 0===document?void 0:document.getElementById(a))?void 0:a.clientWidth)||650,r.marginTop=0!==r.marginTop&&wte(o)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:wte(u)+a,r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=c.panelConfig.ancestorCenterPanelId):r.parentPanelId&&(o=yield E(e=>e.panels.find(e=>e.panelId===r.parentPanelId)))&&(Ste(o.panelId)||Ste(o.panelConfig.ancestorCenterPanelId))&&({panelConfig:{marginTop:u=0,marginStart:a=0,zIndex:s=1e3}}=o,r.marginTop=0!==r.marginTop&&wte(u)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:wte(a),r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=o.panelConfig.ancestorCenterPanelId||o.panelId),Ite(t)),u=eW(c);u.classList.add("aiware-el");let d;f[c]?d=f[c]:(d=Ze.createRoot(u),f[c]=d),d.render(nt.exports.jsx(uk,{children:nt.exports.jsx(QO,{children:nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Hb,Object.assign({onClickAway:Cte},{children:nt.exports.jsx(Ate,{children:nt.exports.jsx(l,Object.assign({type:"SIMPLE_PANEL",panelId:t,"data-test":"panel-"+t},{children:nt.exports.jsx(pe,Object.assign({sx:{display:"flex",justifyContent:"center",my:20}},{children:nt.exports.jsx(Y4,{size:50})}))}))})}))}))})})),yield k(gte(e.payload))}),yield QL(gte({}).type,function*(e){var{panelId:e,microFrontend:{name:t},panelConfig:n}=(null==e?void 0:e.payload)||{};let r=null;var t=(r=g?yield T(g,t):r)||p[t]||(()=>nt.exports.jsx("div",{children:"Component Not Found."})),n=p[n.type],i=Ite(e);eW(i).classList.add("aiware-el"),f[i].render(nt.exports.jsx(uk,{children:nt.exports.jsx(QO,{children:nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Hb,Object.assign({onClickAway:Cte},{children:nt.exports.jsx(Ate,{children:nt.exports.jsx(n,Object.assign({type:"SIMPLE_PANEL",panelId:e,"data-test":"panel-"+e},{children:nt.exports.jsx(t,{})}))})}))}))})}))}),yield QL(fte("").type,function*(t){var e=yield E(e=>e.panels.find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.parentPanelId)===t.payload}));e&&0<Object.keys(e).length&&(yield k(fte(e.panelId))),setTimeout(()=>{var e=Ite(t.payload);f[e]&&f[e].unmount(),delete f[e]})}),yield QL(vte.type,function(e){var e=null==(e=null==e?void 0:e.payload)?void 0:e.url,t=document.createElement("a");t.target="_blank",t.href=e,t.click()})}}(Nce,Yde)],initialActions:[]}),{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===Koe({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]},aie(),Foe(),{id:cct,reducerMap:{permissions:Oue},sagas:[xct],initialActions:[]}]);let Cct=!1;const Act=()=>{var e=ue(fre);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!Cct&&(Cct=!0,setTimeout(()=>{Wh.addModules([SGe()])},0)),null};function Ict(){var e=ue(fre);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&Cct?nt.exports.jsx(Xlt,{}):null}hpe={updateToken(e){e?Wh.dispatch(zne({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{Wh.dispatch(Yoe())},1e3)):Wh.dispatch(Yoe())},reportAppActivity(e){bct.checkIfCanCall(e)&&Wh.dispatch($oe())}};mpe=eW("aiWARE"),mpe.classList.add("aiware-el"),ype=Ze.createRoot(mpe),"_auth"===window.name?Fie(window.location.hash,window.opener):ype.render(nt.exports.jsx(uk,{children:nt.exports.jsxs(QO,{children:[nt.exports.jsx(function(){return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Nlt,{}),nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Act,{})}))]})},{}),nt.exports.jsx(function(){return nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(pg,Object.assign({modules:[Qie()]},{children:nt.exports.jsx(klt,{})}))}))},{}),nt.exports.jsx(function(){return nt.exports.jsx(nt.exports.Fragment,{children:nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Joe,{children:nt.exports.jsx(Ict,{})})}))})},{}),nt.exports.jsx(()=>(fb(),null),{})]})})),Epe=(e,t)=>{var n=Qq(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),Wh.dispatch(xlt({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},Ape=e=>(Wh.dispatch(Clt(e)),!0),jpe=(e,t)=>{const n=e.panelId||Qq();var{microFrontend:e,panelConfig:r}=e;Wh.dispatch(pte({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield QL(i.map(e=>e.type),function*(){var e=(yield E(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return Wh.addModule(r),n},wpe=e=>(Wh.dispatch(fte(e)),!0),Tpe=e=>(Wh.dispatch(hte(e)),!0);function wct(e,t){(e=e).applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql");var n,e=e.knowledgeBaseURL?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e;e?(n=e["authToken"],n=(t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}})(n||""),Wh.dispatch(sre(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}Ppe={on:function(e,t){jct(e),Cne.on.call(Cne,e,t)},off:function(e){jct(e),Cne.off.call(Cne,e)}};function jct(e){if(!e||"string"!=typeof e)throw new bne("Please provide a valid event name!");if(!Tte[e])throw new bne("Unknown event: "+e)}function Sct(n,e,r,t){void 0===r&&(r=global),void 0===t&&(t={});var i=De.exports.useRef(),o=t.capture,a=t.passive,s=t.once;De.exports.useEffect(function(){i.current=e},[e]),De.exports.useEffect(function(){var e,t;if(r&&r.addEventListener)return r.addEventListener(n,e=function(e){return i.current(e)},t={capture:o,passive:a,once:s}),function(){r.removeEventListener(n,e,t)}},[n,r,o,a,s])}window&&(window.aiWare_initTesting=()=>{window.aiWare_store=Wh,window.aiWare_theme={darkTheme:JO,lightTheme:KO}},window.aiware={init:wct,auth:hpe,helpCenter:{openKnowledgeBasePanel:(xpe=new Ane({actions:{setCustomKnowledgeBaseUrlAction:Plt,setCustomDocsUrlAction:Dlt,updateSelectedTabAction:Mlt}})).openKnowledgeBasePanel.bind(xpe),openDocsPanel:xpe.openDocsPanel.bind(xpe)},dataCenter:{openImporterPanel:(vpe=new xne).openImporterPanel.bind(vpe)},on:Ppe.on,off:Ppe.off,hidePanel:Tpe,unmountPanel:wpe,store:Wh,registry:dlt,registerComponent:epe,AvailableWidgets:u.AvailableWidgets,mountPanelAction:pte,unmountPanelAction:fte,hidePanelAction:hte,updatePanelMicroFrontendPropsAction:mte,setData:Koe,mountWidget:Epe,mountPanel:jpe,mountPanelForResponse:e=>bte(e,Wh),unmountWidget:Ape,version:"sdk_release_version",commit:"932c26ea8",releaseDate:"2023-08-30T18:45:12.831Z"}),window.global=window;var Oct={};function kct(l,e){var c,n;return(e=void 0===e?"undefined"!=typeof global&&global.localStorage?global.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:"undefined"!=typeof window&&window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null:e)?(n=e,c={get:function(e,t){e=n.getItem(e);return null==e?"function"==typeof t?t():t:JSON.parse(e)},set:function(e,t){n.setItem(e,JSON.stringify(t))}},function(e){return t=e,i=l,n=c.get,r=c.set,o=De.exports.useRef(null),e=De.exports.useState(function(){return n(i,t)}),a=e[0],s=e[1],Sct("storage",function(e){e.key===i&&(e=JSON.parse(e.newValue),a!==e)&&s(e)}),De.exports.useEffect(function(){return o.current=(r=s,e=t,Oct[n=i]||(Oct[n]={callbacks:[],value:e}),Oct[n].callbacks.push(r),{deregister:function(){var e=Oct[n].callbacks,t=e.indexOf(r);-1<t&&e.splice(t,1)},emit:function(t){Oct[n].value!==t&&(Oct[n].value=t,Oct[n].callbacks.forEach(function(e){r!==e&&e(t)}))}}),function(){o.current.deregister()};var n,r,e},[t,i]),e=De.exports.useCallback(function(e){var t="function"==typeof e?e(a):e;r(i,t),s(t),o.current.emit(e)},[a,r,i]),[a,e];var t,i,n,r,o,a,s}):De.exports.useState}function Tct(){}var Ect={classList:{add:Tct,remove:Tct}},Nct=function(e,t,n){void 0===n&&(n=global);var e=e?kct(e,t):De.exports.useState,r=n.matchMedia?n.matchMedia("(prefers-color-scheme: dark)"):{},i="(prefers-color-scheme: dark)"===r.media,o=n.document&&n.document.body||Ect;return{usePersistedDarkModeState:e,getDefaultOnChange:function(t,n,r){return void 0===t&&(t=o),void 0===n&&(n="dark-mode"),void 0===r&&(r="light-mode"),function(e){t.classList.add(e?n:r),t.classList.remove(e?r:n)}},mediaQueryEventTarget:{addEventListener:function(e,t){return r.addListener&&r.addListener(t)},removeEventListener:function(e,t){return r.removeListener&&r.removeListener(t)}},getInitialValue:function(e){return i?r.matches:e}}};const Mct="theme-switcher",Pct="search-bar",Dct=fe()(e=>({appBarContainer:{display:"flex",padding:"8px",justifyContent:"space-between",alignItems:"center"},margin:{marginTop:54}})),Rct={};["en","es","fr"].forEach(e=>{Rct[e]={}});function Lct(e){return e&&e.Math==Math&&e}function Fct(e){try{return!!e()}catch(e){return!0}}function Vct(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Hct(e){return Nut(Eut(e),8,-1)}function Uct(e){if(null==e)throw Rut("Can't call method on "+e);return e}function Bct(e){return Lut(Fut(e))}function zct(e){return"function"==typeof e}function _ct(e){return"object"==typeof e?null!==e:Vut(e)}function qct(e,t){return arguments.length<2?(n=Hut[e],Uut(n)?n:void 0):Hut[e]&&Hut[e][t];var n}function Wct(e){try{return Zut(e)}catch(e){return"Object"}}function Zct(e){if(Gut(e))return e;throw Kut(Jut(e)+" is not a function")}function Gct(e,t){return null==(e=e[t])?void 0:Yut(e)}function Jct(t,n){try{ndt(tdt,t,{value:n,configurable:!0,writable:!0})}catch(e){tdt[t]=n}return n}function Kct(e){return odt(idt(e))}function Yct(e){return"Symbol("+(void 0===e?"":e)+")_"+udt(++ldt+cdt,36)}function Qct(e){var t;return ddt(fdt,e)&&(pdt||"string"==typeof fdt[e])||(t="Symbol."+e,pdt&&ddt(hdt,e)?fdt[e]=hdt[e]:fdt[e]=(gdt&&mdt?mdt:vdt)(t)),fdt[e]}function Xct(e){return e=jdt(e,"string"),Sdt(e)?e:e+""}function $ct(e){return kdt?Odt.createElement(e):{}}function eut(e){if(Vdt(e))return e;throw Udt(Hdt(e)+" is not an object")}function tut(e){return ept[e]||(ept[e]=$dt(e))}function nut(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(mpt(n)&&xpt(n,o,r),r.global)i?e[t]=n:ypt(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:vpt.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}function rut(e){return(e=+e)!=e||0==e?0:Apt(e)}function iut(e,t){return(e=Ipt(e))<0?wpt(e+t,0):jpt(e,t)}function out(e){return 0<e?Opt(Spt(e),9007199254740991):0}function aut(e){return kpt(e.length)}function sut(s){return function(e,t,n){var r,i=Tpt(e),o=Npt(i),a=Ept(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}}function lut(e,t){var n,r=Ppt(e),i=0,o=[];for(n in r)!Mpt(Rpt,n)&&Mpt(r,n)&&Lpt(o,n);for(;t.length>i;)!Mpt(r,n=t[i++])||~Dpt(o,n)||Lpt(o,n);return o}function cut(e,t,n){for(var r=qpt(t),i=Zpt.f,o=Wpt.f,a=0;a<r.length;a++){var s=r[a];_pt(e,s)||n&&_pt(n,s)||i(e,s,o(t,s))}}function uut(e,t){return(e=Qpt[Ypt(e)])==$pt||e!=Xpt&&(Jpt(t)?Gpt(t):!!t)}function dut(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?egt:s?egt[o]||igt(o,{}):(egt[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=tgt(l,n))&&i.value:l[n],!agt(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;ogt(r,i)}(e.sham||i&&i.sham)&&ngt(r,"sham",!0),rgt(l,n,r,e)}}var put,gut,fut,hut,mut,vut,xut,yut,but=Object.freeze({__proto__:null,APP_BAR:"app-bar",SEARCH_BAR:Pct,SampleAppBar:e=>{var t=Dct()["classes"];const[n,r]=De.exports.useState("en"),[,i]=De.exports.useState({});De.exports.useEffect(()=>{e.locale&&r(e.locale)},[e.locale]),De.exports.useEffect(()=>{i(Rct[n])},[n]);void 0===x&&(x=!1),a=(o=void 0===o?{}:o).element,s=o.classNameDark,l=o.classNameLight,c=o.onChange,void 0===(u=o.storageKey)&&(u="darkMode"),d=o.storageProvider,p=o.global,g=(o=De.exports.useMemo(function(){return Nct(u,d,p)},[u,d,p])).getDefaultOnChange,f=o.mediaQueryEventTarget,h=(o=(0,o.usePersistedDarkModeState)((0,o.getInitialValue)(x)))[0],m=o[1],v=De.exports.useMemo(function(){return c||g(a,s,l)},[c,a,s,l,g]),De.exports.useEffect(function(){v(h)},[v,h]),Sct("change",function(e){return m(e.matches)},f);var o,a,s,l,c,u,d,p,g,f,h,m,v,x={value:h,enable:De.exports.useCallback(function(){return m(!0)},[m]),disable:De.exports.useCallback(function(){return m(!1)},[m]),toggle:De.exports.useCallback(function(){return m(function(e){return!e})},[m])};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(lg,Object.assign({store:e.store||Wh},{children:nt.exports.jsx(yI,Object.assign({"data-test":"app-bar"},{children:nt.exports.jsxs("div",Object.assign({className:t.appBarContainer},{children:[nt.exports.jsx(ae,Object.assign({variant:"subtitle2"},{children:"App Name"})),nt.exports.jsx(ae,Object.assign({"data-test":Pct},{children:nt.exports.jsx(Joe,Object.assign({locale:n},{children:nt.exports.jsx(oe,{id:"os-sample-app-bar.hXq2hF",defaultMessage:"Search Bar",description:"Primary Search Bar Place Holder Text"})}))})),nt.exports.jsxs("div",{children:["☀",nt.exports.jsx(aS,{"data-test":Mct,onChange:x.toggle,checked:x.value}),"☾"]})]}))}))})),nt.exports.jsx("div",{className:t.margin})]})},THEME_SWITCHER:Mct}),kpe={},Ope=z.exports,Mpe=(Object.defineProperty(kpe,"__esModule",{value:!0}),kpe.default=void 0,Ope(_J)),Dde=nt.exports,ede=(0,Mpe.default)((0,Dde.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),Cut=kpe.default=ede,Jpe={},H$e=z.exports,lue=(Object.defineProperty(Jpe,"__esModule",{value:!0}),Jpe.default=void 0,H$e(_J)),s=nt.exports,nge=(0,lue.default)((0,s.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Aut=Jpe.default=nge,$pe={},Oge=z.exports,Iut=(Object.defineProperty($pe,"__esModule",{value:!0}),$pe.default=void 0),Rde=Oge(_J),ppe=nt.exports,Npe=(0,Rde.default)((0,ppe.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),Iut=$pe.default=Npe,Bpe={},Hpe=z.exports,Lpe=(Object.defineProperty(Bpe,"__esModule",{value:!0}),Bpe.default=void 0,Hpe(_J)),Rpe=nt.exports,Gpe=(0,Lpe.default)((0,Rpe.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z"}),"VisibilityOffOutlined"),wut=Bpe.default=Gpe,X$e={},gge=z.exports,lge=(Object.defineProperty(X$e,"__esModule",{value:!0}),X$e.default=void 0,gge(_J)),pge=nt.exports,Fpe=(0,lge.default)((0,pge.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"),jut=X$e.default=Fpe,Dpe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vpe=Lct("object"==typeof globalThis&&globalThis)||Lct("object"==typeof window&&window)||Lct("object"==typeof self&&self)||Lct("object"==typeof Dpe&&Dpe)||function(){return this}()||Function("return this")(),Gce={},mtt=!Fct(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),zpe=!Fct(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Sut=Function.prototype.call,Wpe=zpe?Sut.bind(Sut):function(){return Sut.apply(Sut,arguments)},Lge={},Dge={}.propertyIsEnumerable,Out=Object.getOwnPropertyDescriptor,Fge=Out&&!Dge.call({1:2},1),Vge=(Lge.f=Fge?function(e){e=Out(this,e);return!!e&&e.enumerable}:Dge,zpe),Rge=Function.prototype,Bge=Rge.bind,kut=Rge.call,Tut=Vge&&Bge.bind(kut,kut),Uge=Vge?function(e){return e&&Tut(e)}:function(e){return e&&function(){return kut.apply(e,arguments)}},Zpe=Uge,Eut=Zpe({}.toString),Nut=Zpe("".slice),oge=Fct,Mut=Hct,Put=Object,Dut=Uge("".split),ige=oge(function(){return!Put("z").propertyIsEnumerable(0)})?function(e){return"String"==Mut(e)?Dut(e,""):Put(e)}:Put,Rut=TypeError,Lut=ige,Fut=Uct,Vut=zct,Hut=Vpe,Uut=zct,p1e=Uge({}.isPrototypeOf),i=qct("navigator","userAgent")||"",_ge=i,Fue=Vpe.process,qge=Vpe.Deno,Ede=Fue&&Fue.versions||qge&&qge.version,rde=Ede&&Ede.v8,Jde=eyt=!(eyt=rde?0<(Jxt=rde.split("."))[0]&&Jxt[0]<4?1:+(Jxt[0]+Jxt[1]):eyt)&&_ge&&(!(Jxt=_ge.match(/Edge\/(\d+)/))||74<=Jxt[1])&&(Jxt=_ge.match(/Chrome\/(\d+)/))?+Jxt[1]:eyt,But=Jde,zge=Fct,n1e=!!Object.getOwnPropertySymbols&&!zge(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&But&&But<41}),Kge=n1e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zut=qct,_ut=zct,qut=p1e,Wut=Object,Zge=Kge?function(e){return"symbol"==typeof e}:function(e){var t=zut("Symbol");return _ut(t)&&qut(t.prototype,Wut(e))},Zut=String,Gut=zct,Jut=Wct,Kut=TypeError,Yut=Zct,Qut=Wpe,Xut=zct,$ut=_ct,edt=TypeError,xue={exports:{}},tdt=Vpe,ndt=Object.defineProperty,Yge=Jct,Hge="__core-js_shared__",Xge=Vpe[Hge]||Yge(Hge,{}),rdt=Xge,idt=((xue.exports=function(e,t){return rdt[e]||(rdt[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"}),Uct),odt=Object,adt=Kct,sdt=Uge({}.hasOwnProperty),Qge=Object.hasOwn||function(e,t){return sdt(adt(e),t)},t1e=Uge,ldt=0,cdt=Math.random(),udt=t1e(1..toString),Wge=Vpe,ddt=Qge,$ge=Yct,pdt=n1e,gdt=Kge,fdt=(0,xue.exports)("wks"),hdt=Wge.Symbol,mdt=hdt&&hdt.for,vdt=gdt?hdt:hdt&&hdt.withoutSetter||$ge,xdt=Wpe,ydt=_ct,bdt=Zge,Cdt=Gct,Adt=function(e,t){var n,r;if("string"===t&&Xut(n=e.toString)&&!$ut(r=Qut(n,e)))return r;if(Xut(n=e.valueOf)&&!$ut(r=Qut(n,e)))return r;if("string"!==t&&Xut(n=e.toString)&&!$ut(r=Qut(n,e)))return r;throw edt("Can't convert object to primitive value")},Idt=TypeError,wdt=Qct("toPrimitive"),jdt=function(e,t){if(!ydt(e)||bdt(e))return e;var n=Cdt(e,wdt);if(n){if(n=xdt(n,e,t=void 0===t?"default":t),!ydt(n)||bdt(n))return n;throw Idt("Can't convert object to primitive value")}return Adt(e,t=void 0===t?"number":t)},Sdt=Zge,Gge=_ct,Odt=Vpe.document,kdt=Gge(Odt)&&Gge(Odt.createElement),Tdt=$ct,e1e=!mtt&&!Fct(function(){return 7!=Object.defineProperty(Tdt("div"),"a",{get:function(){return 7}}).a}),Edt=Wpe,Ndt=Lge,Mdt=Vct,Pdt=Bct,Ddt=Xct,Rdt=Qge,Ldt=e1e,Fdt=Object.getOwnPropertyDescriptor,r1e=(Gce.f=mtt?Fdt:function(e,t){if(e=Pdt(e),t=Ddt(t),Ldt)try{return Fdt(e,t)}catch(e){}if(Rdt(e,t))return Mdt(!Edt(Ndt.f,e,t),e[t])},{}),g1e=mtt&&Fct(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Vdt=_ct,Hdt=String,Udt=TypeError,Bdt=e1e,zdt=eut,_dt=Xct,qdt=TypeError,Wdt=Object.defineProperty,Zdt=Object.getOwnPropertyDescriptor,Gdt="enumerable",Jdt="configurable",Kdt="writable",Vde=(r1e.f=mtt?g1e?function(e,t,n){var r;return zdt(e),t=_dt(t),zdt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Kdt in n&&!n[Kdt]&&(r=Zdt(e,t))&&r[Kdt]&&(e[t]=n.value,n={configurable:(Jdt in n?n:r)[Jdt],enumerable:(Gdt in n?n:r)[Gdt],writable:!1}),Wdt(e,t,n)}:Wdt:function(e,t,n){if(zdt(e),t=_dt(t),zdt(n),Bdt)try{return Wdt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw qdt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},mtt),Ydt=r1e,Qdt=Vct,que=Vde?function(e,t,n){return Ydt.f(e,t,Qdt(1,n))}:function(e,t,n){return e[t]=n,e},i1e={exports:{}},z_=mtt,uge=Qge,bde=Function.prototype,_ue=z_&&Object.getOwnPropertyDescriptor,s1e=uge(bde,"name"),d1e={EXISTS:s1e,PROPER:s1e&&"something"===function(){}.name,CONFIGURABLE:s1e&&(!z_||_ue(bde,"name").configurable)},c1e=zct,o1e=Xge,Xdt=Uge(Function.toString),a1e=(c1e(o1e.inspectSource)||(o1e.inspectSource=function(e){return Xdt(e)}),o1e.inspectSource),u1e=zct,P_=a1e,r=Vpe.WeakMap,__=u1e(r)&&/native code/.test(P_(r)),$dt=Yct,ept=(0,xue.exports)("keys"),Tce={},e=Uge,tpt=_ct,npt=que,rpt=Qge,SG=Xge,Eue=tut,TZ=Tce,ipt="Object already initialized",opt=Vpe.TypeError,yP=Vpe.WeakMap,ux=(xut=__||SG.state?(put=SG.state||(SG.state=new yP),gut=e(put.get),fut=e(put.has),hut=e(put.set),mut=function(e,t){if(fut(put,e))throw new opt(ipt);return t.facade=e,hut(put,e,t),t},vut=function(e){return gut(put,e)||{}},function(e){return fut(put,e)}):(TZ[yut=Eue("state")]=!0,mut=function(e,t){if(rpt(e,yut))throw new opt(ipt);return t.facade=e,npt(e,yut,t),t},vut=function(e){return rpt(e,yut)?e[yut]:{}},function(e){return rpt(e,yut)}),{set:mut,get:vut,has:xut,enforce:function(e){return xut(e)?vut(e):mut(e,{})},getterFor:function(t){return function(e){if(tpt(e)&&(e=vut(e)).type===t)return e;throw opt("Incompatible receiver, "+t+" required")}}}),xG=Fct,apt=zct,spt=Qge,lpt=mtt,cpt=d1e.CONFIGURABLE,upt=a1e,dpt=ux.enforce,ppt=ux.get,gpt=Object.defineProperty,fpt=lpt&&!xG(function(){return 8!==gpt(function(){},"length",{value:8}).length}),hpt=String(String).split("String"),cx=i1e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!spt(e,"name")||cpt&&e.name!==t)&&(lpt?gpt(e,"name",{value:t,configurable:!0}):e.name=t),fpt&&n&&spt(n,"arity")&&e.length!==n.arity&&gpt(e,"length",{value:n.arity});try{n&&spt(n,"constructor")&&n.constructor?lpt&&gpt(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=dpt(e);return spt(n,"source")||(n.source=hpt.join("string"==typeof t?t:"")),e},mpt=(Function.prototype.toString=cx(function(){return apt(this)&&ppt(this).source||upt(this)},"toString"),zct),vpt=r1e,xpt=i1e.exports,ypt=Jct,mG={},bpt=Math.ceil,Cpt=Math.floor,Apt=Math.trunc||function(e){e=+e;return(0<e?Cpt:bpt)(e)},Ipt=rut,wpt=Math.max,jpt=Math.min,Spt=rut,Opt=Math.min,kpt=out,Tpt=Bct,Ept=iut,Npt=aut,Q_={includes:sut(!0),indexOf:sut(!1)},TG=Uge,Mpt=Qge,Ppt=Bct,Dpt=Q_.indexOf,Rpt=Tce,Lpt=TG([].push),uD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fpt=lut,Vpt=uD.concat("length","prototype"),XW=(mG.f=Object.getOwnPropertyNames||function(e){return Fpt(e,Vpt)},{}),Tg=(XW.f=Object.getOwnPropertySymbols,qct),Hpt=mG,Upt=XW,Bpt=eut,zpt=Uge([].concat),kde=Tg("Reflect","ownKeys")||function(e){var t=Hpt.f(Bpt(e)),n=Upt.f;return n?zpt(t,n(e)):t},_pt=Qge,qpt=kde,Wpt=Gce,Zpt=r1e,Gpt=Fct,Jpt=zct,Kpt=/#|\.prototype\./,Ypt=uut.normalize=function(e){return String(e).replace(Kpt,".").toLowerCase()},Qpt=uut.data={},Xpt=uut.NATIVE="N",$pt=uut.POLYFILL="P",l1e=uut,egt=Vpe,tgt=Gce.f,ngt=que,rgt=nut,igt=Jct,ogt=cut,agt=l1e,sgt=lut,lgt=uD,bG=Object.keys||function(e){return sgt(e,lgt)},cgt=mtt,_de=Uge,ugt=Wpe,q_=Fct,dgt=bG,pgt=XW,ggt=Lge,fgt=Kct,hgt=ige,mgt=Object.assign,vgt=Object.defineProperty,xgt=_de([].concat),Tge=!mgt||q_(function(){var e,t,n,r;return cgt&&1!==mgt({b:1},mgt(vgt({},"a",{enumerable:!0,get:function(){vgt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=mgt({},e)[n])||dgt(mgt({},t)).join("")!=r})?function(e,t){for(var n=fgt(e),r=arguments.length,i=1,o=pgt.f,a=ggt.f;i<r;)for(var s,l=hgt(arguments[i++]),c=o?xgt(dgt(l),o(l)):dgt(l),u=c.length,d=0;d<u;)s=c[d++],cgt&&!ugt(a,l,s)||(n[s]=l[s]);return n}:mgt,Rce=(dut({target:"Object",stat:!0,arity:2,forced:Object.assign!==Tge},{assign:Tge}),{}),ygt=r1e,bgt=eut,Cgt=Bct,Agt=bG;Rce.f=mtt&&!g1e?Object.defineProperties:function(e,t){bgt(e);for(var n,r=Cgt(t),i=Agt(t),o=i.length,a=0;a<o;)ygt.f(e,n=i[a++],r[n]);return e};function Igt(){}function wgt(e){e.write(Lgt("")),e.close();var t=e.parentWindow.Object;return e=null,t}function jgt(e){Hgt[Vgt][e]=!0}function Sgt(e){var t;return Bgt(e)&&(void 0!==(t=e[_gt])?!!t:"RegExp"==zgt(e))}var Ogt,Ice=qct("document","documentElement"),kgt=eut,Tgt=Rce,Egt=uD,Vce=Tce,Ngt=Ice,Mgt=$ct,Pgt="prototype",Dgt="script",Rgt=tut("IE_PROTO"),Lgt=function(e){return"<"+Dgt+">"+e+"</"+Dgt+">"},Fgt=function(){try{Ogt=new ActiveXObject("htmlfile")}catch(e){}Fgt="undefined"==typeof document||document.domain&&Ogt?wgt(Ogt):(e=Mgt("iframe"),t="java"+Dgt+":",e.style.display="none",Ngt.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(Lgt("document.F=Object")),t.close(),t.F);for(var e,t,n=Egt.length;n--;)delete Fgt[Pgt][Egt[n]];return Fgt()},Jge=(Vce[Rgt]=!0,Object.create||function(e,t){var n;return null!==e?(Igt[Pgt]=kgt(e),n=new Igt,Igt[Pgt]=null,n[Rgt]=e):n=Fgt(),void 0===t?n:Tgt.f(n,t)}),Mde=Qct,Uce=Jge,tue=r1e.f,Vgt=Mde("unscopables"),Hgt=Array.prototype,sx=(null==Hgt[Vgt]&&tue(Hgt,Vgt,{configurable:!0,value:Uce(null)}),dut),Ugt=Q_.includes,xZ=jgt,Bgt=(sx({target:"Array",proto:!0,forced:Fct(function(){return!Array(1).includes()})},{includes:function(e){return Ugt(this,e,1<arguments.length?arguments[1]:void 0)}}),xZ("includes"),_ct),zgt=Hct,_gt=Qct("match"),qgt=Sgt,Wgt=TypeError,wZ={};wZ[Qct("toStringTag")]="z";function Zgt(e){if("Symbol"===i1t(e))throw TypeError("Cannot convert a Symbol value to a string");return o1t(e)}function Ggt(){var e=d1t(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}function Jgt(n,e,t,r){var a,i=L1t(n),s=!R1t(function(){var e={};return e[i]=function(){return 7},7!=""[n](e)}),o=s&&!R1t(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[V1t]=function(){return t},t.flags="",t[i]=/./[i]),t.exec=function(){return e=!0,null},t[i](""),!e});s&&o&&!t||(a=M1t(/./[i]),o=e(i,""[n],function(e,t,n,r,i){var e=M1t(e),o=t.exec;return o===D1t||o===H1t.exec?s&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),P1t(String.prototype,n,o[0]),P1t(H1t,i,o[1])),r&&F1t(H1t[i],"sham",!0)}function Kgt(i){return function(e,t){var n,e=B1t(z1t(e)),t=U1t(t),r=e.length;return t<0||r<=t?i?"":void 0:(n=q1t(e,t))<55296||56319<n||t+1===r||(r=q1t(e,t+1))<56320||57343<r?i?_1t(e,t):n:i?W1t(e,t,t+2):r-56320+(n-55296<<10)+65536}}function Ygt(e,t,n){return t+(n?Z1t(e,t).length:1)}function Qgt(e,t){var n=e.exec;if(nft(n))return null!==(n=eft(n,e,t))&&tft(n),n;if("RegExp"===rft(e))return eft(ift,e,t);throw oft("RegExp#exec called on incompatible receiver")}function Xgt(e){var t=e.flags;return void 0!==t||"flags"in Eft||Oft(e,"flags")||!kft(Eft,e)?t:Sft(Tft,e)}var j="[object z]"===String(wZ),$gt=zct,e1t=Hct,t1t=Qct("toStringTag"),n1t=Object,r1t="Arguments"==e1t(function(){return arguments}()),YP=j?e1t:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=n1t(e),t1t))?t:r1t?e1t(e):"Object"==(t=e1t(e))&&$gt(e.callee)?"Arguments":t},i1t=YP,o1t=String,a1t=Qct("match"),fce=dut,s1t=function(e){if(qgt(e))throw Wgt("The method doesn't accept regular expressions");return e},l1t=Uct,c1t=Zgt,GJ=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[a1t]=!1,"/./"[t](n)}catch(e){}}return!1},u1t=Uge("".indexOf),d1t=(fce({target:"String",proto:!0,forced:!GJ("includes")},{includes:function(e){return!!~u1t(c1t(l1t(this)),c1t(s1t(e)),1<arguments.length?arguments[1]:void 0)}}),eut),mce=Fct,p1t=Vpe.RegExp,hce=mce(function(){var e=p1t("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),W_=hce||mce(function(){return!p1t("a","y").sticky}),Sce={BROKEN_CARET:hce||mce(function(){var e=p1t("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:W_,UNSUPPORTED_Y:hce},gce=Fct,g1t=Vpe.RegExp,jce=gce(function(){var e=g1t(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),wce=Fct,f1t=Vpe.RegExp,vce=wce(function(){var e=f1t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),h1t=Wpe,Ece=Uge,m1t=Zgt,v1t=Ggt,kce=Sce,Bce=xue.exports,x1t=Jge,y1t=ux.get,Kce=jce,Wce=vce,b1t=Bce("native-string-replace",String.prototype.replace),C1t=RegExp.prototype.exec,A1t=C1t,I1t=Ece("".charAt),w1t=Ece("".indexOf),j1t=Ece("".replace),S1t=Ece("".slice),O1t=(Jce=/b*/g,h1t(C1t,_ce=/a/,"a"),h1t(C1t,Jce,"a"),0!==_ce.lastIndex||0!==Jce.lastIndex),k1t=kce.BROKEN_CARET,T1t=void 0!==/()??/.exec("")[1],Qce=A1t=O1t||T1t||k1t||Kce||Wce?function(e){var t,n,r,i,o,a,s=this,l=y1t(s),e=m1t(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,d=h1t(A1t,c,e),s.lastIndex=c.lastIndex,d;var u=l.groups,c=k1t&&s.sticky,d=h1t(v1t,s),l=s.source,p=0,g=e;if(c&&(d=j1t(d,"y",""),-1===w1t(d,"g")&&(d+="g"),g=S1t(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==I1t(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),T1t&&(t=new RegExp("^"+l+"$(?!\\s)",d)),O1t&&(n=s.lastIndex),r=h1t(C1t,c?t:s,g),c?r?(r.input=S1t(r.input,p),r[0]=S1t(r[0],p),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:O1t&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),T1t&&r&&1<r.length&&h1t(b1t,r[0],t,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r&&u)for(r.groups=o=x1t(null),i=0;i<u.length;i++)o[(a=u[i])[0]]=r[a[1]];return r}:A1t,rue=(dut({target:"RegExp",proto:!0,forced:/./.exec!==Qce},{exec:Qce}),zpe),aue=Function.prototype,E1t=aue.apply,N1t=aue.call,sue="object"==typeof Reflect&&Reflect.apply||(rue?N1t.bind(E1t):function(){return N1t.apply(E1t,arguments)}),M1t=Uge,P1t=nut,D1t=Qce,R1t=Fct,L1t=Qct,F1t=que,V1t=L1t("species"),H1t=RegExp.prototype,eue=Uge,U1t=rut,B1t=Zgt,z1t=Uct,_1t=eue("".charAt),q1t=eue("".charCodeAt),W1t=eue("".slice),Z1t={codeAt:Kgt(!1),charAt:Kgt(!0)}.charAt,nue=Uge,G1t=Kct,J1t=Math.floor,K1t=nue("".charAt),Y1t=nue("".replace),Q1t=nue("".slice),X1t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$1t=/\$([$&'`]|\d{1,2})/g,eft=Wpe,tft=eut,nft=zct,rft=Hct,ift=Qce,oft=TypeError,aft=sue,sft=Wpe,Vit=Uge,Uit=Jgt,pue=Fct,lft=eut,cft=zct,uft=rut,dft=out,pft=Zgt,gft=Uct,fft=Ygt,hft=Gct,mft=function(o,a,s,l,c,e){var u=s+o.length,d=l.length,t=$1t;return void 0!==c&&(c=G1t(c),t=X1t),Y1t(e,t,function(e,t){var n;switch(K1t(t,0)){case"$":return"$";case"&":return o;case"`":return Q1t(a,0,s);case"'":return Q1t(a,u);case"<":n=c[Q1t(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(d<i)return 0!==(r=J1t(i/10))&&r<=d?void 0===l[r-1]?K1t(t,1):l[r-1]+K1t(t,1):e;n=l[i-1]}return void 0===n?"":n})},vft=Qgt,xft=Qct("replace"),yft=Math.max,bft=Math.min,Cft=Vit([].concat),Aft=Vit([].push),Ift=Vit("".indexOf),wft=Vit("".slice),oZ="$0"==="a".replace(/./,"$0"),jft=!!/./[xft]&&""===/./[xft]("a","$0"),Sft=(Uit("replace",function(e,y,b){var C=jft?"$":"$0";return[function(e,t){var n=gft(this),r=null==e?void 0:hft(e,xft);return r?sft(r,e,n,t):sft(y,pft(n),e,t)},function(e,t){var n=lft(this),r=pft(e);if("string"==typeof t&&-1===Ift(t,C)&&-1===Ift(t,"$<")){e=b(y,n,r,t);if(e.done)return e.value}for(var i,o=cft(t),a=(o||(t=pft(t)),n.global),s=(a&&(i=n.unicode,n.lastIndex=0),[]);null!==(p=vft(n,r))&&(Aft(s,p),a);)""===pft(p[0])&&(n.lastIndex=fft(r,dft(n.lastIndex),i));for(var l,c="",u=0,d=0;d<s.length;d++){for(var p,g=pft((p=s[d])[0]),f=yft(bft(uft(p.index),r.length),0),h=[],m=1;m<p.length;m++)Aft(h,void 0===(l=p[m])?l:String(l));var v=p.groups,x=o?(x=Cft([g],h,f,r),void 0!==v&&Aft(x,v),pft(aft(t,void 0,x))):mft(g,r,f,h,v,t);u<=f&&(c+=wft(r,u,f)+x,u=f+g.length)}return c+wft(r,u)}]},!!pue(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!oZ||jft),Wpe),Oft=Qge,kft=p1e,Tft=Ggt,Eft=RegExp.prototype,Cue=d1e.PROPER,Og=nut,Nft=eut,Mft=Zgt,hue=Fct,Pft=Xgt,Aue="toString",Dft=RegExp.prototype[Aue],Sue=hue(function(){return"/a/b"!=Dft.call({source:"a",flags:"b"})}),mue=Cue&&Dft.name!=Aue;(Sue||mue)&&Og(RegExp.prototype,Aue,function(){var e=Nft(this);return"/"+Mft(e.source)+"/"+Mft(Pft(e))},{unsafe:!0});const Rft={resetPasswordTitle:nt.exports.jsx(oe,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:nt.exports.jsx(oe,{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:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:nt.exports.jsx(oe,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:nt.exports.jsx(oe,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:nt.exports.jsx(oe,{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:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},Lft=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),n=t.findIndex(e=>"dev"===e||"stage"===e);let r="";return r=-1!==n?"veritone"!==t[n+1]?t[n]+"."+t[n+1]:t[n]+".us-1":(n=t.findIndex(e=>"veritone"===e),"aiware2"!==t[n-1]?t[n-1]:"us-1"),e?`https://api.${r}.veritone.com/v3/graphql`:`https://api.${r}.veritone.com`};const Fft=({text:e,subText:t,type:n})=>nt.exports.jsxs(pe,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},"data-testid":"os-auth-header-text-"+n},{children:e})),t&&nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"},"data-testid":"os-auth-subheader-text-"+n},{children:t}))]})),Vft=fe()(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"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var Hft,Hue={},Pue=!Fct(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Uft=Qge,Bft=zct,zft=Kct,_ft=Pue,qft=tut("IE_PROTO"),Wft=Object,Zft=Wft.prototype,cue=_ft?Wft.getPrototypeOf:function(e){var t,e=zft(e);return Uft(e,qft)?e[qft]:(t=e.constructor,Bft(t)&&e instanceof t?t.prototype:e instanceof Wft?Zft:null)},Due=Fct,Rue=zct,Gue=cue,Xue=nut,Gft=Qct("iterator"),Kue=!1;[].keys&&("next"in(a=[].keys())?(Mue=Gue(Gue(a)))!==Object.prototype&&(Hft=Mue):Kue=!0);function Jft(e,t,n){(e=e&&!n?e.prototype:e)&&!$ft(e,eht)&&Xft(e,eht,{configurable:!0,value:t})}function Kft(){return this}function Yft(e,t,n,r){return t+=" Iterator",e.prototype=nht(tht,{next:rht(+!r,n)}),iht(e,t,!1),oht[t]=Kft,e}function Qft(){return this}Rue((Hft=null==Hft||Due(function(){var e={};return Hft[Gft].call(e)!==e})?{}:Hft)[Gft])||Xue(Hft,Gft,function(){return this});var zue={IteratorPrototype:Hft,BUGGY_SAFARI_ITERATORS:Kue},Xft=r1e.f,$ft=Qge,eht=Qct("toStringTag"),tht=zue.IteratorPrototype,nht=Jge,rht=Vct,iht=Jft,oht=Hue,aht=zct,sht=String,lht=TypeError,cht=Uge,uht=eut,dht=function(e){if("object"==typeof e||aht(e))return e;throw lht("Can't set "+sht(e)+" as a prototype")},Uue=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=cht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return uht(e),dht(t),r?n(e,t):e.__proto__=t,e}}():void 0),pht=dut,ght=Wpe,fht=zct,hht=Yft,mht=cue,vht=Uue,xht=Jft,yht=que,bht=nut,cde=Qct,Cht=Hue,Aht=d1e.PROPER,Iht=d1e.CONFIGURABLE,wht=zue.IteratorPrototype,jht=zue.BUGGY_SAFARI_ITERATORS,Sht=cde("iterator"),Oht="values",kht=Bct,kue=jgt,nde=Hue,vue=ux,jue=r1e.f,tde=function(e,t,n,r,i,o,a){hht(n,t,r);function s(e){if(e===i&&g)return g;if(!jht&&e in d)return d[e];switch(e){case"keys":case Oht:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[Sht]||d["@@iterator"]||i&&d[i],g=!jht&&p||s(i),f="Array"==t&&d.entries||p;if(f&&(f=mht(f.call(new e)))!==Object.prototype&&f.next&&(mht(f)!==wht&&(vht?vht(f,wht):fht(f[Sht])||bht(f,Sht,Qft)),xht(f,r,!0)),Aht&&i==Oht&&p&&p.name!==Oht&&(Iht?yht(d,"name",Oht):(u=!0,g=function(){return ght(p,this)})),i)if(l={values:s(Oht),keys:o?g:s("keys"),entries:s("entries")},a)for(c in l)!jht&&!u&&c in d||bht(d,c,l[c]);else pht({target:t,proto:!0,forced:jht||u},l);return d[Sht]!==g&&bht(d,Sht,g,{name:i}),Cht[t]=g,l},xde=mtt,Tht="Array Iterator",Eht=vue.set,Nht=vue.getterFor(Tht),mde=tde(Array,"Array",function(e,t){Eht(this,{type:Tht,target:kht(e),index:0,kind:t})},function(){var e=Nht(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Tde=nde.Arguments=nde.Array;if(kue("keys"),kue("values"),kue("entries"),xde&&"values"!==Tde.name)try{jue(Tde,"name",{value:"values"})}catch(e){}function Mht(t,e){if(t){if(t[Vht]!==Uht)try{Fht(t,Vht,Uht)}catch(e){t[Vht]=Uht}if(t[Hht]||Fht(t,Hht,e),Rht[e])for(var n in Lht)if(t[n]!==Lht[n])try{Fht(t,n,Lht[n])}catch(e){t[n]=Lht[n]}}}var Pht,Ade=$ct("span").classList,vde=Ade&&Ade.constructor&&Ade.constructor.prototype,lde=vde===Object.prototype?void 0:vde,Dht=Vpe,Rht={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},hde=lde,Lht=mde,Fht=que,Sde=Qct,Vht=Sde("iterator"),Hht=Sde("toStringTag"),Uht=Lht.values;for(Pht in Rht)Mht(Dht[Pht]&&Dht[Pht].prototype,Pht);Mht(hde,"DOMTokenList");var Bht,zht,_ht,qht,Wht,Zht,Ght,Jht,Nue=dut,Ode=Uge,Kht=Qge,Wue=zct,Yht=p1e,Qht=Zgt,yde=r1e.f,Ude=cut,Xht=Vpe.Symbol,$ht=Xht&&Xht.prototype;function emt(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}!mtt||!Wue(Xht)||"description"in $ht&&void 0===Xht().description||(Bht={},Ude(Pde=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Qht(arguments[0]),t=Yht($ht,this)?new Xht(e):void 0===e?Xht():Xht(e);return""===e&&(Bht[t]=!0),t},Xht),(Pde.prototype=$ht).constructor=Pde,zht="Symbol(test)"==String(Xht("test")),_ht=Ode($ht.toString),qht=Ode($ht.valueOf),Wht=/^Symbol\((.*)\)[^)]+$/,Zht=Ode("".replace),Ght=Ode("".slice),yde($ht,"description",{configurable:!0,get:function(){var e=qht(this),t=_ht(e);return Kht(Bht,e)?"":""===(e=zht?Ght(t,7,-1):Zht(t,Wht,"$1"))?void 0:e}}),Nue({global:!0,constructor:!0,forced:!0},{Symbol:Pde}));const tmt=({onClick:e,text:t,type:n,loading:r,disableButton:i,sx:o={},ref:a,className:s})=>nt.exports.jsx(hEe,Object.assign({color:"primary",variant:"contained",onClick:e,loading:r,ref:a,sx:Object.assign({textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"368px",height:"56px",backgroundColor:"#2C78D4"},o),className:s||void 0,"data-testid":`os-auth--${n}-btn`,disabled:i},{children:t}));function nmt({onBtnClick:e,requiresRestriction:t,disableForm:n=!1,columnView:r=!1,isNewPage:i=!1}){var o=Vft()["classes"],a=ue(jre);const s=ue(Cre);var l=ue(wre);const[c,u]=De.exports.useState(""),[d,p]=De.exports.useState(""),[g,f]=De.exports.useState({[Jht.lengthCheck]:null,[Jht.userNameCheck]:null,[Jht.dictionaryCheck]:null,[Jht.pastPasswordCheck]:null,[Jht.passwordComplexityCheck]:null,[Jht.passwordChangeFrequencyCheck]:null}),[h,m]=De.exports.useState(null);a="loading"===a&&l===One.ResetPassword;const v=ge.exports.isEqual(c,d);l=Object.values(g).includes(!1);var x=()=>{ge.exports.isEmpty(c)||ge.exports.isEmpty(d)||!v||e(c)},y=(De.exports.useEffect(()=>{try{if(s){var e=JSON.parse(s);const t=e["description"],r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}(e,["description"]);Object.keys(r).forEach(e=>{var t,n;t=e,n=r[e],f(e=>Object.assign(Object.assign({},e),{[t]:n}))}),m(t)}else m(null)}catch(e){m(s)}finally{p("")}},[s]),[{label:Rft.lengthCheck,error:g[Jht.lengthCheck]},{label:Rft.pastPasswordCheck,error:g[Jht.pastPasswordCheck]},{label:Rft.userNameCheck,error:g[Jht.userNameCheck]},{label:Rft.dictionaryCheck,error:g[Jht.dictionaryCheck]},...g[Jht.passwordComplexityCheck]?[{label:Rft.passwordComplexityCheckSymbols,error:!0},{label:Rft.passwordComplexityCheckDays,error:!0}]:[]]),b={fontFamily:"Nunito",lineHeight:"22px"};return nt.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:nt.exports.jsxs(V,Object.assign({container:!0,spacing:i?3:6,mt:i?0:3},{children:[nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:7,xs:12},{children:[nt.exports.jsx(Z6,Object.assign({fullWidth:!0,sx:{mb:6}},{children:nt.exports.jsx(GO,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:l,autoComplete:"off",disabled:n,InputLabelProps:{style:b}})})),nt.exports.jsx(Z6,Object.assign({sx:{fontFamily:"Nunito"},fullWidth:!0},{children:nt.exports.jsx(GO,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:d,onChange:e=>p(e.target.value),autoComplete:"off",error:!v&&!!d,helperText:!v&&d&&Rft.passwordsNotMatching,disabled:n,InputLabelProps:{style:b}})})),h&&nt.exports.jsx(cI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:5,xs:12},{children:[nt.exports.jsx(ae,Object.assign({variant:"h6",className:o.h6},{children:Rft.passwordRequirements})),nt.exports.jsx("ul",Object.assign({className:o.requirements,"data-testid":"rp-requirements-list"},{children:y.map((e,t)=>nt.exports.jsx("li",Object.assign({className:e0e({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),nt.exports.jsx(V,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:i?nt.exports.jsx(tmt,{onClick:x,loading:a,text:Rft.resetPasswordSubmitButton,type:"reset-pw"}):nt.exports.jsx(hEe,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:o.submitButton,onClick:x,loading:a,disabled:n},{children:Rft.resetPasswordSubmitButton}))}))]}))}))}(Bde=Jht=Jht||{}).lengthCheck="lengthCheck",Bde.userNameCheck="userNameCheck",Bde.dictionaryCheck="dictionaryCheck",Bde.pastPasswordCheck="pastPasswordCheck",Bde.passwordComplexityCheck="passwordComplexityCheck",Bde.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck";const rmt=740,imt=400;function omt({resetToken:t,username:n,requiresPasswordRestriction:e=!1,onSuccess:r,organizationInviteId:i,containerWidth:o=rmt,isNewPage:a=!1}){Vft();const s=de(),l=ue(jre),c=ue(wre);De.exports.useEffect(()=>{"success"===l&&c===One.ResetPassword&&null!=r&&r()},[l,c]);var u=ge.exports.isEmpty(t)||ge.exports.isEmpty(n),d=o<=imt||!e;return nt.exports.jsxs(pe,Object.assign({p:a?0:4,id:"reset-password-widget",width:o},{children:[a?nt.exports.jsx(Fft,{text:Rft.resetPasswordTitle,subText:Rft.resetPasswordSubHeader,type:"reset-pw"}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h1",sx:{textTransform:"initial",fontSize:22,marginBottom:"20px"}},{children:Rft.resetPasswordTitle})),nt.exports.jsx(ae,Object.assign({variant:"body2"},{children:Rft.resetPasswordSubHeader}))]}),u&&nt.exports.jsx(cI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:Rft.invalidTokenOrUsername})),nt.exports.jsx(nmt,{onBtnClick:e=>{a?s(Gne({resetToken:t,username:n,password:e,organizationInviteId:i,apiUrl:Lft()})):s(Gne({resetToken:t,username:n,password:e,organizationInviteId:i}))},requiresRestriction:e,disableForm:u,columnView:d,isNewPage:a})]}))}function amt(e,t){if(Smt(t,e))return e;throw Omt("Incorrect invocation")}function smt(e,t){return kmt(e),void 0===t?e:Tmt?Emt(e,t):function(){return e.apply(t,arguments)}}function lmt(e){if(null!=e)return Mmt(e,Dmt)||Mmt(e,"@@iterator")||Pmt[Nmt(e)]}function cmt(e,t){if(t=arguments.length<2?Hmt(e):t,Lmt(t))return Fmt(Rmt(t,e));throw Umt(Vmt(e)+" is not iterable")}function umt(e,t){if(e<t)throw Bmt("Not enough arguments");return e}function dmt(e,t){var n=e.length,r=Qmt(n/2);if(n<8){for(var i,o,a=e,s=t,l=a.length,c=1;c<l;){for(i=a[o=c];o&&0<s(a[o-1],i);)a[o]=a[--o];o!==c++&&(a[o]=i)}return a}for(var u=e,d=dmt(Ymt(e,0,r),t),p=dmt(Ymt(e,r),t),g=t,f=d.length,h=p.length,m=0,v=0;m<f||v<h;)u[m+v]=m<f&&v<h?g(d[m],p[v])<=0?d[m++]:p[v++]:m<f?d[m++]:p[v++];return u}function pmt(e){var t;return e0t?(t=y0t(Xmt,e))&&t.value:Xmt[e]}function gmt(t){try{return S0t(t)}catch(e){return t}}function fmt(e){var t,n=N0t(e,L0t," "),r=4;try{return S0t(n)}catch(e){for(;r;)n=N0t(n,(t=r--,F0t[t-1]||(F0t[t-1]=w0t("((?:%[\\da-f]{2}){"+t+"})","gi"))),gmt);return n}}function hmt(e){return H0t[e]}function mmt(e){return N0t(O0t(e),V0t,hmt)}function vmt(e){this.entries=[],this.url=null,void 0!==e&&(a0t(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===k0t(e,0)?R0t(e,1):e:s0t(e)))}function xmt(){t0t(this,B0t),m0t(this,new vmt(0<arguments.length?arguments[0]:void 0))}var ymt,bmt,Cmt,Amt,Imt,Age=Fct,wmt=Qct("iterator"),Pce=!Age(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,r="";return e.pathname="c%20d",n.forEach(function(e,t){n.delete("b"),r+=t+e}),!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[wmt]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),jmt=nut,Smt=p1e,Omt=TypeError,kmt=Zct,Tmt=zpe,Emt=Uge(Uge.bind),Nmt=YP,Mmt=Gct,Pmt=Hue,Dmt=Qct("iterator"),Rmt=Wpe,Lmt=Zct,Fmt=eut,Vmt=Wct,Hmt=lmt,Umt=TypeError,Bmt=TypeError,zmt=Xct,_mt=r1e,qmt=Vct,Wmt=iut,Zmt=aut,Gmt=function(e,t,n){t=zmt(t);t in e?_mt.f(e,t,qmt(0,n)):e[t]=n},Jmt=Array,Kmt=Math.max,Ymt=function(e,t,n){for(var r=Zmt(e),i=Wmt(t,r),o=Wmt(void 0===n?r:n,r),a=Jmt(Kmt(o-i,0)),s=0;i<o;i++,s++)Gmt(a,s,e[i]);return a.length=s,a},Qmt=Math.floor,qde=dut,Xmt=Vpe,$mt=Wpe,Zde=Uge,e0t=mtt,Wde=Pce,Cge=nut,bge=function(e,t,n){for(var r in t)jmt(e,r,t[r],n);return e},yge=Jft,$ue=Yft,Sge=ux,t0t=amt,xge=zct,n0t=Qge,r0t=smt,i0t=YP,o0t=eut,a0t=_ct,s0t=Zgt,l0t=Jge,c0t=Vct,u0t=cmt,d0t=lmt,p0t=umt,g0t=dmt,Lce=Qct("iterator"),f0t="URLSearchParams",h0t=f0t+"Iterator",m0t=Sge.set,v0t=Sge.getterFor(f0t),x0t=Sge.getterFor(h0t),y0t=Object.getOwnPropertyDescriptor,b0t=pmt("fetch"),C0t=pmt("Request"),A0t=pmt("Headers"),I0t=C0t&&C0t.prototype,Gde=A0t&&A0t.prototype,w0t=Xmt.RegExp,j0t=Xmt.TypeError,S0t=Xmt.decodeURIComponent,O0t=Xmt.encodeURIComponent,k0t=Zde("".charAt),T0t=Zde([].join),E0t=Zde([].push),N0t=Zde("".replace),M0t=Zde([].shift),P0t=Zde([].splice),D0t=Zde("".split),R0t=Zde("".slice),L0t=/\+/g,F0t=Array(4),V0t=/[!'()~]|%20/g,H0t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},U0t=$ue(function(e,t){m0t(this,{type:h0t,iterator:u0t(v0t(e).entries),kind:t})},"Iterator",function(){var e=x0t(this),t=e.kind,e=e.iterator.next(),n=e.value;return e.done||(e.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),e},!0),B0t=(vmt.prototype={type:f0t,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=d0t(e);if(s)for(n=(t=u0t(e,s)).next;!(r=$mt(n,t)).done;){if(i=(r=u0t(o0t(r.value))).next,(o=$mt(i,r)).done||(a=$mt(i,r)).done||!$mt(i,r).done)throw j0t("Expected sequence with length 2");E0t(this.entries,{key:s0t(o.value),value:s0t(a.value)})}else for(var l in e)n0t(e,l)&&E0t(this.entries,{key:l,value:s0t(e[l])})},parseQuery:function(e){if(e)for(var t,n=D0t(e,"&"),r=0;r<n.length;)(t=n[r++]).length&&(t=D0t(t,"="),E0t(this.entries,{key:fmt(M0t(t)),value:fmt(T0t(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],E0t(n,mmt(e.key)+"="+mmt(e.value));return T0t(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},xmt.prototype),npe=(bge(B0t,{append:function(e,t){p0t(arguments.length,2);var n=v0t(this);E0t(n.entries,{key:s0t(e),value:s0t(t)}),n.updateURL()},delete:function(e){p0t(arguments.length,1);for(var t=v0t(this),n=t.entries,r=s0t(e),i=0;i<n.length;)n[i].key===r?P0t(n,i,1):i++;t.updateURL()},get:function(e){p0t(arguments.length,1);for(var t=v0t(this).entries,n=s0t(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){p0t(arguments.length,1);for(var t=v0t(this).entries,n=s0t(e),r=[],i=0;i<t.length;i++)t[i].key===n&&E0t(r,t[i].value);return r},has:function(e){p0t(arguments.length,1);for(var t=v0t(this).entries,n=s0t(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){p0t(arguments.length,1);for(var n,r=v0t(this),i=r.entries,o=!1,a=s0t(e),s=s0t(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?P0t(i,l--,1):(o=!0,n.value=s));o||E0t(i,{key:a,value:s}),r.updateURL()},sort:function(){var e=v0t(this);g0t(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=v0t(this).entries,r=r0t(e,1<arguments.length?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new U0t(this,"keys")},values:function(){return new U0t(this,"values")},entries:function(){return new U0t(this,"entries")}},{enumerable:!0}),Cge(B0t,Lce,B0t.entries,{name:"entries"}),Cge(B0t,"toString",function(){return v0t(this).serialize()},{enumerable:!0}),yge(xmt,f0t),qde({global:!0,constructor:!0,forced:!Wde},{URLSearchParams:xmt}),!Wde&&xge(A0t)&&(ymt=Zde(Gde.has),bmt=Zde(Gde.set),Cmt=function(e){if(a0t(e)){var t,n=e.body;if(i0t(n)===f0t)return t=e.headers?new A0t(e.headers):new A0t,ymt(t,"content-type")||bmt(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),l0t(e,{body:c0t(0,s0t(n)),headers:c0t(0,t)})}return e},xge(b0t)&&qde({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return b0t(e,1<arguments.length?Cmt(arguments[1]):{})}}),xge(C0t))&&((I0t.constructor=Kde=function(e){return t0t(this,I0t),new C0t(e,1<arguments.length?Cmt(arguments[1]):{})}).prototype=I0t,qde({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Kde})),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),z0t=Wpe,_0t=eut,q0t=Uct,W0t=npe,Z0t=Zgt,G0t=Gct,J0t=Qgt,K0t=(Jgt("search",function(r,i,o){return[function(e){var t=q0t(this),n=null==e?void 0:G0t(e,r);return n?z0t(n,e,t):new RegExp(e)[r](Z0t(t))},function(e){var t=_0t(this),e=Z0t(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,W0t(n,0)||(t.lastIndex=0),e=J0t(t,e),W0t(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Wpe),Y0t=eut,Q0t=out,X0t=Zgt,$0t=Uct,e2t=Gct,t2t=Ygt,n2t=Qgt;Jgt("match",function(r,s,l){return[function(e){var t=$0t(this),n=null==e?void 0:e2t(e,r);return n?K0t(n,e,t):new RegExp(e)[r](X0t(t))},function(e){var t=Y0t(this),n=X0t(e),e=l(s,t,n);if(e.done)return e.value;if(!t.global)return n2t(t,n);for(var r=t.unicode,i=[],o=t.lastIndex=0;null!==(a=n2t(t,n));){var a=X0t(a[0]);""===(i[o]=a)&&(t.lastIndex=t2t(n,Q0t(t.lastIndex),r)),o++}return 0===o?null:i}]});const r2t={emailLabel:nt.exports.jsx(oe,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:nt.exports.jsx(oe,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:nt.exports.jsx(oe,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:nt.exports.jsx(oe,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},i2t=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),o2t=fe()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),a2t=({onNextStep:e,email:t,setEmail:n,isLoading:r,buttonText:i,disableButton:o})=>{var a=o2t()["classes"];const[s,l]=De.exports.useState(!1);var{emailLabel:c,emailErrorState:u,emptyEmailErrorMsg:d}=r2t,u=s?t?u:d:c;const p=()=>{i2t(t)&&e?(l(!1),e()):l(!0)};return nt.exports.jsxs(pe,Object.assign({className:a.emailWrapper},{children:[nt.exports.jsx(GO,{id:"username","data-testid":"os-auth-email-input-field",label:u,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"username",autoFocus:!0,className:a.emailField,error:s,onChange:e=>{e=e.target.value;s&&l(!1),n(e)},onKeyDown:e=>{"Enter"===e.key&&p()}}),i&&nt.exports.jsx(hEe,Object.assign({color:"primary",variant:"contained",onClick:p,className:a.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:r,disabled:o},{children:i}))]}))},s2t=fe()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),l2t=({password:e,onPasswordChange:t,errorMessage:n,onPressEnter:r,autoFocus:i=!0})=>{var o=s2t()["classes"];const[a,s]=De.exports.useState(!1),[l,c]=De.exports.useState("Password");De.exports.useEffect(()=>{n?c(n):c("Password")},[n]);return nt.exports.jsx(pe,Object.assign({className:o.passwordWrapper},{children:nt.exports.jsxs(Z6,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[nt.exports.jsx(J9,Object.assign({htmlFor:"outlined-adornment-password",style:{color:n?"#d32f2f":"#9CA8B4"}},{children:l})),nt.exports.jsx(P8,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:a?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:i,autoComplete:"password",endAdornment:nt.exports.jsx(q9,Object.assign({position:"end"},{children:nt.exports.jsx(le,Object.assign({"aria-label":"toggle password visibility",onClick:()=>s(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:a?nt.exports.jsx(Aut,{}):nt.exports.jsx(Cut,{})}))})),error:!!n,label:l,onKeyDown:e=>{"Enter"===e.key&&r()}})]}))}))},c2t=fe()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),u2t=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],d2t=({handleDestination:t})=>{var e=c2t()["classes"];const[n,r]=De.exports.useState(u2t[0].value);return nt.exports.jsx(pe,Object.assign({className:e.selectWrapper},{children:nt.exports.jsx(k7,Object.assign({name:"destination-dropdown",value:n,onChange:e=>{e=e.target.value;r(e),t(e)},renderValue:e=>{return nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[nt.exports.jsx(Jue,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),nt.exports.jsx("span",{children:(t=e,null==(e=u2t.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:u2t.map(e=>nt.exports.jsx(x8,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function p2t(){return(p2t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g2t(e){return De.exports.createElement("svg",p2t({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Amt=Amt||De.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),Imt=Imt||De.exports.createElement("defs",null,De.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},De.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))}var f2t,h2t,m2t;function v2t(){return(v2t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function x2t(e){return De.exports.createElement("svg",v2t({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f2t=f2t||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),h2t=h2t||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),m2t=m2t||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))}const y2t=({showLogoInFooter:e})=>nt.exports.jsxs(pe,Object.assign({sx:{textAlign:"center",marginTop:"20px"},"data-testid":"aiware-auth-footer"},{children:[e&&nt.exports.jsx(x2t,{}),nt.exports.jsxs(ae,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",nt.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),b2t=({children:e,showLogoInFooter:t=!0})=>nt.exports.jsx(Q4,{children:nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[nt.exports.jsxs(pe,{children:[nt.exports.jsx(pe,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:nt.exports.jsx(g2t,{})})),e]}),nt.exports.jsx(y2t,{showLogoInFooter:t})]}))}),C2t=fe()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),A2t=({openIdItems:e})=>{const n=C2t()["classes"];return nt.exports.jsx(pe,Object.assign({className:n.btnWrapper},{children:nt.exports.jsx(nt.exports.Fragment,{children:e&&e.map((t,e)=>{return nt.exports.jsxs(se,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:n.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&nt.exports.jsx("img",{className:n.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),nt.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:(null==t?void 0:t.name)&&"Login with "+(20<(e=t.name).length?e.substring(0,20)+"...":e)}))]}),t.connectId)})})}))};function I2t(e){var e=O2t(e),t=k2t.f;T2t&&e&&!e[E2t]&&t(e,E2t,{configurable:!0,get:function(){return this}})}function w2t(){}function j2t(e){if(!N2t(e))return!1;try{return R2t(w2t,D2t,e),!0}catch(e){return!1}}function S2t(e){if(!N2t(e))return!1;switch(M2t(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return V2t||!!F2t(L2t,P2t(e))}catch(e){return!0}}var lpe="process"==Hct(Vpe.process),O2t=qct,k2t=r1e,T2t=mtt,E2t=Qct("species"),cpe=Uge,Qde=Fct,N2t=zct,M2t=YP,P2t=a1e,D2t=[],R2t=qct("Reflect","construct"),L2t=/^\s*(?:class|function)\b/,F2t=cpe(L2t.exec),V2t=!L2t.exec(w2t);S2t.sham=!0;var H2t,U2t,B2t=!R2t||Qde(function(){var e;return j2t(j2t.call)||!j2t(Object)||!j2t(function(){e=!0})||e})?S2t:j2t,z2t=Wct,_2t=TypeError,q2t=eut,W2t=function(e){if(B2t(e))return e;throw _2t(z2t(e)+" is not a constructor")},Z2t=Qct("species"),dpe=Uge([].slice),$de=/(?:ipad|iphone|ipod).*applewebkit/i.test(i),G2t=Vpe,J2t=sue,ape=smt,K2t=zct,Y2t=Qge,spe=Fct,Q2t=Ice,X2t=dpe,$2t=$ct,evt=umt,fpe=$de,Nce=lpe,Yde=G2t.setImmediate,Oue=G2t.clearImmediate,tvt=G2t.process,nvt=G2t.Dispatch,rvt=G2t.Function,ype=G2t.MessageChannel,ivt=G2t.String,ovt=0,avt={},svt="onreadystatechange";try{H2t=G2t.location}catch(e){}function lvt(e){return function(){jvt(e)}}function cvt(e){jvt(e.data)}function uvt(e){G2t.postMessage(ivt(e),H2t.protocol+"//"+H2t.host)}function dvt(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function pvt(){this.head=null,this.tail=null}function gvt(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=Vvt(n),this.reject=Vvt(r)}function fvt(e,t){var n,r,i,o,a=t.value,s=t.state==pxt,l=s?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{l?(s||(t.rejection===hxt&&(o=t,Bvt(Gvt,Uvt,function(){var e=o.facade;Hvt?axt.emit("rejectionHandled",e):xxt(dxt,e,o.value)})),t.rejection=fxt),!0===l?n=a:(d&&d.enter(),n=l(a),d&&(d.exit(),i=!0)),n===e.promise?u(ixt("Promise-chain cycle")):(r=mxt(n))?Bvt(r,n,c,u):c(n)):u(a)}catch(e){d&&!i&&d.exit(),u(e)}}var hvt,mvt,vvt,xvt,yvt,bvt,Cvt,Avt,Ivt,wvt,jvt=function(e){var t;Y2t(avt,e)&&(t=avt[e],delete avt[e],t())},vpe=(Yde&&Oue||(Yde=function(e){evt(arguments.length,1);var t=K2t(e)?e:rvt(e),n=X2t(arguments,1);return avt[++ovt]=function(){J2t(t,void 0,n)},U2t(ovt),ovt},Oue=function(e){delete avt[e]},Nce?U2t=function(e){tvt.nextTick(lvt(e))}:nvt&&nvt.now?U2t=function(e){nvt.now(lvt(e))}:ype&&!fpe?(xpe=(hpe=new ype).port2,hpe.port1.onmessage=cvt,U2t=ape(xpe.postMessage,xpe)):G2t.addEventListener&&K2t(G2t.postMessage)&&!G2t.importScripts&&H2t&&"file:"!==H2t.protocol&&!spe(uvt)?(U2t=uvt,G2t.addEventListener("message",cvt,!1)):U2t=svt in $2t("script")?function(e){Q2t.appendChild($2t("script"))[svt]=function(){Q2t.removeChild(this),jvt(e)}}:function(e){setTimeout(lvt(e),0)}),{set:Yde,clear:Oue}),Ope=Vpe,Mpe=/ipad|iphone|ipod/i.test(i)&&void 0!==Ope.Pebble,Dde=/web0s(?!.*chrome)/i.test(i),kpe=Vpe,ede=smt,H$e=Gce.f,Svt=vpe.set,lue=$de,s=Mpe,Jpe=Dde,Ovt=lpe,nge=kpe.MutationObserver||kpe.WebKitMutationObserver,Oge=kpe.document,kvt=kpe.process,Rde=kpe.Promise,ppe=H$e(kpe,"queueMicrotask"),$pe=ppe&&ppe.value,Hpe=($pe||(hvt=function(){var e,t;for(Ovt&&(e=kvt.domain)&&e.exit();mvt;){t=mvt.fn,mvt=mvt.next;try{t()}catch(e){throw mvt?xvt():vvt=void 0,e}}vvt=void 0,e&&e.enter()},xvt=lue||Ovt||Jpe||!nge||!Oge?!s&&Rde&&Rde.resolve?((Npe=Rde.resolve(void 0)).constructor=Rde,Cvt=ede(Npe.then,Npe),function(){Cvt(hvt)}):Ovt?function(){kvt.nextTick(hvt)}:(Svt=ede(Svt,kpe),function(){Svt(hvt)}):(yvt=!0,bvt=Oge.createTextNode(""),new nge(hvt).observe(bvt,{characterData:!0}),function(){bvt.data=yvt=!yvt})),$pe||function(e){e={fn:e,next:void 0};vvt&&(vvt.next=e),mvt||(mvt=e,xvt()),vvt=e}),Tvt=Vpe,Lpe=(pvt.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},pvt),Rpe=Vpe.Promise,Bpe="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Gpe=!Bpe&&!lpe&&"object"==typeof window&&"object"==typeof document,gge=Vpe,Evt=Rpe,lge=zct,pge=l1e,Nvt=a1e,X$e=Qct,Mvt=Gpe,Pvt=Bpe,Dvt=Jde,Rvt=(Evt&&Evt.prototype,X$e("species")),Lvt=!1,Fvt=lge(gge.PromiseRejectionEvent),Fpe={CONSTRUCTOR:pge("Promise",function(){var e=Nvt(Evt),t=e!==String(Evt);if(!t&&66===Dvt)return!0;if(!Dvt||Dvt<51||!/native code/.test(e)){var e=new Evt(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[Rvt]=n,!(Lvt=e.then(function(){})instanceof n))return!0}return!t&&(Mvt||Pvt)&&!Fvt}),REJECTION_EVENT:Fvt,SUBCLASSING:Lvt},Dpe={},Vvt=Zct,Fge=(Dpe.f=function(e){return new gvt(e)},dut),Hvt=lpe,Uvt=Vpe,Bvt=Wpe,Dge=nut,Rge=Uue,Bge=Jft,Vge=I2t,zvt=Zct,_vt=zct,qvt=_ct,Wvt=amt,Zvt=function(e,t){var e=q2t(e).constructor;return void 0===e||null==(e=q2t(e)[Z2t])?t:W2t(e)},Gvt=vpe.set,Jvt=Hpe,Kvt=function(e,t){var n=Tvt.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},Yvt=dvt,Qvt=Lpe,Zpe=ux,oge=Rpe,Fue=Dpe,Xvt="Promise",qge=Fpe.CONSTRUCTOR,$vt=Fpe.REJECTION_EVENT,Ede=Fpe.SUBCLASSING,ext=Zpe.getterFor(Xvt),txt=Zpe.set,rde=oge&&oge.prototype,nxt=oge,rxt=rde,ixt=Uvt.TypeError,oxt=Uvt.document,axt=Uvt.process,sxt=Fue.f,lxt=sxt,cxt=!!(oxt&&oxt.createEvent&&Uvt.dispatchEvent),uxt="unhandledrejection",dxt="rejectionhandled",pxt=1,gxt=2,fxt=1,hxt=2,mxt=function(e){var t;return!(!qvt(e)||!_vt(t=e.then))&&t},vxt=function(n,i){n.notified||(n.notified=!0,Jvt(function(){for(var e,r,t=n.reactions;e=t.get();)fvt(e,n);n.notified=!1,i&&!n.rejection&&(r=n,Bvt(Gvt,Uvt,function(){var e=r.facade,t=r.value,n=yxt(r);if(n&&(n=Yvt(function(){Hvt?axt.emit("unhandledRejection",t,e):xxt(uxt,e,t)}),r.rejection=Hvt||yxt(r)?hxt:fxt,n.error))throw n.value}))}))},xxt=function(e,t,n){var r;cxt?((r=oxt.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Uvt.dispatchEvent(r)):r={promise:t,reason:n},!$vt&&(t=Uvt["on"+e])?t(r):e===uxt&&Kvt("Unhandled promise rejection",n)},yxt=function(e){return e.rejection!==fxt&&!e.parent},bxt=function(t,n,r){return function(e){t(n,e,r)}},Cxt=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=gxt,vxt(e,!0))},Axt=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw ixt("Promise can't be resolved itself");var r=mxt(e);r?Jvt(function(){var t={done:!1};try{Bvt(r,e,bxt(Axt,t,n),bxt(Cxt,t,n))}catch(e){Cxt(t,e,n)}}):(n.value=e,n.state=pxt,vxt(n,!1))}catch(e){Cxt({done:!1},e,n)}}};if(qge&&(rxt=(nxt=function(e){Wvt(this,rxt),zvt(e),Bvt(Avt,this);var t=ext(this);try{e(bxt(Axt,t),bxt(Cxt,t))}catch(e){Cxt(t,e)}}).prototype,(Avt=function(e){txt(this,{type:Xvt,done:!1,notified:!1,parent:!1,reactions:new Qvt,rejection:!1,state:0,value:void 0})}).prototype=Dge(rxt,"then",function(e,t){var n=ext(this),r=sxt(Zvt(this,nxt));return n.parent=!0,r.ok=!_vt(e)||e,r.fail=_vt(t)&&t,r.domain=Hvt?axt.domain:void 0,0==n.state?n.reactions.add(r):Jvt(function(){fvt(r,n)}),r.promise}),Ivt=function(){var e=new Avt,t=ext(e);this.promise=e,this.resolve=bxt(Axt,t),this.reject=bxt(Cxt,t)},Fue.f=sxt=function(e){return e===nxt||void 0===e?new Ivt:lxt(e)},_vt(oge))&&rde!==Object.prototype){wvt=rde.then,Ede||Dge(rde,"then",function(e,t){var n=this;return new nxt(function(e,t){Bvt(wvt,n,e,t)}).then(e,t)},{unsafe:!0});try{delete rde.constructor}catch(e){}Rge&&Rge(rde,rxt)}Fge({global:!0,constructor:!0,wrap:!0,forced:qge},{Promise:nxt}),Bge(nxt,Xvt,!1),Vge(Xvt);function Ixt(e,t){this.stopped=e,this.result=t}function wxt(e,t,n){function r(e){return o&&Uxt(o,"normal",e),new Ixt(!0,e)}function i(e){return p?(Pxt(e),h?m(e[0],e[1],r):m(e[0],e[1])):h?m(e,r):m(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=Nxt(t,d);if(g)o=e.iterator;else if(f)o=e;else{if(!(n=Hxt(e)))throw Bxt(Dxt(e)+" is not iterable");if(Rxt(n)){for(a=0,s=Lxt(e);a<s;a++)if((l=i(e[a]))&&Fxt(zxt,l))return l;return new Ixt(!1)}o=Vxt(e,n)}for(c=(g?e:o).next;!(u=Mxt(c,o)).done;){try{l=i(u.value)}catch(e){Uxt(o,"throw",e)}if("object"==typeof l&&l&&Fxt(zxt,l))return l}return new Ixt(!1)}var jxt=Hue,Sxt=Qct("iterator"),Oxt=Array.prototype,kxt=Wpe,Txt=eut,Ext=Gct,Nxt=smt,Mxt=Wpe,Pxt=eut,Dxt=Wct,Rxt=function(e){return void 0!==e&&(jxt.Array===e||Oxt[Sxt]===e)},Lxt=aut,Fxt=p1e,Vxt=cmt,Hxt=lmt,Uxt=function(e,t,n){var r,i;Txt(e);try{if(!(r=Ext(e,"return"))){if("throw"===t)throw n;return n}r=kxt(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Txt(r),n},Bxt=TypeError,zxt=Ixt.prototype,_xt=Qct("iterator"),qxt=!1;try{var Wxt=0,Zxt={next:function(){return{done:!!Wxt++}},return:function(){qxt=!0}};Zxt[_xt]=function(){return this},Array.from(Zxt,function(){throw 2})}catch(e){}var Gxt=Rpe,_ge=function(e,t){if(!t&&!qxt)return!1;var n=!1;try{var r={};r[_xt]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Jxt=Fpe.CONSTRUCTOR||!_ge(function(e){Gxt.all(e).then(void 0,function(){})}),Kxt=Wpe,Yxt=Zct,Qxt=Dpe,Xxt=dvt,$xt=wxt,eyt=(dut({target:"Promise",stat:!0,forced:Jxt},{all:function(e){var s=this,t=Qxt.f(s),l=t.resolve,c=t.reject,n=Xxt(function(){var r=Yxt(s.resolve),i=[],o=0,a=1;$xt(e,function(e){var t=o++,n=!1;a++,Kxt(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),dut),zge=Rpe,Yge=qct,Hge=zct,t1e=nut,n1e=zge&&zge.prototype;eyt({target:"Promise",proto:!0,forced:Fpe.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),Hge(zge)&&(Kge=Yge("Promise").prototype.catch,n1e.catch!==Kge)&&t1e(n1e,"catch",Kge,{unsafe:!0});var tyt=Wpe,nyt=Zct,ryt=Dpe,iyt=dvt,oyt=wxt;dut({target:"Promise",stat:!0,forced:Jxt},{race:function(e){var n=this,r=ryt.f(n),i=r.reject,t=iyt(function(){var t=nyt(n.resolve);oyt(e,function(e){tyt(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}});var ayt=Wpe,syt=Dpe,lyt=(dut({target:"Promise",stat:!0,forced:Fpe.CONSTRUCTOR},{reject:function(e){var t=syt.f(this);return ayt(t.reject,void 0,e),t.promise}}),eut),cyt=_ct,uyt=Dpe,Wge=dut,$ge=qct,Zge=Fpe.CONSTRUCTOR,dyt=function(e,t){return lyt(e),cyt(t)&&t.constructor===e?t:((0,(e=uyt.f(e)).resolve)(t),e.promise)};$ge("Promise"),Wge({target:"Promise",stat:!0,forced:Zge},{resolve:function(e){return dyt(this,e)}});const pyt=()=>emt(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Lft()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),gyt=n=>emt(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Lft()+"/api/admin/openid/org/"+n);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),fyt=(e,t,n)=>fetch(Lft()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:n})}),hyt=(n,r)=>emt(void 0,void 0,void 0,function*(){var e=Lft(!0),t={query:`
|
|
1531
|
+
`,l={entityId:t,entityType:e};try{a=yield Sne({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(g=(a.errors||[])[0])?void 0:g.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function gct(t){return dct(this,void 0,void 0,function*(){var e="getMyRights";return(yield A(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const fct=(t,n,r)=>e=>{return t&&n&&(e=e[cct].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},hct=e=>e[cct].rights;var mct=Object.freeze({__proto__:null,selectPermissionsByEntity:fct,selectMyRights:hct});function*vct(t){var{entityId:t,entityType:n}=t.payload,i=yield E(Xre),e=yield E(Lre),o=yield E(gre),a=yield E(Are),r=yield E(fct(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield k(uct.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield T(pct,e,o,{entityType:n,entityId:t});else{let e=yield E(hct);if("success"!==e.status&&"pending"!==e.status){yield k(uct.fetchMyRightsStarted);try{var s=yield T(gct,i);yield k(uct.fetchMyRightsSucceeded(s)),e=yield E(hct)}catch(e){throw yield k(uct.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield of([uct.fetchMyRightsFailed,uct.fetchMyRightsSucceeded]),e=yield E(hct));const l=e["myRights"];act(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=((e,t,n)=>{const r=(null==(e=$lt[e])?void 0:e[t])||[];return 0<n.filter(e=>r&&r.includes(e)).length})(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield k(uct.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){uct.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*xct(){yield af([function*(){yield QL(uct.fetchObjectPermissionsStart.type,vct)}()])}const yct=e=>{const t=De.exports.useRef(),n=de(),r=null==(o=ue(hre).organization)?void 0:o.organizationId,i=ue(fct(Jlt.Organization,String(r),e));De.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(uct.fetchObjectPermissionsStart({entityType:Jlt.Organization,entityId:String(r)})))},[n,r,i]);var o=De.exports.useCallback(e=>{return!sct(i)&&lct(i,e)},[i]);return{permissions:i,hasPermission:o}},bct=new class{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}};Wh.addModules([{id:mlt,reducerMap:{[mlt]:vlt},sagas:[Slt],initialActions:[]},(Nce=dlt,Yde=plt,{id:dte,reducerMap:{panels:(e,{type:t,payload:n})=>{switch(t){case pte({}).type:{var r=[...e],i=(n.panelConfig.show=!0,n.panelConfig);const a=null==i?void 0:i.parentPanelId;var i=null==i?void 0:i.dimmedStatus;return"dimAllParents"===i?[...r.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)+1})})}),n]:a&&i?(r[i=e.findIndex(e=>e.panelId===a)]=Object.assign(Object.assign({},r[i]),{panelConfig:Object.assign(Object.assign({},null==(o=r[i])?void 0:o.panelConfig),{dimmed:((null==(i=null==(o=r[i])?void 0:o.panelConfig)?void 0:i.dimmed)||0)+1})}),[...r,n]):[...e,n]}case fte("").type:{i=null==(o=e.find(e=>e.panelId===n))?void 0:o.panelConfig;const s=null==i?void 0:i.parentPanelId;var r=null==i?void 0:i.dimmedStatus,o=e.filter(e=>e.panelId!==n);return"dimAllParents"===r?o.map(e=>{return Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},e.panelConfig),{dimmed:((null==(e=e.panelConfig)?void 0:e.dimmed)||0)-1})})}):(s&&r&&-1!==(i=e.findIndex(e=>e.panelId===s))&&(o[i]=Object.assign(Object.assign({},o[i]),{panelConfig:Object.assign(Object.assign({},o[i].panelConfig),{dimmed:((null==(r=o[i].panelConfig)?void 0:r.dimmed)||0)-1})})),o)}case hte("").type:i=e.find(e=>e.panelId===n),r=e.filter(e=>e.panelId!==n),i=Object.assign(Object.assign({},i),{panelConfig:Object.assign(Object.assign({},null==i?void 0:i.panelConfig),{show:!1})});return[...r,i];case xte("").type:return e.map(e=>Object.assign(Object.assign({},e),{panelConfig:Object.assign(Object.assign({},null==e?void 0:e.panelConfig),{show:!1})}));case mte({}).type:o=e.find(e=>e.panelId===n.id),r=e.filter(e=>e.panelId!==n.id),o=Object.assign(Object.assign({},o),{microFrontend:Object.assign(Object.assign({},null==o?void 0:o.microFrontend),{config:n.props})});return[...r,o]}return e||[]}},sagas:[function(p,g){const f={};return function*(){yield QL(pte({}).type,function*(e){const{panelId:t,microFrontend:{name:n},panelConfig:r}=null==e?void 0:e.payload;let i=void 0;g&&(i=p[r.type]||(yield T(g,r.type)),yield lf(g,n));var o,a,s,l=i||p[r.type],c=(r.siblingPanelId?(c=yield E(e=>e.panels.find(e=>e.panelId===r.siblingPanelId)))&&Ste(c.panelConfig.ancestorCenterPanelId)&&({panelConfig:{marginTop:o=0,marginStart:u=0,zIndex:s=1e3},panelId:a}=c,a=(null==(a=null===document||void 0===document?void 0:document.getElementById(a))?void 0:a.clientWidth)||650,r.marginTop=0!==r.marginTop&&wte(o)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:wte(u)+a,r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=c.panelConfig.ancestorCenterPanelId):r.parentPanelId&&(o=yield E(e=>e.panels.find(e=>e.panelId===r.parentPanelId)))&&(Ste(o.panelId)||Ste(o.panelConfig.ancestorCenterPanelId))&&({panelConfig:{marginTop:u=0,marginStart:a=0,zIndex:s=1e3}}=o,r.marginTop=0!==r.marginTop&&wte(u)||r.marginTop,r.marginStart=0===r.marginTop?r.marginStart:wte(a),r.zIndex=r.zIndex||s,r.ancestorCenterPanelId=o.panelConfig.ancestorCenterPanelId||o.panelId),Ite(t)),u=eW(c);u.classList.add("aiware-el");let d;f[c]?d=f[c]:(d=Ze.createRoot(u),f[c]=d),d.render(nt.exports.jsx(uk,{children:nt.exports.jsx(QO,{children:nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Hb,Object.assign({onClickAway:Cte},{children:nt.exports.jsx(Ate,{children:nt.exports.jsx(l,Object.assign({type:"SIMPLE_PANEL",panelId:t,"data-test":"panel-"+t},{children:nt.exports.jsx(pe,Object.assign({sx:{display:"flex",justifyContent:"center",my:20}},{children:nt.exports.jsx(Y4,{size:50})}))}))})}))}))})})),yield k(gte(e.payload))}),yield QL(gte({}).type,function*(e){var{panelId:e,microFrontend:{name:t},panelConfig:n}=(null==e?void 0:e.payload)||{};let r=null;var t=(r=g?yield T(g,t):r)||p[t]||(()=>nt.exports.jsx("div",{children:"Component Not Found."})),n=p[n.type],i=Ite(e);eW(i).classList.add("aiware-el"),f[i].render(nt.exports.jsx(uk,{children:nt.exports.jsx(QO,{children:nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Hb,Object.assign({onClickAway:Cte},{children:nt.exports.jsx(Ate,{children:nt.exports.jsx(n,Object.assign({type:"SIMPLE_PANEL",panelId:e,"data-test":"panel-"+e},{children:nt.exports.jsx(t,{})}))})}))}))})}))}),yield QL(fte("").type,function*(t){var e=yield E(e=>e.panels.find(e=>{return(null==(e=null==e?void 0:e.panelConfig)?void 0:e.parentPanelId)===t.payload}));e&&0<Object.keys(e).length&&(yield k(fte(e.panelId))),setTimeout(()=>{var e=Ite(t.payload);f[e]&&f[e].unmount(),delete f[e]})}),yield QL(vte.type,function(e){var e=null==(e=null==e?void 0:e.payload)?void 0:e.url,t=document.createElement("a");t.target="_blank",t.href=e,t.click()})}}(Nce,Yde)],initialActions:[]}),{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===Koe({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]},aie(),Foe(),{id:cct,reducerMap:{permissions:Oue},sagas:[xct],initialActions:[]}]);let Cct=!1;const Act=()=>{var e=ue(fre);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!Cct&&(Cct=!0,setTimeout(()=>{Wh.addModules([SGe()])},0)),null};function Ict(){var e=ue(fre);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&Cct?nt.exports.jsx(Xlt,{}):null}hpe={updateToken(e){e?Wh.dispatch(zne({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{Wh.dispatch(Yoe())},1e3)):Wh.dispatch(Yoe())},reportAppActivity(e){bct.checkIfCanCall(e)&&Wh.dispatch($oe())}};mpe=eW("aiWARE"),mpe.classList.add("aiware-el"),ype=Ze.createRoot(mpe),"_auth"===window.name?Fie(window.location.hash,window.opener):ype.render(nt.exports.jsx(uk,{children:nt.exports.jsxs(QO,{children:[nt.exports.jsx(function(){return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(Nlt,{}),nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Act,{})}))]})},{}),nt.exports.jsx(function(){return nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(pg,Object.assign({modules:[Qie()]},{children:nt.exports.jsx(klt,{})}))}))},{}),nt.exports.jsx(function(){return nt.exports.jsx(nt.exports.Fragment,{children:nt.exports.jsx(lg,Object.assign({store:Wh},{children:nt.exports.jsx(Joe,{children:nt.exports.jsx(Ict,{})})}))})},{}),nt.exports.jsx(()=>(fb(),null),{})]})})),Epe=(e,t)=>{var n=Qq(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),Wh.dispatch(xlt({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n},Ape=e=>(Wh.dispatch(Clt(e)),!0),jpe=(e,t)=>{const n=e.panelId||Qq();var{microFrontend:e,panelConfig:r}=e;Wh.dispatch(pte({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield QL(i.map(e=>e.type),function*(){var e=(yield E(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return Wh.addModule(r),n},wpe=e=>(Wh.dispatch(fte(e)),!0),Tpe=e=>(Wh.dispatch(hte(e)),!0);function wct(e,t){(e=e).applicationId||console.info("@aiware/js: applicationId is required. Go to developer app to find your application id."),e.baseUrl||console.info("@aiware/js: baseUrl is required. It defaults to the US Commercial environment which is https://api.us-1.veritone.com/v3/graphql");var n,e=e.knowledgeBaseURL?(console.info("@aiware/js: knowledgeBaseURL is deprecated and scheduled to be removed in v3. Please use knowledgeBaseUrl instead."),Object.assign(Object.assign({},e),{knowledgeBaseUrl:e.knowledgeBaseURL})):e;e?(n=e["authToken"],n=(t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}})(n||""),Wh.dispatch(sre(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}Ppe={on:function(e,t){jct(e),Cne.on.call(Cne,e,t)},off:function(e){jct(e),Cne.off.call(Cne,e)}};function jct(e){if(!e||"string"!=typeof e)throw new bne("Please provide a valid event name!");if(!Tte[e])throw new bne("Unknown event: "+e)}function Sct(n,e,r,t){void 0===r&&(r=global),void 0===t&&(t={});var i=De.exports.useRef(),o=t.capture,a=t.passive,s=t.once;De.exports.useEffect(function(){i.current=e},[e]),De.exports.useEffect(function(){var e,t;if(r&&r.addEventListener)return r.addEventListener(n,e=function(e){return i.current(e)},t={capture:o,passive:a,once:s}),function(){r.removeEventListener(n,e,t)}},[n,r,o,a,s])}window&&(window.aiWare_initTesting=()=>{window.aiWare_store=Wh,window.aiWare_theme={darkTheme:JO,lightTheme:KO}},window.aiware={init:wct,auth:hpe,helpCenter:{openKnowledgeBasePanel:(xpe=new Ane({actions:{setCustomKnowledgeBaseUrlAction:Plt,setCustomDocsUrlAction:Dlt,updateSelectedTabAction:Mlt}})).openKnowledgeBasePanel.bind(xpe),openDocsPanel:xpe.openDocsPanel.bind(xpe)},dataCenter:{openImporterPanel:(vpe=new xne).openImporterPanel.bind(vpe)},on:Ppe.on,off:Ppe.off,hidePanel:Tpe,unmountPanel:wpe,store:Wh,registry:dlt,registerComponent:epe,AvailableWidgets:u.AvailableWidgets,mountPanelAction:pte,unmountPanelAction:fte,hidePanelAction:hte,updatePanelMicroFrontendPropsAction:mte,setData:Koe,mountWidget:Epe,mountPanel:jpe,mountPanelForResponse:e=>bte(e,Wh),unmountWidget:Ape,version:"sdk_release_version",commit:"ba8564acf",releaseDate:"2023-08-30T20:00:15.354Z"}),window.global=window;var Oct={};function kct(l,e){var c,n;return(e=void 0===e?"undefined"!=typeof global&&global.localStorage?global.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:"undefined"!=typeof window&&window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null:e)?(n=e,c={get:function(e,t){e=n.getItem(e);return null==e?"function"==typeof t?t():t:JSON.parse(e)},set:function(e,t){n.setItem(e,JSON.stringify(t))}},function(e){return t=e,i=l,n=c.get,r=c.set,o=De.exports.useRef(null),e=De.exports.useState(function(){return n(i,t)}),a=e[0],s=e[1],Sct("storage",function(e){e.key===i&&(e=JSON.parse(e.newValue),a!==e)&&s(e)}),De.exports.useEffect(function(){return o.current=(r=s,e=t,Oct[n=i]||(Oct[n]={callbacks:[],value:e}),Oct[n].callbacks.push(r),{deregister:function(){var e=Oct[n].callbacks,t=e.indexOf(r);-1<t&&e.splice(t,1)},emit:function(t){Oct[n].value!==t&&(Oct[n].value=t,Oct[n].callbacks.forEach(function(e){r!==e&&e(t)}))}}),function(){o.current.deregister()};var n,r,e},[t,i]),e=De.exports.useCallback(function(e){var t="function"==typeof e?e(a):e;r(i,t),s(t),o.current.emit(e)},[a,r,i]),[a,e];var t,i,n,r,o,a,s}):De.exports.useState}function Tct(){}var Ect={classList:{add:Tct,remove:Tct}},Nct=function(e,t,n){void 0===n&&(n=global);var e=e?kct(e,t):De.exports.useState,r=n.matchMedia?n.matchMedia("(prefers-color-scheme: dark)"):{},i="(prefers-color-scheme: dark)"===r.media,o=n.document&&n.document.body||Ect;return{usePersistedDarkModeState:e,getDefaultOnChange:function(t,n,r){return void 0===t&&(t=o),void 0===n&&(n="dark-mode"),void 0===r&&(r="light-mode"),function(e){t.classList.add(e?n:r),t.classList.remove(e?r:n)}},mediaQueryEventTarget:{addEventListener:function(e,t){return r.addListener&&r.addListener(t)},removeEventListener:function(e,t){return r.removeListener&&r.removeListener(t)}},getInitialValue:function(e){return i?r.matches:e}}};const Mct="theme-switcher",Pct="search-bar",Dct=fe()(e=>({appBarContainer:{display:"flex",padding:"8px",justifyContent:"space-between",alignItems:"center"},margin:{marginTop:54}})),Rct={};["en","es","fr"].forEach(e=>{Rct[e]={}});function Lct(e){return e&&e.Math==Math&&e}function Fct(e){try{return!!e()}catch(e){return!0}}function Vct(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Hct(e){return Nut(Eut(e),8,-1)}function Uct(e){if(null==e)throw Rut("Can't call method on "+e);return e}function Bct(e){return Lut(Fut(e))}function zct(e){return"function"==typeof e}function _ct(e){return"object"==typeof e?null!==e:Vut(e)}function qct(e,t){return arguments.length<2?(n=Hut[e],Uut(n)?n:void 0):Hut[e]&&Hut[e][t];var n}function Wct(e){try{return Zut(e)}catch(e){return"Object"}}function Zct(e){if(Gut(e))return e;throw Kut(Jut(e)+" is not a function")}function Gct(e,t){return null==(e=e[t])?void 0:Yut(e)}function Jct(t,n){try{ndt(tdt,t,{value:n,configurable:!0,writable:!0})}catch(e){tdt[t]=n}return n}function Kct(e){return odt(idt(e))}function Yct(e){return"Symbol("+(void 0===e?"":e)+")_"+udt(++ldt+cdt,36)}function Qct(e){var t;return ddt(fdt,e)&&(pdt||"string"==typeof fdt[e])||(t="Symbol."+e,pdt&&ddt(hdt,e)?fdt[e]=hdt[e]:fdt[e]=(gdt&&mdt?mdt:vdt)(t)),fdt[e]}function Xct(e){return e=jdt(e,"string"),Sdt(e)?e:e+""}function $ct(e){return kdt?Odt.createElement(e):{}}function eut(e){if(Vdt(e))return e;throw Udt(Hdt(e)+" is not an object")}function tut(e){return ept[e]||(ept[e]=$dt(e))}function nut(e,t,n,r){var i=(r=r||{}).enumerable,o=void 0!==r.name?r.name:t;if(mpt(n)&&xpt(n,o,r),r.global)i?e[t]=n:ypt(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:vpt.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}function rut(e){return(e=+e)!=e||0==e?0:Apt(e)}function iut(e,t){return(e=Ipt(e))<0?wpt(e+t,0):jpt(e,t)}function out(e){return 0<e?Opt(Spt(e),9007199254740991):0}function aut(e){return kpt(e.length)}function sut(s){return function(e,t,n){var r,i=Tpt(e),o=Npt(i),a=Ept(n,o);if(s&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===t)return s||a||0;return!s&&-1}}function lut(e,t){var n,r=Ppt(e),i=0,o=[];for(n in r)!Mpt(Rpt,n)&&Mpt(r,n)&&Lpt(o,n);for(;t.length>i;)!Mpt(r,n=t[i++])||~Dpt(o,n)||Lpt(o,n);return o}function cut(e,t,n){for(var r=qpt(t),i=Zpt.f,o=Wpt.f,a=0;a<r.length;a++){var s=r[a];_pt(e,s)||n&&_pt(n,s)||i(e,s,o(t,s))}}function uut(e,t){return(e=Qpt[Ypt(e)])==$pt||e!=Xpt&&(Jpt(t)?Gpt(t):!!t)}function dut(e,t){var n,r,i,o=e.target,a=e.global,s=e.stat,l=a?egt:s?egt[o]||igt(o,{}):(egt[o]||{}).prototype;if(l)for(n in t){if(r=t[n],i=e.dontCallGetSet?(i=tgt(l,n))&&i.value:l[n],!agt(a?n:o+(s?".":"#")+n,e.forced)&&void 0!==i){if(typeof r==typeof i)continue;ogt(r,i)}(e.sham||i&&i.sham)&&ngt(r,"sham",!0),rgt(l,n,r,e)}}var put,gut,fut,hut,mut,vut,xut,yut,but=Object.freeze({__proto__:null,APP_BAR:"app-bar",SEARCH_BAR:Pct,SampleAppBar:e=>{var t=Dct()["classes"];const[n,r]=De.exports.useState("en"),[,i]=De.exports.useState({});De.exports.useEffect(()=>{e.locale&&r(e.locale)},[e.locale]),De.exports.useEffect(()=>{i(Rct[n])},[n]);void 0===x&&(x=!1),a=(o=void 0===o?{}:o).element,s=o.classNameDark,l=o.classNameLight,c=o.onChange,void 0===(u=o.storageKey)&&(u="darkMode"),d=o.storageProvider,p=o.global,g=(o=De.exports.useMemo(function(){return Nct(u,d,p)},[u,d,p])).getDefaultOnChange,f=o.mediaQueryEventTarget,h=(o=(0,o.usePersistedDarkModeState)((0,o.getInitialValue)(x)))[0],m=o[1],v=De.exports.useMemo(function(){return c||g(a,s,l)},[c,a,s,l,g]),De.exports.useEffect(function(){v(h)},[v,h]),Sct("change",function(e){return m(e.matches)},f);var o,a,s,l,c,u,d,p,g,f,h,m,v,x={value:h,enable:De.exports.useCallback(function(){return m(!0)},[m]),disable:De.exports.useCallback(function(){return m(!1)},[m]),toggle:De.exports.useCallback(function(){return m(function(e){return!e})},[m])};return nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(lg,Object.assign({store:e.store||Wh},{children:nt.exports.jsx(yI,Object.assign({"data-test":"app-bar"},{children:nt.exports.jsxs("div",Object.assign({className:t.appBarContainer},{children:[nt.exports.jsx(ae,Object.assign({variant:"subtitle2"},{children:"App Name"})),nt.exports.jsx(ae,Object.assign({"data-test":Pct},{children:nt.exports.jsx(Joe,Object.assign({locale:n},{children:nt.exports.jsx(oe,{id:"os-sample-app-bar.hXq2hF",defaultMessage:"Search Bar",description:"Primary Search Bar Place Holder Text"})}))})),nt.exports.jsxs("div",{children:["☀",nt.exports.jsx(aS,{"data-test":Mct,onChange:x.toggle,checked:x.value}),"☾"]})]}))}))})),nt.exports.jsx("div",{className:t.margin})]})},THEME_SWITCHER:Mct}),kpe={},Ope=z.exports,Mpe=(Object.defineProperty(kpe,"__esModule",{value:!0}),kpe.default=void 0,Ope(_J)),Dde=nt.exports,ede=(0,Mpe.default)((0,Dde.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),Cut=kpe.default=ede,Jpe={},H$e=z.exports,lue=(Object.defineProperty(Jpe,"__esModule",{value:!0}),Jpe.default=void 0,H$e(_J)),s=nt.exports,nge=(0,lue.default)((0,s.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff"),Aut=Jpe.default=nge,$pe={},Oge=z.exports,Iut=(Object.defineProperty($pe,"__esModule",{value:!0}),$pe.default=void 0),Rde=Oge(_J),ppe=nt.exports,Npe=(0,Rde.default)((0,ppe.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),Iut=$pe.default=Npe,Bpe={},Hpe=z.exports,Lpe=(Object.defineProperty(Bpe,"__esModule",{value:!0}),Bpe.default=void 0,Hpe(_J)),Rpe=nt.exports,Gpe=(0,Lpe.default)((0,Rpe.jsx)("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5-.59 1.22-1.42 2.27-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5 2.61 2.61c-.04.01-.08.02-.12.02-1.38 0-2.5-1.12-2.5-2.5 0-.05.01-.08.01-.13zm-3.4-3.4 1.75 1.75c-.23.55-.36 1.15-.36 1.78 0 2.48 2.02 4.5 4.5 4.5.63 0 1.23-.13 1.77-.36l.98.98c-.88.24-1.8.38-2.75.38-3.79 0-7.17-2.13-8.82-5.5.7-1.43 1.72-2.61 2.93-3.53z"}),"VisibilityOffOutlined"),wut=Bpe.default=Gpe,X$e={},gge=z.exports,lge=(Object.defineProperty(X$e,"__esModule",{value:!0}),X$e.default=void 0,gge(_J)),pge=nt.exports,Fpe=(0,lge.default)((0,pge.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"),jut=X$e.default=Fpe,Dpe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vpe=Lct("object"==typeof globalThis&&globalThis)||Lct("object"==typeof window&&window)||Lct("object"==typeof self&&self)||Lct("object"==typeof Dpe&&Dpe)||function(){return this}()||Function("return this")(),Gce={},mtt=!Fct(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),zpe=!Fct(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Sut=Function.prototype.call,Wpe=zpe?Sut.bind(Sut):function(){return Sut.apply(Sut,arguments)},Lge={},Dge={}.propertyIsEnumerable,Out=Object.getOwnPropertyDescriptor,Fge=Out&&!Dge.call({1:2},1),Vge=(Lge.f=Fge?function(e){e=Out(this,e);return!!e&&e.enumerable}:Dge,zpe),Rge=Function.prototype,Bge=Rge.bind,kut=Rge.call,Tut=Vge&&Bge.bind(kut,kut),Uge=Vge?function(e){return e&&Tut(e)}:function(e){return e&&function(){return kut.apply(e,arguments)}},Zpe=Uge,Eut=Zpe({}.toString),Nut=Zpe("".slice),oge=Fct,Mut=Hct,Put=Object,Dut=Uge("".split),ige=oge(function(){return!Put("z").propertyIsEnumerable(0)})?function(e){return"String"==Mut(e)?Dut(e,""):Put(e)}:Put,Rut=TypeError,Lut=ige,Fut=Uct,Vut=zct,Hut=Vpe,Uut=zct,p1e=Uge({}.isPrototypeOf),i=qct("navigator","userAgent")||"",_ge=i,Fue=Vpe.process,qge=Vpe.Deno,Ede=Fue&&Fue.versions||qge&&qge.version,rde=Ede&&Ede.v8,Jde=eyt=!(eyt=rde?0<(Jxt=rde.split("."))[0]&&Jxt[0]<4?1:+(Jxt[0]+Jxt[1]):eyt)&&_ge&&(!(Jxt=_ge.match(/Edge\/(\d+)/))||74<=Jxt[1])&&(Jxt=_ge.match(/Chrome\/(\d+)/))?+Jxt[1]:eyt,But=Jde,zge=Fct,n1e=!!Object.getOwnPropertySymbols&&!zge(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&But&&But<41}),Kge=n1e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zut=qct,_ut=zct,qut=p1e,Wut=Object,Zge=Kge?function(e){return"symbol"==typeof e}:function(e){var t=zut("Symbol");return _ut(t)&&qut(t.prototype,Wut(e))},Zut=String,Gut=zct,Jut=Wct,Kut=TypeError,Yut=Zct,Qut=Wpe,Xut=zct,$ut=_ct,edt=TypeError,xue={exports:{}},tdt=Vpe,ndt=Object.defineProperty,Yge=Jct,Hge="__core-js_shared__",Xge=Vpe[Hge]||Yge(Hge,{}),rdt=Xge,idt=((xue.exports=function(e,t){return rdt[e]||(rdt[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"}),Uct),odt=Object,adt=Kct,sdt=Uge({}.hasOwnProperty),Qge=Object.hasOwn||function(e,t){return sdt(adt(e),t)},t1e=Uge,ldt=0,cdt=Math.random(),udt=t1e(1..toString),Wge=Vpe,ddt=Qge,$ge=Yct,pdt=n1e,gdt=Kge,fdt=(0,xue.exports)("wks"),hdt=Wge.Symbol,mdt=hdt&&hdt.for,vdt=gdt?hdt:hdt&&hdt.withoutSetter||$ge,xdt=Wpe,ydt=_ct,bdt=Zge,Cdt=Gct,Adt=function(e,t){var n,r;if("string"===t&&Xut(n=e.toString)&&!$ut(r=Qut(n,e)))return r;if(Xut(n=e.valueOf)&&!$ut(r=Qut(n,e)))return r;if("string"!==t&&Xut(n=e.toString)&&!$ut(r=Qut(n,e)))return r;throw edt("Can't convert object to primitive value")},Idt=TypeError,wdt=Qct("toPrimitive"),jdt=function(e,t){if(!ydt(e)||bdt(e))return e;var n=Cdt(e,wdt);if(n){if(n=xdt(n,e,t=void 0===t?"default":t),!ydt(n)||bdt(n))return n;throw Idt("Can't convert object to primitive value")}return Adt(e,t=void 0===t?"number":t)},Sdt=Zge,Gge=_ct,Odt=Vpe.document,kdt=Gge(Odt)&&Gge(Odt.createElement),Tdt=$ct,e1e=!mtt&&!Fct(function(){return 7!=Object.defineProperty(Tdt("div"),"a",{get:function(){return 7}}).a}),Edt=Wpe,Ndt=Lge,Mdt=Vct,Pdt=Bct,Ddt=Xct,Rdt=Qge,Ldt=e1e,Fdt=Object.getOwnPropertyDescriptor,r1e=(Gce.f=mtt?Fdt:function(e,t){if(e=Pdt(e),t=Ddt(t),Ldt)try{return Fdt(e,t)}catch(e){}if(Rdt(e,t))return Mdt(!Edt(Ndt.f,e,t),e[t])},{}),g1e=mtt&&Fct(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Vdt=_ct,Hdt=String,Udt=TypeError,Bdt=e1e,zdt=eut,_dt=Xct,qdt=TypeError,Wdt=Object.defineProperty,Zdt=Object.getOwnPropertyDescriptor,Gdt="enumerable",Jdt="configurable",Kdt="writable",Vde=(r1e.f=mtt?g1e?function(e,t,n){var r;return zdt(e),t=_dt(t),zdt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Kdt in n&&!n[Kdt]&&(r=Zdt(e,t))&&r[Kdt]&&(e[t]=n.value,n={configurable:(Jdt in n?n:r)[Jdt],enumerable:(Gdt in n?n:r)[Gdt],writable:!1}),Wdt(e,t,n)}:Wdt:function(e,t,n){if(zdt(e),t=_dt(t),zdt(n),Bdt)try{return Wdt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw qdt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},mtt),Ydt=r1e,Qdt=Vct,que=Vde?function(e,t,n){return Ydt.f(e,t,Qdt(1,n))}:function(e,t,n){return e[t]=n,e},i1e={exports:{}},z_=mtt,uge=Qge,bde=Function.prototype,_ue=z_&&Object.getOwnPropertyDescriptor,s1e=uge(bde,"name"),d1e={EXISTS:s1e,PROPER:s1e&&"something"===function(){}.name,CONFIGURABLE:s1e&&(!z_||_ue(bde,"name").configurable)},c1e=zct,o1e=Xge,Xdt=Uge(Function.toString),a1e=(c1e(o1e.inspectSource)||(o1e.inspectSource=function(e){return Xdt(e)}),o1e.inspectSource),u1e=zct,P_=a1e,r=Vpe.WeakMap,__=u1e(r)&&/native code/.test(P_(r)),$dt=Yct,ept=(0,xue.exports)("keys"),Tce={},e=Uge,tpt=_ct,npt=que,rpt=Qge,SG=Xge,Eue=tut,TZ=Tce,ipt="Object already initialized",opt=Vpe.TypeError,yP=Vpe.WeakMap,ux=(xut=__||SG.state?(put=SG.state||(SG.state=new yP),gut=e(put.get),fut=e(put.has),hut=e(put.set),mut=function(e,t){if(fut(put,e))throw new opt(ipt);return t.facade=e,hut(put,e,t),t},vut=function(e){return gut(put,e)||{}},function(e){return fut(put,e)}):(TZ[yut=Eue("state")]=!0,mut=function(e,t){if(rpt(e,yut))throw new opt(ipt);return t.facade=e,npt(e,yut,t),t},vut=function(e){return rpt(e,yut)?e[yut]:{}},function(e){return rpt(e,yut)}),{set:mut,get:vut,has:xut,enforce:function(e){return xut(e)?vut(e):mut(e,{})},getterFor:function(t){return function(e){if(tpt(e)&&(e=vut(e)).type===t)return e;throw opt("Incompatible receiver, "+t+" required")}}}),xG=Fct,apt=zct,spt=Qge,lpt=mtt,cpt=d1e.CONFIGURABLE,upt=a1e,dpt=ux.enforce,ppt=ux.get,gpt=Object.defineProperty,fpt=lpt&&!xG(function(){return 8!==gpt(function(){},"length",{value:8}).length}),hpt=String(String).split("String"),cx=i1e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!spt(e,"name")||cpt&&e.name!==t)&&(lpt?gpt(e,"name",{value:t,configurable:!0}):e.name=t),fpt&&n&&spt(n,"arity")&&e.length!==n.arity&&gpt(e,"length",{value:n.arity});try{n&&spt(n,"constructor")&&n.constructor?lpt&&gpt(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}n=dpt(e);return spt(n,"source")||(n.source=hpt.join("string"==typeof t?t:"")),e},mpt=(Function.prototype.toString=cx(function(){return apt(this)&&ppt(this).source||upt(this)},"toString"),zct),vpt=r1e,xpt=i1e.exports,ypt=Jct,mG={},bpt=Math.ceil,Cpt=Math.floor,Apt=Math.trunc||function(e){e=+e;return(0<e?Cpt:bpt)(e)},Ipt=rut,wpt=Math.max,jpt=Math.min,Spt=rut,Opt=Math.min,kpt=out,Tpt=Bct,Ept=iut,Npt=aut,Q_={includes:sut(!0),indexOf:sut(!1)},TG=Uge,Mpt=Qge,Ppt=Bct,Dpt=Q_.indexOf,Rpt=Tce,Lpt=TG([].push),uD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fpt=lut,Vpt=uD.concat("length","prototype"),XW=(mG.f=Object.getOwnPropertyNames||function(e){return Fpt(e,Vpt)},{}),Tg=(XW.f=Object.getOwnPropertySymbols,qct),Hpt=mG,Upt=XW,Bpt=eut,zpt=Uge([].concat),kde=Tg("Reflect","ownKeys")||function(e){var t=Hpt.f(Bpt(e)),n=Upt.f;return n?zpt(t,n(e)):t},_pt=Qge,qpt=kde,Wpt=Gce,Zpt=r1e,Gpt=Fct,Jpt=zct,Kpt=/#|\.prototype\./,Ypt=uut.normalize=function(e){return String(e).replace(Kpt,".").toLowerCase()},Qpt=uut.data={},Xpt=uut.NATIVE="N",$pt=uut.POLYFILL="P",l1e=uut,egt=Vpe,tgt=Gce.f,ngt=que,rgt=nut,igt=Jct,ogt=cut,agt=l1e,sgt=lut,lgt=uD,bG=Object.keys||function(e){return sgt(e,lgt)},cgt=mtt,_de=Uge,ugt=Wpe,q_=Fct,dgt=bG,pgt=XW,ggt=Lge,fgt=Kct,hgt=ige,mgt=Object.assign,vgt=Object.defineProperty,xgt=_de([].concat),Tge=!mgt||q_(function(){var e,t,n,r;return cgt&&1!==mgt({b:1},mgt(vgt({},"a",{enumerable:!0,get:function(){vgt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b||(t={},r="abcdefghijklmnopqrst",(e={})[n=Symbol()]=7,r.split("").forEach(function(e){t[e]=e}),7!=mgt({},e)[n])||dgt(mgt({},t)).join("")!=r})?function(e,t){for(var n=fgt(e),r=arguments.length,i=1,o=pgt.f,a=ggt.f;i<r;)for(var s,l=hgt(arguments[i++]),c=o?xgt(dgt(l),o(l)):dgt(l),u=c.length,d=0;d<u;)s=c[d++],cgt&&!ugt(a,l,s)||(n[s]=l[s]);return n}:mgt,Rce=(dut({target:"Object",stat:!0,arity:2,forced:Object.assign!==Tge},{assign:Tge}),{}),ygt=r1e,bgt=eut,Cgt=Bct,Agt=bG;Rce.f=mtt&&!g1e?Object.defineProperties:function(e,t){bgt(e);for(var n,r=Cgt(t),i=Agt(t),o=i.length,a=0;a<o;)ygt.f(e,n=i[a++],r[n]);return e};function Igt(){}function wgt(e){e.write(Lgt("")),e.close();var t=e.parentWindow.Object;return e=null,t}function jgt(e){Hgt[Vgt][e]=!0}function Sgt(e){var t;return Bgt(e)&&(void 0!==(t=e[_gt])?!!t:"RegExp"==zgt(e))}var Ogt,Ice=qct("document","documentElement"),kgt=eut,Tgt=Rce,Egt=uD,Vce=Tce,Ngt=Ice,Mgt=$ct,Pgt="prototype",Dgt="script",Rgt=tut("IE_PROTO"),Lgt=function(e){return"<"+Dgt+">"+e+"</"+Dgt+">"},Fgt=function(){try{Ogt=new ActiveXObject("htmlfile")}catch(e){}Fgt="undefined"==typeof document||document.domain&&Ogt?wgt(Ogt):(e=Mgt("iframe"),t="java"+Dgt+":",e.style.display="none",Ngt.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(Lgt("document.F=Object")),t.close(),t.F);for(var e,t,n=Egt.length;n--;)delete Fgt[Pgt][Egt[n]];return Fgt()},Jge=(Vce[Rgt]=!0,Object.create||function(e,t){var n;return null!==e?(Igt[Pgt]=kgt(e),n=new Igt,Igt[Pgt]=null,n[Rgt]=e):n=Fgt(),void 0===t?n:Tgt.f(n,t)}),Mde=Qct,Uce=Jge,tue=r1e.f,Vgt=Mde("unscopables"),Hgt=Array.prototype,sx=(null==Hgt[Vgt]&&tue(Hgt,Vgt,{configurable:!0,value:Uce(null)}),dut),Ugt=Q_.includes,xZ=jgt,Bgt=(sx({target:"Array",proto:!0,forced:Fct(function(){return!Array(1).includes()})},{includes:function(e){return Ugt(this,e,1<arguments.length?arguments[1]:void 0)}}),xZ("includes"),_ct),zgt=Hct,_gt=Qct("match"),qgt=Sgt,Wgt=TypeError,wZ={};wZ[Qct("toStringTag")]="z";function Zgt(e){if("Symbol"===i1t(e))throw TypeError("Cannot convert a Symbol value to a string");return o1t(e)}function Ggt(){var e=d1t(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}function Jgt(n,e,t,r){var a,i=L1t(n),s=!R1t(function(){var e={};return e[i]=function(){return 7},7!=""[n](e)}),o=s&&!R1t(function(){var e=!1,t=/a/;return"split"===n&&((t={constructor:{}}).constructor[V1t]=function(){return t},t.flags="",t[i]=/./[i]),t.exec=function(){return e=!0,null},t[i](""),!e});s&&o&&!t||(a=M1t(/./[i]),o=e(i,""[n],function(e,t,n,r,i){var e=M1t(e),o=t.exec;return o===D1t||o===H1t.exec?s&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:e(n,t,r)}:{done:!1}}),P1t(String.prototype,n,o[0]),P1t(H1t,i,o[1])),r&&F1t(H1t[i],"sham",!0)}function Kgt(i){return function(e,t){var n,e=B1t(z1t(e)),t=U1t(t),r=e.length;return t<0||r<=t?i?"":void 0:(n=q1t(e,t))<55296||56319<n||t+1===r||(r=q1t(e,t+1))<56320||57343<r?i?_1t(e,t):n:i?W1t(e,t,t+2):r-56320+(n-55296<<10)+65536}}function Ygt(e,t,n){return t+(n?Z1t(e,t).length:1)}function Qgt(e,t){var n=e.exec;if(nft(n))return null!==(n=eft(n,e,t))&&tft(n),n;if("RegExp"===rft(e))return eft(ift,e,t);throw oft("RegExp#exec called on incompatible receiver")}function Xgt(e){var t=e.flags;return void 0!==t||"flags"in Eft||Oft(e,"flags")||!kft(Eft,e)?t:Sft(Tft,e)}var j="[object z]"===String(wZ),$gt=zct,e1t=Hct,t1t=Qct("toStringTag"),n1t=Object,r1t="Arguments"==e1t(function(){return arguments}()),YP=j?e1t:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=n1t(e),t1t))?t:r1t?e1t(e):"Object"==(t=e1t(e))&&$gt(e.callee)?"Arguments":t},i1t=YP,o1t=String,a1t=Qct("match"),fce=dut,s1t=function(e){if(qgt(e))throw Wgt("The method doesn't accept regular expressions");return e},l1t=Uct,c1t=Zgt,GJ=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[a1t]=!1,"/./"[t](n)}catch(e){}}return!1},u1t=Uge("".indexOf),d1t=(fce({target:"String",proto:!0,forced:!GJ("includes")},{includes:function(e){return!!~u1t(c1t(l1t(this)),c1t(s1t(e)),1<arguments.length?arguments[1]:void 0)}}),eut),mce=Fct,p1t=Vpe.RegExp,hce=mce(function(){var e=p1t("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),W_=hce||mce(function(){return!p1t("a","y").sticky}),Sce={BROKEN_CARET:hce||mce(function(){var e=p1t("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),MISSED_STICKY:W_,UNSUPPORTED_Y:hce},gce=Fct,g1t=Vpe.RegExp,jce=gce(function(){var e=g1t(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),wce=Fct,f1t=Vpe.RegExp,vce=wce(function(){var e=f1t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),h1t=Wpe,Ece=Uge,m1t=Zgt,v1t=Ggt,kce=Sce,Bce=xue.exports,x1t=Jge,y1t=ux.get,Kce=jce,Wce=vce,b1t=Bce("native-string-replace",String.prototype.replace),C1t=RegExp.prototype.exec,A1t=C1t,I1t=Ece("".charAt),w1t=Ece("".indexOf),j1t=Ece("".replace),S1t=Ece("".slice),O1t=(Jce=/b*/g,h1t(C1t,_ce=/a/,"a"),h1t(C1t,Jce,"a"),0!==_ce.lastIndex||0!==Jce.lastIndex),k1t=kce.BROKEN_CARET,T1t=void 0!==/()??/.exec("")[1],Qce=A1t=O1t||T1t||k1t||Kce||Wce?function(e){var t,n,r,i,o,a,s=this,l=y1t(s),e=m1t(e),c=l.raw;if(c)return c.lastIndex=s.lastIndex,d=h1t(A1t,c,e),s.lastIndex=c.lastIndex,d;var u=l.groups,c=k1t&&s.sticky,d=h1t(v1t,s),l=s.source,p=0,g=e;if(c&&(d=j1t(d,"y",""),-1===w1t(d,"g")&&(d+="g"),g=S1t(e,s.lastIndex),0<s.lastIndex&&(!s.multiline||s.multiline&&"\n"!==I1t(e,s.lastIndex-1))&&(l="(?: "+l+")",g=" "+g,p++),t=new RegExp("^(?:"+l+")",d)),T1t&&(t=new RegExp("^"+l+"$(?!\\s)",d)),O1t&&(n=s.lastIndex),r=h1t(C1t,c?t:s,g),c?r?(r.input=S1t(r.input,p),r[0]=S1t(r[0],p),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:O1t&&r&&(s.lastIndex=s.global?r.index+r[0].length:n),T1t&&r&&1<r.length&&h1t(b1t,r[0],t,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r&&u)for(r.groups=o=x1t(null),i=0;i<u.length;i++)o[(a=u[i])[0]]=r[a[1]];return r}:A1t,rue=(dut({target:"RegExp",proto:!0,forced:/./.exec!==Qce},{exec:Qce}),zpe),aue=Function.prototype,E1t=aue.apply,N1t=aue.call,sue="object"==typeof Reflect&&Reflect.apply||(rue?N1t.bind(E1t):function(){return N1t.apply(E1t,arguments)}),M1t=Uge,P1t=nut,D1t=Qce,R1t=Fct,L1t=Qct,F1t=que,V1t=L1t("species"),H1t=RegExp.prototype,eue=Uge,U1t=rut,B1t=Zgt,z1t=Uct,_1t=eue("".charAt),q1t=eue("".charCodeAt),W1t=eue("".slice),Z1t={codeAt:Kgt(!1),charAt:Kgt(!0)}.charAt,nue=Uge,G1t=Kct,J1t=Math.floor,K1t=nue("".charAt),Y1t=nue("".replace),Q1t=nue("".slice),X1t=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$1t=/\$([$&'`]|\d{1,2})/g,eft=Wpe,tft=eut,nft=zct,rft=Hct,ift=Qce,oft=TypeError,aft=sue,sft=Wpe,Vit=Uge,Uit=Jgt,pue=Fct,lft=eut,cft=zct,uft=rut,dft=out,pft=Zgt,gft=Uct,fft=Ygt,hft=Gct,mft=function(o,a,s,l,c,e){var u=s+o.length,d=l.length,t=$1t;return void 0!==c&&(c=G1t(c),t=X1t),Y1t(e,t,function(e,t){var n;switch(K1t(t,0)){case"$":return"$";case"&":return o;case"`":return Q1t(a,0,s);case"'":return Q1t(a,u);case"<":n=c[Q1t(t,1,-1)];break;default:var r,i=+t;if(0==i)return e;if(d<i)return 0!==(r=J1t(i/10))&&r<=d?void 0===l[r-1]?K1t(t,1):l[r-1]+K1t(t,1):e;n=l[i-1]}return void 0===n?"":n})},vft=Qgt,xft=Qct("replace"),yft=Math.max,bft=Math.min,Cft=Vit([].concat),Aft=Vit([].push),Ift=Vit("".indexOf),wft=Vit("".slice),oZ="$0"==="a".replace(/./,"$0"),jft=!!/./[xft]&&""===/./[xft]("a","$0"),Sft=(Uit("replace",function(e,y,b){var C=jft?"$":"$0";return[function(e,t){var n=gft(this),r=null==e?void 0:hft(e,xft);return r?sft(r,e,n,t):sft(y,pft(n),e,t)},function(e,t){var n=lft(this),r=pft(e);if("string"==typeof t&&-1===Ift(t,C)&&-1===Ift(t,"$<")){e=b(y,n,r,t);if(e.done)return e.value}for(var i,o=cft(t),a=(o||(t=pft(t)),n.global),s=(a&&(i=n.unicode,n.lastIndex=0),[]);null!==(p=vft(n,r))&&(Aft(s,p),a);)""===pft(p[0])&&(n.lastIndex=fft(r,dft(n.lastIndex),i));for(var l,c="",u=0,d=0;d<s.length;d++){for(var p,g=pft((p=s[d])[0]),f=yft(bft(uft(p.index),r.length),0),h=[],m=1;m<p.length;m++)Aft(h,void 0===(l=p[m])?l:String(l));var v=p.groups,x=o?(x=Cft([g],h,f,r),void 0!==v&&Aft(x,v),pft(aft(t,void 0,x))):mft(g,r,f,h,v,t);u<=f&&(c+=wft(r,u,f)+x,u=f+g.length)}return c+wft(r,u)}]},!!pue(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!oZ||jft),Wpe),Oft=Qge,kft=p1e,Tft=Ggt,Eft=RegExp.prototype,Cue=d1e.PROPER,Og=nut,Nft=eut,Mft=Zgt,hue=Fct,Pft=Xgt,Aue="toString",Dft=RegExp.prototype[Aue],Sue=hue(function(){return"/a/b"!=Dft.call({source:"a",flags:"b"})}),mue=Cue&&Dft.name!=Aue;(Sue||mue)&&Og(RegExp.prototype,Aue,function(){var e=Nft(this);return"/"+Mft(e.source)+"/"+Mft(Pft(e))},{unsafe:!0});const Rft={resetPasswordTitle:nt.exports.jsx(oe,{id:"os-auth.reset-password.title",defaultMessage:"New password required",description:"Title of the reset password widget"}),resetPasswordSubHeader:nt.exports.jsx(oe,{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:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordRequirements",defaultMessage:"Password requirements",description:"Heading of password requirements"}),resetPasswordSubmitButton:nt.exports.jsx(oe,{id:"os-auth.reset-password.submitButton",defaultMessage:"Change Password",description:"Text of submit button for reset password"}),lengthCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.lengthCheck",defaultMessage:"8 Character minimum",description:"The error message for the lengthCheck."}),pastPasswordCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.pastPasswordCheck",defaultMessage:"Not identical to last 10 passwords",description:"The error message for the pastPasswordCheck."}),userNameCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.userNameCheck",defaultMessage:"Not the same as account email",description:"The error message for the userNameCheck."}),dictionaryCheck:nt.exports.jsx(oe,{id:"os-auth.reset-password.dictionaryCheck",defaultMessage:"No dictionary passwords",description:"The error message for the dictionaryCheck."}),passwordsNotMatching:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordsNotMatching",defaultMessage:"Passwords not matching",description:"The error message for the passwords not matching."}),invalidTokenOrUsername:nt.exports.jsx(oe,{id:"os-auth.reset-password.invalidTokenOrUsername",defaultMessage:"Error! Missing token or username.",description:"The error message for the missing token or username."}),passwordComplexityCheckSymbols:nt.exports.jsx(oe,{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:nt.exports.jsx(oe,{id:"os-auth.reset-password.passwordComplexityCheckDays",defaultMessage:"Cannot be changed twice within 10 days.",description:"The error message for the days error."})},Lft=(e=!1)=>{var t=window.location.host;if(t.includes("local"))return e?"https://api.stage.us-1.veritone.com/v3/graphql":"https://api.stage.us-1.veritone.com";var t=t.split("."),n=t.findIndex(e=>"dev"===e||"stage"===e);let r="";return r=-1!==n?"veritone"!==t[n+1]?t[n]+"."+t[n+1]:t[n]+".us-1":(n=t.findIndex(e=>"veritone"===e),"aiware2"!==t[n-1]?t[n-1]:"us-1"),e?`https://api.${r}.veritone.com/v3/graphql`:`https://api.${r}.veritone.com`};const Fft=({text:e,subText:t,type:n})=>nt.exports.jsxs(pe,Object.assign({sx:{marginBottom:"30px",textAlign:"center"}},{children:[nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},"data-testid":"os-auth-header-text-"+n},{children:e})),t&&nt.exports.jsx(ae,Object.assign({sx:{fontFamily:"Nunito",fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269",marginTop:"10px",width:"368px"},"data-testid":"os-auth-subheader-text-"+n},{children:t}))]})),Vft=fe()(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"},text:{fontFamily:"Nunito",fontWeight:400,fontSize:"22px",lineHeight:"18px",letterSpacing:"-1.30385e-09px",color:"#2A323C"},subText:{fontFamily:"'Nunito Sans'",fontWeight:400,fontSize:"16px",lineHeight:"22px",textAlign:"center",letterSpacing:"-1.30385e-09px",color:"#5C6269"}}));var Hft,Hue={},Pue=!Fct(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Uft=Qge,Bft=zct,zft=Kct,_ft=Pue,qft=tut("IE_PROTO"),Wft=Object,Zft=Wft.prototype,cue=_ft?Wft.getPrototypeOf:function(e){var t,e=zft(e);return Uft(e,qft)?e[qft]:(t=e.constructor,Bft(t)&&e instanceof t?t.prototype:e instanceof Wft?Zft:null)},Due=Fct,Rue=zct,Gue=cue,Xue=nut,Gft=Qct("iterator"),Kue=!1;[].keys&&("next"in(a=[].keys())?(Mue=Gue(Gue(a)))!==Object.prototype&&(Hft=Mue):Kue=!0);function Jft(e,t,n){(e=e&&!n?e.prototype:e)&&!$ft(e,eht)&&Xft(e,eht,{configurable:!0,value:t})}function Kft(){return this}function Yft(e,t,n,r){return t+=" Iterator",e.prototype=nht(tht,{next:rht(+!r,n)}),iht(e,t,!1),oht[t]=Kft,e}function Qft(){return this}Rue((Hft=null==Hft||Due(function(){var e={};return Hft[Gft].call(e)!==e})?{}:Hft)[Gft])||Xue(Hft,Gft,function(){return this});var zue={IteratorPrototype:Hft,BUGGY_SAFARI_ITERATORS:Kue},Xft=r1e.f,$ft=Qge,eht=Qct("toStringTag"),tht=zue.IteratorPrototype,nht=Jge,rht=Vct,iht=Jft,oht=Hue,aht=zct,sht=String,lht=TypeError,cht=Uge,uht=eut,dht=function(e){if("object"==typeof e||aht(e))return e;throw lht("Can't set "+sht(e)+" as a prototype")},Uue=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,e={};try{(n=cht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return uht(e),dht(t),r?n(e,t):e.__proto__=t,e}}():void 0),pht=dut,ght=Wpe,fht=zct,hht=Yft,mht=cue,vht=Uue,xht=Jft,yht=que,bht=nut,cde=Qct,Cht=Hue,Aht=d1e.PROPER,Iht=d1e.CONFIGURABLE,wht=zue.IteratorPrototype,jht=zue.BUGGY_SAFARI_ITERATORS,Sht=cde("iterator"),Oht="values",kht=Bct,kue=jgt,nde=Hue,vue=ux,jue=r1e.f,tde=function(e,t,n,r,i,o,a){hht(n,t,r);function s(e){if(e===i&&g)return g;if(!jht&&e in d)return d[e];switch(e){case"keys":case Oht:case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}}var l,c,r=t+" Iterator",u=!1,d=e.prototype,p=d[Sht]||d["@@iterator"]||i&&d[i],g=!jht&&p||s(i),f="Array"==t&&d.entries||p;if(f&&(f=mht(f.call(new e)))!==Object.prototype&&f.next&&(mht(f)!==wht&&(vht?vht(f,wht):fht(f[Sht])||bht(f,Sht,Qft)),xht(f,r,!0)),Aht&&i==Oht&&p&&p.name!==Oht&&(Iht?yht(d,"name",Oht):(u=!0,g=function(){return ght(p,this)})),i)if(l={values:s(Oht),keys:o?g:s("keys"),entries:s("entries")},a)for(c in l)!jht&&!u&&c in d||bht(d,c,l[c]);else pht({target:t,proto:!0,forced:jht||u},l);return d[Sht]!==g&&bht(d,Sht,g,{name:i}),Cht[t]=g,l},xde=mtt,Tht="Array Iterator",Eht=vue.set,Nht=vue.getterFor(Tht),mde=tde(Array,"Array",function(e,t){Eht(this,{type:Tht,target:kht(e),index:0,kind:t})},function(){var e=Nht(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Tde=nde.Arguments=nde.Array;if(kue("keys"),kue("values"),kue("entries"),xde&&"values"!==Tde.name)try{jue(Tde,"name",{value:"values"})}catch(e){}function Mht(t,e){if(t){if(t[Vht]!==Uht)try{Fht(t,Vht,Uht)}catch(e){t[Vht]=Uht}if(t[Hht]||Fht(t,Hht,e),Rht[e])for(var n in Lht)if(t[n]!==Lht[n])try{Fht(t,n,Lht[n])}catch(e){t[n]=Lht[n]}}}var Pht,Ade=$ct("span").classList,vde=Ade&&Ade.constructor&&Ade.constructor.prototype,lde=vde===Object.prototype?void 0:vde,Dht=Vpe,Rht={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},hde=lde,Lht=mde,Fht=que,Sde=Qct,Vht=Sde("iterator"),Hht=Sde("toStringTag"),Uht=Lht.values;for(Pht in Rht)Mht(Dht[Pht]&&Dht[Pht].prototype,Pht);Mht(hde,"DOMTokenList");var Bht,zht,_ht,qht,Wht,Zht,Ght,Jht,Nue=dut,Ode=Uge,Kht=Qge,Wue=zct,Yht=p1e,Qht=Zgt,yde=r1e.f,Ude=cut,Xht=Vpe.Symbol,$ht=Xht&&Xht.prototype;function emt(e,a,s,l){return new(s=s||Promise)(function(n,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function i(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,i)}o((l=l.apply(e,a||[])).next())})}!mtt||!Wue(Xht)||"description"in $ht&&void 0===Xht().description||(Bht={},Ude(Pde=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Qht(arguments[0]),t=Yht($ht,this)?new Xht(e):void 0===e?Xht():Xht(e);return""===e&&(Bht[t]=!0),t},Xht),(Pde.prototype=$ht).constructor=Pde,zht="Symbol(test)"==String(Xht("test")),_ht=Ode($ht.toString),qht=Ode($ht.valueOf),Wht=/^Symbol\((.*)\)[^)]+$/,Zht=Ode("".replace),Ght=Ode("".slice),yde($ht,"description",{configurable:!0,get:function(){var e=qht(this),t=_ht(e);return Kht(Bht,e)?"":""===(e=zht?Ght(t,7,-1):Zht(t,Wht,"$1"))?void 0:e}}),Nue({global:!0,constructor:!0,forced:!0},{Symbol:Pde}));const tmt=({onClick:e,text:t,type:n,loading:r,disableButton:i,sx:o={},ref:a,className:s})=>nt.exports.jsx(hEe,Object.assign({color:"primary",variant:"contained",onClick:e,loading:r,ref:a,sx:Object.assign({textTransform:"none",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:600,width:"368px",height:"56px",backgroundColor:"#2C78D4"},o),className:s||void 0,"data-testid":`os-auth--${n}-btn`,disabled:i},{children:t}));function nmt({onBtnClick:e,requiresRestriction:t,disableForm:n=!1,columnView:r=!1,isNewPage:i=!1}){var o=Vft()["classes"],a=ue(jre);const s=ue(Cre);var l=ue(wre);const[c,u]=De.exports.useState(""),[d,p]=De.exports.useState(""),[g,f]=De.exports.useState({[Jht.lengthCheck]:null,[Jht.userNameCheck]:null,[Jht.dictionaryCheck]:null,[Jht.pastPasswordCheck]:null,[Jht.passwordComplexityCheck]:null,[Jht.passwordChangeFrequencyCheck]:null}),[h,m]=De.exports.useState(null);a="loading"===a&&l===One.ResetPassword;const v=ge.exports.isEqual(c,d);l=Object.values(g).includes(!1);var x=()=>{ge.exports.isEmpty(c)||ge.exports.isEmpty(d)||!v||e(c)},y=(De.exports.useEffect(()=>{try{if(s){var e=JSON.parse(s);const t=e["description"],r=function(e,t){var n={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}(e,["description"]);Object.keys(r).forEach(e=>{var t,n;t=e,n=r[e],f(e=>Object.assign(Object.assign({},e),{[t]:n}))}),m(t)}else m(null)}catch(e){m(s)}finally{p("")}},[s]),[{label:Rft.lengthCheck,error:g[Jht.lengthCheck]},{label:Rft.pastPasswordCheck,error:g[Jht.pastPasswordCheck]},{label:Rft.userNameCheck,error:g[Jht.userNameCheck]},{label:Rft.dictionaryCheck,error:g[Jht.dictionaryCheck]},...g[Jht.passwordComplexityCheck]?[{label:Rft.passwordComplexityCheckSymbols,error:!0},{label:Rft.passwordComplexityCheckDays,error:!0}]:[]]),b={fontFamily:"Nunito",lineHeight:"22px"};return nt.exports.jsx("form",Object.assign({onSubmit:e=>{e.preventDefault()}},{children:nt.exports.jsxs(V,Object.assign({container:!0,spacing:i?3:6,mt:i?0:3},{children:[nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:7,xs:12},{children:[nt.exports.jsx(Z6,Object.assign({fullWidth:!0,sx:{mb:6}},{children:nt.exports.jsx(GO,{"data-testid":"rp-password-field",required:!0,type:"password",id:"password",label:"Password",variant:"outlined",autoFocus:!0,value:c,onChange:e=>u(e.target.value),error:l,autoComplete:"off",disabled:n,InputLabelProps:{style:b}})})),nt.exports.jsx(Z6,Object.assign({sx:{fontFamily:"Nunito"},fullWidth:!0},{children:nt.exports.jsx(GO,{"data-testid":"rp-password-confirm-field",required:!0,type:"password",id:"confirm-password",label:"Confirm Password",variant:"outlined",value:d,onChange:e=>p(e.target.value),autoComplete:"off",error:!v&&!!d,helperText:!v&&d&&Rft.passwordsNotMatching,disabled:n,InputLabelProps:{style:b}})})),h&&nt.exports.jsx(cI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:h}))]})),t&&nt.exports.jsxs(V,Object.assign({item:!0,sm:r?12:5,xs:12},{children:[nt.exports.jsx(ae,Object.assign({variant:"h6",className:o.h6},{children:Rft.passwordRequirements})),nt.exports.jsx("ul",Object.assign({className:o.requirements,"data-testid":"rp-requirements-list"},{children:y.map((e,t)=>nt.exports.jsx("li",Object.assign({className:e0e({requirementError:!0===e.error})},{children:e.label}),"pwd-requirement-"+t))}))]})),nt.exports.jsx(V,Object.assign({item:!0,xs:12,justifyContent:"center",display:"flex"},{children:i?nt.exports.jsx(tmt,{onClick:x,loading:a,text:Rft.resetPasswordSubmitButton,type:"reset-pw"}):nt.exports.jsx(hEe,Object.assign({"data-testid":"rp-password-submit-button",variant:"contained",disableElevation:!0,size:"large",className:o.submitButton,onClick:x,loading:a,disabled:n},{children:Rft.resetPasswordSubmitButton}))}))]}))}))}(Bde=Jht=Jht||{}).lengthCheck="lengthCheck",Bde.userNameCheck="userNameCheck",Bde.dictionaryCheck="dictionaryCheck",Bde.pastPasswordCheck="pastPasswordCheck",Bde.passwordComplexityCheck="passwordComplexityCheck",Bde.passwordChangeFrequencyCheck="passwordChangeFrequencyCheck";const rmt=740,imt=400;function omt({resetToken:t,username:n,requiresPasswordRestriction:e=!1,onSuccess:r,organizationInviteId:i,containerWidth:o=rmt,isNewPage:a=!1}){Vft();const s=de(),l=ue(jre),c=ue(wre);De.exports.useEffect(()=>{"success"===l&&c===One.ResetPassword&&null!=r&&r()},[l,c]);var u=ge.exports.isEmpty(t)||ge.exports.isEmpty(n),d=o<=imt||!e;return nt.exports.jsxs(pe,Object.assign({p:a?0:4,id:"reset-password-widget",width:o},{children:[a?nt.exports.jsx(Fft,{text:Rft.resetPasswordTitle,subText:Rft.resetPasswordSubHeader,type:"reset-pw"}):nt.exports.jsxs(nt.exports.Fragment,{children:[nt.exports.jsx(ae,Object.assign({variant:"h1",sx:{textTransform:"initial",fontSize:22,marginBottom:"20px"}},{children:Rft.resetPasswordTitle})),nt.exports.jsx(ae,Object.assign({variant:"body2"},{children:Rft.resetPasswordSubHeader}))]}),u&&nt.exports.jsx(cI,Object.assign({sx:{mt:4},variant:"outlined",severity:"error"},{children:Rft.invalidTokenOrUsername})),nt.exports.jsx(nmt,{onBtnClick:e=>{a?s(Gne({resetToken:t,username:n,password:e,organizationInviteId:i,apiUrl:Lft()})):s(Gne({resetToken:t,username:n,password:e,organizationInviteId:i}))},requiresRestriction:e,disableForm:u,columnView:d,isNewPage:a})]}))}function amt(e,t){if(Smt(t,e))return e;throw Omt("Incorrect invocation")}function smt(e,t){return kmt(e),void 0===t?e:Tmt?Emt(e,t):function(){return e.apply(t,arguments)}}function lmt(e){if(null!=e)return Mmt(e,Dmt)||Mmt(e,"@@iterator")||Pmt[Nmt(e)]}function cmt(e,t){if(t=arguments.length<2?Hmt(e):t,Lmt(t))return Fmt(Rmt(t,e));throw Umt(Vmt(e)+" is not iterable")}function umt(e,t){if(e<t)throw Bmt("Not enough arguments");return e}function dmt(e,t){var n=e.length,r=Qmt(n/2);if(n<8){for(var i,o,a=e,s=t,l=a.length,c=1;c<l;){for(i=a[o=c];o&&0<s(a[o-1],i);)a[o]=a[--o];o!==c++&&(a[o]=i)}return a}for(var u=e,d=dmt(Ymt(e,0,r),t),p=dmt(Ymt(e,r),t),g=t,f=d.length,h=p.length,m=0,v=0;m<f||v<h;)u[m+v]=m<f&&v<h?g(d[m],p[v])<=0?d[m++]:p[v++]:m<f?d[m++]:p[v++];return u}function pmt(e){var t;return e0t?(t=y0t(Xmt,e))&&t.value:Xmt[e]}function gmt(t){try{return S0t(t)}catch(e){return t}}function fmt(e){var t,n=N0t(e,L0t," "),r=4;try{return S0t(n)}catch(e){for(;r;)n=N0t(n,(t=r--,F0t[t-1]||(F0t[t-1]=w0t("((?:%[\\da-f]{2}){"+t+"})","gi"))),gmt);return n}}function hmt(e){return H0t[e]}function mmt(e){return N0t(O0t(e),V0t,hmt)}function vmt(e){this.entries=[],this.url=null,void 0!==e&&(a0t(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===k0t(e,0)?R0t(e,1):e:s0t(e)))}function xmt(){t0t(this,B0t),m0t(this,new vmt(0<arguments.length?arguments[0]:void 0))}var ymt,bmt,Cmt,Amt,Imt,Age=Fct,wmt=Qct("iterator"),Pce=!Age(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),n=e.searchParams,r="";return e.pathname="c%20d",n.forEach(function(e,t){n.delete("b"),r+=t+e}),!n.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==n.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!n[wmt]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}),jmt=nut,Smt=p1e,Omt=TypeError,kmt=Zct,Tmt=zpe,Emt=Uge(Uge.bind),Nmt=YP,Mmt=Gct,Pmt=Hue,Dmt=Qct("iterator"),Rmt=Wpe,Lmt=Zct,Fmt=eut,Vmt=Wct,Hmt=lmt,Umt=TypeError,Bmt=TypeError,zmt=Xct,_mt=r1e,qmt=Vct,Wmt=iut,Zmt=aut,Gmt=function(e,t,n){t=zmt(t);t in e?_mt.f(e,t,qmt(0,n)):e[t]=n},Jmt=Array,Kmt=Math.max,Ymt=function(e,t,n){for(var r=Zmt(e),i=Wmt(t,r),o=Wmt(void 0===n?r:n,r),a=Jmt(Kmt(o-i,0)),s=0;i<o;i++,s++)Gmt(a,s,e[i]);return a.length=s,a},Qmt=Math.floor,qde=dut,Xmt=Vpe,$mt=Wpe,Zde=Uge,e0t=mtt,Wde=Pce,Cge=nut,bge=function(e,t,n){for(var r in t)jmt(e,r,t[r],n);return e},yge=Jft,$ue=Yft,Sge=ux,t0t=amt,xge=zct,n0t=Qge,r0t=smt,i0t=YP,o0t=eut,a0t=_ct,s0t=Zgt,l0t=Jge,c0t=Vct,u0t=cmt,d0t=lmt,p0t=umt,g0t=dmt,Lce=Qct("iterator"),f0t="URLSearchParams",h0t=f0t+"Iterator",m0t=Sge.set,v0t=Sge.getterFor(f0t),x0t=Sge.getterFor(h0t),y0t=Object.getOwnPropertyDescriptor,b0t=pmt("fetch"),C0t=pmt("Request"),A0t=pmt("Headers"),I0t=C0t&&C0t.prototype,Gde=A0t&&A0t.prototype,w0t=Xmt.RegExp,j0t=Xmt.TypeError,S0t=Xmt.decodeURIComponent,O0t=Xmt.encodeURIComponent,k0t=Zde("".charAt),T0t=Zde([].join),E0t=Zde([].push),N0t=Zde("".replace),M0t=Zde([].shift),P0t=Zde([].splice),D0t=Zde("".split),R0t=Zde("".slice),L0t=/\+/g,F0t=Array(4),V0t=/[!'()~]|%20/g,H0t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},U0t=$ue(function(e,t){m0t(this,{type:h0t,iterator:u0t(v0t(e).entries),kind:t})},"Iterator",function(){var e=x0t(this),t=e.kind,e=e.iterator.next(),n=e.value;return e.done||(e.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),e},!0),B0t=(vmt.prototype={type:f0t,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,a,s=d0t(e);if(s)for(n=(t=u0t(e,s)).next;!(r=$mt(n,t)).done;){if(i=(r=u0t(o0t(r.value))).next,(o=$mt(i,r)).done||(a=$mt(i,r)).done||!$mt(i,r).done)throw j0t("Expected sequence with length 2");E0t(this.entries,{key:s0t(o.value),value:s0t(a.value)})}else for(var l in e)n0t(e,l)&&E0t(this.entries,{key:l,value:s0t(e[l])})},parseQuery:function(e){if(e)for(var t,n=D0t(e,"&"),r=0;r<n.length;)(t=n[r++]).length&&(t=D0t(t,"="),E0t(this.entries,{key:fmt(M0t(t)),value:fmt(T0t(t,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],E0t(n,mmt(e.key)+"="+mmt(e.value));return T0t(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}},xmt.prototype),npe=(bge(B0t,{append:function(e,t){p0t(arguments.length,2);var n=v0t(this);E0t(n.entries,{key:s0t(e),value:s0t(t)}),n.updateURL()},delete:function(e){p0t(arguments.length,1);for(var t=v0t(this),n=t.entries,r=s0t(e),i=0;i<n.length;)n[i].key===r?P0t(n,i,1):i++;t.updateURL()},get:function(e){p0t(arguments.length,1);for(var t=v0t(this).entries,n=s0t(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){p0t(arguments.length,1);for(var t=v0t(this).entries,n=s0t(e),r=[],i=0;i<t.length;i++)t[i].key===n&&E0t(r,t[i].value);return r},has:function(e){p0t(arguments.length,1);for(var t=v0t(this).entries,n=s0t(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){p0t(arguments.length,1);for(var n,r=v0t(this),i=r.entries,o=!1,a=s0t(e),s=s0t(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?P0t(i,l--,1):(o=!0,n.value=s));o||E0t(i,{key:a,value:s}),r.updateURL()},sort:function(){var e=v0t(this);g0t(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=v0t(this).entries,r=r0t(e,1<arguments.length?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new U0t(this,"keys")},values:function(){return new U0t(this,"values")},entries:function(){return new U0t(this,"entries")}},{enumerable:!0}),Cge(B0t,Lce,B0t.entries,{name:"entries"}),Cge(B0t,"toString",function(){return v0t(this).serialize()},{enumerable:!0}),yge(xmt,f0t),qde({global:!0,constructor:!0,forced:!Wde},{URLSearchParams:xmt}),!Wde&&xge(A0t)&&(ymt=Zde(Gde.has),bmt=Zde(Gde.set),Cmt=function(e){if(a0t(e)){var t,n=e.body;if(i0t(n)===f0t)return t=e.headers?new A0t(e.headers):new A0t,ymt(t,"content-type")||bmt(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),l0t(e,{body:c0t(0,s0t(n)),headers:c0t(0,t)})}return e},xge(b0t)&&qde({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return b0t(e,1<arguments.length?Cmt(arguments[1]):{})}}),xge(C0t))&&((I0t.constructor=Kde=function(e){return t0t(this,I0t),new C0t(e,1<arguments.length?Cmt(arguments[1]):{})}).prototype=I0t,qde({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Kde})),Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}),z0t=Wpe,_0t=eut,q0t=Uct,W0t=npe,Z0t=Zgt,G0t=Gct,J0t=Qgt,K0t=(Jgt("search",function(r,i,o){return[function(e){var t=q0t(this),n=null==e?void 0:G0t(e,r);return n?z0t(n,e,t):new RegExp(e)[r](Z0t(t))},function(e){var t=_0t(this),e=Z0t(e),n=o(i,t,e);return n.done?n.value:(n=t.lastIndex,W0t(n,0)||(t.lastIndex=0),e=J0t(t,e),W0t(t.lastIndex,n)||(t.lastIndex=n),null===e?-1:e.index)}]}),Wpe),Y0t=eut,Q0t=out,X0t=Zgt,$0t=Uct,e2t=Gct,t2t=Ygt,n2t=Qgt;Jgt("match",function(r,s,l){return[function(e){var t=$0t(this),n=null==e?void 0:e2t(e,r);return n?K0t(n,e,t):new RegExp(e)[r](X0t(t))},function(e){var t=Y0t(this),n=X0t(e),e=l(s,t,n);if(e.done)return e.value;if(!t.global)return n2t(t,n);for(var r=t.unicode,i=[],o=t.lastIndex=0;null!==(a=n2t(t,n));){var a=X0t(a[0]);""===(i[o]=a)&&(t.lastIndex=t2t(n,Q0t(t.lastIndex),r)),o++}return 0===o?null:i}]});const r2t={emailLabel:nt.exports.jsx(oe,{id:"os-auth-email-input-label",defaultMessage:"Email",description:"Label Email"}),continueLabel:nt.exports.jsx(oe,{id:"os-auth-email-continue-button",defaultMessage:"Continue",description:"Continue Button"}),emailErrorState:nt.exports.jsx(oe,{id:"os-auth-email-input-field-error-state-label",defaultMessage:"This is an invalid email",description:"Email error state label"}),emptyEmailErrorMsg:nt.exports.jsx(oe,{id:"os-auth-empty-email-input-field-error-state-label",defaultMessage:"Email is required",description:"Empty email error state label"})},i2t=e=>e.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),o2t=fe()(()=>({emailWrapper:{display:"flex",flexDirection:"column",alignItems:"center",fontFamily:"Nunito","& button":{textTransform:"none",marginTop:"20px",fontSize:"18px",lineHeight:"24px",fontFamily:"Nunito",fontWeight:"600"},"& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"},"&.Mui-error.Mui-focused fieldset":{borderColor:"#d32f2f"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-root":{color:"#9CA8B4"},"& .Sdk-Mui-focused .MuiInputLabel-outlined":{color:"#9CA8B4"},"& .Sdk-Mui-error":{color:"#d32f2f !important"}},emailField:{width:"368px",height:"52px"},continueBtn:{width:"368px",height:"56px"}})),a2t=({onNextStep:e,email:t,setEmail:n,isLoading:r,buttonText:i,disableButton:o})=>{var a=o2t()["classes"];const[s,l]=De.exports.useState(!1);var{emailLabel:c,emailErrorState:u,emptyEmailErrorMsg:d}=r2t,u=s?t?u:d:c;const p=()=>{i2t(t)&&e?(l(!1),e()):l(!0)};return nt.exports.jsxs(pe,Object.assign({className:a.emailWrapper},{children:[nt.exports.jsx(GO,{id:"username","data-testid":"os-auth-email-input-field",label:u,InputProps:{type:"email"},variant:"outlined",value:t,autoComplete:"username",autoFocus:!0,className:a.emailField,error:s,onChange:e=>{e=e.target.value;s&&l(!1),n(e)},onKeyDown:e=>{"Enter"===e.key&&p()}}),i&&nt.exports.jsx(hEe,Object.assign({color:"primary",variant:"contained",onClick:p,className:a.continueBtn,"data-testid":"os-auth-email-continue-btn",loading:r,disabled:o},{children:i}))]}))},s2t=fe()(()=>({passwordWrapper:{fontFamily:"Nunito","& input":{fontFamily:"Nunito",lineHeight:"22px",color:"#2A323C"},"& .Sdk-MuiOutlinedInput-root":{"&:hover fieldset":{border:"1px solid #DADFE8"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8"}},"& .Sdk-MuiFormControl-root .MuiInputLabel-root.Mui-focused":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiInputLabel-outlined":{color:"#9CA8B4",fontFamily:"Nunito"},"& .Sdk-MuiFormLabel-root .MuiInputLabel-rootd":{color:"#9CA8B4"}}})),l2t=({password:e,onPasswordChange:t,errorMessage:n,onPressEnter:r,autoFocus:i=!0})=>{var o=s2t()["classes"];const[a,s]=De.exports.useState(!1),[l,c]=De.exports.useState("Password");De.exports.useEffect(()=>{n?c(n):c("Password")},[n]);return nt.exports.jsx(pe,Object.assign({className:o.passwordWrapper},{children:nt.exports.jsxs(Z6,Object.assign({sx:{width:"100%"},variant:"outlined"},{children:[nt.exports.jsx(J9,Object.assign({htmlFor:"outlined-adornment-password",style:{color:n?"#d32f2f":"#9CA8B4"}},{children:l})),nt.exports.jsx(P8,{id:"outlined-adornment-password","data-testid":"os-auth-password-input-field",type:a?"text":"password",onChange:e=>{e=e.target.value;t(e)},value:e,autoFocus:i,autoComplete:"password",endAdornment:nt.exports.jsx(q9,Object.assign({position:"end"},{children:nt.exports.jsx(le,Object.assign({"aria-label":"toggle password visibility",onClick:()=>s(e=>!e),onMouseDown:e=>{e.preventDefault()},edge:"end"},{children:a?nt.exports.jsx(Aut,{}):nt.exports.jsx(Cut,{})}))})),error:!!n,label:l,onKeyDown:e=>{"Enter"===e.key&&r()}})]}))}))},c2t=fe()(e=>({selectWrapper:{position:"absolute",right:"40px",top:"26px"},selectMenu:{marginTop:e.spacing(1),width:"164px",borderRadius:"10px !important",ul:{padding:"5px"},li:{padding:"10px 8px",borderRadius:"4px"}}})),u2t=[{label:"aiWARE - US",value:"https://aiware2.us-1.veritone.com/ui/auth/login"},{label:"aiWARE - CA",value:"https://aiware2.ca-1.veritone.com/ui/auth/login"},{label:"aiWARE - UK",value:"https://aiware2.uk-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 1",value:"https://aiware2.us-gov-1.veritone.com/ui/auth/login"},{label:"aiWARE - US Gov 2",value:"https://aiware2.us-gov-2.veritone.com/ui/auth/login"},{label:"aiWARE - Deloitte",value:"https://aiware2.us-2.veritone.com/ui/auth/login"}],d2t=({handleDestination:t})=>{var e=c2t()["classes"];const[n,r]=De.exports.useState(u2t[0].value);return nt.exports.jsx(pe,Object.assign({className:e.selectWrapper},{children:nt.exports.jsx(k7,Object.assign({name:"destination-dropdown",value:n,onChange:e=>{e=e.target.value;r(e),t(e)},renderValue:e=>{return nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",gap:.2}},{children:[nt.exports.jsx(Jue,{sx:{width:"18px",height:"18px",color:"#555F7C"}}),nt.exports.jsx("span",{children:(t=e,null==(e=u2t.find(e=>e.value===t))?void 0:e.label)})]}));var t},sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",width:"164px",height:"36px","& .Sdk-MuiSelect-select":{paddingLeft:"8px"},"&.MuiOutlinedInput-root":{"& fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&:hover fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"},"&.Mui-focused fieldset":{border:"1px solid #DADFE8",borderRadius:"30px"}}},MenuProps:{classes:{paper:e.selectMenu}}},{children:u2t.map(e=>nt.exports.jsx(x8,Object.assign({value:e.value,sx:{color:"#2A323C",fontFamily:"Nunito",fontSize:"12px",lineHeight:"16px",fontWeight:"400",letterSpacing:"-1.30385e-09px"}},{children:e.label}),e.label))}))}))};function p2t(){return(p2t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g2t(e){return De.exports.createElement("svg",p2t({width:270,height:48,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Amt=Amt||De.exports.createElement("g",{clipPath:"url(#aiware_logo_svg__a)"},De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M0 30.967c0-.99.173-1.906.52-2.751a7.888 7.888 0 0 1 1.453-2.28 6.677 6.677 0 0 1 2.18-1.521 6.167 6.167 0 0 1 2.63-.58h17.583v-7.457H6.897V9.247H27.591l1.126 2.238 1.267 2.356 1.2 2.537V47.8h-6.818V40.67l-.857 1.883-1.267 2.798-1.126 2.45H6.784c-.923 0-1.8-.18-2.63-.543a7.49 7.49 0 0 1-2.181-1.52 7.888 7.888 0 0 1-1.454-2.28A7.463 7.463 0 0 1 0 40.669v-9.702Zm6.784 9.702h17.582v-9.702H6.784v9.702ZM49.735 11.603V47.8h-6.818V11.603h6.818ZM42.57 0h7.51v7.421h-7.51V0Z",fill:"#307FE2"}),De.exports.createElement("path",{d:"M74.734 47.837 61.658 0h6.538l10.142 38.063L88.448 0h6.539l10.11 38.063L115.239 0h6.538l-13.076 47.837h-7.176l-9.791-35.861-9.823 35.86h-7.177ZM147.26 0l17.637 47.837h-6.538l-2.025-5.505-2.025-5.504-2.52-6.838-2.54 6.838h-15.575l-4.051 11.009h-6.538L140.722 0h6.538Zm-11.099 29.99h15.628l-7.782-21.083-7.846 21.083ZM208.879 17.08c0 6.672-2.722 10.474-8.165 11.409l8.611 19.348h-7.24l-8.483-19.115h-14.321v19.115h-6.538V0h25.037c7.399 0 11.099 3.88 11.099 11.642v5.438Zm-29.598 4.803h18.148c1.743 0 2.998-.4 3.763-1.2.766-.801 1.149-2.113 1.149-3.937v-4.77c0-1.824-.383-3.136-1.149-3.937-.765-.8-2.02-1.2-3.763-1.2h-18.148v15.044ZM219.818 0h33.329v6.839h-26.791v13.677h22.868v6.838h-22.868v13.644h26.791v6.839h-33.329V0ZM257.019 41.225h4.73v.884h-1.942v5.302h-.845v-5.302h-1.943v-.884Zm8.797 6.186-2.206-4.534v4.534h-.846v-6.186h.924l2.252 4.659 2.256-4.659h.919v6.186h-.841v-4.534l-2.207 4.534h-.251Z",fill:"#333F48"})),Imt=Imt||De.exports.createElement("defs",null,De.exports.createElement("clipPath",{id:"aiware_logo_svg__a"},De.exports.createElement("path",{fill:"#fff",d:"M0 0h270v48H0z"}))))}var f2t,h2t,m2t;function v2t(){return(v2t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function x2t(e){return De.exports.createElement("svg",v2t({width:180,height:34,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),f2t=f2t||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.626 0 0 13.076 12.175 34h13.319L5.626 0ZM21.703 0l5.164 8.86L32.044 0h-10.34Z",fill:"#728FBE"}),h2t=h2t||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.044 0 12.176 34h13.318L37.67 13.076 32.044 0Z",fill:"#325491"}),m2t=m2t||De.exports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M161.768 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952h-11.175Zm-5.114-1.952V26.06h-2.36L143.2 10.904V26.06h-2.034V8.111h2.36l11.094 15.102V8.111h2.034Zm-27.569 16.187c2.133 0 3.86-.696 5.181-2.088 1.265-1.338 1.898-3.046 1.898-5.124 0-2.08-.633-3.787-1.898-5.125-1.321-1.392-3.048-2.088-5.181-2.088-2.134 0-3.861.696-5.181 2.088-1.266 1.338-1.899 3.046-1.899 5.125s.633 3.786 1.899 5.124c1.32 1.392 3.047 2.088 5.181 2.088Zm0-16.404c2.676 0 4.873.895 6.591 2.684 1.682 1.736 2.523 3.905 2.523 6.508 0 2.602-.841 4.772-2.523 6.507-1.718 1.79-3.915 2.684-6.591 2.684-2.677 0-4.874-.895-6.592-2.684-1.681-1.735-2.522-3.905-2.522-6.507 0-2.603.841-4.772 2.522-6.508 1.718-1.79 3.915-2.684 6.592-2.684Zm-9.676 2.17h-6.266V26.06h-2.034V10.063h-6.266V8.111h14.566v1.952ZM99.663 26.06h2.035V8.11h-2.035v17.95ZM84.701 16.97V9.955h4.963c2.743 0 4.134 1.18 4.134 3.507 0 2.326-1.39 3.506-4.135 3.506h-4.962Zm6.956 1.647.193-.05c1.255-.334 2.256-.95 2.974-1.833.717-.882 1.08-1.983 1.08-3.271 0-1.638-.568-2.954-1.688-3.91-1.127-.959-2.65-1.445-4.525-1.445H82.71v17.95H84.7v-7.24h4.726l5.13 7.24h2.364l-5.264-7.44ZM68.577 10.063v6.02h9.982v1.979h-9.982v6.046h11.175v1.952h-13.21V8.111h13.21v1.952H68.577ZM63.942 8.111l-7.687 17.95h-2.333L46.236 8.11h2.224l6.629 15.645L61.717 8.11h2.225ZM176.505 24.727h.236c.276 0 .499-.092.499-.315 0-.197-.144-.328-.459-.328-.132 0-.224.013-.276.026v.617Zm-.013 1.207h-.499v-2.152c.197-.026.472-.066.827-.066.407 0 .591.066.735.171a.54.54 0 0 1 .224.46c0 .262-.197.432-.447.511v.026c.21.066.315.237.381.526.066.328.118.446.157.524h-.525c-.065-.078-.105-.262-.171-.524-.039-.224-.17-.329-.446-.329h-.236v.854Zm-1.327-1.115c0 .958.723 1.72 1.681 1.72.933.012 1.641-.762 1.641-1.707 0-.958-.708-1.732-1.667-1.732-.932 0-1.655.774-1.655 1.719Zm3.874 0c0 1.207-.972 2.165-2.206 2.165s-2.219-.958-2.219-2.165.985-2.152 2.232-2.152c1.221 0 2.193.944 2.193 2.152Z",fill:"#142E44"}))}const y2t=({showLogoInFooter:e})=>nt.exports.jsxs(pe,Object.assign({sx:{textAlign:"center",marginTop:"20px"},"data-testid":"aiware-auth-footer"},{children:[e&&nt.exports.jsx(x2t,{}),nt.exports.jsxs(ae,Object.assign({sx:{marginBottom:"18px",marginTop:"50px",fontFamily:"Nunito",fontSize:"10px",lineHeight:"16px",color:"#5C6269"}},{children:["© ",(new Date).getFullYear()," AiWARE, All Rights Reserved."," ",nt.exports.jsxs("a",Object.assign({href:"https://www.veritone.com/terms",style:{color:"#0C53B0",textDecoration:"none"}},{children:["Terms of Service"," "]}))]}))]})),b2t=({children:e,showLogoInFooter:t=!0})=>nt.exports.jsx(Q4,{children:nt.exports.jsxs(pe,Object.assign({sx:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",height:"100vh"}},{children:[nt.exports.jsxs(pe,{children:[nt.exports.jsx(pe,Object.assign({sx:{marginTop:"178px",marginBottom:"50px",textAlign:"center"}},{children:nt.exports.jsx(g2t,{})})),e]}),nt.exports.jsx(y2t,{showLogoInFooter:t})]}))}),C2t=fe()(()=>({btnWrapper:{display:"flex",alignItems:"center",width:"100%",justifyContent:"center",flexDirection:"column"},openIdLogo:{width:"24px",height:"24px",marginRight:"8px"},openIdBtn:{"&.MuiButton-root":{width:"368px",marginTop:"20px",height:"56px",border:"1px solid #DADFE8",borderRadius:"4px",fontFamily:"Nunito",fontStyle:"normal",fontWeight:"600",fontSize:"18px",lineHeight:"24px",letterSpacing:"-1.30385e-09px",textTransform:"none","&:hover, &:focus":{border:"1px solid #DADFE8",color:"#2A323C"}}}})),A2t=({openIdItems:e})=>{const n=C2t()["classes"];return nt.exports.jsx(pe,Object.assign({className:n.btnWrapper},{children:nt.exports.jsx(nt.exports.Fragment,{children:e&&e.map((t,e)=>{return nt.exports.jsxs(se,Object.assign({variant:"outlined","data-testid":"os-auth-openId-button-"+e,className:n.openIdBtn,onClick:()=>{var e;e=t.loginUrl,window.location.href=e},sx:{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:t.loginButtonStyle&&t.loginButtonStyle.btnColor?t.loginButtonStyle.btnColor:"#FFFFFF"}}},{children:[t.loginButtonStyle&&t.loginButtonStyle.btnLogo&&nt.exports.jsx("img",{className:n.openIdLogo,alt:"icon",src:t.loginButtonStyle.btnLogo,"data-testid":"os-auth-openId-image-"+e}),nt.exports.jsx("span",Object.assign({"data-testid":"os-auth-openId-name-"+e,style:{marginTop:"3px",color:t.loginButtonStyle&&t.loginButtonStyle.btnTextColor?t.loginButtonStyle.btnTextColor:"#2A323C"}},{children:(null==t?void 0:t.name)&&"Login with "+(20<(e=t.name).length?e.substring(0,20)+"...":e)}))]}),t.connectId)})})}))};function I2t(e){var e=O2t(e),t=k2t.f;T2t&&e&&!e[E2t]&&t(e,E2t,{configurable:!0,get:function(){return this}})}function w2t(){}function j2t(e){if(!N2t(e))return!1;try{return R2t(w2t,D2t,e),!0}catch(e){return!1}}function S2t(e){if(!N2t(e))return!1;switch(M2t(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return V2t||!!F2t(L2t,P2t(e))}catch(e){return!0}}var lpe="process"==Hct(Vpe.process),O2t=qct,k2t=r1e,T2t=mtt,E2t=Qct("species"),cpe=Uge,Qde=Fct,N2t=zct,M2t=YP,P2t=a1e,D2t=[],R2t=qct("Reflect","construct"),L2t=/^\s*(?:class|function)\b/,F2t=cpe(L2t.exec),V2t=!L2t.exec(w2t);S2t.sham=!0;var H2t,U2t,B2t=!R2t||Qde(function(){var e;return j2t(j2t.call)||!j2t(Object)||!j2t(function(){e=!0})||e})?S2t:j2t,z2t=Wct,_2t=TypeError,q2t=eut,W2t=function(e){if(B2t(e))return e;throw _2t(z2t(e)+" is not a constructor")},Z2t=Qct("species"),dpe=Uge([].slice),$de=/(?:ipad|iphone|ipod).*applewebkit/i.test(i),G2t=Vpe,J2t=sue,ape=smt,K2t=zct,Y2t=Qge,spe=Fct,Q2t=Ice,X2t=dpe,$2t=$ct,evt=umt,fpe=$de,Nce=lpe,Yde=G2t.setImmediate,Oue=G2t.clearImmediate,tvt=G2t.process,nvt=G2t.Dispatch,rvt=G2t.Function,ype=G2t.MessageChannel,ivt=G2t.String,ovt=0,avt={},svt="onreadystatechange";try{H2t=G2t.location}catch(e){}function lvt(e){return function(){jvt(e)}}function cvt(e){jvt(e.data)}function uvt(e){G2t.postMessage(ivt(e),H2t.protocol+"//"+H2t.host)}function dvt(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function pvt(){this.head=null,this.tail=null}function gvt(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=e,r=t}),this.resolve=Vvt(n),this.reject=Vvt(r)}function fvt(e,t){var n,r,i,o,a=t.value,s=t.state==pxt,l=s?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{l?(s||(t.rejection===hxt&&(o=t,Bvt(Gvt,Uvt,function(){var e=o.facade;Hvt?axt.emit("rejectionHandled",e):xxt(dxt,e,o.value)})),t.rejection=fxt),!0===l?n=a:(d&&d.enter(),n=l(a),d&&(d.exit(),i=!0)),n===e.promise?u(ixt("Promise-chain cycle")):(r=mxt(n))?Bvt(r,n,c,u):c(n)):u(a)}catch(e){d&&!i&&d.exit(),u(e)}}var hvt,mvt,vvt,xvt,yvt,bvt,Cvt,Avt,Ivt,wvt,jvt=function(e){var t;Y2t(avt,e)&&(t=avt[e],delete avt[e],t())},vpe=(Yde&&Oue||(Yde=function(e){evt(arguments.length,1);var t=K2t(e)?e:rvt(e),n=X2t(arguments,1);return avt[++ovt]=function(){J2t(t,void 0,n)},U2t(ovt),ovt},Oue=function(e){delete avt[e]},Nce?U2t=function(e){tvt.nextTick(lvt(e))}:nvt&&nvt.now?U2t=function(e){nvt.now(lvt(e))}:ype&&!fpe?(xpe=(hpe=new ype).port2,hpe.port1.onmessage=cvt,U2t=ape(xpe.postMessage,xpe)):G2t.addEventListener&&K2t(G2t.postMessage)&&!G2t.importScripts&&H2t&&"file:"!==H2t.protocol&&!spe(uvt)?(U2t=uvt,G2t.addEventListener("message",cvt,!1)):U2t=svt in $2t("script")?function(e){Q2t.appendChild($2t("script"))[svt]=function(){Q2t.removeChild(this),jvt(e)}}:function(e){setTimeout(lvt(e),0)}),{set:Yde,clear:Oue}),Ope=Vpe,Mpe=/ipad|iphone|ipod/i.test(i)&&void 0!==Ope.Pebble,Dde=/web0s(?!.*chrome)/i.test(i),kpe=Vpe,ede=smt,H$e=Gce.f,Svt=vpe.set,lue=$de,s=Mpe,Jpe=Dde,Ovt=lpe,nge=kpe.MutationObserver||kpe.WebKitMutationObserver,Oge=kpe.document,kvt=kpe.process,Rde=kpe.Promise,ppe=H$e(kpe,"queueMicrotask"),$pe=ppe&&ppe.value,Hpe=($pe||(hvt=function(){var e,t;for(Ovt&&(e=kvt.domain)&&e.exit();mvt;){t=mvt.fn,mvt=mvt.next;try{t()}catch(e){throw mvt?xvt():vvt=void 0,e}}vvt=void 0,e&&e.enter()},xvt=lue||Ovt||Jpe||!nge||!Oge?!s&&Rde&&Rde.resolve?((Npe=Rde.resolve(void 0)).constructor=Rde,Cvt=ede(Npe.then,Npe),function(){Cvt(hvt)}):Ovt?function(){kvt.nextTick(hvt)}:(Svt=ede(Svt,kpe),function(){Svt(hvt)}):(yvt=!0,bvt=Oge.createTextNode(""),new nge(hvt).observe(bvt,{characterData:!0}),function(){bvt.data=yvt=!yvt})),$pe||function(e){e={fn:e,next:void 0};vvt&&(vvt.next=e),mvt||(mvt=e,xvt()),vvt=e}),Tvt=Vpe,Lpe=(pvt.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},pvt),Rpe=Vpe.Promise,Bpe="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Gpe=!Bpe&&!lpe&&"object"==typeof window&&"object"==typeof document,gge=Vpe,Evt=Rpe,lge=zct,pge=l1e,Nvt=a1e,X$e=Qct,Mvt=Gpe,Pvt=Bpe,Dvt=Jde,Rvt=(Evt&&Evt.prototype,X$e("species")),Lvt=!1,Fvt=lge(gge.PromiseRejectionEvent),Fpe={CONSTRUCTOR:pge("Promise",function(){var e=Nvt(Evt),t=e!==String(Evt);if(!t&&66===Dvt)return!0;if(!Dvt||Dvt<51||!/native code/.test(e)){var e=new Evt(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((e.constructor={})[Rvt]=n,!(Lvt=e.then(function(){})instanceof n))return!0}return!t&&(Mvt||Pvt)&&!Fvt}),REJECTION_EVENT:Fvt,SUBCLASSING:Lvt},Dpe={},Vvt=Zct,Fge=(Dpe.f=function(e){return new gvt(e)},dut),Hvt=lpe,Uvt=Vpe,Bvt=Wpe,Dge=nut,Rge=Uue,Bge=Jft,Vge=I2t,zvt=Zct,_vt=zct,qvt=_ct,Wvt=amt,Zvt=function(e,t){var e=q2t(e).constructor;return void 0===e||null==(e=q2t(e)[Z2t])?t:W2t(e)},Gvt=vpe.set,Jvt=Hpe,Kvt=function(e,t){var n=Tvt.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},Yvt=dvt,Qvt=Lpe,Zpe=ux,oge=Rpe,Fue=Dpe,Xvt="Promise",qge=Fpe.CONSTRUCTOR,$vt=Fpe.REJECTION_EVENT,Ede=Fpe.SUBCLASSING,ext=Zpe.getterFor(Xvt),txt=Zpe.set,rde=oge&&oge.prototype,nxt=oge,rxt=rde,ixt=Uvt.TypeError,oxt=Uvt.document,axt=Uvt.process,sxt=Fue.f,lxt=sxt,cxt=!!(oxt&&oxt.createEvent&&Uvt.dispatchEvent),uxt="unhandledrejection",dxt="rejectionhandled",pxt=1,gxt=2,fxt=1,hxt=2,mxt=function(e){var t;return!(!qvt(e)||!_vt(t=e.then))&&t},vxt=function(n,i){n.notified||(n.notified=!0,Jvt(function(){for(var e,r,t=n.reactions;e=t.get();)fvt(e,n);n.notified=!1,i&&!n.rejection&&(r=n,Bvt(Gvt,Uvt,function(){var e=r.facade,t=r.value,n=yxt(r);if(n&&(n=Yvt(function(){Hvt?axt.emit("unhandledRejection",t,e):xxt(uxt,e,t)}),r.rejection=Hvt||yxt(r)?hxt:fxt,n.error))throw n.value}))}))},xxt=function(e,t,n){var r;cxt?((r=oxt.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Uvt.dispatchEvent(r)):r={promise:t,reason:n},!$vt&&(t=Uvt["on"+e])?t(r):e===uxt&&Kvt("Unhandled promise rejection",n)},yxt=function(e){return e.rejection!==fxt&&!e.parent},bxt=function(t,n,r){return function(e){t(n,e,r)}},Cxt=function(e,t,n){e.done||(e.done=!0,(e=n?n:e).value=t,e.state=gxt,vxt(e,!0))},Axt=function(n,e,t){if(!n.done){n.done=!0,t&&(n=t);try{if(n.facade===e)throw ixt("Promise can't be resolved itself");var r=mxt(e);r?Jvt(function(){var t={done:!1};try{Bvt(r,e,bxt(Axt,t,n),bxt(Cxt,t,n))}catch(e){Cxt(t,e,n)}}):(n.value=e,n.state=pxt,vxt(n,!1))}catch(e){Cxt({done:!1},e,n)}}};if(qge&&(rxt=(nxt=function(e){Wvt(this,rxt),zvt(e),Bvt(Avt,this);var t=ext(this);try{e(bxt(Axt,t),bxt(Cxt,t))}catch(e){Cxt(t,e)}}).prototype,(Avt=function(e){txt(this,{type:Xvt,done:!1,notified:!1,parent:!1,reactions:new Qvt,rejection:!1,state:0,value:void 0})}).prototype=Dge(rxt,"then",function(e,t){var n=ext(this),r=sxt(Zvt(this,nxt));return n.parent=!0,r.ok=!_vt(e)||e,r.fail=_vt(t)&&t,r.domain=Hvt?axt.domain:void 0,0==n.state?n.reactions.add(r):Jvt(function(){fvt(r,n)}),r.promise}),Ivt=function(){var e=new Avt,t=ext(e);this.promise=e,this.resolve=bxt(Axt,t),this.reject=bxt(Cxt,t)},Fue.f=sxt=function(e){return e===nxt||void 0===e?new Ivt:lxt(e)},_vt(oge))&&rde!==Object.prototype){wvt=rde.then,Ede||Dge(rde,"then",function(e,t){var n=this;return new nxt(function(e,t){Bvt(wvt,n,e,t)}).then(e,t)},{unsafe:!0});try{delete rde.constructor}catch(e){}Rge&&Rge(rde,rxt)}Fge({global:!0,constructor:!0,wrap:!0,forced:qge},{Promise:nxt}),Bge(nxt,Xvt,!1),Vge(Xvt);function Ixt(e,t){this.stopped=e,this.result=t}function wxt(e,t,n){function r(e){return o&&Uxt(o,"normal",e),new Ixt(!0,e)}function i(e){return p?(Pxt(e),h?m(e[0],e[1],r):m(e[0],e[1])):h?m(e,r):m(e)}var o,a,s,l,c,u,d=n&&n.that,p=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=Nxt(t,d);if(g)o=e.iterator;else if(f)o=e;else{if(!(n=Hxt(e)))throw Bxt(Dxt(e)+" is not iterable");if(Rxt(n)){for(a=0,s=Lxt(e);a<s;a++)if((l=i(e[a]))&&Fxt(zxt,l))return l;return new Ixt(!1)}o=Vxt(e,n)}for(c=(g?e:o).next;!(u=Mxt(c,o)).done;){try{l=i(u.value)}catch(e){Uxt(o,"throw",e)}if("object"==typeof l&&l&&Fxt(zxt,l))return l}return new Ixt(!1)}var jxt=Hue,Sxt=Qct("iterator"),Oxt=Array.prototype,kxt=Wpe,Txt=eut,Ext=Gct,Nxt=smt,Mxt=Wpe,Pxt=eut,Dxt=Wct,Rxt=function(e){return void 0!==e&&(jxt.Array===e||Oxt[Sxt]===e)},Lxt=aut,Fxt=p1e,Vxt=cmt,Hxt=lmt,Uxt=function(e,t,n){var r,i;Txt(e);try{if(!(r=Ext(e,"return"))){if("throw"===t)throw n;return n}r=kxt(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Txt(r),n},Bxt=TypeError,zxt=Ixt.prototype,_xt=Qct("iterator"),qxt=!1;try{var Wxt=0,Zxt={next:function(){return{done:!!Wxt++}},return:function(){qxt=!0}};Zxt[_xt]=function(){return this},Array.from(Zxt,function(){throw 2})}catch(e){}var Gxt=Rpe,_ge=function(e,t){if(!t&&!qxt)return!1;var n=!1;try{var r={};r[_xt]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Jxt=Fpe.CONSTRUCTOR||!_ge(function(e){Gxt.all(e).then(void 0,function(){})}),Kxt=Wpe,Yxt=Zct,Qxt=Dpe,Xxt=dvt,$xt=wxt,eyt=(dut({target:"Promise",stat:!0,forced:Jxt},{all:function(e){var s=this,t=Qxt.f(s),l=t.resolve,c=t.reject,n=Xxt(function(){var r=Yxt(s.resolve),i=[],o=0,a=1;$xt(e,function(e){var t=o++,n=!1;a++,Kxt(r,s,e).then(function(e){n||(n=!0,i[t]=e,--a)||l(i)},c)}),--a||l(i)});return n.error&&c(n.value),t.promise}}),dut),zge=Rpe,Yge=qct,Hge=zct,t1e=nut,n1e=zge&&zge.prototype;eyt({target:"Promise",proto:!0,forced:Fpe.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),Hge(zge)&&(Kge=Yge("Promise").prototype.catch,n1e.catch!==Kge)&&t1e(n1e,"catch",Kge,{unsafe:!0});var tyt=Wpe,nyt=Zct,ryt=Dpe,iyt=dvt,oyt=wxt;dut({target:"Promise",stat:!0,forced:Jxt},{race:function(e){var n=this,r=ryt.f(n),i=r.reject,t=iyt(function(){var t=nyt(n.resolve);oyt(e,function(e){tyt(t,n,e).then(r.resolve,i)})});return t.error&&i(t.value),r.promise}});var ayt=Wpe,syt=Dpe,lyt=(dut({target:"Promise",stat:!0,forced:Fpe.CONSTRUCTOR},{reject:function(e){var t=syt.f(this);return ayt(t.reject,void 0,e),t.promise}}),eut),cyt=_ct,uyt=Dpe,Wge=dut,$ge=qct,Zge=Fpe.CONSTRUCTOR,dyt=function(e,t){return lyt(e),cyt(t)&&t.constructor===e?t:((0,(e=uyt.f(e)).resolve)(t),e.promise)};$ge("Promise"),Wge({target:"Promise",stat:!0,forced:Zge},{resolve:function(e){return dyt(this,e)}});const pyt=()=>emt(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Lft()+"/api/admin/openid");t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),gyt=n=>emt(void 0,void 0,void 0,function*(){let t=[];try{var e=yield fetch(Lft()+"/api/admin/openid/org/"+n);t=200===e.status?(yield e.json()).results:(window.DEBUG&&console.error("was not able to retrieve global open id providers",e),[])}catch(e){window.DEBUG&&console.error("was not able to retrieve global open id providers",e),t=[]}return t}),fyt=(e,t,n)=>fetch(Lft()+"/api/admin/openid/linkUserToOid",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify({userName:e,password:t,sessionKey:n})}),hyt=(n,r)=>emt(void 0,void 0,void 0,function*(){var e=Lft(!0),t={query:`
|
|
1532
1532
|
mutation UserLogin($input: UserLogin!) {
|
|
1533
1533
|
userLogin(input: $input) {
|
|
1534
1534
|
token
|
package/js-core.umd.js.gz
CHANGED
|
Binary file
|