@zeniai/web-cockpit-ui 1.15.0-dev → 1.15.1-dev

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.
Files changed (278) hide show
  1. package/dist/assets/{ACHDetailsPage-DYlcHRQe-lxtPXqrl.js → ACHDetailsPage-CUzXxtOD-D58ed7uT.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DpXZ7sco-B8d5E6QI.js → AIPerformancePage-O2oT7VD7-B6QMOBUy.js} +13 -13
  3. package/dist/assets/{AccountInfoPage-BEOrrVQS-L5aJOIaA.js → AccountInfoPage-B6jxAqA6-BUFslhTv.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BJkLJK6O-CmMcM25y.js → AccountInfoPageContent-Dm4_RVtp-7_DDYrUM.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BeLLlH_Y-DAQUptbF.js → AccountLockedInfoModal-4gi6evfx-WlzE3tch.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D2Hx_l3u-BYxEEZJn.js → AccountReconDetailsDrawerPage-Cm4KEIyT-DvN83q1j.js} +3 -3
  7. package/dist/assets/{AccountRow-B0gU16A_-Ks_Pft1z.js → AccountRow-B16HgkVQ-dG_dWaCL.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CuLhbb_W-BwlxSNV8.js → AccountsPromoCardStack-D5OgsEYb-3g8gXWBP.js} +1 -1
  9. package/dist/assets/AddAddressForCardDrawer-Cw6wTXEm-Ne9lwqPK.js +6 -0
  10. package/dist/assets/{AddToWalletPage-DNPLnpTq-CxRyEwld.js → AddToWalletPage-vXWBje7k-B9_XOYgG.js} +4 -4
  11. package/dist/assets/{AgingReportsPage-Bff4u7T1-DOBvEqCj.js → AgingReportsPage-CmzapJ6B-B4fRPdaL.js} +3 -3
  12. package/dist/assets/{AllUserItems-D8zdAu_1-C-zZqgmo.js → AllUserItems-CW-BAUK2-B9Q1lPJb.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-2NsAj3gO-DfogwLMb.js → ApAgingDetailPage-DBCM7hZZ-ChVResPi.js} +5 -5
  14. package/dist/assets/{AppBasePage-Uyk9GOud-D7f8hWuo.js → AppBasePage-B3uZsUDM-CkKVhlEN.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-RX7rx40V-DlBxQF_L.js → AppDrawerContent-D4EVpqHP-BynJPN1Q.js} +6 -6
  16. package/dist/assets/{ApprovalRulesSettingsPage-BKxa78xI-BrpnOxmu.js → ApprovalRulesSettingsPage-DTLJUdYp-C8DjXSqL.js} +1 -1
  17. package/dist/assets/{ArAgingChart-BxTkvrC9-BgC5YBPR.js → ArAgingChart-BJ8nRdT6-PCsSRezt.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-CnUgFF1M-Bb_-bJZp.js → ArAgingDetailPage-hd2ALORD-DPaGaG4h.js} +5 -5
  19. package/dist/assets/{AttachmentView-zHGhIkWo-C64qXCAp.js → AttachmentView-2FZ6X1gL-Cy8tYEtq.js} +1 -1
  20. package/dist/assets/{BankAccountSection-HRSyjIxV-CV6PAaFg.js → BankAccountSection-BbX4r1dP-BVn949x0.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CNusQFRM-4Y94-VD5.js → BankAccountWarningSection-CqlrCLSb-4sdBnqih.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CzumYsEx-f1xJXYSm.js → BankConnectionsSettingsPage-DLeiSryp-DwwrFPU_.js} +1 -1
  23. package/dist/assets/{BillDetailPage-CgCMZFw1-pAtGUG0W.js → BillDetailPage-l0WIOXCJ-DfE-sU4P.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DnhdBw3a-BtwlYdoz.js → BillPayApprovalRuleDetailPage-BOMCy57E-CAzd0WOM.js} +4 -4
  25. package/dist/assets/{BillPayApprovalRulesPage-S80WUW0f-Cw75zLq9.js → BillPayApprovalRulesPage-D_iQkfQr-Dlin1Cm9.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DOEbuNgH-BglT_61W.js → BillPayPromoPage-Dsl0YvUE-DF_BWBKa.js} +9 -9
  27. package/dist/assets/{BillPaySetUpPage-Tb-gBoFT-Po5Zl1ZL.js → BillPaySetUpPage-MLf77bPI-BQQY77ue.js} +3 -3
  28. package/dist/assets/{BillingSettingsPage-ZupDcNHz-B6O6l_7B.js → BillingSettingsPage-n1PkJEDe-CIU_V4L-.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CJrUtHKz-B78eSann.js → BillsBulkReviewDrawerPage-C_4lLm2g-CagoY_n4.js} +1 -1
  30. package/dist/assets/{BoxItem-42doFhpg-BDC_fDqi.js → BoxItem-CZdVWyVJ-Ck7WXLSC.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-De9zCAm7-geq4Sk8A.js → BusinessVerificationPage-DKTSnhnQ-CiETQcAD.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-C6jdBRC2-YbNbzp0H.js → CardNumberSubText-BhtdU0IQ-BBiDBBhs.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-B2drd1Nz-BAvHe1xx.js → CashbackDetailPage-BL-JN6N2-DM7Co55u.js} +8 -8
  34. package/dist/assets/{ChargeCardDetailPage-bk-pzoDR-DTGxBulo.js → ChargeCardDetailPage-DeUmuiMY-Dftn0md6.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-DlI8ZfB0-CMLNFzih.js → ChargeCardListPage-B2OEzCZI-DRTpob3Y.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-CooASbVZ-CSvbg9sF.js → ChargeCardListTable-BwYAxG4d-BDrITjcg.js} +1 -1
  37. package/dist/assets/ChargeCardPaymentHistoryPage-COWdn2l7-D7wLS9yc.js +565 -0
  38. package/dist/assets/{ChargeCardPromoPage-DBSmL-ms-DBZo83zK.js → ChargeCardPromoPage-TkHihj_n-DsNKfZLq.js} +10 -10
  39. package/dist/assets/{ChargeCardSetupPage-cou3N3Iv-BSBfzNx6.js → ChargeCardSetupPage-CkonrAnT-D4zZH8iB.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-Z05M_t51-O2I36ZAe.js → ChargeCardStatementsPage-DVgAcNNC-DlapdY_k.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-B-bTb9ct-CleglNSV.js → CheckDepositDrawerPage-DV7strdp-DIjE0Er3.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-DLOi0feI-SZFbl9NV.js → CollapsableReportTable-BS7TgK8B-Ck1A0h-X.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DVpqCb72-DOikAEBj.js → CompanyOfficerDetailsSection-BotE5oj4-BAJaZgbn.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-B8PLT6MG-BUc5HZU7.js → CompanyPassportCard-Bx4KhQfs-Cq5ggOmg.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-CQZPgrNF-KJN_fT4M.js → CompanyPassportPage-i1SEs7VJ-Djluu3GS.js} +1 -1
  46. package/dist/assets/{CompleteProfile-fNSWTbef-pSYliRNx.js → CompleteProfile-DWOv7odD-C_i36-ce.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-B6ej_xoO-BzptsIBR.js → ConfettiBurst-D52CuNQL-H3h7bAw9.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-BO4_TNWg-EUNhPwxD.js → CreateOrEditVendorPage-9LgI-Wd0-BZGgNM2M.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-CsHjU-sm-BX_z_XTl.js → CreditCardPaymentDrawerPage-wHK6Ds5I-BlFWnrY1.js} +1 -1
  50. package/dist/assets/{CurrencySelectField-DsZTOj_T-DmNXNRTP.js → CurrencySelectField-CbGyQ8Yq-BBTidwoM.js} +1 -1
  51. package/dist/assets/{CustomerOnboardingActivationPage-Cvdehiay-Ci2xJTUc.js → CustomerOnboardingActivationPage-LNgj0BYj-DDGYdiCm.js} +1 -1
  52. package/dist/assets/CustomerOnboardingContainerPage-DLdgYP_E-YLcbGvSV.js +1 -0
  53. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DrfNm65u-Bi4SumgH.js → CustomerOnboardingDetailPageSkeleton-BF484X8E-CaE39Z82.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingNoStepsPage-CtIWYEfR-CA6QH1RJ.js → CustomerOnboardingNoStepsPage-Dri4v3Rf-SMHqZamP.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingPage-Db6sGSGl-C--ab3S1.js → CustomerOnboardingPage-BkdhcwN8-D99zerXB.js} +1 -1
  56. package/dist/assets/CustomerOnboardingProductSuitePage-CDJfucTI-BVV4jNqa.js +202 -0
  57. package/dist/assets/{Dashboard-cbXIPzMy-DLCpLMr4.js → Dashboard-w2AGQi2P-DrVf9Yya.js} +55 -55
  58. package/dist/assets/{DashboardReportPage-Pc0G2Tok-BRmpg3ok.js → DashboardReportPage-NzF6nutN-DSZitKtw.js} +1 -1
  59. package/dist/assets/{DashboardSidebarBackgroundAnimation-CSzhyK4K-DW7vdml5.js → DashboardSidebarBackgroundAnimation-vcuSFRHQ-CXXDOfjW.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-XvCjkHDS-DQ2tNEjM.js → DepositAccTransactionItem-SRWW7dWo-Bq8glEON.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-DqPIPHi9-DnAhb4M6.js → DepositAccTransactionListPage-BSq-FxKT-D5HpKscp.js} +1 -1
  62. package/dist/assets/{DomesticWireDetailsPage-DjUvG0tD-BhbPV8HA.js → DomesticWireDetailsPage-Daor0MDI-BzIX5Sll.js} +1 -1
  63. package/dist/assets/{DownloadOverlay-C7r6PAam-BvXPoC9j.js → DownloadOverlay-DkSROLX2-BV0uInlq.js} +1 -1
  64. package/dist/assets/{DrawerPage-BEV7nWrL-CqfdeYhP.js → DrawerPage-BnMCcEWw-BXOkrI5R.js} +9 -9
  65. package/dist/assets/{EditPeoplePage-BnQqStEx-Cbm0H-hi.js → EditPeoplePage-Ld339aav-BKidG2ge.js} +1 -1
  66. package/dist/assets/{EditReimbursementDetailPage-DLjRDR48-DAmxctvz.js → EditReimbursementDetailPage-BaMG1YJG-BZAQQMK3.js} +1 -1
  67. package/dist/assets/EntityDetailPage-DRZiqaCb-B_QVK0o1.js +18 -0
  68. package/dist/assets/{EntitySummarySection-C361-4tS-UJPRLBoI.js → EntitySummarySection-Bs0NywbK-BzG0U_qN.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationOverviewPage-BLvAzAmO-JyE5jYzJ.js → ExpenseAutomationOverviewPage-B_-wUXCx-Q7Nf_H07.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationPage-CE_qMXSG-DlDCSSSs.js → ExpenseAutomationPage-CG1Hpwz8-CW8z-7iO.js} +1 -1
  71. package/dist/assets/{ExpressPayPage-CDowSjHC-DolGHHJS.js → ExpressPayPage-CEf0O3S_-C7xNk40H.js} +7 -7
  72. package/dist/assets/{FeaturePreviewPage-DsJEfObK-B9lh1mEQ.js → FeaturePreviewPage-7G9DSgAA-dIRq9Ned.js} +1 -1
  73. package/dist/assets/{FollowStepsSection-h449vQkQ-BXixJ0VK.js → FollowStepsSection-CoXcJ6WL-BDHFkDzZ.js} +1 -1
  74. package/dist/assets/{GlobalReviewListPage-DGOKRsKI-CAnqX1u0.js → GlobalReviewListPage-BSfJybtY-D-EekdXE.js} +1 -1
  75. package/dist/assets/{InformationCardStack-xhdujEcL-COTShhF9.js → InformationCardStack-DnoAMdjH-BkgD0Khh.js} +2 -2
  76. package/dist/assets/{InsightsCardStack-zRynyTFj-CqnhwImM.js → InsightsCardStack-BLtip0dt-CdpS0MPm.js} +2 -2
  77. package/dist/assets/{InsightsSection-C4fMfxQ4-BGGNiljS.js → InsightsSection-26UEfz7s-DvD8Ccwt.js} +2 -2
  78. package/dist/assets/{IntegrationsSettingsPage-fqQsGUmw-CRKZpnAv.js → IntegrationsSettingsPage-QVOqOc9I-BQQ4M8i8.js} +2 -2
  79. package/dist/assets/{InternationalWireSwiftDetailsPage-CIMxKADX-CYl4ll0M.js → InternationalWireSwiftDetailsPage-B7UVdQjs-Dxjq2-if.js} +1 -1
  80. package/dist/assets/{InternationalWireVerificationPage-DpmSzzre-gDdhOqko.js → InternationalWireVerificationPage-Cvita0lc-B390_mEJ.js} +2 -2
  81. package/dist/assets/{InviteFormPage-C7fxnyMS-ChsV2A2J.js → InviteFormPage-ptg2-Do2-Dsr3cxPP.js} +1 -1
  82. package/dist/assets/{InvitePageListView-ktOXziSw-ClMd1Rgx.js → InvitePageListView-CoCiU_RJ-DlHeTkam.js} +20 -20
  83. package/dist/assets/{InvitePeoplePage-C_4adNch-DPbyAjsn.js → InvitePeoplePage-CIiwEl_L-BEUpkDfI.js} +1 -1
  84. package/dist/assets/{InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js → InvoiceUploadSection-by1gHnS2-ByjzglAY.js} +1 -1
  85. package/dist/assets/{IssueChargeCardPage-CdV757XH-B0b8pyku.js → IssueChargeCardPage-CawHdTL3-Mn0Xu6jy.js} +1 -1
  86. package/dist/assets/{LabeledAddressValue-Ce_wDml5-CoYtFscl.js → LabeledAddressValue-BVpOlAt0-BM8gI0N5.js} +1 -1
  87. package/dist/assets/{LabeledAddressValueField-BrYbXck--8qVwdGMU.js → LabeledAddressValueField-BW6ytr8f-DmYyMrEv.js} +1 -1
  88. package/dist/assets/{LabeledControlledCheckBoxField-f2c-AeS4-DagKbuzo.js → LabeledControlledCheckBoxField-DEaBzW9R-59_aD_t9.js} +1 -1
  89. package/dist/assets/{LabeledCountryMultiSelectField-BLOMdq_H-CLNHA2Sp.js → LabeledCountryMultiSelectField-DOEcKGdZ-O8xmxgl_.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-BWuogpe6-DITM3Hn0.js → LabeledCreatableSingleSelectField-Bsowq6Ia-CpyK3LNE.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-Ch2zD7s7-Nw7bBUJi.js → LabeledDocumentField-DHqxzbx7-DKNafkiA.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BA8tzPzQ-Big6_AMJ.js → LabeledDropDownFormattedTextField-C_2HymZs-DpANtqUG.js} +1 -1
  93. package/dist/assets/{LabeledMultiSelectField-CA9PUCf3-CGx9bMTu.js → LabeledMultiSelectField-wuzYNgjQ-D8K8tQ-i.js} +1 -1
  94. package/dist/assets/{LabeledText-D7eLbH80-Bs-kfAE-.js → LabeledText-DMjMKupg-DYP6gFxm.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CleX9Raw-CCmlbQ1T.js → LabeledUserSingleSelectWithSubtitlesField-D2PQRKp0-CAFuEck_.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-Cte6kRTw-CB2TIDv8.js → LabeledZeniRolesDropDownField-C2WL6H1u-BXDtctub.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-DicS5kKg-DOb356xm.js → LinkJETransactionPage-6wvu7KQx-BKOAennG.js} +1 -1
  98. package/dist/assets/{LockCardPage-DRYg_fxU-CFGUEJ0X.js → LockCardPage-DHjkslVx-BLTQi4Ro.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-BJfagMN7-DFWlKz1e.js → LowBalancePopup-IPPewOnk-C3ft7dAK.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-BQvuNI4u-DgnKjMFk.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-BEr-7K3J-BdD6RXkL.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-DliPDETx-zEl4JPNd.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-BRWymdWH-suMYBps1.js → MagicLinkSuccessPage-0Pn_6wi4-BDYzvhnJ.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-D5ORaO0D-oMV_fYKL.js → MagicLinkTitleSection-zMEqv8xp-Dw1lipYQ.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-BRCMsb6d-Bg6C6Qx3.js +21 -0
  106. package/dist/assets/{Menu-C9v-W9TY-DRVyGpH4.js → Menu-CjpiRi32-CBwxThCE.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-C4YJleyg-DKQ0iSMd.js → MyBankConnectionsSettingsPage-DsuI81Dg-BZvQVl9M.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-D-6TnbYs-g9LqO-rS.js → MyPendingActivationChargeCardListPage-BP2ZNfJQ-C1IGZ0Aj.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BMNBcdq8-CzuZjUxB.js → MyProfileSettingsPage-Bx776Bw1-B3dkfEvc.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-Cv7tOmjd-BXBZWsng.js → NavBarWithPicker-B7KOipTP-BRApBTO0.js} +1 -1
  111. package/dist/assets/{NavigationArrow-DAs7ECFZ-rFu_aZmo.js → NavigationArrow-qaYGOFR3-BsTNc95E.js} +1 -1
  112. package/dist/assets/{NavigationDots-DISWi4Mq-BdTnuTup.js → NavigationDots-U7wL0ya4-Br1fZ1mY.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-DGFtrDg1-BDtdrE9G.js → NewGlobalMerchantPage-BMLg6RYp-BRiqVwVI.js} +1 -1
  114. package/dist/assets/{NoDataChart-gfqauMvY-CAbYCdyQ.js → NoDataChart-DoN6Mneo-tV8Dt3om.js} +1 -1
  115. package/dist/assets/{NoDataTable-C1_gqVi7-D4ANXF0d.js → NoDataTable-BMDDs83M-Dpk0AfuR.js} +1 -1
  116. package/dist/assets/{NotFoundPage-CdWhiWjz-DDjAX_Ng.js → NotFoundPage-ys6HcZUO-byf07x0N.js} +8 -8
  117. package/dist/assets/{NotificationSettingsPage-C4SZ6Qwg-DbitLXBD.js → NotificationSettingsPage-Cfrj3b7B-DQREI7pG.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-B-g9kb6x-CND-RON9.js → NotificationsListConfig-Cqcn0C6L-mVPCNJk6.js} +1 -1
  119. package/dist/assets/{NotificationsPage-jxpX3iRG-UGS5Y_9i.js → NotificationsPage-Bri7Dj80-Cv5FRQtl.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-B13tAq03-Dd8cq0hz.js → OpExByVendorPage-Dwk6JAu7-BDuhx0f7.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DlMlal7_.js → OverlayContainerPage-Daz3A7cI-CNivODsb.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-D3kcPKd0-sYhFB1EB.js → PandLWithForecastPage-D9muoIzS-BHKR537x.js} +2 -2
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DjdhL9mT-4CseF2mz.js → PaymentAccountSetupBillingAddressSection-BcQ07YZL-sTtrymnZ.js} +1 -1
  124. package/dist/assets/{PeoplePage-Du_TRX4h-C2Rmmn5d.js → PeoplePage-BZwxMiLM-5s0-HkTL.js} +13 -13
  125. package/dist/assets/{Preview-CSeZ_uBx.js → Preview-mA1nVDX3.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-y6q9BbqK-B9m9tH0o.js → ProductsCarousel-HFHMMFnQ-DrHOVGTY.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-CLQMN7aT-BxeQG0rP.js → PromoBaseCards-Bwm7huaB-m2dOzdVj.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js → QBOConnectionDialog-B5v60lo1-GNrkjfxe.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-D--nxfIh-Difre144.js → QBOSetupSection-BFxjIzV1-B2t1VavS.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRuleDetailPage-OXenWhiy-Cj4gr0h0.js → ReimbursementApprovalRuleDetailPage-D7eJT6hf-BQOWuUEe.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRulesPage-BJaSXRQF-DF9kihjD.js → ReimbursementApprovalRulesPage-B6WJ19jK-CKNTvHH7.js} +1 -1
  132. package/dist/assets/{ReimbursementDetailPage-BeFEzgmP-DZ-1wgaR.js → ReimbursementDetailPage-CEyFEPK5-BstF-oGE.js} +1 -1
  133. package/dist/assets/{ReimbursementPromoPage-C0sHIJm4-YN1RP5MA.js → ReimbursementPromoPage-BjhlxlPR-BZ1GzMRv.js} +4 -4
  134. package/dist/assets/{ReimbursementSetUpPage-C85Q6ZnB-DbK7lPyD.js → ReimbursementSetUpPage-pC4KuigM-BDlDJUML.js} +4 -4
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B5RzRA4c-PwRYjy1t.js → ReimbursementsBulkReviewDrawerPage-CucXnBt6-CAc1E2XO.js} +1 -1
  136. package/dist/assets/{ReloadCard-BT0lSFUP-CF34SUO7.js → ReloadCard-DhRbLcVA-DIQafdWZ.js} +1 -1
  137. package/dist/assets/{ReportTableViewSelector-rl6XGWA_-CSxPHelL.js → ReportTableViewSelector-ByxUIrcT-BjUKZAAK.js} +1 -1
  138. package/dist/assets/{ReportsPage-DV0bbi_D-1o0LJL4r.js → ReportsPage-e1xmk9Ua-DWkV6LH_.js} +5 -5
  139. package/dist/assets/{RevenueChart-CxvHfkxr-BmSB0A7U.js → RevenueChart-C7uaOhqz-CyB_o3bQ.js} +1 -1
  140. package/dist/assets/{ReviewDetailsPage-CX2XB44j-BHiKofo4.js → ReviewDetailsPage-Dk0Rw7L_-B6ijKV2H.js} +1 -1
  141. package/dist/assets/{ReviewOverlay-DdOo3pcK-BVp3d9bK.js → ReviewOverlay-Bthl69qw-RmWq0Cob.js} +1 -1
  142. package/dist/assets/{RoleWithToolTip-C08wfnGb-CFjb8VCB.js → RoleWithToolTip-New3P2vC-2KCZppVG.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BmZgiTVc-C4es4cDL.js → ScheduleDetailsFixedAssetsPage-DiwkB2J--BPJp47yZ.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-BqX1EZGE-B4pi2I25.js → ScheduleDetailsPage-BLc828ST-CP2yCdiU.js} +1 -1
  145. package/dist/assets/{ScheduleSequenceTable-DU3dXX6V-BMdU_3TL.js → ScheduleSequenceTable-CEQZEbUs-BdHNsPry.js} +1 -1
  146. package/dist/assets/{ScreenRoutes-BOb1-zin.js → ScreenRoutes-D_sWKkhc.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-Clz60vjw-CDcwloM0.js → SetUpAccountSection-CywFKgZo-MmKR4ndQ.js} +1 -1
  148. package/dist/assets/{SignIn-B79R5ayU-BtVW5pl0.js → SignIn-D7PmDE-R-DymRL_3M.js} +12 -12
  149. package/dist/assets/{SignInScreen-CsaRmLqD.js → SignInScreen-C-VG_lKe.js} +1 -1
  150. package/dist/assets/{SpendManagementListViewPage-C3gJ8vag-CRVtgLhw.js → SpendManagementListViewPage-DJgNAGhp-JXA21DLB.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-DmCZhFWY-Dsjzi1bn.js → SpendManagementPerTabPage-B_muN4XH-u8KoBsHd.js} +1 -1
  152. package/dist/assets/{SpendManagementSection-mtTZeiX8-DB_R_dFU.js → SpendManagementSection-BO--0F_T-COrpCsmV.js} +1 -1
  153. package/dist/assets/StatementItem-_50yBwO1-CwjTPUgJ.js +31 -0
  154. package/dist/assets/{StatementsPage-DgoXqABR-NsGiWIFr.js → StatementsPage-DkcgOLaa-BdVtg5cn.js} +1 -1
  155. package/dist/assets/{StatusSwitcher-DRDFuzoj-DFWyQSIu.js → StatusSwitcher-Bcqhq2ht-tjRFz3FC.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-Bj1N3zLn-DocBm2NX.js → SubTabSwitcher-BNSMaUoP-C0dI-kdw.js} +1 -1
  157. package/dist/assets/{SummaryCard-BNrPt21W-z-I2nOL_.js → SummaryCard-DUTikTiQ-CorF8AqM.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-svW7FNT3-CdR83JXD.js → TaskManagementPage-K2ahivqx-Cw8lnZhf.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-wio5OjI3-BFQK4ykL.js → TimeRangeSwitcher-CaV1qK_v-9kKZ6AfJ.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-234cbGUX-GrV_gRdd.js → TimeframeSwitcher-COkEJy3J-45wKe_Sn.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-B65LibQx-O8FBApDz.js → TimeframeSwitcherWithToggle-CPP1tWQ_-D4EHb91u.js} +2 -2
  162. package/dist/assets/{TopExCard-DFm0V6Sa-CuS6D-g2.js → TopExCard-CLkfO6zN-v91Jdaeu.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-B4UamIS--DvTevd6J.js → TopExDetailPage-CUoODDhA-zH5Xy9H2.js} +4 -4
  164. package/dist/assets/{TransactionDetailPage-BiGPVM2O-BIqR8D1A.js → TransactionDetailPage-BTonMpH2-DgSPoDVR.js} +1 -1
  165. package/dist/assets/{TransactionList-BQ2dvALf-DExPb7_Y.js → TransactionList-B8eL6jhA-Di9L9RKc.js} +1 -1
  166. package/dist/assets/{TransactionListBig-Ca4yYTqY-DpBtFr0L.js → TransactionListBig-BI0Egbwq-BwzSPZzZ.js} +1 -1
  167. package/dist/assets/{TransactionListPage-CaSfmS5A-B8TNgEwP.js → TransactionListPage-DxGLszcx-DAoYnm1i.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-CH7qHDUF-CdstXkoA.js → TransactionVendorDetailPage-BnqP7rIa-BU85_A7u.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-5IgzdfVN-CuTPVgyu.js → TransferDrawerPage-BvKebmux-o6Yl4bGU.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-CyMGJE8x-BqzDON9-.js → TreasuryOverviewPage-DqlUffnH-Bn5k5ejI.js} +27 -27
  171. package/dist/assets/{TreasuryPromoPage-DQabp_BI-lYWtZagK.js → TreasuryPromoPage-DqZE9SWj-Bp0vqbWD.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-DyJbkTPX-DQbO4X2A.js → TreasuryStatementsPage-Cyj4xmLP-DxZc3Yqs.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-BSIqzP7E-BachcLIH.js → TreasuryTaxLetterPage-04gxKt0a-DDLLJmzC.js} +2 -2
  174. package/dist/assets/{TrendChart-DLlQzxzM-PPRPEN_l.js → TrendChart-Cb8wnBqS-Di_U3EIl.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-CjGbUTLS-CZ3CCR3q.js → TrendWithTransactions-_49jEzFf-D4MyPHxb.js} +3 -3
  176. package/dist/assets/{UncategorizedAccountsMappingPage-CgJuXRnT-4h1DDmrY.js → UncategorizedAccountsMappingPage-WTwSitI6-BqjGQcpf.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-Dew9WP2L-B7QG_5u7.js → UnitIntegrationPage-C3HFSJ9I-BVEgdEbm.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-CoO-S_pc-DdAruGua.js → UploadAdditionalDocumentOverlay-UdsrwN9K-D09XF6PT.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-2JZx7Ouz-DmIxVSxV.js → Vendor2FAPopup-BS-3oZPR-C_3L-M1N.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-DBr7crZ5-FdMIuie9.js +1 -0
  181. package/dist/assets/{VendorDetailPage-DcpigP-V-CLpuuI3V.js → VendorDetailPage-CJQeB1km-B4OkDlMh.js} +5 -5
  182. package/dist/assets/VendorDomesticWireDetailsPage-BRIKuuUP-j1Nnt0f3.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-BK_AfMvG-BcMvx9ZT.js → VendorFiling1099EditablePage-C2zwrfg_-BSkCYiG1.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-BnGpb03v-CQ1grmaD.js → VendorFirstReviewPage-BeDtBSt0-DLLC2Nix.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-Bs_MIbDV-D_-xScY6.js → VendorInternationalWireDetailsPage-BVI-FIhY-DxEIS0E-.js} +1 -1
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-D4H4XkkY-B3GBnsRt.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-V7IwNhkN-D-eiPu30.js → VendorsAccountsSection-DlO_YtSs-DR5OkKrn.js} +1 -1
  188. package/dist/assets/{VerifyDevice-Dc3oeJbw-D5d8Wn7A.js → VerifyDevice-CVr0FwHa-DAB6OPBb.js} +1 -1
  189. package/dist/assets/{VideoPlayer-XU1YwohK-BaDXYiVP.js → VideoPlayer-HL-oU9Ri-BnQLsV6M.js} +2 -2
  190. package/dist/assets/{VideoPopup-BKLcIVcV-C8tsI7gn.js → VideoPopup-Dw57i43Q-BXsiVF5S.js} +5 -5
  191. package/dist/assets/{WarningsDrawerPage-DE6hNSem-DTjl6BDC.js → WarningsDrawerPage-DOFirhc3-Ch_HhDH0.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-B3txxml4-BrnXOri_.js → ZeniAccountDetailPage-ByCgz534-Dsg1GtqQ.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-D8AbqSI--lXEmxuQ-.js → ZeniAccountListViewPage-yATacDeU-5emCk5r8.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-CNM-e6b3-CrP6I6p5.js → ZeniAccountNavBarPieces-Yb3HCUq4-CdqCHII0.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-CcZOtFpv-D5dUYpiY.js → ZeniAccountPromoPage-4iBPGLEt-CS6doMp4.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-COA09GMm-BsBo4Yw_.js → ZeniAccountSetupPage-bdXuLfgB-Cy2PUDIb.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-DqbjGQWk-D3uyyuTN.js → ZeniCopyright-C_Hgn3Qx-CHqYLJwq.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-NJ7GeTlf-DqVr8V-Q.js → ZeniTransferAmountSlider-DBhodWDh-BViJCc8g.js} +1 -1
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-CF63trjm.js → add-to-wallet-DgdBD8_G-B2xhCimT.js} +1 -1
  200. package/dist/assets/{analytics-D0z7Cz17.js → analytics-CO_4s2X8.js} +1 -1
  201. package/dist/assets/{analyticsHelper-D1UvETVa.js → analyticsHelper-C-V4F33Q.js} +1 -1
  202. package/dist/assets/{analyticsHelper-C2PAija--B2XRbUD9.js → analyticsHelper-DTl4FgRU-DCg1Wj_c.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-Cun1Cxd1.js → arrow-south-east-round-PEovUgvH-BLOUsrLT.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-DPk-N0wE.js → auto-transfer-rule-mbafm5D3-DXWlGTms.js} +1 -1
  205. package/dist/assets/{chartTypes-B9jQTJLQ-B-uICCus.js → chartTypes-wLUiIPlP-CGvYnBXb.js} +1 -1
  206. package/dist/assets/{commonDimensions-BgvFMAEM-jw0M4GDE.js → commonDimensions-DGz_YafU-DaJiwvC8.js} +1 -1
  207. package/dist/assets/{commonTypes-PtDfk70--ByVvU-Tm.js → commonTypes-Gv0Fff59-KWmxkMG2.js} +1 -1
  208. package/dist/assets/{constants-DleDZ7Hr.js → constants-B80Lbuf7.js} +1 -1
  209. package/dist/assets/{core-9PMMelIA.js → core-D7_k1EhP.js} +1 -1
  210. package/dist/assets/{dash.all.min-ClWxXI22.js → dash.all.min-D84aFlTu.js} +1 -1
  211. package/dist/assets/{detailCommon-BjRXEZFj-BMuJy_GS.js → detailCommon-C-kv1ST5-00YEtv_m.js} +6 -6
  212. package/dist/assets/{downloadPdf-ZSABdzxr-CSS_LmUU.js → downloadPdf-a0dx3Bka-DXudTOPx.js} +1 -1
  213. package/dist/assets/{empty-Bp9uyDV_.js → empty-BK-FM9Fc.js} +1 -1
  214. package/dist/assets/{empty-D5Zf29Ub.js → empty-D7ZL3ibO.js} +1 -1
  215. package/dist/assets/{epic-Di7g1fbQ.js → epic-BKSpf58y.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ-m0hJlqL5.js → gift-box-Cmt9OgIZ-BvDbzpBs.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-cg6FAACa.js → graphic-no-data-l-DU4J8fDt-DnBDJsPD.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-qDT1cGx5.js → graphic-no-data-net-burn-l-CzmycA0m-D8mbIWvo.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-DFhtOw8z.js → handshake-BPg58FML-B-s0K2Gk.js} +1 -1
  220. package/dist/assets/{index-DNxMom6d.js → index-AC1SIzUs.js} +1 -1
  221. package/dist/assets/{index-DW6fMwk4.js → index-BCqMlt2D.js} +1 -1
  222. package/dist/assets/{index-4hZvJwkO.js → index-CIdXBggf.js} +1 -1
  223. package/dist/assets/{index-0WIxY_w_.js → index-CN_MjJna.js} +1 -1
  224. package/dist/assets/{index-CbXRL6aP.js → index-CocAByQY.js} +1 -1
  225. package/dist/assets/{index-Bs2B-MQ4.js → index-qaSB49F0.js} +9 -9
  226. package/dist/assets/{index-BLOmj_st.js → index-yGtk6ceJ.js} +1 -1
  227. package/dist/assets/{lexical-CaQwXIc3.js → lexical-CGMN4tXG.js} +1 -1
  228. package/dist/assets/{liveblocks-48Yy2aTy.js → liveblocks-BmXYR5uO.js} +1 -1
  229. package/dist/assets/{lottie-ChwWMuYN.js → lottie--pGIoexZ.js} +1 -1
  230. package/dist/assets/mapLoadingInProgressToTreeNode-Dn79CwqB-DWPPY5_g.js +1 -0
  231. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCsXPZ77-B7l0JH-0.js → mapSectionWithAcOnlyToTreeNode-DXbOFz3E-BdYTpUAO.js} +1 -1
  232. package/dist/assets/mapSpacerToTreeNode-D7hBnjRr-B3iPFPg7.js +1 -0
  233. package/dist/assets/{mapTimeframeBalancesToTreeNode-q_WorOhv-vY1YncA0.js → mapTimeframeBalancesToTreeNode-CQWxQdJu-UtXiI9zI.js} +1 -1
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-ph17cvaS-DS1-lnZY.js +1 -0
  235. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DFZvknEc-BH5TYlER.js → mapTimeframeHeaderLoadingInProgressToTreeNode-FwPcTyoF-D6D_67kw.js} +1 -1
  236. package/dist/assets/{mui-snKYaegN.js → mui-Fyk6sRCR.js} +1 -1
  237. package/dist/assets/{page-detail-CWX5S47F-D1nl1r9M.js → page-detail-CWX5S47F-CTsT95lG.js} +1 -1
  238. package/dist/assets/{radio-default-CiSgisfh-BY9nqKUM.js → radio-default-CiSgisfh-DyFeMuig.js} +1 -1
  239. package/dist/assets/{react-B2deW7HO.js → react-89jLopxj.js} +1 -1
  240. package/dist/assets/{react-CiQEdtzT.js → react-8lAMKDVs.js} +1 -1
  241. package/dist/assets/{react-C-MrqhIX.js → react-CZ_9akaZ.js} +1 -1
  242. package/dist/assets/{react-o70ZlKb0.js → react-CazNrypD.js} +1 -1
  243. package/dist/assets/{react-BpEW9tPq.js → react-Cw0TtY4U.js} +1 -1
  244. package/dist/assets/{react-BNn_K56n.js → react-DywPl4iN.js} +1 -1
  245. package/dist/assets/{react-DHTHtXgj.js → react-E7ETqwTX.js} +1 -1
  246. package/dist/assets/{react-BddMC_36.js → react-OOqLEgIT.js} +2 -2
  247. package/dist/assets/{recharts-DGmpNqLb.js → recharts-j_eh1fXg.js} +1 -1
  248. package/dist/assets/{sentry-gm2R3TtK.js → sentry-D4D7HRQR.js} +1 -1
  249. package/dist/assets/{shield-DOlUxcFf-DNx-Nq5U.js → shield-DOlUxcFf-D9ihfdgR.js} +1 -1
  250. package/dist/assets/toCOABalancesWithID-CdKQhpIb-CFgx5sWA.js +1 -0
  251. package/dist/assets/{toChartData-CVxc3i6E-Jb1kbIeZ.js → toChartData-BlyUYoV7-DsdeBaUU.js} +1 -1
  252. package/dist/assets/{uploadAttachment-CBATb9_e-Bf8RMkbX.js → uploadAttachment-BkEbu6k9-DdujAAv5.js} +1 -1
  253. package/dist/assets/{uploadReceipts-CPw64UYa-DwtdWb2a.js → uploadReceipts-CPw64UYa-C1oywu4M.js} +1 -1
  254. package/dist/assets/{url-B3spPAaB.js → url-BwHZRaSJ.js} +1 -1
  255. package/dist/assets/{url-CsktLD4A.js → url-DStI5MA9.js} +1 -1
  256. package/dist/assets/{useLongPress-GCK2COYQ-5GfLl0ml.js → useLongPress-GCK2COYQ-BS3t10_q.js} +1 -1
  257. package/dist/assets/{usp-line-BBd1wKwW-DO5-Shw0.js → usp-line-BBd1wKwW-DELeCmm4.js} +1 -1
  258. package/dist/assets/{utils-C7Aiy3iw.js → utils-BTQ24URD.js} +1 -1
  259. package/dist/assets/{zeni-epic-state-D2RxwWrl.js → zeni-epic-state-I555vKHy.js} +3 -3
  260. package/dist/index.html +1 -1
  261. package/package.json +4 -4
  262. package/dist/assets/AddAddressForCardDrawer-CNkdq378-DvUXwFrO.js +0 -6
  263. package/dist/assets/ChargeCardPaymentHistoryPage-DnxJwv-T-SsEma55z.js +0 -553
  264. package/dist/assets/CustomerOnboardingContainerPage-ZVvSCumS-nk4WVXpw.js +0 -1
  265. package/dist/assets/CustomerOnboardingProductSuitePage-DHSPLF5F-BeorfiRM.js +0 -202
  266. package/dist/assets/EntityDetailPage-BaKoO9FG-BDiZrnyD.js +0 -18
  267. package/dist/assets/MagicLinkACHDetailsPage-BeUu65LP-h79CD54_.js +0 -1
  268. package/dist/assets/MagicLinkDomesticWireDetailsPage-CO7IswK8-3R9uoHM3.js +0 -1
  269. package/dist/assets/MagicLinkInternationalWireDetailsPage-bKdrX7dk-BH9XfZTx.js +0 -1
  270. package/dist/assets/MailingDetailsSection-B_0EH3Eh-Dx6cptzU.js +0 -21
  271. package/dist/assets/StatementItem-C9KsTdoM-CvW9SwJx.js +0 -31
  272. package/dist/assets/VendorACHDetailsPage-DVqS0EVe-BvHJQnhv.js +0 -1
  273. package/dist/assets/VendorDomesticWireDetailsPage-BrvN0BZx-Cb_0-TC6.js +0 -1
  274. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CJMBOb8y-CNYkR-9e.js +0 -1
  275. package/dist/assets/mapLoadingInProgressToTreeNode-ilouYnTd-DoZ0huih.js +0 -1
  276. package/dist/assets/mapSpacerToTreeNode-CEKoJAIb-Ca0optUS.js +0 -1
  277. package/dist/assets/mapTimeframeBalancesToTreeNode-Cki-np8X-STcH44eC.js +0 -1
  278. package/dist/assets/toCOABalancesWithID-CcsM8Vr1-Ca_vxtPe.js +0 -1
