aiware-js 1.0.0-master.573 → 1.0.0-master.574

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/index.esm.css CHANGED
@@ -288,98 +288,6 @@
288
288
  background-color: #fff;
289
289
  }
290
290
 
291
- /* dosis-200normal - latin */
292
- @font-face {
293
- font-family: 'Dosis';
294
- font-style: normal;
295
- font-display: swap;
296
- font-weight: 200;
297
- src:
298
- local('Dosis Extra Light '),
299
- local('Dosis-Extra Light'),
300
- url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
301
- url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
302
- }
303
-
304
- /* dosis-300normal - latin */
305
- @font-face {
306
- font-family: 'Dosis';
307
- font-style: normal;
308
- font-display: swap;
309
- font-weight: 300;
310
- src:
311
- local('Dosis Light '),
312
- local('Dosis-Light'),
313
- url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
314
- url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
315
- }
316
-
317
- /* dosis-400normal - latin */
318
- @font-face {
319
- font-family: 'Dosis';
320
- font-style: normal;
321
- font-display: swap;
322
- font-weight: 400;
323
- src:
324
- local('Dosis Regular '),
325
- local('Dosis-Regular'),
326
- url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
327
- url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
328
- }
329
-
330
- /* dosis-500normal - latin */
331
- @font-face {
332
- font-family: 'Dosis';
333
- font-style: normal;
334
- font-display: swap;
335
- font-weight: 500;
336
- src:
337
- local('Dosis Medium '),
338
- local('Dosis-Medium'),
339
- url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
340
- url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
341
- }
342
-
343
- /* dosis-600normal - latin */
344
- @font-face {
345
- font-family: 'Dosis';
346
- font-style: normal;
347
- font-display: swap;
348
- font-weight: 600;
349
- src:
350
- local('Dosis SemiBold '),
351
- local('Dosis-SemiBold'),
352
- url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
353
- url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
354
- }
355
-
356
- /* dosis-700normal - latin */
357
- @font-face {
358
- font-family: 'Dosis';
359
- font-style: normal;
360
- font-display: swap;
361
- font-weight: 700;
362
- src:
363
- local('Dosis Bold '),
364
- local('Dosis-Bold'),
365
- url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
366
- url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
367
- }
368
-
369
- /* dosis-800normal - latin */
370
- @font-face {
371
- font-family: 'Dosis';
372
- font-style: normal;
373
- font-display: swap;
374
- font-weight: 800;
375
- src:
376
- local('Dosis ExtraBold '),
377
- local('Dosis-ExtraBold'),
378
- url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
379
- url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
380
- }
381
-
382
-
383
291
  /* nunito-200normal - latin */
384
292
  @font-face {
385
293
  font-family: 'Nunito';
@@ -563,6 +471,98 @@
563
471
  }
564
472
 
565
473
 
474
+ /* dosis-200normal - latin */
475
+ @font-face {
476
+ font-family: 'Dosis';
477
+ font-style: normal;
478
+ font-display: swap;
479
+ font-weight: 200;
480
+ src:
481
+ local('Dosis Extra Light '),
482
+ local('Dosis-Extra Light'),
483
+ url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
484
+ url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
485
+ }
486
+
487
+ /* dosis-300normal - latin */
488
+ @font-face {
489
+ font-family: 'Dosis';
490
+ font-style: normal;
491
+ font-display: swap;
492
+ font-weight: 300;
493
+ src:
494
+ local('Dosis Light '),
495
+ local('Dosis-Light'),
496
+ url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
497
+ url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
498
+ }
499
+
500
+ /* dosis-400normal - latin */
501
+ @font-face {
502
+ font-family: 'Dosis';
503
+ font-style: normal;
504
+ font-display: swap;
505
+ font-weight: 400;
506
+ src:
507
+ local('Dosis Regular '),
508
+ local('Dosis-Regular'),
509
+ url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
510
+ url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
511
+ }
512
+
513
+ /* dosis-500normal - latin */
514
+ @font-face {
515
+ font-family: 'Dosis';
516
+ font-style: normal;
517
+ font-display: swap;
518
+ font-weight: 500;
519
+ src:
520
+ local('Dosis Medium '),
521
+ local('Dosis-Medium'),
522
+ url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
523
+ url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
524
+ }
525
+
526
+ /* dosis-600normal - latin */
527
+ @font-face {
528
+ font-family: 'Dosis';
529
+ font-style: normal;
530
+ font-display: swap;
531
+ font-weight: 600;
532
+ src:
533
+ local('Dosis SemiBold '),
534
+ local('Dosis-SemiBold'),
535
+ url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
536
+ url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
537
+ }
538
+
539
+ /* dosis-700normal - latin */
540
+ @font-face {
541
+ font-family: 'Dosis';
542
+ font-style: normal;
543
+ font-display: swap;
544
+ font-weight: 700;
545
+ src:
546
+ local('Dosis Bold '),
547
+ local('Dosis-Bold'),
548
+ url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
549
+ url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
550
+ }
551
+
552
+ /* dosis-800normal - latin */
553
+ @font-face {
554
+ font-family: 'Dosis';
555
+ font-style: normal;
556
+ font-display: swap;
557
+ font-weight: 800;
558
+ src:
559
+ local('Dosis ExtraBold '),
560
+ local('Dosis-ExtraBold'),
561
+ url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
562
+ url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
563
+ }
564
+
565
+
566
566
  /*!
567
567
  * Cropper.js v1.5.9
568
568
  * https://fengyuanchen.github.io/cropperjs
package/index.esm.css.gz CHANGED
Binary file
package/index.esm.min.css CHANGED
@@ -288,98 +288,6 @@
288
288
  background-color: #fff;
289
289
  }
290
290
 
291
- /* dosis-200normal - latin */
292
- @font-face {
293
- font-family: 'Dosis';
294
- font-style: normal;
295
- font-display: swap;
296
- font-weight: 200;
297
- src:
298
- local('Dosis Extra Light '),
299
- local('Dosis-Extra Light'),
300
- url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
301
- url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
302
- }
303
-
304
- /* dosis-300normal - latin */
305
- @font-face {
306
- font-family: 'Dosis';
307
- font-style: normal;
308
- font-display: swap;
309
- font-weight: 300;
310
- src:
311
- local('Dosis Light '),
312
- local('Dosis-Light'),
313
- url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
314
- url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
315
- }
316
-
317
- /* dosis-400normal - latin */
318
- @font-face {
319
- font-family: 'Dosis';
320
- font-style: normal;
321
- font-display: swap;
322
- font-weight: 400;
323
- src:
324
- local('Dosis Regular '),
325
- local('Dosis-Regular'),
326
- url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
327
- url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
328
- }
329
-
330
- /* dosis-500normal - latin */
331
- @font-face {
332
- font-family: 'Dosis';
333
- font-style: normal;
334
- font-display: swap;
335
- font-weight: 500;
336
- src:
337
- local('Dosis Medium '),
338
- local('Dosis-Medium'),
339
- url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
340
- url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
341
- }
342
-
343
- /* dosis-600normal - latin */
344
- @font-face {
345
- font-family: 'Dosis';
346
- font-style: normal;
347
- font-display: swap;
348
- font-weight: 600;
349
- src:
350
- local('Dosis SemiBold '),
351
- local('Dosis-SemiBold'),
352
- url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
353
- url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
354
- }
355
-
356
- /* dosis-700normal - latin */
357
- @font-face {
358
- font-family: 'Dosis';
359
- font-style: normal;
360
- font-display: swap;
361
- font-weight: 700;
362
- src:
363
- local('Dosis Bold '),
364
- local('Dosis-Bold'),
365
- url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
366
- url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
367
- }
368
-
369
- /* dosis-800normal - latin */
370
- @font-face {
371
- font-family: 'Dosis';
372
- font-style: normal;
373
- font-display: swap;
374
- font-weight: 800;
375
- src:
376
- local('Dosis ExtraBold '),
377
- local('Dosis-ExtraBold'),
378
- url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
379
- url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
380
- }
381
-
382
-
383
291
  /* nunito-200normal - latin */
384
292
  @font-face {
385
293
  font-family: 'Nunito';
@@ -563,6 +471,98 @@
563
471
  }
564
472
 
565
473
 
