aiware-js 1.0.0-master.856 → 1.0.0-master.857

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.css CHANGED
@@ -288,98 +288,6 @@
288
288
  background-color: #fff;
289
289
  }
290
290
 
291
- /* dosis-200normal - latin */
292
- @font-face {
293
- font-family: 'Dosis';
294
- font-style: normal;
295
- font-display: swap;
296
- font-weight: 200;
297
- src:
298
- local('Dosis Extra Light '),
299
- local('Dosis-Extra Light'),
300
- url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
301
- url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
302
- }
303
-
304
- /* dosis-300normal - latin */
305
- @font-face {
306
- font-family: 'Dosis';
307
- font-style: normal;
308
- font-display: swap;
309
- font-weight: 300;
310
- src:
311
- local('Dosis Light '),
312
- local('Dosis-Light'),
313
- url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
314
- url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
315
- }
316
-
317
- /* dosis-400normal - latin */
318
- @font-face {
319
- font-family: 'Dosis';
320
- font-style: normal;
321
- font-display: swap;
322
- font-weight: 400;
323
- src:
324
- local('Dosis Regular '),
325
- local('Dosis-Regular'),
326
- url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
327
- url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
328
- }
329
-
330
- /* dosis-500normal - latin */
331
- @font-face {
332
- font-family: 'Dosis';
333
- font-style: normal;
334
- font-display: swap;
335
- font-weight: 500;
336
- src:
337
- local('Dosis Medium '),
338
- local('Dosis-Medium'),
339
- url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
340
- url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
341
- }
342
-
343
- /* dosis-600normal - latin */
344
- @font-face {
345
- font-family: 'Dosis';
346
- font-style: normal;
347
- font-display: swap;
348
- font-weight: 600;
349
- src:
350
- local('Dosis SemiBold '),
351
- local('Dosis-SemiBold'),
352
- url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
353
- url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
354
- }
355
-
356
- /* dosis-700normal - latin */
357
- @font-face {
358
- font-family: 'Dosis';
359
- font-style: normal;
360
- font-display: swap;
361
- font-weight: 700;
362
- src:
363
- local('Dosis Bold '),
364
- local('Dosis-Bold'),
365
- url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
366
- url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
367
- }
368
-
369
- /* dosis-800normal - latin */
370
- @font-face {
371
- font-family: 'Dosis';
372
- font-style: normal;
373
- font-display: swap;
374
- font-weight: 800;
375
- src:
376
- local('Dosis ExtraBold '),
377
- local('Dosis-ExtraBold'),
378
- url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
379
- url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
380
- }
381
-
382
-
383
291
  /* nunito-200normal - latin */
384
292
  @font-face {
385
293
  font-family: 'Nunito';
@@ -563,6 +471,98 @@
563
471
  }
564
472
 
565
473
 
474
+ /* dosis-200normal - latin */
475
+ @font-face {
476
+ font-family: 'Dosis';
477
+ font-style: normal;
478
+ font-display: swap;
479
+ font-weight: 200;
480
+ src:
481
+ local('Dosis Extra Light '),
482
+ local('Dosis-Extra Light'),
483
+ url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
484
+ url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
485
+ }
486
+
487
+ /* dosis-300normal - latin */
488
+ @font-face {
489
+ font-family: 'Dosis';
490
+ font-style: normal;
491
+ font-display: swap;
492
+ font-weight: 300;
493
+ src:
494
+ local('Dosis Light '),
495
+ local('Dosis-Light'),
496
+ url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
497
+ url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
498
+ }
499
+
500
+ /* dosis-400normal - latin */
501
+ @font-face {
502
+ font-family: 'Dosis';
503
+ font-style: normal;
504
+ font-display: swap;
505
+ font-weight: 400;
506
+ src:
507
+ local('Dosis Regular '),
508
+ local('Dosis-Regular'),
509
+ url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
510
+ url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
511
+ }
512
+
513
+ /* dosis-500normal - latin */
514
+ @font-face {
515
+ font-family: 'Dosis';
516
+ font-style: normal;
517
+ font-display: swap;
518
+ font-weight: 500;
519
+ src:
520
+ local('Dosis Medium '),
521
+ local('Dosis-Medium'),
522
+ url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
523
+ url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
524
+ }
525
+
526
+ /* dosis-600normal - latin */
527
+ @font-face {
528
+ font-family: 'Dosis';
529
+ font-style: normal;
530
+ font-display: swap;
531
+ font-weight: 600;
532
+ src:
533
+ local('Dosis SemiBold '),
534
+ local('Dosis-SemiBold'),
535
+ url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
536
+ url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
537
+ }
538
+
539
+ /* dosis-700normal - latin */
540
+ @font-face {
541
+ font-family: 'Dosis';
542
+ font-style: normal;
543
+ font-display: swap;
544
+ font-weight: 700;
545
+ src:
546
+ local('Dosis Bold '),
547
+ local('Dosis-Bold'),
548
+ url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
549
+ url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
550
+ }
551
+
552
+ /* dosis-800normal - latin */
553
+ @font-face {
554
+ font-family: 'Dosis';
555
+ font-style: normal;
556
+ font-display: swap;
557
+ font-weight: 800;
558
+ src:
559
+ local('Dosis ExtraBold '),
560
+ local('Dosis-ExtraBold'),
561
+ url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
562
+ url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
563
+ }
564
+
565
+
566
566
  /*!
567
567
  * Cropper.js v1.5.9
568
568
  * https://fengyuanchen.github.io/cropperjs
package/index.esm.css.gz CHANGED
Binary file
package/index.esm.min.css CHANGED
@@ -288,98 +288,6 @@
288
288
  background-color: #fff;
289
289
  }
290
290
 
291
- /* dosis-200normal - latin */
292
- @font-face {
293
- font-family: 'Dosis';
294
- font-style: normal;
295
- font-display: swap;
296
- font-weight: 200;
297
- src:
298
- local('Dosis Extra Light '),
299
- local('Dosis-Extra Light'),
300
- url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
301
- url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
302
- }
303
-
304
- /* dosis-300normal - latin */
305
- @font-face {
306
- font-family: 'Dosis';
307
- font-style: normal;
308
- font-display: swap;
309
- font-weight: 300;
310
- src:
311
- local('Dosis Light '),
312
- local('Dosis-Light'),
313
- url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
314
- url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
315
- }
316
-
317
- /* dosis-400normal - latin */
318
- @font-face {
319
- font-family: 'Dosis';
320
- font-style: normal;
321
- font-display: swap;
322
- font-weight: 400;
323
- src:
324
- local('Dosis Regular '),
325
- local('Dosis-Regular'),
326
- url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
327
- url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
328
- }
329
-
330
- /* dosis-500normal - latin */
331
- @font-face {
332
- font-family: 'Dosis';
333
- font-style: normal;
334
- font-display: swap;
335
- font-weight: 500;
336
- src:
337
- local('Dosis Medium '),
338
- local('Dosis-Medium'),
339
- url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
340
- url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
341
- }
342
-
343
- /* dosis-600normal - latin */
344
- @font-face {
345
- font-family: 'Dosis';
346
- font-style: normal;
347
- font-display: swap;
348
- font-weight: 600;
349
- src:
350
- local('Dosis SemiBold '),
351
- local('Dosis-SemiBold'),
352
- url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
353
- url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
354
- }
355
-
356
- /* dosis-700normal - latin */
357
- @font-face {
358
- font-family: 'Dosis';
359
- font-style: normal;
360
- font-display: swap;
361
- font-weight: 700;
362
- src:
363
- local('Dosis Bold '),
364
- local('Dosis-Bold'),
365
- url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
366
- url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
367
- }
368
-
369
- /* dosis-800normal - latin */
370
- @font-face {
371
- font-family: 'Dosis';
372
- font-style: normal;
373
- font-display: swap;
374
- font-weight: 800;
375
- src:
376
- local('Dosis ExtraBold '),
377
- local('Dosis-ExtraBold'),
378
- url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
379
- url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
380
- }
381
-
382
-
383
291
  /* nunito-200normal - latin */