@@ -1,4 +1,4 @@
1
- import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck as _e,k as U,aR as Y,cl as we,n as Le,b as be,cm as Ae,aO as Ve,cn as Me,ap as We,co as He,cp as Be,b2 as Ue,aB as H,cq as Ee,y as $,cr as Fe,cs as je,c as b,ct as ee,cc as N,a9 as Ke,ac as Ze,cu as qe,cv as Xe,aH as Ge,ai as D,cw as Qe,al as O,am as te,p as A,cx as Je,cg as Se,b9 as ie,cy as ke,bK as Ye,cz as et}from"./index-Bs2B-MQ4.js";import{S as ce,a as v}from"./sentry-gm2R3TtK.js";import{n as i}from"./mui-snKYaegN.js";import{oV as Ie,bg as Q}from"./zeni-epic-state-D2RxwWrl.js";import{P as Ce}from"./Menu-C9v-W9TY-DRVyGpH4.js";import{T as Re}from"./RoleWithToolTip-C08wfnGb-CFjb8VCB.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="43070b5a-8fce-464a-8690-bccf0241513f",e._sentryDebugIdIdentifier="sentry-dbid-43070b5a-8fce-464a-8690-bccf0241513f")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],B=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
1
+ import{d as be,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck as _e,k as U,aR as Y,cl as we,n as Le,b as $e,cm as Ae,aO as Ve,cn as Me,ap as We,co as He,cp as Be,b2 as Ue,aB as H,cq as Ee,y as b,cr as Fe,cs as je,c as $,ct as ee,cc as N,a9 as Ke,ac as Ze,cu as qe,cv as Xe,aH as Ge,ai as D,cw as Qe,al as O,am as te,p as A,cx as Je,cg as Se,b9 as ie,cy as ke,bK as Ye,cz as et}from"./index-qaSB49F0.js";import{S as ce,a as v}from"./sentry-D4D7HRQR.js";import{n as i}from"./mui-Fyk6sRCR.js";import{oV as Ie,bg as Q}from"./zeni-epic-state-I555vKHy.js";import{P as Ce}from"./Menu-CjpiRi32-CBwxThCE.js";import{T as Re}from"./RoleWithToolTip-New3P2vC-2KCZppVG.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="98b3ea0b-b99d-4e9b-9f8a-48a86c525caa",e._sentryDebugIdIdentifier="sentry-dbid-98b3ea0b-b99d-4e9b-9f8a-48a86c525caa")}catch{}})();const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new b(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new b(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new b(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new b(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new b(10,17,17,11,9)}],B=[{key:"name",value:P.name,sortOrder:"ascending",width:new b(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new b(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new b(10,17,17,11,9)}],tt=58;function it({userNameSticky:e,sortConfig:o,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Ge(d==="off"?S:B));v.useEffect(()=>{const n=[...p];for(const r of n)r.key===o.sortKey?r.sortOrder=o.sortOrder:r.sortOrder="ascending";x(n)},[o.sortKey,o.sortOrder]);const h=(n,r)=>{let u=r;o.sortKey===n&&(u=r==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(rt,{height:tt,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(lt,{userNameSticky:!!e&&n.key==="name",sortDataValue:o.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(dt,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(ot,{sortDataValue:o.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(at,{isVisible:o.sortKey===n.key&&n.key!=="name",children:t.jsx(nt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const st=ce.memo(it),ot=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -81,7 +81,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
81
81
  justify-content: flex-start;
