aiware-js 1.0.0-master.844 → 1.0.0-master.846
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.esm48.js +2 -2
- package/js-core.esm48.js.gz +0 -0
- package/js-core.esm61.js +52 -6
- package/js-core.esm61.js.gz +0 -0
- package/js-core.esm64.js +1 -1
- package/js-core.esm64.js.gz +0 -0
- package/js-core.esm84.js +1 -1
- package/js-core.esm84.js.gz +0 -0
- package/js-core.umd.js +239 -193
- 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:"e6f316116",releaseDate:"2023-09-14T18:14:20.382Z"});export{IconButton$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,logout as K,LinearProgress$1 as L,LoadingButton$1 as M,authErrorMessage as N,Grid$1 as O,Provider$2 as P,FormControl$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,TextField$1 as U,classNames as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,Skeleton$1 as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,enableBetaFeatures as a4,Popover$1 as a5,all$2 as a6,CheckmarkFilled as a7,Bullet as a8,debounce_1 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,reactDom 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,DialogTitle$1 as bA,DialogContent$1 as bB,DialogActions$1 as bC,Snackbar$1 as bD,default_1$6 as bE,Search$1 as bF,img$l as bG,img$n as bH,img$X as bI,Tabs$2 as bJ,Tab$2 as bK,deleteEngine as bL,fetchEngine as bM,img$m as bN,AIWareFormatMessage as bO,FormattedDate as bP,fetchVeritoneGraphQLApi as bQ,useTheme as bR,KeyboardArrowRight as bS,KeyboardArrowLeft as bT,InputUnstyled as bU,isHostComponent as bV,getDefaultExportFromNamespaceIfNotNamed as bW,commonjsRequire as bX,_typeof$D as bY,_assertThisInitialized$x as bZ,_setPrototypeOf$z 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,Fade$1 as bv,img$v as bw,img$s as bx,img$T as by,img$F as bz,Paper$1 as c,TabPanel as c$,Transition$1 as c0,_defineProperty$x as c1,__awaiter$e as c2,__generator$2 as c3,__spread as c4,React5 as c5,PropTypes as c6,TransitionGroup$1 as c7,connect$1 as c8,Bookmark as c9,Controller as cA,FormHelperText$2 as cB,img$i as cC,ThemeProvider as cD,lightTheme$1 as cE,CssBaseline as cF,Hide as cG,has_1 as cH,Radio$2 as cI,createSvgIcon$2 as cJ,_createCompounder as cK,_toPropertyKey as cL,_inheritsLoose$2 as cM,hoistNonReactStatics_cjs as cN,commonjsGlobal$2 as cO,combineReducers as cP,createSelector$1 as cQ,fork as cR,statusPill as cS,AIWareThemeProvider$1 as cT,LocalizationProvider as cU,AdapterDateFns as cV,CalendarPicker as cW,Stack$4 as cX,Close$1 as cY,FullscreenExit as cZ,Fullscreen as c_,EngineFlagIcons as ca,createAsyncThunk as cb,withStyles as cc,getConfigModule as cd,getAuthModule as ce,getSnackbarModule as cf,AIWareCacheProvider as cg,img$U as ch,img$g as ci,img$f as cj,isEmpty_1 as ck,find_1 as cl,Backdrop$1 as cm,getDefaultMiddleware as cn,isNil_1 as co,useForm as cp,UpDown as cq,Icon$1 as cr,get_1 as cs,map_1 as ct,keys_1 as cu,RadioGroup$1 as cv,Avatar$1 as cw,img$z as cx,baseGraphQLApi as cy,default_1$9 as cz,capitalize$2 as d,CurlyBraces as d$,ReactMarkdown as d0,default_1$8 as d1,unmountPanel$1 as d2,AvailableComponents as d3,delay$1 as d4,hidePanel$1 as d5,mountPanel$1 as d6,DialogContentText$1 as d7,userSelector$2 as d8,MoreVert$1 as d9,_baseTrim as dA,_castSlice as dB,_stringToArray as dC,toString_1 as dD,upperFirst_1 as dE,isArrayLike_1 as dF,isString_1 as dG,toInteger_1 as dH,_baseGet as dI,_baseSlice as dJ,_castPath as dK,_toKey as dL,_isIndex as dM,channel$2 as dN,useFormContext as dO,useIntl as dP,useFieldArray as dQ,VideoCamera as dR,Image$1 as dS,Sound as dT,Description as dU,toNumber_1 as dV,FormProvider as dW,ProgressStepper as dX,size_1 as dY,findIndex_1 as dZ,take as d_,Menu$1 as da,Edit as db,Upload as dc,Delete$1 as dd,CustomTabs as de,useBackupImg as df,img$1C as dg,validate as dh,img$19 as di,baseGraphQLApiWithError as dj,VerifiedFilled as dk,Add as dl,ExpandLess$1 as dm,ExpandMore$1 as dn,Collapse$1 as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_baseIteratee as dy,_baseToString as dz,_objectWithoutPropertiesLoose$2 as e,Information as e$,UnknownDocument as e0,VariableSizeList as e1,sdkEventManager as e2,SdkEvents as e3,SdkError as e4,distributionTypes as e5,EngineClassIcons as e6,Mode2 as e7,EngineModeIcons as e8,DeploymentModelIcons as e9,isSymbol_1 as eA,_baseMap as eB,_baseUnary as eC,_baseFindIndex as eD,_Set as eE,_setToArray as eF,_SetCache as eG,_cacheHas as eH,img$Q as eI,img$P as eJ,img$1y as eK,img$1x as eL,img$1w as eM,img$N as eN,img$1A as eO,img$M as eP,authSelector as eQ,ListItemAvatar$1 as eR,emphasize as eS,useSlotProps as eT,_arraySome as eU,EntityType as eV,generateState as eW,injectIntl as eX,ErrorBoundary$1 as eY,EPermissionAction as eZ,Process as e_,markdown as ea,guid as eb,EditList as ec,ButtonBase$1 as ed,isObject_1 as ee,_arrayMap as ef,_Symbol as eg,isArguments_1 as eh,_baseEach as ei,_arrayFilter as ej,_getNative as ek,eq_1 as el,_root as em,_Uint8Array as en,_overArg as eo,_isPrototype as ep,isObjectLike_1 as eq,_baseGetTag as er,_arrayLikeKeys as es,isBuffer$5 as et,isFunction_1 as eu,isTypedArray_1 as ev,_Stack as ew,_baseFor as ex,identity_1 as ey,_isIterateeCall as ez,clsx as f,AvatarGroup$1 as f$,Download as f0,NewFolder as f1,SpecialFolder as f2,User as f3,Source as f4,Search$2 as f5,selectIsOLPEnabled as f6,ListItemSecondaryAction$1 as f7,getLibraryModule as f8,cmsUrlSelector as f9,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,unmountAllPanel 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,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_,Folder as ha,Hidden as hb,dateRangeFilter as hc,statusFilter as hd,TableLoadingState as he,setDuration as hf,resetDuration as hg,createStack as hh,ButtonGroupContext$1 as hi,toFinite_1 as hj,_baseForOwn as hk,_arrayReduce as hl,hasIn_1 as hm,now_1 as hn,useSyncExternalStoreExports as ho,Engines as hp,EngineComponentLoader as hq,EngineFieldType as hr,imageUpload as hs,characterCountTextField 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,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,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:"816bf411a",releaseDate:"2023-09-14T22:37:03.727Z"});export{IconButton$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,logout as K,LinearProgress$1 as L,LoadingButton$1 as M,authErrorMessage as N,Grid$1 as O,Provider$2 as P,FormControl$1 as Q,Routes as R,Switch$1 as S,Typography$1 as T,TextField$1 as U,classNames as V,resetPasswordRequest as W,InputLabel$1 as X,OutlinedInput$1 as Y,InputAdornment$1 as Z,_extends$5 as _,generateUtilityClasses as a,Skeleton$1 as a$,Select$1 as a0,Location as a1,MenuItem$1 as a2,Divider$1 as a3,enableBetaFeatures as a4,Popover$1 as a5,all$2 as a6,CheckmarkFilled as a7,Bullet as a8,debounce_1 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,reactDom 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,DialogTitle$1 as bA,DialogContent$1 as bB,DialogActions$1 as bC,Snackbar$1 as bD,default_1$6 as bE,Search$1 as bF,img$l as bG,img$n as bH,img$X as bI,Tabs$2 as bJ,Tab$2 as bK,deleteEngine as bL,fetchEngine as bM,img$m as bN,AIWareFormatMessage as bO,FormattedDate as bP,fetchVeritoneGraphQLApi as bQ,useTheme as bR,KeyboardArrowRight as bS,KeyboardArrowLeft as bT,InputUnstyled as bU,isHostComponent as bV,getDefaultExportFromNamespaceIfNotNamed as bW,commonjsRequire as bX,_typeof$D as bY,_assertThisInitialized$x as bZ,_setPrototypeOf$z 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,Fade$1 as bv,img$v as bw,img$s as bx,img$T as by,img$F as bz,Paper$1 as c,TabPanel as c$,Transition$1 as c0,_defineProperty$x as c1,__awaiter$e as c2,__generator$2 as c3,__spread as c4,React5 as c5,PropTypes as c6,TransitionGroup$1 as c7,connect$1 as c8,Bookmark as c9,Controller as cA,FormHelperText$2 as cB,img$i as cC,ThemeProvider as cD,lightTheme$1 as cE,CssBaseline as cF,Hide as cG,has_1 as cH,Radio$2 as cI,createSvgIcon$2 as cJ,_createCompounder as cK,_toPropertyKey as cL,_inheritsLoose$2 as cM,hoistNonReactStatics_cjs as cN,commonjsGlobal$2 as cO,combineReducers as cP,createSelector$1 as cQ,fork as cR,statusPill as cS,AIWareThemeProvider$1 as cT,LocalizationProvider as cU,AdapterDateFns as cV,CalendarPicker as cW,Stack$4 as cX,Close$1 as cY,FullscreenExit as cZ,Fullscreen as c_,EngineFlagIcons as ca,createAsyncThunk as cb,withStyles as cc,getConfigModule as cd,getAuthModule as ce,getSnackbarModule as cf,AIWareCacheProvider as cg,img$U as ch,img$g as ci,img$f as cj,isEmpty_1 as ck,find_1 as cl,Backdrop$1 as cm,getDefaultMiddleware as cn,isNil_1 as co,useForm as cp,UpDown as cq,Icon$1 as cr,get_1 as cs,map_1 as ct,keys_1 as cu,RadioGroup$1 as cv,Avatar$1 as cw,img$z as cx,baseGraphQLApi as cy,default_1$9 as cz,capitalize$2 as d,CurlyBraces as d$,ReactMarkdown as d0,default_1$8 as d1,unmountPanel$1 as d2,AvailableComponents as d3,delay$1 as d4,hidePanel$1 as d5,mountPanel$1 as d6,DialogContentText$1 as d7,userSelector$2 as d8,MoreVert$1 as d9,_baseTrim as dA,_castSlice as dB,_stringToArray as dC,toString_1 as dD,upperFirst_1 as dE,isArrayLike_1 as dF,isString_1 as dG,toInteger_1 as dH,_baseGet as dI,_baseSlice as dJ,_castPath as dK,_toKey as dL,_isIndex as dM,channel$2 as dN,useFormContext as dO,useIntl as dP,useFieldArray as dQ,VideoCamera as dR,Image$1 as dS,Sound as dT,Description as dU,toNumber_1 as dV,FormProvider as dW,ProgressStepper as dX,size_1 as dY,findIndex_1 as dZ,take as d_,Menu$1 as da,Edit as db,Upload as dc,Delete$1 as dd,CustomTabs as de,useBackupImg as df,img$1C as dg,validate as dh,img$19 as di,baseGraphQLApiWithError as dj,VerifiedFilled as dk,Add as dl,ExpandLess$1 as dm,ExpandMore$1 as dn,Collapse$1 as dp,Filter$1 as dq,DynamicTable as dr,useTheme$3 as ds,getThemeProps as dt,useEnhancedEffect$3 as du,React as dv,_arrayPush as dw,isArray_1 as dx,_baseIteratee as dy,_baseToString as dz,_objectWithoutPropertiesLoose$2 as e,Information as e$,UnknownDocument as e0,VariableSizeList as e1,sdkEventManager as e2,SdkEvents as e3,SdkError as e4,distributionTypes as e5,EngineClassIcons as e6,Mode2 as e7,EngineModeIcons as e8,DeploymentModelIcons as e9,isSymbol_1 as eA,_baseMap as eB,_baseUnary as eC,_baseFindIndex as eD,_Set as eE,_setToArray as eF,_SetCache as eG,_cacheHas as eH,img$Q as eI,img$P as eJ,img$1y as eK,img$1x as eL,img$1w as eM,img$N as eN,img$1A as eO,img$M as eP,authSelector as eQ,ListItemAvatar$1 as eR,emphasize as eS,useSlotProps as eT,_arraySome as eU,EntityType as eV,generateState as eW,injectIntl as eX,ErrorBoundary$1 as eY,EPermissionAction as eZ,Process as e_,markdown as ea,guid as eb,EditList as ec,ButtonBase$1 as ed,isObject_1 as ee,_arrayMap as ef,_Symbol as eg,isArguments_1 as eh,_baseEach as ei,_arrayFilter as ej,_getNative as ek,eq_1 as el,_root as em,_Uint8Array as en,_overArg as eo,_isPrototype as ep,isObjectLike_1 as eq,_baseGetTag as er,_arrayLikeKeys as es,isBuffer$5 as et,isFunction_1 as eu,isTypedArray_1 as ev,_Stack as ew,_baseFor as ex,identity_1 as ey,_isIterateeCall as ez,clsx as f,AvatarGroup$1 as f$,Download as f0,NewFolder as f1,SpecialFolder as f2,User as f3,Source as f4,Search$2 as f5,selectIsOLPEnabled as f6,ListItemSecondaryAction$1 as f7,getLibraryModule as f8,cmsUrlSelector as f9,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,unmountAllPanel 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,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_,Folder as ha,Hidden as hb,dateRangeFilter as hc,statusFilter as hd,TableLoadingState as he,setDuration as hf,resetDuration as hg,createStack as hh,ButtonGroupContext$1 as hi,toFinite_1 as hj,_baseForOwn as hk,_arrayReduce as hl,hasIn_1 as hm,now_1 as hn,useSyncExternalStoreExports as ho,Engines as hp,EngineComponentLoader as hq,EngineFieldType as hr,imageUpload as hs,characterCountTextField 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,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,betaFeaturesSelector as y,useNavigate as z};
|
package/js-core.esm.js.gz
CHANGED
|
Binary file
|