384
292
  @font-face {
385
293
  font-family: 'Nunito';
@@ -563,6 +471,98 @@
563
471
  }
564
472
 
565
473
 
474
+ /* dosis-200normal - latin */
475
+ @font-face {
476
+ font-family: 'Dosis';
477
+ font-style: normal;
478
+ font-display: swap;
479
+ font-weight: 200;
480
+ src:
481
+ local('Dosis Extra Light '),
482
+ local('Dosis-Extra Light'),
483
+ url('./files/dosis-latin-200.woff2') format('woff2'), /* Super Modern Browsers */
484
+ url('./files/dosis-latin-200.woff') format('woff'); /* Modern Browsers */
485
+ }
486
+
487
+ /* dosis-300normal - latin */
488
+ @font-face {
489
+ font-family: 'Dosis';
490
+ font-style: normal;
491
+ font-display: swap;
492
+ font-weight: 300;
493
+ src:
494
+ local('Dosis Light '),
495
+ local('Dosis-Light'),
496
+ url('./files/dosis-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
497
+ url('./files/dosis-latin-300.woff') format('woff'); /* Modern Browsers */
498
+ }
499
+
500
+ /* dosis-400normal - latin */
501
+ @font-face {
502
+ font-family: 'Dosis';
503
+ font-style: normal;
504
+ font-display: swap;
505
+ font-weight: 400;
506
+ src:
507
+ local('Dosis Regular '),
508
+ local('Dosis-Regular'),
509
+ url('./files/dosis-latin-400.woff2') format('woff2'), /* Super Modern Browsers */
510
+ url('./files/dosis-latin-400.woff') format('woff'); /* Modern Browsers */
511
+ }
512
+
513
+ /* dosis-500normal - latin */
514
+ @font-face {
515
+ font-family: 'Dosis';
516
+ font-style: normal;
517
+ font-display: swap;
518
+ font-weight: 500;
519
+ src:
520
+ local('Dosis Medium '),
521
+ local('Dosis-Medium'),
522
+ url('./files/dosis-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
523
+ url('./files/dosis-latin-500.woff') format('woff'); /* Modern Browsers */
524
+ }
525
+
526
+ /* dosis-600normal - latin */
527
+ @font-face {
528
+ font-family: 'Dosis';
529
+ font-style: normal;
530
+ font-display: swap;
531
+ font-weight: 600;
532
+ src:
533
+ local('Dosis SemiBold '),
534
+ local('Dosis-SemiBold'),
535
+ url('./files/dosis-latin-600.woff2') format('woff2'), /* Super Modern Browsers */
536
+ url('./files/dosis-latin-600.woff') format('woff'); /* Modern Browsers */
537
+ }
538
+
539
+ /* dosis-700normal - latin */
540
+ @font-face {
541
+ font-family: 'Dosis';
542
+ font-style: normal;
543
+ font-display: swap;
544
+ font-weight: 700;
545
+ src:
546
+ local('Dosis Bold '),
547
+ local('Dosis-Bold'),
548
+ url('./files/dosis-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
549
+ url('./files/dosis-latin-700.woff') format('woff'); /* Modern Browsers */
550
+ }
551
+
552
+ /* dosis-800normal - latin */
553
+ @font-face {
554
+ font-family: 'Dosis';
555
+ font-style: normal;
556
+ font-display: swap;
557
+ font-weight: 800;
558
+ src:
559
+ local('Dosis ExtraBold '),
560
+ local('Dosis-ExtraBold'),
561
+ url('./files/dosis-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
562
+ url('./files/dosis-latin-800.woff') format('woff'); /* Modern Browsers */
563
+ }
564
+
565
+
566
566
  /*!
567
567
  * Cropper.js v1.5.9
568
568
  * https://fengyuanchen.github.io/cropperjs
Binary file
package/js-core.esm.js CHANGED
@@ -1528,4 +1528,4 @@ createScheduledJob(input:{
1528
1528
  }
1529
1529
  `)}),n},[]).join("\r\n")}
1530
1530
  }
1531
- `,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$5.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$5.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$5.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$5.dispatch(logout())},1e3)):store$5.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$5.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$5.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$5.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$5.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$5.addModule(r),n},unmountPanel=e=>(store$5.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$5.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$5.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$5.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$5),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$5,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$5,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"1b979da2e",releaseDate:"2023-09-25T13:50:14.894Z"});export{IconButton$1 as $,AIWareIntlProvider as A,Box$1 as B,useLocation as C,DynamicModuleLoader as D,Button$1 as E,FormattedMessage$1 as F,useSearchParams as G,img$5 as H,StyledEngineProvider as I,Fade$1 as J,classNames as K,LinearProgress$1 as L,logout as M,LoadingButton$1 as N,authErrorMessage as O,Provider$2 as P,Grid$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,FormControl$1 as U,TextField$1 as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,fetchAllTags as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,Popover$1 as a4,all$2 as a5,CheckmarkFilled as a6,Bullet as a7,takeEvery$1 as a8,select as a9,ENGINE_FILTER_TYPES as aA,preferredLanguageSelector as aB,baseUrlSelector as aC,rootApiSelector as aD,sessionTokenSelector as aE,graphEndpointSelector as aF,controllerNodeRedImageSelector as aG,controllerUrlSelector as aH,automateControllerUrlSelector as aI,flowCenterDialogSelector as aJ,automateUrlSelector as aK,Portal$1 as aL,flowCenterDialogReducer as aM,List$2 as aN,ListItem$1 as aO,ListItemIcon$1 as aP,ListItemText$1 as aQ,flowCenterDialogAction as aR,img$q as aS,img$r as aT,img$t as aU,img$u as aV,Tooltip$1 as aW,img$k as aX,img$J as aY,Skeleton$1 as aZ,takeLatest$1 as a_,call$j as aa,put as ab,showMessage as ac,MessageSeverity as ad,createTheme$1 as ae,systemStyled as af,useThemeProps$1 as ag,useId as ah,useControlled$1 as ai,usePreviousProps$1 as aj,useEventCallback as ak,setRef as al,inputClasses$1 as am,inputBaseClasses$1 as an,outlinedInputClasses$1 as ao,filledInputClasses$1 as ap,Popper$1 as aq,alpha as ar,ListSubheader$1 as as,ClearIcon as at,ArrowDropDownIcon as au,Chip$1 as av,createBox$1 as aw,createAction as ax,createReducer as ay,ENGINE_OWNER_TYPES as az,styled$1 as b,__awaiter$e as b$,fetchFlows as b0,fetchTemplateGallery as b1,isRevisionsExistOnServerRequest as b2,FormLabel$1 as b3,default_1$e as b4,FormGroup$1 as b5,FormControlLabel$1 as b6,Checkbox$1 as b7,fetchTemplateGalleryFallback as b8,Card$1 as b9,Snackbar$1 as bA,default_1$6 as bB,Search$1 as bC,img$l as bD,img$n as bE,img$X as bF,Tabs$2 as bG,Tab$2 as bH,deleteEngine as bI,fetchEngine as bJ,img$m as bK,AIWareFormatMessage as bL,FormattedDate as bM,fetchVeritoneGraphQLApi as bN,useTheme as bO,KeyboardArrowRight as bP,KeyboardArrowLeft as bQ,InputUnstyled as bR,isHostComponent as bS,getDefaultExportFromNamespaceIfNotNamed as bT,commonjsRequire as bU,_typeof$D as bV,_assertThisInitialized$x as bW,_setPrototypeOf$z as bX,reactDom as bY,Transition$1 as bZ,_defineProperty$x as b_,CardContent$1 as ba,img$o as bb,CardActions$1 as bc,flowStyles as bd,NoResults as be,CircularProgress$1 as bf,img$e as bg,Dialog$1 as bh,setApiEndpoint as bi,TableContainer$1 as bj,Table$1 as bk,TableHead$1 as bl,TableRow$1 as bm,TableCell$1 as bn,TableSortLabel$1 as bo,TableBody$1 as bp,img$j as bq,default_1 as br,ClickAwayListener as bs,img$v as bt,img$s as bu,img$T as bv,img$F as bw,DialogTitle$1 as bx,DialogContent$1 as by,DialogActions$1 as bz,Paper$1 as c,unmountPanel$1 as c$,__generator$2 as c0,__spread as c1,React5 as c2,PropTypes as c3,TransitionGroup$1 as c4,connect$1 as c5,Bookmark as c6,EngineFlagIcons as c7,createAsyncThunk as c8,withStyles as c9,ThemeProvider as cA,lightTheme$1 as cB,CssBaseline as cC,Hide as cD,has_1 as cE,Radio$2 as cF,createSvgIcon$2 as cG,_createCompounder as cH,_toPropertyKey as cI,_inheritsLoose$2 as cJ,hoistNonReactStatics_cjs as cK,commonjsGlobal$2 as cL,combineReducers as cM,createSelector$1 as cN,fork as cO,statusPill as cP,AIWareThemeProvider$1 as cQ,LocalizationProvider as cR,AdapterDateFns as cS,CalendarPicker as cT,Stack$4 as cU,Close$1 as cV,FullscreenExit as cW,Fullscreen as cX,TabPanel as cY,ReactMarkdown as cZ,default_1$8 as c_,getConfigModule as ca,getAuthModule as cb,getSnackbarModule as cc,AIWareCacheProvider as cd,img$U as ce,img$g as cf,img$f as cg,isEmpty_1 as ch,find_1 as ci,Backdrop$1 as cj,getDefaultMiddleware as ck,isNil_1 as cl,useForm as cm,UpDown as cn,Icon$1 as co,get_1 as cp,map_1 as cq,keys_1 as cr,RadioGroup$1 as cs,Avatar$1 as ct,img$z as cu,baseGraphQLApi as cv,default_1$9 as cw,Controller as cx,FormHelperText$2 as cy,img$i as cz,capitalize$2 as d,sdkEventManager as d$,AvailableComponents as d0,delay$1 as d1,hidePanel$1 as d2,mountPanel$1 as d3,DialogContentText$1 as d4,userSelector$2 as d5,MoreVert$1 as d6,Menu$1 as d7,Edit as d8,Upload as d9,toString_1 as dA,upperFirst_1 as dB,isArrayLike_1 as dC,isString_1 as dD,toInteger_1 as dE,_baseGet as dF,_baseSlice as dG,_castPath as dH,_toKey as dI,_isIndex as dJ,channel$2 as dK,useFormContext as dL,useIntl as dM,useFieldArray as dN,VideoCamera as dO,Image$1 as dP,Sound as dQ,Description as dR,toNumber_1 as dS,FormProvider as dT,ProgressStepper as dU,size_1 as dV,findIndex_1 as dW,take as dX,CurlyBraces as dY,UnknownDocument as dZ,VariableSizeList as d_,Delete$1 as da,CustomTabs as db,useBackupImg as dc,img$1C as dd,validate as de,img$19 as df,baseGraphQLApiWithError as dg,VerifiedFilled as dh,Add as di,ExpandLess$1 as dj,ExpandMore$1 as dk,Collapse$1 as dl,Filter$1 as dm,DynamicTable as dn,useTheme$3 as dp,getThemeProps as dq,useEnhancedEffect$3 as dr,React as ds,_arrayPush as dt,isArray_1 as du,_baseIteratee as dv,_baseToString as dw,_baseTrim as dx,_castSlice as dy,_stringToArray as dz,_objectWithoutPropertiesLoose$2 as e,SpecialFolder as e$,SdkEvents as e0,SdkError as e1,distributionTypes as e2,EngineClassIcons as e3,Mode2 as e4,EngineModeIcons as e5,DeploymentModelIcons as e6,markdown as e7,guid as e8,EditList as e9,_baseFindIndex as eA,_Set as eB,_setToArray as eC,_SetCache as eD,_cacheHas as eE,img$Q as eF,img$P as eG,img$1y as eH,img$1x as eI,img$1w as eJ,img$N as eK,img$1A as eL,img$M as eM,authSelector as eN,ListItemAvatar$1 as eO,emphasize as eP,useSlotProps as eQ,_arraySome as eR,EntityType as eS,generateState as eT,injectIntl as eU,ErrorBoundary$1 as eV,EPermissionAction as eW,Process as eX,Information as eY,Download as eZ,NewFolder as e_,ButtonBase$1 as ea,isObject_1 as eb,_arrayMap as ec,_Symbol as ed,isArguments_1 as ee,_baseEach as ef,_arrayFilter as eg,_getNative as eh,eq_1 as ei,_root as ej,_Uint8Array as ek,_overArg as el,_isPrototype as em,isObjectLike_1 as en,_baseGetTag as eo,_arrayLikeKeys as ep,isBuffer$5 as eq,isFunction_1 as er,isTypedArray_1 as es,_Stack as et,_baseFor as eu,identity_1 as ev,_isIterateeCall as ew,isSymbol_1 as ex,_baseMap as ey,_baseUnary as ez,clsx as f,index$1 as f$,User as f0,Source as f1,Search$2 as f2,selectIsOLPEnabled as f3,ListItemSecondaryAction$1 as f4,getLibraryModule as f5,cmsUrlSelector as f6,debounce_1 as f7,SearchStructuredData as f8,Grow$1 as f9,FixedSizeList as fA,selectUserOrgEdgeVersion as fB,EditAttributes as fC,gqlIntrospection as fD,ProcessingDetail as fE,img$y as fF,img$A as fG,img$6 as fH,FilterRemove as fI,AlarmTwo as fJ,tableInfiniteScroll as fK,CheckCircle as fL,FolderOpen as fM,Voice as fN,useDoubleClick as fO,FolderFilled as fP,Time as fQ,img$B as fR,Undefined as fS,PodcastSource as fT,YoutubeSource as fU,TVSource as fV,RadioSource as fW,selectOrgId as fX,navSectionStyles as fY,selectIsUserAdmin as fZ,AvatarGroup$1 as f_,configSelector as fa,index as fb,betaFeaturesSelector as fc,actions as fd,hasPermission as fe,UserAddFilled as ff,MenuList$1 as fg,MoveFolder as fh,EAuthResourceType as fi,Slide$1 as fj,img$c as fk,selectApiConfigs$2 as fl,selectPanelByPanelName as fm,FullScreenContainer as fn,EngineCategoryIcons as fo,isPermissionLoading as fp,Settings$2 as fq,Hamburger as fr,List as fs,enginesFilter as ft,panelsSelector as fu,Badge$1 as fv,MoreHor as fw,convertEntityToAuthResource as fx,AutoSizer as fy,InfiniteLoader as fz,generateUtilityClass as g,Task as g$,ErrorState$2 as g0,Stepper$1 as g1,StepConnector$1 as g2,Step$1 as g3,StepLabel$1 as g4,isEqual_1 as g5,NullState$2 as g6,Group as g7,PermissionChangedAction as g8,Lock as g9,EApplicationConfigType as gA,green$1 as gB,md5 as gC,selectIsSuperAdmin as gD,organizations_selector as gE,actions$5 as gF,AddUser as gG,selectors as gH,LibraryDropdown as gI,Remove as gJ,Save as gK,Input$3 as gL,getElement as gM,client$1 as gN,Copy as gO,ArrowForward as gP,Modal$1 as gQ,Slider$1 as gR,getDefaultExportFromCjs as gS,_getSymbols as gT,stubArray_1 as gU,_baseGetAllKeys as gV,_getTag as gW,_nodeUtil as gX,_getAllKeys as gY,_castFunction as gZ,Article as g_,useOrganizationPermissions as ga,EAuthSubResourceType as gb,AddGroup as gc,initialConfigSelector as gd,EMessageTypes as ge,errors as gf,ConfirmationModal as gg,panelComponents as gh,EnumHelpers as gi,formatBytes as gj,NotInterested as gk,mountPanelForResponse$1 as gl,default_1$a as gm,tableStyles as gn,ArrowDown as go,ArrowUp as gp,useInterval as gq,Iam as gr,safeFormatMessage as gs,contextMenuStyles as gt,Users as gu,SecurityGroup as gv,getOrganizationPanelModule as gw,Lock2 as gx,EApplicationConfigLevel as gy,NoApps as gz,composeClasses as h,unmountAllPanel as h$,View as h0,isNumber_1 as h1,Check as h2,EngineIconsRenderer as h3,FormattedRelativeTime$1 as h4,BottomQueue as h5,TopQueue as h6,Pause as h7,Cancel as h8,Folder as h9,flush$4 as hA,tableSearchComponents as hB,cancel as hC,FlowTemplate as hD,Node as hE,Palette as hF,FlowCenter2 as hG,ArrowBack as hH,Schema$1 as hI,truncatedString as hJ,img$1 as hK,img$x as hL,AutomateNode as hM,Clear as hN,ExpandLess as hO,ExpandMore as hP,registry as hQ,registerComponent as hR,AvailableWidgets as hS,updatePanelMicroFrontendProps as hT,setData as hU,root as hV,mountWidget as hW,unmountWidget as hX,mountPanel as hY,unmountPanel as hZ,hidePanel as h_,Hidden as ha,dateRangeFilter as hb,statusFilter as hc,TableLoadingState as hd,setDuration as he,resetDuration as hf,ButtonGroupContext$1 as hg,toFinite_1 as hh,_baseForOwn as hi,_arrayReduce as hj,hasIn_1 as hk,now_1 as hl,useSyncExternalStoreExports as hm,Engines as hn,EngineComponentLoader as ho,EngineFieldType as hp,imageUpload as hq,characterCountTextField as hr,createStack as hs,tabsClasses$1 as ht,Packages as hu,Resources$1 as hv,selectUserCanCreatePackage as hw,PackagesAvatar as hx,actionChannel as hy,cancelled as hz,createSvgIcon$1 as i,init as i0,aiwareEvents as i1,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$5 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,useNavigate as y,devErrorLogger as z};
1531
+ `,l={entityId:t,entityType:e};try{a=yield baseGraphQLApi({query:s,operationName:n,variables:l,graphEndpoint:u,token:d})}catch(e){i=!0}if(a.errors){if(0===(o=a.errors.filter(({message:e})=>e.includes(' does not exist in "AuthPermissionType" enum.')).map(({message:e})=>{var t='Value "',n=e.substring(t.length).indexOf('"');return e.substring(t.length,t.length+n)})).length)throw i=!0,a={},new Error((null==(f=(a.errors||[])[0])?void 0:f.message)||"Error")}else i=!0}const c=a.data||{};return Object.keys(c).map(e=>{var t=e.split("__");return 3===t.length?{fetchedTargetEntityType:t[0],fetchedTargetGroupType:t[1],fetchedTargetAction:t[2],hasPermission:c[e][0].hasPermission}:{fetchedTargetEntityType:t[0],fetchedTargetAction:t[1],hasPermission:c[e][0].hasPermission}}).reduce((e,t)=>{var n=t.fetchedTargetGroupType||t.fetchedTargetEntityType;return t.hasPermission&&(e[n]||(e[n]={}),e[n][t.fetchedTargetAction]=t.hasPermission),e},{})})}function getMyRights(t){return __awaiter(this,void 0,void 0,function*(){var e="getMyRights";return(yield baseGraphQLApiWithError(Object.assign({query:"\n query getMyRights {\n myRights {\n operations\n }\n }\n ",operationName:e},t))).myRights.operations})}const selectPermissionsByEntity=(t,n,r)=>e=>{return t&&n&&(e=e[namespace].permissionsByObject[t])&&e[n]?e[n][r||t]:void 0},selectMyRights=e=>e[namespace].rights;var index=Object.freeze({__proto__:null,selectPermissionsByEntity:selectPermissionsByEntity,selectMyRights:selectMyRights});function*fetchObjectPermissions(t){var{entityId:t,entityType:n}=t.payload,i=yield select(selectApiConfigs$2),e=yield select(graphEndpointSelector),o=yield select(sessionTokenSelector),a=yield select(selectIsOLPEnabled),r=yield select(selectPermissionsByEntity(n,t));if(!r||"success"!==r.status&&"pending"!==r.status){yield put(actions.fetchObjectPermissionsStarted({entityId:t,entityType:n}));try{let r={};if(a)r=yield call$j(getObjectPermissions,e,o,{entityType:n,entityId:t});else{let e=yield select(selectMyRights);if("success"!==e.status&&"pending"!==e.status){yield put(actions.fetchMyRightsStarted);try{var s=yield call$j(getMyRights,i);yield put(actions.fetchMyRightsSucceeded(s)),e=yield select(selectMyRights)}catch(e){throw yield put(actions.fetchMyRightsFailed),e}}else"pending"===e.status&&(yield take([actions.fetchMyRightsFailed,actions.fetchMyRightsSucceeded]),e=yield select(selectMyRights));const l=e["myRights"];getPermissionTypesToQuery(n).forEach(n=>{var{action:e,resource:t}=n.targetActions.reduce((e,t)=>(e.action[t.targetAction]=convertPermissionsToRights(t.resource||n.targetObjectType,t.targetAction,l),e.resource=t.resource,e),{action:{}});r[t||n.targetObjectType]=e})}yield put(actions.fetchObjectPermissionsSucceeded({entityId:t,entityType:n,permissions:r}))}catch(e){actions.fetchObjectPermissionsFailed({entityId:t,entityType:n})}}}function*watchPermissionsStart(){yield takeEvery$1(actions.fetchObjectPermissionsStart.type,fetchObjectPermissions)}function*rootSaga(){yield all$2([watchPermissionsStart()])}function getPermissionsModule(){return{id:namespace,reducerMap:{[namespace]:permissionsReducer},sagas:[rootSaga],initialActions:[]}}const useOrganizationPermissions=e=>{const t=react$1.exports.useRef(),n=useDispatch(),r=null==(o=useSelector(userSelector$2).organization)?void 0:o.organizationId,i=useSelector(selectPermissionsByEntity(EAuthResourceType.Organization,String(r),e));react$1.exports.useEffect(()=>{!r||i&&"failure"!==i.status&&"idle"!==i.status&&t.current===r||(t.current=r,n(actions.fetchObjectPermissionsStart({entityType:EAuthResourceType.Organization,entityId:String(r)})))},[n,r,i]);var o=react$1.exports.useCallback(e=>{return!isPermissionLoading(i)&&hasPermission(i,e)},[i]);return{permissions:i,hasPermission:o}},rateLimiter=new RateLimiter,checkAndDecodeBase64String=t=>{if(null==t||!t.trim())return t;try{return window.btoa(window.atob(t))==t?window.atob(t):t}catch(e){return t}};function SnackbarRenderer(){return jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(DynamicModuleLoader,Object.assign({modules:[getSnackbarModule()]},{children:jsxRuntime.exports.jsx(CustomSnackbar,{})}))}))}store$5.addModules([getWidgetsModule(),getPanelsModule(registry,registryLookup),getDataModule(),getConfigModule(),getAuthModule(),getPermissionsModule()]);let hasLoaded=!1;const AppBarPreLoader=()=>{var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&!hasLoaded&&(hasLoaded=!0,setTimeout(()=>{store$5.addModules([getAppbarPanelModule()])},0)),null};function ApplicationDialogPreLoader(){var e=useSelector(authSelector);return(null==(e=null==e?void 0:e.user)?void 0:e.token)&&hasLoaded?jsxRuntime.exports.jsx(ApplicationDialog,{}):null}const authHelpers={updateToken(e){e?store$5.dispatch(updateTokenRequest({token:e})):console.error("[AiWARE JS]: Please provide a valid token!")},logout(e){"function"==typeof e?(e(),setTimeout(()=>{store$5.dispatch(logout())},1e3)):store$5.dispatch(logout())},reportAppActivity(e){rateLimiter.checkIfCanCall(e)&&store$5.dispatch(updateActivityStatus$1())}};function PortalRenderer(){return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment,{children:[jsxRuntime.exports.jsx(SupportCenterPixel,{}),jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AppBarPreLoader,{})}))]})}function ApplicationDialogRenderer(){return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment,{children:jsxRuntime.exports.jsx(Provider$2,Object.assign({store:store$5},{children:jsxRuntime.exports.jsx(AIWareIntlProvider,{children:jsxRuntime.exports.jsx(ApplicationDialogPreLoader,{})})}))})}const ThemeInitializer=()=>(useTheme(),null),root=getElement("aiWARE"),reactDOMroot=(root.classList.add("aiware-el"),client$1.createRoot(root)),mountWidget=("_auth"===window.name?handleImplicitRedirect(window.location.hash,window.opener):reactDOMroot.render(jsxRuntime.exports.jsx(AIWareCacheProvider,{children:jsxRuntime.exports.jsxs(AIWareThemeProvider$1,{children:[jsxRuntime.exports.jsx(PortalRenderer,{}),jsxRuntime.exports.jsx(SnackbarRenderer,{}),jsxRuntime.exports.jsx(ApplicationDialogRenderer,{}),jsxRuntime.exports.jsx(ThemeInitializer,{})]})})),(e,t)=>{var n=getUniqueID(),{name:e,elementId:r,config:i}=e;return e&&r&&i||console.error("[aiwarejs-error]: `mountWidget` function should include all the following params: name, elementId, config"),store$5.dispatch(mountWidget$1({elementId:r,widgetName:e,widgetConfig:i,widgetId:n,onComplete:t})),n}),unmountWidget=e=>(store$5.dispatch(unmountWidget$1(e)),!0),mountPanel=(e,t)=>{const n=e.panelId||getUniqueID();var{microFrontend:e,panelConfig:r}=e;store$5.dispatch(mountPanel$1({microFrontend:e,panelId:n,panelConfig:r}));const i=[...(null==(e=null==r?void 0:r.header)?void 0:e.actions)||[],...(null==(e=null==r?void 0:r.footer)?void 0:e.actions)||[]].filter(e=>e.submit).map(e=>e.action);r={id:n,sagas:[function*(){yield takeEvery$1(i.map(e=>e.type),function*(){var e=(yield select(e=>e.data.find(e=>e.id===n)))["data"];t&&t(e)})}]};return store$5.addModule(r),n},unmountPanel=e=>(store$5.dispatch(unmountPanel$1(e)),!0),hidePanel=e=>(store$5.dispatch(hidePanel$1(e)),!0),unmountAllPanel=()=>{store$5.dispatch(unmountAllPanel$1(""))};function init(e,t){var n,e=validateConfig(e);e?(n=e["authToken"],n=checkAndDecodeBase64String(n||""),store$5.dispatch(getInitConfig(Object.assign(Object.assign({},e),{authToken:n,onComplete:t})))):console.error("@aiware/js initialization failed. Please pass valid configuration object.")}function helpCenter(){var e=new HelpCenter$2({actions:{setCustomKnowledgeBaseUrlAction:setCustomKnowledgeBaseUrl,setCustomDocsUrlAction:setCustomDocsUrl,updateSelectedTabAction:updateSelectedTab}});return{openKnowledgeBasePanel:e.openKnowledgeBasePanel.bind(e),openDocsPanel:e.openDocsPanel.bind(e)}}function dataCenter(){var e=new DataCenter$1;return{openImporterPanel:e.openImporterPanel.bind(e)}}function handleEvents(){function n(e){if(!e||"string"!=typeof e)throw new SdkError("Please provide a valid event name!");if(!SdkEvents[e])throw new SdkError("Unknown event: "+e)}return{on:function(e,t){n(e),sdkEventManager.on.call(sdkEventManager,e,t)},off:function(e){n(e),sdkEventManager.off.call(sdkEventManager,e)}}}const mountPanelForResponse=e=>mountPanelForResponse$1(e,store$5),aiwareEvents=handleEvents();window&&(window.aiWare_initTesting=()=>{window.aiWare_store=store$5,window.aiWare_theme={darkTheme:darkTheme$1,lightTheme:lightTheme$1}},window.aiware={init:init,auth:authHelpers,helpCenter:helpCenter(),dataCenter:dataCenter(),on:aiwareEvents.on,off:aiwareEvents.off,hidePanel:hidePanel,unmountPanel:unmountPanel,store:store$5,registry:registry,registerComponent:registerComponent,AvailableWidgets:AvailableWidgets,mountPanelAction:mountPanel$1,unmountPanelAction:unmountPanel$1,hidePanelAction:hidePanel$1,updatePanelMicroFrontendPropsAction:updatePanelMicroFrontendProps,setData:setData,mountWidget:mountWidget,mountPanel:mountPanel,mountPanelForResponse:mountPanelForResponse,unmountWidget:unmountWidget,version:"sdk_release_version",commit:"4ca53fb17",releaseDate:"2023-09-25T15:48:55.116Z"});export{IconButton$1 as $,AIWareIntlProvider as A,Box$1 as B,useLocation as C,DynamicModuleLoader as D,Button$1 as E,FormattedMessage$1 as F,useSearchParams as G,img$5 as H,StyledEngineProvider as I,Fade$1 as J,classNames as K,LinearProgress$1 as L,logout as M,LoadingButton$1 as N,authErrorMessage as O,Provider$2 as P,Grid$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,FormControl$1 as U,TextField$1 as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,fetchAllTags as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,Popover$1 as a4,all$2 as a5,CheckmarkFilled as a6,Bullet as a7,takeEvery$1 as a8,select as a9,ENGINE_FILTER_TYPES as aA,preferredLanguageSelector as aB,baseUrlSelector as aC,rootApiSelector as aD,sessionTokenSelector as aE,graphEndpointSelector as aF,controllerNodeRedImageSelector as aG,controllerUrlSelector as aH,automateControllerUrlSelector as aI,flowCenterDialogSelector as aJ,automateUrlSelector as aK,Portal$1 as aL,flowCenterDialogReducer as aM,List$2 as aN,ListItem$1 as aO,ListItemIcon$1 as aP,ListItemText$1 as aQ,flowCenterDialogAction as aR,img$q as aS,img$r as aT,img$t as aU,img$u as aV,Tooltip$1 as aW,img$k as aX,img$J as aY,Skeleton$1 as aZ,takeLatest$1 as a_,call$j as aa,put as ab,showMessage as ac,MessageSeverity as ad,createTheme$1 as ae,systemStyled as af,useThemeProps$1 as ag,useId as ah,useControlled$1 as ai,usePreviousProps$1 as aj,useEventCallback as ak,setRef as al,inputClasses$1 as am,inputBaseClasses$1 as an,outlinedInputClasses$1 as ao,filledInputClasses$1 as ap,Popper$1 as aq,alpha as ar,ListSubheader$1 as as,ClearIcon as at,ArrowDropDownIcon as au,Chip$1 as av,createBox$1 as aw,createAction as ax,createReducer as ay,ENGINE_OWNER_TYPES as az,styled$1 as b,__awaiter$e as b$,fetchFlows as b0,fetchTemplateGallery as b1,isRevisionsExistOnServerRequest as b2,FormLabel$1 as b3,default_1$e as b4,FormGroup$1 as b5,FormControlLabel$1 as b6,Checkbox$1 as b7,fetchTemplateGalleryFallback as b8,Card$1 as b9,Snackbar$1 as bA,default_1$6 as bB,Search$1 as bC,img$l as bD,img$n as bE,img$X as bF,Tabs$2 as bG,Tab$2 as bH,deleteEngine as bI,fetchEngine as bJ,img$m as bK,AIWareFormatMessage as bL,FormattedDate as bM,fetchVeritoneGraphQLApi as bN,useTheme as bO,KeyboardArrowRight as bP,KeyboardArrowLeft as bQ,InputUnstyled as bR,isHostComponent as bS,getDefaultExportFromNamespaceIfNotNamed as bT,commonjsRequire as bU,_typeof$D as bV,_assertThisInitialized$x as bW,_setPrototypeOf$z as bX,reactDom as bY,Transition$1 as bZ,_defineProperty$x as b_,CardContent$1 as ba,img$o as bb,CardActions$1 as bc,flowStyles as bd,NoResults as be,CircularProgress$1 as bf,img$e as bg,Dialog$1 as bh,setApiEndpoint as bi,TableContainer$1 as bj,Table$1 as bk,TableHead$1 as bl,TableRow$1 as bm,TableCell$1 as bn,TableSortLabel$1 as bo,TableBody$1 as bp,img$j as bq,default_1 as br,ClickAwayListener as bs,img$v as bt,img$s as bu,img$T as bv,img$F as bw,DialogTitle$1 as bx,DialogContent$1 as by,DialogActions$1 as bz,Paper$1 as c,unmountPanel$1 as c$,__generator$2 as c0,__spread as c1,React5 as c2,PropTypes as c3,TransitionGroup$1 as c4,connect$1 as c5,Bookmark as c6,EngineFlagIcons as c7,createAsyncThunk as c8,withStyles as c9,ThemeProvider as cA,lightTheme$1 as cB,CssBaseline as cC,Hide as cD,has_1 as cE,Radio$2 as cF,createSvgIcon$2 as cG,_createCompounder as cH,_toPropertyKey as cI,_inheritsLoose$2 as cJ,hoistNonReactStatics_cjs as cK,commonjsGlobal$2 as cL,combineReducers as cM,createSelector$1 as cN,fork as cO,statusPill as cP,AIWareThemeProvider$1 as cQ,LocalizationProvider as cR,AdapterDateFns as cS,CalendarPicker as cT,Stack$4 as cU,Close$1 as cV,FullscreenExit as cW,Fullscreen as cX,TabPanel as cY,ReactMarkdown as cZ,default_1$8 as c_,getConfigModule as ca,getAuthModule as cb,getSnackbarModule as cc,AIWareCacheProvider as cd,img$U as ce,img$g as cf,img$f as cg,isEmpty_1 as ch,find_1 as ci,Backdrop$1 as cj,getDefaultMiddleware as ck,isNil_1 as cl,useForm as cm,UpDown as cn,Icon$1 as co,get_1 as cp,map_1 as cq,keys_1 as cr,RadioGroup$1 as cs,Avatar$1 as ct,img$z as cu,baseGraphQLApi as cv,default_1$9 as cw,Controller as cx,FormHelperText$2 as cy,img$i as cz,capitalize$2 as d,sdkEventManager as d$,AvailableComponents as d0,delay$1 as d1,hidePanel$1 as d2,mountPanel$1 as d3,DialogContentText$1 as d4,userSelector$2 as d5,MoreVert$1 as d6,Menu$1 as d7,Edit as d8,Upload as d9,toString_1 as dA,upperFirst_1 as dB,isArrayLike_1 as dC,isString_1 as dD,toInteger_1 as dE,_baseGet as dF,_baseSlice as dG,_castPath as dH,_toKey as dI,_isIndex as dJ,channel$2 as dK,useFormContext as dL,useIntl as dM,useFieldArray as dN,VideoCamera as dO,Image$1 as dP,Sound as dQ,Description as dR,toNumber_1 as dS,FormProvider as dT,ProgressStepper as dU,size_1 as dV,findIndex_1 as dW,take as dX,CurlyBraces as dY,UnknownDocument as dZ,VariableSizeList as d_,Delete$1 as da,CustomTabs as db,useBackupImg as dc,img$1C as dd,validate as de,img$19 as df,baseGraphQLApiWithError as dg,VerifiedFilled as dh,Add as di,ExpandLess$1 as dj,ExpandMore$1 as dk,Collapse$1 as dl,Filter$1 as dm,DynamicTable as dn,useTheme$3 as dp,getThemeProps as dq,useEnhancedEffect$3 as dr,React as ds,_arrayPush as dt,isArray_1 as du,_baseIteratee as dv,_baseToString as dw,_baseTrim as dx,_castSlice as dy,_stringToArray as dz,_objectWithoutPropertiesLoose$2 as e,SpecialFolder as e$,SdkEvents as e0,SdkError as e1,distributionTypes as e2,EngineClassIcons as e3,Mode2 as e4,EngineModeIcons as e5,DeploymentModelIcons as e6,markdown as e7,guid as e8,EditList as e9,_baseFindIndex as eA,_Set as eB,_setToArray as eC,_SetCache as eD,_cacheHas as eE,img$Q as eF,img$P as eG,img$1y as eH,img$1x as eI,img$1w as eJ,img$N as eK,img$1A as eL,img$M as eM,authSelector as eN,ListItemAvatar$1 as eO,emphasize as eP,useSlotProps as eQ,_arraySome as eR,EntityType as eS,generateState as eT,injectIntl as eU,ErrorBoundary$1 as eV,EPermissionAction as eW,Process as eX,Information as eY,Download as eZ,NewFolder as e_,ButtonBase$1 as ea,isObject_1 as eb,_arrayMap as ec,_Symbol as ed,isArguments_1 as ee,_baseEach as ef,_arrayFilter as eg,_getNative as eh,eq_1 as ei,_root as ej,_Uint8Array as ek,_overArg as el,_isPrototype as em,isObjectLike_1 as en,_baseGetTag as eo,_arrayLikeKeys as ep,isBuffer$5 as eq,isFunction_1 as er,isTypedArray_1 as es,_Stack as et,_baseFor as eu,identity_1 as ev,_isIterateeCall as ew,isSymbol_1 as ex,_baseMap as ey,_baseUnary as ez,clsx as f,index$1 as f$,User as f0,Source as f1,Search$2 as f2,selectIsOLPEnabled as f3,ListItemSecondaryAction$1 as f4,getLibraryModule as f5,cmsUrlSelector as f6,debounce_1 as f7,SearchStructuredData as f8,Grow$1 as f9,FixedSizeList as fA,selectUserOrgEdgeVersion as fB,EditAttributes as fC,gqlIntrospection as fD,ProcessingDetail as fE,img$y as fF,img$A as fG,img$6 as fH,FilterRemove as fI,AlarmTwo as fJ,tableInfiniteScroll as fK,CheckCircle as fL,FolderOpen as fM,Voice as fN,useDoubleClick as fO,FolderFilled as fP,Time as fQ,img$B as fR,Undefined as fS,PodcastSource as fT,YoutubeSource as fU,TVSource as fV,RadioSource as fW,selectOrgId as fX,navSectionStyles as fY,selectIsUserAdmin as fZ,AvatarGroup$1 as f_,configSelector as fa,index as fb,betaFeaturesSelector as fc,actions as fd,hasPermission as fe,UserAddFilled as ff,MenuList$1 as fg,MoveFolder as fh,EAuthResourceType as fi,Slide$1 as fj,img$c as fk,selectApiConfigs$2 as fl,selectPanelByPanelName as fm,FullScreenContainer as fn,EngineCategoryIcons as fo,isPermissionLoading as fp,Settings$2 as fq,Hamburger as fr,List as fs,enginesFilter as ft,panelsSelector as fu,Badge$1 as fv,MoreHor as fw,convertEntityToAuthResource as fx,AutoSizer as fy,InfiniteLoader as fz,generateUtilityClass as g,Task as g$,ErrorState$2 as g0,Stepper$1 as g1,StepConnector$1 as g2,Step$1 as g3,StepLabel$1 as g4,isEqual_1 as g5,NullState$2 as g6,Group as g7,PermissionChangedAction as g8,Lock as g9,EApplicationConfigType as gA,green$1 as gB,md5 as gC,selectIsSuperAdmin as gD,organizations_selector as gE,actions$5 as gF,AddUser as gG,selectors as gH,LibraryDropdown as gI,Remove as gJ,Save as gK,Input$3 as gL,getElement as gM,client$1 as gN,Copy as gO,ArrowForward as gP,Modal$1 as gQ,Slider$1 as gR,getDefaultExportFromCjs as gS,_getSymbols as gT,stubArray_1 as gU,_baseGetAllKeys as gV,_getTag as gW,_nodeUtil as gX,_getAllKeys as gY,_castFunction as gZ,Article as g_,useOrganizationPermissions as ga,EAuthSubResourceType as gb,AddGroup as gc,initialConfigSelector as gd,EMessageTypes as ge,errors as gf,ConfirmationModal as gg,panelComponents as gh,EnumHelpers as gi,formatBytes as gj,NotInterested as gk,mountPanelForResponse$1 as gl,default_1$a as gm,tableStyles as gn,ArrowDown as go,ArrowUp as gp,useInterval as gq,Iam as gr,safeFormatMessage as gs,contextMenuStyles as gt,Users as gu,SecurityGroup as gv,getOrganizationPanelModule as gw,Lock2 as gx,EApplicationConfigLevel as gy,NoApps as gz,composeClasses as h,unmountAllPanel as h$,View as h0,isNumber_1 as h1,Check as h2,EngineIconsRenderer as h3,FormattedRelativeTime$1 as h4,BottomQueue as h5,TopQueue as h6,Pause as h7,Cancel as h8,Folder as h9,flush$4 as hA,tableSearchComponents as hB,cancel as hC,FlowTemplate as hD,Node as hE,Palette as hF,FlowCenter2 as hG,ArrowBack as hH,Schema$1 as hI,truncatedString as hJ,img$1 as hK,img$x as hL,AutomateNode as hM,Clear as hN,ExpandLess as hO,ExpandMore as hP,registry as hQ,registerComponent as hR,AvailableWidgets as hS,updatePanelMicroFrontendProps as hT,setData as hU,root as hV,mountWidget as hW,unmountWidget as hX,mountPanel as hY,unmountPanel as hZ,hidePanel as h_,Hidden as ha,dateRangeFilter as hb,statusFilter as hc,TableLoadingState as hd,setDuration as he,resetDuration as hf,ButtonGroupContext$1 as hg,toFinite_1 as hh,_baseForOwn as hi,_arrayReduce as hj,hasIn_1 as hk,now_1 as hl,useSyncExternalStoreExports as hm,Engines as hn,EngineComponentLoader as ho,EngineFieldType as hp,imageUpload as hq,characterCountTextField as hr,createStack as hs,tabsClasses$1 as ht,Packages as hu,Resources$1 as hv,selectUserCanCreatePackage as hw,PackagesAvatar as hx,actionChannel as hy,cancelled as hz,createSvgIcon$1 as i,init as i0,aiwareEvents as i1,jsxRuntime as j,interopRequireDefault as k,createSlice as l,makeStyles as m,Route as n,useDispatch as o,useSelector as p,authStatusSelector as q,react$1 as r,store$5 as s,authContextSelector as t,useThemeProps as u,AuthContext as v,lodash as w,Alert$1 as x,useNavigate as y,devErrorLogger as z};
package/js-core.esm.js.gz CHANGED
Binary file