jett.admin.npmpackage 1.0.94 → 1.0.96
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/dist/index.css +27 -2
- package/dist/index.js +75 -52
- package/dist/index.mjs +78 -60
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
--text-base--line-height: calc(1.5 / 1);
|
|
54
54
|
--text-lg: 1.125rem;
|
|
55
55
|
--text-lg--line-height: calc(1.75 / 1.125);
|
|
56
|
+
--font-weight-normal: 400;
|
|
56
57
|
--font-weight-medium: 500;
|
|
57
58
|
--font-weight-semibold: 600;
|
|
58
59
|
--radius-sm: 0.25rem;
|
|
@@ -777,6 +778,15 @@
|
|
|
777
778
|
font-size: var(--text-xs);
|
|
778
779
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
779
780
|
}
|
|
781
|
+
.\!text-\[14px\] {
|
|
782
|
+
font-size: 14px !important;
|
|
783
|
+
}
|
|
784
|
+
.\!text-\[15px\] {
|
|
785
|
+
font-size: 15px !important;
|
|
786
|
+
}
|
|
787
|
+
.\!text-\[16px\] {
|
|
788
|
+
font-size: 16px !important;
|
|
789
|
+
}
|
|
780
790
|
.text-\[12px\] {
|
|
781
791
|
font-size: 12px;
|
|
782
792
|
}
|
|
@@ -794,6 +804,18 @@
|
|
|
794
804
|
--tw-leading: calc(var(--spacing) * 6);
|
|
795
805
|
line-height: calc(var(--spacing) * 6);
|
|
796
806
|
}
|
|
807
|
+
.\!font-medium {
|
|
808
|
+
--tw-font-weight: var(--font-weight-medium) !important;
|
|
809
|
+
font-weight: var(--font-weight-medium) !important;
|
|
810
|
+
}
|
|
811
|
+
.\!font-normal {
|
|
812
|
+
--tw-font-weight: var(--font-weight-normal) !important;
|
|
813
|
+
font-weight: var(--font-weight-normal) !important;
|
|
814
|
+
}
|
|
815
|
+
.\!font-semibold {
|
|
816
|
+
--tw-font-weight: var(--font-weight-semibold) !important;
|
|
817
|
+
font-weight: var(--font-weight-semibold) !important;
|
|
818
|
+
}
|
|
797
819
|
.font-\[500\] {
|
|
798
820
|
--tw-font-weight: 500;
|
|
799
821
|
font-weight: 500;
|
|
@@ -810,8 +832,11 @@
|
|
|
810
832
|
--tw-font-weight: var(--font-weight-semibold);
|
|
811
833
|
font-weight: var(--font-weight-semibold);
|
|
812
834
|
}
|
|
813
|
-
|
|
814
|
-
color: #000;
|
|
835
|
+
.\!text-\[\#000\] {
|
|
836
|
+
color: #000 !important;
|
|
837
|
+
}
|
|
838
|
+
.\!text-\[\#3f3f46cc\] {
|
|
839
|
+
color: #3f3f46cc !important;
|
|
815
840
|
}
|
|
816
841
|
.text-\[\#3f3f46cc\] {
|
|
817
842
|
color: #3f3f46cc;
|
package/dist/index.js
CHANGED
|
@@ -455,33 +455,6 @@ var navItemsConstant = [
|
|
|
455
455
|
},
|
|
456
456
|
isDropDown: false
|
|
457
457
|
},
|
|
458
|
-
{
|
|
459
|
-
Icon: import_lucide_react4.Globe,
|
|
460
|
-
label: "TMC Ecosystem",
|
|
461
|
-
onClick: () => {
|
|
462
|
-
},
|
|
463
|
-
isDropDown: true,
|
|
464
|
-
options: [
|
|
465
|
-
{
|
|
466
|
-
label: "Markets",
|
|
467
|
-
onClick: () => {
|
|
468
|
-
window.location.href = "/market/";
|
|
469
|
-
}
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
label: "Users",
|
|
473
|
-
onClick: () => {
|
|
474
|
-
window.location.href = `/users/users?role=admin&auth=${encodedAuthData}`;
|
|
475
|
-
}
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
label: "Supplier Ecosystem",
|
|
479
|
-
onClick: () => {
|
|
480
|
-
window.location.href = "/supplier/";
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
]
|
|
484
|
-
},
|
|
485
458
|
{
|
|
486
459
|
Icon: import_lucide_react4.Building,
|
|
487
460
|
label: "Consumer Ecosystem",
|
|
@@ -501,43 +474,51 @@ var navItemsConstant = [
|
|
|
501
474
|
}
|
|
502
475
|
},
|
|
503
476
|
{
|
|
504
|
-
label: "
|
|
477
|
+
label: "Users",
|
|
505
478
|
onClick: () => {
|
|
506
|
-
window.location.href = "/
|
|
479
|
+
window.location.href = "/orgselector/?path=users";
|
|
507
480
|
}
|
|
508
481
|
},
|
|
509
482
|
{
|
|
510
|
-
label: "
|
|
483
|
+
label: "Tags (Consumer Variables)",
|
|
511
484
|
onClick: () => {
|
|
512
|
-
window.
|
|
485
|
+
window.location.href = "/orgselector/?path=tag";
|
|
513
486
|
}
|
|
514
487
|
},
|
|
515
488
|
{
|
|
516
|
-
label: "
|
|
489
|
+
label: "Special Request",
|
|
517
490
|
onClick: () => {
|
|
518
|
-
window.location.href = "/orgselector/?path=
|
|
491
|
+
window.location.href = "/orgselector/?path=special-requests";
|
|
519
492
|
}
|
|
520
493
|
},
|
|
521
494
|
{
|
|
522
|
-
label: "
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
495
|
+
label: "Support Tickets (Coming Soon)",
|
|
496
|
+
isDisabled: true
|
|
497
|
+
// onClick: () => {},
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
isDropDown: true
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
Icon: import_lucide_react4.Banknote,
|
|
504
|
+
label: "Finance",
|
|
505
|
+
onClick: () => {
|
|
506
|
+
},
|
|
507
|
+
isDropDown: true,
|
|
508
|
+
options: [
|
|
527
509
|
{
|
|
528
|
-
label: "
|
|
510
|
+
label: "Credit Management",
|
|
529
511
|
onClick: () => {
|
|
530
512
|
window.location.href = "/finance/paymentsLedger/";
|
|
531
513
|
}
|
|
532
514
|
},
|
|
533
515
|
{
|
|
534
|
-
label: "
|
|
516
|
+
label: "Booking & Invoices",
|
|
535
517
|
onClick: () => {
|
|
536
|
-
window.location.href = "/
|
|
518
|
+
window.location.href = "/finance/bookingHistory/";
|
|
537
519
|
}
|
|
538
520
|
}
|
|
539
|
-
]
|
|
540
|
-
isDropDown: true
|
|
521
|
+
]
|
|
541
522
|
},
|
|
542
523
|
{
|
|
543
524
|
Icon: import_lucide_react4.DollarSign,
|
|
@@ -547,7 +528,7 @@ var navItemsConstant = [
|
|
|
547
528
|
isDropDown: true,
|
|
548
529
|
options: [
|
|
549
530
|
{
|
|
550
|
-
label: "Pricing
|
|
531
|
+
label: "Pricing Engine",
|
|
551
532
|
onClick: () => {
|
|
552
533
|
window.location.href = "/orgselector/?path=pricing-policy";
|
|
553
534
|
}
|
|
@@ -563,21 +544,46 @@ var navItemsConstant = [
|
|
|
563
544
|
onClick: () => {
|
|
564
545
|
window.location.href = "/orgselector/?path=voucher";
|
|
565
546
|
}
|
|
566
|
-
}
|
|
547
|
+
}
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
Icon: import_lucide_react4.Handshake,
|
|
552
|
+
label: "Supplier Ecosystem",
|
|
553
|
+
onClick: () => {
|
|
554
|
+
},
|
|
555
|
+
isDropDown: true,
|
|
556
|
+
options: [
|
|
567
557
|
{
|
|
568
|
-
label: "
|
|
558
|
+
label: "Suppliers List",
|
|
569
559
|
onClick: () => {
|
|
570
|
-
window.location.href = "/
|
|
560
|
+
window.location.href = "/supplier/";
|
|
571
561
|
}
|
|
572
562
|
},
|
|
573
563
|
{
|
|
574
|
-
label: "
|
|
564
|
+
label: "Supplier Deals",
|
|
575
565
|
onClick: () => {
|
|
576
|
-
window.location.href = "/
|
|
566
|
+
window.location.href = "/supplierdeals/";
|
|
577
567
|
}
|
|
578
568
|
}
|
|
579
569
|
]
|
|
580
570
|
},
|
|
571
|
+
{
|
|
572
|
+
Icon: import_lucide_react4.BarChart3,
|
|
573
|
+
label: "Reports",
|
|
574
|
+
onClick: () => {
|
|
575
|
+
},
|
|
576
|
+
isDropDown: true,
|
|
577
|
+
options: [
|
|
578
|
+
{
|
|
579
|
+
label: "Reports (Coming Soon)",
|
|
580
|
+
isDisabled: true
|
|
581
|
+
// onClick: () => {
|
|
582
|
+
// window.open("https://viz.jett.travel", "_blank");
|
|
583
|
+
// },
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
},
|
|
581
587
|
{
|
|
582
588
|
Icon: import_lucide_react4.Cog,
|
|
583
589
|
label: "Settings",
|
|
@@ -590,6 +596,23 @@ var navItemsConstant = [
|
|
|
590
596
|
onClick: () => {
|
|
591
597
|
window.location.href = "/whitelabel/";
|
|
592
598
|
}
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
label: "Markets",
|
|
602
|
+
onClick: () => {
|
|
603
|
+
window.location.href = "/market/";
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
label: "Users",
|
|
608
|
+
onClick: () => {
|
|
609
|
+
window.location.href = `/users/users?role=admin&auth=${encodedAuthData}`;
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
label: "Reports Configurations (Coming Soon)",
|
|
614
|
+
isDisabled: true
|
|
615
|
+
// onClick: () => {},
|
|
593
616
|
}
|
|
594
617
|
]
|
|
595
618
|
}
|
|
@@ -1041,7 +1064,7 @@ var AppSideBar = ({
|
|
|
1041
1064
|
onClick: (e) => handleMenuClick(item, index, e)
|
|
1042
1065
|
},
|
|
1043
1066
|
/* @__PURE__ */ import_react12.default.createElement("div", { className: "text-primary" }, /* @__PURE__ */ import_react12.default.createElement(item.Icon, { width: 20, height: 20 })),
|
|
1044
|
-
/* @__PURE__ */ import_react12.default.createElement("span", { className: "font-medium text-
|
|
1067
|
+
/* @__PURE__ */ import_react12.default.createElement("span", { className: "!font-medium !text-[16px] !text-[#000] dark:text-[#f4f4f5cc]" }, item.label),
|
|
1045
1068
|
item.isDropDown && /* @__PURE__ */ import_react12.default.createElement("div", { className: `ml-auto transition-all delay-75 ${isOpen ? "rotate-180" : ""}` }, /* @__PURE__ */ import_react12.default.createElement(import_lucide_react6.ChevronDown, { width: 20, height: 20, className: "text-gray-500 dark:text-gray-400" }))
|
|
1046
1069
|
), item.options && item.options.length > 0 && /* @__PURE__ */ import_react12.default.createElement(
|
|
1047
1070
|
"div",
|
|
@@ -1059,7 +1082,7 @@ var AppSideBar = ({
|
|
|
1059
1082
|
onClick: (e) => handleSubMenuClick(options, optionsIndex, index, e)
|
|
1060
1083
|
},
|
|
1061
1084
|
/* @__PURE__ */ import_react12.default.createElement("div", null),
|
|
1062
|
-
/* @__PURE__ */ import_react12.default.createElement("span", { className: "font-medium text-
|
|
1085
|
+
/* @__PURE__ */ import_react12.default.createElement("span", { className: "!font-medium !text-[15px] !text-[#3f3f46cc] dark:text-[#a1a1aa]" }, options.label),
|
|
1063
1086
|
options.isDropDown && /* @__PURE__ */ import_react12.default.createElement(
|
|
1064
1087
|
"div",
|
|
1065
1088
|
{
|
|
@@ -1096,7 +1119,7 @@ var AppSideBar = ({
|
|
|
1096
1119
|
window.location.href = "/profile";
|
|
1097
1120
|
}
|
|
1098
1121
|
},
|
|
1099
|
-
/* @__PURE__ */ import_react12.default.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "relative flex shrink-0 overflow-hidden dark:bg-[#27272a] rounded-full h-10 w-10" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "flex h-full w-full items-center justify-center rounded-full bg-muted dark:text-white" }, ((_a = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _a.UserName) ? authData.userInfo.UserName.split("")[0] : "A")), /* @__PURE__ */ import_react12.default.createElement("div", null, /* @__PURE__ */ import_react12.default.createElement("p", { className: "font-semibold dark:text-white" }, ((_b = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _b.UserName) ? authData.userInfo.UserName : "Admin
|
|
1122
|
+
/* @__PURE__ */ import_react12.default.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "relative flex shrink-0 overflow-hidden dark:bg-[#27272a] rounded-full h-10 w-10" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "flex h-full w-full items-center justify-center !text-[16px] !font-normal border border-gray-200 dark:border-[#303036] rounded-full bg-muted dark:text-white" }, ((_a = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _a.UserName) ? authData.userInfo.UserName.split("")[0] : "A")), /* @__PURE__ */ import_react12.default.createElement("div", null, /* @__PURE__ */ import_react12.default.createElement("p", { className: "!font-semibold dark:text-white !text-[16px]" }, ((_b = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _b.UserName) ? authData.userInfo.UserName : "Admin"), /* @__PURE__ */ import_react12.default.createElement("p", { className: "!text-[14px] !font-normal dark:text-[#f4f4f5cc]" }, role)))
|
|
1100
1123
|
))
|
|
1101
1124
|
));
|
|
1102
1125
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -393,7 +393,7 @@ var CustomUpload = ({
|
|
|
393
393
|
// src/sideBar/SideBar.jsx
|
|
394
394
|
import {
|
|
395
395
|
ChevronDown as ChevronDown3,
|
|
396
|
-
Globe
|
|
396
|
+
Globe,
|
|
397
397
|
LogOut,
|
|
398
398
|
Menu,
|
|
399
399
|
X
|
|
@@ -403,18 +403,13 @@ import React12, { useEffect, useState as useState3, useCallback } from "react";
|
|
|
403
403
|
// ConstantUI.js
|
|
404
404
|
import {
|
|
405
405
|
Home,
|
|
406
|
-
BaggageClaim,
|
|
407
|
-
Users,
|
|
408
406
|
Banknote,
|
|
409
|
-
Globe,
|
|
410
|
-
TrendingUp,
|
|
411
|
-
FileText,
|
|
412
|
-
FileKey2,
|
|
413
407
|
LifeBuoy,
|
|
414
408
|
Cog,
|
|
415
409
|
Building,
|
|
416
410
|
Handshake,
|
|
417
|
-
DollarSign
|
|
411
|
+
DollarSign,
|
|
412
|
+
BarChart3
|
|
418
413
|
} from "lucide-react";
|
|
419
414
|
var encodedAuthData = localStorage.getItem("encodedAuthData");
|
|
420
415
|
var navItemsConstant = [
|
|
@@ -426,33 +421,6 @@ var navItemsConstant = [
|
|
|
426
421
|
},
|
|
427
422
|
isDropDown: false
|
|
428
423
|
},
|
|
429
|
-
{
|
|
430
|
-
Icon: Globe,
|
|
431
|
-
label: "TMC Ecosystem",
|
|
432
|
-
onClick: () => {
|
|
433
|
-
},
|
|
434
|
-
isDropDown: true,
|
|
435
|
-
options: [
|
|
436
|
-
{
|
|
437
|
-
label: "Markets",
|
|
438
|
-
onClick: () => {
|
|
439
|
-
window.location.href = "/market/";
|
|
440
|
-
}
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
label: "Users",
|
|
444
|
-
onClick: () => {
|
|
445
|
-
window.location.href = `/users/users?role=admin&auth=${encodedAuthData}`;
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
label: "Supplier Ecosystem",
|
|
450
|
-
onClick: () => {
|
|
451
|
-
window.location.href = "/supplier/";
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
]
|
|
455
|
-
},
|
|
456
424
|
{
|
|
457
425
|
Icon: Building,
|
|
458
426
|
label: "Consumer Ecosystem",
|
|
@@ -472,43 +440,51 @@ var navItemsConstant = [
|
|
|
472
440
|
}
|
|
473
441
|
},
|
|
474
442
|
{
|
|
475
|
-
label: "
|
|
443
|
+
label: "Users",
|
|
476
444
|
onClick: () => {
|
|
477
|
-
window.location.href = "/
|
|
445
|
+
window.location.href = "/orgselector/?path=users";
|
|
478
446
|
}
|
|
479
447
|
},
|
|
480
448
|
{
|
|
481
|
-
label: "
|
|
449
|
+
label: "Tags (Consumer Variables)",
|
|
482
450
|
onClick: () => {
|
|
483
|
-
window.
|
|
451
|
+
window.location.href = "/orgselector/?path=tag";
|
|
484
452
|
}
|
|
485
453
|
},
|
|
486
454
|
{
|
|
487
|
-
label: "
|
|
455
|
+
label: "Special Request",
|
|
488
456
|
onClick: () => {
|
|
489
|
-
window.location.href = "/orgselector/?path=
|
|
457
|
+
window.location.href = "/orgselector/?path=special-requests";
|
|
490
458
|
}
|
|
491
459
|
},
|
|
492
460
|
{
|
|
493
|
-
label: "
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
461
|
+
label: "Support Tickets (Coming Soon)",
|
|
462
|
+
isDisabled: true
|
|
463
|
+
// onClick: () => {},
|
|
464
|
+
}
|
|
465
|
+
],
|
|
466
|
+
isDropDown: true
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
Icon: Banknote,
|
|
470
|
+
label: "Finance",
|
|
471
|
+
onClick: () => {
|
|
472
|
+
},
|
|
473
|
+
isDropDown: true,
|
|
474
|
+
options: [
|
|
498
475
|
{
|
|
499
|
-
label: "
|
|
476
|
+
label: "Credit Management",
|
|
500
477
|
onClick: () => {
|
|
501
478
|
window.location.href = "/finance/paymentsLedger/";
|
|
502
479
|
}
|
|
503
480
|
},
|
|
504
481
|
{
|
|
505
|
-
label: "
|
|
482
|
+
label: "Booking & Invoices",
|
|
506
483
|
onClick: () => {
|
|
507
|
-
window.location.href = "/
|
|
484
|
+
window.location.href = "/finance/bookingHistory/";
|
|
508
485
|
}
|
|
509
486
|
}
|
|
510
|
-
]
|
|
511
|
-
isDropDown: true
|
|
487
|
+
]
|
|
512
488
|
},
|
|
513
489
|
{
|
|
514
490
|
Icon: DollarSign,
|
|
@@ -518,7 +494,7 @@ var navItemsConstant = [
|
|
|
518
494
|
isDropDown: true,
|
|
519
495
|
options: [
|
|
520
496
|
{
|
|
521
|
-
label: "Pricing
|
|
497
|
+
label: "Pricing Engine",
|
|
522
498
|
onClick: () => {
|
|
523
499
|
window.location.href = "/orgselector/?path=pricing-policy";
|
|
524
500
|
}
|
|
@@ -534,21 +510,46 @@ var navItemsConstant = [
|
|
|
534
510
|
onClick: () => {
|
|
535
511
|
window.location.href = "/orgselector/?path=voucher";
|
|
536
512
|
}
|
|
537
|
-
}
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
Icon: Handshake,
|
|
518
|
+
label: "Supplier Ecosystem",
|
|
519
|
+
onClick: () => {
|
|
520
|
+
},
|
|
521
|
+
isDropDown: true,
|
|
522
|
+
options: [
|
|
538
523
|
{
|
|
539
|
-
label: "
|
|
524
|
+
label: "Suppliers List",
|
|
540
525
|
onClick: () => {
|
|
541
|
-
window.location.href = "/
|
|
526
|
+
window.location.href = "/supplier/";
|
|
542
527
|
}
|
|
543
528
|
},
|
|
544
529
|
{
|
|
545
|
-
label: "
|
|
530
|
+
label: "Supplier Deals",
|
|
546
531
|
onClick: () => {
|
|
547
|
-
window.location.href = "/
|
|
532
|
+
window.location.href = "/supplierdeals/";
|
|
548
533
|
}
|
|
549
534
|
}
|
|
550
535
|
]
|
|
551
536
|
},
|
|
537
|
+
{
|
|
538
|
+
Icon: BarChart3,
|
|
539
|
+
label: "Reports",
|
|
540
|
+
onClick: () => {
|
|
541
|
+
},
|
|
542
|
+
isDropDown: true,
|
|
543
|
+
options: [
|
|
544
|
+
{
|
|
545
|
+
label: "Reports (Coming Soon)",
|
|
546
|
+
isDisabled: true
|
|
547
|
+
// onClick: () => {
|
|
548
|
+
// window.open("https://viz.jett.travel", "_blank");
|
|
549
|
+
// },
|
|
550
|
+
}
|
|
551
|
+
]
|
|
552
|
+
},
|
|
552
553
|
{
|
|
553
554
|
Icon: Cog,
|
|
554
555
|
label: "Settings",
|
|
@@ -561,6 +562,23 @@ var navItemsConstant = [
|
|
|
561
562
|
onClick: () => {
|
|
562
563
|
window.location.href = "/whitelabel/";
|
|
563
564
|
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
label: "Markets",
|
|
568
|
+
onClick: () => {
|
|
569
|
+
window.location.href = "/market/";
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
label: "Users",
|
|
574
|
+
onClick: () => {
|
|
575
|
+
window.location.href = `/users/users?role=admin&auth=${encodedAuthData}`;
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
label: "Reports Configurations (Coming Soon)",
|
|
580
|
+
isDisabled: true
|
|
581
|
+
// onClick: () => {},
|
|
564
582
|
}
|
|
565
583
|
]
|
|
566
584
|
}
|
|
@@ -1012,7 +1030,7 @@ var AppSideBar = ({
|
|
|
1012
1030
|
onClick: (e) => handleMenuClick(item, index, e)
|
|
1013
1031
|
},
|
|
1014
1032
|
/* @__PURE__ */ React12.createElement("div", { className: "text-primary" }, /* @__PURE__ */ React12.createElement(item.Icon, { width: 20, height: 20 })),
|
|
1015
|
-
/* @__PURE__ */ React12.createElement("span", { className: "font-medium text-
|
|
1033
|
+
/* @__PURE__ */ React12.createElement("span", { className: "!font-medium !text-[16px] !text-[#000] dark:text-[#f4f4f5cc]" }, item.label),
|
|
1016
1034
|
item.isDropDown && /* @__PURE__ */ React12.createElement("div", { className: `ml-auto transition-all delay-75 ${isOpen ? "rotate-180" : ""}` }, /* @__PURE__ */ React12.createElement(ChevronDown3, { width: 20, height: 20, className: "text-gray-500 dark:text-gray-400" }))
|
|
1017
1035
|
), item.options && item.options.length > 0 && /* @__PURE__ */ React12.createElement(
|
|
1018
1036
|
"div",
|
|
@@ -1030,7 +1048,7 @@ var AppSideBar = ({
|
|
|
1030
1048
|
onClick: (e) => handleSubMenuClick(options, optionsIndex, index, e)
|
|
1031
1049
|
},
|
|
1032
1050
|
/* @__PURE__ */ React12.createElement("div", null),
|
|
1033
|
-
/* @__PURE__ */ React12.createElement("span", { className: "font-medium text-
|
|
1051
|
+
/* @__PURE__ */ React12.createElement("span", { className: "!font-medium !text-[15px] !text-[#3f3f46cc] dark:text-[#a1a1aa]" }, options.label),
|
|
1034
1052
|
options.isDropDown && /* @__PURE__ */ React12.createElement(
|
|
1035
1053
|
"div",
|
|
1036
1054
|
{
|
|
@@ -1067,7 +1085,7 @@ var AppSideBar = ({
|
|
|
1067
1085
|
window.location.href = "/profile";
|
|
1068
1086
|
}
|
|
1069
1087
|
},
|
|
1070
|
-
/* @__PURE__ */ React12.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React12.createElement("span", { className: "relative flex shrink-0 overflow-hidden dark:bg-[#27272a] rounded-full h-10 w-10" }, /* @__PURE__ */ React12.createElement("span", { className: "flex h-full w-full items-center justify-center rounded-full bg-muted dark:text-white" }, ((_a = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _a.UserName) ? authData.userInfo.UserName.split("")[0] : "A")), /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement("p", { className: "font-semibold dark:text-white" }, ((_b = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _b.UserName) ? authData.userInfo.UserName : "Admin
|
|
1088
|
+
/* @__PURE__ */ React12.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React12.createElement("span", { className: "relative flex shrink-0 overflow-hidden dark:bg-[#27272a] rounded-full h-10 w-10" }, /* @__PURE__ */ React12.createElement("span", { className: "flex h-full w-full items-center justify-center !text-[16px] !font-normal border border-gray-200 dark:border-[#303036] rounded-full bg-muted dark:text-white" }, ((_a = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _a.UserName) ? authData.userInfo.UserName.split("")[0] : "A")), /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement("p", { className: "!font-semibold dark:text-white !text-[16px]" }, ((_b = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _b.UserName) ? authData.userInfo.UserName : "Admin"), /* @__PURE__ */ React12.createElement("p", { className: "!text-[14px] !font-normal dark:text-[#f4f4f5cc]" }, role)))
|
|
1071
1089
|
))
|
|
1072
1090
|
));
|
|
1073
1091
|
};
|