@atlashub/smartstack 3.30.0 → 3.31.0
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/chunks/{AgentSkillsPage-CVq3qZoe.js → AgentSkillsPage-CDMhqrhE.js} +2 -2
- package/dist/chunks/{AgentSkillsPage-CVq3qZoe.js.map → AgentSkillsPage-CDMhqrhE.js.map} +1 -1
- package/dist/chunks/{AgentSkillsPage-DJb49NMA.js → AgentSkillsPage-DcvOMm5k.js} +2 -2
- package/dist/chunks/{AgentSkillsPage-DJb49NMA.js.map → AgentSkillsPage-DcvOMm5k.js.map} +1 -1
- package/dist/chunks/{AgentWorkloadPage-D_nk3gKj.js → AgentWorkloadPage-DYBPNzjQ.js} +2 -2
- package/dist/chunks/{AgentWorkloadPage-D_nk3gKj.js.map → AgentWorkloadPage-DYBPNzjQ.js.map} +1 -1
- package/dist/chunks/{AgentWorkloadPage-oHEi-sFh.js → AgentWorkloadPage-YpJSDaWc.js} +2 -2
- package/dist/chunks/{AgentWorkloadPage-oHEi-sFh.js.map → AgentWorkloadPage-YpJSDaWc.js.map} +1 -1
- package/dist/chunks/{ApiCatalogDetailPage-Cr0q2HnB.js → ApiCatalogDetailPage-9r1axtCg.js} +3 -3
- package/dist/chunks/{ApiCatalogDetailPage-Cr0q2HnB.js.map → ApiCatalogDetailPage-9r1axtCg.js.map} +1 -1
- package/dist/chunks/{ApiCatalogDetailPage-DX8buBkV.js → ApiCatalogDetailPage-TjCQ8_A8.js} +2 -2
- package/dist/chunks/{ApiCatalogDetailPage-DX8buBkV.js.map → ApiCatalogDetailPage-TjCQ8_A8.js.map} +1 -1
- package/dist/chunks/{ApiCatalogPage-DqboIzZE.js → ApiCatalogPage-COxazTnz.js} +2 -2
- package/dist/chunks/{ApiCatalogPage-DqboIzZE.js.map → ApiCatalogPage-COxazTnz.js.map} +1 -1
- package/dist/chunks/{ApiCatalogPage-DN7sazvI.js → ApiCatalogPage-QRysH0pT.js} +2 -2
- package/dist/chunks/{ApiCatalogPage-DN7sazvI.js.map → ApiCatalogPage-QRysH0pT.js.map} +1 -1
- package/dist/chunks/{ApplicationDetailPage-CCNjr64K.js → ApplicationDetailPage-Dbx01Ikm.js} +4 -4
- package/dist/chunks/{ApplicationDetailPage-CCNjr64K.js.map → ApplicationDetailPage-Dbx01Ikm.js.map} +1 -1
- package/dist/chunks/{ApplicationDetailPage--9YwwS5A.js → ApplicationDetailPage-jSHy3MPz.js} +2 -2
- package/dist/chunks/{ApplicationDetailPage--9YwwS5A.js.map → ApplicationDetailPage-jSHy3MPz.js.map} +1 -1
- package/dist/chunks/{ApplicationsDashboardPage-Bs-Xgca4.js → ApplicationsDashboardPage-CclKc0wI.js} +3 -3
- package/dist/chunks/{ApplicationsDashboardPage-Bs-Xgca4.js.map → ApplicationsDashboardPage-CclKc0wI.js.map} +1 -1
- package/dist/chunks/{ApplicationsDashboardPage-BSsHN3Yj.js → ApplicationsDashboardPage-CxWmOc1x.js} +2 -2
- package/dist/chunks/{ApplicationsDashboardPage-BSsHN3Yj.js.map → ApplicationsDashboardPage-CxWmOc1x.js.map} +1 -1
- package/dist/chunks/{ApplicationsGridPage-s1WEzOXS.js → ApplicationsGridPage-BJXWXwyI.js} +2 -2
- package/dist/chunks/{ApplicationsGridPage-s1WEzOXS.js.map → ApplicationsGridPage-BJXWXwyI.js.map} +1 -1
- package/dist/chunks/{ApplicationsGridPage-DDysNWJ5.js → ApplicationsGridPage-D2l8cM3o.js} +2 -2
- package/dist/chunks/{ApplicationsGridPage-DDysNWJ5.js.map → ApplicationsGridPage-D2l8cM3o.js.map} +1 -1
- package/dist/chunks/{ApplicationsListPage-B3CSMiV0.js → ApplicationsListPage-CMosl3my.js} +2 -2
- package/dist/chunks/{ApplicationsListPage-B3CSMiV0.js.map → ApplicationsListPage-CMosl3my.js.map} +1 -1
- package/dist/chunks/{ApplicationsListPage-B6ZCecIl.js → ApplicationsListPage-Dc6NGQ61.js} +2 -2
- package/dist/chunks/{ApplicationsListPage-B6ZCecIl.js.map → ApplicationsListPage-Dc6NGQ61.js.map} +1 -1
- package/dist/chunks/{ApplicationsPage-BBaiBM--.js → ApplicationsPage-DH7tpMlF.js} +2 -2
- package/dist/chunks/{ApplicationsPage-BBaiBM--.js.map → ApplicationsPage-DH7tpMlF.js.map} +1 -1
- package/dist/chunks/{ApplicationsPage-ztPwoAGt.js → ApplicationsPage-DI-iMqoJ.js} +4 -4
- package/dist/chunks/{ApplicationsPage-ztPwoAGt.js.map → ApplicationsPage-DI-iMqoJ.js.map} +1 -1
- package/dist/chunks/{AssignmentRulesPage-DFSVFFXr.js → AssignmentRulesPage-B5UbujbZ.js} +2 -2
- package/dist/chunks/{AssignmentRulesPage-DFSVFFXr.js.map → AssignmentRulesPage-B5UbujbZ.js.map} +1 -1
- package/dist/chunks/{AssignmentRulesPage-CK4L4rBO.js → AssignmentRulesPage-E79QBSLb.js} +2 -2
- package/dist/chunks/{AssignmentRulesPage-CK4L4rBO.js.map → AssignmentRulesPage-E79QBSLb.js.map} +1 -1
- package/dist/chunks/{AssignmentsPage-JCLpyg94.js → AssignmentsPage-CDFaL1gT.js} +2 -2
- package/dist/chunks/{AssignmentsPage-JCLpyg94.js.map → AssignmentsPage-CDFaL1gT.js.map} +1 -1
- package/dist/chunks/{AssignmentsPage-Bp7oQD7Q.js → AssignmentsPage-CPeKJjyK.js} +2 -2
- package/dist/chunks/{AssignmentsPage-Bp7oQD7Q.js.map → AssignmentsPage-CPeKJjyK.js.map} +1 -1
- package/dist/chunks/{AuthCallbackPage-Bl9xlJ3h.js → AuthCallbackPage-BZ3Ocos5.js} +2 -2
- package/dist/chunks/{AuthCallbackPage-Bl9xlJ3h.js.map → AuthCallbackPage-BZ3Ocos5.js.map} +1 -1
- package/dist/chunks/{AuthCallbackPage-CzMHz4jy.js → AuthCallbackPage-Bml48QpH.js} +2 -2
- package/dist/chunks/{AuthCallbackPage-CzMHz4jy.js.map → AuthCallbackPage-Bml48QpH.js.map} +1 -1
- package/dist/chunks/{ConfirmEmailPage-M7mJgXvn.js → ConfirmEmailPage-DP1XPaKK.js} +2 -2
- package/dist/chunks/{ConfirmEmailPage-M7mJgXvn.js.map → ConfirmEmailPage-DP1XPaKK.js.map} +1 -1
- package/dist/chunks/{ConfirmEmailPage-D_8T1vqV.js → ConfirmEmailPage-DyzslZ06.js} +2 -2
- package/dist/chunks/{ConfirmEmailPage-D_8T1vqV.js.map → ConfirmEmailPage-DyzslZ06.js.map} +1 -1
- package/dist/chunks/{CreateSupportTicketPage-BNEGavlu.js → CreateSupportTicketPage-Bz2KrMik.js} +2 -2
- package/dist/chunks/{CreateSupportTicketPage-BNEGavlu.js.map → CreateSupportTicketPage-Bz2KrMik.js.map} +1 -1
- package/dist/chunks/{CreateSupportTicketPage-C2X2mfds.js → CreateSupportTicketPage-hKjKM0Bh.js} +2 -2
- package/dist/chunks/{CreateSupportTicketPage-C2X2mfds.js.map → CreateSupportTicketPage-hKjKM0Bh.js.map} +1 -1
- package/dist/chunks/{DashboardPage-4oy2YqvT.js → DashboardPage-B4nAd8Tj.js} +2 -2
- package/dist/chunks/{DashboardPage-4oy2YqvT.js.map → DashboardPage-B4nAd8Tj.js.map} +1 -1
- package/dist/chunks/{DashboardPage-D5MRMxEV.js → DashboardPage-C9qgPBS-.js} +3 -3
- package/dist/chunks/{DashboardPage-D5MRMxEV.js.map → DashboardPage-C9qgPBS-.js.map} +1 -1
- package/dist/chunks/{DashboardPage-CO-8B8EI.js → DashboardPage-CjbNGMo1.js} +3 -3
- package/dist/chunks/{DashboardPage-CO-8B8EI.js.map → DashboardPage-CjbNGMo1.js.map} +1 -1
- package/dist/chunks/{DashboardPage-CPArUG-S.js → DashboardPage-rN7IFlTR.js} +2 -2
- package/dist/chunks/{DashboardPage-CPArUG-S.js.map → DashboardPage-rN7IFlTR.js.map} +1 -1
- package/dist/chunks/{EscalationConfigPage-DnjLFXnL.js → EscalationConfigPage-CGv2L62M.js} +2 -2
- package/dist/chunks/{EscalationConfigPage-DnjLFXnL.js.map → EscalationConfigPage-CGv2L62M.js.map} +1 -1
- package/dist/chunks/{EscalationConfigPage-CwdnfJbJ.js → EscalationConfigPage-DpYDmsgw.js} +2 -2
- package/dist/chunks/{EscalationConfigPage-CwdnfJbJ.js.map → EscalationConfigPage-DpYDmsgw.js.map} +1 -1
- package/dist/chunks/{ForceChangePasswordPage-ZEIfyqwE.js → ForceChangePasswordPage-CLI_fpF4.js} +2 -2
- package/dist/chunks/{ForceChangePasswordPage-ZEIfyqwE.js.map → ForceChangePasswordPage-CLI_fpF4.js.map} +1 -1
- package/dist/chunks/{ForceChangePasswordPage-sh-3h_H9.js → ForceChangePasswordPage-Db6sOrZN.js} +2 -2
- package/dist/chunks/{ForceChangePasswordPage-sh-3h_H9.js.map → ForceChangePasswordPage-Db6sOrZN.js.map} +1 -1
- package/dist/chunks/{ForgotPasswordPage-B4M6-xeM.js → ForgotPasswordPage-BhMz2B6A.js} +2 -2
- package/dist/chunks/{ForgotPasswordPage-B4M6-xeM.js.map → ForgotPasswordPage-BhMz2B6A.js.map} +1 -1
- package/dist/chunks/{ForgotPasswordPage-MIu-U7p0.js → ForgotPasswordPage-D06arMXO.js} +2 -2
- package/dist/chunks/{ForgotPasswordPage-MIu-U7p0.js.map → ForgotPasswordPage-D06arMXO.js.map} +1 -1
- package/dist/chunks/{GroupDetailPage-4XK3Bs_r.js → GroupDetailPage-BCM8KBCd.js} +5 -5
- package/dist/chunks/{GroupDetailPage-4XK3Bs_r.js.map → GroupDetailPage-BCM8KBCd.js.map} +1 -1
- package/dist/chunks/{GroupDetailPage-C-kvtd2T.js → GroupDetailPage-CGMV3bWt.js} +2 -2
- package/dist/chunks/{GroupDetailPage-C-kvtd2T.js.map → GroupDetailPage-CGMV3bWt.js.map} +1 -1
- package/dist/chunks/{MyAccessRequestsPage-CP41FzHi.js → MyAccessRequestsPage-BBrwEomx.js} +2 -2
- package/dist/chunks/{MyAccessRequestsPage-CP41FzHi.js.map → MyAccessRequestsPage-BBrwEomx.js.map} +1 -1
- package/dist/chunks/{MyAccessRequestsPage-DzrXTrVi.js → MyAccessRequestsPage-CrlWe3gd.js} +2 -2
- package/dist/chunks/{MyAccessRequestsPage-DzrXTrVi.js.map → MyAccessRequestsPage-CrlWe3gd.js.map} +1 -1
- package/dist/chunks/{MyTenantsPage-V_SwYio2.js → MyTenantsPage-BOV34_rJ.js} +3 -3
- package/dist/chunks/{MyTenantsPage-V_SwYio2.js.map → MyTenantsPage-BOV34_rJ.js.map} +1 -1
- package/dist/chunks/{MyTenantsPage-CZRkMbh8.js → MyTenantsPage-CK4-klmd.js} +2 -2
- package/dist/chunks/{MyTenantsPage-CZRkMbh8.js.map → MyTenantsPage-CK4-klmd.js.map} +1 -1
- package/dist/chunks/{MyTicketsPage-DnvAIeyr.js → MyTicketsPage-CFZ1G4dG.js} +2 -2
- package/dist/chunks/{MyTicketsPage-DnvAIeyr.js.map → MyTicketsPage-CFZ1G4dG.js.map} +1 -1
- package/dist/chunks/{MyTicketsPage-DOUhaLal.js → MyTicketsPage-DuhpwhZx.js} +2 -2
- package/dist/chunks/{MyTicketsPage-DOUhaLal.js.map → MyTicketsPage-DuhpwhZx.js.map} +1 -1
- package/dist/chunks/{NavigationAppsPage-DfTa4jCG.js → NavigationAppsPage-BnNQRfBP.js} +2 -2
- package/dist/chunks/{NavigationAppsPage-DfTa4jCG.js.map → NavigationAppsPage-BnNQRfBP.js.map} +1 -1
- package/dist/chunks/{NavigationAppsPage-DXvpLsbt.js → NavigationAppsPage-DdJxEoTZ.js} +2 -2
- package/dist/chunks/{NavigationAppsPage-DXvpLsbt.js.map → NavigationAppsPage-DdJxEoTZ.js.map} +1 -1
- package/dist/chunks/{NotificationsPage-I1yCk7tk.js → NotificationsPage-BllOlagk.js} +2 -2
- package/dist/chunks/{NotificationsPage-I1yCk7tk.js.map → NotificationsPage-BllOlagk.js.map} +1 -1
- package/dist/chunks/{NotificationsPage-D76MdAs-.js → NotificationsPage-D1T_ozHl.js} +2 -2
- package/dist/chunks/{NotificationsPage-D76MdAs-.js.map → NotificationsPage-D1T_ozHl.js.map} +1 -1
- package/dist/chunks/{OnboardingWizardPage-BRUzcl1A.js → OnboardingWizardPage-CioLaCYz.js} +2 -2
- package/dist/chunks/{OnboardingWizardPage-BRUzcl1A.js.map → OnboardingWizardPage-CioLaCYz.js.map} +1 -1
- package/dist/chunks/{OnboardingWizardPage-DtWUPCh3.js → OnboardingWizardPage-CrAQt7qL.js} +2 -2
- package/dist/chunks/{OnboardingWizardPage-DtWUPCh3.js.map → OnboardingWizardPage-CrAQt7qL.js.map} +1 -1
- package/dist/chunks/{PermissionDetailPage-CUNKbl7t.js → PermissionDetailPage-BIG78-1-.js} +2 -2
- package/dist/chunks/{PermissionDetailPage-CUNKbl7t.js.map → PermissionDetailPage-BIG78-1-.js.map} +1 -1
- package/dist/chunks/{PermissionDetailPage-DJJGbXoX.js → PermissionDetailPage-CvPqugYu.js} +2 -2
- package/dist/chunks/{PermissionDetailPage-DJJGbXoX.js.map → PermissionDetailPage-CvPqugYu.js.map} +1 -1
- package/dist/chunks/{PermissionsPage-B8wmawPV.js → PermissionsPage-CDSuc8vw.js} +2 -2
- package/dist/chunks/{PermissionsPage-B8wmawPV.js.map → PermissionsPage-CDSuc8vw.js.map} +1 -1
- package/dist/chunks/{PermissionsPage-Dbjcctuh.js → PermissionsPage-XaOrGrPZ.js} +2 -2
- package/dist/chunks/{PermissionsPage-Dbjcctuh.js.map → PermissionsPage-XaOrGrPZ.js.map} +1 -1
- package/dist/chunks/{PortalDashboardPage-BeNfBZmb.js → PortalDashboardPage-BsWVXkMe.js} +2 -2
- package/dist/chunks/{PortalDashboardPage-BeNfBZmb.js.map → PortalDashboardPage-BsWVXkMe.js.map} +1 -1
- package/dist/chunks/{PortalDashboardPage-zii0ll57.js → PortalDashboardPage-oSD7oQhJ.js} +2 -2
- package/dist/chunks/{PortalDashboardPage-zii0ll57.js.map → PortalDashboardPage-oSD7oQhJ.js.map} +1 -1
- package/dist/chunks/{PreferencesPage-BCpuIGzv.js → PreferencesPage-DD0_XWdT.js} +2 -2
- package/dist/chunks/{PreferencesPage-BCpuIGzv.js.map → PreferencesPage-DD0_XWdT.js.map} +1 -1
- package/dist/chunks/{PreferencesPage-BmvrBaAD.js → PreferencesPage-ca2BOdoH.js} +2 -2
- package/dist/chunks/{PreferencesPage-BmvrBaAD.js.map → PreferencesPage-ca2BOdoH.js.map} +1 -1
- package/dist/chunks/{ProfilePage-mf5wI0-n.js → ProfilePage-Bex_JN5N.js} +2 -2
- package/dist/chunks/{ProfilePage-mf5wI0-n.js.map → ProfilePage-Bex_JN5N.js.map} +1 -1
- package/dist/chunks/{ProfilePage-eowQd59_.js → ProfilePage-C8tUIOnb.js} +2 -2
- package/dist/chunks/{ProfilePage-eowQd59_.js.map → ProfilePage-C8tUIOnb.js.map} +1 -1
- package/dist/chunks/{ReferencesManagementPage-CLsaUNqA.js → ReferencesManagementPage-B-FXS2ln.js} +2 -2
- package/dist/chunks/{ReferencesManagementPage-CLsaUNqA.js.map → ReferencesManagementPage-B-FXS2ln.js.map} +1 -1
- package/dist/chunks/{ReferencesManagementPage-8UPgkVE8.js → ReferencesManagementPage-C8KZprkI.js} +3 -3
- package/dist/chunks/{ReferencesManagementPage-8UPgkVE8.js.map → ReferencesManagementPage-C8KZprkI.js.map} +1 -1
- package/dist/chunks/{RegisterPage-CNyHSbqs.js → RegisterPage-BYt__zKJ.js} +2 -2
- package/dist/chunks/{RegisterPage-CNyHSbqs.js.map → RegisterPage-BYt__zKJ.js.map} +1 -1
- package/dist/chunks/{RegisterPage-57X-ILDb.js → RegisterPage-MWcVu-LY.js} +2 -2
- package/dist/chunks/{RegisterPage-57X-ILDb.js.map → RegisterPage-MWcVu-LY.js.map} +1 -1
- package/dist/chunks/{ResetPasswordPage-CyV8l-Zo.js → ResetPasswordPage-DaJiMj5Z.js} +2 -2
- package/dist/chunks/{ResetPasswordPage-CyV8l-Zo.js.map → ResetPasswordPage-DaJiMj5Z.js.map} +1 -1
- package/dist/chunks/{ResetPasswordPage-JW8-mh_k.js → ResetPasswordPage-rCLUIj_T.js} +2 -2
- package/dist/chunks/{ResetPasswordPage-JW8-mh_k.js.map → ResetPasswordPage-rCLUIj_T.js.map} +1 -1
- package/dist/chunks/{ResolutionModal-CjwE73NX.js → ResolutionModal-DeuPnLWg.js} +2 -2
- package/dist/chunks/{ResolutionModal-CjwE73NX.js.map → ResolutionModal-DeuPnLWg.js.map} +1 -1
- package/dist/chunks/{ResolutionModal-wddG59kg.js → ResolutionModal-j7Rp6apG.js} +2 -2
- package/dist/chunks/{ResolutionModal-wddG59kg.js.map → ResolutionModal-j7Rp6apG.js.map} +1 -1
- package/dist/chunks/{RoleDetailPage-CrioVHFI.js → RoleDetailPage-CLtZWX17.js} +3 -3
- package/dist/chunks/{RoleDetailPage-CrioVHFI.js.map → RoleDetailPage-CLtZWX17.js.map} +1 -1
- package/dist/chunks/{RoleDetailPage-TUOGR1ow.js → RoleDetailPage-TGyGmLMM.js} +2 -2
- package/dist/chunks/{RoleDetailPage-TUOGR1ow.js.map → RoleDetailPage-TGyGmLMM.js.map} +1 -1
- package/dist/chunks/{RolesPage-sJBWaNff.js → RolesPage-C0c5G9e7.js} +2 -2
- package/dist/chunks/{RolesPage-sJBWaNff.js.map → RolesPage-C0c5G9e7.js.map} +1 -1
- package/dist/chunks/{RolesPage-CAcols3D.js → RolesPage-Dm03fBBf.js} +2 -2
- package/dist/chunks/{RolesPage-CAcols3D.js.map → RolesPage-Dm03fBBf.js.map} +1 -1
- package/dist/chunks/{SlaConfigPage-BPGRloOS.js → SlaConfigPage-B4WDzEKi.js} +2 -2
- package/dist/chunks/{SlaConfigPage-BPGRloOS.js.map → SlaConfigPage-B4WDzEKi.js.map} +1 -1
- package/dist/chunks/{SlaConfigPage-D5TRn7Ir.js → SlaConfigPage-Cwo9NwxH.js} +2 -2
- package/dist/chunks/{SlaConfigPage-D5TRn7Ir.js.map → SlaConfigPage-Cwo9NwxH.js.map} +1 -1
- package/dist/chunks/{SupportPermissionsPage-UXmYLrIq.js → SupportPermissionsPage-CL12dFy-.js} +2 -2
- package/dist/chunks/{SupportPermissionsPage-UXmYLrIq.js.map → SupportPermissionsPage-CL12dFy-.js.map} +1 -1
- package/dist/chunks/{SupportPermissionsPage-Dc2bWTzG.js → SupportPermissionsPage-CneIhl30.js} +2 -2
- package/dist/chunks/{SupportPermissionsPage-Dc2bWTzG.js.map → SupportPermissionsPage-CneIhl30.js.map} +1 -1
- package/dist/chunks/{TemplatesPage-nTY85sNA.js → TemplatesPage-DStKmwHT.js} +2 -2
- package/dist/chunks/{TemplatesPage-nTY85sNA.js.map → TemplatesPage-DStKmwHT.js.map} +1 -1
- package/dist/chunks/{TemplatesPage-dmPlqqiD.js → TemplatesPage-X4Rrhs9p.js} +2 -2
- package/dist/chunks/{TemplatesPage-dmPlqqiD.js.map → TemplatesPage-X4Rrhs9p.js.map} +1 -1
- package/dist/chunks/{TenantCard-BhT-31ls.js → TenantCard-BUBYWtvR.js} +2 -2
- package/dist/chunks/{TenantCard-BhT-31ls.js.map → TenantCard-BUBYWtvR.js.map} +1 -1
- package/dist/chunks/{TenantCard-BUXfstRZ.js → TenantCard-CAgiB-NG.js} +2 -2
- package/dist/chunks/{TenantCard-BUXfstRZ.js.map → TenantCard-CAgiB-NG.js.map} +1 -1
- package/dist/chunks/{TenantScopeSelector-3_mzBLNI.js → TenantScopeSelector-B9vtpIZx.js} +2 -2
- package/dist/chunks/{TenantScopeSelector-3_mzBLNI.js.map → TenantScopeSelector-B9vtpIZx.js.map} +1 -1
- package/dist/chunks/{TenantScopeSelector-B-SRDR2R.js → TenantScopeSelector-BAoah-mL.js} +2 -2
- package/dist/chunks/{TenantScopeSelector-B-SRDR2R.js.map → TenantScopeSelector-BAoah-mL.js.map} +1 -1
- package/dist/chunks/{TicketDetailPage-xN3wPnFL.js → TicketDetailPage-BFcP4X8s.js} +2 -2
- package/dist/chunks/{TicketDetailPage-xN3wPnFL.js.map → TicketDetailPage-BFcP4X8s.js.map} +1 -1
- package/dist/chunks/{TicketDetailPage-B4cR3rOC.js → TicketDetailPage-D_Npnt4A.js} +2 -2
- package/dist/chunks/{TicketDetailPage-B4cR3rOC.js.map → TicketDetailPage-D_Npnt4A.js.map} +1 -1
- package/dist/chunks/{TicketsPage-Dwi2xpMI.js → TicketsPage-DBP9kalU.js} +2 -2
- package/dist/chunks/{TicketsPage-Dwi2xpMI.js.map → TicketsPage-DBP9kalU.js.map} +1 -1
- package/dist/chunks/{TicketsPage-CkHgXSxU.js → TicketsPage-p21DLhUb.js} +2 -2
- package/dist/chunks/{TicketsPage-CkHgXSxU.js.map → TicketsPage-p21DLhUb.js.map} +1 -1
- package/dist/chunks/{UserCreateTicketPage-D2a3EOey.js → UserCreateTicketPage-DOwShnG8.js} +2 -2
- package/dist/chunks/{UserCreateTicketPage-D2a3EOey.js.map → UserCreateTicketPage-DOwShnG8.js.map} +1 -1
- package/dist/chunks/{UserCreateTicketPage-bcbSLglE.js → UserCreateTicketPage-lvlvp2u6.js} +2 -2
- package/dist/chunks/{UserCreateTicketPage-bcbSLglE.js.map → UserCreateTicketPage-lvlvp2u6.js.map} +1 -1
- package/dist/chunks/{UserDashboardPage-ZMsx8LWw.js → UserDashboardPage-C_tm7Pld.js} +2 -2
- package/dist/chunks/{UserDashboardPage-ZMsx8LWw.js.map → UserDashboardPage-C_tm7Pld.js.map} +1 -1
- package/dist/chunks/{UserDashboardPage-DwnDRNoW.js → UserDashboardPage-Dp6q6FEW.js} +2 -2
- package/dist/chunks/{UserDashboardPage-DwnDRNoW.js.map → UserDashboardPage-Dp6q6FEW.js.map} +1 -1
- package/dist/chunks/{UserDetailPage-CZyV-zsg.js → UserDetailPage-6grZ6gmV.js} +5 -5
- package/dist/chunks/{UserDetailPage-CZyV-zsg.js.map → UserDetailPage-6grZ6gmV.js.map} +1 -1
- package/dist/chunks/{UserDetailPage-BRFowOFL.js → UserDetailPage-DXLxO7LF.js} +2 -2
- package/dist/chunks/{UserDetailPage-BRFowOFL.js.map → UserDetailPage-DXLxO7LF.js.map} +1 -1
- package/dist/chunks/{UserTicketDetailPage-BstGk_BP.js → UserTicketDetailPage-Ch9IfCPo.js} +2 -2
- package/dist/chunks/{UserTicketDetailPage-BstGk_BP.js.map → UserTicketDetailPage-Ch9IfCPo.js.map} +1 -1
- package/dist/chunks/{UserTicketDetailPage-DzB_pELt.js → UserTicketDetailPage-a4II5VEE.js} +2 -2
- package/dist/chunks/{UserTicketDetailPage-DzB_pELt.js.map → UserTicketDetailPage-a4II5VEE.js.map} +1 -1
- package/dist/chunks/{UsersGroupsPage-BygTv_kK.js → UsersGroupsPage-B7Er0V4l.js} +3 -3
- package/dist/chunks/{UsersGroupsPage-BygTv_kK.js.map → UsersGroupsPage-B7Er0V4l.js.map} +1 -1
- package/dist/chunks/{UsersGroupsPage-DTmhzttW.js → UsersGroupsPage-BeAv4QfV.js} +2 -2
- package/dist/chunks/{UsersGroupsPage-DTmhzttW.js.map → UsersGroupsPage-BeAv4QfV.js.map} +1 -1
- package/dist/chunks/{UsersPage-DcwLyMAX.js → UsersPage-0M1FLqOe.js} +2 -2
- package/dist/chunks/{UsersPage-DcwLyMAX.js.map → UsersPage-0M1FLqOe.js.map} +1 -1
- package/dist/chunks/{UsersPage-TIqSHgHj.js → UsersPage-ZR9r9vvf.js} +2 -2
- package/dist/chunks/{UsersPage-TIqSHgHj.js.map → UsersPage-ZR9r9vvf.js.map} +1 -1
- package/dist/chunks/{accessRequestsApi-3FjMFbpa.js → accessRequestsApi-BJH8EE1K.js} +2 -2
- package/dist/chunks/{accessRequestsApi-3FjMFbpa.js.map → accessRequestsApi-BJH8EE1K.js.map} +1 -1
- package/dist/chunks/{accessRequestsApi-B6dsJzvH.js → accessRequestsApi-CBpF5d54.js} +2 -2
- package/dist/chunks/{accessRequestsApi-B6dsJzvH.js.map → accessRequestsApi-CBpF5d54.js.map} +1 -1
- package/dist/chunks/{aiApi-9G4wG_mT.js → aiApi-CkkWAvNB.js} +2 -2
- package/dist/chunks/{aiApi-9G4wG_mT.js.map → aiApi-CkkWAvNB.js.map} +1 -1
- package/dist/chunks/{aiApi-DXOdsoxr.js → aiApi-Dl7a2lWz.js} +2 -2
- package/dist/chunks/{aiApi-DXOdsoxr.js.map → aiApi-Dl7a2lWz.js.map} +1 -1
- package/dist/chunks/{applicationAnalyticsApi-DhOd6idI.js → applicationAnalyticsApi-BwcSE_H1.js} +2 -2
- package/dist/chunks/{applicationAnalyticsApi-DhOd6idI.js.map → applicationAnalyticsApi-BwcSE_H1.js.map} +1 -1
- package/dist/chunks/{applicationAnalyticsApi-D0DEp9Y-.js → applicationAnalyticsApi-DKMmDvWk.js} +2 -2
- package/dist/chunks/{applicationAnalyticsApi-D0DEp9Y-.js.map → applicationAnalyticsApi-DKMmDvWk.js.map} +1 -1
- package/dist/chunks/{groupsApi-Db8G2lLs.js → groupsApi-BzDV3_Jc.js} +2 -2
- package/dist/chunks/{groupsApi-Db8G2lLs.js.map → groupsApi-BzDV3_Jc.js.map} +1 -1
- package/dist/chunks/{groupsApi-lbxNsHFv.js → groupsApi-CQ4vFMdP.js} +2 -2
- package/dist/chunks/{groupsApi-lbxNsHFv.js.map → groupsApi-CQ4vFMdP.js.map} +1 -1
- package/dist/chunks/{index-DEtq-xUL.js → index-BBmMbSZV.js} +8 -8
- package/dist/chunks/{index-DEtq-xUL.js.map → index-BBmMbSZV.js.map} +1 -1
- package/dist/chunks/{index-D0HS542b.js → index-BLlESTfA.js} +2 -2
- package/dist/chunks/{index-D0HS542b.js.map → index-BLlESTfA.js.map} +1 -1
- package/dist/chunks/{index-DUS-tunb.js → index-BPMjxWVx.js} +2 -2
- package/dist/chunks/{index-DUS-tunb.js.map → index-BPMjxWVx.js.map} +1 -1
- package/dist/chunks/{index-TiWOcC0g.js → index-CEbwdURd.js} +2 -2
- package/dist/chunks/{index-TiWOcC0g.js.map → index-CEbwdURd.js.map} +1 -1
- package/dist/chunks/{index-DF93KQFR.js → index-CUZygY5Q.js} +2 -2
- package/dist/chunks/{index-DF93KQFR.js.map → index-CUZygY5Q.js.map} +1 -1
- package/dist/chunks/{index-BI2dc1FS.js → index-Ci1SqFiY.js} +2 -2
- package/dist/chunks/{index-BI2dc1FS.js.map → index-Ci1SqFiY.js.map} +1 -1
- package/dist/chunks/{index-CTGSmYvs.js → index-Cib93xtp.js} +2 -2
- package/dist/chunks/{index-CTGSmYvs.js.map → index-Cib93xtp.js.map} +1 -1
- package/dist/chunks/{index-DqbVFB1H.js → index-CoHIgn5H.js} +2 -2
- package/dist/chunks/{index-DqbVFB1H.js.map → index-CoHIgn5H.js.map} +1 -1
- package/dist/chunks/{index-CN2WRyg1.js → index-CpY95_ro.js} +294 -292
- package/dist/chunks/{index-CN2WRyg1.js.map → index-CpY95_ro.js.map} +1 -1
- package/dist/chunks/{index-DjC1u2hI.js → index-D-2xSu5W.js} +3 -3
- package/dist/chunks/{index-DjC1u2hI.js.map → index-D-2xSu5W.js.map} +1 -1
- package/dist/chunks/{index-Bn8HzILk.js → index-D18t9DhC.js} +4 -4
- package/dist/chunks/{index-Bn8HzILk.js.map → index-D18t9DhC.js.map} +1 -1
- package/dist/chunks/{index-cAikSVW0.js → index-DK5czlkn.js} +9 -9
- package/dist/chunks/{index-cAikSVW0.js.map → index-DK5czlkn.js.map} +1 -1
- package/dist/chunks/{index-DLekpNSE.js → index-DQd324n7.js} +2 -2
- package/dist/chunks/{index-DLekpNSE.js.map → index-DQd324n7.js.map} +1 -1
- package/dist/chunks/{index-CgtbaFf5.js → index-Dbq-x5H9.js} +2 -2
- package/dist/chunks/{index-CgtbaFf5.js.map → index-Dbq-x5H9.js.map} +1 -1
- package/dist/chunks/{index-xhRXN1Jq.js → index-Det9dEaQ.js} +2 -2
- package/dist/chunks/{index-xhRXN1Jq.js.map → index-Det9dEaQ.js.map} +1 -1
- package/dist/chunks/{index-HsAOBno4.js → index-bgT9XOKZ.js} +2 -2
- package/dist/chunks/{index-HsAOBno4.js.map → index-bgT9XOKZ.js.map} +1 -1
- package/dist/chunks/{index-CUICSveU.js → index-h7ZrwrQg.js} +2 -2
- package/dist/chunks/{index-CUICSveU.js.map → index-h7ZrwrQg.js.map} +1 -1
- package/dist/chunks/{index-DwqLhQ8S.js → index-k4USDz2P.js} +2 -2
- package/dist/chunks/{index-DwqLhQ8S.js.map → index-k4USDz2P.js.map} +1 -1
- package/dist/chunks/{tenantIconMap-CHeS7oLt.js → tenantIconMap-7ihIWxAh.js} +2 -2
- package/dist/chunks/{tenantIconMap-CHeS7oLt.js.map → tenantIconMap-7ihIWxAh.js.map} +1 -1
- package/dist/chunks/{tenantIconMap-__FKj6CN.js → tenantIconMap-Dk6K-UTE.js} +2 -2
- package/dist/chunks/{tenantIconMap-__FKj6CN.js.map → tenantIconMap-Dk6K-UTE.js.map} +1 -1
- package/dist/chunks/{ticketingApi-DF4RwD_6.js → ticketingApi-BCMKkzlv.js} +2 -2
- package/dist/chunks/{ticketingApi-DF4RwD_6.js.map → ticketingApi-BCMKkzlv.js.map} +1 -1
- package/dist/chunks/{ticketingApi-Cj239hYB.js → ticketingApi-Dwn7pl5z.js} +2 -2
- package/dist/chunks/{ticketingApi-Cj239hYB.js.map → ticketingApi-Dwn7pl5z.js.map} +1 -1
- package/dist/chunks/{useAccessRequests-CFam8zFR.js → useAccessRequests-Du7CvowE.js} +3 -3
- package/dist/chunks/{useAccessRequests-CFam8zFR.js.map → useAccessRequests-Du7CvowE.js.map} +1 -1
- package/dist/chunks/{useAccessRequests-CViOUwyF.js → useAccessRequests-gJ7yhWyi.js} +2 -2
- package/dist/chunks/{useAccessRequests-CViOUwyF.js.map → useAccessRequests-gJ7yhWyi.js.map} +1 -1
- package/dist/chunks/{useUserAccessRequests-CslSQeBJ.js → useUserAccessRequests-5wWea2Jg.js} +2 -2
- package/dist/chunks/{useUserAccessRequests-CslSQeBJ.js.map → useUserAccessRequests-5wWea2Jg.js.map} +1 -1
- package/dist/chunks/{useUserAccessRequests-B-Cs6NX1.js → useUserAccessRequests-Bk_v8egy.js} +2 -2
- package/dist/chunks/{useUserAccessRequests-B-Cs6NX1.js.map → useUserAccessRequests-Bk_v8egy.js.map} +1 -1
- package/dist/components/routing/ProtectedRoute.d.ts.map +1 -1
- package/dist/smartstack.cjs +1 -1
- package/dist/smartstack.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfilePage-
|
|
1
|
+
{"version":3,"file":"ProfilePage-C8tUIOnb.js","sources":["../../src/pages/personal/myspace/ProfilePage.tsx"],"sourcesContent":["import { useState, useEffect } from 'react';\r\nimport type { ReactElement } from 'react';\r\nimport { useTranslation } from 'react-i18next';\r\nimport { Mail, Calendar, Construction, X } from 'lucide-react';\r\nimport { useAuth } from '@/contexts/AuthContext';\r\n\r\nexport function ProfilePage(): ReactElement {\r\n const { t } = useTranslation(['navigation', 'common']);\r\n const { user } = useAuth();\r\n const [notification, setNotification] = useState<string | null>(null);\r\n\r\n useEffect(() => {\r\n if (notification) {\r\n const timer = setTimeout(() => setNotification(null), 4000);\r\n return () => clearTimeout(timer);\r\n }\r\n }, [notification]);\r\n\r\n const handleComingSoon = () => {\r\n setNotification(t('common:underDevelopment.description'));\r\n };\r\n\r\n const displayName = user?.firstName && user?.lastName\r\n ? `${user.firstName} ${user.lastName}`\r\n : user?.email || t('common:name');\r\n\r\n const initials = user?.firstName && user?.lastName\r\n ? `${user.firstName.at(0)}${user.lastName.at(0)}`.toUpperCase()\r\n : user?.email?.at(0)?.toUpperCase() || 'U';\r\n\r\n return (\r\n <div className=\"space-y-6\">\r\n <div>\r\n <h1 className=\"text-2xl font-bold text-[var(--text-primary)]\">{t('navigation:sidebar.profile')}</h1>\r\n <p className=\"text-[var(--text-secondary)] mt-1\">{t('navigation:profile.subtitle')}</p>\r\n </div>\r\n\r\n {notification && (\r\n <div\r\n className=\"flex items-center gap-3 p-4 bg-amber-50 dark:bg-amber-900/20 border border-amber-200 dark:border-amber-800 text-amber-800 dark:text-amber-200\"\r\n style={{ borderRadius: 'var(--radius-card)' }}\r\n >\r\n <Construction className=\"w-5 h-5 flex-shrink-0\" />\r\n <span className=\"flex-1 text-sm\">{notification}</span>\r\n <button\r\n onClick={() => setNotification(null)}\r\n className=\"p-1 hover:bg-amber-100 dark:hover:bg-amber-800/30 rounded transition-colors\"\r\n >\r\n <X className=\"w-4 h-4\" />\r\n </button>\r\n </div>\r\n )}\r\n\r\n <div\r\n className=\"bg-[var(--bg-card)] border border-[var(--border-color)] p-6\"\r\n style={{ borderRadius: 'var(--radius-card)' }}\r\n >\r\n <div className=\"flex items-center gap-6 mb-6\">\r\n <div\r\n className=\"w-20 h-20 bg-gradient-to-br from-[var(--color-accent-500)] to-[var(--color-accent-600)] flex items-center justify-center text-white text-2xl font-bold\"\r\n style={{ borderRadius: 'var(--radius-card)' }}\r\n >\r\n {initials}\r\n </div>\r\n <div>\r\n <h2 className=\"text-xl font-semibold text-[var(--text-primary)]\">{displayName}</h2>\r\n <p className=\"text-[var(--text-secondary)]\">{user?.email}</p>\r\n {user?.roles && user.roles.length > 0 && (\r\n <div className=\"flex flex-wrap gap-2 mt-2\">\r\n {user.roles.map((role) => (\r\n <span\r\n key={role}\r\n className=\"px-2 py-1 text-xs font-medium bg-[var(--accent-bg)] text-[var(--color-accent-600)]\"\r\n style={{ borderRadius: 'var(--radius-badge)' }}\r\n >\r\n {role}\r\n </span>\r\n ))}\r\n </div>\r\n )}\r\n </div>\r\n </div>\r\n\r\n <div className=\"space-y-4\">\r\n <div className=\"flex items-center gap-3 text-[var(--text-secondary)]\">\r\n <Mail className=\"w-5 h-5\" />\r\n <span>{user?.email || t('navigation:profile.notProvided')}</span>\r\n </div>\r\n <div className=\"flex items-center gap-3 text-[var(--text-secondary)]\">\r\n <Calendar className=\"w-5 h-5\" />\r\n <span>{t('navigation:profile.memberSince', { date: 'janvier 2024' })}</span>\r\n </div>\r\n </div>\r\n\r\n <div className=\"mt-6 pt-6 border-t border-[var(--border-color)]\">\r\n <button\r\n onClick={handleComingSoon}\r\n className=\"px-4 py-2 bg-[var(--color-accent-500)] hover:bg-[var(--color-accent-600)] text-white font-medium transition-colors\"\r\n style={{ borderRadius: 'var(--radius-button)' }}\r\n >\r\n {t('common:buttons.edit')}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div\r\n className=\"bg-[var(--bg-card)] border border-[var(--border-color)] p-6\"\r\n style={{ borderRadius: 'var(--radius-card)' }}\r\n >\r\n <h3 className=\"text-lg font-semibold text-[var(--text-primary)] mb-4\">{t('navigation:profile.security.title')}</h3>\r\n <div className=\"space-y-4\">\r\n <div className=\"flex items-center justify-between\">\r\n <div>\r\n <p className=\"font-medium text-[var(--text-primary)]\">{t('navigation:profile.security.password')}</p>\r\n <p className=\"text-sm text-[var(--text-secondary)]\">{t('navigation:profile.security.lastChanged', { days: 30 })}</p>\r\n </div>\r\n <button\r\n onClick={handleComingSoon}\r\n className=\"px-3 py-1.5 text-sm bg-[var(--bg-tertiary)] hover:bg-[var(--bg-hover)] text-[var(--text-primary)] transition-colors\"\r\n style={{ borderRadius: 'var(--radius-button)' }}\r\n >\r\n {t('common:buttons.edit')}\r\n </button>\r\n </div>\r\n <div className=\"flex items-center justify-between\">\r\n <div>\r\n <p className=\"font-medium text-[var(--text-primary)]\">{t('navigation:profile.security.twoFactor')}</p>\r\n <p className=\"text-sm text-[var(--text-secondary)]\">{t('navigation:profile.security.notEnabled')}</p>\r\n </div>\r\n <button\r\n onClick={handleComingSoon}\r\n className=\"px-3 py-1.5 text-sm bg-[var(--bg-tertiary)] hover:bg-[var(--bg-hover)] text-[var(--text-primary)] transition-colors\"\r\n style={{ borderRadius: 'var(--radius-button)' }}\r\n >\r\n {t('navigation:profile.security.enable')}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n}\r\n"],"names":["ProfilePage","useTranslation","user","useAuth","notification","setNotification","useState","useEffect","timer","handleComingSoon","displayName","initials","jsxs","jsx","Construction","X","role","Mail","Calendar"],"mappings":"8NAMO,SAASA,GAA4B,CAC1C,KAAM,CAAE,CAAA,EAAMC,EAAAA,eAAe,CAAC,aAAc,QAAQ,CAAC,EAC/C,CAAE,KAAAC,CAAA,EAASC,UAAA,EACX,CAACC,EAAcC,CAAe,EAAIC,EAAAA,SAAwB,IAAI,EAEpEC,EAAAA,UAAU,IAAM,CACd,GAAIH,EAAc,CAChB,MAAMI,EAAQ,WAAW,IAAMH,EAAgB,IAAI,EAAG,GAAI,EAC1D,MAAO,IAAM,aAAaG,CAAK,CACjC,CACF,EAAG,CAACJ,CAAY,CAAC,EAEjB,MAAMK,EAAmB,IAAM,CAC7BJ,EAAgB,EAAE,qCAAqC,CAAC,CAC1D,EAEMK,EAAcR,GAAM,WAAaA,GAAM,SACzC,GAAGA,EAAK,SAAS,IAAIA,EAAK,QAAQ,GAClCA,GAAM,OAAS,EAAE,aAAa,EAE5BS,EAAWT,GAAM,WAAaA,GAAM,SACtC,GAAGA,EAAK,UAAU,GAAG,CAAC,CAAC,GAAGA,EAAK,SAAS,GAAG,CAAC,CAAC,GAAG,YAAA,EAChDA,GAAM,OAAO,GAAG,CAAC,GAAG,YAAA,GAAiB,IAEzC,OACEU,EAAAA,KAAC,MAAA,CAAI,UAAU,YACb,SAAA,CAAAA,OAAC,MAAA,CACC,SAAA,CAAAC,MAAC,KAAA,CAAG,UAAU,gDAAiD,SAAA,EAAE,4BAA4B,EAAE,QAC9F,IAAA,CAAE,UAAU,oCAAqC,SAAA,EAAE,6BAA6B,CAAA,CAAE,CAAA,EACrF,EAECT,GACCQ,EAAAA,KAAC,MAAA,CACC,UAAU,gJACV,MAAO,CAAE,aAAc,oBAAA,EAEvB,SAAA,CAAAC,EAAAA,IAACC,EAAAA,aAAA,CAAa,UAAU,uBAAA,CAAwB,EAChDD,EAAAA,IAAC,OAAA,CAAK,UAAU,iBAAkB,SAAAT,EAAa,EAC/CS,EAAAA,IAAC,SAAA,CACC,QAAS,IAAMR,EAAgB,IAAI,EACnC,UAAU,8EAEV,SAAAQ,EAAAA,IAACE,EAAAA,EAAA,CAAE,UAAU,SAAA,CAAU,CAAA,CAAA,CACzB,CAAA,CAAA,EAIJH,EAAAA,KAAC,MAAA,CACC,UAAU,8DACV,MAAO,CAAE,aAAc,oBAAA,EAEvB,SAAA,CAAAA,EAAAA,KAAC,MAAA,CAAI,UAAU,+BACb,SAAA,CAAAC,EAAAA,IAAC,MAAA,CACC,UAAU,yJACV,MAAO,CAAE,aAAc,oBAAA,EAEtB,SAAAF,CAAA,CAAA,SAEF,MAAA,CACC,SAAA,CAAAE,EAAAA,IAAC,KAAA,CAAG,UAAU,mDAAoD,SAAAH,EAAY,EAC9EG,EAAAA,IAAC,IAAA,CAAE,UAAU,+BAAgC,YAAM,MAAM,EACxDX,GAAM,OAASA,EAAK,MAAM,OAAS,GAClCW,EAAAA,IAAC,MAAA,CAAI,UAAU,4BACZ,SAAAX,EAAK,MAAM,IAAKc,GACfH,EAAAA,IAAC,OAAA,CAEC,UAAU,qFACV,MAAO,CAAE,aAAc,qBAAA,EAEtB,SAAAG,CAAA,EAJIA,CAAA,CAMR,CAAA,CACH,CAAA,CAAA,CAEJ,CAAA,EACF,EAEAJ,EAAAA,KAAC,MAAA,CAAI,UAAU,YACb,SAAA,CAAAA,EAAAA,KAAC,MAAA,CAAI,UAAU,uDACb,SAAA,CAAAC,EAAAA,IAACI,EAAAA,KAAA,CAAK,UAAU,SAAA,CAAU,QACzB,OAAA,CAAM,SAAAf,GAAM,OAAS,EAAE,gCAAgC,CAAA,CAAE,CAAA,EAC5D,EACAU,EAAAA,KAAC,MAAA,CAAI,UAAU,uDACb,SAAA,CAAAC,EAAAA,IAACK,EAAAA,SAAA,CAAS,UAAU,SAAA,CAAU,EAC9BL,MAAC,QAAM,SAAA,EAAE,iCAAkC,CAAE,KAAM,cAAA,CAAgB,CAAA,CAAE,CAAA,CAAA,CACvE,CAAA,EACF,EAEAA,EAAAA,IAAC,MAAA,CAAI,UAAU,kDACb,SAAAA,EAAAA,IAAC,SAAA,CACC,QAASJ,EACT,UAAU,qHACV,MAAO,CAAE,aAAc,sBAAA,EAEtB,WAAE,qBAAqB,CAAA,CAAA,CAC1B,CACF,CAAA,CAAA,CAAA,EAGFG,EAAAA,KAAC,MAAA,CACC,UAAU,8DACV,MAAO,CAAE,aAAc,oBAAA,EAEvB,SAAA,CAAAC,MAAC,KAAA,CAAG,UAAU,wDAAyD,SAAA,EAAE,mCAAmC,EAAE,EAC9GD,EAAAA,KAAC,MAAA,CAAI,UAAU,YACb,SAAA,CAAAA,EAAAA,KAAC,MAAA,CAAI,UAAU,oCACb,SAAA,CAAAA,OAAC,MAAA,CACC,SAAA,CAAAC,MAAC,IAAA,CAAE,UAAU,yCAA0C,SAAA,EAAE,sCAAsC,EAAE,EACjGA,EAAAA,IAAC,IAAA,CAAE,UAAU,uCAAwC,SAAA,EAAE,0CAA2C,CAAE,KAAM,EAAA,CAAI,CAAA,CAAE,CAAA,EAClH,EACAA,EAAAA,IAAC,SAAA,CACC,QAASJ,EACT,UAAU,sHACV,MAAO,CAAE,aAAc,sBAAA,EAEtB,WAAE,qBAAqB,CAAA,CAAA,CAC1B,EACF,EACAG,EAAAA,KAAC,MAAA,CAAI,UAAU,oCACb,SAAA,CAAAA,OAAC,MAAA,CACC,SAAA,CAAAC,MAAC,IAAA,CAAE,UAAU,yCAA0C,SAAA,EAAE,uCAAuC,EAAE,QACjG,IAAA,CAAE,UAAU,uCAAwC,SAAA,EAAE,wCAAwC,CAAA,CAAE,CAAA,EACnG,EACAA,EAAAA,IAAC,SAAA,CACC,QAASJ,EACT,UAAU,sHACV,MAAO,CAAE,aAAc,sBAAA,EAEtB,WAAE,oCAAoC,CAAA,CAAA,CACzC,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,EACF,CAEJ"}
|
package/dist/chunks/{ReferencesManagementPage-CLsaUNqA.js → ReferencesManagementPage-B-FXS2ln.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),Me=require("react-i18next"),i=require("lucide-react"),C=require("./index-cAikSVW0.js"),se=require("./TenantScopeSelector-3_mzBLNI.js"),Ae=a=>({get:(s,u)=>C.apiClient.get(s,{...u,headers:a?{...u?.headers,"X-Tenant-Slug":a}:u?.headers}).then(r=>r.data),post:(s,u,r)=>C.apiClient.post(s,u,{...r,headers:a?{...r?.headers,"X-Tenant-Slug":a}:r?.headers}).then(c=>c.data),put:(s,u,r)=>C.apiClient.put(s,u,{...r,headers:a?{...r?.headers,"X-Tenant-Slug":a}:r?.headers}).then(c=>c.data),patch:(s,u,r)=>C.apiClient.patch(s,u,{...r,headers:a?{...r?.headers,"X-Tenant-Slug":a}:r?.headers}).then(c=>c.data),delete:(s,u)=>C.apiClient.delete(s,{...u,headers:a?{...u?.headers,"X-Tenant-Slug":a}:u?.headers}).then(r=>r.data)}),q={Company:0,Department:1,JobTitle:2,Office:3},v="/api/administration/users/references",Ie=a=>{const s=a?Ae(a):C.api,u=(r,c,d)=>{const h=new URLSearchParams;c&&h.append("tenantId",c),d&&Object.entries(d).forEach(([f,b])=>{b!==void 0&&h.append(f,String(b))});const o=h.toString();return o?`${v}/${r}?${o}`:`${v}/${r}`};return{companies:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("companies",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("companies",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/companies/${r}`,c)},activate:async r=>{await s.patch(`${v}/companies/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/companies/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/companies/${r}`)}},departments:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("departments",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("departments",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/departments/${r}`,c)},activate:async r=>{await s.patch(`${v}/departments/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/departments/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/departments/${r}`)}},jobTitles:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("job-titles",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("job-titles",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/job-titles/${r}`,c)},activate:async r=>{await s.patch(`${v}/job-titles/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/job-titles/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/job-titles/${r}`)}},offices:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("offices",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("offices",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/offices/${r}`,c)},activate:async r=>{await s.patch(`${v}/offices/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/offices/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/offices/${r}`)}},merge:{execute:async r=>s.post(`${v}/merge`,r),preview:async r=>s.post(`${v}/merge/preview`,r),getHistory:async(r,c,d,h)=>{const o=new URLSearchParams;r&&o.append("tenantId",r),c!==void 0&&o.append("referenceType",String(c)),d&&o.append("from",d),h&&o.append("to",h);const f=o.toString(),b=f?`${v}/merge/history?${f}`:`${v}/merge/history`;return s.get(b)}}}},ne=Ie;function Re(){const{t:a}=Me.useTranslation("admin"),{currentTenant:s,userTenants:u,switchTenant:r}=C.useTenant(),{tenants:c}=se.useAdminTenants(),[d,h]=l.useState(s?{tenantId:s.id,tenantSlug:s.slug,tenantUserId:"",tenantName:s.name}:"global"),o=d==="global",f=o?null:d.tenantId,b=o?void 0:d.tenantSlug,p=l.useMemo(()=>ne(b),[b]),[N,ce]=l.useState("departments"),[T,oe]=l.useState([]),[G,W]=l.useState(!0),[$,ie]=l.useState(""),[F,le]=l.useState(!1),[w,A]=l.useState(new Set),[g,U]=l.useState(1),[M]=l.useState(20),[K,de]=l.useState(0),[I,me]=l.useState(0),[xe,H]=l.useState(!1),[ue,L]=l.useState(!1),[pe,X]=l.useState(!1),[ve,O]=l.useState(!1),[R,Q]=l.useState(null),[B,V]=l.useState(null),[Y,he]=l.useState([]),[J,D]=l.useState(null),[x,S]=l.useState({code:"",name:""}),[P,Z]=l.useState(null),[ee,te]=l.useState(""),[E,z]=l.useState(!1),[ae,j]=l.useState(null),re=[{id:"departments",label:a("references.tabs.departments","Departments"),icon:i.Users,referenceType:q.Department},{id:"companies",label:a("references.tabs.companies","Companies"),icon:i.Building2,referenceType:q.Company},{id:"jobTitles",label:a("references.tabs.jobTitles","Job Titles"),icon:i.Briefcase,referenceType:q.JobTitle},{id:"offices",label:a("references.tabs.offices","Offices"),icon:i.MapPin,referenceType:q.Office}],_=re.find(t=>t.id===N),y=f,k=l.useCallback(async()=>{try{W(!0);const t=ne(b??void 0),n=F?void 0:!0;let m;switch(N){case"companies":m=await t.companies.getAll(y,$||void 0,n,void 0,g,M);break;case"departments":m=await t.departments.getAll(y,$||void 0,n,void 0,g,M);break;case"jobTitles":m=await t.jobTitles.getAll(y,$||void 0,n,void 0,g,M);break;case"offices":m=await t.offices.getAll(y,$||void 0,n,void 0,g,M);break;default:m={items:[],totalCount:0,page:1,pageSize:20,totalPages:0,hasPreviousPage:!1,hasNextPage:!1}}oe(m.items),de(m.totalCount),me(m.totalPages),A(new Set)}catch(t){console.error("Failed to load references:",t),j("Failed to load references")}finally{W(!1)}},[b,N,y,$,F,g,M]);l.useEffect(()=>{k()},[k]),l.useEffect(()=>{U(1)},[N,$,F,d]);const be=t=>{const n=new Set(w);n.has(t)?n.delete(t):n.add(t),A(n)},fe=()=>{w.size===T.length?A(new Set):A(new Set(T.map(t=>t.id)))},ge=async t=>{try{await r(t);const n=u.find(m=>m.id===t);n&&h({tenantId:n.id,tenantSlug:n.slug,tenantUserId:"",tenantName:n.name})}catch(n){console.error("Failed to switch tenant:",n)}},ye=async()=>{if(y)try{switch(z(!0),j(null),N){case"companies":await p.companies.create(y,x);break;case"departments":await p.departments.create(y,x);break;case"jobTitles":await p.jobTitles.create(y,x);break;case"offices":await p.offices.create(y,x);break}H(!1),S({code:"",name:""}),k()}catch(t){const n=t instanceof Error?t.message:"Failed to create";j(n)}finally{z(!1)}},je=async()=>{if(R)try{z(!0),j(null);const t={name:x.name,shortName:x.shortName,description:x.description};switch(N){case"companies":await p.companies.update(R.id,t);break;case"departments":await p.departments.update(R.id,t);break;case"jobTitles":await p.jobTitles.update(R.id,t);break;case"offices":await p.offices.update(R.id,t);break}L(!1),Q(null),k()}catch(t){const n=t instanceof Error?t.message:"Failed to update";j(n)}finally{z(!1)}},Ne=async t=>{if(confirm(a("references.confirmDelete","Are you sure you want to delete this reference?")))try{switch(N){case"companies":await p.companies.delete(t);break;case"departments":await p.departments.delete(t);break;case"jobTitles":await p.jobTitles.delete(t);break;case"offices":await p.offices.delete(t);break}k()}catch(n){const m=n instanceof Error?n.message:"Failed to delete";j(m)}},we=async t=>{try{if(t.isActive)switch(N){case"companies":await p.companies.deactivate(t.id);break;case"departments":await p.departments.deactivate(t.id);break;case"jobTitles":await p.jobTitles.deactivate(t.id);break;case"offices":await p.offices.deactivate(t.id);break}else switch(N){case"companies":await p.companies.activate(t.id);break;case"departments":await p.departments.activate(t.id);break;case"jobTitles":await p.jobTitles.activate(t.id);break;case"offices":await p.offices.activate(t.id);break}k()}catch(n){const m=n instanceof Error?n.message:"Failed to toggle status";j(m)}},Se=async()=>{if(!(w.size<2))try{const t=await p.merge.preview({tenantId:y,referenceType:_.referenceType,sourceIds:Array.from(w)});V(t),Z(null),te(""),X(!0)}catch(t){console.error("Failed to get merge preview:",t),j("Failed to preview merge")}},ke=async()=>{if(!P||!B)return;const t=Array.from(w).filter(n=>n!==P);try{z(!0),j(null),await p.merge.execute({tenantId:y,referenceType:_.referenceType,targetId:P,sourceIds:t,reason:ee||void 0}),X(!1),A(new Set),V(null),k()}catch(n){const m=n instanceof Error?n.message:"Failed to merge";j(m)}finally{z(!1)}},Ce=async()=>{try{const t=await p.merge.getHistory(y,_.referenceType);he(t),O(!0)}catch(t){console.error("Failed to load merge history:",t),j("Failed to load merge history")}},Te=t=>{Q(t),S({code:t.code,name:t.name,shortName:t.shortName,description:t.description}),L(!0),D(null)},$e=t=>t.isMerged?e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium rounded-full bg-[var(--info-bg)] text-[var(--info-text)]",children:[e.jsx(i.GitMerge,{className:"w-3 h-3"}),a("references.merged","Merged")]}):t.isActive?null:e.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium rounded-full bg-[var(--bg-secondary)] text-[var(--text-secondary)]",children:a("references.inactive","Inactive")});return e.jsxs("div",{className:"p-6",children:[e.jsx("div",{className:"mb-6",children:e.jsx(C.Breadcrumb,{items:[{label:a("admin.title","Administration"),href:"/administration"},{label:a("users.title","Users"),href:"/administration/users"},{label:a("references.title","References")}]})}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-2xl font-bold text-[var(--text-primary)]",children:a("references.title","Reference Data Management")}),e.jsx("p",{className:"text-[var(--text-secondary)] mt-1",children:a("references.description","Manage companies, departments, job titles, and offices for your organization")}),e.jsxs("div",{className:"mt-4",children:[e.jsx(se.TenantScopeSelector,{value:d,onChange:h,adminTenants:c.map(t=>({tenantId:t.id,tenantSlug:t.slug,tenantName:t.name,tenantType:t.type}))}),o&&e.jsxs("p",{className:"mt-2 text-sm text-[var(--text-secondary)] flex items-center gap-1.5",children:[e.jsx(i.Globe,{className:"w-4 h-4"}),a("references.globalModeInfo","Showing references from all tenants. Select a tenant to manage its data.")]})]})]}),ae&&e.jsxs("div",{className:"mb-4 p-4 bg-[var(--error-bg)] border border-[var(--error-border)] rounded-[var(--radius-card)]",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(i.AlertCircle,{className:"w-5 h-5 text-[var(--error-text)]"}),e.jsx("span",{className:"ml-2 text-[var(--error-text)]",children:ae}),e.jsx("button",{onClick:()=>j(null),className:"ml-auto text-[var(--error-text)]",children:e.jsx(i.X,{className:"w-4 h-4"})})]}),e.jsx("button",{onClick:()=>k(),className:"mt-2 text-sm text-[var(--error-text)] hover:opacity-80 underline",children:a("common.retry","Retry")})]}),e.jsx("div",{className:"border-b border-[var(--border-color)] mb-6",children:e.jsx("nav",{className:"flex gap-4 -mb-px",children:re.map(t=>{const n=t.icon,m=N===t.id;return e.jsxs("button",{onClick:()=>{ce(t.id),A(new Set)},className:`flex items-center gap-2 px-4 py-3 border-b-2 font-medium text-sm transition-colors ${m?"border-[var(--color-accent-500)] text-[var(--color-accent-600)]":"border-transparent text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:border-[var(--border-color)]"}`,children:[e.jsx(n,{className:"w-4 h-4"}),t.label]},t.id)})})}),e.jsxs("div",{className:"flex items-center justify-between gap-4 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("input",{type:"text",value:$,onChange:t=>ie(t.target.value),placeholder:a("common.search","Search..."),className:"pl-10 pr-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx("input",{type:"checkbox",checked:F,onChange:t=>le(t.target.checked),className:"rounded border-[var(--border-color)]"}),a("references.showInactive","Show inactive")]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[w.size>=2&&!o&&e.jsxs("button",{onClick:Se,className:"flex items-center gap-2 px-4 py-2 bg-[var(--info-dot)] text-white rounded-[var(--radius-button)] hover:opacity-90 transition-opacity",children:[e.jsx(i.GitMerge,{className:"w-4 h-4"}),a("references.merge","Merge")," (",w.size,")"]}),!o&&e.jsxs("button",{onClick:Ce,className:"flex items-center gap-2 px-4 py-2 border border-[var(--border-color)] text-[var(--text-primary)] rounded-[var(--radius-button)] hover:bg-[var(--bg-hover)] transition-colors",children:[e.jsx(i.History,{className:"w-4 h-4"}),a("references.history","History")]}),e.jsxs("button",{onClick:()=>{S({code:"",name:""}),H(!0)},disabled:o,title:o?a("references.selectTenantToCreate","Select a tenant to create a reference"):void 0,className:`flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] transition-colors ${o?"bg-[var(--bg-secondary)] text-[var(--text-tertiary)] cursor-not-allowed":"bg-[var(--color-accent-600)] text-white hover:bg-[var(--color-accent-700)]"}`,children:[e.jsx(i.Plus,{className:"w-4 h-4"}),a("common.create","Create")]})]})]}),e.jsxs("div",{className:"card overflow-hidden",children:[G&&e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(i.Loader2,{className:"w-8 h-8 animate-spin text-[var(--color-accent-500)]"})}),!G&&T.length===0&&e.jsx("div",{className:"text-center py-12 text-[var(--text-secondary)]",children:a("references.noItems","No items found")}),!G&&T.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-[var(--bg-secondary)] border-b border-[var(--border-color)]",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-12 px-4 py-3",children:!o&&e.jsx("input",{type:"checkbox",checked:w.size===T.length&&T.length>0,onChange:fe,className:"rounded border-[var(--border-color)]"})}),e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.code","Code")}),e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.name","Name")}),o&&e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.tenant","Tenant")}),e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.shortName","Short Name")}),e.jsx("th",{className:"px-4 py-3 text-center text-sm font-medium text-[var(--text-secondary)]",children:a("references.users","Users")}),e.jsx("th",{className:"px-4 py-3 text-center text-sm font-medium text-[var(--text-secondary)]",children:a("references.status","Status")}),e.jsx("th",{className:"w-20 px-4 py-3"})]})}),e.jsx("tbody",{className:"divide-y divide-[var(--border-color)]",children:T.map(t=>e.jsxs("tr",{className:`hover:bg-[var(--bg-hover)] transition-colors ${w.has(t.id)?"bg-[var(--info-bg)]":""} ${t.isMerged?"opacity-60":""}`,children:[e.jsx("td",{className:"px-4 py-3",children:!o&&e.jsx("input",{type:"checkbox",checked:w.has(t.id),onChange:()=>be(t.id),disabled:t.isMerged,className:"rounded border-[var(--border-color)]"})}),e.jsx("td",{className:"px-4 py-3 font-mono text-sm text-[var(--text-primary)]",children:t.code}),e.jsx("td",{className:"px-4 py-3 text-[var(--text-primary)]",children:t.name}),o&&e.jsx("td",{className:"px-4 py-3",children:t.tenantName?e.jsxs("button",{onClick:()=>t.tenantId&&ge(t.tenantId),className:"inline-flex items-center gap-1.5 px-2 py-1 text-xs font-medium rounded-full bg-[var(--info-bg)] text-[var(--info-text)] hover:opacity-80 transition-opacity",title:a("references.switchToTenant","Switch to this tenant"),children:[e.jsx(i.Building2,{className:"w-3 h-3"}),t.tenantName]}):e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"-"})}),e.jsx("td",{className:"px-4 py-3 text-[var(--text-secondary)]",children:t.shortName||"-"}),e.jsx("td",{className:"px-4 py-3 text-center",children:e.jsxs("span",{className:"inline-flex items-center gap-1 text-[var(--text-secondary)]",children:[e.jsx(i.Users,{className:"w-4 h-4"}),t.userCount]})}),e.jsxs("td",{className:"px-4 py-3 text-center",children:[$e(t),t.isActive&&!t.isMerged&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium rounded-full bg-[var(--success-bg)] text-[var(--success-text)]",children:[e.jsx(i.Check,{className:"w-3 h-3"}),a("references.active","Active")]})]}),e.jsx("td",{className:"px-4 py-3",children:e.jsxs("div",{className:"relative",children:[e.jsx("button",{onClick:()=>D(J===t.id?null:t.id),className:"p-2 hover:bg-[var(--bg-secondary)] rounded-[var(--radius-button)] transition-colors",disabled:t.isMerged||o,children:e.jsx(i.MoreHorizontal,{className:"w-4 h-4"})}),J===t.id&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-48 bg-[var(--bg-primary)] border border-[var(--border-color)] rounded-[var(--radius-card)] shadow-lg z-10",children:[e.jsxs("button",{onClick:()=>Te(t),className:"flex items-center gap-2 w-full px-4 py-2 text-left text-sm text-[var(--text-primary)] hover:bg-[var(--bg-hover)]",children:[e.jsx(i.Edit2,{className:"w-4 h-4"}),a("common.edit","Edit")]}),e.jsx("button",{onClick:()=>{we(t),D(null)},className:"flex items-center gap-2 w-full px-4 py-2 text-left text-sm text-[var(--text-primary)] hover:bg-[var(--bg-hover)]",children:t.isActive?a("common.deactivate","Deactivate"):a("common.activate","Activate")}),t.userCount===0&&e.jsxs("button",{onClick:()=>{Ne(t.id),D(null)},className:"flex items-center gap-2 w-full px-4 py-2 text-left text-sm text-[var(--error-text)] hover:bg-[var(--error-bg)]",children:[e.jsx(i.Trash2,{className:"w-4 h-4"}),a("common.delete","Delete")]})]})]})})]},t.id))})]}),e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-t border-[var(--border-color)] bg-[var(--bg-secondary)]",children:[e.jsxs("div",{className:"text-sm text-[var(--text-secondary)]",children:[a("references.showing","Showing")," ",(g-1)*M+1," ",a("references.to","to")," ",Math.min(g*M,K)," ",a("references.of","of")," ",K," ",a("references.results","results")]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>U(t=>Math.max(1,t-1)),disabled:g===1,className:"px-3 py-1.5 border border-[var(--border-color)] rounded-[var(--radius-button)] text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:a("common.previous","Previous")}),e.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(5,I)},(t,n)=>{let m;return I<=5||g<=3?m=n+1:g>=I-2?m=I-4+n:m=g-2+n,e.jsx("button",{onClick:()=>U(m),className:`px-3 py-1.5 rounded-[var(--radius-button)] transition-colors ${g===m?"bg-[var(--color-accent-600)] text-white":"border border-[var(--border-color)] text-[var(--text-primary)] hover:bg-[var(--bg-hover)]"}`,children:m},m)})}),e.jsx("button",{onClick:()=>U(t=>Math.min(I,t+1)),disabled:g===I,className:"px-3 py-1.5 border border-[var(--border-color)] rounded-[var(--radius-button)] text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:a("common.next","Next")})]})]})]})]}),xe&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-md p-6 m-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-xl font-semibold text-[var(--text-primary)]",children:a("references.createTitle","Create Reference")}),e.jsx("button",{onClick:()=>H(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:[a("references.code","Code")," *"]}),e.jsx("input",{type:"text",value:x.code,onChange:t=>S({...x,code:t.target.value}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:[a("references.name","Name")," *"]}),e.jsx("input",{type:"text",value:x.name,onChange:t=>S({...x,name:t.target.value}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.shortName","Short Name")}),e.jsx("input",{type:"text",value:x.shortName||"",onChange:t=>S({...x,shortName:t.target.value||null}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.description","Description")}),e.jsx("textarea",{value:x.description||"",onChange:t=>S({...x,description:t.target.value||null}),rows:3,className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]})]}),e.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[e.jsx("button",{onClick:()=>H(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.cancel","Cancel")}),e.jsxs("button",{onClick:ye,disabled:E||!x.code||!x.name,className:"flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] bg-[var(--color-accent-600)] text-white hover:bg-[var(--color-accent-700)] transition-colors disabled:opacity-50",children:[E&&e.jsx(i.Loader2,{className:"w-4 h-4 animate-spin"}),a("common.create","Create")]})]})]})}),ue&&R&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-md p-6 m-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-xl font-semibold text-[var(--text-primary)]",children:a("references.editTitle","Edit Reference")}),e.jsx("button",{onClick:()=>L(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.code","Code")}),e.jsx("input",{type:"text",value:x.code,disabled:!0,className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-secondary)] text-[var(--text-tertiary)] cursor-not-allowed"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:[a("references.name","Name")," *"]}),e.jsx("input",{type:"text",value:x.name,onChange:t=>S({...x,name:t.target.value}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.shortName","Short Name")}),e.jsx("input",{type:"text",value:x.shortName||"",onChange:t=>S({...x,shortName:t.target.value||null}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.description","Description")}),e.jsx("textarea",{value:x.description||"",onChange:t=>S({...x,description:t.target.value||null}),rows:3,className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]})]}),e.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[e.jsx("button",{onClick:()=>L(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.cancel","Cancel")}),e.jsxs("button",{onClick:je,disabled:E||!x.name,className:"flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] bg-[var(--color-accent-600)] text-white hover:bg-[var(--color-accent-700)] transition-colors disabled:opacity-50",children:[E&&e.jsx(i.Loader2,{className:"w-4 h-4 animate-spin"}),a("common.save","Save")]})]})]})}),pe&&B&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-lg p-6 m-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{className:"text-xl font-semibold text-[var(--text-primary)] flex items-center gap-2",children:[e.jsx(i.GitMerge,{className:"w-5 h-5 text-[var(--info-dot)]"}),a("references.mergeTitle","Merge References")]}),e.jsx("button",{onClick:()=>X(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-4",children:a("references.mergeDescription","Select the target reference. All other selected references will be merged into it and their users will be reassigned.")}),e.jsxs("div",{className:"space-y-2 mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)]",children:a("references.selectTarget","Select target reference")}),B.sources.map(t=>e.jsxs("label",{className:`flex items-center gap-3 p-3 border rounded-[var(--radius-card)] cursor-pointer transition-colors ${P===t.id?"border-[var(--info-dot)] bg-[var(--info-bg)]":"border-[var(--border-color)] hover:border-[var(--color-accent-500)]"}`,children:[e.jsx("input",{type:"radio",name:"mergeTarget",value:t.id,checked:P===t.id,onChange:()=>Z(t.id),className:"text-[var(--info-dot)]"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-medium text-[var(--text-primary)]",children:t.name}),e.jsxs("div",{className:"text-sm text-[var(--text-secondary)]",children:[t.code," ",t.shortName&&`(${t.shortName})`]})]}),e.jsxs("span",{className:"text-sm text-[var(--text-secondary)]",children:[t.userCount," ",a("references.users","users")]})]},t.id))]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.mergeReason","Reason (optional)")}),e.jsx("textarea",{value:ee,onChange:t=>te(t.target.value),rows:2,placeholder:a("references.mergeReasonPlaceholder","Why are you merging these references?"),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsx("div",{className:"p-3 bg-[var(--warning-bg)] border border-[var(--warning-border)] rounded-[var(--radius-card)] mb-4",children:e.jsxs("p",{className:"text-sm text-[var(--warning-text)]",children:[e.jsx("strong",{children:B.totalUsersAffected})," ",a("references.usersWillBeReassigned","users will be reassigned")]})}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{onClick:()=>X(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.cancel","Cancel")}),e.jsxs("button",{onClick:ke,disabled:E||!P,className:"flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] bg-[var(--info-dot)] text-white hover:opacity-90 transition-opacity disabled:opacity-50",children:[E&&e.jsx(i.Loader2,{className:"w-4 h-4 animate-spin"}),e.jsx(i.GitMerge,{className:"w-4 h-4"}),a("references.merge","Merge")]})]})]})}),ve&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-2xl p-6 m-4 max-h-[80vh] overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{className:"text-xl font-semibold text-[var(--text-primary)] flex items-center gap-2",children:[e.jsx(i.History,{className:"w-5 h-5"}),a("references.historyTitle","Merge History")]}),e.jsx("button",{onClick:()=>O(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsx("div",{className:"overflow-y-auto flex-1",children:Y.length===0?e.jsx("div",{className:"text-center py-8 text-[var(--text-secondary)]",children:a("references.noHistory","No merge history found")}):e.jsx("div",{className:"space-y-3",children:Y.map(t=>e.jsxs("div",{className:"p-4 border border-[var(--border-color)] rounded-[var(--radius-card)]",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(i.GitMerge,{className:"w-4 h-4 text-[var(--info-dot)]"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:t.sourceReferenceName}),e.jsx("span",{className:"text-[var(--text-secondary)]",children:"→"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:t.targetReferenceName})]}),e.jsxs("div",{className:"text-sm text-[var(--text-secondary)] space-y-1",children:[e.jsxs("div",{children:[t.affectedUserCount," users reassigned"]}),e.jsxs("div",{children:["By ",t.mergedByUserName]}),e.jsx("div",{children:new Date(t.mergedAt).toLocaleString()}),t.mergeReason&&e.jsxs("div",{className:"italic",children:['"',t.mergeReason,'"']})]})]},t.id))})}),e.jsx("div",{className:"flex justify-end mt-4 pt-4 border-t border-[var(--border-color)]",children:e.jsx("button",{onClick:()=>O(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.close","Close")})})]})}),J&&e.jsx("button",{type:"button",className:"fixed inset-0 z-0",onClick:()=>D(null),"aria-label":"Close menu"})]})}exports.ReferencesManagementPage=Re;
|
|
2
|
-
//# sourceMappingURL=ReferencesManagementPage-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),Me=require("react-i18next"),i=require("lucide-react"),C=require("./index-DK5czlkn.js"),se=require("./TenantScopeSelector-B9vtpIZx.js"),Ae=a=>({get:(s,u)=>C.apiClient.get(s,{...u,headers:a?{...u?.headers,"X-Tenant-Slug":a}:u?.headers}).then(r=>r.data),post:(s,u,r)=>C.apiClient.post(s,u,{...r,headers:a?{...r?.headers,"X-Tenant-Slug":a}:r?.headers}).then(c=>c.data),put:(s,u,r)=>C.apiClient.put(s,u,{...r,headers:a?{...r?.headers,"X-Tenant-Slug":a}:r?.headers}).then(c=>c.data),patch:(s,u,r)=>C.apiClient.patch(s,u,{...r,headers:a?{...r?.headers,"X-Tenant-Slug":a}:r?.headers}).then(c=>c.data),delete:(s,u)=>C.apiClient.delete(s,{...u,headers:a?{...u?.headers,"X-Tenant-Slug":a}:u?.headers}).then(r=>r.data)}),q={Company:0,Department:1,JobTitle:2,Office:3},v="/api/administration/users/references",Ie=a=>{const s=a?Ae(a):C.api,u=(r,c,d)=>{const h=new URLSearchParams;c&&h.append("tenantId",c),d&&Object.entries(d).forEach(([f,b])=>{b!==void 0&&h.append(f,String(b))});const o=h.toString();return o?`${v}/${r}?${o}`:`${v}/${r}`};return{companies:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("companies",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("companies",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/companies/${r}`,c)},activate:async r=>{await s.patch(`${v}/companies/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/companies/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/companies/${r}`)}},departments:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("departments",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("departments",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/departments/${r}`,c)},activate:async r=>{await s.patch(`${v}/departments/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/departments/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/departments/${r}`)}},jobTitles:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("job-titles",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("job-titles",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/job-titles/${r}`,c)},activate:async r=>{await s.patch(`${v}/job-titles/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/job-titles/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/job-titles/${r}`)}},offices:{getAll:async(r,c,d,h,o=1,f=20)=>{const b=u("offices",r,{search:c,isActive:d,source:h,page:o,pageSize:f});return s.get(b)},create:async(r,c)=>{const d=u("offices",r);return s.post(d,c)},update:async(r,c)=>{await s.put(`${v}/offices/${r}`,c)},activate:async r=>{await s.patch(`${v}/offices/${r}/activate`)},deactivate:async r=>{await s.patch(`${v}/offices/${r}/deactivate`)},delete:async r=>{await s.delete(`${v}/offices/${r}`)}},merge:{execute:async r=>s.post(`${v}/merge`,r),preview:async r=>s.post(`${v}/merge/preview`,r),getHistory:async(r,c,d,h)=>{const o=new URLSearchParams;r&&o.append("tenantId",r),c!==void 0&&o.append("referenceType",String(c)),d&&o.append("from",d),h&&o.append("to",h);const f=o.toString(),b=f?`${v}/merge/history?${f}`:`${v}/merge/history`;return s.get(b)}}}},ne=Ie;function Re(){const{t:a}=Me.useTranslation("admin"),{currentTenant:s,userTenants:u,switchTenant:r}=C.useTenant(),{tenants:c}=se.useAdminTenants(),[d,h]=l.useState(s?{tenantId:s.id,tenantSlug:s.slug,tenantUserId:"",tenantName:s.name}:"global"),o=d==="global",f=o?null:d.tenantId,b=o?void 0:d.tenantSlug,p=l.useMemo(()=>ne(b),[b]),[N,ce]=l.useState("departments"),[T,oe]=l.useState([]),[G,W]=l.useState(!0),[$,ie]=l.useState(""),[F,le]=l.useState(!1),[w,A]=l.useState(new Set),[g,U]=l.useState(1),[M]=l.useState(20),[K,de]=l.useState(0),[I,me]=l.useState(0),[xe,H]=l.useState(!1),[ue,L]=l.useState(!1),[pe,X]=l.useState(!1),[ve,O]=l.useState(!1),[R,Q]=l.useState(null),[B,V]=l.useState(null),[Y,he]=l.useState([]),[J,D]=l.useState(null),[x,S]=l.useState({code:"",name:""}),[P,Z]=l.useState(null),[ee,te]=l.useState(""),[E,z]=l.useState(!1),[ae,j]=l.useState(null),re=[{id:"departments",label:a("references.tabs.departments","Departments"),icon:i.Users,referenceType:q.Department},{id:"companies",label:a("references.tabs.companies","Companies"),icon:i.Building2,referenceType:q.Company},{id:"jobTitles",label:a("references.tabs.jobTitles","Job Titles"),icon:i.Briefcase,referenceType:q.JobTitle},{id:"offices",label:a("references.tabs.offices","Offices"),icon:i.MapPin,referenceType:q.Office}],_=re.find(t=>t.id===N),y=f,k=l.useCallback(async()=>{try{W(!0);const t=ne(b??void 0),n=F?void 0:!0;let m;switch(N){case"companies":m=await t.companies.getAll(y,$||void 0,n,void 0,g,M);break;case"departments":m=await t.departments.getAll(y,$||void 0,n,void 0,g,M);break;case"jobTitles":m=await t.jobTitles.getAll(y,$||void 0,n,void 0,g,M);break;case"offices":m=await t.offices.getAll(y,$||void 0,n,void 0,g,M);break;default:m={items:[],totalCount:0,page:1,pageSize:20,totalPages:0,hasPreviousPage:!1,hasNextPage:!1}}oe(m.items),de(m.totalCount),me(m.totalPages),A(new Set)}catch(t){console.error("Failed to load references:",t),j("Failed to load references")}finally{W(!1)}},[b,N,y,$,F,g,M]);l.useEffect(()=>{k()},[k]),l.useEffect(()=>{U(1)},[N,$,F,d]);const be=t=>{const n=new Set(w);n.has(t)?n.delete(t):n.add(t),A(n)},fe=()=>{w.size===T.length?A(new Set):A(new Set(T.map(t=>t.id)))},ge=async t=>{try{await r(t);const n=u.find(m=>m.id===t);n&&h({tenantId:n.id,tenantSlug:n.slug,tenantUserId:"",tenantName:n.name})}catch(n){console.error("Failed to switch tenant:",n)}},ye=async()=>{if(y)try{switch(z(!0),j(null),N){case"companies":await p.companies.create(y,x);break;case"departments":await p.departments.create(y,x);break;case"jobTitles":await p.jobTitles.create(y,x);break;case"offices":await p.offices.create(y,x);break}H(!1),S({code:"",name:""}),k()}catch(t){const n=t instanceof Error?t.message:"Failed to create";j(n)}finally{z(!1)}},je=async()=>{if(R)try{z(!0),j(null);const t={name:x.name,shortName:x.shortName,description:x.description};switch(N){case"companies":await p.companies.update(R.id,t);break;case"departments":await p.departments.update(R.id,t);break;case"jobTitles":await p.jobTitles.update(R.id,t);break;case"offices":await p.offices.update(R.id,t);break}L(!1),Q(null),k()}catch(t){const n=t instanceof Error?t.message:"Failed to update";j(n)}finally{z(!1)}},Ne=async t=>{if(confirm(a("references.confirmDelete","Are you sure you want to delete this reference?")))try{switch(N){case"companies":await p.companies.delete(t);break;case"departments":await p.departments.delete(t);break;case"jobTitles":await p.jobTitles.delete(t);break;case"offices":await p.offices.delete(t);break}k()}catch(n){const m=n instanceof Error?n.message:"Failed to delete";j(m)}},we=async t=>{try{if(t.isActive)switch(N){case"companies":await p.companies.deactivate(t.id);break;case"departments":await p.departments.deactivate(t.id);break;case"jobTitles":await p.jobTitles.deactivate(t.id);break;case"offices":await p.offices.deactivate(t.id);break}else switch(N){case"companies":await p.companies.activate(t.id);break;case"departments":await p.departments.activate(t.id);break;case"jobTitles":await p.jobTitles.activate(t.id);break;case"offices":await p.offices.activate(t.id);break}k()}catch(n){const m=n instanceof Error?n.message:"Failed to toggle status";j(m)}},Se=async()=>{if(!(w.size<2))try{const t=await p.merge.preview({tenantId:y,referenceType:_.referenceType,sourceIds:Array.from(w)});V(t),Z(null),te(""),X(!0)}catch(t){console.error("Failed to get merge preview:",t),j("Failed to preview merge")}},ke=async()=>{if(!P||!B)return;const t=Array.from(w).filter(n=>n!==P);try{z(!0),j(null),await p.merge.execute({tenantId:y,referenceType:_.referenceType,targetId:P,sourceIds:t,reason:ee||void 0}),X(!1),A(new Set),V(null),k()}catch(n){const m=n instanceof Error?n.message:"Failed to merge";j(m)}finally{z(!1)}},Ce=async()=>{try{const t=await p.merge.getHistory(y,_.referenceType);he(t),O(!0)}catch(t){console.error("Failed to load merge history:",t),j("Failed to load merge history")}},Te=t=>{Q(t),S({code:t.code,name:t.name,shortName:t.shortName,description:t.description}),L(!0),D(null)},$e=t=>t.isMerged?e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium rounded-full bg-[var(--info-bg)] text-[var(--info-text)]",children:[e.jsx(i.GitMerge,{className:"w-3 h-3"}),a("references.merged","Merged")]}):t.isActive?null:e.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium rounded-full bg-[var(--bg-secondary)] text-[var(--text-secondary)]",children:a("references.inactive","Inactive")});return e.jsxs("div",{className:"p-6",children:[e.jsx("div",{className:"mb-6",children:e.jsx(C.Breadcrumb,{items:[{label:a("admin.title","Administration"),href:"/administration"},{label:a("users.title","Users"),href:"/administration/users"},{label:a("references.title","References")}]})}),e.jsxs("div",{className:"mb-6",children:[e.jsx("h1",{className:"text-2xl font-bold text-[var(--text-primary)]",children:a("references.title","Reference Data Management")}),e.jsx("p",{className:"text-[var(--text-secondary)] mt-1",children:a("references.description","Manage companies, departments, job titles, and offices for your organization")}),e.jsxs("div",{className:"mt-4",children:[e.jsx(se.TenantScopeSelector,{value:d,onChange:h,adminTenants:c.map(t=>({tenantId:t.id,tenantSlug:t.slug,tenantName:t.name,tenantType:t.type}))}),o&&e.jsxs("p",{className:"mt-2 text-sm text-[var(--text-secondary)] flex items-center gap-1.5",children:[e.jsx(i.Globe,{className:"w-4 h-4"}),a("references.globalModeInfo","Showing references from all tenants. Select a tenant to manage its data.")]})]})]}),ae&&e.jsxs("div",{className:"mb-4 p-4 bg-[var(--error-bg)] border border-[var(--error-border)] rounded-[var(--radius-card)]",children:[e.jsxs("div",{className:"flex items-center",children:[e.jsx(i.AlertCircle,{className:"w-5 h-5 text-[var(--error-text)]"}),e.jsx("span",{className:"ml-2 text-[var(--error-text)]",children:ae}),e.jsx("button",{onClick:()=>j(null),className:"ml-auto text-[var(--error-text)]",children:e.jsx(i.X,{className:"w-4 h-4"})})]}),e.jsx("button",{onClick:()=>k(),className:"mt-2 text-sm text-[var(--error-text)] hover:opacity-80 underline",children:a("common.retry","Retry")})]}),e.jsx("div",{className:"border-b border-[var(--border-color)] mb-6",children:e.jsx("nav",{className:"flex gap-4 -mb-px",children:re.map(t=>{const n=t.icon,m=N===t.id;return e.jsxs("button",{onClick:()=>{ce(t.id),A(new Set)},className:`flex items-center gap-2 px-4 py-3 border-b-2 font-medium text-sm transition-colors ${m?"border-[var(--color-accent-500)] text-[var(--color-accent-600)]":"border-transparent text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:border-[var(--border-color)]"}`,children:[e.jsx(n,{className:"w-4 h-4"}),t.label]},t.id)})})}),e.jsxs("div",{className:"flex items-center justify-between gap-4 mb-4",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx(i.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("input",{type:"text",value:$,onChange:t=>ie(t.target.value),placeholder:a("common.search","Search..."),className:"pl-10 pr-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("label",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx("input",{type:"checkbox",checked:F,onChange:t=>le(t.target.checked),className:"rounded border-[var(--border-color)]"}),a("references.showInactive","Show inactive")]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[w.size>=2&&!o&&e.jsxs("button",{onClick:Se,className:"flex items-center gap-2 px-4 py-2 bg-[var(--info-dot)] text-white rounded-[var(--radius-button)] hover:opacity-90 transition-opacity",children:[e.jsx(i.GitMerge,{className:"w-4 h-4"}),a("references.merge","Merge")," (",w.size,")"]}),!o&&e.jsxs("button",{onClick:Ce,className:"flex items-center gap-2 px-4 py-2 border border-[var(--border-color)] text-[var(--text-primary)] rounded-[var(--radius-button)] hover:bg-[var(--bg-hover)] transition-colors",children:[e.jsx(i.History,{className:"w-4 h-4"}),a("references.history","History")]}),e.jsxs("button",{onClick:()=>{S({code:"",name:""}),H(!0)},disabled:o,title:o?a("references.selectTenantToCreate","Select a tenant to create a reference"):void 0,className:`flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] transition-colors ${o?"bg-[var(--bg-secondary)] text-[var(--text-tertiary)] cursor-not-allowed":"bg-[var(--color-accent-600)] text-white hover:bg-[var(--color-accent-700)]"}`,children:[e.jsx(i.Plus,{className:"w-4 h-4"}),a("common.create","Create")]})]})]}),e.jsxs("div",{className:"card overflow-hidden",children:[G&&e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(i.Loader2,{className:"w-8 h-8 animate-spin text-[var(--color-accent-500)]"})}),!G&&T.length===0&&e.jsx("div",{className:"text-center py-12 text-[var(--text-secondary)]",children:a("references.noItems","No items found")}),!G&&T.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("table",{className:"w-full",children:[e.jsx("thead",{className:"bg-[var(--bg-secondary)] border-b border-[var(--border-color)]",children:e.jsxs("tr",{children:[e.jsx("th",{className:"w-12 px-4 py-3",children:!o&&e.jsx("input",{type:"checkbox",checked:w.size===T.length&&T.length>0,onChange:fe,className:"rounded border-[var(--border-color)]"})}),e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.code","Code")}),e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.name","Name")}),o&&e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.tenant","Tenant")}),e.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-[var(--text-secondary)]",children:a("references.shortName","Short Name")}),e.jsx("th",{className:"px-4 py-3 text-center text-sm font-medium text-[var(--text-secondary)]",children:a("references.users","Users")}),e.jsx("th",{className:"px-4 py-3 text-center text-sm font-medium text-[var(--text-secondary)]",children:a("references.status","Status")}),e.jsx("th",{className:"w-20 px-4 py-3"})]})}),e.jsx("tbody",{className:"divide-y divide-[var(--border-color)]",children:T.map(t=>e.jsxs("tr",{className:`hover:bg-[var(--bg-hover)] transition-colors ${w.has(t.id)?"bg-[var(--info-bg)]":""} ${t.isMerged?"opacity-60":""}`,children:[e.jsx("td",{className:"px-4 py-3",children:!o&&e.jsx("input",{type:"checkbox",checked:w.has(t.id),onChange:()=>be(t.id),disabled:t.isMerged,className:"rounded border-[var(--border-color)]"})}),e.jsx("td",{className:"px-4 py-3 font-mono text-sm text-[var(--text-primary)]",children:t.code}),e.jsx("td",{className:"px-4 py-3 text-[var(--text-primary)]",children:t.name}),o&&e.jsx("td",{className:"px-4 py-3",children:t.tenantName?e.jsxs("button",{onClick:()=>t.tenantId&&ge(t.tenantId),className:"inline-flex items-center gap-1.5 px-2 py-1 text-xs font-medium rounded-full bg-[var(--info-bg)] text-[var(--info-text)] hover:opacity-80 transition-opacity",title:a("references.switchToTenant","Switch to this tenant"),children:[e.jsx(i.Building2,{className:"w-3 h-3"}),t.tenantName]}):e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"-"})}),e.jsx("td",{className:"px-4 py-3 text-[var(--text-secondary)]",children:t.shortName||"-"}),e.jsx("td",{className:"px-4 py-3 text-center",children:e.jsxs("span",{className:"inline-flex items-center gap-1 text-[var(--text-secondary)]",children:[e.jsx(i.Users,{className:"w-4 h-4"}),t.userCount]})}),e.jsxs("td",{className:"px-4 py-3 text-center",children:[$e(t),t.isActive&&!t.isMerged&&e.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs font-medium rounded-full bg-[var(--success-bg)] text-[var(--success-text)]",children:[e.jsx(i.Check,{className:"w-3 h-3"}),a("references.active","Active")]})]}),e.jsx("td",{className:"px-4 py-3",children:e.jsxs("div",{className:"relative",children:[e.jsx("button",{onClick:()=>D(J===t.id?null:t.id),className:"p-2 hover:bg-[var(--bg-secondary)] rounded-[var(--radius-button)] transition-colors",disabled:t.isMerged||o,children:e.jsx(i.MoreHorizontal,{className:"w-4 h-4"})}),J===t.id&&e.jsxs("div",{className:"absolute right-0 top-full mt-1 w-48 bg-[var(--bg-primary)] border border-[var(--border-color)] rounded-[var(--radius-card)] shadow-lg z-10",children:[e.jsxs("button",{onClick:()=>Te(t),className:"flex items-center gap-2 w-full px-4 py-2 text-left text-sm text-[var(--text-primary)] hover:bg-[var(--bg-hover)]",children:[e.jsx(i.Edit2,{className:"w-4 h-4"}),a("common.edit","Edit")]}),e.jsx("button",{onClick:()=>{we(t),D(null)},className:"flex items-center gap-2 w-full px-4 py-2 text-left text-sm text-[var(--text-primary)] hover:bg-[var(--bg-hover)]",children:t.isActive?a("common.deactivate","Deactivate"):a("common.activate","Activate")}),t.userCount===0&&e.jsxs("button",{onClick:()=>{Ne(t.id),D(null)},className:"flex items-center gap-2 w-full px-4 py-2 text-left text-sm text-[var(--error-text)] hover:bg-[var(--error-bg)]",children:[e.jsx(i.Trash2,{className:"w-4 h-4"}),a("common.delete","Delete")]})]})]})})]},t.id))})]}),e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-t border-[var(--border-color)] bg-[var(--bg-secondary)]",children:[e.jsxs("div",{className:"text-sm text-[var(--text-secondary)]",children:[a("references.showing","Showing")," ",(g-1)*M+1," ",a("references.to","to")," ",Math.min(g*M,K)," ",a("references.of","of")," ",K," ",a("references.results","results")]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>U(t=>Math.max(1,t-1)),disabled:g===1,className:"px-3 py-1.5 border border-[var(--border-color)] rounded-[var(--radius-button)] text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:a("common.previous","Previous")}),e.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(5,I)},(t,n)=>{let m;return I<=5||g<=3?m=n+1:g>=I-2?m=I-4+n:m=g-2+n,e.jsx("button",{onClick:()=>U(m),className:`px-3 py-1.5 rounded-[var(--radius-button)] transition-colors ${g===m?"bg-[var(--color-accent-600)] text-white":"border border-[var(--border-color)] text-[var(--text-primary)] hover:bg-[var(--bg-hover)]"}`,children:m},m)})}),e.jsx("button",{onClick:()=>U(t=>Math.min(I,t+1)),disabled:g===I,className:"px-3 py-1.5 border border-[var(--border-color)] rounded-[var(--radius-button)] text-[var(--text-primary)] hover:bg-[var(--bg-hover)] transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:a("common.next","Next")})]})]})]})]}),xe&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-md p-6 m-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-xl font-semibold text-[var(--text-primary)]",children:a("references.createTitle","Create Reference")}),e.jsx("button",{onClick:()=>H(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:[a("references.code","Code")," *"]}),e.jsx("input",{type:"text",value:x.code,onChange:t=>S({...x,code:t.target.value}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:[a("references.name","Name")," *"]}),e.jsx("input",{type:"text",value:x.name,onChange:t=>S({...x,name:t.target.value}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.shortName","Short Name")}),e.jsx("input",{type:"text",value:x.shortName||"",onChange:t=>S({...x,shortName:t.target.value||null}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.description","Description")}),e.jsx("textarea",{value:x.description||"",onChange:t=>S({...x,description:t.target.value||null}),rows:3,className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]})]}),e.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[e.jsx("button",{onClick:()=>H(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.cancel","Cancel")}),e.jsxs("button",{onClick:ye,disabled:E||!x.code||!x.name,className:"flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] bg-[var(--color-accent-600)] text-white hover:bg-[var(--color-accent-700)] transition-colors disabled:opacity-50",children:[E&&e.jsx(i.Loader2,{className:"w-4 h-4 animate-spin"}),a("common.create","Create")]})]})]})}),ue&&R&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-md p-6 m-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-xl font-semibold text-[var(--text-primary)]",children:a("references.editTitle","Edit Reference")}),e.jsx("button",{onClick:()=>L(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.code","Code")}),e.jsx("input",{type:"text",value:x.code,disabled:!0,className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-secondary)] text-[var(--text-tertiary)] cursor-not-allowed"})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:[a("references.name","Name")," *"]}),e.jsx("input",{type:"text",value:x.name,onChange:t=>S({...x,name:t.target.value}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.shortName","Short Name")}),e.jsx("input",{type:"text",value:x.shortName||"",onChange:t=>S({...x,shortName:t.target.value||null}),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.description","Description")}),e.jsx("textarea",{value:x.description||"",onChange:t=>S({...x,description:t.target.value||null}),rows:3,className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]})]}),e.jsxs("div",{className:"flex justify-end gap-3 mt-6",children:[e.jsx("button",{onClick:()=>L(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.cancel","Cancel")}),e.jsxs("button",{onClick:je,disabled:E||!x.name,className:"flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] bg-[var(--color-accent-600)] text-white hover:bg-[var(--color-accent-700)] transition-colors disabled:opacity-50",children:[E&&e.jsx(i.Loader2,{className:"w-4 h-4 animate-spin"}),a("common.save","Save")]})]})]})}),pe&&B&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-lg p-6 m-4",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{className:"text-xl font-semibold text-[var(--text-primary)] flex items-center gap-2",children:[e.jsx(i.GitMerge,{className:"w-5 h-5 text-[var(--info-dot)]"}),a("references.mergeTitle","Merge References")]}),e.jsx("button",{onClick:()=>X(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-4",children:a("references.mergeDescription","Select the target reference. All other selected references will be merged into it and their users will be reassigned.")}),e.jsxs("div",{className:"space-y-2 mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)]",children:a("references.selectTarget","Select target reference")}),B.sources.map(t=>e.jsxs("label",{className:`flex items-center gap-3 p-3 border rounded-[var(--radius-card)] cursor-pointer transition-colors ${P===t.id?"border-[var(--info-dot)] bg-[var(--info-bg)]":"border-[var(--border-color)] hover:border-[var(--color-accent-500)]"}`,children:[e.jsx("input",{type:"radio",name:"mergeTarget",value:t.id,checked:P===t.id,onChange:()=>Z(t.id),className:"text-[var(--info-dot)]"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"font-medium text-[var(--text-primary)]",children:t.name}),e.jsxs("div",{className:"text-sm text-[var(--text-secondary)]",children:[t.code," ",t.shortName&&`(${t.shortName})`]})]}),e.jsxs("span",{className:"text-sm text-[var(--text-secondary)]",children:[t.userCount," ",a("references.users","users")]})]},t.id))]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("label",{className:"block text-sm font-medium text-[var(--text-secondary)] mb-1",children:a("references.mergeReason","Reason (optional)")}),e.jsx("textarea",{value:ee,onChange:t=>te(t.target.value),rows:2,placeholder:a("references.mergeReasonPlaceholder","Why are you merging these references?"),className:"w-full px-4 py-2 border border-[var(--border-color)] rounded-[var(--radius-input)] bg-[var(--bg-primary)] text-[var(--text-primary)] focus:outline-none focus:ring-2 focus:ring-[var(--color-accent-500)]"})]}),e.jsx("div",{className:"p-3 bg-[var(--warning-bg)] border border-[var(--warning-border)] rounded-[var(--radius-card)] mb-4",children:e.jsxs("p",{className:"text-sm text-[var(--warning-text)]",children:[e.jsx("strong",{children:B.totalUsersAffected})," ",a("references.usersWillBeReassigned","users will be reassigned")]})}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{onClick:()=>X(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.cancel","Cancel")}),e.jsxs("button",{onClick:ke,disabled:E||!P,className:"flex items-center gap-2 px-4 py-2 rounded-[var(--radius-button)] bg-[var(--info-dot)] text-white hover:opacity-90 transition-opacity disabled:opacity-50",children:[E&&e.jsx(i.Loader2,{className:"w-4 h-4 animate-spin"}),e.jsx(i.GitMerge,{className:"w-4 h-4"}),a("references.merge","Merge")]})]})]})}),ve&&e.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",children:e.jsxs("div",{className:"card w-full max-w-2xl p-6 m-4 max-h-[80vh] overflow-hidden flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{className:"text-xl font-semibold text-[var(--text-primary)] flex items-center gap-2",children:[e.jsx(i.History,{className:"w-5 h-5"}),a("references.historyTitle","Merge History")]}),e.jsx("button",{onClick:()=>O(!1),className:"text-[var(--text-tertiary)] hover:text-[var(--text-primary)]",children:e.jsx(i.X,{className:"w-5 h-5"})})]}),e.jsx("div",{className:"overflow-y-auto flex-1",children:Y.length===0?e.jsx("div",{className:"text-center py-8 text-[var(--text-secondary)]",children:a("references.noHistory","No merge history found")}):e.jsx("div",{className:"space-y-3",children:Y.map(t=>e.jsxs("div",{className:"p-4 border border-[var(--border-color)] rounded-[var(--radius-card)]",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(i.GitMerge,{className:"w-4 h-4 text-[var(--info-dot)]"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:t.sourceReferenceName}),e.jsx("span",{className:"text-[var(--text-secondary)]",children:"→"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:t.targetReferenceName})]}),e.jsxs("div",{className:"text-sm text-[var(--text-secondary)] space-y-1",children:[e.jsxs("div",{children:[t.affectedUserCount," users reassigned"]}),e.jsxs("div",{children:["By ",t.mergedByUserName]}),e.jsx("div",{children:new Date(t.mergedAt).toLocaleString()}),t.mergeReason&&e.jsxs("div",{className:"italic",children:['"',t.mergeReason,'"']})]})]},t.id))})}),e.jsx("div",{className:"flex justify-end mt-4 pt-4 border-t border-[var(--border-color)]",children:e.jsx("button",{onClick:()=>O(!1),className:"px-4 py-2 rounded-[var(--radius-button)] bg-[var(--bg-secondary)] text-[var(--text-secondary)] hover:bg-[var(--bg-hover)] transition-colors",children:a("common.close","Close")})})]})}),J&&e.jsx("button",{type:"button",className:"fixed inset-0 z-0",onClick:()=>D(null),"aria-label":"Close menu"})]})}exports.ReferencesManagementPage=Re;
|
|
2
|
+
//# sourceMappingURL=ReferencesManagementPage-B-FXS2ln.js.map
|