@zeniai/web-cockpit-ui 1.15.16-dev → 1.15.17-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 (290) hide show
  1. package/dist/assets/{ACHDetailsPage-BOZmOJHO-CwAQrPpG.js → ACHDetailsPage-cAgIhKJs-bGTsqigs.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-ZVCJizP9-BEYLvxG6.js → AIPerformancePage-BPwI4kZG-BTP4khzH.js} +12 -12
  3. package/dist/assets/AccountInfoPage-jlXCF7Gn-p294yilG.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-D0wuuzMd-fpNJ2YsG.js → AccountInfoPageContent-CIjrqt8Z-xcHih_xf.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Cfx-lPAZ-BkStU3hi.js → AccountLockedInfoModal-b0SYt4cr-DyDb_wyO.js} +2 -2
  6. package/dist/assets/{AccountReconDetailsDrawerPage-DbHX6rPG-DTTeCxce.js → AccountReconDetailsDrawerPage-CEjWEa01-aoYQi4ku.js} +5 -5
  7. package/dist/assets/{AccountRow-Bk_25FCy-BSk-hvqy.js → AccountRow-C9lnDVNf-86hTjbuw.js} +8 -8
  8. package/dist/assets/{AccountsPromoCardStack-DAXRwY1f-BvuQll0f.js → AccountsPromoCardStack-hzApdgeN-DUJB0-p0.js} +1 -1
  9. package/dist/assets/AddAddressForCardDrawer-BIjROWAw-BSYp9XYN.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CzziHgi7-BQwLxI1X.js → AddToWalletPage-CgCHdO6c-CiVYqd0C.js} +5 -5
  11. package/dist/assets/{AgingReportsPage-Bdi3krKK-CTkT1Zm8.js → AgingReportsPage-B0NKfFq5-Bk4x7HpE.js} +4 -4
  12. package/dist/assets/{AllUserItems-XWDuiug6-DLAl8Xcx.js → AllUserItems-D6uMCcjF-CS_wO3mh.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CaM_AzrU-DPf2WuMd.js → ApAgingDetailPage-CxS9o2Dj-B1fPZ2rF.js} +2 -2
  14. package/dist/assets/{AppBasePage-B7_L4R6d-BHqVR5DP.js → AppBasePage-BnfCjFJA-CQeMBbMI.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DSX1364T-pcNTv-EE.js → AppDrawerContent-CwBFjBnr-CKjzuecx.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DrjPOeyp-C5ILQVYd.js → ApprovalRulesSettingsPage-91Tg_EpH-BzKB_HwN.js} +2 -2
  17. package/dist/assets/{ArAgingChart-M7KUNA4G-DBWSBarK.js → ArAgingChart-6qcRcKoz-MYhKnyKG.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-7lby5mXn-G9J2gxqo.js → ArAgingDetailPage-DmUWtQsX-KXzejd7L.js} +2 -2
  19. package/dist/assets/{AttachmentView-Bsa0u92o-CQtMxB6c.js → AttachmentView-B0oZITps-CNLEqH0L.js} +2 -2
  20. package/dist/assets/{BankAccountSection-BkOlwayA-gKroDONq.js → BankAccountSection-C8G2PrLh-OgTv2VaB.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-uMOXLH0B-Dmm_2ZeO.js → BankAccountWarningSection--DkXEMWU-jfcY3ZKV.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-C_YytTke-BLDqC2se.js → BankConnectionsSettingsPage-DmzolLyN-BNSTT_VR.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DvU5_Rsp-QONja72z.js → BillDetailPage-BuCOe4eB-DBZDvMBw.js} +4 -4
  24. package/dist/assets/BillPayApprovalRuleDetailPage-y3qBdiwE-CP9uLqPK.js +27 -0
  25. package/dist/assets/{BillPayApprovalRulesPage-CA9eufjt-DhCNQwaz.js → BillPayApprovalRulesPage-DpN3O_Q1-ILVegrck.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-DsXPWKAf-CH-kAnh9.js → BillPayPromoPage-Dcly8epm-DNaDxuq-.js} +3 -3
  27. package/dist/assets/{BillPaySetUpPage-CeMhzZ_3-BAILYdpq.js → BillPaySetUpPage-zxd0WLUm-CL6S_QEz.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-BygJjDSp-ZMuXzR1y.js → BillingSettingsPage-Djx3EUQO-2EyCLMZp.js} +11 -11
  29. package/dist/assets/{BillsBulkReviewDrawerPage-WrR46NRa-Cq3ZfsO5.js → BillsBulkReviewDrawerPage-gK7xRoiE-B9WwX7Kq.js} +1 -1
  30. package/dist/assets/{BoxItem-C0M4PSXY-Dz-uzrl9.js → BoxItem-ClRdlCWM-B_aqSV-L.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-C63pUk4d-CY7SQzHf.js → BusinessVerificationPage-Dzp7gFwH-iwUmX4wV.js} +2 -2
  32. package/dist/assets/{CardNumberSubText-B4dAoYDE-S0p2Dvhi.js → CardNumberSubText-CHr49_cJ-9Ya6XjXp.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-B6xvn-y3-C2QB22yP.js → CashbackDetailPage-BNHzTYwa-BdAtNCNi.js} +16 -16
  34. package/dist/assets/{ChargeCardDetailPage-eJJ4MEE6-Cbmrl3gL.js → ChargeCardDetailPage-DWyRrPSy-BvyyNVxe.js} +34 -34
  35. package/dist/assets/{ChargeCardListPage-BYI2HIjA-DQe2h7t9.js → ChargeCardListPage-D3nBV6Fu-DfN7aWAo.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DAVYmKCK-CXpYrtrT.js → ChargeCardListTable-DBYEXr_N-7b006WJ7.js} +28 -28
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-BX5HtOxd-CtFjNufh.js → ChargeCardPaymentHistoryPage-BEvuS2te-BxwCFTIZ.js} +18 -18
  38. package/dist/assets/ChargeCardPromoPage-DxNPvbeh-CTzLEbbH.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-DG1eKhYR-DW3nMBQs.js → ChargeCardSetupPage-BgBF1U8E-DnPnCE_j.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-CvtZtuVC-D3csdiBJ.js → ChargeCardStatementsPage-UttZjyIb-CinG3Yr4.js} +6 -6
  41. package/dist/assets/{CheckDepositDrawerPage-BdacGDpy-B_co6EhK.js → CheckDepositDrawerPage-sXY6MJoX-BBStJHqh.js} +9 -9
  42. package/dist/assets/{CollapsableReportTable-UADp1m_8-CTcsoqje.js → CollapsableReportTable-3luMEAJg-BroWF-FL.js} +60 -60
  43. package/dist/assets/{CompanyOfficerDetailsSection-CaAR0Wvk-CBJ-_ogf.js → CompanyOfficerDetailsSection-wa4YnlL--Bvat7gA-.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-BJN2GEVm-gEElvrvK.js → CompanyPassportCard-FgYHweiL-B5gr1lJ_.js} +6 -6
  45. package/dist/assets/{CompanyPassportPage-D2ALJDF_-B6f-pO9X.js → CompanyPassportPage-B8LoE1o9-B6zE-V-E.js} +1 -1
  46. package/dist/assets/{CompleteProfile-C8X8Z3C2-1FrtaPxU.js → CompleteProfile-6pDQ6JjU-C7odNMQ5.js} +2 -2
  47. package/dist/assets/{ConfettiBurst-DxHzdDPp-Be75-rA7.js → ConfettiBurst-BAIozwVU-BMA4g7cW.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-DePlTE9o.js → ConstrainedInnerElement-BeIpAPjB-CbQ77GJr.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-y-COpdhs-Cw0_CLuv.js → CreateOrEditVendorPage-DMWtQ3qU-Bg7OoiTt.js} +11 -11
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CntYJJ8v-CprMPTAM.js → CreditCardPaymentDrawerPage-OzD38_F8-B8JNfyMQ.js} +5 -5
  51. package/dist/assets/{CurrencySelectField-Dn-hE2az-XRHzVtOt.js → CurrencySelectField-DL4q5vKR-DqpW0Wz5.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B9MZHJVc-CzGOfqlu.js → CustomerOnboardingActivationPage-C8mciX-r-B9Cshw5r.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-Btl2A6Cw-CdJnPywR.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-BCe8BvQF-BsLS_Cn1.js → CustomerOnboardingDetailPageSkeleton-Nl6SOtES-B3qnBN4d.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BHk7rDAg-C5ajOfPI.js → CustomerOnboardingNoStepsPage-CQN8EEU--ChBu6uTX.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-1LvpVpHC-BrVAkLSK.js → CustomerOnboardingPage-B77cjZbE-Do4tQjfo.js} +7 -7
  57. package/dist/assets/CustomerOnboardingProductSuitePage-BYC_Sp__-B35TL-cQ.js +202 -0
  58. package/dist/assets/{Dashboard-CCV0_aCP-BXhr1WNF.js → Dashboard-DAP7UzjW-DBsJoK5k.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-CmoH9Vrc-DJMMkkGF.js → DashboardReportPage-iAA_QiN2-BfmuWrMe.js} +10 -10
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-hw3einS7-BAKkeTFg.js → DashboardSidebarBackgroundAnimation-CIKwGufL-B4WWY8cX.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-DgdkYGjP-cYRUSlBG.js → DepositAccTransactionItem-D3x1jhKt-DssCTMB7.js} +2 -2
  62. package/dist/assets/{DepositAccTransactionListPage-CF0WJn9M-C_3AVCeF.js → DepositAccTransactionListPage-W9xt6kxv-BUhaUskS.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-B12tNa6e-uEIGVaj9.js → DomesticWireDetailsPage-DHUzdqCs-CeJMtDxo.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Dt9yt4Fz-BLty8T-n.js → DownloadOverlay-C8byijvE-DCI_09Q4.js} +1 -1
  65. package/dist/assets/{DrawerPage-Clki97FA-BA9PorYC.js → DrawerPage-DMQ5MoIw-BlXGV-xV.js} +12 -12
  66. package/dist/assets/{EditPeoplePage-CKS_aEZm-D119ukKN.js → EditPeoplePage-D7TQFFBG-Djz1uJLh.js} +3 -3
  67. package/dist/assets/{EditReimbursementDetailPage-CXy2ZWfZ-DpLpJWez.js → EditReimbursementDetailPage-STVvYnku-Dyx2Oikb.js} +1 -1
  68. package/dist/assets/EntityDetailPage-20BKV_TK-B5sqJOYK.js +18 -0
  69. package/dist/assets/{EntitySummarySection-D_YLsP_P-t3_MJbgk.js → EntitySummarySection-6JSSyIPA-K01fPehF.js} +24 -24
  70. package/dist/assets/{ExpenseAutomationOverviewPage-4z3yzHEA-CJviw0EF.js → ExpenseAutomationOverviewPage-DpoYnwJh-DSAhakn4.js} +8 -8
  71. package/dist/assets/{ExpenseAutomationPage-BJ4H_c2z-DDA_nGZx.js → ExpenseAutomationPage--kONBcsX-DlY4RThk.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-CTBD4y1v-BPs_d41G.js → ExpressPayPage-a31-5Bgz-B-4aw0li.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CYuTQWpP-BflQGHBv.js → FeaturePreviewPage-z8BJQeL--ChibcOOA.js} +2 -2
  74. package/dist/assets/{FollowStepsSection-BrpI2HyW-CiBKuMZv.js → FollowStepsSection-Bl933px0-DXKlKasr.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-BcvxLqIL-2_WHm0aW.js → GlobalReviewListPage-BLPF3T4t-0m0mv8R4.js} +7 -7
  76. package/dist/assets/{InformationCardStack-CU4Moqky--vtJfmXM.js → InformationCardStack-BTWe4X6t-DdN7cWvp.js} +2 -2
  77. package/dist/assets/{InsightsCardStack-D8UQiuXZ--_fLkoGW.js → InsightsCardStack-CoSz_FKI-xRb_a3yi.js} +8 -8
  78. package/dist/assets/{InsightsSection-C3X6ZNEt-NjJemZo-.js → InsightsSection-DEnkGYD8-BV7sZQsr.js} +4 -4
  79. package/dist/assets/{IntegrationsSettingsPage-CsLv00HW-BeC7UsBa.js → IntegrationsSettingsPage-CEaBjt99-Do0dnq5V.js} +3 -3
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-DgrN5Xg7-C4XmzhP5.js → InternationalWireSwiftDetailsPage-C1i-ujyZ-DIPsBga8.js} +6 -6
  81. package/dist/assets/{InternationalWireVerificationPage-CvysJNBQ-Ca744cyt.js → InternationalWireVerificationPage-CWBpTNA9-9aWL0J3i.js} +2 -2
  82. package/dist/assets/{InviteFormPage-B3KmRWXd-C2ITeVTl.js → InviteFormPage-B2Rl23Qb-D49rnAc4.js} +17 -17
  83. package/dist/assets/{InvitePageListView-DfpJBZru-tcIB_WKy.js → InvitePageListView-E_2j_tF7-BsS6FATD.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-C5Qgk24s-WY8vJMhk.js → InvitePeoplePage-CljSsdaM-DHNLTMCH.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-BO1i-e_D-BEHL-1J7.js → InvoiceUploadSection-drGgAU5w-CP2A3IhR.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-mPsxt52d-x--Yc1yG.js → IssueChargeCardPage-Cj6pmQbt-DDVdjZ4v.js} +17 -17
  87. package/dist/assets/{LabeledAddressValue-C4fnQSyi-C-QRaLS5.js → LabeledAddressValue-BjCojNni-CsHQb5xA.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-D6dEaI69-Chc-QlAF.js → LabeledAddressValueField-DyHTdGlm-CErilABA.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-B1QdZmvd-IUa4evUP.js → LabeledControlledCheckBoxField-B5Csu2og-C5h8CQSb.js} +1 -1
  90. package/dist/assets/{LabeledCountryMultiSelectField-XeBih_-f-DKxnjH2w.js → LabeledCountryMultiSelectField-Ds0vvyNd-ypZKY9co.js} +12 -12
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BPX2Nrlf-ZlY5YONf.js → LabeledCreatableSingleSelectField-C-dLOvWU-28KwULO3.js} +5 -5
  92. package/dist/assets/LabeledDocumentField-b5xujqjK-HTjOeiZT.js +41 -0
  93. package/dist/assets/{LabeledDropDownFormattedTextField-A-rgip1E-B17ex07S.js → LabeledDropDownFormattedTextField-DHx90GON-Rl0wOSQX.js} +2 -2
  94. package/dist/assets/{LabeledMultiSelectField-Di9Wnifv-ByxiVL3j.js → LabeledMultiSelectField-CEoszkBN-B4_Me-4T.js} +1 -1
  95. package/dist/assets/{LabeledText-38fqkkE--Cee_T29J.js → LabeledText-CRJr2zA8-DRZ423PA.js} +2 -2
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BbF25dUP-BHp0iG9D.js → LabeledUserSingleSelectWithSubtitlesField-CM0HeG1R-pTmkakCa.js} +7 -7
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Dg9_Ww-A-Dic3e3FJ.js → LabeledZeniRolesDropDownField-CR8M-X5s-DPGEl74a.js} +7 -7
  98. package/dist/assets/{LinkJETransactionPage-66mQ4nrK-Bsoo2mEs.js → LinkJETransactionPage-DfY5sKBg-BKNhXIRx.js} +1 -1
  99. package/dist/assets/{LockCardPage-BCqN4K17-Cjzeji2k.js → LockCardPage-CgCv-EKl-CipF6lcu.js} +9 -9
  100. package/dist/assets/{LowBalancePopup-BPk1-eAb-DFTxz9st.js → LowBalancePopup-OUWtUPdo-DRkjFCjE.js} +1 -1
  101. package/dist/assets/MagicLinkACHDetailsPage-DJEu5rMd-BJeKMJK9.js +1 -0
  102. package/dist/assets/MagicLinkDomesticWireDetailsPage--0yYTzva-BnphHyQr.js +1 -0
  103. package/dist/assets/MagicLinkInternationalWireDetailsPage-B9u7g87s-YokU7IH5.js +1 -0
  104. package/dist/assets/MagicLinkSuccessPage-BwN3dPJM-CQeiTIkx.js +31 -0
  105. package/dist/assets/{MagicLinkTitleSection-77rxhjLm-BjRMFjlF.js → MagicLinkTitleSection-C_Xng7ad-D4iutPsA.js} +1 -1
  106. package/dist/assets/MailingDetailsSection-Dmq45H_s-CjyySHTi.js +21 -0
  107. package/dist/assets/{MyBankConnectionsSettingsPage-z0tHaSl1-CfQVHlUR.js → MyBankConnectionsSettingsPage-CNUaVzw3-CZkaA3pm.js} +5 -5
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CwGYwufd-CT3LLyZc.js → MyPendingActivationChargeCardListPage-Dz1U6l9--DwLxZlPN.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-8yBXAre6-DacQsI6-.js → MyProfileSettingsPage-DdlCBRiN-BYlOj9no.js} +4 -4
  110. package/dist/assets/{NavBarWithPicker-C3LVyiC9-etzEx9wd.js → NavBarWithPicker-Cx9v8jpk-DJ52ZXJM.js} +4 -4
  111. package/dist/assets/{NavigationArrow-NuJEpE7O-D8kY8llG.js → NavigationArrow-CNO4O4XS-DUm9WGAp.js} +1 -1
  112. package/dist/assets/{NavigationDots-C7Na64B9-CVWaz9qo.js → NavigationDots-BX9DbCj7-RHGokei7.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-Cus6zYV_-FAQYGhqe.js → NewGlobalMerchantPage-Bo_ZeDQH-CgpotWIt.js} +29 -29
  114. package/dist/assets/NoDataChart-JfED3unL-jJumSwoX.js +26 -0
  115. package/dist/assets/NoDataTable-BFpO3ZtS-ubjUd8M_.js +8 -0
  116. package/dist/assets/{NotFoundPage-RjXioqc8-DtIGcQuh.js → NotFoundPage-D_HhIdYv-DyNtigHQ.js} +6 -6
  117. package/dist/assets/{NotificationSettingsPage-DrDW_LU_-CrTfhQjB.js → NotificationSettingsPage-B2d-vPIZ-WS4EaJDB.js} +4 -4
  118. package/dist/assets/{NotificationsListConfig-C6_ap0JT-D8w6YoUC.js → NotificationsListConfig-C4LF_8h1-ojY4Mfu-.js} +1 -1
  119. package/dist/assets/{NotificationsPage-DOM-Gf5P-DnumyiFl.js → NotificationsPage-7HqRmokr-0AvCCTrK.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CTuBB827-C0LLpOUj.js → OpExByVendorPage-CwD1U9q_-idpf-eH0.js} +1 -1
  121. package/dist/assets/OverlayContainerPage-D4QU0p4o-D2c2jURk.js +11 -0
  122. package/dist/assets/{PandLWithForecastPage-BXaENYdR-D65iSrrB.js → PandLWithForecastPage-CRkDr0QK-D1powlVT.js} +4 -4
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DSnQX90O-DFq5LHyH.js → PaymentAccountSetupBillingAddressSection-B6nTWyOD-gY1zpkFD.js} +6 -6
  124. package/dist/assets/{PeoplePage-BlyVVthI-D_1cj1g5.js → PeoplePage-D5eQETB2-DZx25X-Y.js} +1 -1
  125. package/dist/assets/{Preview-DYusR3hO.js → Preview-Bfns_dDG.js} +1 -1
  126. package/dist/assets/{ProductsCarousel-CAcPH--E-Bb_qjCmp.js → ProductsCarousel-BXPXaIWg-Av-oVPlG.js} +1 -1
  127. package/dist/assets/{PromoBaseCards-BVwZMVeE-B84_P5r4.js → PromoBaseCards-C-S0ckZq-DcP7gArA.js} +1 -1
  128. package/dist/assets/{QBOConnectionDialog-C3OYyhYO-CMjuhlXs.js → QBOConnectionDialog-qqbamtpL-BeJJQ440.js} +1 -1
  129. package/dist/assets/{QBOSetupSection-DQjol-D0-eqxvZA5D.js → QBOSetupSection-CZu_mtMP-CZBINdYC.js} +4 -4
  130. package/dist/assets/ReimbursementApprovalRuleDetailPage-BE-QC1b0-CvaYArLZ.js +32 -0
  131. package/dist/assets/{ReimbursementApprovalRulesPage-Cx0gs7sS-CYC590wb.js → ReimbursementApprovalRulesPage-CXbYB3Y5-Cbew60RV.js} +4 -4
  132. package/dist/assets/{ReimbursementDetailPage-Cs_rmkS8-wwjwvRb9.js → ReimbursementDetailPage-DXMDyCop-DlZGIADX.js} +4 -4
  133. package/dist/assets/{ReimbursementPromoPage-CCFl0kQK-LLEMYe4d.js → ReimbursementPromoPage-DGXHkiBN-DLifue2f.js} +7 -7
  134. package/dist/assets/{ReimbursementSetUpPage-lf3xTVFh-DDKfdVM2.js → ReimbursementSetUpPage-Dd1iGv5X-C_E7fz-A.js} +4 -4
  135. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C5MTFJLG-CF6p2IJ7.js → ReimbursementsBulkReviewDrawerPage-D46qP31Q-DT9YskKf.js} +1 -1
  136. package/dist/assets/{ReloadCard-V_tv6YLR-B4Af3G_4.js → ReloadCard-BJke_yPt-D_L8D7X-.js} +6 -6
  137. package/dist/assets/{ReportTableViewSelector-CWEvGn8L-Dlv8mUdn.js → ReportTableViewSelector-DiYnlME4-BJ1-sTjo.js} +3 -3
  138. package/dist/assets/{ReportsPage-BJOH1wgv-CO7zRrKg.js → ReportsPage-bmKftmYF-NgXuxPpu.js} +1 -1
  139. package/dist/assets/{RevenueChart-C_tSBw_N-BD0DJwPU.js → RevenueChart-DjTdsbym-CUUEbo6t.js} +14 -14
  140. package/dist/assets/{ReviewDetailsPage-CScPf4w3-ByB3b1ie.js → ReviewDetailsPage-NFOdusAU-CVH2L4to.js} +6 -6
  141. package/dist/assets/{ReviewOverlay-BQVwPzKa-ddzk5bgf.js → ReviewOverlay-Q8tlLMbm-BLu76gBy.js} +20 -20
  142. package/dist/assets/{RoleWithToolTip-GCV_l8Ly-C2pYTZmo.js → RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js} +3 -3
  143. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Cgqgn7nk-O0hb5LF0.js → ScheduleDetailsFixedAssetsPage-CpjdnINH-Dzwzq8FX.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsPage-D1EJbzxN-DOCtWqTf.js → ScheduleDetailsPage-DVnetdnH-DhMiGzx8.js} +3 -3
  145. package/dist/assets/{ScheduleSequenceTable-DDhoyPGX-zvxwe9e1.js → ScheduleSequenceTable-rJ0jC94w-DDWgbE_4.js} +14 -14
  146. package/dist/assets/{ScreenRoutes-YzeouUfS.js → ScreenRoutes-0NyWgCAY.js} +1 -1
  147. package/dist/assets/{SetUpAccountSection-AVL_16HQ-j-o6nNSY.js → SetUpAccountSection-BCoHzvyG-CzNKWW7X.js} +1 -1
  148. package/dist/assets/{SignIn-BLUwTp1l-BTGTjmO9.js → SignIn-k3DDmpFU-BAnREigf.js} +14 -14
  149. package/dist/assets/SignInScreen-BOrZAIYm.js +1 -0
  150. package/dist/assets/{SpendManagementListViewPage-DJbNFHvP-QKyzE-ot.js → SpendManagementListViewPage-DCfMKXfi-BWeN8ijV.js} +3 -3
  151. package/dist/assets/{SpendManagementPerTabPage-J5pIRm-Q-CND_3E3i.js → SpendManagementPerTabPage-Hv3QMqv0-CTD5vH6J.js} +16 -16
  152. package/dist/assets/{SpendManagementSection-DZaP5ai6-C9tEMxFA.js → SpendManagementSection-BRp2eDfv-DVKGvM7g.js} +8 -8
  153. package/dist/assets/{StatementItem-D2Fx65LN-CJdCyRP1.js → StatementItem-9DHoMBjx-DlzvIjc2.js} +2 -2
  154. package/dist/assets/StatementsPage-CdOlg2R0-CFHx0zSi.js +58 -0
  155. package/dist/assets/{StatusSwitcher-C5ZrzI8Y-Dj5TyEni.js → StatusSwitcher-B5nSXHv6-DTMRsMtw.js} +1 -1
  156. package/dist/assets/{SubTabSwitcher-BXZxKeq9-B2Zwj5g3.js → SubTabSwitcher-BPSCR7GS-CQQ30d6t.js} +3 -3
  157. package/dist/assets/{SummaryCard-194UToy6-UI_LM1oG.js → SummaryCard-DdYMAiws-C4w7QxN_.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-zcxDUo0t-Do3_cxqD.js → TaskManagementPage-9OEooDk9-BnhlYqUu.js} +21 -21
  159. package/dist/assets/{TimeRangeSwitcher-Bsv7zQmN-uGCucrEy.js → TimeRangeSwitcher-BG9h3Mws-BXPl7KzE.js} +11 -11
  160. package/dist/assets/{TimeframeSwitcher-DtxsNy1Z-Dby2t82a.js → TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js} +6 -6
  161. package/dist/assets/{TimeframeSwitcherWithToggle-B5bFhbvL-Ba9NENkn.js → TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js} +2 -2
  162. package/dist/assets/{TopExCard-CBua66Cj-iZDx6oGD.js → TopExCard-CDAkgH2B-DQW-zWxw.js} +4 -4
  163. package/dist/assets/{TopExDetailPage-DtMA-XMp-BkiYCTbM.js → TopExDetailPage-BN9IdTkO-DE8PmHT3.js} +11 -11
  164. package/dist/assets/{TransactionActivityLogPage-C3BPL8hi-B6EDUUtr.js → TransactionActivityLogPage-CTl6Lo3h-Dr0PqgiK.js} +5 -5
  165. package/dist/assets/{TransactionDetailPage-CeKaduBe-w8WXAz1Q.js → TransactionDetailPage-DSR3itvE-B47s770o.js} +1 -1
  166. package/dist/assets/{TransactionList-CSx8ZCZ--fRx-iJTn.js → TransactionList-wLBz-A1j-R5pqCBUj.js} +7 -7
  167. package/dist/assets/{TransactionListBig-B4cNQY2d-jRs-SXs3.js → TransactionListBig-BA00B8Vn-B52eXfHk.js} +4 -4
  168. package/dist/assets/{TransactionListPage-DHr64V-b-Bgsdc044.js → TransactionListPage-Dyi4SMpD-Bm97EAJv.js} +2 -2
  169. package/dist/assets/{TransactionVendorDetailPage-DsxI8U5b-fUCL3Z3e.js → TransactionVendorDetailPage-6HbXn17w-COo-5ffY.js} +3 -3
  170. package/dist/assets/{TransferDrawerPage-C91TQwZi-CLRJKfIG.js → TransferDrawerPage-GnqDJJ7x-u45NHhBy.js} +1 -1
  171. package/dist/assets/{TreasuryOverviewPage-BoBn_gtF-BBlPDTVn.js → TreasuryOverviewPage-7s3XhxYc-CoT8RYIQ.js} +14 -14
  172. package/dist/assets/{TreasuryPromoPage-CQ-VYEQC-DJZXY5PM.js → TreasuryPromoPage-DFnHMTJ--CP3RuQCD.js} +9 -9
  173. package/dist/assets/{TreasuryStatementsPage-taTRE54D-BRQPl-FH.js → TreasuryStatementsPage-BdUYirAC-Duwk2wsH.js} +1 -1
  174. package/dist/assets/{TreasuryTaxLetterPage-Cxhr51TD-BVmTKq55.js → TreasuryTaxLetterPage-fX08Nflm-B-GslDLQ.js} +2 -2
  175. package/dist/assets/{TrendChart-DATgAEKG-D5uXuHxg.js → TrendChart-mamZxFEf-DPlJCKYL.js} +2 -2
  176. package/dist/assets/{TrendWithTransactions-DqPFuOvC-4qpshT4h.js → TrendWithTransactions-fGuXIDf7-HyuIbA66.js} +1 -1
  177. package/dist/assets/{UncategorizedAccountsMappingPage-BQjXazj4-B0137uG5.js → UncategorizedAccountsMappingPage-FPf4YpN2-Cp3ASbXZ.js} +5 -5
  178. package/dist/assets/{UnitIntegrationPage-BiRGRtpI-Da_V8y5a.js → UnitIntegrationPage-BcIYQ6E_-B6tBJIS1.js} +1 -1
  179. package/dist/assets/{UploadAdditionalDocumentOverlay-DCldWCol-DXBSIbWE.js → UploadAdditionalDocumentOverlay-CFiPe--u-DrxhGkyT.js} +1 -1
  180. package/dist/assets/{Vendor2FAPopup-BpkAiYTA-52BaGnWz.js → Vendor2FAPopup-BreN6fS3-FjXbhU9D.js} +1 -1
  181. package/dist/assets/VendorACHDetailsPage-CP2mHGE7-CG1YPLHx.js +1 -0
  182. package/dist/assets/{VendorDetailPage-DY4iaLtz-BtWSn42W.js → VendorDetailPage-DXKn3qSR-Di8ThCGh.js} +1 -1
  183. package/dist/assets/{VendorDomesticWireDetailsPage-B5Nym5J9-BePP9h_p.js → VendorDomesticWireDetailsPage-7m-21BIT-BVTn5C6b.js} +1 -1
  184. package/dist/assets/{VendorFiling1099EditablePage-Dep7O8Uz-BwVZUQk9.js → VendorFiling1099EditablePage-D5jPoLoj-DhLrefqh.js} +32 -32
  185. package/dist/assets/{VendorFirstReviewPage-CJQIZn8g-Bbp8yC5s.js → VendorFirstReviewPage-Bxj_Far6-DOA9lu2j.js} +21 -21
  186. package/dist/assets/{VendorInternationalWireDetailsPage-CJG5RIa2-CRCBgtxB.js → VendorInternationalWireDetailsPage-DCdiiuBR-D9OAEuuJ.js} +4 -4
  187. package/dist/assets/VendorInternationalWireSwiftDetailsPage-JzRuqiHJ-DYQH4bJe.js +1 -0
  188. package/dist/assets/{VendorsAccountsSection-D65ewlO6-C249PD4b.js → VendorsAccountsSection-BYkKSsB8-BmGLfX_G.js} +3 -3
  189. package/dist/assets/{VerifyDevice-B1_jgwgY-CLr_hT2k.js → VerifyDevice-DxoL8hYf-Cowpahhc.js} +1 -1
  190. package/dist/assets/{VideoPlayer-vWSXteQ6-fekEOFO-.js → VideoPlayer-ByXKIag5-BZsoWnFe.js} +2 -2
  191. package/dist/assets/{VideoPopup-CdsmU6H4-BPO5jUC8.js → VideoPopup-DybLGmZL-CNsVI5bc.js} +3 -3
  192. package/dist/assets/{WarningsDrawerPage-CjgOsD00-De28p6M4.js → WarningsDrawerPage-Ddp3wpvG-CdbbY6NF.js} +3 -3
  193. package/dist/assets/{ZeniAccountDetailPage-DiLnoonB-COe08RHM.js → ZeniAccountDetailPage-C-B9h3wI-CKYwhajY.js} +17 -17
  194. package/dist/assets/{ZeniAccountListViewPage-YfPsO8ls-Ds9pwvuL.js → ZeniAccountListViewPage-CWvKejM--BPGukJA_.js} +1 -1
  195. package/dist/assets/{ZeniAccountNavBarPieces-CHStBvRa-BqDqY_na.js → ZeniAccountNavBarPieces-xyI5r3gJ-CbIslzwK.js} +1 -1
  196. package/dist/assets/{ZeniAccountPromoPage-cEfW88p8-BhWQ-XmY.js → ZeniAccountPromoPage-ClU5aJ3_-4ixwSQil.js} +5 -5
  197. package/dist/assets/{ZeniAccountSetupPage-B20DHYex-D-hB-cgI.js → ZeniAccountSetupPage-BF6_J9le-DCR58vNJ.js} +1 -1
  198. package/dist/assets/{ZeniCopyright-BROHmszx-BFJ7fRMA.js → ZeniCopyright-CyBZnbZa-D5SmAZYL.js} +1 -1
  199. package/dist/assets/{ZeniTransferAmountSlider-DZZrrFXf-Cq4B23lv.js → ZeniTransferAmountSlider-QODQj6J3-nB7ivh3S.js} +1 -1
  200. package/dist/assets/{add-to-wallet-DgdBD8_G-AfkxTSja.js → add-to-wallet-DgdBD8_G-l6e6C-pa.js} +1 -1
  201. package/dist/assets/{analytics-Dz3HJTKp.js → analytics-DGcxWyl6.js} +1 -1
  202. package/dist/assets/analyticsHelper-BcBQi1qY.js +1 -0
  203. package/dist/assets/{analyticsHelper-FJ-cS8qS-D_9plNYH.js → analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js} +1 -1
  204. package/dist/assets/{arrow-south-east-round-PEovUgvH-DDEpjXQ7.js → arrow-south-east-round-PEovUgvH-C0A9x354.js} +1 -1
  205. package/dist/assets/{auto-transfer-rule-mbafm5D3-CB2yKaeg.js → auto-transfer-rule-mbafm5D3-CC0rbz99.js} +1 -1
  206. package/dist/assets/chartTypes-CnipzTeX-DGSU_TZ0.js +1 -0
  207. package/dist/assets/{commonDimensions-BpYNnQtf-GFURsh40.js → commonDimensions-DmFc7WqO-CxyyXmLy.js} +1 -1
  208. package/dist/assets/{commonTypes-BVbA7QjV-C2OAdMb3.js → commonTypes-CU0qY6Px-ZdnVolMx.js} +1 -1
  209. package/dist/assets/{constants-D8qNj5Es.js → constants-jbgzJYdx.js} +1 -1
  210. package/dist/assets/{core-xud19niX.js → core-BMaLzXUJ.js} +1 -1
  211. package/dist/assets/{dash.all.min-Dmsiq7DL.js → dash.all.min-DmpFQIVa.js} +1 -1
  212. package/dist/assets/{detailCommon-BRja9H93-CS4qaApq.js → detailCommon-x-UFksNz-DKaz3zHe.js} +1 -1
  213. package/dist/assets/{downloadPdf-WDHjFv79-CGfEvBvA.js → downloadPdf-D1grj9oX-Bei5Wpqc.js} +1 -1
  214. package/dist/assets/{empty-BU3-uTyA.js → empty-CxyNypVD.js} +1 -1
  215. package/dist/assets/{empty-ClP26WFk.js → empty-DJguQx7A.js} +1 -1
  216. package/dist/assets/{epic-ff9tSPeN.js → epic-DJmh-RNR.js} +2 -2
  217. package/dist/assets/{gift-box-Cmt9OgIZ-Ba1CSAo6.js → gift-box-Cmt9OgIZ-ZuOwWA2g.js} +1 -1
  218. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CATaPbQ1.js → graphic-no-data-l-DU4J8fDt-CR5EZc8Z.js} +1 -1
  219. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B_yV26zM.js → graphic-no-data-net-burn-l-CzmycA0m-BhBXhGOx.js} +1 -1
  220. package/dist/assets/{handshake-BPg58FML-CxOrxIUO.js → handshake-BPg58FML-DiPOUMao.js} +1 -1
  221. package/dist/assets/{index-CT3iqTha.js → index-C3zM8gb6.js} +1 -1
  222. package/dist/assets/{index-2wNtQNIE.js → index-CQmr12-Z.js} +1 -1
  223. package/dist/assets/{index-_dimXoCh.js → index-DKka6liW.js} +1 -1
  224. package/dist/assets/{index-DJjwW14X.js → index-DPwk4vO3.js} +1 -1
  225. package/dist/assets/{index-D6iLD7c3.js → index-Dw_2FdYw.js} +1 -1
  226. package/dist/assets/{index-6sX8sCRU.js → index-rJQoaAfw.js} +669 -669
  227. package/dist/assets/{index-ovnKg3OB.js → index-tuFs6sMC.js} +1 -1
  228. package/dist/assets/{lexical-CFjIG720.js → lexical-CyZM9SwL.js} +1 -1
  229. package/dist/assets/{liveblocks-BAOmiMpj.js → liveblocks-CohL7dW6.js} +1 -1
  230. package/dist/assets/{lottie-cQKxXDSP.js → lottie-XKgYVRq1.js} +1 -1
  231. package/dist/assets/{mapLoadingInProgressToTreeNode-C_5Bb47i-DD_ATbZD.js → mapLoadingInProgressToTreeNode-gyu3qs1Z-SebMrCb0.js} +1 -1
  232. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BlrJTKah-hwelD0Z1.js → mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js} +1 -1
  233. package/dist/assets/{mapSpacerToTreeNode-DvdWKHfX-BsRKsR7W.js → mapSpacerToTreeNode-D_rRYkys-BvhCp_uR.js} +1 -1
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-8JwIYBnd-DXtmYfY7.js +1 -0
  235. package/dist/assets/mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js +1 -0
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CCAWuSrJ-B5KhCzdx.js +1 -0
  237. package/dist/assets/{mui-BKJrVh4W.js → mui-KNfEk2A1.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-D1XFg97i.js → page-detail-CWX5S47F-BLbwsJjf.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-BLfsH1I8.js → panelSelectedMixin-CzfD5-Zs-PdsDXPWw.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-CU3HgAhI.js → radio-default-CiSgisfh-_DAtDxCX.js} +1 -1
  241. package/dist/assets/{react-CN5Npsqf.js → react-CPz-xjGo.js} +2 -2
  242. package/dist/assets/{react-CrEDpago.js → react-CX71OnYA.js} +1 -1
  243. package/dist/assets/{react-DsYqgnFz.js → react-Cbh1mkS2.js} +1 -1
  244. package/dist/assets/{react-B_dpn2x_.js → react-CfuDRhRn.js} +1 -1
  245. package/dist/assets/{react-CPPpMWlr.js → react-DOhUJ6O2.js} +1 -1
  246. package/dist/assets/{react-CLJLIrqx.js → react-H0CMmi2N.js} +1 -1
  247. package/dist/assets/{react-B_IkKKOF.js → react-KKmCM6TX.js} +1 -1
  248. package/dist/assets/{react-4VjXw9yg.js → react-wx6Np1L0.js} +1 -1
  249. package/dist/assets/{recharts-07URl5uF.js → recharts-D8Mh9GJw.js} +1 -1
  250. package/dist/assets/{sentry-BsWDfhY_.js → sentry-CGE1ab0x.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-DW8TK-Jl.js → shield-DOlUxcFf-BeHXxYmi.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-BcVCEfwr-D-kim1rY.js +1 -0
  253. package/dist/assets/{toChartData-B3ouXKAd-DqPDcbms.js → toChartData-VTidOIL7-CTZNeqK0.js} +1 -1
  254. package/dist/assets/{uploadAttachment-DNNG-CMy-C0-pn6r-.js → uploadAttachment-CwSRD9la-Dwn2_OC8.js} +1 -1
  255. package/dist/assets/{uploadReceipts-Dge0cNF1-DDO6BRYH.js → uploadReceipts-Dge0cNF1-COPT6pnG.js} +1 -1
  256. package/dist/assets/{url-B-qq-bwJ.js → url-CxS4k21H.js} +1 -1
  257. package/dist/assets/{url-CPnr4zl0.js → url-D3fzoRiq.js} +1 -1
  258. package/dist/assets/{useLongPress-GCK2COYQ-DDMxNeC6.js → useLongPress-GCK2COYQ-YmFx62lI.js} +1 -1
  259. package/dist/assets/{usp-line-BBd1wKwW-CIbBacHX.js → usp-line-BBd1wKwW-lvUUHuIi.js} +1 -1
  260. package/dist/assets/{utils-lvnYc7Lx.js → utils-Co3Y654K.js} +1 -1
  261. package/dist/assets/{zeni-epic-state-DEUUJaZy.js → zeni-epic-state-CiJSQQSe.js} +3 -3
  262. package/dist/index.html +1 -1
  263. package/package.json +3 -3
  264. package/dist/assets/AccountInfoPage-DF6IU0EG-CpTk1WUV.js +0 -18
  265. package/dist/assets/AddAddressForCardDrawer-DNGQGGYg-Bf67FiSu.js +0 -6
  266. package/dist/assets/BillPayApprovalRuleDetailPage-UeVxIxfF-dC_CchwE.js +0 -27
  267. package/dist/assets/ChargeCardPromoPage-DuQe7BpX-C5KRheHX.js +0 -222
  268. package/dist/assets/CustomerOnboardingContainerPage-eR0yY2uX-BoA9sGdB.js +0 -1
  269. package/dist/assets/CustomerOnboardingProductSuitePage-DMYHMJXg-BO7BCZyk.js +0 -202
  270. package/dist/assets/EntityDetailPage-B3TQ5hCP-uPk3J70w.js +0 -18
  271. package/dist/assets/LabeledDocumentField-Bjg8sNsg-Da4_7xZ7.js +0 -41
  272. package/dist/assets/MagicLinkACHDetailsPage-DM7EUUU7-8dRO9py4.js +0 -1
  273. package/dist/assets/MagicLinkDomesticWireDetailsPage-DKrGgFTu-86-Eks-y.js +0 -1
  274. package/dist/assets/MagicLinkInternationalWireDetailsPage-B3OpSWB3-B8JXsL7N.js +0 -1
  275. package/dist/assets/MagicLinkSuccessPage-CphaJa4k-D3EkcDWm.js +0 -31
  276. package/dist/assets/MailingDetailsSection-BJfZvT0b-Dh4yo_Lj.js +0 -21
  277. package/dist/assets/NoDataChart-B3s_7m2n-CAPJcqJ5.js +0 -26
  278. package/dist/assets/NoDataTable-CMpypnTw-DT8ESeaQ.js +0 -8
  279. package/dist/assets/OverlayContainerPage-D4QU0p4o-bJWKRuRf.js +0 -11
  280. package/dist/assets/ReimbursementApprovalRuleDetailPage-llw4ONPo-DU98N3RU.js +0 -32
  281. package/dist/assets/SignInScreen-DEP1cN19.js +0 -1
  282. package/dist/assets/StatementsPage-BCh51lDW-CdawgjO3.js +0 -58
  283. package/dist/assets/VendorACHDetailsPage-tUuZzJnN-BytxtWo8.js +0 -1
  284. package/dist/assets/VendorInternationalWireSwiftDetailsPage-DZabfieM-CGwU72CX.js +0 -1
  285. package/dist/assets/analyticsHelper-C5JtTAtK.js +0 -1
  286. package/dist/assets/chartTypes-DJdbX13L-CYrZAg19.js +0 -1
  287. package/dist/assets/mapTimeframeBalancesToTreeNode-88qIN3FA-DT4qEBfo.js +0 -1
  288. package/dist/assets/mapTimeframeBalancesToTreeNode-AkxvYRty-Btx7Wg6i.js +0 -1
  289. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B5MDTbLz-KZ9-cjv6.js +0 -1
  290. package/dist/assets/toCOABalancesWithID-Bq4Xe7az-C9YUCLvJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{V as o,C as N,d as I,J as T,bC as ne,F as c,r as re,aP as A,T as ae,b as ie,y as W,o as s,cd as ce,aD as le,aV as de,R as ge,cD as pe,by as me,u as $,cE as he,aT as fe,aU as ue,ba as xe,bL as we}from"./index-6sX8sCRU.js";import{a as M}from"./sentry-BsWDfhY_.js";import{n as r}from"./mui-BKJrVh4W.js";import{N as Se}from"./NavBarWithPicker-C3LVyiC9-etzEx9wd.js";import{m as je}from"./analyticsHelper-FJ-cS8qS-D_9plNYH.js";import{M as be}from"./TimeframeSwitcherWithToggle-B5bFhbvL-Ba9NENkn.js";import{I as ye,a as $e}from"./CollapsableReportTable-UADp1m_8-CTcsoqje.js";import{M as V}from"./usp-line-BBd1wKwW-CIbBacHX.js";import{F5 as Ce,F6 as Pe}from"./zeni-epic-state-DEUUJaZy.js";import{D as ke,T as ze,C as Te}from"./mapSectionWithAcOnlyToTreeNode-BlrJTKah-hwelD0Z1.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-88qIN3FA-DT4qEBfo.js";import"./liveblocks-BAOmiMpj.js";import"./core-xud19niX.js";import"./recharts-07URl5uF.js";import"./lottie-cQKxXDSP.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.js";import"./TimeframeSwitcher-DtxsNy1Z-Dby2t82a.js";import"./AccountRow-Bk_25FCy-BSk-hvqy.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]="caf93738-d2f2-4e89-a132-007aba240717",e._sentryDebugIdIdentifier="sentry-dbid-caf93738-d2f2-4e89-a132-007aba240717")}catch{}})();const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",J="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
1
+ import{V as o,D as N,e as I,J as T,bC as ne,F as c,r as re,aP as A,T as ie,b as ae,y as W,o as s,cd as ce,aD as le,aV as de,R as ge,cD as pe,by as me,u as $,cE as he,aT as fe,aU as ue,ba as xe,bL as we}from"./index-rJQoaAfw.js";import{a as M}from"./sentry-CGE1ab0x.js";import{n as r}from"./mui-KNfEk2A1.js";import{N as Se}from"./NavBarWithPicker-Cx9v8jpk-DJ52ZXJM.js";import{m as je}from"./analyticsHelper-HEUQhbuJ-Cq2Mtjgc.js";import{M as be}from"./TimeframeSwitcherWithToggle-r8YzbhCn-DALUFB9M.js";import{I as ye,a as $e}from"./CollapsableReportTable-3luMEAJg-BroWF-FL.js";import{M as V}from"./usp-line-BBd1wKwW-lvUUHuIi.js";import{F5 as Ce,F6 as Pe}from"./zeni-epic-state-CiJSQQSe.js";import{D as ke,T as ze,C as Te}from"./mapSectionWithAcOnlyToTreeNode-SPabSQrM-Cf3ilJGA.js";import{s as G}from"./mapTimeframeBalancesToTreeNode-BwS2KbWd-CAuCdcVv.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";import"./TimeframeSwitcher-BlkN2ln5-CbPVM8iC.js";import"./AccountRow-C9lnDVNf-86hTjbuw.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]="d0d9d97f-8ee0-4161-9cdb-4358db584009",e._sentryDebugIdIdentifier="sentry-dbid-d0d9d97f-8ee0-4161-9cdb-4358db584009")}catch{}})();const H="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual.png",J="https://storage.googleapis.com/zeni-apis.appspot.com/images/forecast-overview-vs-actual-dark.png",ve=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -70,7 +70,7 @@ import{V as o,C as N,d as I,J as T,bC as ne,F as c,r as re,aP as A,T as ae,b as
70
70
  margin: ${s.sp3} auto;
71
71
  max-width: 422px;
72
72
  color: ${e=>e.theme.colors.hero};
73
- `,Me=()=>{const e=I(),t=T();return o.jsxs(q,{windowSize:t,children:[o.jsx(K,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:J,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(Q,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(E,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(E,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(E,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},_e=()=>{const e=I(),t=T();return o.jsxs(q,{windowSize:t,children:[o.jsxs(Q,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(K,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:J,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Be=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const i=I(),l=T(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ve,{"data-testid":A("forecast-promo-page"),children:[o.jsx(ne,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:i.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(Le,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Fe,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Ie,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Me,{}):o.jsx(_e,{}),o.jsxs(Ne,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(re,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Ae,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Oe(e,t,n=!0){const i=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],m=G({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(a=>{if(Ce(a)===!0){const u=e.sections[a];if(u==null)return;u.accountGroups.length>0?p.push(ke({section:e.sections[a],sectionType:a,numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t})):p.push(ze({sectionWithAcOnly:e.sections[a],sectionType:a,numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t}))}else Pe(a)===!0&&p.push(Te({calculatedSection:e.calculatedSections[a],numOfBalances:l,title:i.sections[a],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[m]:[],contentNodes:p}}function Ee(e,t,n,i=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=G({balances:l,config:t,nodeId:e.contentNodes[0].id}),m=e.contentNodes.slice(1);return m.forEach(p=>te(p,t)),{config:t,headerNodes:i?[d]:[],contentNodes:[d,...m]}}function te(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>te(n,t))}const L={contentPaddingLeft:new W($[3],$[3],$[8]),contentPaddingRight:new W($[3],$[3],$[8])},Ve=r.div`
73
+ `,Me=()=>{const e=I(),t=T();return o.jsxs(q,{windowSize:t,children:[o.jsx(K,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:J,alt:"forecast-promo",style:{width:"100%",height:"auto"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"100%",height:"auto"}})})}),o.jsxs(Q,{windowSize:t,children:[o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(E,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(E,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(E,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(O,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]})]})},_e=()=>{const e=I(),t=T();return o.jsxs(q,{windowSize:t,children:[o.jsxs(Q,{windowSize:t,children:[o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(Z,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.accuratelyText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"275px",alignSelf:"end"},children:[o.jsx(P,{children:o.jsx(ee,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.trackText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.trackText.regular})]})]}),o.jsxs(C,{windowSize:t,style:{width:"408px"},children:[o.jsx(P,{children:o.jsx(oe,{})}),o.jsxs(k,{children:[o.jsx(B,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.bold}),o.jsx(_,{children:c.getLocalizedStrings().forecastPromoPage.preciseText.regular})]})]})]}),o.jsx(K,{windowSize:t,children:o.jsx(X,{windowSize:t,children:e.mode==="dark"?o.jsx("img",{src:J,alt:"forecast-promo",style:{width:"640px",height:"402px"}}):o.jsx("img",{src:H,alt:"forecast-promo",style:{width:"640px",height:"402px"}})})})]})},Be=({meetingUrl:e,onBackClick:t,onClickMenuIcon:n})=>{const a=I(),l=T(),d=()=>{window.open(e.toString(),"_blank")};return o.jsxs(ve,{"data-testid":A("forecast-promo-page"),children:[o.jsx(ne,{title:c.getLocalizedStrings().forecastPromoPage.title,backgroundColor:a.colors.grey4,onBackClick:t,showMenuIcon:l==="medium-compact"||l==="small",onClickMenuIcon:n,source:"ForecastPromoPage"}),o.jsxs(Le,{"data-testid":A("forecast-promo-container"),windowSize:l,children:[l==="small"?o.jsx(Fe,{children:c.getLocalizedStrings().forecastPromoPage.promoText}):o.jsx(Ie,{children:c.getLocalizedStrings().forecastPromoPage.promoText}),l==="small"?o.jsx(Me,{}):o.jsx(_e,{}),o.jsxs(Ne,{"data-testid":A("forecast-promo-bottom-container"),children:[o.jsx(re,{variant:"primary",label:c.getLocalizedStrings().forecastPromoPage.meetingButton,onClick:d}),o.jsx(Ae,{children:c.getLocalizedStrings().forecastPromoPage.forecastUpload})]})]})]})};function Oe(e,t,n=!0){const a=c.getLocalizedStrings().reports,l=e.filter.balancesRange.numberOfPeriods,d=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?e.sections.expenses.balances:e.sections.income!=null?e.sections.income.balances:[],m=G({balances:d,config:t}),p=[];return p.push(m),e.idsInOrder.forEach(i=>{if(Ce(i)===!0){const u=e.sections[i];if(u==null)return;u.accountGroups.length>0?p.push(ke({section:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t})):p.push(ze({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}else Pe(i)===!0&&p.push(Te({calculatedSection:e.calculatedSections[i],numOfBalances:l,title:a.sections[i],isLastNode:!0,config:t}))}),{config:t,headerNodes:n?[m]:[],contentNodes:p}}function Ee(e,t,n,a=!0){Object.assign(e.config,t);const l=n.sections.expenses.balances.length>0?[...n.sections.expenses.balances,...n.sections.expenses.additionalBalances]:[...n.sections.income.balances,...n.sections.income.additionalBalances],d=G({balances:l,config:t,nodeId:e.contentNodes[0].id}),m=e.contentNodes.slice(1);return m.forEach(p=>te(p,t)),{config:t,headerNodes:a?[d]:[],contentNodes:[d,...m]}}function te(e,t){Object.assign(e.reportElementData.config,t),e.children.forEach(n=>te(n,t))}const L={contentPaddingLeft:new W($[3],$[3],$[8]),contentPaddingRight:new W($[3],$[3],$[8])},Ve=r.div`
74
74
  display: flex;
75
75
  flex: 1 1 auto;
76
76
  min-height: 100%;
@@ -92,7 +92,7 @@ import{V as o,C as N,d as I,J as T,bC as ne,F as c,r as re,aP as A,T as ae,b as
92
92
  justify-content: center;
93
93
  align-items: center;
94
94
  background-color: ${e=>e.theme.colors.grey4};
95
- `,U=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?o.jsx(De,{children:o.jsx(ae,{size:"ExtraLarge",start:!0})}):null,We=r.div`
95
+ `,U=({fetchState:e})=>e==="In-Progress"||e==="Not-Started"?o.jsx(De,{children:o.jsx(ie,{size:"ExtraLarge",start:!0})}):null,We=r.div`
96
96
  display: flex;
97
97
  width: 100%;
98
98
  flex-direction: column;
@@ -104,4 +104,4 @@ import{V as o,C as N,d as I,J as T,bC as ne,F as c,r as re,aP as A,T as ae,b as
104
104
  align-items: center;
105
105
  justify-content: center;
106
106
  margin-bottom: ${s.sp3};
107
- `,Ye=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:i,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:a,onClickMenuIcon:u})=>{const h=T(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ie.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:a},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},b={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:i,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(We,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),a?"":o.jsx(Ue,{children:o.jsx(be,{...b})})]})},Ge=({report:e,type:t,isActualVsForecastOn:n,compareMode:i,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:a,onNodeCollapseToggled:u})=>{const h=I(),f=T(),[x,b]=M.useState(void 0),[g,z]=M.useState(void 0),y=!(f==="small"||f==="medium-compact"),F=n===!0?"actual_vs_forecast":"none",v=`forecast.${e.reportId}`;return ce({componentName:v,enabled:e.fetchState==="Completed"}),M.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:$e(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:we()};if(x==null||!le(g,e)){const w=Oe(e,S,y);z(e),b(w)}else{const w=Ee(x,S,e,y);b(w)}},[t,n,e]),x!=null?o.jsx(ye,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:i,isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:L.contentPaddingLeft.value(f),right:L.contentPaddingRight.value(f)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:m,onScroll:p,nodeOpenStatus:a,onNodeCollapseToggled:u}):null};function uo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:i,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:a,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:F,onBackClick:v,onClickMenuIcon:S}){const w=[i.fetchState,d.fetchState],R=l?.index??-1;return se(w)===!0||i.fetchState==="Completed"&&i.forecasts.length===0?o.jsx(Be,{meetingUrl:p,onBackClick:v,onClickMenuIcon:S}):Y([i.fetchState])===!0?o.jsx(U,{fetchState:Je(w)}):o.jsxs(Ve,{children:[o.jsx(Ye,{forecastList:i.forecasts,selectedForecastIndex:R,onForecastSelectionChanged:(j,D)=>{a?.trackForecastSwitch(N.Event.profitAndLossWithForecast,i.forecasts[D].name),u?.(j,D)},vsActualOn:t,onVsActualChanged:j=>{a?.trackForecastVsActualMode(N.Event.profitAndLossWithForecast,i.forecasts[R].name,j),f?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{a?.trackTimeframeSwitch(je(j),N.Event.profitAndLossWithForecast),h?.(j)},onBackClick:v,isPandLReportFetching:Y([d.fetchState]),onClickMenuIcon:S}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Re,{children:o.jsx(Ge,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:F})})]})}const He=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),Y=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Je=e=>He(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{uo as default,Y as isAnyInProgress};
107
+ `,Ye=({forecastList:e,selectedForecastIndex:t,onForecastSelectionChanged:n,vsActualOn:a,onVsActualChanged:l,selectedTimeframe:d,onTimeframeChanged:m,onBackClick:p,isPandLReportFetching:i,onClickMenuIcon:u})=>{const h=T(),f=[];for(let g=0;g<e.length;++g)f.push(`${g}`);const x={backgroundColor:"transparent",picker:{backgroundColor:"transparent",pickerValues:f,valueToLabel:g=>e[parseInt(g)]?.name??"",selectedValue:`${t}`,titleTextStyle:ae.largeMedium,onPickerSelectionChanged:g=>{if(g!=null){const z=e[parseInt(g)];n?.(z.id,parseInt(g))}},styles:{justifyContent:h==="small"?"left":"center"},isPickerDisabled:i},onBackClick:p,showMenuIcon:h==="medium-compact"||h==="small",onClickMenuIcon:u},b={toggle:{label:c.getLocalizedStrings().reports.forecast.vsActual,isOn:a,onValueChanged:l},timeframe:{allowedTimeframes:["month","quarter","year"],selectedTimeframe:d,onTimeframeSelectionChanged:g=>m?.(g)}};return o.jsxs(We,{paddingLeft:L.contentPaddingLeft.value(h),paddingRight:L.contentPaddingRight.value(h),children:[o.jsx(Se,{...x}),i?"":o.jsx(Ue,{children:o.jsx(be,{...b})})]})},Ge=({report:e,type:t,isActualVsForecastOn:n,compareMode:a,onAccountBalanceClick:l,onCompareModeChanged:d,scrollPosition:m,onTableScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:u})=>{const h=I(),f=T(),[x,b]=M.useState(void 0),[g,z]=M.useState(void 0),y=!(f==="small"||f==="medium-compact"),F=n===!0?"actual_vs_forecast":"none",v=`forecast.${e.reportId}`;return ce({componentName:v,enabled:e.fetchState==="Completed"}),M.useEffect(()=>{const S={reportId:`${e.reportId}+${e.forecast?.id}`,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:F,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:$e(t)===!0&&n===!1?"filter_forecast_nil_balances":"filter_actual_forecast_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:we()};if(x==null||!le(g,e)){const w=Oe(e,S,y);z(e),b(w)}else{const w=Ee(x,S,e,y);b(w)}},[t,n,e]),x!=null?o.jsx(ye,{backgroundColor:new de(h.colors.grey4),rootNodes:x,type:t,compareMode:a,isSticky:{isStickyHeader:y,isStickyName:y},treeNodePadding:{left:L.contentPaddingLeft.value(f),right:L.contentPaddingRight.value(f)},onAccountClick:l==null?void 0:(S,w)=>{l(S,w)},onCompareModeChanged:d,scrollPosition:m,onScroll:p,nodeOpenStatus:i,onNodeCollapseToggled:u}):null};function uo({selectedTimeframe:e,isForecastVsActualOn:t,compareMode:n,forecastList:a,selectedForecast:l,pandLreport:d,type:m,meetingUrl:p,analytics:i,onForecastSelectionChanged:u,onTimeframeChanged:h,onForecastVsActualsCompareToggle:f,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:F,onBackClick:v,onClickMenuIcon:S}){const w=[a.fetchState,d.fetchState],R=l?.index??-1;return se(w)===!0||a.fetchState==="Completed"&&a.forecasts.length===0?o.jsx(Be,{meetingUrl:p,onBackClick:v,onClickMenuIcon:S}):Y([a.fetchState])===!0?o.jsx(U,{fetchState:Je(w)}):o.jsxs(Ve,{children:[o.jsx(Ye,{forecastList:a.forecasts,selectedForecastIndex:R,onForecastSelectionChanged:(j,D)=>{i?.trackForecastSwitch(N.Event.profitAndLossWithForecast,a.forecasts[D].name),u?.(j,D)},vsActualOn:t,onVsActualChanged:j=>{i?.trackForecastVsActualMode(N.Event.profitAndLossWithForecast,a.forecasts[R].name,j),f?.(j)},selectedTimeframe:e,onTimeframeChanged:j=>{i?.trackTimeframeSwitch(je(j),N.Event.profitAndLossWithForecast),h?.(j)},onBackClick:v,isPandLReportFetching:Y([d.fetchState]),onClickMenuIcon:S}),d.fetchState==="In-Progress"?o.jsx(U,{fetchState:"In-Progress"}):o.jsx(Re,{children:o.jsx(Ge,{report:d,type:m,isActualVsForecastOn:t,compareMode:n,onAccountBalanceClick:x,onCompareModeChanged:b,scrollPosition:g,onTableScroll:z,nodeOpenStatus:y,onNodeCollapseToggled:F})})]})}const He=e=>e.reduce((t,n)=>t===!0&&n==="Completed",!0),se=e=>e.reduce((t,n)=>t===!0||n==="Error",!1),Y=e=>e.reduce((t,n)=>t===!0||n==="Not-Started"||n==="In-Progress",!1),Je=e=>He(e)===!0?"Completed":se(e)===!0?"Error":"In-Progress";export{uo as default,Y as isAnyInProgress};
@@ -1,5 +1,5 @@
1
- import{B as ue,aQ as Ne,b as ee,o as u,p as q,J as ce,V as s,bS as Ue,d as je,cJ as Me,aV as ne,F as ke,y as oe,bw as Ve,bV as Fe,al as Ae,aR as qe,ae as de,u as He,gX as Je,am as Ke,O as Ge}from"./index-6sX8sCRU.js";import{P as l,a as L}from"./sentry-BsWDfhY_.js";import{n as y}from"./mui-BKJrVh4W.js";import{P as d}from"./core-xud19niX.js";import{n as ae}from"./commonTypes-BVbA7QjV-C2OAdMb3.js";import{F as Ye}from"./SetUpAccountSection-AVL_16HQ-j-o6nNSY.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="4895e225-2e54-4547-8ed0-2b86729fc9d9",t._sentryDebugIdIdentifier="sentry-dbid-4895e225-2e54-4547-8ed0-2b86729fc9d9")}catch{}})();function pe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pe(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function te(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(e){return typeof e}:te=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(t)}function Ie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Ze(t,e)||Qe(t,e)||et()}function Xe(t){if(Array.isArray(t))return t}function Ze(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],o=!0,i=!1,c,p;try{for(r=r.call(t);!(o=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));o=!0);}catch(a){i=!0,p=a}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw p}}return n}}function Qe(t,e){if(t){if(typeof t=="string")return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(t,e)}}function me(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var o=!!n,i=l.useRef(n);l.useEffect(function(){i.current=n},[n]),l.useEffect(function(){if(!o||!e)return function(){};var c=function(){i.current&&i.current.apply(i,arguments)};return e.on(r,c),function(){e.off(r,c)}},[o,r,e,i])},ie=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},H=function(e){return e!==null&&te(e)==="object"},tt=function(e){return H(e)&&typeof e.then=="function"},rt=function(e){return H(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},he="[object Object]",nt=function t(e,r){if(!H(e)||!H(r))return e===r;var n=Array.isArray(e),o=Array.isArray(r);if(n!==o)return!1;var i=Object.prototype.toString.call(e)===he,c=Object.prototype.toString.call(r)===he;if(i!==c)return!1;if(!i&&!n)return e===r;var p=Object.keys(e),a=Object.keys(r);if(p.length!==a.length)return!1;for(var h={},f=0;f<p.length;f+=1)h[p[f]]=!0;for(var x=0;x<a.length;x+=1)h[a[x]]=!0;var m=Object.keys(h);if(m.length!==p.length)return!1;var w=e,b=r,S=function(I){return t(w[I],b[I])};return m.every(S)},Oe=function(e,r,n){return H(e)?Object.keys(e).reduce(function(o,i){var c=!H(r)||!nt(e[i],r[i]);return n.includes(i)?(c&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):c?fe(fe({},o||{}),{},Ie({},i,e[i])):o},null):null},Le="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ge=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(e===null||rt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(tt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(o){return ge(o,r)})};var n=ge(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},at=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},re=l.createContext(null);re.displayName="ElementsContext";var Re=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},Te=function(e){var r=e.stripe,n=e.options,o=e.children,i=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(n):null}}),p=$e(c,2),a=p[0],h=p[1];l.useEffect(function(){var m=!0,w=function(S){h(function(E){return E.stripe?E:{stripe:S,elements:S.elements(n)}})};return i.tag==="async"&&!a.stripe?i.stripePromise.then(function(b){b&&m&&w(b)}):i.tag==="sync"&&!a.stripe&&w(i.stripe),function(){m=!1}},[i,a,n]);var f=ie(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=ie(n);return l.useEffect(function(){if(a.elements){var m=Oe(n,x,["clientSecret","fonts"]);m&&a.elements.update(m)}},[n,x,a.elements]),l.useEffect(function(){at(a.stripe)},[a.stripe]),l.createElement(re.Provider,{value:a},o)};Te.propTypes={stripe:d.any,options:d.object};var it=function(e){var r=l.useContext(re);return Re(r,e)},st=function(){var e=it("calls useElements()"),r=e.elements;return r};d.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var ct=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},lt=l.createContext(null);lt.displayName="CustomCheckoutContext";d.any,d.shape({clientSecret:d.string.isRequired,elementsOptions:d.object}).isRequired;var se=function(e){var r=l.useContext(_e),n=l.useContext(re);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?ct(r,e):Re(n,e)},ut=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},v=function(e,r){var n="".concat(ut(e),"Element"),o=function(a){var h=a.id,f=a.className,x=a.options,m=x===void 0?{}:x,w=a.onBlur,b=a.onFocus,S=a.onReady,E=a.onChange,I=a.onEscape,U=a.onClick,M=a.onLoadError,V=a.onLoaderStart,D=a.onNetworksChange,$=a.onConfirm,J=a.onCancel,B=a.onShippingAddressChange,N=a.onShippingRateChange,R=se("mounts <".concat(n,">")),_="elements"in R?R.elements:null,P="customCheckoutSdk"in R?R.customCheckoutSdk:null,T=l.useState(null),z=$e(T,2),g=z[0],W=z[1],j=l.useRef(null),F=l.useRef(null);k(g,"blur",w),k(g,"focus",b),k(g,"escape",I),k(g,"click",U),k(g,"loaderror",M),k(g,"loaderstart",V),k(g,"networkschange",D),k(g,"confirm",$),k(g,"cancel",J),k(g,"shippingaddresschange",B),k(g,"shippingratechange",N),k(g,"change",E);var K;S&&(e==="expressCheckout"?K=S:K=function(){S(g)}),k(g,"ready",K),l.useLayoutEffect(function(){if(j.current===null&&F.current!==null&&(_||P)){var O=null;P?O=P.createElement(e,m):_&&(O=_.create(e,m)),j.current=O,W(O),O&&O.mount(F.current)}},[_,P,m]);var le=ie(m);return l.useEffect(function(){if(j.current){var O=Oe(m,le,["paymentRequest"]);O&&j.current.update(O)}},[m,le]),l.useLayoutEffect(function(){return function(){if(j.current&&typeof j.current.destroy=="function")try{j.current.destroy(),j.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:F})},i=function(a){se("mounts <".concat(n,">"));var h=a.id,f=a.className;return l.createElement("div",{id:h,className:f})},c=r?i:o;return c.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},c.displayName=n,c.__elementType=e,c},C=typeof window>"u",dt=l.createContext(null);dt.displayName="EmbeddedCheckoutProviderContext";var pt=function(){var e=se("calls useStripe()"),r=e.stripe;return r};v("auBankAccount",C);v("card",C);var ye=v("cardNumber",C),Se=v("cardExpiry",C),ve=v("cardCvc",C);v("fpxBank",C);v("iban",C);v("idealBank",C);v("p24Bank",C);v("epsBank",C);v("payment",C);v("expressCheckout",C);v("paymentRequestButton",C);v("linkAuthentication",C);v("address",C);v("shippingAddress",C);v("paymentMethodMessaging",C);v("affirmMessage",C);v("afterpayClearpayMessage",C);var ze="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var mt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(ze,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},Ce=function(e){var r="",n=document.createElement("script");n.src="".concat(ze).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},G=null,Z=null,Q=null,gt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return G!==null?G:(G=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var o=mt();if(!(o&&e)){if(!o)o=Ce(e);else if(o&&Q!==null&&Z!==null){var i;o.removeEventListener("load",Q),o.removeEventListener("error",Z),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Ce(e)}}Q=yt(r,n),Z=gt(n),o.addEventListener("load",Q),o.addEventListener("error",Z)}catch(c){n(c);return}}),G.catch(function(r){return G=null,Promise.reject(r)}))},vt=function(e,r,n){if(e===null)return null;var o=e.apply(void 0,r);return ht(o,n),o},Y,We=!1,De=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return De()}).catch(function(t){We||console.warn(t)});var Ct=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];We=!0;var o=Date.now();return De().then(function(i){return vt(i,r,o)})};const xt={containerHeight:new oe(656,720)},bt=y.div`
1
+ import{B as ue,aQ as Ne,b as ee,o as u,p as q,J as ce,V as s,bS as Ue,e as je,cJ as Me,aV as ne,F as ke,y as oe,bw as Ve,bV as Fe,al as Ae,aR as qe,ae as de,u as He,gX as Je,am as Ke,a as Ge}from"./index-rJQoaAfw.js";import{P as l,a as L}from"./sentry-CGE1ab0x.js";import{n as y}from"./mui-KNfEk2A1.js";import{P as d}from"./core-BMaLzXUJ.js";import{n as ae}from"./commonTypes-CU0qY6Px-ZdnVolMx.js";import{F as Ye}from"./SetUpAccountSection-BCoHzvyG-CzNKWW7X.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="5b7a70de-d97c-41cd-a238-df922c323e81",t._sentryDebugIdIdentifier="sentry-dbid-5b7a70de-d97c-41cd-a238-df922c323e81")}catch{}})();function pe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function fe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pe(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function te(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?te=function(e){return typeof e}:te=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(t)}function Ie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $e(t,e){return Xe(t)||Ze(t,e)||Qe(t,e)||et()}function Xe(t){if(Array.isArray(t))return t}function Ze(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var n=[],o=!0,i=!1,c,p;try{for(r=r.call(t);!(o=(c=r.next()).done)&&(n.push(c.value),!(e&&n.length===e));o=!0);}catch(a){i=!0,p=a}finally{try{!o&&r.return!=null&&r.return()}finally{if(i)throw p}}return n}}function Qe(t,e){if(t){if(typeof t=="string")return me(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return me(t,e)}}function me(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function et(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var k=function(e,r,n){var o=!!n,i=l.useRef(n);l.useEffect(function(){i.current=n},[n]),l.useEffect(function(){if(!o||!e)return function(){};var c=function(){i.current&&i.current.apply(i,arguments)};return e.on(r,c),function(){e.off(r,c)}},[o,r,e,i])},ie=function(e){var r=l.useRef(e);return l.useEffect(function(){r.current=e},[e]),r.current},H=function(e){return e!==null&&te(e)==="object"},tt=function(e){return H(e)&&typeof e.then=="function"},rt=function(e){return H(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},he="[object Object]",nt=function t(e,r){if(!H(e)||!H(r))return e===r;var n=Array.isArray(e),o=Array.isArray(r);if(n!==o)return!1;var i=Object.prototype.toString.call(e)===he,c=Object.prototype.toString.call(r)===he;if(i!==c)return!1;if(!i&&!n)return e===r;var p=Object.keys(e),a=Object.keys(r);if(p.length!==a.length)return!1;for(var h={},f=0;f<p.length;f+=1)h[p[f]]=!0;for(var x=0;x<a.length;x+=1)h[a[x]]=!0;var m=Object.keys(h);if(m.length!==p.length)return!1;var w=e,b=r,S=function(I){return t(w[I],b[I])};return m.every(S)},Oe=function(e,r,n){return H(e)?Object.keys(e).reduce(function(o,i){var c=!H(r)||!nt(e[i],r[i]);return n.includes(i)?(c&&console.warn("Unsupported prop change: options.".concat(i," is not a mutable property.")),o):c?fe(fe({},o||{}),{},Ie({},i,e[i])):o},null):null},Le="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ge=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(e===null||rt(e))return e;throw new Error(r)},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le;if(tt(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(o){return ge(o,r)})};var n=ge(e,r);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},at=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"2.7.3"}),e.registerAppInfo({name:"react-stripe-js",version:"2.7.3",url:"https://stripe.com/docs/stripe-js/react"}))},re=l.createContext(null);re.displayName="ElementsContext";var Re=function(e,r){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(r," in an <Elements> provider."));return e},Te=function(e){var r=e.stripe,n=e.options,o=e.children,i=l.useMemo(function(){return ot(r)},[r]),c=l.useState(function(){return{stripe:i.tag==="sync"?i.stripe:null,elements:i.tag==="sync"?i.stripe.elements(n):null}}),p=$e(c,2),a=p[0],h=p[1];l.useEffect(function(){var m=!0,w=function(S){h(function(E){return E.stripe?E:{stripe:S,elements:S.elements(n)}})};return i.tag==="async"&&!a.stripe?i.stripePromise.then(function(b){b&&m&&w(b)}):i.tag==="sync"&&!a.stripe&&w(i.stripe),function(){m=!1}},[i,a,n]);var f=ie(r);l.useEffect(function(){f!==null&&f!==r&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[f,r]);var x=ie(n);return l.useEffect(function(){if(a.elements){var m=Oe(n,x,["clientSecret","fonts"]);m&&a.elements.update(m)}},[n,x,a.elements]),l.useEffect(function(){at(a.stripe)},[a.stripe]),l.createElement(re.Provider,{value:a},o)};Te.propTypes={stripe:d.any,options:d.object};var it=function(e){var r=l.useContext(re);return Re(r,e)},st=function(){var e=it("calls useElements()"),r=e.elements;return r};d.func.isRequired;var _e=l.createContext(null);_e.displayName="CustomCheckoutSdkContext";var ct=function(e,r){if(!e)throw new Error("Could not find CustomCheckoutProvider context; You need to wrap the part of your app that ".concat(r," in an <CustomCheckoutProvider> provider."));return e},lt=l.createContext(null);lt.displayName="CustomCheckoutContext";d.any,d.shape({clientSecret:d.string.isRequired,elementsOptions:d.object}).isRequired;var se=function(e){var r=l.useContext(_e),n=l.useContext(re);if(r&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CustomCheckoutProvider> and <Elements> providers."));return r?ct(r,e):Re(n,e)},ut=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},v=function(e,r){var n="".concat(ut(e),"Element"),o=function(a){var h=a.id,f=a.className,x=a.options,m=x===void 0?{}:x,w=a.onBlur,b=a.onFocus,S=a.onReady,E=a.onChange,I=a.onEscape,U=a.onClick,M=a.onLoadError,V=a.onLoaderStart,D=a.onNetworksChange,$=a.onConfirm,J=a.onCancel,B=a.onShippingAddressChange,N=a.onShippingRateChange,R=se("mounts <".concat(n,">")),_="elements"in R?R.elements:null,P="customCheckoutSdk"in R?R.customCheckoutSdk:null,T=l.useState(null),W=$e(T,2),g=W[0],z=W[1],j=l.useRef(null),F=l.useRef(null);k(g,"blur",w),k(g,"focus",b),k(g,"escape",I),k(g,"click",U),k(g,"loaderror",M),k(g,"loaderstart",V),k(g,"networkschange",D),k(g,"confirm",$),k(g,"cancel",J),k(g,"shippingaddresschange",B),k(g,"shippingratechange",N),k(g,"change",E);var K;S&&(e==="expressCheckout"?K=S:K=function(){S(g)}),k(g,"ready",K),l.useLayoutEffect(function(){if(j.current===null&&F.current!==null&&(_||P)){var O=null;P?O=P.createElement(e,m):_&&(O=_.create(e,m)),j.current=O,z(O),O&&O.mount(F.current)}},[_,P,m]);var le=ie(m);return l.useEffect(function(){if(j.current){var O=Oe(m,le,["paymentRequest"]);O&&j.current.update(O)}},[m,le]),l.useLayoutEffect(function(){return function(){if(j.current&&typeof j.current.destroy=="function")try{j.current.destroy(),j.current=null}catch{}}},[]),l.createElement("div",{id:h,className:f,ref:F})},i=function(a){se("mounts <".concat(n,">"));var h=a.id,f=a.className;return l.createElement("div",{id:h,className:f})},c=r?i:o;return c.propTypes={id:d.string,className:d.string,onChange:d.func,onBlur:d.func,onFocus:d.func,onReady:d.func,onEscape:d.func,onClick:d.func,onLoadError:d.func,onLoaderStart:d.func,onNetworksChange:d.func,onConfirm:d.func,onCancel:d.func,onShippingAddressChange:d.func,onShippingRateChange:d.func,options:d.object},c.displayName=n,c.__elementType=e,c},C=typeof window>"u",dt=l.createContext(null);dt.displayName="EmbeddedCheckoutProviderContext";var pt=function(){var e=se("calls useStripe()"),r=e.stripe;return r};v("auBankAccount",C);v("card",C);var ye=v("cardNumber",C),Se=v("cardExpiry",C),ve=v("cardCvc",C);v("fpxBank",C);v("iban",C);v("idealBank",C);v("p24Bank",C);v("epsBank",C);v("payment",C);v("expressCheckout",C);v("paymentRequestButton",C);v("linkAuthentication",C);v("address",C);v("shippingAddress",C);v("paymentMethodMessaging",C);v("affirmMessage",C);v("afterpayClearpayMessage",C);var We="https://js.stripe.com/v3",ft=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var mt=function(){for(var e=document.querySelectorAll('script[src^="'.concat(We,'"]')),r=0;r<e.length;r++){var n=e[r];if(ft.test(n.src))return n}return null},Ce=function(e){var r="",n=document.createElement("script");n.src="".concat(We).concat(r);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},ht=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"4.3.0",startTime:r})},G=null,Z=null,Q=null,gt=function(e){return function(){e(new Error("Failed to load Stripe.js"))}},yt=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},St=function(e){return G!==null?G:(G=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var o=mt();if(!(o&&e)){if(!o)o=Ce(e);else if(o&&Q!==null&&Z!==null){var i;o.removeEventListener("load",Q),o.removeEventListener("error",Z),(i=o.parentNode)===null||i===void 0||i.removeChild(o),o=Ce(e)}}Q=yt(r,n),Z=gt(n),o.addEventListener("load",Q),o.addEventListener("error",Z)}catch(c){n(c);return}}),G.catch(function(r){return G=null,Promise.reject(r)}))},vt=function(e,r,n){if(e===null)return null;var o=e.apply(void 0,r);return ht(o,n),o},Y,ze=!1,De=function(){return Y||(Y=St(null).catch(function(e){return Y=null,Promise.reject(e)}),Y)};Promise.resolve().then(function(){return De()}).catch(function(t){ze||console.warn(t)});var Ct=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];ze=!0;var o=Date.now();return De().then(function(i){return vt(i,r,o)})};const xt={containerHeight:new oe(656,720)},bt=y.div`
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  gap: 20px;
@@ -86,10 +86,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
86
86
  color: ${t=>t.theme.colors.hero};
87
87
  text-align: center;
88
88
  margin-top: ${u.sp2};
89
- `,we=t=>`${t}_form`,Pe="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:o,handleAddCardPaymentSource:i,setCardSetupInProgress:c})=>{const p=pt(),a=st(),[h,f]=L.useState(!1),[x,m]=L.useState(!1),[w,b]=L.useState(!1),[S,E]=L.useState(!1),I=ce(),U=t.cardSetupConfirmStatus.fetchState,M=t.addCardPaymentSourceStatus.fetchState,V=t.cardSetupIntentStatus.fetchState,[D,$]=L.useState(!1),J=async P=>{if(P.preventDefault(),!p||!a)return;const T=a.getElement(ye),z=a.getElement(Se),g=a.getElement(ve);(!T||!z||!g)&&$(!0),E(!0),c(!0),T!=null&&z!=null&&g!=null&&p.confirmCardSetup(e,{payment_method:{card:T}}).then(W=>{E(!1),n(W),W.setupIntent?.id!=null&&i("card","payment_intent",W.setupIntent?.id)}).catch(()=>{E(!1),setTimeout(()=>{c(!1)},2e3)})},B=je(),N={showIcon:!0,style:{base:{...ee.standardRegular.cssObject,color:B.colors.primary,"::placeholder":{color:B.colors.grey2}},invalid:{color:q.important,iconColor:q.important}}},R=U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0,_=h||x||w||U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0;return s.jsx(jt,{windowSize:I,children:s.jsxs(wt,{onSubmit:J,id:we(Pe),children:[s.jsxs(It,{children:[s.jsx($t,{children:s.jsx(Ot,{children:s.jsx(ye,{options:N,onChange:P=>f(!!P.error)})})}),s.jsx(Lt,{children:s.jsxs(kt,{children:[s.jsx(xe,{children:A.cardNumber}),s.jsx(Se,{options:N,onChange:P=>m(!!P.error)})]})}),s.jsx(Rt,{children:s.jsxs(At,{children:[s.jsx(xe,{children:A.CVC}),s.jsx(ve,{options:N,onChange:P=>b(!!P.error)})]})})]}),t.cardSetupConfirmStatus.error||D?s.jsx(Be,{children:A.errorMsg}):null,s.jsx(qe,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:we(Pe),primaryBtn:{label:be.linkCard,style:{width:"104px",height:u.sp6},isLoading:R,isDisabled:_,type:"submit"},cancelBtn:{label:be.cancel,style:{width:"104px",height:u.sp6},onClick:()=>{o(!1)}}}),s.jsxs(Tt,{windowSize:I,children:[A.terms.term1,s.jsx(de,{href:A.terms.term2Link,linkText:A.terms.term2}),A.terms.term3,s.jsx(de,{href:A.terms.term4Link,linkText:A.terms.term4})]})]})})},Yt=({isCardPaymentOpen:t,cardPaymentView:e,stripeKey:r,cardSetupInProgress:n,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:p,handleResetCardPaymentErrorStatuses:a,setCardSetupInProgress:h})=>{const[f,x]=L.useState(""),m=Ct(r),w=Ne(e.addCardPaymentSourceStatus.fetchState),b=e.addCardPaymentSourceStatus.fetchState;L.useEffect(()=>(c(["card"]),()=>{i(!1),x(""),a()}),[]),L.useEffect(()=>{a()},[t]),L.useEffect(()=>{w==="In-Progress"&&b==="Error"?(h(!1),setTimeout(()=>{i(!1)},2e3)):w==="In-Progress"&&b==="Completed"&&(c(["card"]),setTimeout(()=>{i(!1),h(!1)},2e3))},[w,b]),L.useEffect(()=>{(e.cardSetupConfirmStatus.error||e.addCardPaymentSourceStatus.error)&&(c(["card"]),setTimeout(()=>{h(!1)},2e3))},[e.cardSetupConfirmStatus.error,e.addCardPaymentSourceStatus.error]),L.useEffect(()=>{e.clientSecret!=null&&x(e.clientSecret)},[e.clientSecret]);const S={theme:"stripe",variables:{borderRadius:u.sp1,fontSizeBase:ee.standardRegular.fontSize,fontFamily:ee.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${q.neutralGrey3Light}`,borderRadius:u.sp1,padding:"10px",fontSize:ee.standardRegular.fontSize}}},E={clientSecret:f,appearance:S},I=ce();return s.jsx(Ue,{open:t,children:s.jsxs(bt,{windowSize:I,isError:!!e.cardSetupConfirmStatus.error,children:[s.jsx(Pt,{children:A.title}),s.jsx(Et,{children:A.subtitle}),f&&m!=null?s.jsx(Te,{options:E,stripe:m,children:s.jsx(_t,{clientSecret:f,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleAddCardPaymentSource:p,cardPaymentView:e,cardSetupInProgress:n,setCardSetupInProgress:h})}):s.jsx(Be,{children:A.errorMsg})]})})},X={sectionWidth:new oe(343,580,726),iconWidthHeight:new oe(20,He[4])},zt={title:new Ge("standardSemiBold","largeSemiBold")},Ee=t=>t?ae[t]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Wt=(t,e,r,n)=>({header:t,title:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${e}`,subtitle:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${r} ${n.cardsList[0]?.last4}`,status:n.cardsList[0]?.status}),Dt=y.img`
89
+ `,we=t=>`${t}_form`,Pe="CardPaymentPaymentForm",_t=({cardPaymentView:t,clientSecret:e,cardSetupInProgress:r,handleConfirmCardSetupIntent:n,updateCardPaymentModalState:o,handleAddCardPaymentSource:i,setCardSetupInProgress:c})=>{const p=pt(),a=st(),[h,f]=L.useState(!1),[x,m]=L.useState(!1),[w,b]=L.useState(!1),[S,E]=L.useState(!1),I=ce(),U=t.cardSetupConfirmStatus.fetchState,M=t.addCardPaymentSourceStatus.fetchState,V=t.cardSetupIntentStatus.fetchState,[D,$]=L.useState(!1),J=async P=>{if(P.preventDefault(),!p||!a)return;const T=a.getElement(ye),W=a.getElement(Se),g=a.getElement(ve);(!T||!W||!g)&&$(!0),E(!0),c(!0),T!=null&&W!=null&&g!=null&&p.confirmCardSetup(e,{payment_method:{card:T}}).then(z=>{E(!1),n(z),z.setupIntent?.id!=null&&i("card","payment_intent",z.setupIntent?.id)}).catch(()=>{E(!1),setTimeout(()=>{c(!1)},2e3)})},B=je(),N={showIcon:!0,style:{base:{...ee.standardRegular.cssObject,color:B.colors.primary,"::placeholder":{color:B.colors.grey2}},invalid:{color:q.important,iconColor:q.important}}},R=U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0,_=h||x||w||U==="In-Progress"||M==="In-Progress"||V==="In-Progress"||S===!0||r===!0;return s.jsx(jt,{windowSize:I,children:s.jsxs(wt,{onSubmit:J,id:we(Pe),children:[s.jsxs(It,{children:[s.jsx($t,{children:s.jsx(Ot,{children:s.jsx(ye,{options:N,onChange:P=>f(!!P.error)})})}),s.jsx(Lt,{children:s.jsxs(kt,{children:[s.jsx(xe,{children:A.cardNumber}),s.jsx(Se,{options:N,onChange:P=>m(!!P.error)})]})}),s.jsx(Rt,{children:s.jsxs(At,{children:[s.jsx(xe,{children:A.CVC}),s.jsx(ve,{options:N,onChange:P=>b(!!P.error)})]})})]}),t.cardSetupConfirmStatus.error||D?s.jsx(Be,{children:A.errorMsg}):null,s.jsx(qe,{style:{width:"100%",padding:`${u.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:we(Pe),primaryBtn:{label:be.linkCard,style:{width:"104px",height:u.sp6},isLoading:R,isDisabled:_,type:"submit"},cancelBtn:{label:be.cancel,style:{width:"104px",height:u.sp6},onClick:()=>{o(!1)}}}),s.jsxs(Tt,{windowSize:I,children:[A.terms.term1,s.jsx(de,{href:A.terms.term2Link,linkText:A.terms.term2}),A.terms.term3,s.jsx(de,{href:A.terms.term4Link,linkText:A.terms.term4})]})]})})},Yt=({isCardPaymentOpen:t,cardPaymentView:e,stripeKey:r,cardSetupInProgress:n,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleCreateCardSetupIntent:c,handleAddCardPaymentSource:p,handleResetCardPaymentErrorStatuses:a,setCardSetupInProgress:h})=>{const[f,x]=L.useState(""),m=Ct(r),w=Ne(e.addCardPaymentSourceStatus.fetchState),b=e.addCardPaymentSourceStatus.fetchState;L.useEffect(()=>(c(["card"]),()=>{i(!1),x(""),a()}),[]),L.useEffect(()=>{a()},[t]),L.useEffect(()=>{w==="In-Progress"&&b==="Error"?(h(!1),setTimeout(()=>{i(!1)},2e3)):w==="In-Progress"&&b==="Completed"&&(c(["card"]),setTimeout(()=>{i(!1),h(!1)},2e3))},[w,b]),L.useEffect(()=>{(e.cardSetupConfirmStatus.error||e.addCardPaymentSourceStatus.error)&&(c(["card"]),setTimeout(()=>{h(!1)},2e3))},[e.cardSetupConfirmStatus.error,e.addCardPaymentSourceStatus.error]),L.useEffect(()=>{e.clientSecret!=null&&x(e.clientSecret)},[e.clientSecret]);const S={theme:"stripe",variables:{borderRadius:u.sp1,fontSizeBase:ee.standardRegular.fontSize,fontFamily:ee.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${q.neutralGrey3Light}`,borderRadius:u.sp1,padding:"10px",fontSize:ee.standardRegular.fontSize}}},E={clientSecret:f,appearance:S},I=ce();return s.jsx(Ue,{open:t,children:s.jsxs(bt,{windowSize:I,isError:!!e.cardSetupConfirmStatus.error,children:[s.jsx(Pt,{children:A.title}),s.jsx(Et,{children:A.subtitle}),f&&m!=null?s.jsx(Te,{options:E,stripe:m,children:s.jsx(_t,{clientSecret:f,handleConfirmCardSetupIntent:o,updateCardPaymentModalState:i,handleAddCardPaymentSource:p,cardPaymentView:e,cardSetupInProgress:n,setCardSetupInProgress:h})}):s.jsx(Be,{children:A.errorMsg})]})})},X={sectionWidth:new oe(343,580,726),iconWidthHeight:new oe(20,He[4])},Wt={title:new Ge("standardSemiBold","largeSemiBold")},Ee=t=>t?ae[t]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},zt=(t,e,r,n)=>({header:t,title:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${e}`,subtitle:`${ue(ae[n.cardsList[0]?.brand]?.name??"")} ${r} ${n.cardsList[0]?.last4}`,status:n.cardsList[0]?.status}),Dt=y.img`
90
90
  width: ${t=>t.width}px;
91
91
  height: ${t=>t.height}px;
92
- `,Xt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:o,hasError:i=!1,isValid:c,style:p,analytics:a,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,updateCardPaymentModalState:b,cardPaymentView:S,resetCardPaymentViewState:E,cardSetupInProgress:I=!1,googleAPIKey:U,subscriptionBillingAddress:M,subscriptionBillingAddressSectionId:V})=>{const D=je(),$=ce(),{register:J}=Me(),B=D.mode==="light"?new ne(D.colors.brandColorJadeLight):new ne(D.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:R,text:_,subText:P},card_payment_method:T}}}=ke.getLocalizedStrings(),z=S.cardsList.length>0,g=S.cardsList[0]?.brand??"other",W=S.addCardPaymentSourceStatus.fetchState,j=Wt(T.header,T.titleText,T.protectedCardNo,S);let F;return z&&(F={header:j.header,title:j.title,subtitle:j.subtitle,status:j.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:z===!0,icon:{element:s.jsx(Dt,{src:Ee(g).iconURL,width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($),alt:Ee(g).name,loading:"lazy"}),color:new ne(B)},showCompletedIcon:!1,isError:W==="Error",isLoading:W==="In-Progress",isCompleted:!0,showRightArrow:!1}),s.jsxs(Nt,{windowSize:$,children:[s.jsx(Ut,{type:"hidden",...J(`${n}.connected`,{validate:K=>i?K==="true":!0}),value:c?"true":"false"}),s.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:R,sectionTitle:R,defaultSectionTitle:_,defaultSectionSubTitle:P,sectionId:n,isDisabled:o,hasError:i,showZeniAccountSection:!1,isCompleted:t?.providerVerificationStatus?.code?.includes("verified")===!0&&t?.isLoginRequired===!1,showCompletedIcon:$==="small",onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,style:p,icon:{element:s.jsx(Ve,{width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($)}),color:B},analytics:a,productType:"onboarding",resetCardPaymentViewState:E,cardPaymentSectionValues:F,cardPaymentView:S,updateCardPaymentModalState:b,referrer:"Onboarding",cardSetupInProgress:I}),Bt($,N.headers.billingAddress,V,a,M,U,o)]})},Bt=(t,e,r,n,o,i,c)=>{const p={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return s.jsxs(Vt,{children:[s.jsx(Mt,{windowSize:t,isDisabled:c==="disabled",children:e}),s.jsx(Je,{googleAPIKey:i??"",addressToEdit:o,sectionId:`${r}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:a=>{if(a.target instanceof HTMLInputElement){const{placeholder:h}=a.target;if(h){const f=p[h];f&&n.trackOnboardingBillingAddress(f)}}}})]})},Nt=y.div`
92
+ `,Xt=({paymentAccount:t,plaidConnectionDetails:e,connectedAccountProvider:r,sectionId:n,isDisabled:o,hasError:i=!1,isValid:c,style:p,analytics:a,onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,updateCardPaymentModalState:b,cardPaymentView:S,resetCardPaymentViewState:E,cardSetupInProgress:I=!1,googleAPIKey:U,subscriptionBillingAddress:M,subscriptionBillingAddressSectionId:V})=>{const D=je(),$=ce(),{register:J}=Me(),B=D.mode==="light"?new ne(D.colors.brandColorJadeLight):new ne(D.colors.brandColorJadeDark),{common:N,customerOnboardingPage:{sections:{link_payment_account:{title:R,text:_,subText:P},card_payment_method:T}}}=ke.getLocalizedStrings(),W=S.cardsList.length>0,g=S.cardsList[0]?.brand??"other",z=S.addCardPaymentSourceStatus.fetchState,j=zt(T.header,T.titleText,T.protectedCardNo,S);let F;return W&&(F={header:j.header,title:j.title,subtitle:j.subtitle,status:j.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:W===!0,icon:{element:s.jsx(Dt,{src:Ee(g).iconURL,width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($),alt:Ee(g).name,loading:"lazy"}),color:new ne(B)},showCompletedIcon:!1,isError:z==="Error",isLoading:z==="In-Progress",isCompleted:!0,showRightArrow:!1}),s.jsxs(Nt,{windowSize:$,children:[s.jsx(Ut,{type:"hidden",...J(`${n}.connected`,{validate:K=>i?K==="true":!0}),value:c?"true":"false"}),s.jsx(Ye,{connectedAccountProvider:r,paymentAccount:t,plaidConnectionDetails:e,allBankAccounts:[],header:R,sectionTitle:R,defaultSectionTitle:_,defaultSectionSubTitle:P,sectionId:n,isDisabled:o,hasError:i,showZeniAccountSection:!1,isCompleted:t?.providerVerificationStatus?.code?.includes("verified")===!0&&t?.isLoginRequired===!1,showCompletedIcon:$==="small",onFetchLinkTokenClick:h,onEstablishConnectionClick:f,onUpdatePaymentAccountStatus:x,onUpdatePaymentAccountLoginStatus:m,onEstablishConnectionSuccess:w,style:p,icon:{element:s.jsx(Ve,{width:X.iconWidthHeight.valuePx($),height:X.iconWidthHeight.valuePx($)}),color:B},analytics:a,productType:"onboarding",resetCardPaymentViewState:E,cardPaymentSectionValues:F,cardPaymentView:S,updateCardPaymentModalState:b,referrer:"Onboarding",cardSetupInProgress:I}),Bt($,N.headers.billingAddress,V,a,M,U,o)]})},Bt=(t,e,r,n,o,i,c)=>{const p={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return s.jsxs(Vt,{children:[s.jsx(Mt,{windowSize:t,isDisabled:c==="disabled",children:e}),s.jsx(Je,{googleAPIKey:i??"",addressToEdit:o,sectionId:`${r}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:a=>{if(a.target instanceof HTMLInputElement){const{placeholder:h}=a.target;if(h){const f=p[h];f&&n.trackOnboardingBillingAddress(f)}}}})]})},Nt=y.div`
93
93
  display: flex;
94
94
  flex-direction: column;
95
95
  width: ${t=>X.sectionWidth.valuePx(t.windowSize)};
@@ -97,11 +97,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
97
97
  `,Ut=y.input`
98
98
  display: none;
99
99
  `,Mt=y.div`
100
- ${t=>`${zt.title.style(t.windowSize)}`};
100
+ ${t=>`${Wt.title.style(t.windowSize)}`};
101
101
  margin-bottom: ${u.sp3};
102
102
  margin-top: ${u.sp3};
103
103
  color: ${t=>t.isError===!0?q.important:t.isDisabled===!0?t.theme.colors.grey1:t.theme.colors.primary};
104
104
  `,Vt=y.div`
105
105
  margin-top: ${u.sp5};
106
106
  margin-bottom: ${u.sp4};
107
- `;export{Wt as M,Ee as o,Xt as r,Yt as t};
107
+ `;export{zt as M,Ee as o,Xt as r,Yt as t};
@@ -1,4 +1,4 @@
1
- import{d as be,J as I,F as y,V as t,bC as le,aP as a,bO as De,o as s,cl as Oe,cm as _e,T as U,aT as G,cn as we,r as Le,b as $e,co as Ae,aQ as Ve,cp as Me,ap as We,cq as Be,cr as He,b3 as Ue,aD as B,cs as Ke,y as b,ct as Ee,cu as je,u as $,cv as ee,ce as N,cw as Se,a9 as Fe,ac as Ze,cx as Je,cy as qe,aJ as Qe,ai as D,cz as Xe,al as O,am as te,p as A,cA as Ye,ci as ke,ba as ie,cB as Ie,bM as Ge,cC as et}from"./index-6sX8sCRU.js";import{P as ce,a as v}from"./sentry-BsWDfhY_.js";import{n as i}from"./mui-BKJrVh4W.js";import{oV as Ce,bg as X}from"./zeni-epic-state-DEUUJaZy.js";import{T as Re}from"./RoleWithToolTip-GCV_l8Ly-C2pYTZmo.js";import"./liveblocks-BAOmiMpj.js";import"./core-xud19niX.js";import"./recharts-07URl5uF.js";import"./lottie-cQKxXDSP.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.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]="e9b756dc-7a55-4ea1-bb72-c79b59ac6869",e._sentryDebugIdIdentifier="sentry-dbid-e9b756dc-7a55-4ea1-bb72-c79b59ac6869")}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)}],H=[{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(Qe(d==="off"?S:H));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(Xe,{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{e as be,J as I,F as y,V as t,bC as le,aP as a,bO as De,o as s,cl as Oe,cm as _e,T as U,aT as G,cn as we,r as Le,b as $e,co as Ae,aQ as Ve,cp as Me,ap as We,cq as Be,cr as He,b3 as Ue,aD as B,cs as Ke,y as b,ct as Ee,cu as je,u as $,cv as ee,ce as N,cw as Se,a9 as Fe,ac as Ze,cx as Je,cy as qe,aJ as Qe,ai as D,cz as Xe,al as O,am as te,p as A,cA as Ye,ci as ke,ba as ie,cB as Ie,bM as Ge,cC as et}from"./index-rJQoaAfw.js";import{P as ce,a as v}from"./sentry-CGE1ab0x.js";import{n as i}from"./mui-KNfEk2A1.js";import{oV as Ce,bg as X}from"./zeni-epic-state-CiJSQQSe.js";import{T as Re}from"./RoleWithToolTip-BWdD1HmA-BCpJ5d2U.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.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]="754e73d2-be67-4ba7-bb4b-c20ba89dd62f",e._sentryDebugIdIdentifier="sentry-dbid-754e73d2-be67-4ba7-bb4b-c20ba89dd62f")}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)}],H=[{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(Qe(d==="off"?S:H));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(Xe,{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)"};
@@ -1 +1 @@
1
- import{a as h,P as n}from"./sentry-BsWDfhY_.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]="1e21bcae-92bc-4f72-b3b7-b9f34ad2806c",t._sentryDebugIdIdentifier="sentry-dbid-1e21bcae-92bc-4f72-b3b7-b9f34ad2806c")}catch{}})();const c="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,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(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},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,...p},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,...f?{"aria-label":f}:{}},l?a:null,m||x)};var P=k;export{P as default};
1
+ import{a as h,P as n}from"./sentry-CGE1ab0x.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]="1e21bcae-92bc-4f72-b3b7-b9f34ad2806c",t._sentryDebugIdIdentifier="sentry-dbid-1e21bcae-92bc-4f72-b3b7-b9f34ad2806c")}catch{}})();const c="64px",u={},k=({src:t,light:a,oEmbedUrl:r,onClickPreview:s,playIcon:m,previewTabIndex:I,previewAriaLabel:f})=>{const[b,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(u[e]){o(u[e]);return}o(null);const y=await(await fetch(E.replace("{url}",e))).json();if(y.thumbnail_url){const g=y.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");o(g),u[e]=g}},w=e=>{(e.key==="Enter"||e.key===" ")&&s?.(e)},v=e=>{s?.(e)},l=n.isValidElement(a),p={display:"flex",alignItems:"center",justifyContent:"center"},d={preview:{width:"100%",height:"100%",backgroundImage:b&&!l?`url(${b})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...p},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,...p},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,...f?{"aria-label":f}:{}},l?a:null,m||x)};var P=k;export{P as default};
@@ -1,4 +1,4 @@
1
- import{F as I,V as t,a8 as A,o as c,c2 as B,a$ as N,u as q,d7 as G,aq as H,al as T,d8 as J,p as v}from"./index-6sX8sCRU.js";import{a as $}from"./sentry-BsWDfhY_.js";import{n as i}from"./mui-BKJrVh4W.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]="3e3992d4-8c33-483f-9655-71122534acc8",e._sentryDebugIdIdentifier="sentry-dbid-3e3992d4-8c33-483f-9655-71122534acc8")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:G,title:H,subtitle:T,seeMoreLink:T}},V={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=V.large,Y=i.div`
1
+ import{F as I,V as t,a8 as A,o as c,c2 as B,a$ as N,u as q,d7 as G,aq as H,al as T,d8 as J,p as v}from"./index-rJQoaAfw.js";import{a as $}from"./sentry-CGE1ab0x.js";import{n as i}from"./mui-KNfEk2A1.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]="3e3992d4-8c33-483f-9655-71122534acc8",e._sentryDebugIdIdentifier="sentry-dbid-3e3992d4-8c33-483f-9655-71122534acc8")}catch{}})();const u=I.getLocalizedStrings(),w={large:{labelComp:G,title:H,subtitle:T,seeMoreLink:T}},V={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},r=V.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{J as m,V as r,dc as b,dd as v,de as y,bx as z,o as e,p as d,y as a,O as c,u as p}from"./index-6sX8sCRU.js";import{c as i,n as g,k as f}from"./mui-BKJrVh4W.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]="67d02469-ec55-4ae4-8842-0b5a530b7720",o._sentryDebugIdIdentifier="sentry-dbid-67d02469-ec55-4ae4-8842-0b5a530b7720")}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")},R=({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,{})})]})},J=({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{J as m,V as r,dc as b,dd as v,de as y,bx as z,o as e,p as d,y as a,a as c,u as p}from"./index-rJQoaAfw.js";import{c as i,n as g,k as f}from"./mui-KNfEk2A1.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]="7ea75922-7c87-460e-94dc-98cc7de1ed84",o._sentryDebugIdIdentifier="sentry-dbid-7ea75922-7c87-460e-94dc-98cc7de1ed84")}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")},R=({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,{})})]})},J=({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{J as y,F as r,V as n,bS as b,r as l,y as c,o as i,aq as w,al as $,af as j,bv as P,eQ as v,u as t}from"./index-6sX8sCRU.js";import{n as o}from"./mui-BKJrVh4W.js";import"./sentry-BsWDfhY_.js";import"./liveblocks-BAOmiMpj.js";import"./core-xud19niX.js";import"./recharts-07URl5uF.js";import"./zeni-epic-state-DEUUJaZy.js";import"./lottie-cQKxXDSP.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="0e0afd18-424d-489d-81fe-e7411d5939a6",e._sentryDebugIdIdentifier="sentry-dbid-0e0afd18-424d-489d-81fe-e7411d5939a6")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},S=o.div`
1
+ import{J as y,F as r,V as n,bS as b,r as l,y as c,o as i,aq as w,al as $,af as j,bv as P,eQ as v,u as t}from"./index-rJQoaAfw.js";import{n as o}from"./mui-KNfEk2A1.js";import"./sentry-CGE1ab0x.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./zeni-epic-state-CiJSQQSe.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="0e0afd18-424d-489d-81fe-e7411d5939a6",e._sentryDebugIdIdentifier="sentry-dbid-0e0afd18-424d-489d-81fe-e7411d5939a6")}catch{}})();const s={containerPaddingTop:new c(t[5],t[7]),containerPaddingBottom:new c(t[5],t[5]),containerPaddingLeftRight:new c(t[6],t[11])},S=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,19 +1,19 @@
1
- import{J as C,F as g,V as i,r as I,o,y as a,p as c,fR as k,O as T,af as D,bv as B,eQ as W,fI as _,aV as w,ai as f,u as r}from"./index-6sX8sCRU.js";import{n as s}from"./mui-BKJrVh4W.js";import E from"./QBOConnectionDialog-C3OYyhYO-CMjuhlXs.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]="e545ac2d-e950-4f62-84ad-9a7f27491640",e._sentryDebugIdIdentifier="sentry-dbid-e545ac2d-e950-4f62-84ad-9a7f27491640")}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])},Q={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:$,companyName:y,updateQBOPopupState:h,handleOnConnectClick:b})=>{const n=C(),{qbo_connection:j}=g.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:O}=j;return i.jsxs(V,{windowSize:n,children:[i.jsxs(A,{windowSize:n,children:[n==="small"?i.jsx(L,{children:d?i.jsx(Z,{}):i.jsx(K,{})}):null,i.jsx(F,{windowSize:n,children:S})]}),i.jsxs(G,{windowSize:n,children:[i.jsxs(H,{windowSize:n,children:[i.jsxs(q,{children:[i.jsx(J,{}),i.jsx(M,{windowSize:n}),i.jsx(R,{})]}),d?n!=="small"?i.jsx(m,{}):null:i.jsx(I,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(N,{children:v}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(u,{windowSize:n,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(u,{windowSize:n,children:O})}):null]}),i.jsx(E,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:$,companyName:y,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=g.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new w(c.successDark),borderColor:new w(c.successDark)}})},V=s.div`
1
+ import{J as I,F as g,V as i,r as O,o,y as a,p as c,fR as k,a as T,af as D,bv as B,eQ as W,fI as _,aV as w,ai as f,u as r}from"./index-rJQoaAfw.js";import{n as s}from"./mui-KNfEk2A1.js";import E from"./QBOConnectionDialog-qqbamtpL-BeJJQ440.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]="f7b65bd2-288d-4604-afe2-c901bc592081",e._sentryDebugIdIdentifier="sentry-dbid-f7b65bd2-288d-4604-afe2-c901bc592081")}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])},F={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:t=!1,isValid:d,saveConnectionState:p,isQBOPopupOpen:$,companyName:y,updateQBOPopupState:h,handleOnConnectClick:b})=>{const n=I(),{qbo_connection:j}=g.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:v,button:z,errorText:P,requiredText:C}=j;return i.jsxs(Q,{windowSize:n,children:[i.jsxs(V,{windowSize:n,children:[n==="small"?i.jsx(L,{children:d?i.jsx(Z,{}):i.jsx(K,{})}):null,i.jsx(A,{windowSize:n,children:S})]}),i.jsxs(G,{windowSize:n,children:[i.jsxs(H,{windowSize:n,children:[i.jsxs(q,{children:[i.jsx(J,{}),i.jsx(M,{windowSize:n}),i.jsx(R,{})]}),d?n!=="small"?i.jsx(m,{}):null:i.jsx(O,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),d?i.jsxs(i.Fragment,{children:[i.jsx(N,{children:v}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(u,{windowSize:n,children:P})}):null,t&&!d?i.jsx(x,{children:i.jsx(u,{windowSize:n,children:C})}):null]}),i.jsx(E,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:$,companyName:y,saveConnectionState:p,handleOnConnectClick:b,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=g.getLocalizedStrings().customerOnboardingPage,{connected:t}=e;return i.jsx(_,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:t,textColor:{color:new w(c.successDark),borderColor:new w(c.successDark)}})},Q=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  justify-content: center;
6
- `,A=s.div`
6
+ `,V=s.div`
7
7
  display: flex;
