aiware-js 1.0.0-master.606 → 1.0.0-master.608
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.js +1 -1
- package/index.esm.js.gz +0 -0
- package/js-core.esm.js +1 -1
- package/js-core.esm.js.gz +0 -0
- package/js-core.esm100.js +1 -1
- package/js-core.esm100.js.gz +0 -0
- package/js-core.esm101.js +1 -1
- package/js-core.esm101.js.gz +0 -0
- package/js-core.esm21.js +2 -2
- package/js-core.esm21.js.gz +0 -0
- package/js-core.esm22.js +2 -2
- package/js-core.esm22.js.gz +0 -0
- package/js-core.esm23.js +1 -1
- package/js-core.esm23.js.gz +0 -0
- package/js-core.esm24.js +1 -1
- package/js-core.esm24.js.gz +0 -0
- package/js-core.esm25.js +1 -1
- package/js-core.esm25.js.gz +0 -0
- package/js-core.esm26.js +1 -1
- package/js-core.esm26.js.gz +0 -0
- package/js-core.esm27.js +1 -1
- package/js-core.esm27.js.gz +0 -0
- package/js-core.esm28.js +1 -1
- package/js-core.esm28.js.gz +0 -0
- package/js-core.esm29.js +1 -1
- package/js-core.esm29.js.gz +0 -0
- package/js-core.esm30.js +1 -1
- package/js-core.esm30.js.gz +0 -0
- package/js-core.esm31.js +1 -1
- package/js-core.esm31.js.gz +0 -0
- package/js-core.esm33.js +1 -1
- package/js-core.esm33.js.gz +0 -0
- package/js-core.esm34.js +1 -1
- package/js-core.esm34.js.gz +0 -0
- package/js-core.esm36.js +1 -1
- package/js-core.esm36.js.gz +0 -0
- package/js-core.esm37.js +1 -1
- package/js-core.esm37.js.gz +0 -0
- package/js-core.esm38.js +1 -1
- package/js-core.esm38.js.gz +0 -0
- package/js-core.esm39.js +1 -1
- package/js-core.esm39.js.gz +0 -0
- package/js-core.esm40.js +1 -1
- package/js-core.esm40.js.gz +0 -0
- package/js-core.esm41.js +1 -14
- package/js-core.esm41.js.gz +0 -0
- package/js-core.esm42.js +1 -12
- package/js-core.esm42.js.gz +0 -0
- package/js-core.esm43.js +7 -47
- package/js-core.esm43.js.gz +0 -0
- package/js-core.esm44.js +12 -1
- package/js-core.esm44.js.gz +0 -0
- package/js-core.esm45.js +54 -1
- package/js-core.esm45.js.gz +0 -0
- package/js-core.esm46.js +1 -108
- package/js-core.esm46.js.gz +0 -0
- package/js-core.esm47.js +1 -1
- package/js-core.esm47.js.gz +0 -0
- package/js-core.esm48.js +92 -198
- package/js-core.esm48.js.gz +0 -0
- package/js-core.esm49.js +1 -1
- package/js-core.esm49.js.gz +0 -0
- package/js-core.esm50.js +214 -1
- package/js-core.esm50.js.gz +0 -0
- package/js-core.esm51.js +1 -1
- package/js-core.esm51.js.gz +0 -0
- package/js-core.esm52.js +1 -1
- package/js-core.esm52.js.gz +0 -0
- package/js-core.esm53.js +1 -37
- package/js-core.esm53.js.gz +0 -0
- package/js-core.esm54.js +37 -1
- package/js-core.esm54.js.gz +0 -0
- package/js-core.esm55.js +1 -1
- package/js-core.esm55.js.gz +0 -0
- package/js-core.esm56.js +1 -1
- package/js-core.esm56.js.gz +0 -0
- package/js-core.esm57.js +1 -1
- package/js-core.esm57.js.gz +0 -0
- package/js-core.esm58.js +31 -1
- package/js-core.esm58.js.gz +0 -0
- package/js-core.esm59.js +1 -31
- package/js-core.esm59.js.gz +0 -0
- package/js-core.esm60.js +85 -1
- package/js-core.esm60.js.gz +0 -0
- package/js-core.esm61.js +52 -73
- package/js-core.esm61.js.gz +0 -0
- package/js-core.esm62.js +7 -63
- package/js-core.esm62.js.gz +0 -0
- package/js-core.esm63.js +1 -8
- package/js-core.esm63.js.gz +0 -0
- package/js-core.esm64.js +1 -1
- package/js-core.esm64.js.gz +0 -0
- package/js-core.esm65.js +56 -1
- package/js-core.esm65.js.gz +0 -0
- package/js-core.esm66.js +116 -48
- package/js-core.esm66.js.gz +0 -0
- package/js-core.esm67.js +150 -107
- package/js-core.esm67.js.gz +0 -0
- package/js-core.esm68.js +57 -149
- package/js-core.esm68.js.gz +0 -0
- package/js-core.esm69.js +15 -75
- package/js-core.esm69.js.gz +0 -0
- package/js-core.esm70.js +1 -15
- package/js-core.esm70.js.gz +0 -0
- package/js-core.esm71.js +1 -1
- package/js-core.esm71.js.gz +0 -0
- package/js-core.esm72.js +121 -1
- package/js-core.esm72.js.gz +0 -0
- package/js-core.esm73.js +14 -103
- package/js-core.esm73.js.gz +0 -0
- package/js-core.esm74.js +15 -27
- package/js-core.esm74.js.gz +0 -0
- package/js-core.esm75.js +13 -19
- package/js-core.esm75.js.gz +0 -0
- package/js-core.esm76.js +1 -14
- package/js-core.esm76.js.gz +0 -0
- package/js-core.esm77.js +1 -1
- package/js-core.esm77.js.gz +0 -0
- package/js-core.esm78.js +61 -1
- package/js-core.esm78.js.gz +0 -0
- package/js-core.esm79.js +37 -52
- package/js-core.esm79.js.gz +0 -0
- package/js-core.esm80.js +79 -37
- package/js-core.esm80.js.gz +0 -0
- package/js-core.esm81.js +1 -88
- package/js-core.esm81.js.gz +0 -0
- package/js-core.esm82.js +1 -1
- package/js-core.esm82.js.gz +0 -0
- package/js-core.esm83.js +35 -1
- package/js-core.esm83.js.gz +0 -0
- package/js-core.esm84.js +1 -35
- package/js-core.esm84.js.gz +0 -0
- package/js-core.esm85.js +1 -1
- package/js-core.esm85.js.gz +0 -0
- package/js-core.esm86.js +1 -1
- package/js-core.esm86.js.gz +0 -0
- package/js-core.esm87.js +1 -1
- package/js-core.esm87.js.gz +0 -0
- package/js-core.esm88.js +1 -1
- package/js-core.esm88.js.gz +0 -0
- package/js-core.esm89.js +1 -1
- package/js-core.esm89.js.gz +0 -0
- package/js-core.esm90.js +1 -1
- package/js-core.esm90.js.gz +0 -0
- package/js-core.esm91.js +1 -1
- package/js-core.esm91.js.gz +0 -0
- package/js-core.esm92.js +1 -1
- package/js-core.esm92.js.gz +0 -0
- package/js-core.esm93.js +1 -1
- package/js-core.esm93.js.gz +0 -0
- package/js-core.esm94.js +1 -1
- package/js-core.esm94.js.gz +0 -0
- package/js-core.esm95.js +1 -1
- package/js-core.esm95.js.gz +0 -0
- package/js-core.esm96.js +1 -1
- package/js-core.esm96.js.gz +0 -0
- package/js-core.esm97.js +1 -1
- package/js-core.esm97.js.gz +0 -0
- package/js-core.esm98.js +1 -1
- package/js-core.esm98.js.gz +0 -0
- package/js-core.esm99.js +1 -1
- package/js-core.esm99.js.gz +0 -0
- package/js-core.umd.css +92 -92
- package/js-core.umd.css.gz +0 -0
- package/js-core.umd.js +182 -182
- package/js-core.umd.js.gz +0 -0
- package/js-core.umd.min.css +92 -92
- package/js-core.umd.min.css.gz +0 -0
- package/locales/es.json +1 -1
- package/locales/fr.json +1 -1
- package/package.json +4 -4
- package/js-core.esm102.js +0 -1
- package/js-core.esm102.js.gz +0 -0
package/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{h3 as AvailableWidgets,hc as aiwareEvents,h9 as hidePanel,cs as hidePanelAction,hb as init,h7 as mountPanel,ct as mountPanelAction,h5 as mountWidget,h2 as registerComponent,h1 as registry,h4 as root,
|
|
1
|
+
export{h3 as AvailableWidgets,hc as aiwareEvents,h9 as hidePanel,cs as hidePanelAction,hb as init,h7 as mountPanel,ct as mountPanelAction,h5 as mountWidget,h2 as registerComponent,h1 as registry,h4 as root,eo as setData,s as store,ha as unmountAllPanel,h8 as unmountPanel,cp as unmountPanelAction,h6 as unmountWidget,en as updatePanelMicroFrontendPropsAction}from"./js-core.esm.js";
|
package/index.esm.js.gz
CHANGED
|
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.esm7.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm9.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm21.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm39.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm41.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm41.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm41.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.esm39.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm39.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm39.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm45.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm42.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm42.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm42.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm42.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm42.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm46.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm46.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm46.js"),t=e.FileInfoPanel;break;case AvailableComponents.DATA_CENTER_IMPORTER:e=yield import("./js-core.esm56.js"),t=e.DataCenterImporter;break;case AvailableComponents.DATA_LABELER:e=yield import("./js-core.esm58.js"),t=e.DataLabelerPanel;break;case AvailableComponents.ADMIN_CENTER_OPEN_ID:e=yield import("./js-core.esm59.js"),t=e.AdminCenterOpenId;break;case AvailableComponents.ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm60.js"),t=e.AdminCenterBrowse;break;case AvailableComponents.DATA_CENTER_PROCESS_AI:e=yield import("./js-core.esm66.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm21.js"),t=e.EngineCenterFilter;break;case AvailableComponents.APP_CENTER_FILTER:e=yield import("./js-core.esm67.js"),t=e.AppCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm21.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm21.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm21.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm21.js"),t=e.VersionHistoryPanel;break;case AvailableComponents.SUPPORTED_FILE_TYPES:e=yield import("./js-core.esm56.js"),t=e.SupportedFileTypes;break;case AvailableComponents.EDIT_FILE_METADATA:e=yield import("./js-core.esm56.js"),t=e.EditFileMetadata;break;case AvailableWidgets.APP_CENTER_BROWSE:e=yield import("./js-core.esm67.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm68.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm68.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm68.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm68.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=yield import("./js-core.esm68.js"),t=e.AppCenterContextMenuExtensionPanel;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm68.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm68.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_BROWSE:e=yield import("./js-core.esm67.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_DETAILS:e=yield import("./js-core.esm67.js"),t=e.AppCenterDetails;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm66.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm53.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm48.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm48.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm48.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm48.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm46.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm46.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=yield import("./js-core.esm46.js"),t=e.SelectImportSource;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm46.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm53.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm53.js"),t=e.AddMemberPanel;break;case AvailableComponents.APPLICATION_DETAILS_PANEL:e=yield import("./js-core.esm61.js"),t=e.ApplicationDetailsPanel;break;case AvailableComponents.PROCESSING_CENTER_SOURCES:e=yield import("./js-core.esm69.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm69.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.esm61.js"),t=e.AddUsersPanel;break;case AvailableComponents.PROCESSING_CENTER_BROWSE:e=yield import("./js-core.esm72.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm73.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm41.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm75.js"),t=e.DagBuilder;break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=yield import("./js-core.esm76.js").then(function(e){return e.at}),t=e.ProcessingCenterIngestion;break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=yield import("./js-core.esm76.js").then(function(e){return e.at}),t=e.ProcessingCenterAdvancedSettings;break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=yield import("./js-core.esm76.js").then(function(e){return e.at}),t=e.ProcessingCenterAffiliatePanel;break;case AvailableComponents.JOBS_DETAILS_PANEL:e=yield import("./js-core.esm73.js"),t=e.JobsDetailsPanel;break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm74.js"),t=e.TasksTableSettingsPanel;break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=yield import("./js-core.esm78.js"),t=e.ResourceCenterBrowse;break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=yield import("./js-core.esm82.js"),t=e.PackageDetails;break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=yield import("./js-core.esm83.js").then(function(e){return e.M}),t=e.PackageManager;break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm84.js"),t=e.InstanceAdminCenterBrowse;break;case AvailableComponents.MANAGE_GRANTS:e=yield import("./js-core.esm82.js"),t=e.ManageGrantsPanel;break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=yield import("./js-core.esm85.js"),t=e.SchemaDetailsPanel;break;case AvailableComponents.USER_DETAILS_PANEL:e=yield import("./js-core.esm62.js"),t=e.UserDetailsPanel;break;case AvailableComponents.CREATE_OR_UPDATE_TOKEN_PANEL:e=yield import("./js-core.esm63.js"),t=e.CreateOrUpdateApiTokenPanel}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:"undefined",commit:"d2d8489d1",releaseDate:"2023-05-31T15:21:08.939Z"});export{DynamicModuleLoader as $,AIWareIntlProvider as A,Box$1 as B,resetPasswordRequest as C,InputAdornment$1 as D,IconButton$1 as E,FormattedMessage$1 as F,Grid$1 as G,Select$1 as H,InputLabel$1 as I,Location as J,Button$1 as K,LoadingButton$1 as L,MenuItem$1 as M,Divider$1 as N,OutlinedInput$1 as O,Provider$2 as P,createTheme$1 as Q,systemStyled as R,Switch$1 as S,Typography$1 as T,useThemeProps$1 as U,createAction as V,createReducer as W,createSlice as X,ENGINE_OWNER_TYPES as Y,ENGINE_FILTER_TYPES as Z,_extends as _,generateUtilityClasses as a,DialogTitle$1 as a$,preferredLanguageSelector as a0,baseUrlSelector as a1,rootApiSelector as a2,sessionTokenSelector as a3,graphEndpointSelector as a4,controllerNodeRedImageSelector as a5,controllerUrlSelector as a6,automateControllerUrlSelector as a7,flowCenterDialogSelector as a8,automateUrlSelector as a9,FormGroup$1 as aA,FormControlLabel$1 as aB,Checkbox$1 as aC,fetchTemplateGalleryFallback as aD,Card$1 as aE,img$l as aF,flowStyles as aG,NoResults as aH,CircularProgress$1 as aI,img$b as aJ,Dialog$1 as aK,setApiEndpoint as aL,TableContainer$1 as aM,Table$1 as aN,TableHead$1 as aO,TableRow$1 as aP,TableCell$1 as aQ,TableSortLabel$1 as aR,TableBody$1 as aS,img$g as aT,Popper$1 as aU,ClickAwayListener as aV,Fade$1 as aW,img$s as aX,img$p as aY,img$P as aZ,img$B as a_,Portal$1 as aa,flowCenterDialogReducer as ab,List$2 as ac,ListItem$1 as ad,ListItemIcon$1 as ae,ListItemText$1 as af,flowCenterDialogAction as ag,all as ah,img$n as ai,img$o as aj,img$q as ak,img$r as al,Tooltip$1 as am,img$h as an,img$F as ao,Skeleton$1 as ap,takeLatest$1 as aq,fetchAllTags as ar,put as as,select as at,fetchFlows as au,call$f as av,fetchTemplateGallery as aw,isRevisionsExistOnServerRequest as ax,FormLabel$1 as ay,default_1$5 as az,styled$1 as b,ThemeProvider as b$,DialogContent$1 as b0,DialogActions$1 as b1,Snackbar$1 as b2,default_1 as b3,img$i as b4,img$k as b5,img$T as b6,Tabs$1 as b7,Tab$1 as b8,deleteEngine as b9,Bookmark as bA,EngineFlagIcons as bB,createAsyncThunk as bC,withStyles as bD,getConfigModule as bE,getAuthModule as bF,getSnackbarModule as bG,AIWareCacheProvider as bH,img$Q as bI,img$d as bJ,img$c as bK,isEmpty_1 as bL,Backdrop$1 as bM,getDefaultMiddleware as bN,isNil_1 as bO,UpDown as bP,Icon$1 as bQ,get_1 as bR,map_1 as bS,keys_1 as bT,RadioGroup$1 as bU,Avatar$1 as bV,img$v as bW,baseGraphQLApi as bX,FormHelperText$2 as bY,img$f as bZ,StyledEngineProvider as b_,fetchEngine as ba,img$j as bb,AIWareFormatMessage as bc,FormattedDate as bd,fetchVeritoneGraphQLApi as be,useTheme as bf,KeyboardArrowRight as bg,KeyboardArrowLeft as bh,useId as bi,InputUnstyled as bj,isHostComponent as bk,getDefaultExportFromNamespaceIfNotNamed as bl,commonjsRequire as bm,_typeof$4 as bn,_inheritsLoose$2 as bo,_assertThisInitialized$1 as bp,React as bq,hoistNonReactStatics_cjs as br,_defineProperty$1 as bs,reactDom as bt,Transition$1 as bu,__awaiter$a as bv,__generator$2 as bw,__spread as bx,TransitionGroup$1 as by,connect$1 as bz,Paper$1 as c,upperFirst_1 as c$,lightTheme as c0,CssBaseline as c1,Hide as c2,showMessage as c3,MessageSeverity as c4,Radio$2 as c5,createSvgIcon$2 as c6,_hasPath as c7,_createCompounder as c8,_baseIteratee as c9,Delete as cA,CustomTabs as cB,useBackupImg as cC,img$1y as cD,validate as cE,configSelector as cF,baseGraphQLApiWithError as cG,VerifiedFilled as cH,Add as cI,ExpandLess as cJ,ExpandMore as cK,Collapse$1 as cL,img$15 as cM,Filter$1 as cN,DynamicTable as cO,useTheme$3 as cP,getThemeProps as cQ,useEnhancedEffect$1 as cR,React$1 as cS,_arrayPush as cT,isArray_1 as cU,_baseToString as cV,_baseTrim as cW,_castSlice as cX,_stringToArray as cY,toString_1 as cZ,ReactIs as c_,isArrayLike_1 as ca,toInteger_1 as cb,_toPropertyKey as cc,_setPrototypeOf$3 as cd,commonjsGlobal$1 as ce,combineReducers as cf,createSelector$1 as cg,fork as ch,AIWareThemeProvider as ci,Stack$4 as cj,Close$1 as ck,FullscreenExit as cl,Fullscreen as cm,TabPanel as cn,default_1$2 as co,unmountPanel$1 as cp,AvailableComponents as cq,delay$1 as cr,hidePanel$1 as cs,mountPanel$1 as ct,DialogContentText$1 as cu,userSelector$2 as cv,MoreVert as cw,Menu$1 as cx,Edit as cy,Upload as cz,capitalize$2 as d,identity_1 as d$,isString_1 as d0,_baseGet as d1,_baseSlice as d2,_castPath as d3,_toKey as d4,_isIndex as d5,channel$1 as d6,useIntl as d7,VideoCamera as d8,Image$1 as d9,usePreviousProps$1 as dA,setRef as dB,inputClasses$1 as dC,inputBaseClasses$1 as dD,outlinedInputClasses$1 as dE,filledInputClasses$1 as dF,ClearIcon as dG,ArrowDropDownIcon as dH,isObject_1 as dI,_arrayMap as dJ,_baseEach as dK,_arrayFilter as dL,_getNative as dM,eq_1 as dN,_root as dO,_Uint8Array as dP,_overArg as dQ,_isPrototype as dR,isObjectLike_1 as dS,_baseGetTag as dT,_arrayLikeKeys as dU,isArguments_1 as dV,isBuffer$3 as dW,isFunction_1 as dX,isTypedArray_1 as dY,_Stack as dZ,_baseFor as d_,Sound as da,Description as db,toNumber_1 as dc,ProgressStepper as dd,size_1 as de,take as df,CurlyBraces as dg,UnknownDocument as dh,sdkEventManager as di,SdkEvents as dj,SdkError as dk,EngineClassIcons as dl,Mode2 as dm,EngineModeIcons as dn,DeploymentModelIcons as dp,guid as dq,EditList as dr,forceReflow as ds,getDefaultExportFromCjs as dt,alpha as du,useTheme$2 as dv,useControlled as dw,useEventCallback as dx,ButtonBase$1 as dy,useForkRef as dz,_objectWithoutPropertiesLoose$2 as e,avatarClasses as e$,_isIterateeCall as e0,isSymbol_1 as e1,_baseMap as e2,_baseUnary as e3,memoizeOne as e4,createBox$1 as e5,_Symbol as e6,_Set as e7,_setToArray as e8,_SetCache as e9,DagBuilder as eA,img$S as eB,selectUserCanAccessResourceCenter as eC,img$4 as eD,img$z as eE,takeEvery$1 as eF,enableBetaFeatures as eG,Badge$1 as eH,openLinkOnNewTab as eI,orange$1 as eJ,deepOrange$1 as eK,authSelector as eL,headerBarSelector as eM,getSortName as eN,img$8 as eO,ListItemAvatar$1 as eP,OrganizationTabIcon as eQ,ScopedCssBaseline$1 as eR,AlarmTwo as eS,getApplicationsApi as eT,ListItemSecondaryAction$1 as eU,updateTokenSuccess as eV,postNotificationCommand as eW,aiwareEvent as eX,notificationCommands as eY,panelsSelector as eZ,css as e_,_cacheHas as ea,Slide$1 as eb,updatePanelMicroFrontendProps as ec,setData as ed,useIsFocusVisible as ee,ownerDocument as ef,lighten as eg,darken as eh,slotShouldForwardProp as ei,useSlotProps as ej,keyframes as ek,img$1v as el,createTheme as em,injectIntl as en,TabId as eo,PersonalProfile$1 as ep,Organizations as eq,DataCenter as er,Process as es,FlowCenter2 as et,DeveloperCenter as eu,Marketplace$1 as ev,LibraryCenter as ew,AdminCenter as ex,AdminTabIcon as ey,Resources$1 as ez,clsx as f,Lock as f$,img$M as f0,img$L as f1,img$1u as f2,img$1t as f3,img$1s as f4,img$J as f5,img$1w as f6,img$I as f7,emphasize as f8,_arraySome as f9,EditAttributes as fA,ProcessingDetail as fB,img$u as fC,img$w as fD,img$3 as fE,FilterRemove as fF,CheckCircle as fG,FolderOpen as fH,Voice as fI,useDoubleClick as fJ,FolderFilled as fK,Time as fL,img$x as fM,Undefined as fN,PodcastSource as fO,YoutubeSource as fP,TVSource as fQ,RadioSource as fR,selectOrgId as fS,selectIsUserAdmin as fT,ErrorState$1 as fU,StepConnector$1 as fV,NullState$2 as fW,Group as fX,gqlIntrospection as fY,PermissionChangedAction as fZ,tabsClasses$1 as f_,ErrorBoundary$1 as fa,Information as fb,NewFolder as fc,SpecialFolder as fd,User as fe,Source as ff,Search$1 as fg,selectIsOLPEnabled as fh,getLibraryModule as fi,cmsUrlSelector as fj,betaFeaturesSelector as fk,UserAddFilled as fl,Popover$1 as fm,MenuList$1 as fn,MoveFolder as fo,img$9 as fp,selectApiConfigs$1 as fq,selectPanelByPanelName as fr,FullScreenContainer as fs,EngineCategoryIcons as ft,Settings$2 as fu,Hamburger as fv,List as fw,Download as fx,MoreHor as fy,selectUserOrgEdgeVersion as fz,generateUtilityClass as g,flush$3 as g$,AddGroup as g0,StepperContext$1 as g1,StepContext$1 as g2,SvgIcon$1 as g3,initialConfigSelector as g4,ConfirmationModal as g5,EnumHelpers as g6,formatBytes as g7,NotInterested as g8,mountPanelForResponse$1 as g9,_castFunction as gA,Article as gB,Task as gC,View as gD,_objectSpread2 as gE,serialize as gF,stringify$2 as gG,compile as gH,Check as gI,FormattedRelativeTime$1 as gJ,BottomQueue as gK,TopQueue as gL,Pause as gM,Cancel as gN,Folder as gO,Hidden as gP,toFinite_1 as gQ,_baseForOwn as gR,_arrayReduce as gS,hasIn_1 as gT,useSyncExternalStoreExports as gU,Packages as gV,selectUserCanCreatePackage as gW,Engines as gX,PackagesAvatar as gY,actionChannel as gZ,cancelled as g_,Users as ga,ApplicationTabIcon as gb,SecurityGroup as gc,Lock2 as gd,NoApps as ge,green$1 as gf,md5 as gg,selectIsSuperAdmin as gh,AddUser as gi,ArrowUp as gj,ArrowDown as gk,selectors as gl,LibraryDropdown as gm,Remove as gn,Save as go,Input$3 as gp,Copy as gq,ArrowForward as gr,Modal$1 as gs,_baseIsEqual as gt,_getSymbols as gu,stubArray_1 as gv,_baseGetAllKeys as gw,_getTag as gx,_nodeUtil as gy,_getAllKeys as gz,composeClasses as h,cancel as h0,registry as h1,registerComponent as h2,AvailableWidgets as h3,root as h4,mountWidget as h5,unmountWidget as h6,mountPanel as h7,unmountPanel as h8,hidePanel as h9,unmountAllPanel as ha,init as hb,aiwareEvents as hc,createSvgIcon$1 as i,jsxRuntime as j,interopRequireDefault as k,useDispatch as l,makeStyles as m,useSelector as n,authStatusSelector as o,authContextSelector as p,AuthContext as q,react as r,store$4 as s,lodash as t,useThemeProps as u,Alert$1 as v,authErrorMessage as w,FormControl$1 as x,TextField$1 as y,classNames 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.esm7.js"),t=e.App;break;case AvailableWidgets.FLOW_WIDGET:e=yield import("./js-core.esm9.js").then(function(e){return e.i}),t=e.App;break;case AvailableWidgets.ENGINE_CENTER_BROWSE:e=yield import("./js-core.esm21.js"),t=e.EngineCenterBrowse;break;case AvailablePanels.SIMPLE_PANEL:e=yield import("./js-core.esm41.js"),t=e.Panel;break;case AvailablePanels.APP_BAR_PANEL_TEMPLATE:e=yield import("./js-core.esm43.js"),t=e.AppbarPanel;break;case AvailablePanels.APP_BAR_TAB_PANEL_TEMPLATE:e=yield import("./js-core.esm43.js"),t=e.AppbarTabPanel;break;case AvailablePanels.TAB_TEMPLATE:e=yield import("./js-core.esm43.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.esm41.js"),t=e.SamplePanel1;break;case AvailableComponents.TEST_COMPONENT2:e=yield import("./js-core.esm41.js"),t=e.SamplePanel2;break;case AvailableComponents.TEST_COMPONENT3:e=yield import("./js-core.esm41.js"),t=e.SamplePanel3;break;case AvailableComponents.SETTING_PREFERENCE:e=yield import("./js-core.esm47.js"),t=e.SettingsPreferencesPanel;break;case AvailableComponents.ORGANIZATION_PANEL:e=yield import("./js-core.esm44.js"),t=e.OrganizationPanel;break;case AvailableComponents.INVITE_USERS_PANEL:e=yield import("./js-core.esm44.js"),t=e.InviteUsersPanel;break;case AvailableComponents.INVITE_REQUESTS_PANEL:e=yield import("./js-core.esm44.js"),t=e.InviteRequestsPanel;break;case AvailableComponents.REVIEW_ORG_INVITE_PANEL:e=yield import("./js-core.esm44.js"),t=e.ReviewRequestPanel;break;case AvailableComponents.ADD_APPLICATIONS:e=yield import("./js-core.esm44.js"),t=e.AddApplicationsPanel;break;case AvailableComponents.DATA_CENTER_BROWSE:e=yield import("./js-core.esm48.js"),t=e.DataCenterBrowse;break;case AvailableComponents.DATA_CENTER_FOLDERS_AND_FILES:e=yield import("./js-core.esm48.js"),t=e.FoldersAndFilesPanel;break;case AvailableComponents.DATA_CENTER_FILE_INFO_PANEL:e=yield import("./js-core.esm48.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.esm65.js"),t=e.DataCenterProcessAI;break;case AvailableComponents.ENGINE_CENTER_NEW:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.EngineCenterNew;break;case AvailableComponents.ENGINE_CENTER_FILTER:e=yield import("./js-core.esm21.js"),t=e.EngineCenterFilter;break;case AvailableComponents.APP_CENTER_FILTER:e=yield import("./js-core.esm66.js"),t=e.AppCenterFilter;break;case AvailableComponents.ENGINE_CENTER_DETAILS:e=yield import("./js-core.esm21.js"),t=e.EngineDetails;break;case AvailableComponents.ENGINE_CENTER_NEW_BUILD:e=yield import("./js-core.esm21.js"),t=e.CreateNewBuildPanel;break;case AvailableComponents.ENGINE_CENTER_CUSTOM_FIELDS_FORM:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.EngineCenterCustomFieldsForm;break;case AvailableComponents.ENGINE_CENTER_SCHEMAS_FORM_PANEL:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.SchemasFormPanel;break;case AvailableComponents.ENGINE_CENTER_INPUT_TYPE_FLYOUT:e=yield import("./js-core.esm22.js").then(function(e){return e.h}),t=e.InputTypeFlyout;break;case AvailableComponents.ENGINE_CENTER_EDIT_RELEASE_NOTES:e=yield import("./js-core.esm21.js"),t=e.EditReleaseNotes;break;case AvailableComponents.ENGINE_CENTER_VERSION_HISTORY_PANEL:e=yield import("./js-core.esm21.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.esm66.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_NEW:e=yield import("./js-core.esm67.js"),t=e.AppCenterNew;break;case AvailableComponents.APP_CENTER_ADD_FLOW_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterAddFlowPanel;break;case AvailableComponents.APP_CENTER_ADD_SCHEMA_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterAddSchemaPanel;break;case AvailableComponents.APP_CENTER_CONFIG_FIELDS_FORM:e=yield import("./js-core.esm67.js"),t=e.AppCenterConfigFieldsForm;break;case AvailableComponents.APP_CENTER_CONTEXT_MENU_EXTENSIONS:e=yield import("./js-core.esm67.js"),t=e.AppCenterContextMenuExtensionPanel;break;case AvailableComponents.APP_CENTER_EVENT_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterEventPanel;break;case AvailableComponents.APP_CENTER_AUTOMATE_PALETTE_INTEGRATION_PANEL:e=yield import("./js-core.esm67.js"),t=e.AppCenterPaletteIntegrationPanel;break;case AvailableComponents.APP_CENTER_BROWSE:e=yield import("./js-core.esm66.js"),t=e.AppCenterBrowse;break;case AvailableComponents.APP_CENTER_DETAILS:e=yield import("./js-core.esm66.js"),t=e.AppCenterDetails;break;case AvailableComponents.DATA_CENTER_ENGINE_SELECTION:e=yield import("./js-core.esm65.js"),t=e.DataCenterEngineSelection;break;case AvailableComponents.ADMIN_CENTER_NEW_GROUP_PANEL:e=yield import("./js-core.esm54.js"),t=e.NewGroupPanel;break;case AvailableComponents.PERMISSIONS_PANEL:e=yield import("./js-core.esm50.js"),t=e.PermissionsPanel;break;case AvailableComponents.GROUP_INFO_PANEL:e=yield import("./js-core.esm50.js"),t=e.GroupInfoPanel;break;case AvailableComponents.NEW_PERMISSION_SET_PANEL:e=yield import("./js-core.esm50.js"),t=e.NewPermissionSetPanel;break;case AvailableComponents.PERMISSION_SET_DETAILS_PANEL:e=yield import("./js-core.esm50.js"),t=e.PermissionSetDetailsPanel;break;case AvailableComponents.DATA_CENTER_MDP_IFRAME_PANEL:e=yield import("./js-core.esm48.js"),t=e.MediaDetailsPanelIframe;break;case AvailableComponents.DATA_CENTER_INGESTION_CREATION_PANEL:e=yield import("./js-core.esm48.js"),t=e.IngestionCreationPanel;break;case AvailableComponents.DATA_CENTER_SELECT_IMPORT_SOURCE:e=yield import("./js-core.esm48.js"),t=e.SelectImportSource;break;case AvailableComponents.DATA_CENTER_SOURCE_CREATION_PANEL:e=yield import("./js-core.esm48.js"),t=e.SourceCreationPanel;break;case AvailableComponents.ADMIN_CENTER_GROUP_DETAILS_PANEL:e=yield import("./js-core.esm54.js"),t=e.GroupDetailsPanel;break;case AvailableComponents.ADMIN_CENTER_ADD_MEMBER_PANEL:e=yield import("./js-core.esm54.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.esm68.js"),t=e.ProcessingCenterSources;break;case AvailableComponents.PROCESSING_CENTER_ERROR_DETAIL:e=yield import("./js-core.esm68.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.esm71.js"),t=e.ProcessingCenterBrowse;break;case AvailableComponents.JOBS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm72.js"),t=e.JobsTableSettingsPanel;break;case AvailableComponents.VERSION_PANEL:e=yield import("./js-core.esm43.js"),t=e.VersionPanel;break;case AvailableComponents.PROCESSING_CENTER_DAG_BUILDER:e=yield import("./js-core.esm74.js"),t=e.DagBuilder;break;case AvailableComponents.PROCESSING_CENTER_INGESTION:e=yield import("./js-core.esm75.js").then(function(e){return e.at}),t=e.ProcessingCenterIngestion;break;case AvailableComponents.PROCESSING_CENTER_ADVANCED_SETTINGS:e=yield import("./js-core.esm75.js").then(function(e){return e.at}),t=e.ProcessingCenterAdvancedSettings;break;case AvailableComponents.PROCESSING_CENTER_AFFILIATE_PANEL:e=yield import("./js-core.esm75.js").then(function(e){return e.at}),t=e.ProcessingCenterAffiliatePanel;break;case AvailableComponents.JOBS_DETAILS_PANEL:e=yield import("./js-core.esm72.js"),t=e.JobsDetailsPanel;break;case AvailableComponents.TASKS_TABLE_SETTINGS_PANEL:e=yield import("./js-core.esm73.js"),t=e.TasksTableSettingsPanel;break;case AvailableComponents.RESOURCE_CENTER_BROWSE:e=yield import("./js-core.esm77.js"),t=e.ResourceCenterBrowse;break;case AvailableComponents.PACKAGE_DETAILS_PANEL:e=yield import("./js-core.esm81.js"),t=e.PackageDetails;break;case AvailableComponents.PACKAGE_MANAGER_PANEL:e=yield import("./js-core.esm82.js").then(function(e){return e.M}),t=e.PackageManager;break;case AvailableComponents.INSTANCE_ADMIN_CENTER_BROWSE:e=yield import("./js-core.esm83.js"),t=e.InstanceAdminCenterBrowse;break;case AvailableComponents.MANAGE_GRANTS:e=yield import("./js-core.esm81.js"),t=e.ManageGrantsPanel;break;case AvailableComponents.SCHEMA_DETAILS_PANEL:e=yield import("./js-core.esm84.js"),t=e.SchemaDetailsPanel;break;case AvailableComponents.USER_DETAILS_PANEL:e=yield import("./js-core.esm61.js"),t=e.UserDetailsPanel;break;case AvailableComponents.CREATE_OR_UPDATE_TOKEN_PANEL:e=yield import("./js-core.esm62.js"),t=e.CreateOrUpdateApiTokenPanel}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:"undefined",commit:"c678edf39",releaseDate:"2023-05-31T20:29:57.045Z"});export{DynamicModuleLoader as $,AIWareIntlProvider as A,Box$1 as B,resetPasswordRequest as C,InputAdornment$1 as D,IconButton$1 as E,FormattedMessage$1 as F,Grid$1 as G,Select$1 as H,InputLabel$1 as I,Location as J,Button$1 as K,LoadingButton$1 as L,MenuItem$1 as M,Divider$1 as N,OutlinedInput$1 as O,Provider$2 as P,createTheme$1 as Q,systemStyled as R,Switch$1 as S,Typography$1 as T,useThemeProps$1 as U,createAction as V,createReducer as W,createSlice as X,ENGINE_OWNER_TYPES as Y,ENGINE_FILTER_TYPES as Z,_extends as _,generateUtilityClasses as a,DialogTitle$1 as a$,preferredLanguageSelector as a0,baseUrlSelector as a1,rootApiSelector as a2,sessionTokenSelector as a3,graphEndpointSelector as a4,controllerNodeRedImageSelector as a5,controllerUrlSelector as a6,automateControllerUrlSelector as a7,flowCenterDialogSelector as a8,automateUrlSelector as a9,FormGroup$1 as aA,FormControlLabel$1 as aB,Checkbox$1 as aC,fetchTemplateGalleryFallback as aD,Card$1 as aE,img$l as aF,flowStyles as aG,NoResults as aH,CircularProgress$1 as aI,img$b as aJ,Dialog$1 as aK,setApiEndpoint as aL,TableContainer$1 as aM,Table$1 as aN,TableHead$1 as aO,TableRow$1 as aP,TableCell$1 as aQ,TableSortLabel$1 as aR,TableBody$1 as aS,img$g as aT,Popper$1 as aU,ClickAwayListener as aV,Fade$1 as aW,img$s as aX,img$p as aY,img$P as aZ,img$B as a_,Portal$1 as aa,flowCenterDialogReducer as ab,List$2 as ac,ListItem$1 as ad,ListItemIcon$1 as ae,ListItemText$1 as af,flowCenterDialogAction as ag,all as ah,img$n as ai,img$o as aj,img$q as ak,img$r as al,Tooltip$1 as am,img$h as an,img$F as ao,Skeleton$1 as ap,takeLatest$1 as aq,fetchAllTags as ar,put as as,select as at,fetchFlows as au,call$f as av,fetchTemplateGallery as aw,isRevisionsExistOnServerRequest as ax,FormLabel$1 as ay,default_1$5 as az,styled$1 as b,ThemeProvider as b$,DialogContent$1 as b0,DialogActions$1 as b1,Snackbar$1 as b2,default_1 as b3,img$i as b4,img$k as b5,img$T as b6,Tabs$1 as b7,Tab$1 as b8,deleteEngine as b9,Bookmark as bA,EngineFlagIcons as bB,createAsyncThunk as bC,withStyles as bD,getConfigModule as bE,getAuthModule as bF,getSnackbarModule as bG,AIWareCacheProvider as bH,img$Q as bI,img$d as bJ,img$c as bK,isEmpty_1 as bL,Backdrop$1 as bM,getDefaultMiddleware as bN,isNil_1 as bO,UpDown as bP,Icon$1 as bQ,get_1 as bR,map_1 as bS,keys_1 as bT,RadioGroup$1 as bU,Avatar$1 as bV,img$v as bW,baseGraphQLApi as bX,FormHelperText$2 as bY,img$f as bZ,StyledEngineProvider as b_,fetchEngine as ba,img$j as bb,AIWareFormatMessage as bc,FormattedDate as bd,fetchVeritoneGraphQLApi as be,useTheme as bf,KeyboardArrowRight as bg,KeyboardArrowLeft as bh,useId as bi,InputUnstyled as bj,isHostComponent as bk,getDefaultExportFromNamespaceIfNotNamed as bl,commonjsRequire as bm,_typeof$4 as bn,_inheritsLoose$2 as bo,_assertThisInitialized$1 as bp,React as bq,hoistNonReactStatics_cjs as br,_defineProperty$1 as bs,reactDom as bt,Transition$1 as bu,__awaiter$a as bv,__generator$2 as bw,__spread as bx,TransitionGroup$1 as by,connect$1 as bz,Paper$1 as c,upperFirst_1 as c$,lightTheme as c0,CssBaseline as c1,Hide as c2,showMessage as c3,MessageSeverity as c4,Radio$2 as c5,createSvgIcon$2 as c6,_hasPath as c7,_createCompounder as c8,_baseIteratee as c9,Delete as cA,CustomTabs as cB,useBackupImg as cC,img$1y as cD,validate as cE,configSelector as cF,baseGraphQLApiWithError as cG,VerifiedFilled as cH,Add as cI,ExpandLess as cJ,ExpandMore as cK,Collapse$1 as cL,img$15 as cM,Filter$1 as cN,DynamicTable as cO,useTheme$3 as cP,getThemeProps as cQ,useEnhancedEffect$1 as cR,React$1 as cS,_arrayPush as cT,isArray_1 as cU,_baseToString as cV,_baseTrim as cW,_castSlice as cX,_stringToArray as cY,toString_1 as cZ,ReactIs as c_,isArrayLike_1 as ca,toInteger_1 as cb,_toPropertyKey as cc,_setPrototypeOf$3 as cd,commonjsGlobal$1 as ce,combineReducers as cf,createSelector$1 as cg,fork as ch,AIWareThemeProvider as ci,Stack$4 as cj,Close$1 as ck,FullscreenExit as cl,Fullscreen as cm,TabPanel as cn,default_1$2 as co,unmountPanel$1 as cp,AvailableComponents as cq,delay$1 as cr,hidePanel$1 as cs,mountPanel$1 as ct,DialogContentText$1 as cu,userSelector$2 as cv,MoreVert as cw,Menu$1 as cx,Edit as cy,Upload as cz,capitalize$2 as d,_arrayLikeKeys as d$,isString_1 as d0,_baseGet as d1,_baseSlice as d2,_castPath as d3,_toKey as d4,_isIndex as d5,channel$1 as d6,useIntl as d7,VideoCamera as d8,Image$1 as d9,MoreHor as dA,takeEvery$1 as dB,EngineCategoryIcons as dC,selectApiConfigs$1 as dD,panelsSelector as dE,tabsClasses$1 as dF,AlarmTwo as dG,EditList as dH,usePreviousProps$1 as dI,setRef as dJ,inputClasses$1 as dK,inputBaseClasses$1 as dL,outlinedInputClasses$1 as dM,filledInputClasses$1 as dN,ClearIcon as dO,ArrowDropDownIcon as dP,_arrayMap as dQ,_baseEach as dR,_arrayFilter as dS,_getNative as dT,eq_1 as dU,_root as dV,_Uint8Array as dW,_overArg as dX,_isPrototype as dY,isObjectLike_1 as dZ,_baseGetTag as d_,Sound as da,Description as db,toNumber_1 as dc,ProgressStepper as dd,size_1 as de,take as df,CurlyBraces as dg,UnknownDocument as dh,sdkEventManager as di,SdkEvents as dj,SdkError as dk,EngineClassIcons as dl,Mode2 as dm,EngineModeIcons as dn,DeploymentModelIcons as dp,guid as dq,forceReflow as dr,alpha as ds,useTheme$2 as dt,useControlled as du,useEventCallback as dv,ButtonBase$1 as dw,useForkRef as dx,getDefaultExportFromCjs as dy,isObject_1 as dz,_objectWithoutPropertiesLoose$2 as e,ScopedCssBaseline$1 as e$,isArguments_1 as e0,isBuffer$3 as e1,isFunction_1 as e2,isTypedArray_1 as e3,_Stack as e4,_baseFor as e5,identity_1 as e6,_isIterateeCall as e7,isSymbol_1 as e8,_baseMap as e9,PersonalProfile$1 as eA,Organizations as eB,DataCenter as eC,Process as eD,FlowCenter2 as eE,DeveloperCenter as eF,Marketplace$1 as eG,LibraryCenter as eH,AdminCenter as eI,AdminTabIcon as eJ,Resources$1 as eK,DagBuilder as eL,img$S as eM,selectUserCanAccessResourceCenter as eN,img$4 as eO,img$z as eP,enableBetaFeatures as eQ,Badge$1 as eR,openLinkOnNewTab as eS,orange$1 as eT,deepOrange$1 as eU,authSelector as eV,headerBarSelector as eW,getSortName as eX,img$8 as eY,ListItemAvatar$1 as eZ,OrganizationTabIcon as e_,_baseUnary as ea,memoizeOne as eb,createBox$1 as ec,StepperContext$1 as ed,StepContext$1 as ee,SvgIcon$1 as ef,StepConnector$1 as eg,_Symbol as eh,_Set as ei,_setToArray as ej,_SetCache as ek,_cacheHas as el,Slide$1 as em,updatePanelMicroFrontendProps as en,setData as eo,useIsFocusVisible as ep,ownerDocument as eq,lighten as er,darken as es,slotShouldForwardProp as et,useSlotProps as eu,keyframes as ev,img$1v as ew,createTheme as ex,injectIntl as ey,TabId as ez,clsx as f,Group as f$,getApplicationsApi as f0,ListItemSecondaryAction$1 as f1,updateTokenSuccess as f2,postNotificationCommand as f3,aiwareEvent as f4,notificationCommands as f5,css as f6,avatarClasses as f7,img$M as f8,img$L as f9,Settings$2 as fA,Hamburger as fB,List as fC,Download as fD,selectUserOrgEdgeVersion as fE,EditAttributes as fF,ProcessingDetail as fG,img$u as fH,img$w as fI,img$3 as fJ,FilterRemove as fK,CheckCircle as fL,FolderOpen as fM,Voice as fN,useDoubleClick as fO,FolderFilled as fP,Time as fQ,img$x as fR,Undefined as fS,PodcastSource as fT,YoutubeSource as fU,TVSource as fV,RadioSource as fW,selectOrgId as fX,selectIsUserAdmin as fY,ErrorState$1 as fZ,NullState$2 as f_,img$1u as fa,img$1t as fb,img$1s as fc,img$J as fd,img$1w as fe,img$I as ff,emphasize as fg,_arraySome as fh,ErrorBoundary$1 as fi,Information as fj,NewFolder as fk,SpecialFolder as fl,User as fm,Source as fn,Search$1 as fo,selectIsOLPEnabled as fp,getLibraryModule as fq,cmsUrlSelector as fr,betaFeaturesSelector as fs,UserAddFilled as ft,Popover$1 as fu,MenuList$1 as fv,MoveFolder as fw,img$9 as fx,selectPanelByPanelName as fy,FullScreenContainer as fz,generateUtilityClass as g,flush$3 as g$,gqlIntrospection as g0,PermissionChangedAction as g1,Lock as g2,AddGroup as g3,initialConfigSelector as g4,ConfirmationModal as g5,EnumHelpers as g6,formatBytes as g7,NotInterested as g8,mountPanelForResponse$1 as g9,_castFunction as gA,Article as gB,Task as gC,View as gD,_objectSpread2 as gE,serialize as gF,stringify$2 as gG,compile as gH,Check as gI,FormattedRelativeTime$1 as gJ,BottomQueue as gK,TopQueue as gL,Pause as gM,Cancel as gN,Folder as gO,Hidden as gP,toFinite_1 as gQ,_baseForOwn as gR,_arrayReduce as gS,hasIn_1 as gT,useSyncExternalStoreExports as gU,Packages as gV,selectUserCanCreatePackage as gW,Engines as gX,PackagesAvatar as gY,actionChannel as gZ,cancelled as g_,Users as ga,ApplicationTabIcon as gb,SecurityGroup as gc,Lock2 as gd,NoApps as ge,green$1 as gf,md5 as gg,selectIsSuperAdmin as gh,AddUser as gi,ArrowUp as gj,ArrowDown as gk,selectors as gl,LibraryDropdown as gm,Remove as gn,Save as go,Input$3 as gp,Copy as gq,ArrowForward as gr,Modal$1 as gs,_baseIsEqual as gt,_getSymbols as gu,stubArray_1 as gv,_baseGetAllKeys as gw,_getTag as gx,_nodeUtil as gy,_getAllKeys as gz,composeClasses as h,cancel as h0,registry as h1,registerComponent as h2,AvailableWidgets as h3,root as h4,mountWidget as h5,unmountWidget as h6,mountPanel as h7,unmountPanel as h8,hidePanel as h9,unmountAllPanel as ha,init as hb,aiwareEvents as hc,createSvgIcon$1 as i,jsxRuntime as j,interopRequireDefault as k,useDispatch as l,makeStyles as m,useSelector as n,authStatusSelector as o,authContextSelector as p,AuthContext as q,react as r,store$4 as s,lodash as t,useThemeProps as u,Alert$1 as v,authErrorMessage as w,FormControl$1 as x,TextField$1 as y,classNames as z};
|
package/js-core.esm.js.gz
CHANGED
|
Binary file
|
package/js-core.esm100.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as selectIsEditMode,b as selectActiveStep,p as panelId,a as actions,S as SHARED_TEXT}from"./js-core.esm83.js";import{l as useDispatch,n as useSelector,j as jsxRuntime,cj as Stack,K as Button,am as Tooltip,cs as hidePanel}from"./js-core.esm.js";var ENextButtonType;!function(e){e.SKIP="SKIP",e.NEXT="NEXT",e.BACK="BACK",e.CANCEL="CANCEL",e.CREATE_PACKAGE="CREATE_PACKAGE",e.UPDATE_PACKAGE="UPDATE_PACKAGE"}(ENextButtonType=ENextButtonType||{});const PanelControls=({disableNext:e,disableBack:t,onClickNext:s,onClickBack:a,nextButtonType:n=ENextButtonType.NEXT,invalidFields:o=!1})=>{const c=useDispatch(),i=useSelector(selectIsEditMode),l=useSelector(selectActiveStep);return jsxRuntime.exports.jsxs(Stack,Object.assign({sx:{position:"absolute",bottom:"30px",right:"30px",display:"flex",gap:"15px"},direction:"row"},{children:[jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"rc-package-manager-back-btn",sx:{color:"#2A323C"},onClick:()=>{1===l?c(hidePanel(panelId)):(c(actions.stepper.backStep()),a&&a())},disabled:t},{children:i||1===l?SHARED_TEXT.panel.cancel():SHARED_TEXT.panel.back()})),jsxRuntime.exports.jsx(Tooltip,Object.assign({placement:"top",title:e&&o?SHARED_TEXT.panel.someFieldsInvalidMessage():e?SHARED_TEXT.panel.incompleteFieldsMessage():""},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"rc-package-manager-next-btn",onClick:()=>{c(actions.stepper.nextStep()),s&&s()},variant:"contained",disabled:e},{children:(()=>{switch(n){case ENextButtonType.NEXT:return SHARED_TEXT.panel.next();case ENextButtonType.SKIP:return SHARED_TEXT.panel.skip();case ENextButtonType.CREATE_PACKAGE:return SHARED_TEXT.panel.createPackage();case ENextButtonType.UPDATE_PACKAGE:return SHARED_TEXT.panel.updatePackage();default:return null}})()}))})}))]}))};export{ENextButtonType as E,PanelControls as P};
|
|
1
|
+
import{o as objectDefineProperty,c as selectors,a as actions,E as ESelectedPackageType,d as selectors$1,h as hiddenKeys$3,e as sharedKey$1$1,w as wellKnownSymbol$a,f as fails$b,i as isCallable$h,g as defineBuiltIn$3,j as descriptors,k as documentCreateElement$2,l as global$i,S as SHARED_TEXT,m as iterators,q as createNonEnumerableProperty$2,r as selectEnginePackageFilters,t as selectApplicationPackageFilters,u as anObject$8,v as hasOwnProperty_1,x as toObject$2,_ as _export,y as objectSetPrototypeOf,z as setToStringTag$1$1,A as toIndexedObject$3,B as EPackageFilterType,C as EPackageStatus,D as v8PrototypeDefineBug,F as objectKeys$1,G as enumBugKeys$2,H as functionCall,I as functionName,J as internalState,K as html$1,L as createPropertyDescriptor$2}from"./js-core.esm82.js";import{m as makeStyles,ey as injectIntl,r as react,j as jsxRuntime,y as TextField,D as InputAdornment,am as Tooltip,E as IconButton,l as useDispatch,B as Box,T as Typography,cj as Stack,H as Select,M as MenuItem,K as Button,n as useSelector,G as Grid,bV as Avatar,F as FormattedMessage}from"./js-core.esm.js";import{P as PanelControls,E as ENextButtonType}from"./js-core.esm99.js";import{d as debounce_1,h as ExpandLess,j as ExpandMore,t as tableInfiniteScroll,s as statusPill}from"./js-core.esm23.js";import{S as SimpleFilter}from"./js-core.esm79.js";import"./js-core.esm78.js";import{C as Clear}from"./js-core.esm80.js";import{S as Search}from"./js-core.esm12.js";import{A as AddCircleOutline}from"./js-core.esm76.js";import"./js-core.esm33.js";import"./js-core.esm40.js";import"./js-core.esm36.js";import"./js-core.esm35.js";import"./js-core.esm37.js";import"./js-core.esm6.js";var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$1=anObject$8,toIndexedObject$1=toIndexedObject$3,objectKeys=objectKeys$1,anObject=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$1(e);for(var r,s=toIndexedObject$1(t),a=objectKeys(t),o=a.length,n=0;n<o;)definePropertyModule.f(e,r=a[n++],s[r]);return e},anObject$8),definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$2,hiddenKeys=hiddenKeys$3,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$1$1,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$3=wellKnownSymbol$a,create$1=objectCreate,defineProperty$1=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$3("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$1=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$1(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),fails$1=fails$b,correctPrototypeGetter=!fails$b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn=hasOwnProperty_1,isCallable$2=isCallable$h,toObject=toObject$2,sharedKey=sharedKey$1$1,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$1$1("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject(e);return hasOwn(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails=fails$b,isCallable$1=isCallable$h,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$2=wellKnownSymbol$a,ITERATOR$2=wellKnownSymbol$a("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$2,setToStringTag$1=setToStringTag$1$1,Iterators$2=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,r,s){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!s,r)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$=_export,call=functionCall,FunctionName=functionName,isCallable=isCallable$h,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$1$1,createNonEnumerableProperty$1=createNonEnumerableProperty$2,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$1=wellKnownSymbol$a,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,s,a,o,n){createIteratorConstructor(r,t,s);function i(e){if(e===a&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var l,c,s=t+" Iterator",u=!1,p=e.prototype,x=p[ITERATOR$1]||p["@@iterator"]||a&&p[a],d=!BUGGY_SAFARI_ITERATORS&&x||i(a),g="Array"==t&&p.entries||x;if(g&&(g=getPrototypeOf(g.call(new e)))!==Object.prototype&&g.next&&(getPrototypeOf(g)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(g,IteratorPrototype):isCallable(g[ITERATOR$1])||defineBuiltIn(g,ITERATOR$1,returnThis)),setToStringTag(g,s,!0)),PROPER_FUNCTION_NAME&&a==VALUES&&x&&x.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,d=function(){return call(x,this)})),a)if(l={values:i(VALUES),keys:o?d:i(KEYS),entries:i(ENTRIES)},n)for(c in l)!BUGGY_SAFARI_ITERATORS&&!u&&c in p||defineBuiltIn(p,c,l[c]);else $({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},l);return p[ITERATOR$1]!==d&&defineBuiltIn(p,ITERATOR$1,d,{name:a}),Iterators$1[t]=d,l},toIndexedObject=toIndexedObject$3,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,s=e.index++;return!t||s>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:s,done:!1}:"values"==r?{value:t[s],done:!1}:{value:[s,t[s]],done:!1}},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global=global$i,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$2,wellKnownSymbol=wellKnownSymbol$a,ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global[COLLECTION_NAME]&&global[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const{TableInfiniteScroll}=tableInfiniteScroll["jsx"],ResourcesTable=react.exports.forwardRef(({resourceType:e},t)=>{const r=useDispatch();var s=e.card,a=useSelector(e.hasMoreSelector),o=useSelector(e.itemSelector),n=useSelector(e.loadingStatusSelector);return jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex",flexDirection:"column",flexGrow:"1"},{children:[jsxRuntime.exports.jsx(TableHeader,{}),jsxRuntime.exports.jsx("div",Object.assign({style:{flexGrow:1}},{children:jsxRuntime.exports.jsx(TableInfiniteScroll,{offset:0,hasMore:a,fetchMore:()=>r(e.fetchMore()),fetchOnMount:0===o.length,items:o,itemHeight:60,isLoading:"pending"===n,error:"failure"===n,TableRowComponent:s,MessageEmptyState:"No resources found",MessageErrorState:"Error loading resources",listRef:t},e.id)}))]}))}),TableHeader=()=>jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({xs:8,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.resourcesStep.table.resourceName()}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.resourcesStep.table.status()}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.resourcesStep.table.version()}))}))]})),StatusPill=statusPill["jsx"],ResourceTableCard=({item:e})=>{var t=()=>{console.log("Clicked on package resource item",e)},{name:r,icon:s,version:a,status:o}=e;return jsxRuntime.exports.jsxs(Grid,Object.assign({onClick:t,sx:{height:"60px",borderBottom:"1px solid #DADFE8","&:hover":{backgroundColor:"#F2F7FE"}},container:!0},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(Avatar,{src:s})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:7,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"14px",fontWeight:600,lineHeight:"20px",textAlign:"left"}},{children:r}))}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(StatusPill,{statusType:"package",status:o})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx("span",{children:a})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:"Included in selected Package Name"},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsxs(IconButton,Object.assign({disabled:!1,onClick:t},{children:[jsxRuntime.exports.jsx(AddCircleOutline,{}),!1,!1]}))})}))}))}))]}))},resourceTypes=[{id:"engine-packages",label:"Engine Packages",itemSelector:selectors.selectItems,hasMoreSelector:selectors.selectHasMore,loadingStatusSelector:selectors.selectReadStatus,fetchMore:()=>actions.enginePackages.readStart(null),card:ResourceTableCard,resourceType:ESelectedPackageType.Engine,searchValueSelector:selectors.selectSearchValue},{id:"application-packages",label:"Application Packages",itemSelector:selectors$1.selectItems,hasMoreSelector:selectors$1.selectHasMore,loadingStatusSelector:selectors$1.selectReadStatus,fetchMore:()=>actions.applicationPackages.readStart(null),card:ResourceTableCard,resourceType:ESelectedPackageType.Application,searchValueSelector:selectors$1.selectSearchValue}],EnginePackageStatusFilter=()=>{const t=useDispatch();var e=(null==(e=useSelector(selectEnginePackageFilters).find(e=>e.type===EPackageFilterType.Status))?void 0:e.values)||[],r=Object.values(EPackageStatus).map(e=>({value:e,label:e})),s=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.engine-package.status-filter.label",defaultMessage:"Status",description:"Status filter label"}),a=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.engine-package-filter.clear-button.label",defaultMessage:"Clear",description:"Label for the button to clear the filter"});return jsxRuntime.exports.jsx(SimpleFilter,{id:"os-resource-center-package-manager.engine-package-status-filter",filterLabel:s,clearButtonLabel:a,items:r,selectedValues:e,onChange:e=>{t(actions.enginePackages.setFilter({type:EPackageFilterType.Status,values:e}))},isMultiselect:!1})},FilterButtons=({onClearAll:e})=>{var t=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.engine-package.clear-all.label",defaultMessage:"Clear All",description:"Clear All label"});return jsxRuntime.exports.jsx(Box,Object.assign({sx:{pt:"14px",display:"flex"}},{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"os-resource-center-package-manager-clear-filters-btn",color:"primary",variant:"outlined",onClick:e},{children:t}))}))},EnginePackageFilters=()=>{const e=useDispatch();var t=useSelector(selectEnginePackageFilters);react.exports.useEffect(()=>{e(actions.enginePackages.resetList(null)),e(actions.enginePackages.readStart(null))},[t]);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(EnginePackageStatusFilter,{}),jsxRuntime.exports.jsx(FilterButtons,{onClearAll:()=>{e(actions.enginePackages.clearFilters(null))}})]})},AppPackageStatusFilter=()=>{const t=useDispatch();var e=(null==(e=useSelector(selectApplicationPackageFilters).find(e=>e.type===EPackageFilterType.Status))?void 0:e.values)||[],r=Object.values(EPackageStatus).map(e=>({value:e,label:e})),s=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.application-package.status-filter.label",defaultMessage:"Status",description:"Status filter label"}),a=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.application-package-filter.clear-button.label",defaultMessage:"Clear",description:"Label for the button to clear the filter"});return jsxRuntime.exports.jsx(SimpleFilter,{id:"os-resource-center-package-manager.application-package-status-filter",filterLabel:s,clearButtonLabel:a,items:r,selectedValues:e,onChange:e=>{t(actions.applicationPackages.setFilter({type:EPackageFilterType.Status,values:e}))},isMultiselect:!1})},ApplicationPackageFilters=()=>{const e=useDispatch();var t=useSelector(selectApplicationPackageFilters);react.exports.useEffect(()=>{e(actions.applicationPackages.resetList(null)),e(actions.applicationPackages.readStart(null))},[t]);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(AppPackageStatusFilter,{}),jsxRuntime.exports.jsx(FilterButtons,{onClearAll:()=>{e(actions.applicationPackages.clearFilters(null))}})]})},ResourceStepFilters=({isVisible:e=!1,resourceTypeSelected:t=ESelectedPackageType.Engine})=>e?jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginLeft:"-30px",width:"calc(100% + 60px)",p:"10px 30px 10px",background:"#FAFAFA",marginBottom:"20px"}},{children:[t===ESelectedPackageType.Engine&&jsxRuntime.exports.jsx(EnginePackageFilters,{}),t===ESelectedPackageType.Application&&jsxRuntime.exports.jsx(ApplicationPackageFilters,{})]})):null,useStyles=makeStyles()(e=>({searchInput:{width:"400px",borderRadius:"100px","&.is-visible":{width:"400px",opacity:1},"&:focus":{outline:"none",boxShadow:"0 -1px 1px rgba(255, 255, 255, 0.25), 0 1px 5px rgba(0, 0, 0, 0.15)"}},searchContainer:{display:"flex"}})),ResourceSearchInput=injectIntl(({intl:e,shouldClear:t,onChange:r,onClear:s,testId:a})=>{var o=useStyles()["classes"];const[n,i]=react.exports.useState("");react.exports.useEffect(()=>{t&&(i(""),r(""))},[r,t]);const l=react.exports.useCallback(debounce_1(e=>{r&&r(e)},1e3),[r]);var c=react.exports.useCallback(e=>{e=e.target.value;i(e),l(e)},[l]);return jsxRuntime.exports.jsx(TextField,{sx:{"& fieldset":{borderRadius:"100px"}},"data-test":a,onClick:e=>e.stopPropagation(),className:""+o.searchInput,onChange:c,value:n,placeholder:e.formatMessage({id:"rc.package-manager.resources.search-placeholder",defaultMessage:[{type:0,value:"Search by name"}]}),InputProps:{startAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(Search,{})})),endAdornment:jsxRuntime.exports.jsxs(InputAdornment,Object.assign({position:"end"},{children:[!1,n&&jsxRuntime.exports.jsx(Tooltip,Object.assign({title:"clear search"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{r(""),i(""),s&&s()}},{children:jsxRuntime.exports.jsx(Clear,{})}))}))]}))}})}),usePrevious=e=>{const t=react.exports.useRef();return react.exports.useEffect(()=>{t.current=e}),t.current},ResourcesStep=()=>{const t=useDispatch(),[e,r]=react.exports.useState(0),s=react.exports.useRef(null),[a,o]=react.exports.useState(!1),[n,i]=react.exports.useState("enginePackages"),l=usePrevious(n),[c,u]=react.exports.useState(!1);return react.exports.useEffect(()=>{l!==n?u(!0):u(!1)},[n,l]),jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex",flexDirection:"column",flexGrow:"1"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"subtitle1",padding:e=>e.spacing(3,0,3,0)},{children:"Choose from a list of available resources in your Organization to create your Package."})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",spacing:5,sx:{margin:e=>e.spacing(3,0,3,0)}},{children:[jsxRuntime.exports.jsx(Select,Object.assign({id:"resource-cetner-package-manager-resource-type",value:e,onChange:e=>{var e=Number(e.target.value);r(e),0===e?i("enginePackages"):1===e&&i("applicationPackages"),null!=(e=s.current)&&e.scrollTo(0)},sx:{width:"300px"}},{children:resourceTypes.map((e,t)=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:t},{children:e.label}),"resource-center-package-manager-resource-type-"+t))})),jsxRuntime.exports.jsx(ResourceSearchInput,{shouldClear:c,onChange:e=>{"enginePackages"===n?(t(actions.enginePackages.setSearchValue(e)),t(actions.enginePackages.resetList(null)),t(actions.enginePackages.readStart(null))):"applicationPackages"===n&&(t(actions.applicationPackages.setSearchValue(e)),t(actions.applicationPackages.resetList(null)),t(actions.applicationPackages.readStart(null))),null!=(e=s.current)&&e.scrollTo(0)},onClear:()=>console.log("clear"),testId:"test"}),jsxRuntime.exports.jsx(ToggleFiltersBtn,{onClick:e=>o(!e)})]})),jsxRuntime.exports.jsx(ResourceStepFilters,{resourceTypeSelected:resourceTypes[e].resourceType,isVisible:a}),jsxRuntime.exports.jsx(ResourcesTable,{resourceType:resourceTypes[e],ref:s}),jsxRuntime.exports.jsx(Box,Object.assign({height:"70px"},{children:jsxRuntime.exports.jsx(PanelControls,{invalidFields:!1,disableNext:!1,disableBack:!1,nextButtonType:ENextButtonType.NEXT})}))]}))},ToggleFiltersBtn=({onClick:e})=>{const[t,r]=react.exports.useState(!1);return jsxRuntime.exports.jsxs(Button,Object.assign({variant:"text",color:"primary",onClick:()=>{r(!t),e(t)}},{children:["Show Filters",t&&jsxRuntime.exports.jsx(ExpandLess,{sx:{marginLeft:"10px"}}),!t&&jsxRuntime.exports.jsx(ExpandMore,{sx:{marginLeft:"10px"}})]}))};export{ResourcesStep as default};
|
package/js-core.esm100.js.gz
CHANGED
|
Binary file
|
package/js-core.esm101.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as objectDefineProperty,c as selectors,a as actions,E as ESelectedPackageType,d as selectors$1,h as hiddenKeys$3,e as sharedKey$1$1,w as wellKnownSymbol$a,f as fails$b,i as isCallable$h,g as defineBuiltIn$3,j as descriptors,k as documentCreateElement$2,l as global$i,S as SHARED_TEXT,m as iterators,q as createNonEnumerableProperty$2,r as selectEnginePackageFilters,t as selectApplicationPackageFilters,u as anObject$8,v as hasOwnProperty_1,x as toObject$2,_ as _export,y as objectSetPrototypeOf,z as setToStringTag$1$1,A as toIndexedObject$3,B as EPackageFilterType,C as EPackageStatus,D as v8PrototypeDefineBug,F as objectKeys$1,G as enumBugKeys$2,H as functionCall,I as functionName,J as internalState,K as html$1,L as createPropertyDescriptor$2}from"./js-core.esm83.js";import{m as makeStyles,en as injectIntl,r as react,j as jsxRuntime,y as TextField,D as InputAdornment,am as Tooltip,E as IconButton,l as useDispatch,B as Box,T as Typography,cj as Stack,H as Select,M as MenuItem,K as Button,n as useSelector,G as Grid,bV as Avatar,F as FormattedMessage}from"./js-core.esm.js";import{P as PanelControls,E as ENextButtonType}from"./js-core.esm100.js";import{d as debounce_1,f as ExpandLess,h as ExpandMore,t as tableInfiniteScroll,b as statusPill}from"./js-core.esm49.js";import{S as SimpleFilter}from"./js-core.esm80.js";import"./js-core.esm79.js";import{C as Clear}from"./js-core.esm81.js";import"./js-core.esm61.js";import{S as Search}from"./js-core.esm12.js";import{A as AddCircleOutline}from"./js-core.esm77.js";import"./js-core.esm25.js";import"./js-core.esm33.js";import"./js-core.esm55.js";import"./js-core.esm54.js";import"./js-core.esm35.js";import"./js-core.esm36.js";import"./js-core.esm6.js";import"./js-core.esm64.js";import"./js-core.esm26.js";var activeXDocument,IteratorPrototype$2,PrototypeOfArrayIteratorPrototype,arrayIterator,objectDefineProperties={},DESCRIPTORS$1=descriptors,V8_PROTOTYPE_DEFINE_BUG=v8PrototypeDefineBug,definePropertyModule=objectDefineProperty,anObject$1=anObject$8,toIndexedObject$1=toIndexedObject$3,objectKeys=objectKeys$1,anObject=(objectDefineProperties.f=DESCRIPTORS$1&&!V8_PROTOTYPE_DEFINE_BUG?Object.defineProperties:function(e,t){anObject$1(e);for(var r,s=toIndexedObject$1(t),a=objectKeys(t),o=a.length,n=0;n<o;)definePropertyModule.f(e,r=a[n++],s[r]);return e},anObject$8),definePropertiesModule=objectDefineProperties,enumBugKeys=enumBugKeys$2,hiddenKeys=hiddenKeys$3,html=html$1,documentCreateElement$1=documentCreateElement$2,sharedKey$1=sharedKey$1$1,GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO$1=sharedKey$1$1("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return LT+SCRIPT+GT+e+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(e){e.write(scriptTag("")),e.close();var t=e.parentWindow.Object;return e=null,t},NullProtoObjectViaIFrame=function(){var e=documentCreateElement$1("iframe"),t="java"+SCRIPT+":";return e.style.display="none",html.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(scriptTag("document.F=Object")),t.close(),t.F},NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"==typeof document||document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame();for(var e=enumBugKeys.length;e--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[e]];return NullProtoObject()},objectCreate=(hiddenKeys[IE_PROTO$1]=!0,Object.create||function(e,t){var r;return null!==e?(EmptyConstructor[PROTOTYPE]=anObject(e),r=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,r[IE_PROTO$1]=e):r=NullProtoObject(),void 0===t?r:definePropertiesModule.f(r,t)}),wellKnownSymbol$3=wellKnownSymbol$a,create$1=objectCreate,defineProperty$1=objectDefineProperty.f,UNSCOPABLES=wellKnownSymbol$3("unscopables"),ArrayPrototype=Array.prototype,addToUnscopables$1=(null==ArrayPrototype[UNSCOPABLES]&&defineProperty$1(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create$1(null)}),function(e){ArrayPrototype[UNSCOPABLES][e]=!0}),fails$1=fails$b,correctPrototypeGetter=!fails$b(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),hasOwn=hasOwnProperty_1,isCallable$2=isCallable$h,toObject=toObject$2,sharedKey=sharedKey$1$1,CORRECT_PROTOTYPE_GETTER=correctPrototypeGetter,IE_PROTO=sharedKey$1$1("IE_PROTO"),$Object=Object,ObjectPrototype=$Object.prototype,objectGetPrototypeOf=CORRECT_PROTOTYPE_GETTER?$Object.getPrototypeOf:function(e){var t,e=toObject(e);return hasOwn(e,IE_PROTO)?e[IE_PROTO]:(t=e.constructor,isCallable$2(t)&&e instanceof t?t.prototype:e instanceof $Object?ObjectPrototype:null)},fails=fails$b,isCallable$1=isCallable$h,getPrototypeOf$1=objectGetPrototypeOf,defineBuiltIn$1=defineBuiltIn$3,wellKnownSymbol$2=wellKnownSymbol$a,ITERATOR$2=wellKnownSymbol$a("iterator"),BUGGY_SAFARI_ITERATORS$1=!1,NEW_ITERATOR_PROTOTYPE=([].keys&&("next"in(arrayIterator=[].keys())?(PrototypeOfArrayIteratorPrototype=getPrototypeOf$1(getPrototypeOf$1(arrayIterator)))!==Object.prototype&&(IteratorPrototype$2=PrototypeOfArrayIteratorPrototype):BUGGY_SAFARI_ITERATORS$1=!0),null==IteratorPrototype$2||fails(function(){var e={};return IteratorPrototype$2[ITERATOR$2].call(e)!==e})),iteratorsCore=(isCallable$1((IteratorPrototype$2=NEW_ITERATOR_PROTOTYPE?{}:IteratorPrototype$2)[ITERATOR$2])||defineBuiltIn$1(IteratorPrototype$2,ITERATOR$2,function(){return this}),{IteratorPrototype:IteratorPrototype$2,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS$1}),IteratorPrototype$1=iteratorsCore.IteratorPrototype,create=objectCreate,createPropertyDescriptor=createPropertyDescriptor$2,setToStringTag$1=setToStringTag$1$1,Iterators$2=iterators,returnThis$1=function(){return this},createIteratorConstructor$1=function(e,t,r,s){t+=" Iterator";return e.prototype=create(IteratorPrototype$1,{next:createPropertyDescriptor(+!s,r)}),setToStringTag$1(e,t,!1),Iterators$2[t]=returnThis$1,e},$=_export,call=functionCall,FunctionName=functionName,isCallable=isCallable$h,createIteratorConstructor=createIteratorConstructor$1,getPrototypeOf=objectGetPrototypeOf,setPrototypeOf=objectSetPrototypeOf,setToStringTag=setToStringTag$1$1,createNonEnumerableProperty$1=createNonEnumerableProperty$2,defineBuiltIn=defineBuiltIn$3,wellKnownSymbol$1=wellKnownSymbol$a,Iterators$1=iterators,IteratorsCore=iteratorsCore,PROPER_FUNCTION_NAME=FunctionName.PROPER,CONFIGURABLE_FUNCTION_NAME=FunctionName.CONFIGURABLE,IteratorPrototype=IteratorsCore.IteratorPrototype,BUGGY_SAFARI_ITERATORS=IteratorsCore.BUGGY_SAFARI_ITERATORS,ITERATOR$1=wellKnownSymbol$1("iterator"),KEYS="keys",VALUES="values",ENTRIES="entries",returnThis=function(){return this},defineIterator$1=function(e,t,r,s,a,o,n){createIteratorConstructor(r,t,s);function i(e){if(e===a&&d)return d;if(!BUGGY_SAFARI_ITERATORS&&e in p)return p[e];switch(e){case KEYS:case VALUES:case ENTRIES:return function(){return new r(this,e)}}return function(){return new r(this)}}var c,l,s=t+" Iterator",u=!1,p=e.prototype,x=p[ITERATOR$1]||p["@@iterator"]||a&&p[a],d=!BUGGY_SAFARI_ITERATORS&&x||i(a),m="Array"==t&&p.entries||x;if(m&&(m=getPrototypeOf(m.call(new e)))!==Object.prototype&&m.next&&(getPrototypeOf(m)!==IteratorPrototype&&(setPrototypeOf?setPrototypeOf(m,IteratorPrototype):isCallable(m[ITERATOR$1])||defineBuiltIn(m,ITERATOR$1,returnThis)),setToStringTag(m,s,!0)),PROPER_FUNCTION_NAME&&a==VALUES&&x&&x.name!==VALUES&&(CONFIGURABLE_FUNCTION_NAME?createNonEnumerableProperty$1(p,"name",VALUES):(u=!0,d=function(){return call(x,this)})),a)if(c={values:i(VALUES),keys:o?d:i(KEYS),entries:i(ENTRIES)},n)for(l in c)!BUGGY_SAFARI_ITERATORS&&!u&&l in p||defineBuiltIn(p,l,c[l]);else $({target:t,proto:!0,forced:BUGGY_SAFARI_ITERATORS||u},c);return p[ITERATOR$1]!==d&&defineBuiltIn(p,ITERATOR$1,d,{name:a}),Iterators$1[t]=d,c},toIndexedObject=toIndexedObject$3,addToUnscopables=addToUnscopables$1,Iterators=iterators,InternalStateModule=internalState,defineProperty=objectDefineProperty.f,defineIterator=defineIterator$1,DESCRIPTORS=descriptors,ARRAY_ITERATOR="Array Iterator",setInternalState=InternalStateModule.set,getInternalState=InternalStateModule.getterFor(ARRAY_ITERATOR),es_array_iterator=defineIterator(Array,"Array",function(e,t){setInternalState(this,{type:ARRAY_ITERATOR,target:toIndexedObject(e),index:0,kind:t})},function(){var e=getInternalState(this),t=e.target,r=e.kind,s=e.index++;return!t||s>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:s,done:!1}:"values"==r?{value:t[s],done:!1}:{value:[s,t[s]],done:!1}},"values"),values=Iterators.Arguments=Iterators.Array;if(addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries"),DESCRIPTORS&&"values"!==values.name)try{defineProperty(values,"name",{value:"values"})}catch(e){}var COLLECTION_NAME,domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},documentCreateElement=documentCreateElement$2,classList=documentCreateElement$2("span").classList,DOMTokenListPrototype$1=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype$1===Object.prototype?void 0:DOMTokenListPrototype$1,global=global$i,DOMIterables=domIterables,DOMTokenListPrototype=domTokenListPrototype,ArrayIteratorMethods=es_array_iterator,createNonEnumerableProperty=createNonEnumerableProperty$2,wellKnownSymbol=wellKnownSymbol$a,ITERATOR=wellKnownSymbol("iterator"),TO_STRING_TAG=wellKnownSymbol("toStringTag"),ArrayValues=ArrayIteratorMethods.values,handlePrototype=function(t,e){if(t){if(t[ITERATOR]!==ArrayValues)try{createNonEnumerableProperty(t,ITERATOR,ArrayValues)}catch(e){t[ITERATOR]=ArrayValues}if(t[TO_STRING_TAG]||createNonEnumerableProperty(t,TO_STRING_TAG,e),DOMIterables[e])for(var r in ArrayIteratorMethods)if(t[r]!==ArrayIteratorMethods[r])try{createNonEnumerableProperty(t,r,ArrayIteratorMethods[r])}catch(e){t[r]=ArrayIteratorMethods[r]}}};for(COLLECTION_NAME in DOMIterables)handlePrototype(global[COLLECTION_NAME]&&global[COLLECTION_NAME].prototype,COLLECTION_NAME);handlePrototype(DOMTokenListPrototype,"DOMTokenList");const{TableInfiniteScroll}=tableInfiniteScroll["jsx"],ResourcesTable=react.exports.forwardRef(({resourceType:e},t)=>{const r=useDispatch();var s=e.card,a=useSelector(e.hasMoreSelector),o=useSelector(e.itemSelector),n=useSelector(e.loadingStatusSelector);return jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex",flexDirection:"column",flexGrow:"1"},{children:[jsxRuntime.exports.jsx(TableHeader,{}),jsxRuntime.exports.jsx("div",Object.assign({style:{flexGrow:1}},{children:jsxRuntime.exports.jsx(TableInfiniteScroll,{offset:0,hasMore:a,fetchMore:()=>r(e.fetchMore()),fetchOnMount:0===o.length,items:o,itemHeight:60,isLoading:"pending"===n,error:"failure"===n,TableRowComponent:s,MessageEmptyState:"No resources found",MessageErrorState:"Error loading resources",listRef:t},e.id)}))]}))}),TableHeader=()=>jsxRuntime.exports.jsxs(Grid,Object.assign({container:!0},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({xs:8,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.resourcesStep.table.resourceName()}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.resourcesStep.table.status()}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({variant:"caption"},{children:SHARED_TEXT.resourcesStep.table.version()}))}))]})),StatusPill=statusPill["jsx"],ResourceTableCard=({item:e})=>{var t=()=>{console.log("Clicked on package resource item",e)},{name:r,icon:s,version:a,status:o}=e;return jsxRuntime.exports.jsxs(Grid,Object.assign({onClick:t,sx:{height:"60px",borderBottom:"1px solid #DADFE8","&:hover":{backgroundColor:"#F2F7FE"}},container:!0},{children:[jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(Avatar,{src:s})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:7,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(Typography,Object.assign({sx:{fontFamily:"Nunito",fontSize:"14px",fontWeight:600,lineHeight:"20px",textAlign:"left"}},{children:r}))}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:2,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(StatusPill,{statusType:"package",status:o})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx("span",{children:a})}))})),jsxRuntime.exports.jsx(Grid,Object.assign({xs:1,item:!0,alignItems:"center"},{children:jsxRuntime.exports.jsx(Stack,Object.assign({height:"100%",direction:"row",alignItems:"center"},{children:jsxRuntime.exports.jsx(Tooltip,Object.assign({title:"Included in selected Package Name"},{children:jsxRuntime.exports.jsx("span",{children:jsxRuntime.exports.jsxs(IconButton,Object.assign({disabled:!1,onClick:t},{children:[jsxRuntime.exports.jsx(AddCircleOutline,{}),!1,!1]}))})}))}))}))]}))},resourceTypes=[{id:"engine-packages",label:"Engine Packages",itemSelector:selectors.selectItems,hasMoreSelector:selectors.selectHasMore,loadingStatusSelector:selectors.selectReadStatus,fetchMore:()=>actions.enginePackages.readStart(null),card:ResourceTableCard,resourceType:ESelectedPackageType.Engine,searchValueSelector:selectors.selectSearchValue},{id:"application-packages",label:"Application Packages",itemSelector:selectors$1.selectItems,hasMoreSelector:selectors$1.selectHasMore,loadingStatusSelector:selectors$1.selectReadStatus,fetchMore:()=>actions.applicationPackages.readStart(null),card:ResourceTableCard,resourceType:ESelectedPackageType.Application,searchValueSelector:selectors$1.selectSearchValue}],EnginePackageStatusFilter=()=>{const t=useDispatch();var e=(null==(e=useSelector(selectEnginePackageFilters).find(e=>e.type===EPackageFilterType.Status))?void 0:e.values)||[],r=Object.values(EPackageStatus).map(e=>({value:e,label:e})),s=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.engine-package.status-filter.label",defaultMessage:"Status",description:"Status filter label"}),a=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.engine-package-filter.clear-button.label",defaultMessage:"Clear",description:"Label for the button to clear the filter"});return jsxRuntime.exports.jsx(SimpleFilter,{id:"os-resource-center-package-manager.engine-package-status-filter",filterLabel:s,clearButtonLabel:a,items:r,selectedValues:e,onChange:e=>{t(actions.enginePackages.setFilter({type:EPackageFilterType.Status,values:e}))},isMultiselect:!1})},FilterButtons=({onClearAll:e})=>{var t=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.engine-package.clear-all.label",defaultMessage:"Clear All",description:"Clear All label"});return jsxRuntime.exports.jsx(Box,Object.assign({sx:{pt:"14px",display:"flex"}},{children:jsxRuntime.exports.jsx(Button,Object.assign({"data-testid":"os-resource-center-package-manager-clear-filters-btn",color:"primary",variant:"outlined",onClick:e},{children:t}))}))},EnginePackageFilters=()=>{const e=useDispatch();var t=useSelector(selectEnginePackageFilters);react.exports.useEffect(()=>{e(actions.enginePackages.resetList(null)),e(actions.enginePackages.readStart(null))},[t]);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(EnginePackageStatusFilter,{}),jsxRuntime.exports.jsx(FilterButtons,{onClearAll:()=>{e(actions.enginePackages.clearFilters(null))}})]})},AppPackageStatusFilter=()=>{const t=useDispatch();var e=(null==(e=useSelector(selectApplicationPackageFilters).find(e=>e.type===EPackageFilterType.Status))?void 0:e.values)||[],r=Object.values(EPackageStatus).map(e=>({value:e,label:e})),s=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.application-package.status-filter.label",defaultMessage:"Status",description:"Status filter label"}),a=jsxRuntime.exports.jsx(FormattedMessage,{id:"os-resource-center-package-manager.application-package-filter.clear-button.label",defaultMessage:"Clear",description:"Label for the button to clear the filter"});return jsxRuntime.exports.jsx(SimpleFilter,{id:"os-resource-center-package-manager.application-package-status-filter",filterLabel:s,clearButtonLabel:a,items:r,selectedValues:e,onChange:e=>{t(actions.applicationPackages.setFilter({type:EPackageFilterType.Status,values:e}))},isMultiselect:!1})},ApplicationPackageFilters=()=>{const e=useDispatch();var t=useSelector(selectApplicationPackageFilters);react.exports.useEffect(()=>{e(actions.applicationPackages.resetList(null)),e(actions.applicationPackages.readStart(null))},[t]);return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(AppPackageStatusFilter,{}),jsxRuntime.exports.jsx(FilterButtons,{onClearAll:()=>{e(actions.applicationPackages.clearFilters(null))}})]})},ResourceStepFilters=({isVisible:e=!1,resourceTypeSelected:t=ESelectedPackageType.Engine})=>e?jsxRuntime.exports.jsxs(Box,Object.assign({sx:{marginLeft:"-30px",width:"calc(100% + 60px)",p:"10px 30px 10px",background:"#FAFAFA",marginBottom:"20px"}},{children:[t===ESelectedPackageType.Engine&&jsxRuntime.exports.jsx(EnginePackageFilters,{}),t===ESelectedPackageType.Application&&jsxRuntime.exports.jsx(ApplicationPackageFilters,{})]})):null,useStyles=makeStyles()(e=>({searchInput:{width:"400px",borderRadius:"100px","&.is-visible":{width:"400px",opacity:1},"&:focus":{outline:"none",boxShadow:"0 -1px 1px rgba(255, 255, 255, 0.25), 0 1px 5px rgba(0, 0, 0, 0.15)"}},searchContainer:{display:"flex"}})),ResourceSearchInput=injectIntl(({intl:e,shouldClear:t,onChange:r,onClear:s,testId:a})=>{var o=useStyles()["classes"];const[n,i]=react.exports.useState("");react.exports.useEffect(()=>{t&&(i(""),r(""))},[r,t]);const c=react.exports.useCallback(debounce_1(e=>{r&&r(e)},1e3),[r]);var l=react.exports.useCallback(e=>{e=e.target.value;i(e),c(e)},[c]);return jsxRuntime.exports.jsx(TextField,{sx:{"& fieldset":{borderRadius:"100px"}},"data-test":a,onClick:e=>e.stopPropagation(),className:""+o.searchInput,onChange:l,value:n,placeholder:e.formatMessage({id:"rc.package-manager.resources.search-placeholder",defaultMessage:[{type:0,value:"Search by name"}]}),InputProps:{startAdornment:jsxRuntime.exports.jsx(InputAdornment,Object.assign({position:"start"},{children:jsxRuntime.exports.jsx(Search,{})})),endAdornment:jsxRuntime.exports.jsxs(InputAdornment,Object.assign({position:"end"},{children:[!1,n&&jsxRuntime.exports.jsx(Tooltip,Object.assign({title:"clear search"},{children:jsxRuntime.exports.jsx(IconButton,Object.assign({onClick:()=>{r(""),i(""),s&&s()}},{children:jsxRuntime.exports.jsx(Clear,{})}))}))]}))}})}),usePrevious=e=>{const t=react.exports.useRef();return react.exports.useEffect(()=>{t.current=e}),t.current},ResourcesStep=()=>{const t=useDispatch(),[e,r]=react.exports.useState(0),s=react.exports.useRef(null),[a,o]=react.exports.useState(!1),[n,i]=react.exports.useState("enginePackages"),c=usePrevious(n),[l,u]=react.exports.useState(!1);return react.exports.useEffect(()=>{c!==n?u(!0):u(!1)},[n,c]),jsxRuntime.exports.jsxs(Box,Object.assign({display:"flex",flexDirection:"column",flexGrow:"1"},{children:[jsxRuntime.exports.jsx(Typography,Object.assign({variant:"subtitle1",padding:e=>e.spacing(3,0,3,0)},{children:"Choose from a list of available resources in your Organization to create your Package."})),jsxRuntime.exports.jsxs(Stack,Object.assign({direction:"row",spacing:5,sx:{margin:e=>e.spacing(3,0,3,0)}},{children:[jsxRuntime.exports.jsx(Select,Object.assign({id:"resource-cetner-package-manager-resource-type",value:e,onChange:e=>{var e=Number(e.target.value);r(e),0===e?i("enginePackages"):1===e&&i("applicationPackages"),null!=(e=s.current)&&e.scrollTo(0)},sx:{width:"300px"}},{children:resourceTypes.map((e,t)=>jsxRuntime.exports.jsx(MenuItem,Object.assign({value:t},{children:e.label}),"resource-center-package-manager-resource-type-"+t))})),jsxRuntime.exports.jsx(ResourceSearchInput,{shouldClear:l,onChange:e=>{"enginePackages"===n?(t(actions.enginePackages.setSearchValue(e)),t(actions.enginePackages.resetList(null)),t(actions.enginePackages.readStart(null))):"applicationPackages"===n&&(t(actions.applicationPackages.setSearchValue(e)),t(actions.applicationPackages.resetList(null)),t(actions.applicationPackages.readStart(null))),null!=(e=s.current)&&e.scrollTo(0)},onClear:()=>console.log("clear"),testId:"test"}),jsxRuntime.exports.jsx(ToggleFiltersBtn,{onClick:e=>o(!e)})]})),jsxRuntime.exports.jsx(ResourceStepFilters,{resourceTypeSelected:resourceTypes[e].resourceType,isVisible:a}),jsxRuntime.exports.jsx(ResourcesTable,{resourceType:resourceTypes[e],ref:s}),jsxRuntime.exports.jsx(Box,Object.assign({height:"70px"},{children:jsxRuntime.exports.jsx(PanelControls,{invalidFields:!1,disableNext:!1,disableBack:!1,nextButtonType:ENextButtonType.NEXT})}))]}))},ToggleFiltersBtn=({onClick:e})=>{const[t,r]=react.exports.useState(!1);return jsxRuntime.exports.jsxs(Button,Object.assign({variant:"text",color:"primary",onClick:()=>{r(!t),e(t)}},{children:["Show Filters",t&&jsxRuntime.exports.jsx(ExpandLess,{sx:{marginLeft:"10px"}}),!t&&jsxRuntime.exports.jsx(ExpandMore,{sx:{marginLeft:"10px"}})]}))};export{ResourcesStep as default};
|
|
1
|
+
import{n as useSelector,j as jsxRuntime,B as Box}from"./js-core.esm.js";import{P as PanelControls,E as ENextButtonType}from"./js-core.esm99.js";import{s as selectIsEditMode}from"./js-core.esm82.js";import"./js-core.esm79.js";import"./js-core.esm78.js";import"./js-core.esm23.js";import"./js-core.esm80.js";import"./js-core.esm33.js";import"./js-core.esm40.js";import"./js-core.esm36.js";import"./js-core.esm35.js";import"./js-core.esm12.js";import"./js-core.esm37.js";import"./js-core.esm6.js";const ConfirmationStep=()=>{var s=useSelector(selectIsEditMode);return jsxRuntime.exports.jsxs(Box,{children:[jsxRuntime.exports.jsx("h2",{children:"Confirmation Step"}),jsxRuntime.exports.jsx(PanelControls,{invalidFields:!1,disableNext:!1,disableBack:!1,nextButtonType:s?ENextButtonType.UPDATE_PACKAGE:ENextButtonType.CREATE_PACKAGE})]})};export{ConfirmationStep as default};
|
package/js-core.esm101.js.gz
CHANGED
|
Binary file
|