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