8
8
  align-items: center;
9
9
  padding-top: ${o.sp3};
10
10
  padding-bottom: ${o.sp3};
11
11
  width: ${e=>l.sectionWidth.valuePx(e.windowSize)};
12
- `,F=s.div`
12
+ `,A=s.div`
13
13
  display: flex;
14
14
  align-items: center;
15
15
  color: ${e=>e.theme.colors.primary};
16
- ${e=>`${Q.title.style(e.windowSize)}`};
16
+ ${e=>`${F.title.style(e.windowSize)}`};
17
17
  `,G=s.div`
18
18
  display: flex;
19
19
  flex-direction: column;
@@ -0,0 +1,32 @@
1
+ import{y as W,u as L,e as M,J as G,F as U,a9 as J,aQ as Q,aJ as X,cF as H,V as r,bC as K,ac as Y,aR as Z,o as b,g9 as ee}from"./index-rJQoaAfw.js";import{a as $}from"./sentry-CGE1ab0x.js";import{n as c}from"./mui-KNfEk2A1.js";import{b as te,f as le,o as B,l as C}from"./FollowStepsSection-Bl933px0-DXKlKasr.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./zeni-epic-state-CiJSQQSe.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d9e89c7b-575d-48fd-8a41-edba1bbdd739",e._sentryDebugIdIdentifier="sentry-dbid-d9e89c7b-575d-48fd-8a41-edba1bbdd739")}catch{}})();const T="reimbursementApprovalRuleDetailPage",k="lowerBound",j="upperBound",I="steps",h="applyToExistingReimbursements",ae={footerPadding:new W(L[2],L[3])};function Re({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:o=!0,hideUpperBoundField:i=!1,onBackClick:s,onApprovalRuleDataUpdated:g,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:w}){const F=M(),A=G(),a=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=re(e,l==="approval_create"&&!t),y=J({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,R=Q(u?.fetchState),{upperBound:P}=x,{allApprovalRules:d,allAccountingClasses:V,remiSetupApproverViewUpdateData:m}=e;let f=d.length>1?d.length-1:0,v=d.length>0?d[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:n}=m.data;f=d.findIndex(p=>p.approvalRuleId===n),v=f>0?d[f-1].criteria[0].range.min.amount:0}const z=y.handleSubmit(()=>{N()}),q=async(n,p)=>{g(p)};return $.useEffect(()=>{const n=y.watch((p,{name:D})=>{if(D!=null&&p!=null){const O=X(p);H(()=>q(D,O))}});return()=>{n.unsubscribe()}}),$.useEffect(()=>{R==="In-Progress"&&u?.fetchState==="Completed"&&w()},[R,u?.fetchState,w]),r.jsxs(ie,{children:[r.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{s()},source:"ReimbursementApprovalRuleDetailPage"}),r.jsx(de,{children:r.jsxs(Y,{...y,children:[r.jsx(ue,{children:r.jsx("form",{id:_(T),onSubmit:z,children:r.jsxs(pe,{children:[r.jsx(te,{label:{label:i?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:n=>t?!0:n!=null&&n>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:j,placeholder:"Infinity",isDisabled:o,hideField:i,additionalInfoLabel:a.upperBoundInfoLabel}}),r.jsx(ce,{}),r.jsx(le,{sectionId:I,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(n=>n.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:V,stepsInfo:x[I],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})}),r.jsx(Z,{formId:_(T),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:r.jsx(ee,{name:h,mode:"always_on",checkBoxes:[{value:h,label:a.applyToExistingReimbursements,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(A)},separatorStyle:{marginRight:b.sp4}})]})})]})}const re=(e,l)=>{const{criteria:t,steps:o}=e.remiSetupApproverViewUpdateData?.data??{},i=e.allApprovalRules.length===0;return{[h]:i?[]:[h],[I]:oe(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),B(e.allAttributes),B(e.filteredAttributes),o??[])??[],[k]:l?void 0:t!=null?t.range.min.amount??0:0,[j]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},oe=(e,l,t,o,i)=>i&&i.length>0?i.map((s,g)=>({stepIndex:g,stepType:{selectedOption:s.action,allOptions:C},actors:{allUsers:l,selectedUsers:se(e,s.actors),allNonUsers:o,selectedNonUsers:ne(t,s.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:C},actors:{allUsers:l,selectedUsers:[],allNonUsers:o,selectedNonUsers:[]}}],se=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(o=>o.userId===t.userId)>-1),ne=(e,l)=>e.filter(t=>l.findIndex(o=>o.subType===t.value)>-1),_=e=>`${e}_form`,Pe=e=>`${e}`,ie=c.div`
2
+ display: flex;
3
+ height: 100%;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ background-color: ${e=>e.theme.colors.grey4};
7
+ `,de=c.div`
8
+ display: flex;
9
+ flex: 1;
10
+ flex-direction: column;
11
+ min-height: 0;
12
+ `,pe=c.div`
13
+ display: flex;
14
+ flex-direction: column;
15
+ border: 1px solid ${e=>e.theme.colors.grey3};
16
+ box-shadow: ${e=>`${b.sp0} 2px ${b.sp1} ${e.theme.colors.dropShadowNormal}`};
17
+ border-radius: ${b.sp2};
18
+ `,ue=c.div`
19
+ display: flex;
20
+ justify-content: flex-start;
21
+ flex: 1;
22
+ min-height: 0;
23
+ overflow-y: auto;
24
+ flex-direction: column;
25
+ align-items: center;
26
+ `,ce=c.div`
27
+ display: flex;
28
+ flex: 1;
29
+ background-color: ${e=>e.theme.colors.grey3};
30
+ min-height: 1px;
31
+ max-height: 1px;
32
+ `;export{ae as D,Re as default,_ as uniqueFormName,Pe as uniqueName};
@@ -1,4 +1,4 @@
1
- import{d as F,J as N,F as j,V as t,bC as G,T as O,aP as m,o,y as r,al as M,aN as P,bT as T,cp as V,cq as q,cr as J,c$ as K,u as l,b9 as Q,O as k,b8 as X,p as z,c_ as Y,bt as Z,b as ee}from"./index-6sX8sCRU.js";import{n as i}from"./mui-BKJrVh4W.js";import{a as te}from"./sentry-BsWDfhY_.js";import"./liveblocks-BAOmiMpj.js";import"./core-xud19niX.js";import"./recharts-07URl5uF.js";import"./zeni-epic-state-DEUUJaZy.js";import"./lottie-cQKxXDSP.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.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]="2ab27a3d-a14a-43da-aa78-2a61ae6c2d5d",e._sentryDebugIdIdentifier="sentry-dbid-2ab27a3d-a14a-43da-aa78-2a61ae6c2d5d")}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)},U={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},E={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},d.userId))]},H))})}),g?t.jsx(V,{titleComponent:t.jsx(J,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):null]})},ie=i.div`
1
+ import{e as F,J as N,F as j,V as t,bC as G,T as V,aP as m,o,y as r,al as M,aN as P,bT as T,cp as q,cq as J,cr as O,c$ as K,u as l,b9 as Q,a as k,b8 as X,p as z,c_ as Y,bt as Z,b as ee}from"./index-rJQoaAfw.js";import{n as i}from"./mui-KNfEk2A1.js";import{a as te}from"./sentry-CGE1ab0x.js";import"./liveblocks-CohL7dW6.js";import"./core-BMaLzXUJ.js";import"./recharts-D8Mh9GJw.js";import"./zeni-epic-state-CiJSQQSe.js";import"./lottie-XKgYVRq1.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.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]="70fab0e6-8fc1-438d-a250-93f40a525b2d",e._sentryDebugIdIdentifier="sentry-dbid-70fab0e6-8fc1-438d-a250-93f40a525b2d")}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)},E={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeRegular")},oe=({showDeleteBtn:e=!1,disableButtons:c=!1,isLastSection:x=!1,approvalRule:f,onEditRuleClick:S,onDeleteRuleClick:y})=>{const[g,w]=te.useState(!1),n=N(),{range:h}=f.criteria[0],{steps:$,approvalRuleId:p}=f,a=j.getLocalizedStrings().commonSetUp.approval,v=()=>{w(!0)},U={onOkClick:()=>{w(!1),y?.(p)},onCancelClick:()=>{w(!1)}};return t.jsxs(ie,{windowSize:n,isLastSection:x,isUpdatingApprovalRules:c,"data-testid":m("approval-rule-section",p),children:[t.jsxs(re,{windowSize:n,children:[t.jsxs(ue,{children:[t.jsxs(W,{windowSize:n,children:[a.from," ",P("0,0",h.min)]}),t.jsxs(le,{children:[t.jsx(R,{}),t.jsx(se,{}),t.jsx(R,{})]}),h.max==null?t.jsx(me,{}):t.jsx(W,{windowSize:n,children:P("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(he,{className:"icons",children:[e?c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(I,{isDisabled:!0,"data-testid":m("delete-approval-rule",p)})})}):t.jsx(I,{onClick:v,"data-testid":m("delete-approval-rule",p)}):null,c?t.jsx(T,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(C,{children:t.jsx(B,{isDisabled:!0,"data-testid":m("edit-approval-rule",p)})})}):t.jsx(B,{onClick:()=>{S(p)},"data-testid":m("edit-approval-rule",p)})]})]}),t.jsx(ae,{windowSize:n,children:t.jsx(ne,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(pe,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(de,{children:a.requireText}):t.jsx(ce,{children:a.notifyText}),u.nonUserActors.filter(d=>d.subType!=null).map((d,_)=>t.jsxs(A,{children:[t.jsx(D,{children:d.subType!=null?a.nonUsers[d.subType].label:null}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},`${d.subType}_${_}`)),u.actors.map(d=>t.jsxs(A,{children:[t.jsxs(D,{children:[d.firstName," ",d.lastName]}),u.operator!="is"?t.jsx(L,{className:"operator",children:u.operator}):null]},d.userId))]},H))})}),g?t.jsx(q,{titleComponent:t.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(J,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},ie=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -57,7 +57,7 @@ import{d as F,J as N,F as j,V as t,bC as G,T as O,aP as m,o,y as r,al as M,aN as
57
57
  box-sizing: border-box;
58
58
  position: relative;
59
59
  `,ne=i.ul`
60
- ${e=>`${U.stepper.style(e.windowSize)}`};
60
+ ${e=>`${E.stepper.style(e.windowSize)}`};
61
61
  position: relative;
62
62
  padding-left: ${o.sp6};
63
63
  list-style: none;
@@ -172,10 +172,10 @@ import{d as F,J as N,F as j,V as t,bC as G,T as O,aP as m,o,y as r,al as M,aN as
172
172
  display: inherit;
173
173
  gap: inherit;
174
174
  `,W=i.span`
175
- ${e=>`${U.amount.style(e.windowSize)}`};
175
+ ${e=>`${E.amount.style(e.windowSize)}`};
176
176
  color: ${e=>e.theme.colors.primary};
177
177
  word-break: break-word;
178
- `,b={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Be=({approvalView:e,onBackClick:c,onEditRuleClick:x,onDeleteRuleClick:f})=>{const S=F(),y=N(),{fetchState:g,deleteStatus:w}=e,n=j.getLocalizedStrings().commonSetUp.approval,h=j.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,$=w.fetchState,p=e.listeningToPusherEvent;return t.jsxs(xe,{children:[t.jsx(G,{title:n.approvalPageHeader,backgroundColor:S.colors.grey4,style:{zIndex:4},onBackClick:()=>{c()},source:"ReimbursementApprovalRulesPage"}),t.jsxs(ge,{children:[t.jsx($e,{windowSize:y,children:h.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||$==="In-Progress"?t.jsx(we,{children:t.jsx(O,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((a,v)=>t.jsx(oe,{showDeleteBtn:v!==0,disableButtons:p===!0&&a.approvalRuleId===e.newApprovalRuleId,approvalRule:a,isLastSection:v===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:f},a.approvalRuleId)),t.jsxs(be,{windowSize:y,onClick:()=>{x()},"data-testid":m("add-approval-rule"),children:[t.jsx(fe,{}),t.jsx(ye,{children:n.addApprovalText})]})]}):null]})]})},xe=i.div`
178
+ `,b={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Be=({approvalView:e,onBackClick:c,onEditRuleClick:x,onDeleteRuleClick:f})=>{const S=F(),y=N(),{fetchState:g,deleteStatus:w}=e,n=j.getLocalizedStrings().commonSetUp.approval,h=j.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,$=w.fetchState,p=e.listeningToPusherEvent;return t.jsxs(xe,{children:[t.jsx(G,{title:n.approvalPageHeader,backgroundColor:S.colors.grey4,style:{zIndex:4},onBackClick:()=>{c()},source:"ReimbursementApprovalRulesPage"}),t.jsxs(ge,{children:[t.jsx($e,{windowSize:y,children:h.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||$==="In-Progress"?t.jsx(we,{children:t.jsx(V,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((a,v)=>t.jsx(oe,{showDeleteBtn:v!==0,disableButtons:p===!0&&a.approvalRuleId===e.newApprovalRuleId,approvalRule:a,isLastSection:v===e.allApprovalRules.length-1,onEditRuleClick:x,onDeleteRuleClick:f},a.approvalRuleId)),t.jsxs(be,{windowSize:y,onClick:()=>{x()},"data-testid":m("add-approval-rule"),children:[t.jsx(fe,{}),t.jsx(ye,{children:n.addApprovalText})]})]}):null]})]})},xe=i.div`
179
179
  display: flex;
180
180
  min-height: 100%;
181
181
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{aw as Mt,a8 as Rt,J as Pt,d as Bt,cd as Nt,y as m,F as et,gk as Lt,gm as _t,gn as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dv as Et,go as Ft,gz as Be,o as a,gp as Ne,fk as b,gs as w,fn as x,aN as Le,fj as _e,b as V,gu as Oe,aR as Kt,ao as Ut,gv as Vt,gw as re,bx as Gt,gx as Ht,x as Yt,O as Jt,a as qt,al as tt,b9 as it,p as G,am as Zt,bV as Xt,ai as Qt,gR as ei,gN as ti,u as c,ci as ii,cZ as ai}from"./index-6sX8sCRU.js";import{a as p}from"./sentry-BsWDfhY_.js";import{n as r}from"./mui-BKJrVh4W.js";import{a as ri}from"./liveblocks-BAOmiMpj.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-DEUUJaZy.js";import si from"./InvoiceUploadSection-BO1i-e_D-BEHL-1J7.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-xud19niX.js";import"./lottie-cQKxXDSP.js";import"./recharts-07URl5uF.js";import"./analytics-Dz3HJTKp.js";import"./lexical-CFjIG720.js";import"./utils-lvnYc7Lx.js";import"./AttachmentView-Bsa0u92o-CQtMxB6c.js";import"./uploadReceipts-Dge0cNF1-DDO6BRYH.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]="b5c43f2f-9ec8-4aa1-a216-508519abeaf5",e._sentryDebugIdIdentifier="sentry-dbid-b5c43f2f-9ec8-4aa1-a216-508519abeaf5")}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 Jt("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),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,X]=p.useState("approved"),N=p.useRef(null),[j,Q]=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=()=>{Q({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=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),A(!0)},De=()=>{rt()},Tt={onOkClick:l=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(X("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(X("delete"),Ie()):(X("rejected"),q(!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(Je,{windowSize:o,children:t.jsx(qe,{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(Ye,{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(Qe,{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(Je,{windowSize:o,children:[t.jsx(qe,{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(Ye,{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(Ze,{windowSize:o,children:[t.jsx(Xe,{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(Qe,{windowSize:o,children:[t.jsx(He,{}),t.jsxs(ui,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsxs(Ze,{windowSize:o,children:[t.jsx(Xe,{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(),Y===!0&&J(!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:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="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:Z==="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&&Y?t.jsx(Ut,{onClickAway:()=>J(!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:()=>J(!Y),"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,J as Pt,e as Bt,cd as Nt,y as m,F as et,gk as Lt,gm as _t,gn as Ot,V as t,cp as Ae,cq as Me,cr as Re,bC as Pe,aP as y,bo as Wt,dv as Et,go as Ft,gz as Be,o as a,gp as Ne,fk as b,gs as w,fn as x,aN as Le,fj as _e,b as V,gu as Oe,aR as Kt,ao as Ut,gv as Vt,gw as re,bx as Gt,gx as Ht,x as Yt,a as Jt,c as qt,al as tt,b9 as it,p as G,am as Zt,bV as Qt,ai as Xt,gR as ei,gN as ti,u as c,ci as ii,cZ as ai}from"./index-rJQoaAfw.js";import{a as p}from"./sentry-CGE1ab0x.js";import{n as r}from"./mui-KNfEk2A1.js";import{a as ri}from"./liveblocks-CohL7dW6.js";import{bL as oi,bP as ni,FL as li}from"./zeni-epic-state-CiJSQQSe.js";import si from"./InvoiceUploadSection-drGgAU5w-CP2A3IhR.js";import{r as di,h as f,u as ci}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-BMaLzXUJ.js";import"./lottie-XKgYVRq1.js";import"./recharts-D8Mh9GJw.js";import"./analytics-DGcxWyl6.js";import"./lexical-CyZM9SwL.js";import"./utils-Co3Y654K.js";import"./AttachmentView-B0oZITps-CNLEqH0L.js";import"./uploadReceipts-Dge0cNF1-COPT6pnG.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]="0d31dc16-3681-4cc3-b1a5-dbce34ea30a5",e._sentryDebugIdIdentifier="sentry-dbid-0d31dc16-3681-4cc3-b1a5-dbce34ea30a5")}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 Jt("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),[Y,J]=p.useState(!1),[ct,q]=p.useState(!1),[Z,Q]=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=>{q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{q(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(Q("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Ie()):(Q("rejected"),q(!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(Je,{windowSize:o,children:t.jsx(qe,{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(Ye,{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(Je,{windowSize:o,children:[t.jsx(qe,{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(Ye,{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(Ze,{windowSize:o,children:[t.jsx(Qe,{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(Ze,{windowSize:o,children:[t.jsx(Qe,{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(),Y===!0&&J(!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:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="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:Z==="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&&Y?t.jsx(Ut,{onClickAway:()=>J(!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:()=>J(!Y),"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)};
@@ -147,7 +147,7 @@ import{aw as Mt,a8 as Rt,J as Pt,d as Bt,cd as Nt,y as m,F as et,gk as Lt,gm as
147
147
  right: ${e=>s.actionsContainerRight.valuePx(e.windowSize)};
148
148
  height: 100%;
149
149
  display: flex;
150
- `,oe=r(Qt)`
150
+ `,oe=r(Xt)`
151
151
  display: flex;
152
152
  align-items: center;
153
153
  width: 100%;
@@ -283,7 +283,7 @@ import{aw as Mt,a8 as Rt,J as Pt,d as Bt,cd as Nt,y as m,F as et,gk as Lt,gm as
283
283
  color: ${e=>e.theme.colors.hero};
284
284
  margin-bottom: ${e=>s.totalBottomMargin.valuePx(e.windowSize)};
285
285
  justify-content: space-between;
286
- `,Xe=r(Xt)`
286
+ `,Qe=r(Qt)`
287
287
  display: flex;
288
288
  width: 176px;
289
289
  color: ${e=>e.theme.colors.primary};
@@ -291,7 +291,7 @@ import{aw as Mt,a8 as Rt,J as Pt,d as Bt,cd as Nt,y as m,F as et,gk as Lt,gm as
291
291
  display: flex;
292
292
  flex-direction: column;
293
293
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
294
- `,Qe=r.div`
294
+ `,Xe=r.div`
295
295
  display: flex;
296
296
  width: 100%;
297
297
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};