82
82
  .single-select-field__single-value {
83
83
  color: ${e=>e.theme.colors.hero};
84
- ${be.smallRegular.css};
84
+ ${$e.smallRegular.css};
85
85
  }
86
86
  }
87
87
 
@@ -103,7 +103,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
103
103
  }
104
104
  `,wt=i(D)`
105
105
  color: ${e=>e.theme.colors.hero};
106
- `,{peoplePage:T}=y.getLocalizedStrings(),vt=({peopleData:e,userNameSticky:o,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),r=I(),u=ft(e,d,l),w=e.userRole.userRoles.filter(g=>!Ie(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(yt,{windowSize:r,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx($t,{wrapperWidth:S[0].width,windowSize:r,userNameSticky:o,children:t.jsxs(jt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(St,{children:[e.user?.firstName?t.jsxs(kt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(Ct,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(It,{wrapperWidth:S[1].width,windowSize:r,children:t.jsx(Re,{roles:w})}),t.jsxs(t.Fragment,{children:[Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.manager?t.jsx(ve,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:u.manager})}):t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.noManager})})}),Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.department?t.jsx(ve,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:u.department})}):t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.emptyDepartmentPlaceholderText})})})]}),t.jsxs(Rt,{"data-testid":a("last-seen-container",e.userId),wrapperWidth:S[4].width,windowSize:r,children:[e.userRole.invitationStatus==="accepted"?t.jsx(bt,{children:u.lastSeen}):t.jsx(Tt,{children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Pt,{"data-testid":a("resend-invite-text",e.userId),onClick:g=>{g.stopPropagation(),m?.(e.userId)},children:T.resendInvite.label}),t.jsx(Nt,{children:t.jsx(Dt,{children:`${T.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(zt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(Ot,{"data-testid":a("menu-items-container",e.userId),children:[t.jsx(fe,{"data-testid":a("edit-people-list-row"),onClick:()=>{n(!1),j()},children:T.invitePage.editTitle}),t.jsx(fe,{"data-testid":a("delete-people-list-row",e.userId),isDelete:!0,onClick:g=>{g.stopPropagation(),n(!1),f()},children:T.deleteOverlay.title})]}),setIsMenuOpen:n,isMenuOpen:h})})]})]})};function ft(e,o,l){const d=l.find(p=>e.userRole.accountingClassIDs[0]===p.classId),m=o.find(p=>p.userId===e.userRole.managerUserId);return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Je},manager:m?.user?`${m?.user?.firstName} ${m?.user?.lastName}`:void 0,department:d?d?.className:void 0,lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const yt=i.div`
106
+ `,{peoplePage:T}=y.getLocalizedStrings(),vt=({peopleData:e,userNameSticky:o,allClasses:l,allManagers:d,onResendInvite:m,onDeleteUser:p,onRowClick:x})=>{const[h,n]=v.useState(!1),r=I(),u=ft(e,d,l),w=e.userRole.userRoles.filter(g=>!Ie(g)),f=()=>{p?.(e)},j=()=>{x?.(e.userId)};return t.jsxs(yt,{windowSize:r,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:j,"data-testid":a("people-list-row",e.userId),children:[t.jsx(bt,{wrapperWidth:S[0].width,windowSize:r,userNameSticky:o,children:t.jsxs(jt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(St,{children:[e.user?.firstName?t.jsxs(kt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(Ct,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(It,{wrapperWidth:S[1].width,windowSize:r,children:t.jsx(Re,{roles:w})}),t.jsxs(t.Fragment,{children:[Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.manager?t.jsx(ve,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:u.manager})}):t.jsx(Z,{wrapperWidth:S[2].width,windowSize:r,children:t.jsx(L,{children:T.noManager})})}),Q(e.userRole.userRoles)?t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.notApplicable})}):t.jsx(t.Fragment,{children:u.department?t.jsx(ve,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:u.department})}):t.jsx(Z,{wrapperWidth:S[3].width,windowSize:r,children:t.jsx(L,{children:T.emptyDepartmentPlaceholderText})})})]}),t.jsxs(Rt,{"data-testid":a("last-seen-container",e.userId),wrapperWidth:S[4].width,windowSize:r,children:[e.userRole.invitationStatus==="accepted"?t.jsx($t,{children:u.lastSeen}):t.jsx(Tt,{children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Pt,{"data-testid":a("resend-invite-text",e.userId),onClick:g=>{g.stopPropagation(),m?.(e.userId)},children:T.resendInvite.label}),t.jsx(Nt,{children:t.jsx(Dt,{children:`${T.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(zt,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(Ot,{"data-testid":a("menu-items-container",e.userId),children:[t.jsx(fe,{"data-testid":a("edit-people-list-row"),onClick:()=>{n(!1),j()},children:T.invitePage.editTitle}),t.jsx(fe,{"data-testid":a("delete-people-list-row",e.userId),isDelete:!0,onClick:g=>{g.stopPropagation(),n(!1),f()},children:T.deleteOverlay.title})]}),setIsMenuOpen:n,isMenuOpen:h})})]})]})};function ft(e,o,l){const d=l.find(p=>e.userRole.accountingClassIDs[0]===p.classId),m=o.find(p=>p.userId===e.userRole.managerUserId);return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:Je},manager:m?.user?`${m?.user?.firstName} ${m?.user?.lastName}`:void 0,department:d?d?.className:void 0,lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const yt=i.div`
107
107
  border: 1px solid ${e=>e.theme.colors.grey3};
108
108
  border-radius: ${s.sp2};
109
109
  display: flex;
@@ -157,7 +157,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
157
157
  }
158
158
  background-color: ${e=>e.theme.colors.grey5};
159
159
  cursor: pointer;
160
- `,$t=i(Se)`
160
+ `,bt=i(Se)`
161
161
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
162
162
  max-width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
163
163
  height: 100%;
@@ -177,7 +177,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
177
177
  -webkit-box-orient: vertical;
178
178
  text-overflow: ellipsis;
179
179
  overflow: hidden;
180
- `,bt=i(O)`
180
+ `,$t=i(O)`
181
181
  overflow: hidden;
182
182
  display: -webkit-box;
183
183
  -webkit-line-clamp: 1;
@@ -272,7 +272,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
272
272
  :hover {
273
273
  color: ${e=>e.theme.colors.primary};
274
274
  }
275
- `,_t={width:new $(343,580,726)},{peoplePage:k}=y.getLocalizedStrings(),Lt=({peopleData:e,allClasses:o,allManagers:l,onRowClick:d,onResendInvite:m})=>{const p=I(),x=e.userRole.userRoles.filter(r=>!Ie(r)),h=si(l,e.userRole.managerUserId),n=oi(o,e.userRole.accountingClassIDs);return t.jsxs(At,{windowSize:p,isInviteAccepted:e.userRole.invitationStatus==="accepted","data-testid":a("people-list-row-small",e.userId),onClick:()=>{d?.(e.userId)},children:[t.jsxs(Vt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Wt,{children:t.jsxs(Ht,{children:[t.jsxs(Bt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ut,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Et,{className:"lastSeen",children:[t.jsx(Ft,{className:"lastSeenDateTxt",children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Kt,{children:k.header.lastSeen})]}):t.jsx(Zt,{"data-testid":a("resend-invite-wrapper",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(qt,{"data-testid":a("resend-invite-text",e.userId),onClick:r=>{r.stopPropagation(),m?.(e.userId)},children:k.resendInvite.label}),t.jsx(Xt,{children:t.jsx(Gt,{children:`${k.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Mt,{children:t.jsxs(se,{className:"personDetails",children:[t.jsxs(pe,{children:[t.jsxs(he,{children:[k.header.role,":"]}),t.jsx(oe,{children:t.jsx(Re,{roles:x})})]}),t.jsxs(Qt,{children:[t.jsxs(Yt,{children:[k.header.manager,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:h?t.jsx(ti,{children:h}):t.jsx(q,{children:k.noManager})})]}),t.jsxs(Jt,{children:[t.jsxs(ei,{children:[k.header.department,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:n?t.jsx(ii,{children:n}):t.jsx(q,{children:k.emptyDepartmentPlaceholderText})})]})]})})]})},At=i.div`
275
+ `,_t={width:new b(343,580,726)},{peoplePage:k}=y.getLocalizedStrings(),Lt=({peopleData:e,allClasses:o,allManagers:l,onRowClick:d,onResendInvite:m})=>{const p=I(),x=e.userRole.userRoles.filter(r=>!Ie(r)),h=si(l,e.userRole.managerUserId),n=oi(o,e.userRole.accountingClassIDs);return t.jsxs(At,{windowSize:p,isInviteAccepted:e.userRole.invitationStatus==="accepted","data-testid":a("people-list-row-small",e.userId),onClick:()=>{d?.(e.userId)},children:[t.jsxs(Vt,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(Wt,{children:t.jsxs(Ht,{children:[t.jsxs(Bt,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ut,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Et,{className:"lastSeen",children:[t.jsx(Ft,{className:"lastSeenDateTxt",children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Kt,{children:k.header.lastSeen})]}):t.jsx(Zt,{"data-testid":a("resend-invite-wrapper",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(qt,{"data-testid":a("resend-invite-text",e.userId),onClick:r=>{r.stopPropagation(),m?.(e.userId)},children:k.resendInvite.label}),t.jsx(Xt,{children:t.jsx(Gt,{children:`${k.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Mt,{children:t.jsxs(se,{className:"personDetails",children:[t.jsxs(pe,{children:[t.jsxs(he,{children:[k.header.role,":"]}),t.jsx(oe,{children:t.jsx(Re,{roles:x})})]}),t.jsxs(Qt,{children:[t.jsxs(Yt,{children:[k.header.manager,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:h?t.jsx(ti,{children:h}):t.jsx(q,{children:k.noManager})})]}),t.jsxs(Jt,{children:[t.jsxs(ei,{children:[k.header.department,":"]}),Q(e.userRole.userRoles)?t.jsx(q,{children:k.notApplicable}):t.jsx(t.Fragment,{children:n?t.jsx(ii,{children:n}):t.jsx(q,{children:k.emptyDepartmentPlaceholderText})})]})]})})]})},At=i.div`
276
276
  border: 1px solid ${e=>e.theme.colors.grey3};
277
277
  border-radius: ${s.sp2};
278
278
  display: flex;
@@ -358,7 +358,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
358
358
  width: 70%;
359
359
  `,ti=i(oe)``,ii=i(oe)``,q=i(oe)`
360
360
  color: ${e=>e.theme.colors.grey1};
361
- `,si=(e,o)=>{const l=e.find(d=>d.userId===o);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},oi=(e,o)=>{const l=e.find(d=>o[0]===d.classId);return l?l.className:void 0},ri=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(vt,{...e}),X=y.getLocalizedStrings().peoplePage,li=({peopleData:e,userNameSticky:o,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=ni(e),r=f=>{const j=[];return f.map(g=>{const R=ke.roles.find(V=>V.value===g);return R!=null&&j.push(R?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ai,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(di,{wrapperWidth:B[0].width,windowSize:h,userNameSticky:o,children:t.jsxs(pi,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(hi,{children:[e.user?.firstName?t.jsxs(mi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(xi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(ui,{widthNumber:B[1].width,windowSize:h,children:t.jsx(ci,{wrapperWidth:new $(100,100),windowSize:h,children:r(e.userRole.userRoles)})}),t.jsxs(yi,{"data-testid":a("people-list-row-medium-last-seen",e.userId),wrapperWidth:B[2].width,windowSize:h,children:[e.userRole.invitationStatus==="accepted"?t.jsx($i,{children:n.lastSeen}):t.jsx(gi,{"data-testid":a("people-list-row-medium-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(wi,{"data-testid":a("people-list-row-medium-resend-invite-text",e.userId),onClick:f=>{f.stopPropagation(),l?.(e.userId)},children:X.resendInvite.label}),t.jsx(vi,{children:t.jsx(fi,{children:`${X.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx(bi,{"data-testid":a("people-list-row-medium-menu",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(ji,{children:[t.jsx(ye,{"data-testid":a("people-list-row-medium-menu-edit",e.userId),onClick:()=>{x(!1),w()},children:X.invitePage.editTitle}),t.jsx(ye,{"data-testid":a("people-list-row-menu-delete",e.userId),isDelete:!0,onClick:f=>{f.stopPropagation(),x(!1),u()},children:X.deleteOverlay.title})]}),setIsMenuOpen:x,isMenuOpen:p})})]})]})};function ni(e){return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:ke.roles},lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ai=i.div`
361
+ `,si=(e,o)=>{const l=e.find(d=>d.userId===o);return l?.user?`${l?.user?.firstName} ${l?.user?.lastName}`:void 0},oi=(e,o)=>{const l=e.find(d=>o[0]===d.classId);return l?l.className:void 0},ri=e=>I()==="small"?t.jsx(Lt,{...e}):t.jsx(vt,{...e}),X=y.getLocalizedStrings().peoplePage,li=({peopleData:e,userNameSticky:o,onResendInvite:l,onDeleteUser:d,onRowClick:m})=>{const[p,x]=v.useState(!1),h=I(),n=ni(e),r=f=>{const j=[];return f.map(g=>{const R=ke.roles.find(V=>V.value===g);return R!=null&&j.push(R?.label??""),j}),j.length>0?j.join(", "):"-"},u=()=>{d?.(e)},w=()=>{m?.(e.userId)};return t.jsxs(ai,{"data-testid":a("zeni-people-list-row-medium",e.userId),windowSize:h,isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:w,children:[t.jsx(di,{wrapperWidth:B[0].width,windowSize:h,userNameSticky:o,children:t.jsxs(pi,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsxs(hi,{children:[e.user?.firstName?t.jsxs(mi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"personNameTxt",children:[e.user?.firstName??""," ",e.user?.lastName??""]}):null,t.jsx(xi,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})]})}),t.jsx(ui,{widthNumber:B[1].width,windowSize:h,children:t.jsx(ci,{wrapperWidth:new b(100,100),windowSize:h,children:r(e.userRole.userRoles)})}),t.jsxs(yi,{"data-testid":a("people-list-row-medium-last-seen",e.userId),wrapperWidth:B[2].width,windowSize:h,children:[e.userRole.invitationStatus==="accepted"?t.jsx(bi,{children:n.lastSeen}):t.jsx(gi,{"data-testid":a("people-list-row-medium-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(wi,{"data-testid":a("people-list-row-medium-resend-invite-text",e.userId),onClick:f=>{f.stopPropagation(),l?.(e.userId)},children:X.resendInvite.label}),t.jsx(vi,{children:t.jsx(fi,{children:`${X.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})}),t.jsx($i,{"data-testid":a("people-list-row-medium-menu",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"menu-icon",children:t.jsx(Ce,{menuItems:t.jsxs(ji,{children:[t.jsx(ye,{"data-testid":a("people-list-row-medium-menu-edit",e.userId),onClick:()=>{x(!1),w()},children:X.invitePage.editTitle}),t.jsx(ye,{"data-testid":a("people-list-row-menu-delete",e.userId),isDelete:!0,onClick:f=>{f.stopPropagation(),x(!1),u()},children:X.deleteOverlay.title})]}),setIsMenuOpen:x,isMenuOpen:p})})]})]})};function ni(e){return{name:`${e.user?.firstName??""} ${e.user?.lastName??""}`,role:{selectedOptions:e.userRole.userRoles,allOptions:ke.roles},lastSeen:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}}const ai=i.div`
362
362
  border: 1px solid ${e=>e.theme.colors.grey3};
363
363
  border-radius: ${s.sp2};
364
364
  display: flex;
@@ -487,13 +487,13 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
487
487
  `,yi=i.div`
488
488
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
489
489
  position: relative;
490
- `,$i=i(O)`
490
+ `,bi=i(O)`
491
491
  overflow: hidden;
492
492
  display: -webkit-box;
493
493
  -webkit-line-clamp: 1;
494
494
  -webkit-box-orient: vertical;
495
495
  text-overflow: ellipsis;
496
- `,bi=i.div`
496
+ `,$i=i.div`
497
497
  position: absolute;
498
498
  right: ${`-${s.sp2}`};
499
499
  top: ${e=>e.isInviteAccepted?"6%":"30%"};
@@ -509,7 +509,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
509
509
  :hover {
510
510
  color: ${e=>e.theme.colors.primary};
511
511
  }
512
- `,Si={width:new $(343,580,726)},G=y.getLocalizedStrings().peoplePage,ki=({peopleData:e,onRowClick:o,onResendInvite:l})=>{const d=I();return t.jsxs(Ii,{windowSize:d,"data-testid":a("zeni-people-list-row-small",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:()=>{o?.(e.userId)},children:[t.jsxs(Ci,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(zi,{children:t.jsxs(Ti,{children:[t.jsxs(Pi,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ni,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Li,{className:"lastSeen","data-testid":a("people-list-row-small-last-seen",e.userId),children:[t.jsx(Ai,{className:"lastSeenDateTxt","data-testid":a("people-list-row-small-last-seen-content",e.userId),children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Vi,{children:G.header.lastSeen})]}):t.jsx(Mi,{"data-testid":a("people-list-row-small-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Wi,{"data-testid":a("people-list-row-small-resend-invite-text",e.userId),onClick:m=>{m.stopPropagation(),l?.(e.userId)},children:G.resendInvite.label}),t.jsx(Hi,{children:t.jsx(Bi,{children:`${G.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Ri,{children:t.jsx(re,{className:"personDetails",children:t.jsxs(Di,{style:{display:"flex"},children:[t.jsxs(Oi,{style:{},children:[G.header.role,":"]}),t.jsx(_i,{children:je(e.userRole.userRoles,"zeni_only")})]})})})]})},Ii=i.div`
512
+ `,Si={width:new b(343,580,726)},G=y.getLocalizedStrings().peoplePage,ki=({peopleData:e,onRowClick:o,onResendInvite:l})=>{const d=I();return t.jsxs(Ii,{windowSize:d,"data-testid":a("zeni-people-list-row-small",e.userId),isInviteAccepted:e.userRole.invitationStatus==="accepted",onClick:()=>{o?.(e.userId)},children:[t.jsxs(Ci,{children:[t.jsx(ee,{personBasic:e.user,styles:{height:s.sp6,width:s.sp6}}),t.jsx(zi,{children:t.jsxs(Ti,{children:[t.jsxs(Pi,{className:"personNameTxt",isInviteAccepted:e.userRole.invitationStatus==="accepted",children:[e.user?.firstName??""," ",e.user?.lastName??""]}),t.jsx(Ni,{isInviteAccepted:e.userRole.invitationStatus==="accepted",className:"emailTxt",children:e.userRole.userEmail??""})]})}),e.userRole.invitationStatus==="accepted"?t.jsxs(Li,{className:"lastSeen","data-testid":a("people-list-row-small-last-seen",e.userId),children:[t.jsx(Ai,{className:"lastSeenDateTxt","data-testid":a("people-list-row-small-last-seen-content",e.userId),children:e?.userRole?.userLastCheckInTimeIntoTenant?N(e.userRole.userLastCheckInTimeIntoTenant):"-"}),t.jsx(Vi,{children:G.header.lastSeen})]}):t.jsx(Mi,{"data-testid":a("people-list-row-small-resend-invite",e.userId),children:e.update==="resendInvite"?t.jsx(U,{size:"Small",start:!0}):t.jsxs(t.Fragment,{children:[t.jsx(Wi,{"data-testid":a("people-list-row-small-resend-invite-text",e.userId),onClick:m=>{m.stopPropagation(),l?.(e.userId)},children:G.resendInvite.label}),t.jsx(Hi,{children:t.jsx(Bi,{children:`${G.sentText} ${N(e?.userRole?.inviteUpdateTime?e.userRole.inviteUpdateTime:e.userRole.inviteCreateTime)}`})})]})})]}),t.jsx(Ri,{children:t.jsx(re,{className:"personDetails",children:t.jsxs(Di,{style:{display:"flex"},children:[t.jsxs(Oi,{style:{},children:[G.header.role,":"]}),t.jsx(_i,{children:je(e.userRole.userRoles,"zeni_only")})]})})})]})},Ii=i.div`
513
513
  border: 1px solid ${e=>e.theme.colors.grey3};
514
514
  border-radius: ${s.sp2};
515
515
  display: flex;
@@ -587,7 +587,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
587
587
  justify-content: flex-end;
588
588
  `,Bi=i(re)`
589
589
  color: ${e=>e.theme.colors.grey1};
590
- `,Ui=e=>I()==="small"?t.jsx(ki,{...e}):t.jsx(li,{...e}),M={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},J={listItemPaddingRight:new $(b[3],b[8]),listItemPaddingLeft:new $(b[3],b[8]),zeniLastRowHeight:new $(154,136),nonZeniLastRowHeight:new $(200,136)},W=y.getLocalizedStrings().peoplePage,Ei=({peopleView:e,allManagers:o,allClasses:l,analytics:d,onColumnSortConfigChanged:m,onDeleteClick:p,onResendInvite:x,onRowClick:h,isZeniTenant:n})=>{const r=I(),u=v.useRef(null),w=!(r==="small"||r==="medium-compact"),[f,j]=v.useState(!1),[g,R]=v.useState(),V=$e(),z=e.people.findIndex(c=>c.userRole.invitationStatus==="invited"),me=c=>{j(!0),R(c)},ue=v.memo(({index:c,style:C})=>t.jsx(t.Fragment,{children:t.jsxs(Zi,{"data-testid":a("people-list-item",e.people[c].user?.userId),style:{...C,width:"fit-content",minWidth:"100%"},windowSize:r,isFirstResendInviteUser:z===c,className:"people-list-item",children:[z===c?t.jsx(Ji,{}):null,e.uiState.mode==="off"?t.jsx(ri,{allManagers:o,allClasses:l,userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n}):t.jsx(Ui,{userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n})]})}),Ae);ue.displayName="ListItem";const xe=v.forwardRef((c,C)=>{const{children:_,style:F,...K}=c;return t.jsxs("div",{ref:C,style:{...F,width:"auto"},...K,children:[r==="small"?t.jsx(ht,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}):t.jsx(st,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}),t.jsx(qi,{children:_})]})});xe.displayName="People list view inner element type";const ze=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=z===c;return C>M.rowNameLimit?M.listItemHeight+b[5]+(_?b[3]:b[0]):M.listItemHeight+(_?b[3]:b[0])},Te=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=je(e.people[c].userRole.userRoles,e.uiState.mode).length,F=z===c,K=e.uiState.mode==="zeni_only"?_>33?ne.zeniPeopleExtendedListItemHeight:ne.zeniPeopleListItemHeight:ne.peopleListItemHeight;return C>M.rowNameLimit?K+b[5]+(F?b[3]:b[0]):K+(F?b[3]:b[0])},Pe={onOkClick:()=>{const c=g;d?.trackRemoveUserAccess(c.userRole.userRoles,c.userRole.userEmail),p?.(c.userId,c.userRole.userRoleId)},onCancelClick:()=>{j(!1),R(void 0)}},ge=Ve(e.people.find(c=>c.userId===g?.userId)?.update),E=e.people.find(c=>c.userId===g?.userId)?.update,Ne=g!=null?W.deleteOverlay.description.replace("‘_user-name_’",`"${Fi(g)}"`):W.deleteOverlay.description;return v.useEffect(()=>{u.current&&u.current.resetAfterIndex(0)},[e,r]),v.useEffect(()=>{E==null&&ge==="removeUsers"&&(j(!1),R(void 0))},[E,ge]),t.jsxs(Ki,{"data-testid":a("people-list-view-container"),windowSize:r,mode:e.uiState.mode,children:[f===!0?t.jsx(Me,{titleComponent:t.jsx(Be,{children:W.deleteOverlay.title}),descriptionComponent:t.jsx(He,{children:Ne}),primaryButtonText:W.deleteOverlay.remove,secondaryButtonText:W.deleteOverlay.cancel,action:Pe,proceedButtonVariant:"danger",isLoading:E==="removeUsers",isDisabled:E==="removeUsers",style:{background:V.colors.overlayColor},children:g?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Qi,{}),t.jsx(Xi,{children:t.jsx(Gi,{src:g?.user.photo?.toString()??We,alt:g?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(Ue,{children:({height:c,width:C})=>t.jsx(Yi,{height:c,innerElementType:xe,itemCount:e.people.length,itemSize:r==="small"?Te:ze,width:C,ref:u,overscanCount:M.overscanCount,children:ue})})]})},Fi=e=>e.user?.firstName?`${e.user?.firstName} ${e.user?.lastName}`:e.user?.email??"",Ki=i.div`
590
+ `,Ui=e=>I()==="small"?t.jsx(ki,{...e}):t.jsx(li,{...e}),M={overscanCount:1,rowNameLimit:55,listItemHeight:88},ne={peopleListItemHeight:138,zeniPeopleListItemHeight:106,zeniPeopleExtendedListItemHeight:130},J={listItemPaddingRight:new b($[3],$[8]),listItemPaddingLeft:new b($[3],$[8]),zeniLastRowHeight:new b(154,136),nonZeniLastRowHeight:new b(200,136)},W=y.getLocalizedStrings().peoplePage,Ei=({peopleView:e,allManagers:o,allClasses:l,analytics:d,onColumnSortConfigChanged:m,onDeleteClick:p,onResendInvite:x,onRowClick:h,isZeniTenant:n})=>{const r=I(),u=v.useRef(null),w=!(r==="small"||r==="medium-compact"),[f,j]=v.useState(!1),[g,R]=v.useState(),V=be(),z=e.people.findIndex(c=>c.userRole.invitationStatus==="invited"),me=c=>{j(!0),R(c)},ue=v.memo(({index:c,style:C})=>t.jsx(t.Fragment,{children:t.jsxs(Zi,{"data-testid":a("people-list-item",e.people[c].user?.userId),style:{...C,width:"fit-content",minWidth:"100%"},windowSize:r,isFirstResendInviteUser:z===c,className:"people-list-item",children:[z===c?t.jsx(Ji,{}):null,e.uiState.mode==="off"?t.jsx(ri,{allManagers:o,allClasses:l,userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n}):t.jsx(Ui,{userNameSticky:w,peopleData:e.people[c],onDeleteUser:me,onResendInvite:x,onRowClick:h,isZeniTenant:n})]})}),Ae);ue.displayName="ListItem";const xe=v.forwardRef((c,C)=>{const{children:_,style:F,...K}=c;return t.jsxs("div",{ref:C,style:{...F,width:"auto"},...K,children:[r==="small"?t.jsx(ht,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}):t.jsx(st,{userNameSticky:w,onColumnSortConfigChanged:m,sortConfig:{sortKey:e.uiState.sortKey,sortOrder:e.uiState.sortOrder},mode:e.uiState.mode}),t.jsx(qi,{children:_})]})});xe.displayName="People list view inner element type";const ze=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=z===c;return C>M.rowNameLimit?M.listItemHeight+$[5]+(_?$[3]:$[0]):M.listItemHeight+(_?$[3]:$[0])},Te=c=>{const C=`${e.people[c].user?.firstName} ${e.people[c].user?.lastName}`.length,_=je(e.people[c].userRole.userRoles,e.uiState.mode).length,F=z===c,K=e.uiState.mode==="zeni_only"?_>33?ne.zeniPeopleExtendedListItemHeight:ne.zeniPeopleListItemHeight:ne.peopleListItemHeight;return C>M.rowNameLimit?K+$[5]+(F?$[3]:$[0]):K+(F?$[3]:$[0])},Pe={onOkClick:()=>{const c=g;d?.trackRemoveUserAccess(c.userRole.userRoles,c.userRole.userEmail),p?.(c.userId,c.userRole.userRoleId)},onCancelClick:()=>{j(!1),R(void 0)}},ge=Ve(e.people.find(c=>c.userId===g?.userId)?.update),E=e.people.find(c=>c.userId===g?.userId)?.update,Ne=g!=null?W.deleteOverlay.description.replace("‘_user-name_’",`"${Fi(g)}"`):W.deleteOverlay.description;return v.useEffect(()=>{u.current&&u.current.resetAfterIndex(0)},[e,r]),v.useEffect(()=>{E==null&&ge==="removeUsers"&&(j(!1),R(void 0))},[E,ge]),t.jsxs(Ki,{"data-testid":a("people-list-view-container"),windowSize:r,mode:e.uiState.mode,children:[f===!0?t.jsx(Me,{titleComponent:t.jsx(Be,{children:W.deleteOverlay.title}),descriptionComponent:t.jsx(He,{children:Ne}),primaryButtonText:W.deleteOverlay.remove,secondaryButtonText:W.deleteOverlay.cancel,action:Pe,proceedButtonVariant:"danger",isLoading:E==="removeUsers",isDisabled:E==="removeUsers",style:{background:V.colors.overlayColor},children:g?.user!=null?t.jsxs(t.Fragment,{children:[t.jsx(Qi,{}),t.jsx(Xi,{children:t.jsx(Gi,{src:g?.user.photo?.toString()??We,alt:g?.user.userId,loading:"lazy"})})]}):null}):null,t.jsx(Ue,{children:({height:c,width:C})=>t.jsx(Yi,{height:c,innerElementType:xe,itemCount:e.people.length,itemSize:r==="small"?Te:ze,width:C,ref:u,overscanCount:M.overscanCount,children:ue})})]})},Fi=e=>e.user?.firstName?`${e.user?.firstName} ${e.user?.lastName}`:e.user?.email??"",Ki=i.div`
591
591
  /** Subtract top so list can occupy remaining available height */
592
592
  min-height: ${`calc(100vh - ${s.sp9})`};
593
593
  max-width: 99.9%;
@@ -624,7 +624,7 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
624
624
  `,Ji=i.div`
625
625
  padding-top: ${s.sp3};
626
626
  border-top: 1px solid ${e=>e.theme.colors.grey3};
627
- `,Yi=i(Fe)``,es=(e,o)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:r}=o;return H(l,x)&&H(d,h)&&H(m,n)&&H(p,r)},ts=(e,o)=>{if(e.peopleView.people.length!=o.peopleView.people.length||e.allManagers.length!=o.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=o.peopleView.people[d];if(l=es(m,p),!l)break}return l=l&&H(e.peopleView.invitePeopleState,o.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===o.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===o.peopleView.uiState.sortOrder,l},is=v.memo(Ei,ts);function ss({peopleInviteSectionProps:e}){const o=I();return t.jsx(os,{isSearchOpen:e.isSearchOpen&&o==="small",windowsize:o,children:o!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px",...be.smallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"},label:e.invitePeopleLabel,onClick:e.onInvitePeopleClick})]}):t.jsxs(t.Fragment,{children:[e.hideInviteBtn?null:t.jsx(rs,{"data-testid":a("invite-people-button"),onClick:e.onInvitePeopleClick}),e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"5px",right:o!=="small"?"120px":"unset",top:"44px",width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,"data-testid":a("people-invite-search"),onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0})]})})}const os=i.div`
627
+ `,Yi=i(Fe)``,es=(e,o)=>{const{user:l,userId:d,userRole:m,update:p}=e,{user:x,userId:h,userRole:n,update:r}=o;return H(l,x)&&H(d,h)&&H(m,n)&&H(p,r)},ts=(e,o)=>{if(e.peopleView.people.length!=o.peopleView.people.length||e.allManagers.length!=o.allManagers.length)return!1;let l=!0;for(let d=0;d<e.peopleView.people.length;++d){const m=e.peopleView.people[d],p=o.peopleView.people[d];if(l=es(m,p),!l)break}return l=l&&H(e.peopleView.invitePeopleState,o.peopleView.invitePeopleState),l=l&&e.peopleView.uiState.sortKey===o.peopleView.uiState.sortKey&&e.peopleView.uiState.sortOrder===o.peopleView.uiState.sortOrder,l},is=v.memo(Ei,ts);function ss({peopleInviteSectionProps:e}){const o=I();return t.jsx(os,{isSearchOpen:e.isSearchOpen&&o==="small",windowsize:o,children:o!=="small"?t.jsxs(t.Fragment,{children:[e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"unset",right:"120px"},placeholder:e.searchPlaceHolder,searchText:e.searchText,onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen}),t.jsx(Le,{variant:"primary",size:"small","data-testid":a("invite-people-button"),style:{height:"29px",...$e.smallRegular.cssObject,whiteSpace:"nowrap",display:"flex",alignItems:"center"},label:e.invitePeopleLabel,onClick:e.onInvitePeopleClick})]}):t.jsxs(t.Fragment,{children:[e.hideInviteBtn?null:t.jsx(rs,{"data-testid":a("invite-people-button"),onClick:e.onInvitePeopleClick}),e.hideSearchBtn?null:t.jsx(we,{style:{position:"absolute",left:"5px",right:o!=="small"?"120px":"unset",top:"44px",width:"98%"},placeholder:e.searchPlaceHolder,searchText:e.searchText,"data-testid":a("people-invite-search"),onSearchTextChanged:l=>{e.onSearchTextChanged?.(l)},onSearchOpen:e.onSearchOpen,keepSearchBoxOpen:!0})]})})}const os=i.div`
628
628
  display: flex;
629
629
  flex-direction: column;
630
630
  justify-content: ${e=>e.windowsize==="small"?"unset":"center"};
@@ -672,4 +672,4 @@ import{d as $e,q as I,F as y,V as t,bA as le,aN as a,bM as De,o as s,cj as Oe,ck
672
672
  `,cs=i(Y)`
673
673
  margin-top: ${s.sp3};
674
674
  color: ${e=>e.theme.colors.hero};
675
- `,ps=()=>t.jsx(ns,{children:t.jsx(U,{size:"ExtraLarge",start:!0})});function hs(e){const o=$e(),l=I(),{mode:d,searchText:m}=e.peopleView.uiState,{fetchState:p}=e.peopleView,{fetchState:x}=e.managersView,{fetchState:h}=e.classList,[n,r]=v.useState(!1),u={isSearchOpen:n,onSearchOpen:z=>{r(z)},onSearchTextChanged:e.personAction.onSearchTextChanged,searchPlaceHolder:y.getLocalizedStrings().peoplePage.searchPlaceHolder,searchText:m,invitePeopleLabel:y.getLocalizedStrings().peoplePage.invitePeopleText,onInvitePeopleClick:e.onInvitePeopleClick,onClickMenuIcon:e.onClickMenuIcon},w=e?.isZeniTenant!==!0&&e?.isZeniAdminUser===!0,f=()=>{const z=d==="off"?"zeni_only":"off";e.personAction.onModeChange?.(z)},j=p==="Completed"?`(${e.peopleView.people.length})`:"",g=`${d==="off"?y.getLocalizedStrings().peoplePage.peopleTitle:y.getLocalizedStrings().peoplePage.zeniPeopleTitle} ${j}`,R=v.useMemo(()=>p==="In-Progress"||p==="Not-Started"||x==="In-Progress"||x==="Not-Started"||e.shouldFetchClasses&&(h==="In-Progress"||h==="Not-Started"),[p,x,e.shouldFetchClasses,h]);function V(){return R?t.jsxs(ae,{"data-testid":a("people-page-loading"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:e.onClickMenuIcon,onZeniLogoClick:f,showZeniLogo:w,zeniLogoVisiblity:d==="zeni_only"?"visible":"hidden",isSearchOpen:n,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsx(ps,{})]}):p==="Error"||h==="Error"||x==="Error"?t.jsxs(ae,{"data-testid":a("people-page-error"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsxs(as,{children:[t.jsx(ds,{"data-testid":a("people-page-error-reload-icon"),onClick:e.personAction.onReloadPeople,children:t.jsx(De,{width:s.sp6,height:s.sp6})}),t.jsx(cs,{children:y.getLocalizedStrings().peoplePage.reloadPage.label})]})]}):t.jsxs(ae,{"data-testid":a("people-page-content-container"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,source:"PeoplePage",backgroundColor:o.colors.grey4}),t.jsx(ls,{"data-testid":a("people-page-content"),windowSize:l,children:e.peopleView.people.length>0?t.jsx(is,{peopleView:e.peopleView,allManagers:e.managersView.users,allClasses:e.classList.classes,onDeleteClick:e.personAction.onPersonDelete,analytics:e.analytics,onResendInvite:e.personAction.onResendInvite,onColumnSortConfigChanged:e.onColumnSortConfigChanged,onRowClick:e.onRowClick,isZeniTenant:e.isZeniTenant}):m!==""?t.jsx(Oe,{emptySearchTextFirstLine:y.getLocalizedStrings().peoplePage.emptySearchTextFirstLine,emptySearchTextSecondLine:y.getLocalizedStrings().peoplePage.emptySearchTextSecondLine}):t.jsx(_e,{message:y.getLocalizedStrings().peoplePage.emptyResultsMessage})})]})}return t.jsx("div",{children:V()})}const de=e=>t.jsx(ss,{peopleInviteSectionProps:e}),Is=ce.memo(hs);export{Is as MemoPeople,hs as default};
675
+ `,ps=()=>t.jsx(ns,{children:t.jsx(U,{size:"ExtraLarge",start:!0})});function hs(e){const o=be(),l=I(),{mode:d,searchText:m}=e.peopleView.uiState,{fetchState:p}=e.peopleView,{fetchState:x}=e.managersView,{fetchState:h}=e.classList,[n,r]=v.useState(!1),u={isSearchOpen:n,onSearchOpen:z=>{r(z)},onSearchTextChanged:e.personAction.onSearchTextChanged,searchPlaceHolder:y.getLocalizedStrings().peoplePage.searchPlaceHolder,searchText:m,invitePeopleLabel:y.getLocalizedStrings().peoplePage.invitePeopleText,onInvitePeopleClick:e.onInvitePeopleClick,onClickMenuIcon:e.onClickMenuIcon},w=e?.isZeniTenant!==!0&&e?.isZeniAdminUser===!0,f=()=>{const z=d==="off"?"zeni_only":"off";e.personAction.onModeChange?.(z)},j=p==="Completed"?`(${e.peopleView.people.length})`:"",g=`${d==="off"?y.getLocalizedStrings().peoplePage.peopleTitle:y.getLocalizedStrings().peoplePage.zeniPeopleTitle} ${j}`,R=v.useMemo(()=>p==="In-Progress"||p==="Not-Started"||x==="In-Progress"||x==="Not-Started"||e.shouldFetchClasses&&(h==="In-Progress"||h==="Not-Started"),[p,x,e.shouldFetchClasses,h]);function V(){return R?t.jsxs(ae,{"data-testid":a("people-page-loading"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:e.onClickMenuIcon,onZeniLogoClick:f,showZeniLogo:w,zeniLogoVisiblity:d==="zeni_only"?"visible":"hidden",isSearchOpen:n,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsx(ps,{})]}):p==="Error"||h==="Error"||x==="Error"?t.jsxs(ae,{"data-testid":a("people-page-error"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,backgroundColor:o.colors.grey4,source:"PeoplePage"}),t.jsxs(as,{children:[t.jsx(ds,{"data-testid":a("people-page-error-reload-icon"),onClick:e.personAction.onReloadPeople,children:t.jsx(De,{width:s.sp6,height:s.sp6})}),t.jsx(cs,{children:y.getLocalizedStrings().peoplePage.reloadPage.label})]})]}):t.jsxs(ae,{"data-testid":a("people-page-content-container"),children:[t.jsx(le,{title:g,onBackClick:e.personAction.onBackClick,rightSideComponent:t.jsx(de,{...u}),showMenuIcon:l==="medium-compact"||l==="small",onZeniLogoClick:f,showZeniLogo:w,onClickMenuIcon:e.onClickMenuIcon,source:"PeoplePage",backgroundColor:o.colors.grey4}),t.jsx(ls,{"data-testid":a("people-page-content"),windowSize:l,children:e.peopleView.people.length>0?t.jsx(is,{peopleView:e.peopleView,allManagers:e.managersView.users,allClasses:e.classList.classes,onDeleteClick:e.personAction.onPersonDelete,analytics:e.analytics,onResendInvite:e.personAction.onResendInvite,onColumnSortConfigChanged:e.onColumnSortConfigChanged,onRowClick:e.onRowClick,isZeniTenant:e.isZeniTenant}):m!==""?t.jsx(Oe,{emptySearchTextFirstLine:y.getLocalizedStrings().peoplePage.emptySearchTextFirstLine,emptySearchTextSecondLine:y.getLocalizedStrings().peoplePage.emptySearchTextSecondLine}):t.jsx(_e,{message:y.getLocalizedStrings().peoplePage.emptyResultsMessage})})]})}return t.jsx("div",{children:V()})}const de=e=>t.jsx(ss,{peopleInviteSectionProps:e}),Is=ce.memo(hs);export{Is as MemoPeople,hs as default};
@@ -1 +1 @@
1
- import{a as h,S as n}from"./sentry-gm2R3TtK.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f93b8fea-342f-46af-9294-f75d3b119450",t._sentryDebugIdIdentifier="sentry-dbid-f93b8fea-342f-46af-9294-f75d3b119450")}catch{}})();const c="64px",f={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:p&&!l?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:d.shadow,className:"react-player__shadow"},n.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...u?{"aria-label":u}:{}},l?a:null,m||x)};var N=k;export{N as default};
1
+ import{a as h,S as n}from"./sentry-D4D7HRQR.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="f93b8fea-342f-46af-9294-f75d3b119450",t._sentryDebugIdIdentifier="sentry-dbid-f93b8fea-342f-46af-9294-f75d3b119450")}catch{}})();const c="64px",f={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:u})=>{const[p,o]=h.useState(null);h.useEffect(()=>{!t||!a||!r||_({src:t,light:a,oEmbedUrl:r})},[t,a,r]);const _=async({src:e,light:i,oEmbedUrl:E})=>{if(n.isValidElement(i))return;if(typeof i=="string"){o(i);return}if(f[e]){o(f[e]);return}o(null);const b=await(await fetch(E.replace("{url}",e))).json();if(b.thumbnail_url){const g=b.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),f[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),y={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:p&&!l?`url(${p})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...y},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:c,width:c,height:c,position:l?"absolute":void 0,...y},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},x=n.createElement("div",{style:d.shadow,className:"react-player__shadow"},n.createElement("div",{style:d.playIcon,className:"react-player__play-icon"}));return n.createElement("div",{style:d.preview,className:"react-player__preview",tabIndex:I,onClick:v,onKeyDown:w,...u?{"aria-label":u}:{}},l?a:null,m||x)};var N=k;export{N as default};
@@ -1,4 +1,4 @@
1
- import{F as D,V as t,a8 as B,o as c,c0 as N,a_ as U,c as V,d3 as q,aq as G,al as T,d4 as H,p as v}from"./index-Bs2B-MQ4.js";import{a as y}from"./sentry-gm2R3TtK.js";import{n as i}from"./mui-snKYaegN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b4e2ce74-f95a-451c-af4b-7339e91ae3f4",e._sentryDebugIdIdentifier="sentry-dbid-b4e2ce74-f95a-451c-af4b-7339e91ae3f4")}catch{}})();const u=D.getLocalizedStrings(),w={large:{labelComp:q,title:G,subtitle:T,seeMoreLink:T}},J={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=J.large,Y=i.div`
1
+ import{F as D,V as t,a8 as B,o as c,c0 as N,a_ as U,c as V,d3 as q,aq as G,al as T,d4 as H,p as v}from"./index-qaSB49F0.js";import{a as y}from"./sentry-D4D7HRQR.js";import{n as i}from"./mui-Fyk6sRCR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="b4e2ce74-f95a-451c-af4b-7339e91ae3f4",e._sentryDebugIdIdentifier="sentry-dbid-b4e2ce74-f95a-451c-af4b-7339e91ae3f4")}catch{}})();const u=D.getLocalizedStrings(),w={large:{labelComp:q,title:G,subtitle:T,seeMoreLink:T}},J={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=J.large,Y=i.div`
2
2
  width: ${e=>e.scale*r.width}px;
3
3
  height: ${e=>e.scale*r.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{q as m,V as r,d8 as b,d9 as v,da as y,bw as z,o as e,p as d,y as a,R as c,c as p}from"./index-Bs2B-MQ4.js";import{c as i,n as g,k as f}from"./mui-snKYaegN.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="2010a941-22e1-451f-99a6-b070eac5889f",o._sentryDebugIdIdentifier="sentry-dbid-2010a941-22e1-451f-99a6-b070eac5889f")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(B,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
1
+ import{q as m,V as r,d8 as b,d9 as v,da as y,bw as z,o as e,p as d,y as a,R as c,c as p}from"./index-qaSB49F0.js";import{c as i,n as g,k as f}from"./mui-Fyk6sRCR.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},h=new o.Error().stack;h&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[h]="2010a941-22e1-451f-99a6-b070eac5889f",o._sentryDebugIdIdentifier="sentry-dbid-2010a941-22e1-451f-99a6-b070eac5889f")}catch{}})();const t={plasticCardMarginLeft:new a(p[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(p[2],13),businessTextBottom:new a(p[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(p[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(p[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(p[2],13),visaLogoBottom:new a(p[2],13)},u={businessText:new c("extraSmallRegular","largeRegular"),promoBusinessText:new c("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(B,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(j,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(z,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},A=({cardText:o,shouldAnimate:h,showChip:w,forDashboard:s,forListPage:l,cardPromoType:$,style:x})=>{const n=m();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:h,forListPage:l,forDashboard:s,style:x,children:[w&&r.jsx(P,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(k,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(v,{})}),r.jsx(L,{windowSize:n,forDashboard:s,forListPage:l,children:o}),r.jsx(S,{windowSize:n,forDashboard:s,forListPage:l,children:r.jsx(y,{})})]})},C=f`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{q as b,F as r,V as n,bQ as y,n as l,y as c,o as i,aq as w,al as $,af as j,bu as P,eJ as v,c as a}from"./index-Bs2B-MQ4.js";import{n as o}from"./mui-snKYaegN.js";import"./sentry-gm2R3TtK.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./zeni-epic-state-D2RxwWrl.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f5caace9-687f-489b-ae09-b90fd143defe",e._sentryDebugIdIdentifier="sentry-dbid-f5caace9-687f-489b-ae09-b90fd143defe")}catch{}})();const s={containerPaddingTop:new c(a[5],a[7]),containerPaddingBottom:new c(a[5],a[5]),containerPaddingLeftRight:new c(a[6],a[11])},_=o.div`
1
+ import{q as b,F as r,V as n,bQ as y,n as l,y as c,o as i,aq as w,al as $,af as j,bu as P,eJ as v,c as a}from"./index-qaSB49F0.js";import{n as o}from"./mui-Fyk6sRCR.js";import"./sentry-D4D7HRQR.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f5caace9-687f-489b-ae09-b90fd143defe",e._sentryDebugIdIdentifier="sentry-dbid-f5caace9-687f-489b-ae09-b90fd143defe")}catch{}})();const s={containerPaddingTop:new c(a[5],a[7]),containerPaddingBottom:new c(a[5],a[5]),containerPaddingLeftRight:new c(a[6],a[11])},_=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{q as O,F as u,V as i,n as k,o,y as a,p as c,fL as I,R as T,af as D,bu as E,eJ as W,fC as _,aT as h,ai as f,c as r}from"./index-Bs2B-MQ4.js";import{n}from"./mui-snKYaegN.js";import q from"./QBOConnectionDialog-R4ZWjJsY-DNCk7fny.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f52b80b0-7458-417a-9731-6c1172d8c912",e._sentryDebugIdIdentifier="sentry-dbid-f52b80b0-7458-417a-9731-6c1172d8c912")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},B={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(J,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(N,{windowSize:s,children:[i.jsxs(R,{children:[i.jsx(V,{}),i.jsx(L,{windowSize:s}),i.jsx(M,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(Q,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(q,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
1
+ import{q as O,F as u,V as i,n as k,o,y as a,p as c,fL as I,R as T,af as D,bu as E,eJ as W,fC as _,aT as h,ai as f,c as r}from"./index-qaSB49F0.js";import{n}from"./mui-Fyk6sRCR.js";import q from"./QBOConnectionDialog-B5v60lo1-GNrkjfxe.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="95f04f27-1524-4e01-b7cb-7ae22de47ef8",e._sentryDebugIdIdentifier="sentry-dbid-95f04f27-1524-4e01-b7cb-7ae22de47ef8")}catch{}})();const l={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},B={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:y,companyName:$,updateQBOPopupState:w,handleOnConnectClick:b})=>{const s=O(),{qbo_connection:j}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(G,{windowSize:s,children:[i.jsxs(A,{windowSize:s,children:[s==="small"?i.jsx(J,{children:d?i.jsx(K,{}):i.jsx(U,{})}):null,i.jsx(F,{windowSize:s,children:S})]}),i.jsxs(H,{windowSize:s,children:[i.jsxs(N,{windowSize:s,children:[i.jsxs(R,{children:[i.jsx(V,{}),i.jsx(L,{windowSize:s}),i.jsx(M,{})]}),d?s!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:s!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>w(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(Q,{children:v}),s==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(g,{windowSize:s,children:C})}):null]}),i.jsx(q,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:$,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>w(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new h(c.successDark),borderColor:new h(c.successDark)}})},G=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as W,c as L,d as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-Bs2B-MQ4.js";import{a as T}from"./sentry-gm2R3TtK.js";import{n as c}from"./mui-snKYaegN.js";import{b as ae,f as te,o as k,l as B}from"./FollowStepsSection-h449vQkQ-BXixJ0VK.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./zeni-epic-state-D2RxwWrl.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ec385426-097c-47ba-97f0-91a12b283194",e._sentryDebugIdIdentifier="sentry-dbid-ec385426-097c-47ba-97f0-91a12b283194")}catch{}})();const C="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",A="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:I}){const F=M(),w=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return T.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=J(d);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&I()},[P,u?.fetchState,I]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(C),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:A,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[A],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),k(e.allAttributes),k(e.filteredAttributes),o??[])??[],[$]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:B},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),_=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
1
+ import{y as W,c as L,d as M,q as G,F as U,a9 as H,aO as X,aH as J,cC as K,V as r,bA as Q,ac as Y,aP as Z,o as b,g3 as ee}from"./index-qaSB49F0.js";import{a as T}from"./sentry-D4D7HRQR.js";import{n as c}from"./mui-Fyk6sRCR.js";import{b as ae,f as te,o as k,l as B}from"./FollowStepsSection-CoXcJ6WL-BDHFkDzZ.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="35ce6ecd-34a3-411d-9c50-771fa097211b",e._sentryDebugIdIdentifier="sentry-dbid-35ce6ecd-34a3-411d-9c50-771fa097211b")}catch{}})();const C="reimbursementApprovalRuleDetailPage",$="lowerBound",j="upperBound",A="steps",h="applyToExistingReimbursements",le={footerPadding:new W(L[2],L[3])};function Pe({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:s=!1,onBackClick:p,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:I}){const F=M(),w=G(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,t==="approval_create"&&!a),y=H({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:R}=x,{allApprovalRules:i,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=i.length>1?i.length-1:0,v=i.length>0?i[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=i.findIndex(d=>d.approvalRuleId===n),v=f>0?i[f-1].criteria[0].range.min.amount:0}const q=y.handleSubmit(()=>{N()}),z=async(n,d)=>{g(d)};return T.useEffect(()=>{const n=y.watch((d,{name:D})=>{if(D!=null&&d!=null){const O=J(d);K(()=>z(D,O))}});return()=>{n.unsubscribe()}}),T.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&I()},[P,u?.fetchState,I]),r.jsxs(ie,{children:[r.jsx(Q,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(C),onSubmit:q,children:r.jsxs(pe,{children:[r.jsx(ae,{label:{label:s?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:$,placeholder:"$0",options:{required:!0,max:R===1/0?Number.MAX_SAFE_INTEGER-1:R-1,min:v,validate:n=>a?!0:n!=null&&n>v},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:s,additionalInfoLabel:l.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(te,{sectionId:A,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[A],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:t==="approval_create"?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:l.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,t)=>{const{criteria:a,steps:o}=e.remiSetupApproverViewUpdateData?.data??{};return{[h]:[h],[A]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),k(e.allAttributes),k(e.filteredAttributes),o??[])??[],[$]:t?void 0:a!=null?a.range.min.amount??0:0,[j]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},oe=(e,t,a,o,s)=>s&&s.length>0?s.map((p,g)=>({stepIndex:g,stepType:{selectedOption:p.action,allOptions:B},actors:{allUsers:t,selectedUsers:se(e,p.actors),allNonUsers:o,selectedNonUsers:ne(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:t,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(o=>o.userId===a.userId)>-1),ne=(e,t)=>e.filter(a=>t.findIndex(o=>o.subType===a.value)>-1),_=e=>`${e}_form`,Re=e=>`${e}`,ie=c.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{d as _,q as W,F as S,V as t,bA as M,k as E,aN as j,o,y as r,al as z,aL as P,cn as H,co as V,cp as G,cX as U,c as l,b8 as q,R as T,b7 as F,p as k,cW as J,bs as K,b as O}from"./index-Bs2B-MQ4.js";import{n as i}from"./mui-snKYaegN.js";import{a as Q}from"./sentry-gm2R3TtK.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./zeni-epic-state-D2RxwWrl.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="7f94a5bd-c7c7-44b9-8332-0d818d241bcc",e._sentryDebugIdIdentifier="sentry-dbid-7f94a5bd-c7c7-44b9-8332-0d818d241bcc")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},X=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=Q.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(Y,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",P("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(R,{}),t.jsx(te,{}),t.jsx(R,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(L,{windowSize:a,children:P("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(B,{children:[t.jsx(I,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${N}`)),h.actors.map(p=>t.jsxs(B,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},Y=i.div`
1
+ import{d as _,q as W,F as S,V as t,bA as M,k as E,aN as j,o,y as r,al as z,aL as P,cn as H,co as V,cp as G,cX as U,c as l,b8 as q,R as T,b7 as F,p as k,cW as J,bs as K,b as O}from"./index-qaSB49F0.js";import{n as i}from"./mui-Fyk6sRCR.js";import{a as Q}from"./sentry-D4D7HRQR.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./zeni-epic-state-I555vKHy.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="7f94a5bd-c7c7-44b9-8332-0d818d241bcc",e._sentryDebugIdIdentifier="sentry-dbid-7f94a5bd-c7c7-44b9-8332-0d818d241bcc")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeRegular")},X=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:u,onEditRuleClick:b,onDeleteRuleClick:v})=>{const[x,c]=Q.useState(!1),a=W(),{range:d}=u.criteria[0],{steps:g,approvalRuleId:w}=u,n=S.getLocalizedStrings().commonSetUp.approval,f=()=>{c(!0)},y={onOkClick:()=>{c(!1),v?.(w)},onCancelClick:()=>{c(!1)}};return t.jsxs(Y,{windowSize:a,isLastSection:m,"data-testid":j("approval-rule-section",w),children:[t.jsxs(Z,{windowSize:a,children:[t.jsxs(ne,{children:[t.jsxs(L,{windowSize:a,children:[n.from," ",P("0,0",d.min)]}),t.jsxs(ee,{children:[t.jsx(R,{}),t.jsx(te,{}),t.jsx(R,{})]}),d.max==null?t.jsx(ce,{}):t.jsx(L,{windowSize:a,children:P("0,0",{...d.min,amount:d.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e?t.jsx(pe,{onClick:f}):null,t.jsx(de,{onClick:()=>{b(w)},"data-testid":j("edit-approval-rule",w)})]})]}),t.jsx(oe,{windowSize:a,children:t.jsx(ie,{isSingleStep:g.length===1,windowSize:a,children:g.map((h,D)=>t.jsxs(re,{isSingleStep:g.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?t.jsx(le,{children:n.requireText}):t.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(B,{children:[t.jsx(I,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${N}`)),h.actors.map(p=>t.jsxs(B,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},D))})}),x?t.jsx(H,{titleComponent:t.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(V,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:y}):null]})},Y=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{aw as Mt,a8 as Rt,q as Pt,d as Bt,cb as Nt,y as m,F as et,gf as Lt,gh as _t,gi as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,dq as Et,gj as Ft,gu as Be,o as a,gk as Ne,fe as b,gn as w,fh as x,aL as Le,fd as _e,b as V,gp as Oe,aP as Kt,ao as Ut,gq as Vt,gr as re,bw as Gt,gs as Ht,L as qt,R as Yt,M as Jt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ai as Xt,gL as ei,gH as ti,c,cg as ii,cU as ai}from"./index-Bs2B-MQ4.js";import{a as p}from"./sentry-gm2R3TtK.js";import{n as r}from"./mui-snKYaegN.js";import{a as ri}from"./liveblocks-48Yy2aTy.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-D2RxwWrl.js";import si from"./InvoiceUploadSection-W4vdQGvo-DAuF5vcp.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-9PMMelIA.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./recharts-DGmpNqLb.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";import"./AttachmentView-zHGhIkWo-C64qXCAp.js";import"./uploadReceipts-CPw64UYa-DwtdWb2a.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="35884aea-edfe-4698-a9f3-cfef9881e51e",e._sentryDebugIdIdentifier="sentry-dbid-35884aea-edfe-4698-a9f3-cfef9881e51e")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Yt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[q,Y]=p.useState(!1),[ct,J]=p.useState(!1),[Q,Z]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ye,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),q===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&q?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>Y(!q),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
1
+ import{aw as Mt,a8 as Rt,q as Pt,d as Bt,cb as Nt,y as m,F as et,gf as Lt,gh as _t,gi as Ot,V as t,cn as Ae,co as Me,cp as Re,bA as Pe,aN as y,bn as Wt,dq as Et,gj as Ft,gu as Be,o as a,gk as Ne,fe as b,gn as w,fh as x,aL as Le,fd as _e,b as V,gp as Oe,aP as Kt,ao as Ut,gq as Vt,gr as re,bw as Gt,gs as Ht,L as qt,R as Yt,M as Jt,al as tt,b8 as it,p as G,am as Qt,bT as Zt,ai as Xt,gL as ei,gH as ti,c,cg as ii,cU as ai}from"./index-qaSB49F0.js";import{a as p}from"./sentry-D4D7HRQR.js";import{n as r}from"./mui-Fyk6sRCR.js";import{a as ri}from"./liveblocks-BmXYR5uO.js";import{bL as oi,bP as ni,FH as li}from"./zeni-epic-state-I555vKHy.js";import si from"./InvoiceUploadSection-by1gHnS2-ByjzglAY.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-D7_k1EhP.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./recharts-j_eh1fXg.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./AttachmentView-2FZ6X1gL-Cy8tYEtq.js";import"./uploadReceipts-CPw64UYa-C1oywu4M.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="3141b7ae-abca-4235-85f7-edbf82203e78",e._sentryDebugIdIdentifier="sentry-dbid-3141b7ae-abca-4235-85f7-edbf82203e78")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},mi={formTitle:new Yt("h6Regular","h5Regular")},sa=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:ne,isAdmin:le,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:H,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:he,deleteReimbursement:nt,cancelAndDeleteReport:ye,handleZeniLogoClick:lt,onAddNewRule:ge,initialOpenThreadRequest:z})=>{const d=Mt(),st=Rt().analytics,o=Pt(),be=Bt(),[dt,A]=p.useState(!1),[q,Y]=p.useState(!1),[ct,J]=p.useState(!1),[Q,Z]=p.useState("approved"),N=p.useRef(null),[j,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,mt]=p.useState(null),[pt,L]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=p.useRef({}),xe=l=>{const n=we.current[l];n!=null&&setTimeout(()=>ci(n,N.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&H()},[e,H]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);xe(n)}},[]);const ut=()=>{H()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{A(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ye?.():j.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{A(!1)}},I=s.labelWidth.value(o),M=s.largeLabelWidth.value(o),fe=et.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:$e}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:ve}=fe,{reimbursementDetail:i,bulkActions:_}=fe.spendManagement.reimbursement,ee=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,W=e.remiDetails?.reimbursementInfo.billStatus,E=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",ft=Te?O:W?.code=="approved"&&E?.code?E:W,$=pi(e.remiDetails),R=W?.code=="approved"&&E?.code?E:W,F=e.remiDetails?.isDeleted??!1,Se=e.remiDetails?.amount,je=e.remiDetails?.amount.amount??0,Ie=()=>{X({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),A(!0)},$t=()=>{X({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{X({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{J(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{J(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Z("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Z("delete"),Ie()):(Z("rejected"),J(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?oi(ni(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,te=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Dt=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!Dt,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ie=ft?.code,kt=di(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&kt>0,{requestToOpenThread:ae,setRequestToOpenThread:K,setOpenThread:U}=p.useContext(Lt);p.useEffect(()=>{z?.threadId!=null&&z?.companyId!=null&&z?.entityType!=null&&K(z)},[z,K]);const{threads:P,isLoading:D}=_t({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>P.filter(l=>l.resolved===!1&&!l.id.includes(Ot)),[P]).length,At=p.useCallback((l,n)=>{U(n),L(!1)},[U,L]);p.useEffect(()=>{ae?.threadId!=null&&P.length>0&&!D&&(U(ae.threadId),K(null))},[ae,P,D,U,K]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},B=li(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Oi,{windowSize:o,ref:N,children:[dt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:j.title}),descriptionComponent:t.jsx(Me,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Mi,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(Ri,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:be.colors.background,keepBackgroundOnScroll:!0,scrollableContent:N,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ki,{}):null,t.jsx(Pe,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:ee??$e,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Bi,{children:[u?t.jsxs(Ni,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),L(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Li,{})]}):null,t.jsx(_i,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Pi,{})})]}),scrollableContent:N,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Gi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ye,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:ee})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,R?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ft,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F}),B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ki,{windowSize:o,children:t.jsx(Ui,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(si,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:ne,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Fi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ye,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:ee}),me&&$!=null?t.jsx(Ge,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,R?.code!=null?t.jsx(qe,{windowSize:o,children:t.jsx(Ne,{progressSectionObj:R,createDate:e.remiDetails?.createTime,paymentDate:te,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:F})}):null,B?t.jsx(Be,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:_.duplicateWarning.title,description:_.duplicateWarning.description}):ke?t.jsxs(We,{size:o,children:[t.jsx(Ue,{}),t.jsxs(Fe,{children:[t.jsx(Ee,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(wi,{windowSize:o,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(bi,{children:t.jsx(xi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(fi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(yi,{children:[i.thisExpenseReview," ",t.jsx(gi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return xe(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:M},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:M},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:M},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:M},text:l.transactionDate?.format(ve.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Le("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Ei,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(_e,{amount:Se,integerStyles:V.h6Regular.cssObject,decimalStyles:V.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(hi,{windowSize:o,children:t.jsx(Oe,{amount:je,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:ge,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:le,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Vi,{})]}),Te||F===!0?null:t.jsxs(Ai,{children:[o!=="small"?t.jsx(He,{}):null,t.jsx(vi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),q===!0&&Y(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx($i,{children:t.jsxs(zi,{windowSize:o,children:[!B&&q?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Ci,{windowSize:o,children:[ie!=="processing"?t.jsx(oe,{onClick:Ie,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ie==="processing"?t.jsx(oe,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ie==="processing"?t.jsx(oe,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Di,{windowSize:o,children:[!B&&Ce?t.jsx(Ii,{onClick:De,"data-testid":y("remi-edit-button"),children:t.jsx(ji,{})}):null,!B&&Ct===!0?t.jsx(Si,{windowSize:o,showEditIcon:Ce,children:t.jsx(Ti,{onClick:()=>Y(!q),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:P,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??$e,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>L(!1),drawerSectionStyle:{width:"400px",backgroundColor:be.colors.background}})}):null]})},pi=e=>{const C=et.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:re.deleted.color,bgColor:re.deleted.bgColor,borderColor:re.deleted.borderColor,code:"deleted"}},ui=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,a as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,c as we}from"./index-Bs2B-MQ4.js";import{a as j}from"./sentry-gm2R3TtK.js";import{n as r}from"./mui-snKYaegN.js";import{FG as je,bT as fe}from"./zeni-epic-state-D2RxwWrl.js";import{f as be}from"./VideoPopup-BKLcIVcV-C8tsI7gn.js";import{M as v}from"./usp-line-BBd1wKwW-DO5-Shw0.js";import"./liveblocks-48Yy2aTy.js";import"./core-9PMMelIA.js";import"./recharts-DGmpNqLb.js";import"./lottie-ChwWMuYN.js";import"./analytics-D0z7Cz17.js";import"./lexical-CaQwXIc3.js";import"./utils-C7Aiy3iw.js";import"./VideoPlayer-XU1YwohK-BaDXYiVP.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="91e3548a-7a09-4f11-99cc-216a47cb35d6",i._sentryDebugIdIdentifier="sentry-dbid-91e3548a-7a09-4f11-99cc-216a47cb35d6")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,ae as d,F,o as s,aq as ce,a as me,aR as E,am as pe,y as xe,p as z,cB as he,aS as ue,b9 as ge,c as we}from"./index-qaSB49F0.js";import{a as j}from"./sentry-D4D7HRQR.js";import{n as r}from"./mui-Fyk6sRCR.js";import{FG as je,bT as be}from"./zeni-epic-state-I555vKHy.js";import{f as fe}from"./VideoPopup-Dw57i43Q-BXsiVF5S.js";import{M as v}from"./usp-line-BBd1wKwW-DELeCmm4.js";import"./liveblocks-BmXYR5uO.js";import"./core-D7_k1EhP.js";import"./recharts-j_eh1fXg.js";import"./lottie--pGIoexZ.js";import"./analytics-CO_4s2X8.js";import"./lexical-CGMN4tXG.js";import"./utils-BTQ24URD.js";import"./VideoPlayer-HL-oU9Ri-BnQLsV6M.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="dd557a60-2324-4de8-a445-2c6699723fbb",i._sentryDebugIdIdentifier="sentry-dbid-dd557a60-2324-4de8-a445-2c6699723fbb")}catch{}})();const N="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -58,9 +58,9 @@ import{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,a
58
58
  align-items: center;
59
59
  text-align: start;
60
60
  box-sizing: border-box;
61
- `,f=r(ge)`
61
+ `,b=r(ge)`
62
62
  color: ${i=>i.theme.colors.champion};
63
- `,b=r(ue)`
63
+ `,f=r(ue)`
64
64
  color: ${i=>i.theme.colors.champion};
65
65
  `,y=r(E)`
66
66
  color: ${i=>i.theme.colors.champion};
@@ -81,4 +81,4 @@ import{aw as ne,d as S,q as k,aO as le,V as e,aN as a,fp as ae,bA as de,n as u,a
81
81
  margin: ${s.sp3} auto;
82
82
  max-width: 772px;
83
83
  color: ${i=>i.theme.colors.hero};
84
- `,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:N,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.simplestText.bold}),e.jsx(f,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.aiPoweredText.bold}),e.jsx(f,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.multiLevelApprovalText.bold}),e.jsx(f,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:N,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},_e=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:J,analytics:x,onSetupButtonClick:K,onCreateNewRemiButtonClick:Q,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),re=je(P.loggedInUserRoleMap),w=fe(P.loggedInUserRoleMap)&&!re,oe=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?B?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(be,{onCancelClick:()=>{ie(!1)},videoUrl:J,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:se.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:U}):e.jsx(ke,{children:U}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:B&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{_e as default};
84
+ `,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:N,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(Z,{windowSize:o,children:[e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.simplestText.bold}),e.jsx(b,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.aiPoweredText.bold}),e.jsx(b,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.multiLevelApprovalText.bold}),e.jsx(b,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:N,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},_e=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:J,analytics:x,onSetupButtonClick:K,onCreateNewRemiButtonClick:Q,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),re=je(P.loggedInUserRoleMap),w=be(P.loggedInUserRoleMap)&&!re,oe=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?B?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:J,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:se.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:U}):e.jsx(ke,{children:U}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:B&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{_e as default};