474
+ /* dosis-200normal - latin */
475
+ @font-face {
476
+ font-family: 'Dosis';
477
+ font-style: normal;
478
+ font-display: swap;
479
+ font-weight: 200;
480
+ src:
481
+ local('Dosis Extra Light '),
482
+ local('Dosis-Extra Light'),
483
+ url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
484
+ url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
485
+ }
486
+
487
+ /* dosis-300normal - latin */
488
+ @font-face {
489
+ font-family: 'Dosis';
490
+ font-style: normal;
491
+ font-display: swap;
492
+ font-weight: 300;
493
+ src:
494
+ local('Dosis Light '),
495
+ local('Dosis-Light'),
496
+ url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
497
+ url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
498
+ }
499
+
500
+ /* dosis-400normal - latin */
501
+ @font-face {
502
+ font-family: 'Dosis';
503
+ font-style: normal;
504
+ font-display: swap;
505
+ font-weight: 400;
506
+ src:
507
+ local('Dosis Regular '),
508
+ local('Dosis-Regular'),
509
+ url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
510
+ url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
511
+ }
512
+
513
+ /* dosis-500normal - latin */
514
+ @font-face {
515
+ font-family: 'Dosis';
516
+ font-style: normal;
517
+ font-display: swap;
518
+ font-weight: 500;
519
+ src:
520
+ local('Dosis Medium '),
521
+ local('Dosis-Medium'),
522
+ url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
523
+ url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
524
+ }
525
+
526
+ /* dosis-600normal - latin */
527
+ @font-face {
528
+ font-family: 'Dosis';
529
+ font-style: normal;
530
+ font-display: swap;
531
+ font-weight: 600;
532
+ src:
533
+ local('Dosis SemiBold '),
534
+ local('Dosis-SemiBold'),
535
+ url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
536
+ url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
537
+ }
538
+
539
+ /* dosis-700normal - latin */
540
+ @font-face {
541
+ font-family: 'Dosis';
542
+ font-style: normal;
543
+ font-display: swap;
544
+ font-weight: 700;
545
+ src:
546
+ local('Dosis Bold '),
547
+ local('Dosis-Bold'),
548
+ url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
549
+ url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
550
+ }
551
+
552
+ /* dosis-800normal - latin */
553
+ @font-face {
554
+ font-family: 'Dosis';
555
+ font-style: normal;
556
+ font-display: swap;
557
+ font-weight: 800;
558
+ src:
559
+ local('Dosis ExtraBold '),
560
+ local('Dosis-ExtraBold'),
561
+ url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
562
+ url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
563
+ }
564
+
565
+
566
566
  /*!
567
567
  * Cropper.js v1.5.9
568
568
  * https://fengyuanchen.github.io/cropperjs
Binary file
package/js-core.esm.js CHANGED
@@ -1395,4 +1395,4 @@ createScheduledJob(input:{
1395
1395
  }
1396
1396
  }
1397
1397
  }
1398
- `,graphEndpoint:e,token:t})}catch(e){return{success:!1}}});function*getCurrentUserSaga(){var e=yield select(graphEndpointSelector),t=yield select(sessionTokenSelector),e=yield call$f(getCurrentUserApi,e,t);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)&&(null==(t=e.errors[0].path)||!t.includes("userSettings"))?(console.error("getCurrentUser error"),yield put(getCurrentUserFail())):(t=Object.assign(Object.assign({},null==(t=null==e?void 0:e.data)?void 0:t.me),{organizationRole:{organizationId:get$3(e,"data.me.organization.id","")},organization:Object.assign({},null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.organization)}),yield put(getCurrentUserSuccess(t)))}function*getCurrentApplicationInfoSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=e.payload["applicationId"],e=yield call$f(getApplicationInfo,e,t,n);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)?console.error("getCurrentApplicationInfo error"):yield put(getCurrentAppIconSuccess(null==(n=null==(t=null==e?void 0:e.data)?void 0:t.application)?void 0:n.iconUrl))}function*userSaga(){yield all([takeEvery$1(GET_CURRENT_USER,getCurrentUserSaga)]),yield all([takeEvery$1(GET_CURRENT_APP_ICON,getCurrentApplicationInfoSaga)])}function*bootFunction(){yield take(BOOTED)}function*booting(){yield takeEvery$1(BOOTING,bootFunction)}function*logoutListener(e){for(var t=e.payload;;)yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield take(logout),t?null!=t&&t():yield put(logoutUser$1())}function*notificationActionClickedSaga(e){const t=e.payload;yield takeEvery$1(onNotificationActionClicked,function*(e){t&&(yield call$f(t,e.payload))})}function*handleAppSwitchListenerSetup(e){const t=e.payload;yield takeEvery$1(appSwitcherHandleClick,function*(e){e=e.payload;t?t(e):yield put(appSwitcherHandleClickAppNatively(e))})}function*rootSaga(){yield all([fork(userSaga),fork(booting),takeLatest$1(listenLogout,logoutListener),takeLatest$1(appSwitcherSetupListener,handleAppSwitchListenerSetup),takeLatest$1(initNotificationAction,notificationActionClickedSaga)])}function getAppbarModule(){return{id:"os-app-bar",reducerMap:{[nameSpace$1]:userReducer},sagas:[rootSaga],initialActions:[]}}function App(e){var{onLogout:t,onClickNotificationAction:n,onAppSwitch:r,onClickOrgIcon:i,showNotifications:o,applicationId:a,searchBarMountId:s}=e,e=__rest(e,["onLogout","onClickNotificationAction","onAppSwitch","onShowSettingPanel","onClickOrgIcon","onClickHelpIcon","showNotifications","applicationId","searchBarMountId"]);const l=useDispatch(),[c,u]=react.exports.useState(!1),[d,p]=react.exports.useState(!1),[f,h]=react.exports.useState(!1),[m,g]=react.exports.useState(!1),[v,y]=react.exports.useState(!1),[x,b]=react.exports.useState(!1);var C=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var S=useSelector(unseenNotificationSelector);const w=useSelector(notificationStatusSelector);var E=useSelector(betaFeaturesSelector),C=(C||{})["organization"];const T=useSelector(authSelector)["user"];var{application:_=[]}=useSelector(applicationSelector)||{};const[I,j]=react.exports.useState(!1);const R=useSelector(appIdSelector),O=useSelector(selectApplicationConfig),[L,A]=react.exports.useState(!1);var N=useSelector(selectHasUserCreateRootFolderPermission);const P=gqlIntrospection.isOperationValid("fileApplication","mutation")&&N;function M(){u(!1),h(!1),g(!1),p(!1),y(!1),b(!1)}function k(){null!==$&&void 0!==$&&$.forEach(e=>{l(hidePanel$1(e.panelId))})}return react.exports.useEffect(()=>{var e,t=window.location["search"];l(actions$2.userApplicationSettings.fetchApplicationConfigStart({appId:R})),"?panel=invite-requests"!==t||I||(j(!0),t={name:"INVITE_REQUESTS_PANEL",config:{name:"Invite Requests"}},e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"medium",zIndex:1001,parentPanelId:null,dimmed:0,dimmedStatus:"dimParent",header:{title:"INVITE REQUESTS"}},l(mountPanel$1({panelId:"INVITE_REQUESTS_PANEL",microFrontend:t,panelConfig:e})))},[]),react.exports.useEffect(()=>{null!==O&&void 0!==O&&O.length&&A(!0)},[O]),react.exports.useEffect(()=>{"success"===w&&l(markAllNotificationsSeenRequest())},[w,l]),react.exports.useEffect(()=>{l(getCurrentUser()),a&&l(getCurrentAppIcon({applicationId:a}))},[l,a]),react.exports.useEffect(()=>{l({type:listenLogout().type,payload:t})},[l,t]),react.exports.useEffect(()=>{n&&l(initNotificationAction(n))},[l,n]),react.exports.useEffect(()=>{l({type:appSwitcherSetupListener().type,payload:r})},[l,r]),react.exports.useEffect(()=>{l(onBooted())},[l]),react.exports.useEffect(()=>{$&&0!==$.length||M()},[$]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppbarModule(),getAppbarPanelModule(),getNotificationModule$1(),getEventsModule(),getUserApplicationSettingsModule()]},{children:jsxRuntime.exports.jsx("div",Object.assign({className:"App",id:"aiware-app-bar","data-testid":"aiware-app-bar"},{children:jsxRuntime.exports.jsx(NewAppBar,Object.assign({isEnableOrgPanel:!1,onCloseSetting:function(){k()},onOpenSetting:function(){var e,t;c?(u(!1),k()):(M(),u(!0),k(),e={name:"APP_BAR_PANEL",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:VERITONE_PANEL_ID,type:"TAB_TEMPLATE",marginTop:55,withTab:!0,width:80,zIndex:1004,userRoles:null===T||void 0===T?void 0:T.roles,header:{divider:!0,title:""},footer:{logo:!0},size:"xlarge",fullScreen:!1},l(mountPanel$1({panelId:VERITONE_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenHelpCenter:function(){var e,t;d?(p(!1),k()):(M(),k(),p(!0),e={name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},t={panelId:HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.headerTitle.helpCenter",defaultMessage:"Help Center",description:"The header title for the help center."}),actions:[{iconUrl:img$R,action:{type:"OPEN_HELP_LINK"}}]}},l(mountPanel$1({panelId:HELP_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenNotification:function(){var e,t;null!=o&&o(),v?(y(!1),k()):(M(),k(),y(!0),e={name:"NOTIFICATION_PANEL",config:{name:"Notification Panel",dataId:"notificationDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:413,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.panel.notifications",defaultMessage:"Notifications Center",description:"Title of the notifications center panel"}),actions:[]}},l(mountPanel$1({panelId:NOTIFICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenUserApplicationSettings:function(){var e,t;x?(b(!1),k()):(M(),k(),b(!0),e={name:"USER_APPLICATION_SETTINGS_PANEL",config:{name:"User application settings",dataId:"userApplicationSettingsDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:USER_APPLICATION_SETTINGS_PANEL,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:320,header:{divider:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle.user-application-name-settings",defaultMessage:"Application Settings",description:"Title of user application name settings panel"})}},l(mountPanel$1({panelId:USER_APPLICATION_SETTINGS_PANEL,microFrontend:e,panelConfig:t})))},onDashboardClick:function(){console.log("HANDLE DASHBOARD CLICK!")},organization:C,onClickOrgIcon:function(){var e,t;null!=i&&i(),m?(g(!1),k()):(M(),k(),g(!0),e={name:"ORGANIZATION_PANEL",config:{name:"Veritone",tabId:TabId.ORGANIZATION_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:ORGANIZATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:420,header:{divider:!0,title:"ORGANIZATIONS"}},l(mountPanel$1({panelId:ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t})))},panels:$,searchBarMountId:s,openSetting:{openHelpPanel:!1,openNotificationPanel:!1,openAppSwitchPanel:!1,openOrgSwitchPanel:!1,openVeritonePanel:!1,openUserApplicationSettingsPanel:!1},unseenCount:S,onClickAppSwitchIcon:function(){var e,t;f?(h(!1),k()):(M(),k(),h(!0),e={name:"APP_BAR_PANEL",config:{name:"APP_BAR_PANEL",tabId:TabId.APP_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:APPLICATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:720,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle-app-switcher",defaultMessage:"App Switcher",description:"Title of applications panel list"}),actions:P?[{action:{type:"user-app-group/createNewAppGroupPlaceholder"},label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header-action.new-app-group",defaultMessage:"New App Group",description:"New App Group action button"}),variant:"contained",size:"large",color:"primary",submit:!0}]:void 0}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:_,showDashboardIcon:E,userApplicationSettingsIcon:L},e))}))}))})})}const headerBarSelector=e=>null==e?void 0:e.aiWareHeaderBar,registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent},registryLookup=n=>__awaiter$a(void 0,void 0,void 0,function*(){if(registry[n])return registry[n];let e,t=null;switch(n){case AvailableWidgets.SAMPLE_APP_BAR:e=yield import("./js-core.esm2.js"),t=e.SampleAppBar;break;case AvailableWidgets.RESET_PASSWORD:e=yield import("./js-core.esm4.js"),t=e.ResetPassword;break;case AvailableWidgets.FLOW_CENTER:e=yield import("./js-core.esm5.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm7.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm19.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm38.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.TabPanel;break;case AvailableComponents.NOTIFICATION_PANEL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationPanel;break;case AvailableComponents.NOTIFICATION_DETAIL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationDetailPanel;break;case AvailableComponents.NOTIFICATION_SETTING:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationSetting;break;case AvailableComponents.NOTIFICATION_UTILITY:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationUtilityPanel;break;case AvailableComponents.NOTIFICATION_APPLICATION:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationApplication;break;case AvailableComponents.HELP_PANEL:e=yield Promise.resolve().then(function(){return index_esm}),t=e.HelpCenterPanel;break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=yield Promise.resolve().then(function(){return index_esm$1}),t=e.EditProFilePicture;break;case AvailableComponents.TEST_COMPONENT:e=yield import("./js-core.esm38.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm38.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm38.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm44.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm41.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm41.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm41.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm41.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm41.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm45.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm45.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm45.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm55.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm57.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm58.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm59.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm64.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm19.js"),t=e.EngineCenterFilter;break;case AvailableComponents.APP_CENTER_FILTER:e=yield import("./js-core.esm65.js"),t=e.AppCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm19.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm19.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm19.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm19.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm55.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm55.js"),t=e.EditFileMetadata;break;case AvailableWidgets.APP_CENTER_BROWSE:e=yield import("./js-core.esm65.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm66.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm66.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=yield import("./js-core.esm66.js"),t=e.AppCenterContextMenuExtensionPanel;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_BROWSE:e=yield import("./js-core.esm65.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_DETAILS:e=yield import("./js-core.esm65.js"),t=e.AppCenterDetails;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm64.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm52.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm47.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm47.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm47.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm47.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm45.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm45.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=yield import("./js-core.esm45.js"),t=e.SelectImportSource;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm45.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm52.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm52.js"),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm60.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm67.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm67.js"),t=e.ErrorDetailPanel;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel;break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=yield import("./js-core.esm60.js"),t=e.AddUsersPanel;break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=yield import("./js-core.esm70.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm71.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm40.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm73.js"),t=e.DagBuilder;break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=yield import("./js-core.esm74.js").then(function(e){return e.at}),t=e.ProcessingCenterIngestion;break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=yield import("./js-core.esm74.js").then(function(e){return e.at}),t=e.ProcessingCenterAdvancedSettings;break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=yield import("./js-core.esm74.js").then(function(e){return e.at}),t=e.ProcessingCenterAffiliatePanel;break;case AvailableComponents.JOBS_DETAILS_PANEL:e=yield import("./js-core.esm71.js"),t=e.JobsDetailsPanel;break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm72.js"),t=e.TasksTableSettingsPanel;break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=yield import("./js-core.esm75.js"),t=e.ResourceCenterBrowse;break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=yield import("./js-core.esm78.js"),t=e.PackageDetails;break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=yield import("./js-core.esm79.js"),t=e.PackageManager;break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm80.js"),t=e.InstanceAdminCenterBrowse;break;case AvailableComponents.MANAGE_GRANTS:e=yield import("./js-core.esm78.js"),t=e.ManageGrantsPanel;break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=yield import("./js-core.esm81.js"),t=e.SchemaDetailsPanel;break;case AvailableComponents.USER_DETAILS_PANEL:e=yield import("./js-core.esm61.js"),t=e.UserDetailsPanel}return registry[n]=t}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$1=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$1,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}});function*mountWidgetListenerSaga(){let a;const s={};yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$f(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidget$1("").type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})}function getWidgetsModule(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}function validateConfig(e){return 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"),!0}const ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace]?e[namespace].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$1=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$1()["classes"],[a]=react.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseURL,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$z,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react.exports.useState(null),[n,r]=react.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:u[0].name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter;function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule()]);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$4.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$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$4.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$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{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,{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$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.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$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){validateConfig(e)&&store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{onComplete:t})))}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$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme,lightTheme:lightTheme}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,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:"1abe4bbb3",releaseDate:"sdk_release_date"});export{automateControllerUrlSelector as $,AIWareIntlProvider as A,Box$1 as B,Select$1 as C,Location as D,createSvgIcon$1 as E,FormattedMessage$1 as F,Grid$1 as G,interopRequireDefault as H,createAction as I,createReducer as J,createSlice as K,LoadingButton$1 as L,MenuItem$1 as M,ENGINE_OWNER_TYPES as N,ENGINE_FILTER_TYPES as O,Provider$2 as P,DynamicModuleLoader as Q,preferredLanguageSelector as R,Switch$1 as S,Typography$1 as T,baseUrlSelector as U,rootApiSelector as V,sessionTokenSelector as W,graphEndpointSelector as X,controllerNodeRedImageSelector as Y,controllerUrlSelector as Z,_extends as _,generateUtilityClasses as a,img$k as a$,flowCenterDialogSelector as a0,automateUrlSelector as a1,Portal$1 as a2,flowCenterDialogReducer as a3,List$2 as a4,ListItem$1 as a5,ListItemIcon$1 as a6,ListItemText$1 as a7,flowCenterDialogAction as a8,all as a9,flowStyles as aA,NoResults as aB,CircularProgress$1 as aC,img$b as aD,Dialog$1 as aE,setApiEndpoint as aF,TableContainer$1 as aG,Table$1 as aH,TableHead$1 as aI,TableRow$1 as aJ,TableCell$1 as aK,TableSortLabel$1 as aL,TableBody$1 as aM,img$g as aN,Popper$1 as aO,ClickAwayListener as aP,Fade$1 as aQ,img$s as aR,img$p as aS,img$P as aT,img$B as aU,DialogTitle$1 as aV,DialogContent$1 as aW,DialogActions$1 as aX,Snackbar$1 as aY,default_1 as aZ,img$i as a_,img$n as aa,img$o as ab,img$q as ac,img$r as ad,Divider$1 as ae,Tooltip$1 as af,IconButton$1 as ag,img$h as ah,img$F as ai,Skeleton$1 as aj,takeLatest$1 as ak,fetchAllTags as al,put as am,select as an,fetchFlows as ao,call$f as ap,fetchTemplateGallery as aq,isRevisionsExistOnServerRequest as ar,FormLabel$1 as as,default_1$5 as at,FormGroup$1 as au,FormControlLabel$1 as av,Checkbox$1 as aw,fetchTemplateGalleryFallback as ax,Card$1 as ay,img$l as az,styled$1 as b,Radio$2 as b$,img$T as b0,Tabs$1 as b1,Tab$1 as b2,deleteEngine as b3,fetchEngine as b4,img$j as b5,AIWareFormatMessage as b6,FormattedDate as b7,fetchVeritoneGraphQLApi as b8,useTheme as b9,getSnackbarModule as bA,AIWareCacheProvider as bB,img$Q as bC,img$d as bD,img$c as bE,isEmpty_1 as bF,Backdrop$1 as bG,getDefaultMiddleware as bH,isNil_1 as bI,UpDown as bJ,Icon$1 as bK,get_1 as bL,map_1 as bM,keys_1 as bN,RadioGroup$1 as bO,Avatar$1 as bP,img$v as bQ,baseGraphQLApi as bR,FormHelperText$2 as bS,img$f as bT,StyledEngineProvider as bU,ThemeProvider as bV,lightTheme as bW,CssBaseline as bX,Hide as bY,showMessage as bZ,MessageSeverity as b_,KeyboardArrowRight as ba,KeyboardArrowLeft as bb,useId as bc,InputUnstyled as bd,isHostComponent as be,getDefaultExportFromNamespaceIfNotNamed as bf,commonjsRequire as bg,_typeof$4 as bh,_inheritsLoose$2 as bi,_assertThisInitialized$1 as bj,React as bk,hoistNonReactStatics_cjs as bl,_defineProperty$1 as bm,reactDom as bn,Transition$1 as bo,__awaiter$a as bp,__generator$2 as bq,__spread as br,TransitionGroup$1 as bs,connect$1 as bt,Bookmark as bu,EngineFlagIcons as bv,createAsyncThunk as bw,withStyles as bx,getConfigModule as by,getAuthModule as bz,Paper$1 as c,_toKey as c$,createSvgIcon$2 as c0,_hasPath as c1,_createCompounder as c2,_baseIteratee as c3,isArrayLike_1 as c4,toInteger_1 as c5,_toPropertyKey as c6,_setPrototypeOf$3 as c7,commonjsGlobal$1 as c8,combineReducers as c9,configSelector as cA,baseGraphQLApiWithError as cB,VerifiedFilled as cC,Add as cD,ExpandLess as cE,ExpandMore as cF,Collapse$1 as cG,img$15 as cH,Filter$1 as cI,DynamicTable as cJ,useTheme$3 as cK,getThemeProps as cL,useEnhancedEffect$1 as cM,React$1 as cN,_arrayPush as cO,isArray_1 as cP,_baseToString as cQ,_baseTrim as cR,_castSlice as cS,_stringToArray as cT,toString_1 as cU,ReactIs as cV,upperFirst_1 as cW,isString_1 as cX,_baseGet as cY,_baseSlice as cZ,_castPath as c_,createSelector$1 as ca,fork as cb,AIWareThemeProvider as cc,Stack$4 as cd,Close$1 as ce,FullscreenExit as cf,Fullscreen as cg,TabPanel as ch,default_1$2 as ci,InputAdornment$1 as cj,unmountPanel$1 as ck,AvailableComponents as cl,delay$1 as cm,hidePanel$1 as cn,mountPanel$1 as co,DialogContentText$1 as cp,userSelector$2 as cq,MoreVert as cr,Menu$1 as cs,Edit as ct,Upload as cu,Delete as cv,CustomTabs as cw,useBackupImg as cx,img$1y as cy,validate as cz,capitalize$2 as d,isSymbol_1 as d$,_isIndex as d0,channel$1 as d1,useIntl as d2,VideoCamera as d3,Image$1 as d4,Sound as d5,Description as d6,toNumber_1 as d7,ProgressStepper as d8,size_1 as d9,filledInputClasses$1 as dA,ClearIcon as dB,ArrowDropDownIcon as dC,createTheme$1 as dD,systemStyled as dE,useThemeProps$1 as dF,isObject_1 as dG,_arrayMap as dH,_baseEach as dI,_arrayFilter as dJ,_getNative as dK,eq_1 as dL,_root as dM,_Uint8Array as dN,_overArg as dO,_isPrototype as dP,isObjectLike_1 as dQ,_baseGetTag as dR,_arrayLikeKeys as dS,isArguments_1 as dT,isBuffer$3 as dU,isFunction_1 as dV,isTypedArray_1 as dW,_Stack as dX,_baseFor as dY,identity_1 as dZ,_isIterateeCall as d_,take as da,CurlyBraces as db,UnknownDocument as dc,sdkEventManager as dd,SdkEvents as de,SdkError as df,EngineClassIcons as dg,Mode2 as dh,EngineModeIcons as di,DeploymentModelIcons as dj,guid as dk,EditList as dl,forceReflow as dm,getDefaultExportFromCjs as dn,alpha as dp,useTheme$2 as dq,useControlled as dr,useEventCallback as ds,ButtonBase$1 as dt,useForkRef as du,usePreviousProps$1 as dv,setRef as dw,inputClasses$1 as dx,inputBaseClasses$1 as dy,outlinedInputClasses$1 as dz,_objectWithoutPropertiesLoose$2 as e,img$M as e$,_baseMap as e0,_baseUnary as e1,memoizeOne as e2,createBox$1 as e3,_Symbol as e4,_Set as e5,_setToArray as e6,_SetCache as e7,_cacheHas as e8,Slide$1 as e9,selectUserCanAccessResourceCenter as eA,img$4 as eB,img$z as eC,takeEvery$1 as eD,enableBetaFeatures as eE,Badge$1 as eF,openLinkOnNewTab as eG,orange$1 as eH,deepOrange$1 as eI,authSelector as eJ,headerBarSelector as eK,getSortName as eL,img$8 as eM,InputLabel$1 as eN,ListItemAvatar$1 as eO,OrganizationTabIcon as eP,ScopedCssBaseline$1 as eQ,AlarmTwo as eR,getApplicationsApi as eS,ListItemSecondaryAction$1 as eT,updateTokenSuccess as eU,postNotificationCommand as eV,aiwareEvent as eW,notificationCommands as eX,panelsSelector as eY,css as eZ,avatarClasses as e_,updatePanelMicroFrontendProps as ea,setData as eb,useIsFocusVisible as ec,ownerDocument as ed,lighten as ee,darken as ef,slotShouldForwardProp as eg,useSlotProps as eh,keyframes as ei,img$1v as ej,createTheme as ek,injectIntl as el,TabId as em,PersonalProfile$1 as en,Organizations as eo,DataCenter as ep,Process as eq,FlowCenter2 as er,DeveloperCenter as es,Marketplace$1 as et,LibraryCenter as eu,AdminCenter as ev,AdminTabIcon as ew,Resources$1 as ex,DagBuilder as ey,img$S as ez,clsx as f,AddGroup as f$,img$L as f0,img$1u as f1,img$1t as f2,img$1s as f3,img$J as f4,img$1w as f5,img$I as f6,emphasize as f7,_arraySome as f8,ErrorBoundary$1 as f9,ProcessingDetail as fA,img$u as fB,img$w as fC,img$3 as fD,FilterRemove as fE,CheckCircle as fF,FolderOpen as fG,Voice as fH,useDoubleClick as fI,FolderFilled as fJ,Time as fK,img$x as fL,Undefined as fM,YoutubeSource as fN,PodcastSource as fO,TVSource as fP,RadioSource as fQ,selectOrgId as fR,selectIsUserAdmin as fS,ErrorState$1 as fT,StepConnector$1 as fU,NullState$2 as fV,Group as fW,gqlIntrospection as fX,PermissionChangedAction as fY,tabsClasses$1 as fZ,Lock as f_,Information as fa,NewFolder as fb,SpecialFolder as fc,User as fd,Source as fe,Search$1 as ff,selectIsOLPEnabled as fg,getLibraryModule as fh,cmsUrlSelector as fi,betaFeaturesSelector as fj,UserAddFilled as fk,Popover$1 as fl,MenuList$1 as fm,MoveFolder as fn,img$9 as fo,selectApiConfigs$1 as fp,selectPanelByPanelName as fq,FullScreenContainer as fr,EngineCategoryIcons as fs,Settings$2 as ft,Hamburger as fu,List as fv,Download as fw,MoreHor as fx,selectUserOrgEdgeVersion as fy,EditAttributes as fz,generateUtilityClass as g,root as g$,StepperContext$1 as g0,StepContext$1 as g1,SvgIcon$1 as g2,initialConfigSelector as g3,ConfirmationModal as g4,EnumHelpers as g5,formatBytes as g6,NotInterested as g7,mountPanelForResponse$1 as g8,Users as g9,Task as gA,View as gB,_objectSpread2 as gC,serialize as gD,stringify$2 as gE,compile as gF,Check as gG,FormattedRelativeTime$1 as gH,Folder as gI,Hidden as gJ,ArrowUp as gK,ArrowDown as gL,toFinite_1 as gM,_baseForOwn as gN,_arrayReduce as gO,hasIn_1 as gP,useSyncExternalStoreExports as gQ,Packages as gR,Engines as gS,PackagesAvatar as gT,actionChannel as gU,cancelled as gV,flush$3 as gW,cancel as gX,registry as gY,registerComponent as gZ,AvailableWidgets as g_,ApplicationTabIcon as ga,SecurityGroup as gb,Lock2 as gc,NoApps as gd,green$1 as ge,md5 as gf,selectIsSuperAdmin as gg,AddUser as gh,selectors as gi,LibraryDropdown as gj,Remove as gk,Save as gl,Input$3 as gm,Copy as gn,ArrowForward as go,Modal$1 as gp,_baseIsEqual as gq,OutlinedInput$1 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,composeClasses as h,mountWidget as h0,unmountWidget as h1,mountPanel as h2,unmountPanel as h3,hidePanel as h4,unmountAllPanel as h5,init as h6,aiwareEvents as h7,useDispatch as i,jsxRuntime as j,useSelector as k,authStatusSelector as l,makeStyles as m,authContextSelector as n,AuthContext as o,lodash as p,Alert$1 as q,react as r,store$4 as s,authErrorMessage as t,useThemeProps as u,FormControl$1 as v,TextField$1 as w,classNames as x,resetPasswordRequest as y,Button$1 as z};
1398
+ `,graphEndpoint:e,token:t})}catch(e){return{success:!1}}});function*getCurrentUserSaga(){var e=yield select(graphEndpointSelector),t=yield select(sessionTokenSelector),e=yield call$f(getCurrentUserApi,e,t);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)&&(null==(t=e.errors[0].path)||!t.includes("userSettings"))?(console.error("getCurrentUser error"),yield put(getCurrentUserFail())):(t=Object.assign(Object.assign({},null==(t=null==e?void 0:e.data)?void 0:t.me),{organizationRole:{organizationId:get$3(e,"data.me.organization.id","")},organization:Object.assign({},null==(e=null==(t=null==e?void 0:e.data)?void 0:t.me)?void 0:e.organization)}),yield put(getCurrentUserSuccess(t)))}function*getCurrentApplicationInfoSaga(e){var t=yield select(graphEndpointSelector),n=yield select(sessionTokenSelector),e=e.payload["applicationId"],e=yield call$f(getApplicationInfo,e,t,n);null!=e&&e.errors&&0<(null==e?void 0:e.errors.length)?console.error("getCurrentApplicationInfo error"):yield put(getCurrentAppIconSuccess(null==(n=null==(t=null==e?void 0:e.data)?void 0:t.application)?void 0:n.iconUrl))}function*userSaga(){yield all([takeEvery$1(GET_CURRENT_USER,getCurrentUserSaga)]),yield all([takeEvery$1(GET_CURRENT_APP_ICON,getCurrentApplicationInfoSaga)])}function*bootFunction(){yield take(BOOTED)}function*booting(){yield takeEvery$1(BOOTING,bootFunction)}function*logoutListener(e){for(var t=e.payload;;)yield call$f(stashTokenInSession,SESSION_TOKEN_PREVENT_STASH_VALUE),yield take(logout),t?null!=t&&t():yield put(logoutUser$1())}function*notificationActionClickedSaga(e){const t=e.payload;yield takeEvery$1(onNotificationActionClicked,function*(e){t&&(yield call$f(t,e.payload))})}function*handleAppSwitchListenerSetup(e){const t=e.payload;yield takeEvery$1(appSwitcherHandleClick,function*(e){e=e.payload;t?t(e):yield put(appSwitcherHandleClickAppNatively(e))})}function*rootSaga(){yield all([fork(userSaga),fork(booting),takeLatest$1(listenLogout,logoutListener),takeLatest$1(appSwitcherSetupListener,handleAppSwitchListenerSetup),takeLatest$1(initNotificationAction,notificationActionClickedSaga)])}function getAppbarModule(){return{id:"os-app-bar",reducerMap:{[nameSpace$1]:userReducer},sagas:[rootSaga],initialActions:[]}}function App(e){var{onLogout:t,onClickNotificationAction:n,onAppSwitch:r,onClickOrgIcon:i,showNotifications:o,applicationId:a,searchBarMountId:s}=e,e=__rest(e,["onLogout","onClickNotificationAction","onAppSwitch","onShowSettingPanel","onClickOrgIcon","onClickHelpIcon","showNotifications","applicationId","searchBarMountId"]);const l=useDispatch(),[c,u]=react.exports.useState(!1),[d,p]=react.exports.useState(!1),[f,h]=react.exports.useState(!1),[m,g]=react.exports.useState(!1),[v,y]=react.exports.useState(!1),[x,b]=react.exports.useState(!1);var C=(useSelector(userSelector)||{})["currentUser"];const{panels:$=[]}=useSelector(rootSelector);var S=useSelector(unseenNotificationSelector);const w=useSelector(notificationStatusSelector);var E=useSelector(betaFeaturesSelector),C=(C||{})["organization"];const T=useSelector(authSelector)["user"];var{application:_=[]}=useSelector(applicationSelector)||{};const[I,j]=react.exports.useState(!1);const R=useSelector(appIdSelector),O=useSelector(selectApplicationConfig),[L,A]=react.exports.useState(!1);var N=useSelector(selectHasUserCreateRootFolderPermission);const P=gqlIntrospection.isOperationValid("fileApplication","mutation")&&N;function M(){u(!1),h(!1),g(!1),p(!1),y(!1),b(!1)}function k(){null!==$&&void 0!==$&&$.forEach(e=>{l(hidePanel$1(e.panelId))})}return react.exports.useEffect(()=>{var e,t=window.location["search"];l(actions$2.userApplicationSettings.fetchApplicationConfigStart({appId:R})),"?panel=invite-requests"!==t||I||(j(!0),t={name:"INVITE_REQUESTS_PANEL",config:{name:"Invite Requests"}},e={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,marginStart:0,size:"medium",zIndex:1001,parentPanelId:null,dimmed:0,dimmedStatus:"dimParent",header:{title:"INVITE REQUESTS"}},l(mountPanel$1({panelId:"INVITE_REQUESTS_PANEL",microFrontend:t,panelConfig:e})))},[]),react.exports.useEffect(()=>{null!==O&&void 0!==O&&O.length&&A(!0)},[O]),react.exports.useEffect(()=>{"success"===w&&l(markAllNotificationsSeenRequest())},[w,l]),react.exports.useEffect(()=>{l(getCurrentUser()),a&&l(getCurrentAppIcon({applicationId:a}))},[l,a]),react.exports.useEffect(()=>{l({type:listenLogout().type,payload:t})},[l,t]),react.exports.useEffect(()=>{n&&l(initNotificationAction(n))},[l,n]),react.exports.useEffect(()=>{l({type:appSwitcherSetupListener().type,payload:r})},[l,r]),react.exports.useEffect(()=>{l(onBooted())},[l]),react.exports.useEffect(()=>{$&&0!==$.length||M()},[$]),jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getAppbarModule(),getAppbarPanelModule(),getNotificationModule$1(),getEventsModule(),getUserApplicationSettingsModule()]},{children:jsxRuntime.exports.jsx("div",Object.assign({className:"App",id:"aiware-app-bar","data-testid":"aiware-app-bar"},{children:jsxRuntime.exports.jsx(NewAppBar,Object.assign({isEnableOrgPanel:!1,onCloseSetting:function(){k()},onOpenSetting:function(){var e,t;c?(u(!1),k()):(M(),u(!0),k(),e={name:"APP_BAR_PANEL",config:{name:"Veritone",dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:VERITONE_PANEL_ID,type:"TAB_TEMPLATE",marginTop:55,withTab:!0,width:80,zIndex:1004,userRoles:null===T||void 0===T?void 0:T.roles,header:{divider:!0,title:""},footer:{logo:!0},size:"xlarge",fullScreen:!1},l(mountPanel$1({panelId:VERITONE_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenHelpCenter:function(){var e,t;d?(p(!1),k()):(M(),k(),p(!0),e={name:"HELP_PANEL",config:{name:"Help panel",dataId:"helpDataId",type:"SIMPLE_PANEL"}},t={panelId:HELP_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,size:"large",header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.headerTitle.helpCenter",defaultMessage:"Help Center",description:"The header title for the help center."}),actions:[{iconUrl:img$R,action:{type:"OPEN_HELP_LINK"}}]}},l(mountPanel$1({panelId:HELP_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenNotification:function(){var e,t;null!=o&&o(),v?(y(!1),k()):(M(),k(),y(!0),e={name:"NOTIFICATION_PANEL",config:{name:"Notification Panel",dataId:"notificationDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:413,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.panel.notifications",defaultMessage:"Notifications Center",description:"Title of the notifications center panel"}),actions:[]}},l(mountPanel$1({panelId:NOTIFICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},onOpenUserApplicationSettings:function(){var e,t;x?(b(!1),k()):(M(),k(),b(!0),e={name:"USER_APPLICATION_SETTINGS_PANEL",config:{name:"User application settings",dataId:"userApplicationSettingsDataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:USER_APPLICATION_SETTINGS_PANEL,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:320,header:{divider:!1,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle.user-application-name-settings",defaultMessage:"Application Settings",description:"Title of user application name settings panel"})}},l(mountPanel$1({panelId:USER_APPLICATION_SETTINGS_PANEL,microFrontend:e,panelConfig:t})))},onDashboardClick:function(){console.log("HANDLE DASHBOARD CLICK!")},organization:C,onClickOrgIcon:function(){var e,t;null!=i&&i(),m?(g(!1),k()):(M(),k(),g(!0),e={name:"ORGANIZATION_PANEL",config:{name:"Veritone",tabId:TabId.ORGANIZATION_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:ORGANIZATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:420,header:{divider:!0,title:"ORGANIZATIONS"}},l(mountPanel$1({panelId:ORGANIZATION_PANEL_ID,microFrontend:e,panelConfig:t})))},panels:$,searchBarMountId:s,openSetting:{openHelpPanel:!1,openNotificationPanel:!1,openAppSwitchPanel:!1,openOrgSwitchPanel:!1,openVeritonePanel:!1,openUserApplicationSettingsPanel:!1},unseenCount:S,onClickAppSwitchIcon:function(){var e,t;f?(h(!1),k()):(M(),k(),h(!0),e={name:"APP_BAR_PANEL",config:{name:"APP_BAR_PANEL",tabId:TabId.APP_PANEL,dataId:"dataId",type:"APP_BAR_PANEL_TEMPLATE"}},t={panelId:APPLICATION_PANEL_ID,type:"APP_BAR_PANEL_TEMPLATE",marginTop:55,width:720,header:{divider:!0,title:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header.panelTitle-app-switcher",defaultMessage:"App Switcher",description:"Title of applications panel list"}),actions:P?[{action:{type:"user-app-group/createNewAppGroupPlaceholder"},label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-app-bar.header-action.new-app-group",defaultMessage:"New App Group",description:"New App Group action button"}),variant:"contained",size:"large",color:"primary",submit:!0}]:void 0}},l(mountPanel$1({panelId:APPLICATION_PANEL_ID,microFrontend:e,panelConfig:t})))},applications:_,showDashboardIcon:E,userApplicationSettingsIcon:L},e))}))}))})})}const headerBarSelector=e=>null==e?void 0:e.aiWareHeaderBar,registry={[AvailableWidgets.APP_BAR]:App,[AvailableComponents.APP_BAR_PANEL]:SettingPanelComponent},registryLookup=n=>__awaiter$a(void 0,void 0,void 0,function*(){if(registry[n])return registry[n];let e,t=null;switch(n){case AvailableWidgets.SAMPLE_APP_BAR:e=yield import("./js-core.esm2.js"),t=e.SampleAppBar;break;case AvailableWidgets.RESET_PASSWORD:e=yield import("./js-core.esm4.js"),t=e.ResetPassword;break;case AvailableWidgets.FLOW_CENTER:e=yield import("./js-core.esm5.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm7.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm19.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm38.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm40.js"),t=e.TabPanel;break;case AvailableComponents.NOTIFICATION_PANEL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationPanel;break;case AvailableComponents.NOTIFICATION_DETAIL:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationDetailPanel;break;case AvailableComponents.NOTIFICATION_SETTING:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationSetting;break;case AvailableComponents.NOTIFICATION_UTILITY:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationUtilityPanel;break;case AvailableComponents.NOTIFICATION_APPLICATION:e=yield Promise.resolve().then(function(){return index_esm$2}),t=e.NotificationApplication;break;case AvailableComponents.HELP_PANEL:e=yield Promise.resolve().then(function(){return index_esm}),t=e.HelpCenterPanel;break;case AvailableComponents.EDIT_PROFILE_PICTURE:e=yield Promise.resolve().then(function(){return index_esm$1}),t=e.EditProFilePicture;break;case AvailableComponents.TEST_COMPONENT:e=yield import("./js-core.esm38.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm38.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm38.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm44.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm41.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm41.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm41.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm41.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm41.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm45.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm45.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm45.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm55.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm57.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm58.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm59.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm64.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm19.js"),t=e.EngineCenterFilter;break;case AvailableComponents.APP_CENTER_FILTER:e=yield import("./js-core.esm65.js"),t=e.AppCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm19.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm19.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm20.js").then(function(e){return e.h}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm19.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm19.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm55.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm55.js"),t=e.EditFileMetadata;break;case AvailableWidgets.APP_CENTER_BROWSE:e=yield import("./js-core.esm65.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm66.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm66.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=yield import("./js-core.esm66.js"),t=e.AppCenterContextMenuExtensionPanel;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm66.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_BROWSE:e=yield import("./js-core.esm65.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_DETAILS:e=yield import("./js-core.esm65.js"),t=e.AppCenterDetails;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm64.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm52.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm47.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm47.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm47.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm47.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm45.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm45.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=yield import("./js-core.esm45.js"),t=e.SelectImportSource;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm45.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm52.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm52.js"),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm60.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm67.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm67.js"),t=e.ErrorDetailPanel;break;case AvailableComponents.USER_APPLICATION_SETTINGS_PANEL:e=yield Promise.resolve().then(function(){return index_esm$3}),t=e.UserApplicationSettingsPanel;break;case AvailableComponents.ADD_APPLICATION_USERS_PANEL:e=yield import("./js-core.esm60.js"),t=e.AddUsersPanel;break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=yield import("./js-core.esm70.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm71.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm40.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm73.js"),t=e.DagBuilder;break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=yield import("./js-core.esm74.js").then(function(e){return e.at}),t=e.ProcessingCenterIngestion;break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=yield import("./js-core.esm74.js").then(function(e){return e.at}),t=e.ProcessingCenterAdvancedSettings;break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=yield import("./js-core.esm74.js").then(function(e){return e.at}),t=e.ProcessingCenterAffiliatePanel;break;case AvailableComponents.JOBS_DETAILS_PANEL:e=yield import("./js-core.esm71.js"),t=e.JobsDetailsPanel;break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm72.js"),t=e.TasksTableSettingsPanel;break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=yield import("./js-core.esm75.js"),t=e.ResourceCenterBrowse;break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=yield import("./js-core.esm78.js"),t=e.PackageDetails;break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=yield import("./js-core.esm79.js"),t=e.PackageManager;break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm80.js"),t=e.InstanceAdminCenterBrowse;break;case AvailableComponents.MANAGE_GRANTS:e=yield import("./js-core.esm78.js"),t=e.ManageGrantsPanel;break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=yield import("./js-core.esm81.js"),t=e.SchemaDetailsPanel;break;case AvailableComponents.USER_DETAILS_PANEL:e=yield import("./js-core.esm61.js"),t=e.UserDetailsPanel}return registry[n]=t}),registerComponent=(e,t)=>{registry[e]=t},WIDGETS_FEATURE_KEY="widgets",initialState$1=(!function(e){e.idle="idle",e.mounting="mounting",e.unmounting="unmounting",e.error="error",e.eventing="eventing"}(WidgetsStatus=WidgetsStatus||{}),{value:[],status:WidgetsStatus.idle}),widgetsSelector=e=>e[name].value,callWidgetOnComplete=(e,t)=>{e=e.find(e=>e.widgetName===t);null!=e&&e.onComplete&&e.onComplete()},{name,reducer,actions:{mountWidget:mountWidget$1,mountWidgetSuccess,mountWidgetError,unmountWidget:unmountWidget$1,unmountWidgetSuccess,unmountWidgetFailure,triggerWidgetCallback,triggerWidgetCallbackSuccess}}=createSlice({name:WIDGETS_FEATURE_KEY,initialState:initialState$1,reducers:{mountWidget:(e,t)=>{e.value.push(t.payload),e.status=WidgetsStatus.mounting},mountWidgetSuccess:e=>{e.status=WidgetsStatus.idle},mountWidgetError:e=>{e.status=WidgetsStatus.error},triggerWidgetCallback:(e,t)=>{e.status=WidgetsStatus.eventing},triggerWidgetCallbackSuccess:e=>{e.status=WidgetsStatus.idle},unmountWidget:(e,t)=>{e.status=WidgetsStatus.unmounting},unmountWidgetSuccess:(e,t)=>{e.value=e.value.filter(e=>e.widgetId!==t.payload),e.status=WidgetsStatus.idle},unmountWidgetFailure:e=>{e.status=WidgetsStatus.error}}});function*mountWidgetListenerSaga(){let a;const s={};yield takeEvery$1(mountWidget$1({}).type,function*(e){try{var{widgetConfig:t={},widgetName:n,elementId:r}=null==e?void 0:e.payload,i=(yield call$f(registryLookup,n))||(()=>jsxRuntime.exports.jsx("div",{children:"Component Not Found."})),o=getElement(r,n);o.classList.add("aiware-el"),s[r]?a=s[r]:(a=client$1.createRoot(o),s[r]=a),a.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsx(AIWareThemeProvider,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(i,Object.assign({},t))}))})})),yield put(mountWidgetSuccess())}catch(e){yield put(mountWidgetError())}}),yield takeEvery$1(e=>/\/booted$/.test(e.type),function*(e){var[e]=e.type.split("/");yield put(triggerWidgetCallback(e))}),yield takeEvery$1(unmountWidget$1("").type,function*(t){try{const e=yield select(e=>{return(null==(e=widgetsSelector(e).find(e=>e.widgetId===t.payload))?void 0:e.elementId)||""});setTimeout(()=>{s[e]&&s[e].unmount(),delete s[e]}),yield put(unmountWidgetSuccess(t.payload))}catch(e){yield put(unmountWidgetFailure())}}),yield takeEvery$1(triggerWidgetCallback("").type,function*(e){var t=yield select(widgetsSelector);callWidgetOnComplete(t,e.payload),yield put(triggerWidgetCallbackSuccess())})}function getWidgetsModule(){return{id:name,reducerMap:{[name]:reducer},sagas:[mountWidgetListenerSaga],initialActions:[]}}function getDataModule(){return{id:"data",reducerMap:{data:(e,{type:t,payload:n})=>{return t===setData({}).type?[...e.filter(e=>e.id!==n.id),n]:e||[]}},sagas:[],initialActions:[]}}const useStyles$2=makeStyles()(e=>({sdkSnackbarContainer:{"& svg":{fill:"white"}}}));function CustomSnackbar(){const n=useDispatch(),[e,t]=react.exports.useState([]),[r,i]=react.exports.useState(!1),[o,a]=react.exports.useState(void 0),{message:s,duration:l}=useSelector(snackbarSelector);var c=useStyles$2()["classes"],u=(react.exports.useEffect(()=>{null!==s&&void 0!==s&&s.content&&t(e=>[...e,s])},[s]),react.exports.useEffect(()=>{e.length&&!o?(a(Object.assign({},e[0])),t(e=>e.slice(1)),i(!0)):e.length&&o&&r&&(n(clearMessage()),i(!1))},[e,o,r,n]),(e,t)=>{"clickaway"!==t&&(i(!1),n(clearMessage()))});return jsxRuntime.exports.jsx(Snackbar$1,Object.assign({anchorOrigin:{vertical:"bottom",horizontal:"right"},open:r,autoHideDuration:l||3e3,onClose:u,TransitionProps:{onExited:()=>{a(void 0),n(clearMessage())}},className:c.sdkSnackbarContainer,"data-snackbarid":(null===o||void 0===o?void 0:o.key)||"na","data-testid":"snackbar.message."+((null===o||void 0===o?void 0:o.severity)||"na")},{children:jsxRuntime.exports.jsx(Alert$1,Object.assign({onClose:u,severity:null===o||void 0===o?void 0:o.severity,elevation:6,variant:"filled"},{children:null===o||void 0===o?void 0:o.content}))}),o?o.key:void 0)}function validateConfig(e){return 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"),!0}const ID="openSupportChatButton",DATA_ATTR="open-support-chat-button";var SupportCenterPixel=()=>jsxRuntime.exports.jsx(Portal$1,{children:jsxRuntime.exports.jsx("div",{id:ID,"data-veritone-element":DATA_ATTR,style:{width:1,height:1,position:"fixed",right:55,bottom:20}})});const nameSpace="@helpPanel",updateSelectedTab=createAction(nameSpace+"/UPDATE_SELECTED_TAB",function(e,t){return{payload:{selectedTabId:e,tabLink:t}}}),setCustomKnowledgeBaseUrl=createAction(nameSpace+"/SET_CUSTOM_KNOWLEDGE_BASE_URL",function(e){return{payload:{url:e}}}),setCustomDocsUrl=createAction(nameSpace+"/SET_CUSTOM_DOCS_URL",function(e){return{payload:{url:e}}}),initialState={selectedTabId:0,tabLink:"https://support.veritone.com/",customKnowledgeBaseUrl:"",customDocsUrl:""},getTabLinkReducer=createReducer(initialState,e=>{e.addCase(updateSelectedTab,(e,t)=>Object.assign(Object.assign({},e),{tabLink:t.payload.tabLink,selectedTabId:t.payload.selectedTabId})),e.addCase(setCustomKnowledgeBaseUrl,(e,t)=>Object.assign(Object.assign({},e),{customKnowledgeBaseUrl:t.payload.url})),e.addCase(setCustomDocsUrl,(e,t)=>Object.assign(Object.assign({},e),{customDocsUrl:t.payload.url}))});function*helpSaga(){yield takeEvery$1("OPEN_HELP_LINK",function*(){var e=yield select(e=>e.helpPanel.tabLink);yield put(openLinkOnNewTab({url:e}))})}const namespace="helpPanel",helpCenterSelectedTabIdSelector=e=>null!=e&&e[namespace]?e[namespace].selectedTabId:0,customDocsUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customDocsUrl:"",customKnowledgeBaseUrlSelector=e=>null!=e&&e[namespace]?e[namespace].customKnowledgeBaseUrl:"";function getHelpPanelModule(){return{id:"help",reducerMap:{[namespace]:getTabLinkReducer},sagas:[helpSaga],initialActions:[]}}var knowledgeBaseUrl$1="https://docs.veritone.com/help/index.html",documentUrl$1="https://docs.veritone.com",config={knowledgeBaseUrl:knowledgeBaseUrl$1,documentUrl:documentUrl$1};const useStyles$1=makeStyles()(e=>({root:{height:"calc(100% - 110px)",textAlign:"left","& .Sdk-MuiTab-root.Mui-selected":{color:e.palette.text.primary,fontWeight:600}},tabs:{padding:e.spacing(2.4,6,0,6)},tabPanels:{width:"100%",height:"100%"},aiWareIcon:{position:"relative",maxHeight:50,opacity:"inherit",padding:e.spacing(4,3.2,0,3.2),display:"flex",justifyContent:"flex-end"},customTabs:{margin:e.spacing(0,4)},kbRoot:{height:"100%",textAlign:"left"},loadingContainer:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"white"},kbToolBarBox:{padding:e.spacing(6,6,1.6,6)},kbTabContent:{height:"calc(100% - 92px)"},kbTabPanel:{padding:e.spacing(6)},dRoot:{height:"100%",width:"100%"},dNavBar:{height:"100%",overflow:"hidden",background:"#F4F4F4"},dTitle:{color:"#2A323C",fontWeight:600,fontSize:"18px",lineHeight:"24px",padding:e.spacing(3.2)},dContent:{height:"100%",width:"100%",position:"relative"},dMenu:{overflowY:"auto",height:"calc(100% - 52px)"},drawerContainer:{display:"flex",height:"100%",background:e.palette.background.default},tabContainer:{borderRight:"0.5px solid #D5DFE9",overflow:"hidden",height:"100%",width:"100%"},tabName:{borderBottom:"0.5px solid #D5DFE9",display:"flex",justifyContent:"space-between",alignItems:"center",height:"64px",padding:e.spacing(0,6)},actionIcons:{margin:e.spacing(-2.4)},tabContent:{height:"calc(100vh - 57px - 60px)",overflowY:"auto",overflowX:"hidden"}})),documentUrl=config.documentUrl,Documentation=({path:e=documentUrl})=>{var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:classNames(t.dRoot,"hide-in-percy")},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"docs-iframe",title:"Document Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){setTimeout(()=>{r(!1)},1e3)}})]}))},knowledgeBaseUrl=config["knowledgeBaseUrl"];function Knowledgebase({path:e=knowledgeBaseUrl}){var t=useStyles$1()["classes"];const[n,r]=react.exports.useState(!0);return jsxRuntime.exports.jsxs("div",Object.assign({className:t.kbRoot},{children:[n&&jsxRuntime.exports.jsx("div",Object.assign({className:t.loadingContainer},{children:jsxRuntime.exports.jsx(CircularProgress$1,{})})),jsxRuntime.exports.jsx("iframe",{"data-cy":"knowledgebase-iframe",title:"Knowledgebase Iframe",style:{width:"100%",height:"100%"},src:e,frameBorder:"0",onLoad:function(){r(!1)}})]}))}const defaultLocale="en-us",tabsList=[{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.au1+VZ",defaultMessage:"Knowledgebase",description:"Help Panel: Knowledgebase tab label"}),disabled:!1,url:"https://support.veritone.com/"},{label:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"os-help-panel.8bnkm8",defaultMessage:"Documentation",description:"Help Panel: Documentation tab label"}),disabled:!1,url:"https://docs.veritone.com/#/aiware/"}];function HelpCenter(){var e=useSelector(initialConfigSelector),t=useSelector(customKnowledgeBaseUrlSelector),n=useSelector(customDocsUrlSelector),r=useSelector(helpCenterSelectedTabIdSelector),i=useSelector(e=>null==e?void 0:e.panels),o=useStyles$1()["classes"],[a]=react.exports.useState(defaultLocale);const s=useDispatch();i=null==i?void 0:i.find(e=>"CUSTOM_HELP_PANEL_ID"===e.panelId),t=i&&t?t:e.knowledgeBaseURL,i=i&&n?n:e.docsURL;return jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getHelpPanelModule()]},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,Object.assign({locale:a},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.drawerContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({id:"setting-content",className:o.tabContainer},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.tabContent},{children:jsxRuntime.exports.jsx("div",Object.assign({className:o.root},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx("div",Object.assign({className:o.customTabs},{children:jsxRuntime.exports.jsx(CustomTabs,{selectedId:r,onChangeTab:e=>{s(updateSelectedTab(e,tabsList[e].url))},tabsList:tabsList})})),jsxRuntime.exports.jsxs(Box$1,Object.assign({className:o.tabPanels},{children:[jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:0},{children:jsxRuntime.exports.jsx(Knowledgebase,{path:t})})),jsxRuntime.exports.jsx(TabPanel,Object.assign({value:r,index:1},{children:jsxRuntime.exports.jsx(Documentation,{path:i})}))]})),jsxRuntime.exports.jsx("div",Object.assign({className:o.aiWareIcon},{children:jsxRuntime.exports.jsx("img",{src:img$z,alt:"icon",draggable:"false"})}))]}))}))}))}))}))}))}))}var index_esm=Object.freeze({__proto__:null,HelpCenterPanel:HelpCenter,customDocsUrlSelector:customDocsUrlSelector,customKnowledgeBaseUrlSelector:customKnowledgeBaseUrlSelector,helpCenterSelectedTabIdSelector:helpCenterSelectedTabIdSelector,setCustomDocsUrl:setCustomDocsUrl,setCustomKnowledgeBaseUrl:setCustomKnowledgeBaseUrl,updateSelectedTab:updateSelectedTab});const useStyles=makeStyles()(()=>({dialog:{top:"125px",overflowX:"hidden",overflowY:"hidden",display:"flex",alignItems:"center",flexDirection:"column"},container:{borderRadius:"4px",backgroundColor:"#fff",width:"430px",overflow:"hidden",outline:0,boxShadow:"0px 0px 7px rgba(0, 0, 0, .25)"},header:{textTransform:"capitalize"},appListContainer:{width:"100%"},orgName:{fontWeight:"bold"}})),ApplicationDialog=()=>{const[e,t]=react.exports.useState(null),[n,r]=react.exports.useState(0);var i=useSelector(userSelector$2),o=useStyles()["classes"];const a=useSelector(initialConfigSelector),s=a.applicationId,l=useSelector(applicationSelector),c=useSelector(switchApiSelector);var u=(null===l||void 0===l?void 0:l.application)||[],d=null===l||void 0===l?void 0:l.status;var p=[...u].sort(function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}),f=u.findIndex(e=>e.id===s);useInterval(()=>{t(e=>e&&e-1)},e&&n<3?1e3:null),react.exports.useEffect(()=>{"success"!==(null===l||void 0===l?void 0:l.status)||1!==(null===l||void 0===l?void 0:l.application.length)||(null===l||void 0===l?void 0:l.application[0].id)===a.applicationId||e||(0===e?window.open(c+"/"+(null===l||void 0===l?void 0:l.application[0].id),"_self"):t(10))},[a,l,c,e]);return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s)&&f<0&&"success"===d?jsxRuntime.exports.jsx(Modal$1,Object.assign({className:o.dialog,open:!0},{children:jsxRuntime.exports.jsxs("div",Object.assign({className:o.container},{children:[jsxRuntime.exports.jsx(Typography$1,Object.assign({"data-test":"application-dialog-title",className:o.header,variant:"h1",sx:{px:"30px",pt:"30px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-title",defaultMessage:"Application Not Available",description:"Title for modal"})})),jsxRuntime.exports.jsxs(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"10px"}},{children:[jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message1",defaultMessage:"Looks like you switched organizations, your current application is not available in the current",description:"Description current application not available"})," ",jsxRuntime.exports.jsx("span",Object.assign({className:o.orgName},{children:null!=(f=null==i?void 0:i.organization)&&f.organizationName?i.organization.organizationName:""}))," ",jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message2",defaultMessage:"organization you are viewing.",description:"Description current application not available"})]})),jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-message3",defaultMessage:"Please select from the available applications below to be redirected.",description:"Instructions for current application not available"})})),e&&jsxRuntime.exports.jsx(Typography$1,Object.assign({variant:"body2",sx:{px:"30px",pt:"20px"},onClick:()=>{r(e=>e+1)}},{children:jsxRuntime.exports.jsx(FormattedMessage$1,{id:"js-core-app-dialog-countdown-message",defaultMessage:"You will be automatically forwarded to {appName} in {timeRemaining} seconds.",description:"Instructions for current application not available",values:{timeRemaining:e,appName:u[0].name}})})),jsxRuntime.exports.jsx("div",Object.assign({className:o.appListContainer},{children:jsxRuntime.exports.jsx(AppList,{title:"",selectedAppId:null,onSelectApplication:e=>{window.open(c+"/"+e,"_self")},applications:p,useGrid:!1,row:3})}))]}))})):null};class RateLimiter{constructor(){this.lastCall=null}checkIfCanCall(e=1){return e<1&&(e=1),(!this.lastCall||(new Date).getTime()-this.lastCall>=6e4*e)&&(this.lastCall=(new Date).getTime(),!0)}}const rateLimiter=new RateLimiter;function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$4.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule()]);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$4.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$4.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$4.dispatch(logout())},1e3)):store$4.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$4.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$4},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$4},{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,{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$4.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$4.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$4.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$4.addModule(r),n},unmountPanel=e=>(store$4.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$4.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$4.dispatch(unmountAllPanel$1(""))};function init(e,t){validateConfig(e)&&store$4.dispatch(getInitConfig(Object.assign(Object.assign({},e),{onComplete:t})))}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$4),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$4,window.aiWare_theme={darkTheme:darkTheme,lightTheme:lightTheme}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$4,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:"ea8df59f7",releaseDate:"sdk_release_date"});export{automateControllerUrlSelector as $,AIWareIntlProvider as A,Box$1 as B,Select$1 as C,Location as D,createSvgIcon$1 as E,FormattedMessage$1 as F,Grid$1 as G,interopRequireDefault as H,createAction as I,createReducer as J,createSlice as K,LoadingButton$1 as L,MenuItem$1 as M,ENGINE_OWNER_TYPES as N,ENGINE_FILTER_TYPES as O,Provider$2 as P,DynamicModuleLoader as Q,preferredLanguageSelector as R,Switch$1 as S,Typography$1 as T,baseUrlSelector as U,rootApiSelector as V,sessionTokenSelector as W,graphEndpointSelector as X,controllerNodeRedImageSelector as Y,controllerUrlSelector as Z,_extends as _,generateUtilityClasses as a,img$k as a$,flowCenterDialogSelector as a0,automateUrlSelector as a1,Portal$1 as a2,flowCenterDialogReducer as a3,List$2 as a4,ListItem$1 as a5,ListItemIcon$1 as a6,ListItemText$1 as a7,flowCenterDialogAction as a8,all as a9,flowStyles as aA,NoResults as aB,CircularProgress$1 as aC,img$b as aD,Dialog$1 as aE,setApiEndpoint as aF,TableContainer$1 as aG,Table$1 as aH,TableHead$1 as aI,TableRow$1 as aJ,TableCell$1 as aK,TableSortLabel$1 as aL,TableBody$1 as aM,img$g as aN,Popper$1 as aO,ClickAwayListener as aP,Fade$1 as aQ,img$s as aR,img$p as aS,img$P as aT,img$B as aU,DialogTitle$1 as aV,DialogContent$1 as aW,DialogActions$1 as aX,Snackbar$1 as aY,default_1 as aZ,img$i as a_,img$n as aa,img$o as ab,img$q as ac,img$r as ad,Divider$1 as ae,Tooltip$1 as af,IconButton$1 as ag,img$h as ah,img$F as ai,Skeleton$1 as aj,takeLatest$1 as ak,fetchAllTags as al,put as am,select as an,fetchFlows as ao,call$f as ap,fetchTemplateGallery as aq,isRevisionsExistOnServerRequest as ar,FormLabel$1 as as,default_1$5 as at,FormGroup$1 as au,FormControlLabel$1 as av,Checkbox$1 as aw,fetchTemplateGalleryFallback as ax,Card$1 as ay,img$l as az,styled$1 as b,Radio$2 as b$,img$T as b0,Tabs$1 as b1,Tab$1 as b2,deleteEngine as b3,fetchEngine as b4,img$j as b5,AIWareFormatMessage as b6,FormattedDate as b7,fetchVeritoneGraphQLApi as b8,useTheme as b9,getSnackbarModule as bA,AIWareCacheProvider as bB,img$Q as bC,img$d as bD,img$c as bE,isEmpty_1 as bF,Backdrop$1 as bG,getDefaultMiddleware as bH,isNil_1 as bI,UpDown as bJ,Icon$1 as bK,get_1 as bL,map_1 as bM,keys_1 as bN,RadioGroup$1 as bO,Avatar$1 as bP,img$v as bQ,baseGraphQLApi as bR,FormHelperText$2 as bS,img$f as bT,StyledEngineProvider as bU,ThemeProvider as bV,lightTheme as bW,CssBaseline as bX,Hide as bY,showMessage as bZ,MessageSeverity as b_,KeyboardArrowRight as ba,KeyboardArrowLeft as bb,useId as bc,InputUnstyled as bd,isHostComponent as be,getDefaultExportFromNamespaceIfNotNamed as bf,commonjsRequire as bg,_typeof$4 as bh,_inheritsLoose$2 as bi,_assertThisInitialized$1 as bj,React as bk,hoistNonReactStatics_cjs as bl,_defineProperty$1 as bm,reactDom as bn,Transition$1 as bo,__awaiter$a as bp,__generator$2 as bq,__spread as br,TransitionGroup$1 as bs,connect$1 as bt,Bookmark as bu,EngineFlagIcons as bv,createAsyncThunk as bw,withStyles as bx,getConfigModule as by,getAuthModule as bz,Paper$1 as c,_toKey as c$,createSvgIcon$2 as c0,_hasPath as c1,_createCompounder as c2,_baseIteratee as c3,isArrayLike_1 as c4,toInteger_1 as c5,_toPropertyKey as c6,_setPrototypeOf$3 as c7,commonjsGlobal$1 as c8,combineReducers as c9,configSelector as cA,baseGraphQLApiWithError as cB,VerifiedFilled as cC,Add as cD,ExpandLess as cE,ExpandMore as cF,Collapse$1 as cG,img$15 as cH,Filter$1 as cI,DynamicTable as cJ,useTheme$3 as cK,getThemeProps as cL,useEnhancedEffect$1 as cM,React$1 as cN,_arrayPush as cO,isArray_1 as cP,_baseToString as cQ,_baseTrim as cR,_castSlice as cS,_stringToArray as cT,toString_1 as cU,ReactIs as cV,upperFirst_1 as cW,isString_1 as cX,_baseGet as cY,_baseSlice as cZ,_castPath as c_,createSelector$1 as ca,fork as cb,AIWareThemeProvider as cc,Stack$4 as cd,Close$1 as ce,FullscreenExit as cf,Fullscreen as cg,TabPanel as ch,default_1$2 as ci,InputAdornment$1 as cj,unmountPanel$1 as ck,AvailableComponents as cl,delay$1 as cm,hidePanel$1 as cn,mountPanel$1 as co,DialogContentText$1 as cp,userSelector$2 as cq,MoreVert as cr,Menu$1 as cs,Edit as ct,Upload as cu,Delete as cv,CustomTabs as cw,useBackupImg as cx,img$1y as cy,validate as cz,capitalize$2 as d,isSymbol_1 as d$,_isIndex as d0,channel$1 as d1,useIntl as d2,VideoCamera as d3,Image$1 as d4,Sound as d5,Description as d6,toNumber_1 as d7,ProgressStepper as d8,size_1 as d9,filledInputClasses$1 as dA,ClearIcon as dB,ArrowDropDownIcon as dC,createTheme$1 as dD,systemStyled as dE,useThemeProps$1 as dF,isObject_1 as dG,_arrayMap as dH,_baseEach as dI,_arrayFilter as dJ,_getNative as dK,eq_1 as dL,_root as dM,_Uint8Array as dN,_overArg as dO,_isPrototype as dP,isObjectLike_1 as dQ,_baseGetTag as dR,_arrayLikeKeys as dS,isArguments_1 as dT,isBuffer$3 as dU,isFunction_1 as dV,isTypedArray_1 as dW,_Stack as dX,_baseFor as dY,identity_1 as dZ,_isIterateeCall as d_,take as da,CurlyBraces as db,UnknownDocument as dc,sdkEventManager as dd,SdkEvents as de,SdkError as df,EngineClassIcons as dg,Mode2 as dh,EngineModeIcons as di,DeploymentModelIcons as dj,guid as dk,EditList as dl,forceReflow as dm,getDefaultExportFromCjs as dn,alpha as dp,useTheme$2 as dq,useControlled as dr,useEventCallback as ds,ButtonBase$1 as dt,useForkRef as du,usePreviousProps$1 as dv,setRef as dw,inputClasses$1 as dx,inputBaseClasses$1 as dy,outlinedInputClasses$1 as dz,_objectWithoutPropertiesLoose$2 as e,img$M as e$,_baseMap as e0,_baseUnary as e1,memoizeOne as e2,createBox$1 as e3,_Symbol as e4,_Set as e5,_setToArray as e6,_SetCache as e7,_cacheHas as e8,Slide$1 as e9,selectUserCanAccessResourceCenter as eA,img$4 as eB,img$z as eC,takeEvery$1 as eD,enableBetaFeatures as eE,Badge$1 as eF,openLinkOnNewTab as eG,orange$1 as eH,deepOrange$1 as eI,authSelector as eJ,headerBarSelector as eK,getSortName as eL,img$8 as eM,InputLabel$1 as eN,ListItemAvatar$1 as eO,OrganizationTabIcon as eP,ScopedCssBaseline$1 as eQ,AlarmTwo as eR,getApplicationsApi as eS,ListItemSecondaryAction$1 as eT,updateTokenSuccess as eU,postNotificationCommand as eV,aiwareEvent as eW,notificationCommands as eX,panelsSelector as eY,css as eZ,avatarClasses as e_,updatePanelMicroFrontendProps as ea,setData as eb,useIsFocusVisible as ec,ownerDocument as ed,lighten as ee,darken as ef,slotShouldForwardProp as eg,useSlotProps as eh,keyframes as ei,img$1v as ej,createTheme as ek,injectIntl as el,TabId as em,PersonalProfile$1 as en,Organizations as eo,DataCenter as ep,Process as eq,FlowCenter2 as er,DeveloperCenter as es,Marketplace$1 as et,LibraryCenter as eu,AdminCenter as ev,AdminTabIcon as ew,Resources$1 as ex,DagBuilder as ey,img$S as ez,clsx as f,AddGroup as f$,img$L as f0,img$1u as f1,img$1t as f2,img$1s as f3,img$J as f4,img$1w as f5,img$I as f6,emphasize as f7,_arraySome as f8,ErrorBoundary$1 as f9,ProcessingDetail as fA,img$u as fB,img$w as fC,img$3 as fD,FilterRemove as fE,CheckCircle as fF,FolderOpen as fG,Voice as fH,useDoubleClick as fI,FolderFilled as fJ,Time as fK,img$x as fL,Undefined as fM,YoutubeSource as fN,PodcastSource as fO,TVSource as fP,RadioSource as fQ,selectOrgId as fR,selectIsUserAdmin as fS,ErrorState$1 as fT,StepConnector$1 as fU,NullState$2 as fV,Group as fW,gqlIntrospection as fX,PermissionChangedAction as fY,tabsClasses$1 as fZ,Lock as f_,Information as fa,NewFolder as fb,SpecialFolder as fc,User as fd,Source as fe,Search$1 as ff,selectIsOLPEnabled as fg,getLibraryModule as fh,cmsUrlSelector as fi,betaFeaturesSelector as fj,UserAddFilled as fk,Popover$1 as fl,MenuList$1 as fm,MoveFolder as fn,img$9 as fo,selectApiConfigs$1 as fp,selectPanelByPanelName as fq,FullScreenContainer as fr,EngineCategoryIcons as fs,Settings$2 as ft,Hamburger as fu,List as fv,Download as fw,MoreHor as fx,selectUserOrgEdgeVersion as fy,EditAttributes as fz,generateUtilityClass as g,root as g$,StepperContext$1 as g0,StepContext$1 as g1,SvgIcon$1 as g2,initialConfigSelector as g3,ConfirmationModal as g4,EnumHelpers as g5,formatBytes as g6,NotInterested as g7,mountPanelForResponse$1 as g8,Users as g9,Task as gA,View as gB,_objectSpread2 as gC,serialize as gD,stringify$2 as gE,compile as gF,Check as gG,FormattedRelativeTime$1 as gH,Folder as gI,Hidden as gJ,ArrowUp as gK,ArrowDown as gL,toFinite_1 as gM,_baseForOwn as gN,_arrayReduce as gO,hasIn_1 as gP,useSyncExternalStoreExports as gQ,Packages as gR,Engines as gS,PackagesAvatar as gT,actionChannel as gU,cancelled as gV,flush$3 as gW,cancel as gX,registry as gY,registerComponent as gZ,AvailableWidgets as g_,ApplicationTabIcon as ga,SecurityGroup as gb,Lock2 as gc,NoApps as gd,green$1 as ge,md5 as gf,selectIsSuperAdmin as gg,AddUser as gh,selectors as gi,LibraryDropdown as gj,Remove as gk,Save as gl,Input$3 as gm,Copy as gn,ArrowForward as go,Modal$1 as gp,_baseIsEqual as gq,OutlinedInput$1 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,composeClasses as h,mountWidget as h0,unmountWidget as h1,mountPanel as h2,unmountPanel as h3,hidePanel as h4,unmountAllPanel as h5,init as h6,aiwareEvents as h7,useDispatch as i,jsxRuntime as j,useSelector as k,authStatusSelector as l,makeStyles as m,authContextSelector as n,AuthContext as o,lodash as p,Alert$1 as q,react as r,store$4 as s,authErrorMessage as t,useThemeProps as u,FormControl$1 as v,TextField$1 as w,classNames as x,resetPasswordRequest as y,Button$1 as z};
package/js-core.esm.js.gz CHANGED
Binary file