@zeniai/web-cockpit-ui 1.15.26-qa → 1.15.27-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 (280) hide show
  1. package/dist/assets/{ACHDetailsPage-CxpLuJpQ-D8_DWqQH.js → ACHDetailsPage-49jTvZnX-Be-zaLi0.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BtDuOBey-Bez8_W10.js → AIPerformancePage-DJea2aE9-B9iO1fyz.js} +1 -1
  3. package/dist/assets/AccountInfoPage-Dv1rJn72-BUHG0zde.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BLF92_vF-CaBSQ7ha.js → AccountInfoPageContent-zf4BRg29-DZX6BB3M.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-AsMkXu1I-C-QK_nbk.js → AccountLockedInfoModal-CxoC-scs-DZJuQo5m.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CkaBrm5K-BMliP8gz.js → AccountReconDetailsDrawerPage-DI40FQGK-9O64pVIg.js} +1 -1
  7. package/dist/assets/{AccountRow-aEmcYP8T-Cl0RXej_.js → AccountRow-CxEUX108-Ctuhzest.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-C0At5pn8-D7r1CqCa.js → AccountsPromoCardStack-ugkcP4hS-Bj_Nb7Iz.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CbjThbsA-BwCuIFI9.js → AddAddressForCardDrawer-KZ-LVrwR-BRcI_JTS.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CMJwUbgf-BbnK5SDf.js → AddToWalletPage-CmBtO-Jx-CFwvepkh.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-B_BSfude-C_FYdrkT.js → AgingReportsPage-BgZqIoFH-CBXVGn8J.js} +1 -1
  12. package/dist/assets/{AllUserItems-CGlWa60t-C3pz-rmk.js → AllUserItems-CMkg4gXl-Dbiuf_va.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-DT3vkmLG-D5XFP6HN.js → ApAgingDetailPage-CIc4rs2--CTxo3gfJ.js} +1 -1
  14. package/dist/assets/{AppBasePage-CDy7wPlv-BeCjs7W0.js → AppBasePage-Ch3JOqQA-CkD3FaNp.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CEsXm_i6-uqFijiJh.js → AppDrawerContent-DK3tTd88-Ebl_NVYT.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-CB2_4-2f-C2FP4JEY.js → ApprovalRulesSettingsPage-8myNAB_M-Bfi0yOAc.js} +1 -1
  17. package/dist/assets/{ArAgingChart-qxhWsIQb-GForpAEV.js → ArAgingChart-D8yl6Fco-iPMSgvYP.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BbzQryp_-DkvGyUny.js → ArAgingDetailPage-DMPLqLKl-D3301L0t.js} +4 -4
  19. package/dist/assets/{AttachmentView-duTVxc9g-ScUNtTmh.js → AttachmentView-Cxyodtel-B24U0bgX.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CAwAf9xK-CS7ylayD.js → BankAccountSection-DGuhn7CN-DmUf2oBe.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CaDnP9_--uUCVdcq3.js → BankAccountWarningSection-l79_AN7P-wzRxiGEn.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CDV7O8cl-Bcmudska.js → BankConnectionsSettingsPage-CkF3K8e8-C4TR4rEL.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DJxh2CIc-CiN30l4I.js → BillDetailPage-CaAXVwe3-C9NFzEPg.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-B2ZPbqtr-Dmjrh0x3.js → BillPayApprovalRuleDetailPage-CFiMiJVw-BuCRs1eu.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-MM7v8ZMx-KOYMw-l8.js → BillPayApprovalRulesPage-qpF8Wy4I-B3HFhggf.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-JK-VOx4W-CjtFHOzB.js → BillPayPromoPage-CNUoM-3L-1wklXGZ-.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-h0uoCWMl-Cj2xzAhQ.js → BillPaySetUpPage-D_hRCBF5-Imf9v1rc.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-gJG9OxD6-CzuX_q6r.js → BillingSettingsPage-BfvQsRnJ-VinZfITV.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CPPDFsZt-Cw50nOC3.js → BillsBulkReviewDrawerPage-BRVd0a8c-DFmDsImO.js} +1 -1
  30. package/dist/assets/{BoxItem-CYe_gTmA-93ej9UZX.js → BoxItem-COPJh7Lh-BtEwjrhv.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Dos8Bnvb-CTGDkcnR.js → BusinessVerificationPage-CdRHA3h2-CIWKUgi1.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CFDhtij8-DWYmJS-d.js → CardNumberSubText-Md18DQb7-Ci7Q_wrC.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BBGGzKh7-F2rDTgmL.js → CashbackDetailPage-CfB0mGdX-DgwWmp2K.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BQhago53-C4F47zGk.js → ChargeCardDetailPage-ByOcHh0H-DEou_IlL.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-B0E-C3RH-LZD5j-yi.js → ChargeCardListPage-9aL08yGW-Ba0oB6VC.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-ByGv0xWl-NawU-7AB.js → ChargeCardListTable-CbqF_9f3-C6X1RqBh.js} +16 -16
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-LCY9rFqO-BRBN0Zdo.js → ChargeCardPaymentHistoryPage-Dp_vLjiJ-C_QznI13.js} +1 -1
  38. package/dist/assets/ChargeCardPromoPage-8Oz0DmQv-CtVY_-8P.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-BHv2VOdc-SuQ6Yb17.js → ChargeCardSetupPage-DYOCe46h-e0p7QaI6.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-UpRXyPTS-irRrI3za.js → ChargeCardStatementsPage-BLws2jOd-DH79p6d7.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-0zbTQ3Fa-Cykeqrse.js → CheckDepositDrawerPage-Bc3a4vVO-QMFCIXbb.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-DlYIKSlQ-BqvITvys.js → CollapsableReportTable-4-6Wne7j-Bn8DnqeK.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-Ck0xqZ0d-DuMewE5F.js → CompanyOfficerDetailsSection-C_S5WXms-iJZMGPb2.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DeVPuuje-BuSa0Fzy.js → CompanyPassportCard-DPwqwt8k-UccZMyh-.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-F_GUET9a-C8wIIeX0.js → CompanyPassportPage-DDjpq5T1-zONxBEPm.js} +13 -13
  46. package/dist/assets/{CompleteProfile-Y6HwKtpz-mlU_Lnh9.js → CompleteProfile-C6o_Ez-L-Do1B6QH5.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-BGE3Okwr-_KME7UV8.js → ConfettiBurst-DNR3qv8X-ptw_T_Cq.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-B7FYHCKx.js → ConstrainedInnerElement-BeIpAPjB-DchKqY-F.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-BlZe6gmh-CSTXLjlO.js → CreateOrEditVendorPage-Bcj3U0s_-5vJHklRM.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-flPmyCaF-BwWxi_XW.js → CreditCardPaymentDrawerPage-CI3GD2-u-DH6MMFER.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-RiKAivD8-BksRM4rB.js → CurrencySelectField-98tevzzy-BlqO4MuW.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B7dLMk4g-BJmm3nal.js → CustomerOnboardingActivationPage-BSsdFKhb-BMSgiMMy.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DgiK94cf-CHSTlWE8.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-AWsst0XH-BnN37yfD.js → CustomerOnboardingDetailPageSkeleton-D5gblIdv-CFqfFpT0.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-Bqid4-rH-Dtat8bQW.js → CustomerOnboardingNoStepsPage-DCt6wtfH-Cjj8y-RZ.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-B5LrMzZS-CrukYZMz.js → CustomerOnboardingPage-_HuMZOrd-CaMRm4tt.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DqgoBLWp-DGZ2IBPS.js → CustomerOnboardingProductSuitePage-DcX7v8VV-DCl6Er8S.js} +3 -3
  58. package/dist/assets/{Dashboard-D0KlujCx-CaX9_ir_.js → Dashboard-C12cMR4f-BJHxNm8C.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-bxKyMsG7-Bz2x5Wjz.js → DashboardReportPage-C8FygWL_-zsIsDvlx.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-Ch0OiH1g-rX5svgXp.js → DashboardSidebarBackgroundAnimation-eTAs_vdL-CSWEzD2n.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-BdZVCAx--DSGTNCEN.js → DepositAccTransactionItem-BuwWbrWB-LoOAd3VM.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-LU0QMdSV-Daycs7AM.js → DepositAccTransactionListPage-C1XXM6Qy-C72sFA4v.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-CFt5GgZ1-Bs5DiWKb.js → DomesticWireDetailsPage-t6W8wYH8-BW3aYQzE.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CH_bA3On-BHg1nZjl.js → DownloadOverlay-CJYnXgCn-odTawGXc.js} +1 -1
  65. package/dist/assets/{DrawerPage-Cpdp-IFb-4VvN-IwZ.js → DrawerPage-isFPi2CS-BP0DVAOi.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-BYnuNojX-CUAXLz7m.js → EditPeoplePage-4fN2aCBr-BHmm7eYD.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-DnyyPZ26--iJDDA6V.js → EditReimbursementDetailPage-CVMvR_xa-Y5W6LDDw.js} +1 -1
  68. package/dist/assets/EntityDetailPage-C8dRi0hQ-ChhHQBUx.js +18 -0
  69. package/dist/assets/{EntitySummarySection-BFpgAYAM-CvJuZuaZ.js → EntitySummarySection-BXo9RrQK-BuIKOVzl.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-YjOVm_Bw-BVAZfsV6.js → ExpenseAutomationOverviewPage-DPfeujDA-5Pkl4JAF.js} +59 -59
  71. package/dist/assets/ExpenseAutomationPage-CWEo8JL8-DDq4rvWb.js +1700 -0
  72. package/dist/assets/{ExpressPayPage-CKqPEfbR-D1bSY9da.js → ExpressPayPage-Dlku9oMT-sidjttl1.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-Cs1Y3nP0-DwGyVUFX.js → FeaturePreviewPage-qJmxWW10-BCL41LPf.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BCyL8Jdr-D1x5wOfa.js → FollowStepsSection-DxAp4i9T-Cs3p7RFB.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-CBQFcVHd-CNAri0Gq.js → GlobalReviewListPage-Cadf7AIC-BB24FYDU.js} +1 -1
  76. package/dist/assets/{InformationCardStack-nFMetrAy-S6OfgFLB.js → InformationCardStack-BZhYP37l-Dd2otSYf.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-CEMeGJXy-T-H7kH_u.js → InsightsCardStack-CPZtVqq5-BUF_fSK4.js} +1 -1
  78. package/dist/assets/{InsightsSection-BYiN2xB7-DnISGJLF.js → InsightsSection-0ekovQH4-BlPNJh_U.js} +2 -2
  79. package/dist/assets/{IntegrationsSettingsPage-BQ7g3a3K-ChxLIdDV.js → IntegrationsSettingsPage-CNis_Wk3-DA1OiLg5.js} +2 -2
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BHRYsZgm-DxcAvHSv.js → InternationalWireSwiftDetailsPage-8g16Kgfi-B71tbLSL.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-tJbVtzQP-T9PeDRMa.js → InternationalWireVerificationPage-ofzwcymr-CT3lnfto.js} +1 -1
  82. package/dist/assets/{InviteFormPage-BVXte8w8-B---KuG2.js → InviteFormPage-pQDs7n3f-Dvolqiav.js} +1 -1
  83. package/dist/assets/{InvitePageListView-DFPyLLrA-Dt36CnHt.js → InvitePageListView-DJYwE5Il-BdRMo6ep.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-B-uxjkke-YzKTCQz_.js → InvitePeoplePage-CgSGdi3i-BzFWBUb-.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-B9q7nIs0-Bul_AbD5.js → InvoiceUploadSection-BEp8eQB4-DHRScRES.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-BuLj1bOl-8i7kiGE_.js → IssueChargeCardPage-DX3kJ72T--bI6SGG9.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-D2t8ti-C-DAgCkLW4.js → LabeledAddressValue-DWDFf_hN-e4LanhXy.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-DMcor_I8-DcH2ZThX.js → LabeledAddressValueField-Ckm80g0_-fddiRWcN.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-B6w2HGJK-C11VW6dj.js → LabeledControlledCheckBoxField-Dhta-oad-BOgGTnpX.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-DHNAX5Pu-jqxRDHbV.js → LabeledCreatableSingleSelectField-CWhimq6W-CiffZWxa.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-Bx1u7vv_-CY-yp38K.js → LabeledDocumentField-z2O1tykl-BOR0XPyM.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BBS4da2b-DVk0LByT.js → LabeledDropDownFormattedTextField-BZu90SFF-CT4k7JQd.js} +1 -1
  93. package/dist/assets/{LabeledText-zjKn4Cw--YLsk-TbJ.js → LabeledText-DlIRkA7r-DGwEr03s.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-BOoBK2j4.js → LabeledUserSingleSelectWithSubtitlesField-CXwZdQ0K-DDygkuei.js} +3 -3
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DiBtAWQ3-Dfgdfs2r.js → LabeledZeniRolesDropDownField-CWui0vqF-DJaOZiml.js} +1 -1
  96. package/dist/assets/{LinkJETransactionPage-D66bzDh_-CVCLmVkW.js → LinkJETransactionPage-DJfFhIWc-DH9uk_Nk.js} +1 -1
  97. package/dist/assets/{LockCardPage-B1g2TZWL-DSI1imlj.js → LockCardPage-Cv9rUAY7-DKakaJGE.js} +6 -6
  98. package/dist/assets/{LowBalancePopup-DbtHeVY--BmWpKubs.js → LowBalancePopup-DnRpH2rk-CPocaNr6.js} +1 -1
  99. package/dist/assets/MagicLinkACHDetailsPage-CdmfROQK-B3EIdmd3.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BqqCZBUT-3K5d9lKn.js +1 -0
  101. package/dist/assets/MagicLinkInternationalWireDetailsPage-QDfBddvz-DxlDIcb0.js +1 -0
  102. package/dist/assets/{MagicLinkSuccessPage-BkxuITX--9pTpV3Ii.js → MagicLinkSuccessPage-ABpq3GEM-347FQa8F.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CqkZ9wOf-BV8PoZba.js → MagicLinkTitleSection-ygghGjqi-CPCSmIlY.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DRFGCM2W-Df4NDMjP.js → MailingDetailsSection-DtuTgXeV-BAt57tta.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-CE2ZqHBJ-Dj34a5Ib.js → MyBankConnectionsSettingsPage-BRy7gQIK-D0ljHEmg.js} +1 -1
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BffxXDZg-D9Pw7itJ.js → MyPendingActivationChargeCardListPage-eCLt21RY-DdeT-VxA.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-DrsAlesY-B8Fmgkua.js → MyProfileSettingsPage-C-GlfSxD-BPv3bj5w.js} +5 -5
  108. package/dist/assets/{NavBarWithPicker-C4VfP_Kw-C9LoglkJ.js → NavBarWithPicker-MP4pdS6O-ETw04dfI.js} +1 -1
  109. package/dist/assets/{NavigationArrow-DCCxx6H7-DFr_M9lC.js → NavigationArrow-CxS8-9O0-BQImrbmZ.js} +1 -1
  110. package/dist/assets/{NavigationDots-tWCw6Bpk-CDFZbVA_.js → NavigationDots--7KEcIuu-eftMXpdw.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-UIA8zAjd-BgtMdkzY.js → NewGlobalMerchantPage-wYBwn2dL-D2xZN2Wq.js} +1 -1
  112. package/dist/assets/{NoDataChart-Bvetk9za-DZEcALCn.js → NoDataChart-Bd0aKX8D-BMtoTVvu.js} +1 -1
  113. package/dist/assets/{NoDataTable-9xF1_3XS-DKuCMxmf.js → NoDataTable-Bjbt7lt9-QawSofKO.js} +1 -1
  114. package/dist/assets/{NotFoundPage-CdH-3upl-BbsmWMZo.js → NotFoundPage-CxAhFmy2-D61A-JG3.js} +7 -7
  115. package/dist/assets/{NotificationSettingsPage-DP2gGIz1-DLZddDdI.js → NotificationSettingsPage-BwTc94Y4-DxMem3GE.js} +1 -1
  116. package/dist/assets/{NotificationsListConfig-DG-DH2Aj-DJh7Oe2k.js → NotificationsListConfig-f-Y-UtEy-BzHeGbqt.js} +1 -1
  117. package/dist/assets/{NotificationsPage-CgFMmR2X-CamiuoZq.js → NotificationsPage-Cds6qhVt-Dyww7PRK.js} +1 -1
  118. package/dist/assets/{OpExByVendorPage-eUvIAWzt-Bokql7Bs.js → OpExByVendorPage-CF6Q-SV2-DWalefYD.js} +1 -1
  119. package/dist/assets/{OverlayContainerPage-D4QU0p4o-CayKpuTb.js → OverlayContainerPage-D4QU0p4o-DiYJgmmr.js} +1 -1
  120. package/dist/assets/{PandLWithForecastPage-8S06Nyi5-DBveFMsr.js → PandLWithForecastPage-DwWcx5eK-szNL9FCt.js} +2 -2
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQtrANhI-DYBak-1n.js → PaymentAccountSetupBillingAddressSection-DIP_uznB-B7DNBV4H.js} +1 -1
  122. package/dist/assets/{PeoplePage-D1BLHtO0-BbRVrBGI.js → PeoplePage-BgP7kTw9-CG9DTLLQ.js} +1 -1
  123. package/dist/assets/{Preview-BjSuSI7X.js → Preview-CyY8fFSj.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BKSXWnFR-C7YSe0g-.js → ProductsCarousel-CJlGSrBH-C82GY9tH.js} +1 -1
  125. package/dist/assets/{PromoBaseCards-BYT9nEJT-Ccbt3B8c.js → PromoBaseCards-fx9bhHkF-5GD0MDQm.js} +1 -1
  126. package/dist/assets/{QBOConnectionDialog-C2-omQMZ-CQInDhbT.js → QBOConnectionDialog-CGAr0mXC-CrSLQG4V.js} +1 -1
  127. package/dist/assets/{QBOSetupSection-lgv5wVlg-BuAgL-EC.js → QBOSetupSection-D-fnn99E-yQD39UVj.js} +7 -7
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CbJViS3x-9wOX2uX5.js → ReimbursementApprovalRuleDetailPage-DvhdOKpF-CHqGgBzD.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRulesPage-BuNt-Bmb-CFj1CuJD.js → ReimbursementApprovalRulesPage-BB4c1_YZ-B3-dzOHa.js} +1 -1
  130. package/dist/assets/{ReimbursementDetailPage-CK3-Jqkd-BNspJlAb.js → ReimbursementDetailPage-DpWhzOF9-Dixn1uCw.js} +1 -1
  131. package/dist/assets/{ReimbursementPromoPage-fptOAJna-_HCem7ug.js → ReimbursementPromoPage-CYS1ZeFL-DbUZbWTa.js} +8 -8
  132. package/dist/assets/{ReimbursementSetUpPage-CidrpT2g-C2WrkYYn.js → ReimbursementSetUpPage-CoOFmpfw-CzqYPddc.js} +1 -1
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cy_Hediw-BNPGhyOT.js → ReimbursementsBulkReviewDrawerPage-DAYEgH4V-CKgr6iyS.js} +1 -1
  134. package/dist/assets/{ReloadCard-C81rGzOp-DFlKYcW1.js → ReloadCard-clq1KPzy-DLLVDS4G.js} +1 -1
  135. package/dist/assets/{ReportTableViewSelector-neRSjrhV-BkLf86Vv.js → ReportTableViewSelector-CU3PZ-xy-CDmAbwqP.js} +1 -1
  136. package/dist/assets/{ReportsPage-BhzQVaer-DroWIM-W.js → ReportsPage-C5QPXAa--D9Rm-qp8.js} +5 -5
  137. package/dist/assets/{RevenueChart-x7uTbFlm-DbSvnjIg.js → RevenueChart-BM8cNGoZ-OoJdgTQW.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-jXZCylzg-BzkmGW6Z.js → ReviewDetailsPage-Dp29TV8A-pDKCfw94.js} +2 -2
  139. package/dist/assets/{ReviewOverlay-nlm2HnGw-0h8O5Gsr.js → ReviewOverlay-OXnAkRJ_-Di_D_VlI.js} +1 -1
  140. package/dist/assets/{RoleWithToolTip-C29QOzxS-DDwRD3YV.js → RoleWithToolTip-BCeMfqCC-DiZyrWD_.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CkPzofLN-ZkvdDelI.js → ScheduleDetailsFixedAssetsPage-BUWOvDMW-DaI6ZQoZ.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsPage-BSZefKOh-Lao8_CRx.js → ScheduleDetailsPage-F2KQ46TD-VVV77yxd.js} +1 -1
  143. package/dist/assets/{ScheduleSequenceTable-BW5M7Zfq-C4Wr3YEf.js → ScheduleSequenceTable-c-8N2OvE-DWSKrTJR.js} +1 -1
  144. package/dist/assets/{ScreenRoutes-3--BP3dQ.js → ScreenRoutes-BYoqwzEO.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-C703iFL6-CB-x39kX.js → SetUpAccountSection-CPw8BhAT-Bu28TndH.js} +1 -1
  146. package/dist/assets/{SignIn-D9K5FklU-ErPt7eV_.js → SignIn-DT4-gKMD-DgVi8USa.js} +6 -6
  147. package/dist/assets/{SignInScreen-CRT7QevQ.js → SignInScreen-CdADJVAt.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-CBNtC74m-DHKZfQIJ.js → SpendManagementListViewPage-YoHK4LrJ-DYhZa44h.js} +3 -3
  149. package/dist/assets/{SpendManagementPerTabPage-D_sa7WRd-DcKlayyT.js → SpendManagementPerTabPage-CEJxlQwu-D8XVtvOY.js} +1 -1
  150. package/dist/assets/{SpendManagementSection-DpZUTV6m-YVn8oLNw.js → SpendManagementSection-Dbk_Ojop-DcKtjVjR.js} +1 -1
  151. package/dist/assets/{StatementItem-DvdSsb8I-DOY7J3f4.js → StatementItem-DO9WpE-R-Do-IIiY-.js} +5 -5
  152. package/dist/assets/StatementsPage-Cf8pwDhO-RC289M0h.js +58 -0
  153. package/dist/assets/{StatusSwitcher-hKYgwNLC-DgNQeM48.js → StatusSwitcher-B523Fhna-CVWspTKV.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-aeDd9xiF-IQYV5jWC.js → SubTabSwitcher-Dgwgj3Si-U0zspkd_.js} +1 -1
  155. package/dist/assets/SummaryCard-CGteKBHk-27q94esm.js +1 -0
  156. package/dist/assets/{TaskManagementPage-D2Ooq8DR-B4CILg_v.js → TaskManagementPage-CIQeYwEY-C7-23Lr5.js} +1 -1
  157. package/dist/assets/{TimeRangeSwitcher-DEqlZxa6-0m9X1pzy.js → TimeRangeSwitcher-8lNpLdVr-Dj19rYPc.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-BppC6giF-Dj6iiZx4.js → TimeframeSwitcher-B-l9fJ1Q-ByHm5vUq.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-CbX9ElMN-q3bNmxt9.js → TimeframeSwitcherWithToggle-3yKIUhvE-DaSH_yQW.js} +2 -2
  160. package/dist/assets/{TopExCard-Cy6tPVSx-BKtUObR2.js → TopExCard-C-CBza7t-C8HWdf71.js} +1 -1
  161. package/dist/assets/{TopExDetailPage-Rtrcdkcp-CpeHlBi7.js → TopExDetailPage-Dx_w2Wmt-By36tBTS.js} +8 -8
  162. package/dist/assets/{TransactionActivityLogPage-DbwSsjPJ-DBDY7klu.js → TransactionActivityLogPage-CA6FGjPI-DoUnK6pL.js} +1 -1
  163. package/dist/assets/{TransactionDetailPage-D-vXAAB7-BO7VlHs9.js → TransactionDetailPage-CpNGUBqP-gfLrfFlK.js} +1 -1
  164. package/dist/assets/{TransactionList-BruCNjQg-QGZvhCnu.js → TransactionList-CvRmT2Lq-C1JZRVpn.js} +1 -1
  165. package/dist/assets/{TransactionListBig-bp7q3prH-BjdaMTKR.js → TransactionListBig-v8qd1Ec7-hwFVnuVq.js} +1 -1
  166. package/dist/assets/{TransactionListPage-ZfJsaVb8-CqalSW4h.js → TransactionListPage-C23zWqxy-DgePPgum.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-CldkuO2--DkzTZ-pl.js → TransactionVendorDetailPage-vpDqNBSu-BIkJjCOi.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-DswS6KZf-DXuxVLU4.js → TransferDrawerPage-5FY_zDCE-DJ5J1SOB.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-DWo7iRpO-D6Zu8aSf.js → TreasuryOverviewPage-DDjaj1jW-B4JtoLhv.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage-DQxCF3-4-CpDxyIla.js → TreasuryPromoPage-D3y0Te0d-DmBRPB0W.js} +1 -1
  171. package/dist/assets/TreasuryStatementsPage-BF_EZUjg-suQxt6u_.js +58 -0
  172. package/dist/assets/{TreasuryTaxLetterPage-DH3su_rX-CTO71UU_.js → TreasuryTaxLetterPage-C1nYfVbO-eUqGz6CJ.js} +2 -2
  173. package/dist/assets/{TrendChart-BMHDaOeh-DkxaXm9c.js → TrendChart-DwYxYNR7-JcI7qpjF.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-DDLrmIrt-DK3AzuE_.js → TrendWithTransactions-BJnpKKqL-DKCgJJvT.js} +1 -1
  175. package/dist/assets/{UncategorizedAccountsMappingPage-3SW8Gj0Z-2HGOL2fq.js → UncategorizedAccountsMappingPage-CxlG2JUW-Cij2klA0.js} +5 -5
  176. package/dist/assets/{UnitIntegrationPage-DPMy8dXP-BEwmhtiJ.js → UnitIntegrationPage-DaIJxSo2-GGpI7ByY.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-BHpT2al--D9tVOJr4.js → UploadAdditionalDocumentOverlay-Bw9ymrDY-BTVIu0dz.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-C6gEOhUv-D393yaM2.js → Vendor2FAPopup-DxlOTzWL-DAG_NkfZ.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-CQ6OiO4V-vWpnVdE1.js +1 -0
  180. package/dist/assets/{VendorDetailPage-BC1FhaQA-Cih4hObU.js → VendorDetailPage-BGrtc6EE-DmQ5F0In.js} +1 -1
  181. package/dist/assets/VendorDomesticWireDetailsPage-D5yME16K-CGPyvaCT.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-DYyPOA8D-CmmLPOPD.js → VendorFiling1099EditablePage-A5wcCVBF-DUjQTYJL.js} +1 -1
  183. package/dist/assets/{VendorFirstReviewPage-Cpmk7rDk-BUDXATpi.js → VendorFirstReviewPage-Dr6MMvIq-LfXi6VDf.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-CWAWq6kq-Bu8qF4QT.js → VendorInternationalWireDetailsPage-BJUaxg9g-C6pvbY6G.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-v2icyO6w-6aTsJwry.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-CGQ35Mhp-B1f40k92.js → VendorsAccountsSection-B9OpiDDc-Ck5imuYH.js} +1 -1
  187. package/dist/assets/{VerifyDevice-CfMJW1Vh-CfGn1f2S.js → VerifyDevice-CViWQbOn-CG6KWpvG.js} +7 -7
  188. package/dist/assets/{VideoPlayer-BNBpjXJk-Ci86uK0H.js → VideoPlayer-D5QP-myQ-CVNLOpWk.js} +2 -2
  189. package/dist/assets/{VideoPopup-BF6lmB7l-CORel6we.js → VideoPopup-_4nnxGFK-rc_W8uy0.js} +2 -2
  190. package/dist/assets/{WarningsDrawerPage-Crj70lnR-CskR51nP.js → WarningsDrawerPage-D8X9a6pX-DcE35uzS.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-CaA6m3tQ-B7Wr8tNB.js → ZeniAccountDetailPage-B2gRhBJz-BpnCGmCc.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-x_51gDs1-VJ-m66dM.js → ZeniAccountListViewPage-Dc4IWyQw-6oEyCUyL.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-Csr24dri-Bx5ehodw.js → ZeniAccountNavBarPieces-CYTd-7fg-D7gLlXGG.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-lxKBk2r5-Cj7NRVl6.js → ZeniAccountPromoPage-B5rTE2aZ-DtGW6mZ_.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-DUI4-2Zw-6keQaK8x.js → ZeniAccountSetupPage-BlS6FEcT-D8fD5QNH.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-DxEZ4DiK-DuN0VY_D.js → ZeniCopyright-DbOXr6hr-D49zDt7K.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-4Nq4Sm9J-B1R78ZqF.js → ZeniTransferAmountSlider-DMdKnrKk-BOekYkfn.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-D4w2vdRB.js → add-to-wallet-DgdBD8_G-Z21-4-a3.js} +1 -1
  199. package/dist/assets/{analytics-r9EGBu1Q.js → analytics-Dd9GkS_R.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CL-t3Y2i-BSVrCF9s.js → analyticsHelper-BLLOc8oW-Bb5BI_Zu.js} +1 -1
  201. package/dist/assets/{analyticsHelper-0wzylLgc.js → analyticsHelper-Cn36jH2S.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-BtOzciV2.js → arrow-south-east-round-PEovUgvH-K7zlCGlW.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-NVyeb_ve.js → auto-transfer-rule-mbafm5D3-rBHUDSkc.js} +1 -1
  204. package/dist/assets/{chartTypes-B3501CSI-Bjfolb4j.js → chartTypes-zuOlWPZo-CqRIct--.js} +1 -1
  205. package/dist/assets/{commonDimensions-YcBBlmYP-sxjRe92c.js → commonDimensions-aMGDpjmW-UhXAGxHS.js} +1 -1
  206. package/dist/assets/{constants-Byf26qQt.js → constants-BydUCFaZ.js} +1 -1
  207. package/dist/assets/{core-DhC75twd.js → core-DjXOmtSJ.js} +1 -1
  208. package/dist/assets/{dash.all.min-Dz8mJGxF.js → dash.all.min-CWcs0-Ft.js} +1 -1
  209. package/dist/assets/{detailCommon-C19MYPnq-C3AWPuOr.js → detailCommon-CdZh0YNF-Bty6HpPL.js} +2 -2
  210. package/dist/assets/{downloadPdf-DPAqxw6u-nEtfy2Dz.js → downloadPdf-BnXVGESU-CGO5_V0v.js} +1 -1
  211. package/dist/assets/{empty-DffAZ-ep.js → empty-Be_kj3Mu.js} +1 -1
  212. package/dist/assets/{empty-BErF0eSj.js → empty-BpWqyf7V.js} +1 -1
  213. package/dist/assets/{epic-CfMotuSj.js → epic-B6XzQXM_.js} +1 -1
  214. package/dist/assets/{gift-box-Cmt9OgIZ-DMwGMUF4.js → gift-box-Cmt9OgIZ-DJPtxuMD.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BYeW_TLG.js → graphic-no-data-l-DU4J8fDt-znOHf3Hs.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-BJYF6A7J.js → graphic-no-data-net-burn-l-CzmycA0m-53oymvWB.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-BkE1U-MB.js → handshake-BPg58FML-ttNYOOdS.js} +1 -1
  218. package/dist/assets/{index-BByeCcLN.js → index-B0Fm_ZMY.js} +1 -1
  219. package/dist/assets/{index-tU-PJ6R1.js → index-BsyBnYxZ.js} +1 -1
  220. package/dist/assets/{index-TMJZ-FGP.js → index-COyPtNQ2.js} +1 -1
  221. package/dist/assets/{index-Cp0C-GJL.js → index-DhICZ-la.js} +1 -1
  222. package/dist/assets/{index-6S2g5oxD.js → index-Dm-b67Hf.js} +7 -7
  223. package/dist/assets/{index-DGyJHjKE.js → index-SgTym3_u.js} +1 -1
  224. package/dist/assets/{index-CFLxAI5t.js → index-w81TKwF8.js} +1 -1
  225. package/dist/assets/{lexical-B4ox-Oq6.js → lexical-C3TbZeLl.js} +1 -1
  226. package/dist/assets/{liveblocks-DxN2_B8G.js → liveblocks-EGukjQZF.js} +1 -1
  227. package/dist/assets/{lottie-BNYbcum9.js → lottie-DiLnfF8e.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-B0oj9Ot5-CWtpcdPC.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CQ9YZcDz.js → mapSectionWithAcOnlyToTreeNode-rtn-dPyU-DWwT8Nhv.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-8mFwNdh5-CeSJa54a.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-BkHI2m3e-DSk1PCnB.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-bQ2VDSub-CJiyKqIU.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CcMctgAq-lqSBZOT1.js +1 -0
  234. package/dist/assets/{mui-wtLp0vbS.js → mui-BLkKBV85.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-BgaUjC8m.js → page-detail-CWX5S47F-D6GzdE4M.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-DHibecP7.js → panelSelectedMixin-CzfD5-Zs-CBMeGjo8.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh-Cgp5Mneh.js → radio-default-CiSgisfh-B552CYET.js} +1 -1
  238. package/dist/assets/{react-DXX_RLcv.js → react-4oUCwWHz.js} +1 -1
  239. package/dist/assets/{react-CkJMfDPX.js → react-BCL5SMXn.js} +1 -1
  240. package/dist/assets/{react-u7HeP0bB.js → react-BDnWTul0.js} +1 -1
  241. package/dist/assets/{react-B-KpdB-_.js → react-CXrmdcVg.js} +1 -1
  242. package/dist/assets/{react-CUfRZ-Uw.js → react-ChBDOzx3.js} +2 -2
  243. package/dist/assets/{react-Kxbs6xJM.js → react-CkV5VFp3.js} +1 -1
  244. package/dist/assets/{react-DTrvUpxc.js → react-DiNjY5yl.js} +1 -1
  245. package/dist/assets/{react-BlNFeO1p.js → react-FSAp6Eni.js} +1 -1
  246. package/dist/assets/{recharts-Bks4lV7q.js → recharts-B8tzuQ8V.js} +1 -1
  247. package/dist/assets/{sentry-B1J7wTBN.js → sentry-C2Rgx3zV.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-DVQc_Wp-.js → shield-DOlUxcFf-BI7xxvqa.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DUpgxtrc-n-6zkqkw.js +1 -0
  250. package/dist/assets/{toChartData-DzatRnt8-DShu11CR.js → toChartData-BNPIbcXQ-DT2tu_Ad.js} +1 -1
  251. package/dist/assets/{uploadAttachment-Bq8dk-Sm-B9eWwh9n.js → uploadAttachment-4MEQNz0J-C1Mi8_qq.js} +1 -1
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-DojRU-mv.js → uploadReceipts-Dge0cNF1-C7ahzxC1.js} +1 -1
  253. package/dist/assets/{url-G0KDqCof.js → url-DdNhcJXF.js} +1 -1
  254. package/dist/assets/{url-CJCgjt4g.js → url-i42p6QIP.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-DSmKJJot.js → useLongPress-GCK2COYQ-Cz3dEUgW.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-BaFJ2GDx.js → usp-line-BBd1wKwW-DBnWZzCO.js} +1 -1
  257. package/dist/assets/{utils-OImZ5lg2.js → utils-CQTOz44B.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-Cs1j8aUi.js → zeni-epic-state-TdgpFmku.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-DkpBGfrR-DNZbbbLx.js +0 -18
  262. package/dist/assets/ChargeCardPromoPage-CKEnOseD-BsvvJ3tS.js +0 -222
  263. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-DA-pVnHE.js +0 -1
  264. package/dist/assets/EntityDetailPage-DSfZZ1JW-Du-oUIAb.js +0 -18
  265. package/dist/assets/ExpenseAutomationPage-DlhH-R-e-BdT46CCv.js +0 -1700
  266. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-BWmT-DIS.js +0 -1
  267. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-pkYJ3gJj.js +0 -1
  268. package/dist/assets/MagicLinkInternationalWireDetailsPage-Q4lIsHtG-nDThOfAW.js +0 -1
  269. package/dist/assets/StatementsPage-73jGj5P2-CL54j91-.js +0 -58
  270. package/dist/assets/SummaryCard-CK8Gxbiu-C9CjILlZ.js +0 -1
  271. package/dist/assets/TreasuryStatementsPage-CYkPtmaT-DH4Z2_YL.js +0 -58
  272. package/dist/assets/VendorACHDetailsPage-LNCcubjL-CvsvIZ5X.js +0 -1
  273. package/dist/assets/VendorDomesticWireDetailsPage-CLudahOt-nl_9mczl.js +0 -1
  274. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-Dni1qcRr.js +0 -1
  275. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--rA-kTA8R.js +0 -1
  276. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-p4Fnx_HR.js +0 -1
  277. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-CR_1ELft.js +0 -1
  278. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-Di4b6V4c.js +0 -1
  279. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-BEgZ9YHD.js +0 -1
  280. package/dist/assets/toCOABalancesWithID-D35Fk0m2-Ck4Ztuj_.js +0 -1
@@ -1,4 +1,4 @@
1
- import{aw as ne,e as S,J as k,aR as le,V as e,aQ as a,fu as ae,bD as de,i as u,ae as d,F,o as r,aq as ce,R as me,aU as V,am as pe,y as xe,p as z,cF as he,aV as ue,bb as ge,u as we}from"./index-6S2g5oxD.js";import{a as j}from"./sentry-B1J7wTBN.js";import{n as s}from"./mui-wtLp0vbS.js";import{FK as je,bT as fe}from"./zeni-epic-state-Cs1j8aUi.js";import{C as be}from"./VideoPopup-BF6lmB7l-CORel6we.js";import{M as v}from"./usp-line-BBd1wKwW-BaFJ2GDx.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";import"./VideoPlayer-BNBpjXJk-Ci86uK0H.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="c4f16e9a-0232-41e0-bc54-2ec8ef6ce29f",i._sentryDebugIdIdentifier="sentry-dbid-c4f16e9a-0232-41e0-bc54-2ec8ef6ce29f")}catch{}})();const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
1
+ import{aw as ne,e as S,J as k,aR as le,V as e,aQ as a,fu as ae,bD as de,i as u,ae as d,F,o as r,aq as me,R as ce,aU as V,am as pe,y as xe,p as z,cF as he,aV as ue,bb as ge,u as we}from"./index-Dm-b67Hf.js";import{a as j}from"./sentry-C2Rgx3zV.js";import{n as s}from"./mui-BLkKBV85.js";import{FK as je,bT as be}from"./zeni-epic-state-TdgpFmku.js";import{C as fe}from"./VideoPopup-_4nnxGFK-rc_W8uy0.js";import{M as v}from"./usp-line-BBd1wKwW-DBnWZzCO.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./VideoPlayer-D5QP-myQ-CVNLOpWk.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="7563fadd-1740-45b5-8b06-5545cda35e98",i._sentryDebugIdIdentifier="sentry-dbid-7563fadd-1740-45b5-8b06-5545cda35e98")}catch{}})();const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -7,12 +7,12 @@ import{aw as ne,e as S,J as k,aR as le,V as e,aQ as a,fu as ae,bD as de,i as u,a
7
7
  `,Se=s.div`
8
8
  padding: ${i=>i.windowSize==="small"?`${r.sp0} ${r.sp3}`:`${r.sp0} ${r.sp8}`};
9
9
  text-align: center;
10
- `,ke=s(me)`
10
+ `,ke=s(ce)`
11
11
  max-width: 648px;
12
12
  margin: auto;
13
13
  padding: ${r.sp7} ${r.sp0};
14
14
  color: ${i=>i.theme.colors.primary};
15
- `,ze=s(ce)`
15
+ `,ze=s(me)`
16
16
  max-width: 600px;
17
17
  margin: auto;
18
18
  padding: ${r.sp5} ${r.sp0};
@@ -47,7 +47,7 @@ import{aw as ne,e as S,J as k,aR as le,V as e,aQ as a,fu as ae,bD as de,i as u,a
47
47
  border-radius: 12px;
48
48
  border: ${i=>`1px solid ${i.theme.colors.grey3}`};
49
49
  padding: 15px;
50
- `,c=s.div`
50
+ `,m=s.div`
51
51
  border-radius: ${r.sp12};
52
52
  border: ${i=>`1px solid ${i.theme.colors.grey2}`};
53
53
  padding: ${i=>i.windowSize==="small"?`${r.sp2} ${r.sp4} ${r.sp2} ${r.sp0}`:`${r.sp3} ${r.sp5} ${r.sp3} ${r.sp0}`};
@@ -58,15 +58,15 @@ import{aw as ne,e as S,J as k,aR as le,V as e,aQ as a,fu as ae,bD as de,i as u,a
58
58
  align-items: center;
59
59
  text-align: start;
60
60
  box-sizing: border-box;
61
- `,f=s(ge)`
61
+ `,b=s(ge)`
62
62
  color: ${i=>i.theme.colors.champion};
63
- `,b=s(ue)`
63
+ `,f=s(ue)`
64
64
  color: ${i=>i.theme.colors.champion};
65
65
  `,y=s(V)`
66
66
  color: ${i=>i.theme.colors.champion};
67
67
  `,$=s(he)`
68
68
  color: ${i=>i.theme.colors.champion};
69
- `,m=s.div``,p=s.div`
69
+ `,c=s.div``,p=s.div`
70
70
  padding-left: ${r.sp3};
71
71
  `,L=s(V)`
72
72
  margin: ${i=>i.windowSize==="small"?r.sp1:`auto ${r.sp5}`};
@@ -81,4 +81,4 @@ import{aw as ne,e as S,J as k,aR as le,V as e,aQ as a,fu as ae,bD as de,i as u,a
81
81
  margin: ${r.sp3} auto;
82
82
  max-width: 772px;
83
83
  color: ${i=>i.theme.colors.hero};
84
- `,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(H,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(H,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.simplestText.bold}),e.jsx(f,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.aiPoweredText.bold}),e.jsx(f,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.multiLevelApprovalText.bold}),e.jsx(f,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},He=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:K,analytics:x,onSetupButtonClick:Q,onCreateNewRemiButtonClick:W,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),se=je(P.loggedInUserRoleMap),w=fe(P.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?U?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(be,{onCancelClick:()=>{ie(!1)},videoUrl:K,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:re.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:A}):e.jsx(ke,{children:A}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(D,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:W,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(M,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(D,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(M,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{He as default};
84
+ `,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(H,{windowSize:o,children:[e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(_,{windowSize:o,children:[e.jsxs(H,{windowSize:o,children:[e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(O,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.simplestText.bold}),e.jsx(b,{children:t.simplestText.regular})]})]}),e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.aiPoweredText.bold}),e.jsx(b,{children:t.aiPoweredText.regular})]})]}),e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(J,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.multiLevelApprovalText.bold}),e.jsx(b,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(N,{windowSize:o,children:e.jsx(q,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},He=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:K,analytics:x,onSetupButtonClick:Q,onCreateNewRemiButtonClick:W,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),re=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),se=je(P.loggedInUserRoleMap),w=be(P.loggedInUserRoleMap)&&!se,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?U?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:K,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:re.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:A}):e.jsx(ke,{children:A}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(D,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:W,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(M,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(D,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(L,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(M,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{He as default};
@@ -1,4 +1,4 @@
1
- import{e as Ee,J as Ie,aR as N,a9 as Ge,cG as qe,F as Te,aW as Ce,V as t,fc as Je,p as J,y as s,bD as Ze,T as Qe,ac as Ye,fv as ve,dS as Ke,fw as Xe,bx as et,dI as tt,aS as it,o as a,fy as nt,u as n,cj as ot,cT as at,c$ as lt,fH as ke,fI as $e,gh as st,i as rt,aQ as Pe,N as Ae,bN as ct,ai as dt,bu as ut}from"./index-6S2g5oxD.js";import{a as o}from"./sentry-B1J7wTBN.js";import{n as i}from"./mui-wtLp0vbS.js";import{bJ as mt}from"./zeni-epic-state-Cs1j8aUi.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BHpT2al--D9tVOJr4.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="9738725f-836f-4a95-8a2e-b21632833b7a",e._sentryDebugIdIdentifier="sentry-dbid-9738725f-836f-4a95-8a2e-b21632833b7a")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Q},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{e as Ee,J as Ie,aR as N,a9 as Ge,cG as qe,F as Te,aW as Ce,V as t,fc as Je,p as J,y as s,bD as Ze,T as Qe,ac as Ye,fv as ve,dS as Ke,fw as Xe,bx as et,dI as tt,aS as it,o as a,fy as nt,u as n,cj as ot,cT as at,c$ as lt,fH as ke,fI as $e,gh as st,i as rt,aQ as Pe,N as Ae,bN as ct,ai as dt,bu as ut}from"./index-Dm-b67Hf.js";import{a as o}from"./sentry-C2Rgx3zV.js";import{n as i}from"./mui-BLkKBV85.js";import{bJ as mt}from"./zeni-epic-state-TdgpFmku.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Bw9ymrDY-BTVIu0dz.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="97893d0f-280c-4aaa-9ee0-b45733867c14",e._sentryDebugIdIdentifier="sentry-dbid-97893d0f-280c-4aaa-9ee0-b45733867c14")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Q},trigger:Y}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Q,E),{localData:c,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:K,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=K,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:d&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{V as f,cq as V,cr as M,cs as q,kb as K,aZ as W,F as Z}from"./index-6S2g5oxD.js";import{a as b}from"./sentry-B1J7wTBN.js";import{Gi as z}from"./zeni-epic-state-Cs1j8aUi.js";import{u as G}from"./ReviewOverlay-nlm2HnGw-0h8O5Gsr.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./mui-wtLp0vbS.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.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]="235209b8-3b9d-4b40-9f59-73485180fd7f",e._sentryDebugIdIdentifier="sentry-dbid-235209b8-3b9d-4b40-9f59-73485180fd7f")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=Z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,z(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Y(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(V,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(G,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=K(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:W("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Y=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
1
+ import{V as f,cq as V,cr as M,cs as q,kb as K,aZ as W,F as Z}from"./index-Dm-b67Hf.js";import{a as b}from"./sentry-C2Rgx3zV.js";import{Gi as z}from"./zeni-epic-state-TdgpFmku.js";import{u as G}from"./ReviewOverlay-OXnAkRJ_-Di_D_VlI.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./mui-BLkKBV85.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.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]="7e04e56f-6689-4838-a686-5e0d72d6fe74",e._sentryDebugIdIdentifier="sentry-dbid-7e04e56f-6689-4838-a686-5e0d72d6fe74")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=Z.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:y,currentSubTab:g}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,F=()=>{const{title:m,description:C}=X(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,y,g),l(!0)},E={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,y,g,z(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Y(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,y,g),u(t)},N=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:F,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(V,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(G,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=K(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:W("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},X=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Y=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:y,do_:g,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:y)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
@@ -1,4 +1,4 @@
1
- import{e as l,V as r,aN as a,b3 as f,F as y,aQ as m,aT as h,bF as g,ai as u,o as c,b4 as w}from"./index-6S2g5oxD.js";import{n as d}from"./mui-wtLp0vbS.js";import{a as s}from"./sentry-B1J7wTBN.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]="e7c21843-a1fd-430b-8965-ee4ebd755a72",e._sentryDebugIdIdentifier="sentry-dbid-e7c21843-a1fd-430b-8965-ee4ebd755a72")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
1
+ import{e as l,V as r,aN as a,b3 as f,F as y,aQ as m,aT as h,bF as g,ai as u,o as c,b4 as w}from"./index-Dm-b67Hf.js";import{n as d}from"./mui-BLkKBV85.js";import{a as s}from"./sentry-C2Rgx3zV.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]="e7c21843-a1fd-430b-8965-ee4ebd755a72",e._sentryDebugIdIdentifier="sentry-dbid-e7c21843-a1fd-430b-8965-ee4ebd755a72")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{e as ee,J as de,ce as xe,a9 as ye,V as o,ao as _e,cf as te,ac as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,am as he,cl as Se,ai as Ne,aE as X,bF as Pe,u as f,aW as De,al as Oe,at as Fe}from"./index-6S2g5oxD.js";import{a as u,P as ue}from"./sentry-B1J7wTBN.js";import{n as d}from"./mui-wtLp0vbS.js";import{R as D,I as Te}from"./CollapsableReportTable-DlYIKSlQ-BqvITvys.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="36bba480-ad87-4ffb-8814-c8f9afe07f35",e._sentryDebugIdIdentifier="sentry-dbid-36bba480-ad87-4ffb-8814-c8f9afe07f35")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ee=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ae(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
1
+ import{e as ee,J as de,ce as xe,a9 as ye,V as o,ao as _e,cf as te,ac as we,y as P,aS as $e,o as n,F as oe,cg as ve,ch as ke,ci as Ce,cj as je,ck as Ie,am as he,cl as Se,ai as Ne,aE as X,bF as Pe,u as f,aW as De,al as Oe,at as Fe}from"./index-Dm-b67Hf.js";import{a as u,P as ue}from"./sentry-C2Rgx3zV.js";import{n as d}from"./mui-BLkKBV85.js";import{R as D,I as Te}from"./CollapsableReportTable-4-6Wne7j-Bn8DnqeK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="7cc59ef1-b087-4177-88e8-aaf3010bdfc7",e._sentryDebugIdIdentifier="sentry-dbid-7cc59ef1-b087-4177-88e8-aaf3010bdfc7")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Be=e=>({this_period:{start_date:e.thisPeriod.startDate.format(V),end_date:e.thisPeriod.endDate.format(V)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Ee=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ae(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(V):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Be(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Ee(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function ho(e,r,a){const t=oe.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(Ae(a)))}`;try{const h=await ve({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ke(h.headers,t.defaultFileName),_=await h.arrayBuffer();Ce(_,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -1,9 +1,9 @@
1
- import{J as W,e as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,x as A,aE as K,w as xe,aW as Oe,as as Re,bM as Ae}from"./index-6S2g5oxD.js";import{a as L,P as X}from"./sentry-B1J7wTBN.js";import{n as _}from"./mui-wtLp0vbS.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Te,F1 as Le,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-Cs1j8aUi.js";import{m as z,l as q}from"./analyticsHelper-CL-t3Y2i-BSVrCF9s.js";import{x as Ne}from"./ReportTableViewSelector-neRSjrhV-BkLf86Vv.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-DEqlZxa6-0m9X1pzy.js";import{M as Me}from"./TimeframeSwitcherWithToggle-CbX9ElMN-q3bNmxt9.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-CH_bA3On-BHg1nZjl.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-DlYIKSlQ-BqvITvys.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CQ9YZcDz.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-D-LTfKnD-Di4b6V4c.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-BEgZ9YHD.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-D2u9MDI--rA-kTA8R.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";import"./TimeframeSwitcher-BppC6giF-Dj6iiZx4.js";import"./page-detail-CWX5S47F-BgaUjC8m.js";import"./AccountRow-aEmcYP8T-Cl0RXej_.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]="96c11478-8e62-4faa-be1d-1820211a4364",e._sentryDebugIdIdentifier="sentry-dbid-96c11478-8e62-4faa-be1d-1820211a4364")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,h)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:h===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:h===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),h={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(h),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,h)=>{const s=h%4;let c=De[s];const C=ze({title:`${h}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),h=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:h,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
1
+ import{J as W,e as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o as w,aU as we,T as ye,y as B,bQ as Ce,u as S,x as A,aE as K,w as xe,aW as Oe,as as Re,bM as Ae}from"./index-Dm-b67Hf.js";import{a as L,P as X}from"./sentry-C2Rgx3zV.js";import{n as _}from"./mui-BLkKBV85.js";import{bg as Z,ER as Be,E_ as ve,E$ as $,F0 as Te,F1 as Le,F2 as Pe,F3 as Ie,F4 as ke,F5 as ee,F6 as te}from"./zeni-epic-state-TdgpFmku.js";import{m as z,l as q}from"./analyticsHelper-BLLOc8oW-Bb5BI_Zu.js";import{x as Ne}from"./ReportTableViewSelector-CU3PZ-xy-CDmAbwqP.js";import{a as se,p as Fe}from"./TimeRangeSwitcher-8lNpLdVr-Dj19rYPc.js";import{M as Me}from"./TimeframeSwitcherWithToggle-3yKIUhvE-DaSH_yQW.js";import{DownloadOverlayButton as $e}from"./DownloadOverlay-CJYnXgCn-odTawGXc.js";import{I as Ee,R as F,x as ne}from"./CollapsableReportTable-4-6Wne7j-Bn8DnqeK.js";import{D as oe,T as ae,C as E,L as je,g as ie}from"./mapSectionWithAcOnlyToTreeNode-rtn-dPyU-DWwT8Nhv.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BkHI2m3e-DSk1PCnB.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CcMctgAq-lqSBZOT1.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B0oj9Ot5-CWtpcdPC.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./TimeframeSwitcher-B-l9fJ1Q-ByHm5vUq.js";import"./page-detail-CWX5S47F-D6GzdE4M.js";import"./AccountRow-CxEUX108-Ctuhzest.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]="7835ef39-1e10-4d13-ac44-d4940f8e6095",e._sentryDebugIdIdentifier="sentry-dbid-7835ef39-1e10-4d13-ac44-d4940f8e6095")}catch{}})();function ce({section:e,sectionId:t,numOfBalances:o,config:a}){return ne("no_filter",a.filterAccountsWithNilBalances,a.filterAccountGroupsWithNilBalances).compactedAccountGroupsSelector(e.accountGroups).map(n=>Ue({accountGroup:n,sectionType:t,numOfBalances:o,title:n.accountGroupName,isLastNode:!0,config:a}))}function Ue({accountGroup:e,sectionType:t,numOfBalances:o,title:a,isLastNode:n,config:d}){const p=F("section",[],a+t),l={children:[],id:p,isLastNode:n,reportElementData:{element:{kind:"section",title:a,sectionType:t,data:e,numOfBalances:o},config:d}},i=ne("no_filter",d.filterAccountsWithNilBalances,d.filterAccountGroupsWithNilBalances).compactedAccountsSelectorVariant(e.accounts),u=i.map((g,f)=>ie({account:g,sectionType:t,numOfBalances:o,title:g.account.accountName,config:d,isLastNode:f===i.length-1,parentNodeIDs:[p],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:i.length>1,hasChildren:g.children.length>0,isLastNode:f===i.length-1}]}}));return l.children.push(...u),l}function re({sectionWithAcOnly:e,sectionType:t,numOfBalances:o,config:a}){return e.accounts.map((n,d)=>ie({account:n,sectionType:t,numOfBalances:o,title:n.account.accountName,config:a,isLastNode:d===e.accounts.length-1,parentNodeIDs:[],ancestorMetadata:{subAccountAncestorMetadata:[{depth:0,hasSibling:e.accounts.length>1,hasChildren:n.children.length>0,isLastNode:d===e.accounts.length-1}]}}))}function le({balances:e,config:t,nodeId:o}){return{children:[],id:o??F("timeframe_header",[]),isLastNode:!1,reportElementData:{element:{kind:t.mode==="actual_vs_forecast"?"timeframe_headers_with_forecast":"timeframe_headers",title:"",data:e,numOfBalances:e.length},config:t}}}function We(e,t,o,a=!0){Object.assign(e.config,t);const n=de(o),d=Y({balances:n,config:t});return{config:t,headerNodes:a?[d]:[],contentNodes:[d,...e.contentNodes.slice(1)]}}const de=e=>{switch(e.reportId){case"profit_and_loss":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"profit_and_loss_by_classes":{const t=e;return t.sections.expenses.balances.length>0?[...t.sections.expenses.balances,...t.sections.expenses.additionalBalances]:[...t.sections.income.balances,...t.sections.income.additionalBalances]}case"cash_flow":{const t=e;return[...t.calculatedSections.operatingActivitiesTotal.balances,...t.calculatedSections.operatingActivitiesTotal.additionalBalances]}case"balance_sheet":{const t=e;let o=[];return Object.keys(t.sections).forEach(a=>{t.sections[a].balances.length>0&&(o=[...t.sections[a].balances,...t.sections[a].additionalBalances])}),o}default:return[]}};function Ge(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.balanceSheet,d=de(e),p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return i.push(l),Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Te(s)===!0)if(e.sections[s].accountGroups.length>0)if(s==="equity"){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else i.push(oe({section:e.sections[s],sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}));else if(s==="equity"){const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else{const c=e.sections[s];i.push(ae({sectionWithAcOnly:c,sectionType:s,numOfBalances:p,title:n[s],isLastNode:!0,config:t}))}else Le(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:i}}function Ye({calculatedSection:e,numOfBalances:t,title:o,isLastNode:a,config:n}){return{children:[],id:F("calculated_section_type1",[],o),isLastNode:a,reportElementData:{element:{kind:"calculated_section_type1",title:o,data:e,numOfBalances:t},config:n}}}function He(e,t,o=!0){const a=y.getLocalizedStrings().reports.sections,n=y.getLocalizedStrings().reports.cashFlow,d=[...e.calculatedSections.operatingActivitiesTotal.balances,...e.calculatedSections.operatingActivitiesTotal.additionalBalances],p=t.mode!=null&&t.mode==="this_period_vs_period_before"&&d.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,l=le({balances:d,config:t}),i=[];return Object.keys(e.rootSectionsWithSubSectionIds).forEach(u=>{const g=F("title_string_only",[],u),f={children:[],id:g,isLastNode:!0,reportElementData:{element:{kind:"title_string_only",title:a[u],data:void 0,numOfBalances:0},config:t}};i.push(f),e.rootSectionsWithSubSectionIds[u].forEach(s=>{if(Pe(s)===!0)if(e.sections[s].accountGroups.length>0){const c=ce({sectionId:s,section:e.sections[s],numOfBalances:p,config:t});i.push(...c)}else{const c=re({sectionWithAcOnly:e.sections[s],sectionType:s,numOfBalances:p,config:t});i.push(...c)}else Ie(s)===!0?i.push(Ye({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t})):ke(s)===!0&&i.push(E({calculatedSection:e.calculatedSections[s],numOfBalances:p,title:n[s],isLastNode:!0,config:t}))})}),{config:t,headerNodes:o?[l]:[],contentNodes:[l,...i]}}function Ze(e,t,o=!0,a=!1){const n=y.getLocalizedStrings().reports,d=y.getLocalizedStrings().common;let p=[];const l=[];let i=[];if(a===!0){const u=Ve({title:d.loading,balances:[],config:t});u.reportElementData.element.numOfBalances=6,o&&(i=[u]),l.push(u),[...Array(8)].forEach((g,f)=>{const s=f%4;let c=De[s];const C=ze({title:`${f}+${c}`,balances:p,config:t});C.reportElementData.element.numOfBalances=6,l.push(C)})}else{const u=e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],g=Y({balances:u,config:t}),f=t.mode!=null&&t.mode==="this_period_vs_period_before"&&u.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1;l.push(g),o&&(i=[g]),e.idsInOrder.forEach(s=>{if(ee(s)===!0){const c=e.sections[s];c!=null&&l.push(je({section:c,sectionType:s,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}else if(te(s)===!0){const c=e.calculatedSections[s];c!=null&&l.push(E({calculatedSection:c,numOfBalances:f,title:n.sections[s],isLastNode:!0,config:t}))}})}return{config:t,headerNodes:i,contentNodes:l}}function qe(e,t,o=!0){const a=y.getLocalizedStrings().reports,n=e.sections.expenses!=null&&e.sections.expenses.balances.length>0?[...e.sections.expenses.balances,...e.sections.expenses.additionalBalances]:e.sections.income!=null&&e.sections.income.balances.length>0?[...e.sections.income.balances,...e.sections.income.additionalBalances]:e.sections.cogs!=null&&e.sections.cogs.balances.length>0?[...e.sections.cogs.balances,...e.sections.cogs.additionalBalances]:e.sections.otherIncome!=null&&e.sections.otherIncome.balances.length>0?[...e.sections.otherIncome.balances,...e.sections.otherIncome.additionalBalances]:e.sections.otherExpenses!=null&&e.sections.otherExpenses.balances.length>0?[...e.sections.otherExpenses.balances,...e.sections.otherExpenses.additionalBalances]:[],d=t.mode!=null&&t.mode==="this_period_vs_period_before"&&n.length>1?e.filter.balancesRange.numberOfPeriods+2:e.filter.balancesRange.numberOfPeriods+1,p=Y({balances:n,config:t}),l=[];return l.push(p),e.idsInOrder.forEach(i=>{if(ee(i)===!0&&(e.sections[i].accountGroups.length>0?l.push(oe({section:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t})):l.push(ae({sectionWithAcOnly:e.sections[i],sectionType:i,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))),te(i)===!0){const u=e.calculatedSections[i];u!=null&&l.push(E({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const J={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Je=_.div`
2
2
  height: ${e=>e.height}px;
3
3
  width: 99.9%;
4
4
  margin-top: ${w.sp2};
5
5
  background-color: ${e=>e.theme.colors.grey4};
6
- `;function Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const h=W(),s=G(),[c,C]=L.useState(void 0),[x,j]=L.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const f=e;m=(f.sections.expenses.balances.length>0?f.sections.expenses:f.sections.income).additionalBalances.map(D=>$(D));break}case"profit_and_loss_by_classes":{const f=e,D=(f.sections.expenses?.balances?.length??0)>0?f.sections.expenses:null,fe=(f.sections.income?.balances?.length??0)>0?f.sections.income:null,H=D??fe;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>$(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>$(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>$(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};L.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!K(x,e)||g===!0){const f=Ke(e,m,v,g);j(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[R,k]=L.useState(5),N=m=>{const f=m+135;k(f)},he=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Je,{height:R,children:r.jsx(Ee,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(h),right:J.contentPaddingRight.value(h)},onAccountClick:p==null?void 0:(m,f)=>{p(m,f)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,f)=>i?.(e.reportId,m,f),onReportTableHeightChanged:N,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Ke=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return He(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Xe=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
6
+ `;function Qe({report:e,displayOrder:t,reportFormat:o,analytics:a,isZeniUser:n,onAdditionalBalanceSelectionChanged:d,onAccountBalanceClick:p,onTableScroll:l,onElementCollapseStateChanged:i,isCompareModeOn:u,isPageFetchInProgress:g=!1}){const f=W(),s=G(),[c,C]=L.useState(void 0),[x,j]=L.useState(void 0),v=!(f==="small"||f==="medium-compact"),V="name+balances_actual",M=u===!0?"this_period_vs_period_before":"none",O=()=>{let m=[];switch(e.reportId){case"profit_and_loss":{const h=e;m=(h.sections.expenses.balances.length>0?h.sections.expenses:h.sections.income).additionalBalances.map(D=>$(D));break}case"profit_and_loss_by_classes":{const h=e,D=(h.sections.expenses?.balances?.length??0)>0?h.sections.expenses:null,he=(h.sections.income?.balances?.length??0)>0?h.sections.income:null,H=D??he;H?.additionalBalances!=null&&(m=H.additionalBalances.map(me=>$(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>$(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>$(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};L.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:M,firstMonthOfFY:e.firstMonthOfFY,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",displayOrder:t,reportFormat:o,dataAvailable:e.dataAvailable,showNegativeAmountInParenthesis:Ae(),showClassAccountNumber:n};if(c==null||!K(x,e)||g===!0){const h=Ke(e,m,v,g);j(e),C(h)}else{const h=We(c,m,e,v);C(h)}},[u,e,g]);const[R,k]=L.useState(5),N=m=>{const h=m+135;k(h)},fe=m=>m?.trackPageLoaded(Xe(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:fe}),r.jsx(Je,{height:R,children:r.jsx(Ee,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:J.contentPaddingLeft.value(f),right:J.contentPaddingRight.value(f)},onAccountClick:p==null?void 0:(m,h)=>{p(m,h)},nodeOpenStatus:e.uiState.nodeCollapseState,scrollPosition:e.uiState.scrollPosition,onCompareModeChanged:m=>d?.(m==="compare_mode_amount"?"this_period_vs_last_period":"this_period_vs_last_period_percent","dropdown"),onNodeCollapseToggled:(m,h)=>i?.(e.reportId,m,h),onReportTableHeightChanged:N,onScroll:m=>l?.(e.reportId,m)})})]}):null}const Ke=(e,t,o=!0,a=!1)=>{switch(e.reportId){case"profit_and_loss":return qe(e,t,o);case"profit_and_loss_by_classes":return Ze(e,t,o,a);case"cash_flow":return He(e,t,o);case"balance_sheet":return Ge(e,t,o);default:return}},Xe=e=>{switch(e.reportId){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},et=_.div`
7
7
  display: flex;
8
8
  flex-direction: row;
9
9
  border-bottom: 1px solid ${e=>e.theme.colors.grey3};
@@ -73,14 +73,14 @@ import{J as W,e as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o
73
73
  position: absolute;
74
74
  margin-top: ${e=>e.windowSize==="small"?"230px":"195px"};
75
75
  background-color: ${e=>e.theme.colors.grey4};
76
- `,ht=_.div`
76
+ `,ft=_.div`
77
77
  display: flex;
78
78
  width: 100%;
79
79
  height: calc(100% - 60px);
80
80
  flex-direction: column;
81
81
  justify-content: center;
82
82
  align-items: center;
83
- `,ft=_.div`
83
+ `,ht=_.div`
84
84
  height: 96px;
85
85
  width: 96px;
86
86
  background: ${e=>e.theme.colors.background};
@@ -98,7 +98,7 @@ import{J as W,e as G,F as y,aw as ge,V as r,bP as _e,aQ as P,bE as be,bD as Se,o
98
98
  `,mt=_(we)`
99
99
  margin-top: ${w.sp3};
100
100
  color: ${e=>e.theme.colors.hero};
101
- `,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==h?.accountViewMode&&a?.(O),R&&n?.(R)};L.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const h=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&h?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ht,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ft,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:h!=null&&e.dataAvailable!=null?r.jsx($e,{defaultOptions:h,analytics:e.analytics,referrer:T(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=L.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",T(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",h=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),T(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,T(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:h}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Q=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const T=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=X.memo(Qe,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),yt=_.div`
101
+ `,pe=({style:e,isLoading:t})=>t?r.jsx(pt,{style:e,children:r.jsx(ye,{size:"ExtraLarge",start:!0})}):null,b=e=>{switch(e.selectedReport){case"cash_flow":return e.cashFlowReport;case"balance_sheet":return e.balanceSheetReport;case"profit_and_loss_by_classes":return e.profitAndLossClassesViewReport;case"profit_and_loss":default:return e.profitAndLossReport}},U=({selectedReport:e,isCompareModeOn:t,windowSize:o})=>{const a=e.availableNumberOfPeriods;let n=rt.selectedNumberOfPeriods(t,o);return a!=null&&(n=Math.min(n,a)),n};function Jt(e){const t=W(),o=G(),{onUpdateAccountViewMode:a,onUpdateClassesToFilterOut:n,onAdditionalBalanceSelectionChanged:d,onTimeframeSelectionChanged:p,isCompareMode:l,selectedReportAndTimeframeFetchState:i,onClickMenuIcon:u}=e,g=(O,R)=>{O!==f?.accountViewMode&&a?.(O),R&&n?.(R)};L.useEffect(()=>{if(e.fetchState==="Completed"){const O=b(e).filter.additionalBalances;e.onUpdateHighlightedNumberOfPeriods?.(O,e.isCompareMode,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}),e.balancesInTimeframe)}},[t,e.fetchState]);const f=bt(e),s=y.getLocalizedStrings().reports.common,c=ge(),C=c!=null&&Z(c.loggedInUserRole)?"detailed":"more_detailed",x=c!=null&&Z(c.loggedInUserRole)?["more_detailed"]:[];e.showAccountGroups===!1&&f?.accountViewMode==="account_group"&&x.push("detailed");const[j,v]=X.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:j,disabledFormatForRole:x,roleBasedClassesSelectedFormat:C,setSelectedFormat:v};if(i.fetchState==="Error"||e.fetchState==="Error")return r.jsxs(ft,{"data-testid":P("report-page-error-reload-page"),children:[r.jsx(ht,{"data-testid":P("report-page-error-reload-icon"),onClick:e.onReloadReport,children:r.jsx(_e,{})}),r.jsx(mt,{children:s.failed})]});const M=e.fetchState;if(i.fetchState!=="Completed"&&(M==="In-Progress"||M==="Not-Started"))return r.jsx(pe,{isLoading:!0});{const O=r.jsx(be,{downloadReportOptions:{type:"detailed_menu",downloadMenu:{detailedMenu:f!=null&&e.dataAvailable!=null?r.jsx($e,{defaultOptions:f,analytics:e.analytics,referrer:T(e.selectedReport),dataAvailable:e.dataAvailable,downloadState:e.downloadState,statementEndPoint:e.statementEndPoint,authParams:e.authParams,currentTenantCompanyName:e.currentTenantCompanyName,classesFetchState:e.profitAndLossClassesViewReport.fetchState,showAccountGroups:e.showAccountGroups,reportFormatProps:V,updateDownloadStateHandler:e.updateDownloadStateHandler,onUpdateDisplayOrder:e.onUpdateDisplayOrder,onUpdateReportFormat:e.onUpdateReportFormat,onClose:()=>null,onOpenAccountViewMode:e.onOpenAccountViewMode,onSaveClickHandler:g,onThisPeriodChanged:e.onThisPeriodChanged,onAdditionalBalanceSelectionChanged:(R,k,N)=>{d(l,R,k,N)},onTimeframeSelectionChanged:(R,k,N)=>{p?.(R,k,N)}}):r.jsx(r.Fragment,{})}}});return r.jsxs(lt,{children:[r.jsx(Se,{title:y.getLocalizedStrings().reports.title,backgroundColor:o.colors.grey4,onBackClick:e.onBackClick,showMenuIcon:t==="medium-compact"||t==="small",onClickMenuIcon:u,rightSideComponent:O,downloadPresent:!0,source:"ReportsPage",hideSearchBtn:!0}),r.jsx(gt,{...e})]})}}function gt(e){const t=W(),o=G(),a=L.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",T(e.selectedReport),z(e.selectedTimeframe),c);const C=Array.from(new Set(s==="this_period_vs_last_period_percent"?[...b(e).filter.additionalBalances,"this_period_vs_last_period_percent"].filter(x=>x!=="this_period_vs_last_period"):[...b(e).filter.additionalBalances,"this_period_vs_last_period"].filter(x=>x!=="this_period_vs_last_period_percent")));e.onAdditionalBalanceSelectionChanged?.(e.isCompareMode,C,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},l=(s,c)=>{s!==e.profitAndLossClassesViewReport?.uiState.accountViewMode&&e.onUpdateAccountViewMode?.(s),c&&e.onUpdateClassesToFilterOut?.(c)},i=b(e),u=a.current?.clientWidth??I.tickSkelectionContainerWidth.value(t),g=Be([e.reportsResyncFetchState,e.profitAndLossClassesViewReport]).fetchState==="In-Progress"&&e.profitAndLossClassesViewReport.uiState.accountViewMode==="classes",f=n.fetchState==="In-Progress";return r.jsxs(dt,{windowSize:t,"data-testid":P("reports-page-content-container"),children:[r.jsx(yt,{windowSize:t,ref:a,children:r.jsx(Me,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),T(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,T(e.selectedReport),z(e.selectedTimeframe));const c=b(e).filter;e.onAdditionalBalanceSelectionChanged?.(s,c.additionalBalances,c.balancesRange.numberOfPeriods)}}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(xt,{windowSize:t,children:r.jsx(Ot,{children:r.jsx(Ce,{width:u,height:se-S[2],backgroundColor:o.colors.grey3,style:{borderRadius:w.sp2}})})}):r.jsx(Ct,{windowSize:t,children:r.jsx(Fe,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:Q(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c)),e.onThisPeriodChanged?.(c,U({selectedReport:b(e),isCompareModeOn:e.isCompareMode,windowSize:t}))},onSelectionChanged:s=>{const c=_t(e.allTimeframeTicks,s.fromEnd);e.analytics?.trackDateRangeFilterChange(T(e.selectedReport),"range filter",e.isCompareMode,q(i.firstMonthOfFY,e.selectedTimeframe,c.thisPeriod)),e.onCOABalancesRangeChanged?.(c)}})}),r.jsx(Rt,{windowSize:t,children:r.jsx(at,{reportIds:["profit_and_loss","balance_sheet","cash_flow","profit_and_loss_by_classes"],selectedReport:e.selectedReport,onReportSelectionChanged:s=>{e.analytics?.trackPageLoaded(St(s)),s==="profit_and_loss"&&e.profitAndLossClassesViewReport?.uiState.accountViewMode==="classes"?e.onReportSelectionChanged?.("profit_and_loss_by_classes"):e.onReportSelectionChanged?.(s)}})}),n.fetchState==="Not-Started"||n.fetchState==="In-Progress"?r.jsx(pe,{style:{boxShadow:"none",backgroundColor:"inherit"},isLoading:f}):r.jsxs(r.Fragment,{children:[r.jsx(ue,{report:b(e),displayOrder:e.displayOrder,reportFormat:e.reportFormat,analytics:e.analytics,onAdditionalBalanceSelectionChanged:p,onAccountBalanceClick:e.onAccountBalanceClick,onElementCollapseStateChanged:e.onElementCollapseStateChanged,onTableScroll:e.onTableScroll,isCompareModeOn:e.isCompareMode,isZeniUser:e.isZeniUser,isPageFetchInProgress:g}),ve(e.selectedReport)?r.jsx(ut,{windowSize:t,children:r.jsx(Ne,{reportId:e.selectedReport,firstMonthOfFY:e.profitAndLossClassesViewReport.firstMonthOfFY,nodes:e.profitAndLossClassesViewReport?.classHierarchy,classesListFetchState:e.profitAndLossClassesViewReport?.fetchState,selectedView:e.profitAndLossClassesViewReport?.uiState.accountViewMode,showClassAccountNumber:e.isZeniUser,showAccountGroups:e.showAccountGroups,onSaveClick:l,classesToBeFilteredOut:e.profitAndLossClassesViewReport?.classesToFilterOut,onOpenAccountViewMode:e.onOpenAccountViewMode,onResyncReports:e.onResyncReports,isPageFetchInProgress:g,lastRefreshSuccessTime:e.profitAndLossClassesViewReport?.status?.lastRefreshSuccessTime})}):null]})]})}const Q=(e,t)=>{if(t.orderBy!=="ascending_date")throw new Error("Invalid ordering of dates!!");let o=e.length-1;return t.thisPeriod!=null&&(o=e.findIndex(a=>a.startDate.isSame(t.thisPeriod.startDate,"date")&&a.endDate.isSameOrBefore(t.thisPeriod.endDate))),{startIndex:Math.max(o+1-t.numberOfPeriods,0),length:t.numberOfPeriods}},_t=(e,t)=>{const o=e.length-1-t.offsetFromEnd;return{thisPeriod:e[o],numberOfPeriods:t.length,orderBy:"ascending_date"}};function bt(e){let t=e.selectedCOABalancesRange.thisPeriod;if(t==null){const p=e.displayOrder,l=e.profitAndLossReport.sections.expenses!=null&&e.profitAndLossReport.sections.expenses.balances.length>0?e.profitAndLossReport.sections.expenses:e.profitAndLossReport.sections.income;if(l!=null&&l.balances.length>0){const i=p==="ascending_date"?l.balances.length-1:0;t=l.balances[i]}}const o=b(e).firstMonthOfFY,a=b(e).bookCloseDate,n=b(e).dataAvailable,d=b(e).filter.additionalBalances;if(t!=null)return{localeId:y.getAppLocaleID(),showNegativeAmountInParenthesis:!0,filterAccountsWithNilBalances:"filter_actual_nil_balances",filterAccountGroupsWithNilBalances:"filter_actual_forecast_empty_account_group_balances",includeCoverPage:!0,companyName:e.currentTenantCompanyName,statementFileType:"pdf",statements:e.profitAndLossClassesViewReport.uiState.accountViewMode==="account_group"?["profit_and_loss","balance_sheet","cash_flow"]:["profit_and_loss_by_classes","balance_sheet","cash_flow"],firstMonthOfFY:o,bookCloseDate:a,dataAvailable:n,timeframe:e.selectedTimeframe,additionalBalances:d,format:e.reportFormat,balancesFilter:{thisPeriod:t,numberOfPeriods:e.selectedCOABalancesRange.numberOfPeriods,orderBy:e.displayOrder},accountViewMode:e.profitAndLossClassesViewReport.uiState.accountViewMode,nestedClassHierarchy:e.profitAndLossClassesViewReport?.classHierarchy,classesToFilterOut:e.profitAndLossClassesViewReport.classesToFilterOut,showClassAccountNumber:e.isZeniUser,isZeniCOAUsed:e.isZeniCOAUsed}}const T=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}},St=e=>{switch(e){case"profit_and_loss":case"profit_and_loss_by_classes":return A.Event.profitAndLoss;case"cash_flow":return A.Event.cashFlow;case"balance_sheet":return A.Event.balanceSheet;default:return A.Event.reports}},ue=X.memo(Qe,(e,t)=>wt(e,t,["report","analytics","isCompareModeOn","isZeniUser","isPageFetchInProgress"]));ue.displayName="Reports table";const wt=(e,t,o)=>o.reduce((a,n)=>a===!0&&K(e[`${n}`],t[`${n}`]),!0),yt=_.div`
102
102
  padding-right: ${e=>I.contentRightPadding.valuePx(e.windowSize)};
103
103
  `,Ct=_.div`
104
104
  margin-top: ${w.sp3};
@@ -1,4 +1,4 @@
1
- import{e as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as Ae,p as g,aE as Ve,y as xe,bN as ge,al as R,bO as V,bb as F}from"./index-6S2g5oxD.js";import{a as P,P as ee}from"./sentry-B1J7wTBN.js";import{n as x}from"./mui-wtLp0vbS.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-B3501CSI-Bjfolb4j.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-D35Fk0m2-Ck4Ztuj_.js";import{V as Z}from"./toChartData-DzatRnt8-DShu11CR.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-Bks4lV7q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="3fff1f3b-a767-4306-bfd6-52a19bc61952",e._sentryDebugIdIdentifier="sentry-dbid-3fff1f3b-a767-4306-bfd6-52a19bc61952")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{e as A,V as a,F as D,J as de,b4 as Q,u as I,b as M,aZ as J,o as m,aQ as Ae,p as g,aE as Ve,y as xe,bN as ge,al as R,bO as V,bb as F}from"./index-Dm-b67Hf.js";import{a as P,P as ee}from"./sentry-C2Rgx3zV.js";import{n as x}from"./mui-BLkKBV85.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-zuOlWPZo-CqRIct--.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-DUpgxtrc-n-6zkqkw.js";import{V as Z}from"./toChartData-BNPIbcXQ-DT2tu_Ad.js";import{H as Te,I as te,X as le,Y as ne,J as se,L as pe,K as ce,M as me,N as fe}from"./recharts-B8tzuQ8V.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="33aa92f1-992e-4324-adc8-857904cc1b04",e._sentryDebugIdIdentifier="sentry-dbid-33aa92f1-992e-4324-adc8-857904cc1b04")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
2
2
  display: flex;
3
3
  `,He=x.div`
4
4
  margin: ${m.sp2} ${m.sp0} ${m.sp2} ${m.sp0};
@@ -1,4 +1,4 @@
1
- import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as le,fa as At,fb as Mt,fc as Bt,fd as Ft,aO as A,fe as Rt,aQ as j,ff as Lt,fg as Me,fh as Be,fi as Fe,b as U,fj as O,p as S,fk as Nt,fl as E,fm as _,fn as zt,fo as Ot,bU as Re,o as n,aS as Et,u as d,F as _t,ag as Zt,c3 as Wt,N as Vt,a as Yt,fp as qt,cj as Ht,al as de,am as ce,fq as Ut,fr as Gt,bj as Kt,d as Jt,ba as Xt,fs as Qt,aq as et,bL as en,ai as tt,bu as tn,ft as nn}from"./index-6S2g5oxD.js";import{a as W}from"./sentry-B1J7wTBN.js";import{n as i}from"./mui-wtLp0vbS.js";import{bo as Le,bm as Ne,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-Cs1j8aUi.js";import{t as rn,o as sn}from"./LowBalancePopup-DbtHeVY--BmWpKubs.js";import{S as Z}from"./LabeledText-zjKn4Cw--YLsk-TbJ.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="07c7557b-3356-45e6-9638-fca3b84cfece",e._sentryDebugIdIdentifier="sentry-dbid-07c7557b-3356-45e6-9638-fca3b84cfece")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:ze,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=W.useState(!1),M=()=>{f(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?f(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Gt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:dt})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=f&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),N=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=ze.visual.MMMDCommaYYYYformat,fe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(fe,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},z={amount:o?.method.includes("international")===!0?kt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=W.useState(!1),[mt,xe]=W.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);W.useEffect(()=>{(N?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[N,Q,he,pe,ye]);const $=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:k?.code=="approved"&&V?.code?V:k,ht=e.billPayInfo?.isRefundInitiated===!0?yt:k?.code=="approved"&&V?.code?V:k,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,q=y.allApprovalRules.length>0,gt=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.currencySymbol),g=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{st(),xe(!1)},P=g&&($?.code!=null?$.code==="draft"||k?.code==="approved":!0),b=P&&!ot,je=Ze(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=g?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(ze.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=k?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Pe=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,ke,Pe,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,ke,Pe,Ae)}}},Se=()=>{Te===!0&&H(!1),e.isBillMarkedForRetry===!0?(dt(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,H]=W.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:N?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{H(!1),ne()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:at,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ge,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ge,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Wn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ue,{children:t.jsx(Fe,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[g?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(G,{}),!g&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,g?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:zt(s,e.isRecurring,g,e.recurringConfig)})})]}):null]}),!g&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(gn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(se,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(se,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(se,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?ve:ne,style:{width:We(!1,P,b,q,s)}},primaryBtn:{label:Ze(b,q,e.isBillMarkedForRetry),isLoading:N?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?H(!0):Se()},style:{width:We(!0,P,b,q,s)}},rightSideComponent:P&&!b&&N.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:s,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Gn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(Nn,{children:[a.internationalText1,t.jsx(zn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ze=(e,y,f)=>e?a.paymentOutsideZeni.markAsPaid:f===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,We=(e,y,f,M,T)=>f?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
1
+ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as le,fa as At,fb as Mt,fc as Bt,fd as Ft,aO as A,fe as Rt,aQ as j,ff as Lt,fg as Me,fh as Be,fi as Fe,b as U,fj as O,p as S,fk as Nt,fl as E,fm as _,fn as zt,fo as Ot,bU as Re,o as n,aS as Et,u as d,F as _t,ag as Zt,c3 as Wt,N as Vt,a as Yt,fp as qt,cj as Ht,al as de,am as ce,fq as Ut,fr as Gt,bj as Kt,d as Jt,ba as Xt,fs as Qt,aq as et,bL as en,ai as tt,bu as tn,ft as nn}from"./index-Dm-b67Hf.js";import{a as W}from"./sentry-C2Rgx3zV.js";import{n as i}from"./mui-BLkKBV85.js";import{bo as Le,bm as Ne,bH as I,bN as an,Fz as ln,bL as oe,bP as on}from"./zeni-epic-state-TdgpFmku.js";import{t as rn,o as sn}from"./LowBalancePopup-DnRpH2rk-CPocaNr6.js";import{S as Z}from"./LabeledText-DlIRkA7r-DGwEr03s.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="9b3bc0b9-e040-46b4-9165-67e99b57fa2e",e._sentryDebugIdIdentifier="sentry-dbid-9b3bc0b9-e040-46b4-9165-67e99b57fa2e")}catch{}})();const nt=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,d[2],d[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,d[1]),navBarContainerPaddingTop:new u(10,d[3]),sectionTitleMarginLeft:new u(d[3],d[0]),reviewContainerMarginLeft:new u(d[3],d[6]),reviewContainerMarginRight:new u(d[3],d[8]),footerRightIconMarginRight:new u(d[0],d[0],d[7]),infoLabelPaddingRight:new u(d[0],d[3]),infoLabelMarginTop:new u(d[1],d[0])},dn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:ze,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:a,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,g]=W.useState(!1),M=()=>{g(!1)},T=e.fileId?.length===0;return t.jsxs(On,{isDisabled:e.fileId?.length===0,"data-testid":j("attachment-tag",e.fileName),onClick:()=>T===!1?g(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Ut,{title:e.fileName,file:e,onCrossClick:()=>M(),setShowFullScreenView:g}):null,t.jsx(En,{children:t.jsx(Gt,{contentType:e.contentType})})]})},di=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:g,currentTenant:M,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:it,style:at,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:X,retryPayment:dt})=>{const s=Tt(),c=Ct(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:x},F=g&&x!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(s),N=e.saveStatus,Q=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,it,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=ze.visual.MMMDCommaYYYYformat,ge={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},p={amount:o?.method.includes("international")===!0?It(ge,o):e.recipientTotalAmount.amount+(o?.fee.amount??0),currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},z={amount:o?.method.includes("international")===!0?kt(ge,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,fe]=W.useState(!1),[mt,xe]=W.useState(!1),be=()=>fe(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:s,children:t.jsx(Rn,{})})]}):Pt(e.paymentDetailsSection?.paymentTo);W.useEffect(()=>{(N?.fetchState==="Completed"||Q?.fetchState==="Completed")&&(pe(),ye(),he())},[N,Q,he,pe,ye]);const $=e.billPayInfo?.stage,k=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:k?.code=="approved"&&V?.code?V:k,ht=e.billPayInfo?.isRefundInitiated===!0?yt:k?.code=="approved"&&V?.code?V:k,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ie=le(o?.method??""),$e=ie.replace("Same Day",""),gt=e.isCollectToAccountInfoFromVendorContact?t.jsx(At,{paymentTypeLabel:$e,onClick:pt}):a.addedByZeni,q=y.allApprovalRules.length>0,ft=Le(o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?p.amount-z.amount:p.amount,o?.fee.currencyCode??Ne.currencyCode,o?.fee.currencySymbol??Ne.currencySymbol),f=an(e.paymentDetailsSection?.paymentType?.method),xt=l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",$?.code??"draft",te?.code??""),ue(!0,l)},ve=()=>{xe(!0),w.trackBillPayMarkAsPaid($?.code??"draft",te?.code??"")},bt=()=>{st(),xe(!1)},P=f&&($?.code!=null?$.code==="draft"||k?.code==="approved":!0),b=P&&!ot,je=Ze(b,q,e.isBillMarkedForRetry),wt=()=>f?b?void 0:a.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Qt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ae=rt&&e.paymentDetailsSection!=null?Mt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,$t=()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,D=e.recurringConfig,jt=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(x??"new_bill"),o?.method!=null&&l!=null){const St=f?a.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(ze.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,x,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:oe(D?.startDate?.toString()??"").format(C),endDate:oe(D?.endDate?.toString()??"").format(C),frequency:D?.frequency??"monthly",totalAmount:jt.amount,totalPaymentCycles:D?.totalPaymentCycles??0,isApprovalRequired:D?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?D?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?D?.updateRecurringBills==="all":void 0}),ae!=null){const Ce=$?.code??"draft",De=k?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Pe=nn(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===a.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,ke,Pe,Ae):je===a.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,ke,Pe,Ae)}}},Se=()=>{Te===!0&&H(!1),e.isBillMarkedForRetry===!0?(dt(),w.trackRetryConfirmClick(te?.code??"",$?.code??"",ht?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&($t(),ue(!1,{}))},vt=ln(p.amount,y.allApprovalRules,c.loggedInUser),[Te,H]=W.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:N?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(sn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{H(!1),ne()},onClickAway:()=>{H(!1)}}):null,t.jsx(Bt,{anchor:"right",open:ct,onClose:be,transitionDuration:250,"data-testid":j("vendor-email-preview-drawer"),children:t.jsx(Ft,{companyName:Rt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:A("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:s,style:at,children:[s==="small"?t.jsxs(Fn,{windowSize:s,children:[t.jsx(Ge,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:s,children:a.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ge,{onClick:we})}),s!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:s,children:a.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(kn,{children:a.duplicateBillPayWarning}),t.jsxs(In,{children:[a.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[a.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Wn,{children:[t.jsx(Yn,{children:a.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(s)?t.jsxs(qe,{windowSize:s,children:[t.jsxs(Pn,{children:[t.jsxs(An,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?a.invoiceNo:null,l.documentId]})})]}),t.jsx(Xe,{windowSize:s,children:A("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:s,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Je,{})}),t.jsxs(Zn,{"data-testid":j("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?a.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?a.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{style:{width:"25%"},windowSize:s,children:A("0,0[.]00",l.amount)})]}),t.jsx(Qe,{children:r!=null?Me.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(J,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Mn,{children:[t.jsx(He,{children:a.pay}),t.jsx(Ue,{children:t.jsx(Fe,{amount:ft,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(He,{children:a.to}),t.jsx(Ue,{children:e.vendor?.name})]}),t.jsxs(jn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(Z,{label:{label:a.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?Nt(e.paymentDetailsSection.withdrawFrom,s):h,infoLabelStyle:{textAlign:s==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(s),marginTop:m.infoLabelMarginTop.valuePx(s),color:S.brandColorGoldDark},additionalInfoLabel:ae})}),t.jsx(G,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(Z,{label:{label:a.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(G,{}),!f&&Y!=null?t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(Z,{label:{label:a.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${a.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ie.length>0?`${ie} `:""}${a.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${a.deliveryTimeUnits})`})}),t.jsx(G,{})]}):null,f?null:t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(Z,{label:{label:a.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:gt})}),f||lt?t.jsxs(t.Fragment,{children:[t.jsx(G,{}),t.jsx(O,{isThreadAllowed:F,entityId:x,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??h,companyName:c.currentTenant?.companyName??h,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(Z,{label:{label:a.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:zt(s,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&o?.method!=null&&(o.method.includes(I)||o?.fee.amount!=null&&o.fee.amount!==0)?t.jsx(fn,{children:t.jsxs(xn,{windowSize:s,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:a.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(gn,{children:[t.jsxs(Ve,{children:[t.jsx(se,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(se,{children:Ee.transactionFee}),t.jsx(re,{children:A("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(se,{children:Oe.total}),t.jsx(re,{children:A("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(pn,{})})]}),t.jsx(wn,{children:t.jsx(Fe,{amount:Le(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:P&&!b?a.paymentOutsideZeni.markAsPaid:a.editBill,onClick:P&&!b?ve:ne,style:{width:We(!1,P,b,q,s)}},primaryBtn:{label:Ze(b,q,e.isBillMarkedForRetry),isLoading:N?.fetchState==="In-Progress"||Q?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ae!=null?H(!0):Se()},style:{width:We(!0,P,b,q,s)}},rightSideComponent:P&&!b&&N.fetchState!=="In-Progress"?t.jsx(Hn,{windowSize:s,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Gn,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Un,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(I)?t.jsxs(Nn,{children:[a.internationalText1,t.jsx(zn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:a.internationalTerms}),a.internationalText2]}):null})]})},Ze=(e,y,g)=>e?a.paymentOutsideZeni.markAsPaid:g===!0?a.retryPayment:y?a.sendForApproval:a.scheduleBill,We=(e,y,g,M,T)=>g?128:y&&!e&&T==="small"?"auto":M?165:m.footerButtonWidth.value(T),pn=i(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -21,7 +21,7 @@ import{J as Tt,aw as Ct,y as u,f5 as Dt,f6 as It,f7 as kt,V as t,f8 as Pt,f9 as
21
21
  background-color: ${S.neutralGrey3Dark};
22
22
  height: 1px;
23
23
  width: 280px;
24
- `,fn=i.div``,gn=i.div`
24
+ `,gn=i.div``,fn=i.div`
25
25
  display: flex;
26
26
  width: 100%;
27
27
  box-sizing: border-box;
@@ -1,4 +1,4 @@
1
- import{J as P,V as i,aQ as m,o as r,aS as L,y as d,c as M,N as I,a as C,p as s,al as b,cD as D,T as W,ai as j,bi as R,u as n,eo as G,h as _,iZ as J,ka as A}from"./index-6S2g5oxD.js";import{n as t}from"./mui-wtLp0vbS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="fa7bfe47-aad8-4c8e-9f7a-552d1fc020bb",e._sentryDebugIdIdentifier="sentry-dbid-fa7bfe47-aad8-4c8e-9f7a-552d1fc020bb")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(Q,{children:[i.jsx(U,{windowSize:a,children:i.jsx(X,{children:i.jsx(Y,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(V,{windowSize:a,children:[i.jsxs(H,{windowSize:a,children:[i.jsx(O,{children:i.jsx(Z,{windowSize:a,children:e})}),i.jsx(q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(K,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:N(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},N=e=>e.reviewStatus.isLoading?i.jsx(W,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),Q=t.div`
1
+ import{J as P,V as i,aQ as m,o as r,aS as L,y as d,c as M,N as I,a as C,p as s,al as b,cD as D,T as W,ai as j,bi as R,u as n,eo as G,h as _,iZ as J,ka as A}from"./index-Dm-b67Hf.js";import{n as t}from"./mui-BLkKBV85.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="fa7bfe47-aad8-4c8e-9f7a-552d1fc020bb",e._sentryDebugIdIdentifier="sentry-dbid-fa7bfe47-aad8-4c8e-9f7a-552d1fc020bb")}catch{}})();const l={containerMarginTop:new d(0,n[2]),containerMarginLeft:new d(n[3],n[8]),containerMarginRight:new d(n[3],n[8]),subTitleMarginBottom:new d(n[2],n[2]),titleMarginBotom:new d(n[0],n[2]),titleMarginRight:new d(n[0],n[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(n[3],n[3],n[8]),navBarPaddingRight:new d(n[3],n[3],n[8])},F={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:B})=>{const a=P();return i.jsxs(Q,{children:[i.jsx(U,{windowSize:a,children:i.jsx(X,{children:i.jsx(Y,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(V,{windowSize:a,children:[i.jsxs(H,{windowSize:a,children:[i.jsx(O,{children:i.jsx(Z,{windowSize:a,children:e})}),i.jsx(q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(K,{windowSize:a,children:x.map(o=>{const h=o.reviewStatus.code==="error",c=o.reviewStatus.code==="warning"||o.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>B(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:N(o)}),i.jsxs(oe,{children:[i.jsxs(w,{children:[i.jsx(f,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:o.leftSideText.title}),i.jsx(f,{isWarning:c,isError:h,children:o.rightSideText.title})]}),i.jsxs(w,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:o.leftSideText.subTitle}),a!=="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:o.rightSideText.additonalInfo})]}):null]})]})]}),a==="small"?i.jsxs(u,{windowSize:a,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[o.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx($,{})}):null,o.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:o.rightSideText.additonalInfo})]}):null]})]},o.id)})})]}),S?i.jsx(L,{primaryBtn:z,cancelBtn:T,showCancel:!E}):null]})},N=e=>e.reviewStatus.isLoading?i.jsx(W,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(ae,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(le,{}),Q=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1,4 +1,4 @@
1
- import{eR as h,eS as b,V as s,bU as f,o as i,aQ as l,F as g,an as y,ai as p}from"./index-6S2g5oxD.js";import{n}from"./mui-wtLp0vbS.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]="70c0b653-f0e7-4b81-b173-94b8509871e8",e._sentryDebugIdIdentifier="sentry-dbid-70c0b653-f0e7-4b81-b173-94b8509871e8")}catch{}})();const{hyphen:d}=g.getLocalizedStrings().common.strings,x=n.div``,m=n.div`
1
+ import{eR as h,eS as b,V as s,bU as f,o as i,aQ as l,F as g,an as y,ai as p}from"./index-Dm-b67Hf.js";import{n}from"./mui-BLkKBV85.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]="70c0b653-f0e7-4b81-b173-94b8509871e8",e._sentryDebugIdIdentifier="sentry-dbid-70c0b653-f0e7-4b81-b173-94b8509871e8")}catch{}})();const{hyphen:d}=g.getLocalizedStrings().common.strings,x=n.div``,m=n.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aR as H,ip as te,gI as me,eE as Je,iq as Me,a9 as _e,ir as Ve,cG as Fe,cH as Pe,V as a,ac as Ne,cq as qe,cr as Re,cs as Be,aS as We,is as Ue,it as ze,F as be,aa as pe,iu as Se,iv as $e,cT as Ge,J as He,iJ as Ke,gN as ue,u as B,p as De,y as ye,cJ as Xe,iw as Ye,ix as Ze,iy as Qe,o as V}from"./index-6S2g5oxD.js";import{a as f}from"./sentry-B1J7wTBN.js";import{n as U}from"./mui-wtLp0vbS.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-Cs1j8aUi.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-BW5M7Zfq-C4Wr3YEf.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="557cfe04-4e7e-438e-90b3-af80aae07823",e._sentryDebugIdIdentifier="sentry-dbid-557cfe04-4e7e-438e-90b3-af80aae07823")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=U.div`
1
+ import{aR as H,ip as te,gI as me,eE as Je,iq as Me,a9 as _e,ir as Ve,cG as Fe,cH as Pe,V as a,ac as Ne,cq as qe,cr as Re,cs as Be,aS as We,is as Ue,it as ze,F as be,aa as pe,iu as Se,iv as $e,cT as Ge,J as He,iJ as Ke,gN as ue,u as B,p as De,y as ye,cJ as Xe,iw as Ye,ix as Ze,iy as Qe,o as V}from"./index-Dm-b67Hf.js";import{a as f}from"./sentry-C2Rgx3zV.js";import{n as U}from"./mui-BLkKBV85.js";import{G2 as et,G3 as tt}from"./zeni-epic-state-TdgpFmku.js";import{i as lt,r as at,n as st,o as ot}from"./ScheduleSequenceTable-c-8N2OvE-DWSKrTJR.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="1fe48150-2d53-4174-9f1a-7a0248aabc70",e._sentryDebugIdIdentifier="sentry-dbid-1fe48150-2d53-4174-9f1a-7a0248aabc70")}catch{}})();const W={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},nt=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aR as F,ip as Q,gI as Ie,eE as Je,iq as we,a9 as Le,ir as Me,cG as Ve,cH as Pe,V as a,ac as _e,cq as Fe,cr as $e,cs as Ne,aS as qe,is as Be,it as Re,F as ye,aa as re,iu as pe,iv as Ue,cT as We,J as ze,gN as fe,u as Z,p as Ge,y as Ke,iw as He,ix as Xe,iy as Ye,o as w}from"./index-6S2g5oxD.js";import{a as y}from"./sentry-B1J7wTBN.js";import{n as P}from"./mui-wtLp0vbS.js";import{G2 as Qe,G3 as Ze,bL as et}from"./zeni-epic-state-Cs1j8aUi.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-BW5M7Zfq-C4Wr3YEf.js";import"./liveblocks-DxN2_B8G.js";import"./core-DhC75twd.js";import"./recharts-Bks4lV7q.js";import"./lottie-BNYbcum9.js";import"./analytics-r9EGBu1Q.js";import"./lexical-B4ox-Oq6.js";import"./utils-OImZ5lg2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="8681fbce-f09a-42d9-8cad-2169014634b7",e._sentryDebugIdIdentifier="sentry-dbid-8681fbce-f09a-42d9-8cad-2169014634b7")}catch{}})();const B={labelWidth:new Ke(160,160,160)},nt=P.div`
1
+ import{aR as F,ip as Q,gI as Ie,eE as Je,iq as we,a9 as Le,ir as Me,cG as Ve,cH as Pe,V as a,ac as _e,cq as Fe,cr as $e,cs as Ne,aS as qe,is as Be,it as Re,F as ye,aa as re,iu as pe,iv as Ue,cT as We,J as ze,gN as fe,u as Z,p as Ge,y as Ke,iw as He,ix as Xe,iy as Ye,o as w}from"./index-Dm-b67Hf.js";import{a as y}from"./sentry-C2Rgx3zV.js";import{n as P}from"./mui-BLkKBV85.js";import{G2 as Qe,G3 as Ze,bL as et}from"./zeni-epic-state-TdgpFmku.js";import{i as tt,r as lt,n as at,o as st}from"./ScheduleSequenceTable-c-8N2OvE-DWSKrTJR.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="df7db77f-6f4a-4738-9dfa-67ee4518d061",e._sentryDebugIdIdentifier="sentry-dbid-df7db77f-6f4a-4738-9dfa-67ee4518d061")}catch{}})();const B={labelWidth:new Ke(160,160,160)},nt=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{J as F,e as X,V as t,iz as ie,iA as le,N as oe,iB as xe,dU as fe,fi as ye,b as I,F as N,iC as we,iy as be,o as i,y as b,p as j,d as $e,aa as re,dP as je,cq as Se,cs as ke,cT as Q,c$ as ee,cZ as ve,iD as K,iE as De,b4 as Ce,iF as Me,cu as ze,iG as Oe,u as h,al as O,ba as Ee,cr as Le,ao as pe,d0 as Ie,b2 as ne,es as Fe,aS as Ae,iH as A,gh as Te,aO as Ve,iI as Je,aW as q,d1 as Be,bi as Pe}from"./index-6S2g5oxD.js";import{n as o,c as B}from"./mui-wtLp0vbS.js";import{a as C}from"./sentry-B1J7wTBN.js";import{bh as G,G4 as Ne}from"./zeni-epic-state-Cs1j8aUi.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]="779a3db6-e204-4dea-8bf7-ed7c7fadce55",e._sentryDebugIdIdentifier="sentry-dbid-779a3db6-e204-4dea-8bf7-ed7c7fadce55")}catch{}})();const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=F(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ze,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ae,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:He(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const He=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
1
+ import{J as F,e as X,V as t,iz as ie,iA as le,N as oe,iB as xe,dU as fe,fi as ye,b as I,F as N,iC as we,iy as be,o as i,y as b,p as j,d as $e,aa as re,dP as je,cq as Se,cs as ke,cT as Q,c$ as ee,cZ as ve,iD as K,iE as De,b4 as Ce,iF as Me,cu as ze,iG as Oe,u as h,al as O,ba as Ee,cr as Le,ao as pe,d0 as Ie,b2 as ne,es as Fe,aS as Ae,iH as A,gh as Te,aO as Ve,iI as Je,aW as q,d1 as Be,bi as Pe}from"./index-Dm-b67Hf.js";import{n as o,c as B}from"./mui-BLkKBV85.js";import{a as C}from"./sentry-C2Rgx3zV.js";import{bh as G,G4 as Ne}from"./zeni-epic-state-TdgpFmku.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]="779a3db6-e204-4dea-8bf7-ed7c7fadce55",e._sentryDebugIdIdentifier="sentry-dbid-779a3db6-e204-4dea-8bf7-ed7c7fadce55")}catch{}})();const R=(e,l)=>`${e}.${l}`,{formElements:{dayOfMonthSelector:M},common:se}=N.getLocalizedStrings();function Re({defaultValue:e,name:l,placeholder:s,alignLeft:r=!1,style:p,isDisabled:n,registerOptions:d,onSaveClick:c,onCancelClick:w}){const[f,u]=C.useState(!1),{control:m,formState:{errors:x},setValue:S}=Q(),v=()=>{k||(c(),u(!1))},y=()=>{w(),u(!1)},k=ee(x,l),g=F(),a=X();return t.jsx(pe,{onClickAway:()=>{u(!1)},children:t.jsx(Ze,{style:p,isDisabled:n!=null,windowSize:g,onClick:()=>{!f&&n==null&&u(!0)},children:t.jsx(Ie,{name:R(l,"dayOfMonth"),control:m,rules:{...d},render:()=>t.jsxs(Ye,{children:[t.jsx(We,{placeholder:s,defaultValue:e,isDisabled:n}),f?t.jsxs(Ge,{alignLeft:r===!0,children:[t.jsx(et,{}),t.jsxs(ae,{isSelected:e.type==="day",children:[t.jsxs(Qe,{isError:e.type==="day"&&k,children:[t.jsx(ne,{label:{label:M.pickDate},radioField:{id:"day",name:R(l,"type"),value:"day",radioSize:"small",checked:e.type==="day"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3,minWidth:"35%"},labelStyle:{color:e.type==="day"&&k?j.important:"inherit"}}),t.jsx(Fe,{name:R(l,"dayOfMonth"),type:"number",placeholder:M.placeholder,disableCopyPaste:!0,autoTrim:"trim",onKeyDown:$=>{$.key!=="Backspace"&&isNaN(parseInt($.key))&&$.preventDefault()},defaultValue:e.dayOfMonth!=null&&!isNaN(e.dayOfMonth)?e.dayOfMonth:0,registerOptions:{min:1,max:28},outerDivStyle:{width:"fit-content",marginLeft:i.sp1,marginRight:i.sp1},style:{border:`1px solid ${e.type==="day"&&k?j.important:a.colors.grey2}`,borderRadius:i.sp1,...I.smallRegular.cssObject,padding:i.sp2,maxWidth:"35px",boxSizing:"border-box"}}),t.jsx(Ue,{isSelected:e.type==="day",children:M.ofEveryMonth})]}),t.jsx(_e,{defaultValue:e.dayOfMonth,onClick:$=>{S(`${l}.dayOfMonth`,$),S(`${l}.type`,"day")}})]}),t.jsx(tt,{}),t.jsx(ae,{isSelected:e.type==="lastDayOfMonth",children:t.jsx(ne,{label:{label:M.lastDayOfMonth},radioField:{id:"lastDayOfMonth",name:R(l,"type"),value:"lastDayOfMonth",radioSize:"small",checked:e.type==="lastDayOfMonth"},style:{...I.smallRegular.cssObject,padding:`${i.sp3} ${i.sp0}`,width:"fit-content",marginLeft:i.sp3},labelStyle:{color:e.type==="lastDayOfMonth"&&k?j.important:"inherit"}})}),t.jsx(Ae,{primaryBtn:{label:se.footer.save,onClick:v,isDisabled:He(e),type:"button",style:{minWidth:"83px"}},cancelBtn:{label:se.footer.cancel,onClick:y,style:{minWidth:"83px"}},style:{position:"unset",backgroundColor:"transparent"}})]}):null]})})})})}function We({placeholder:e,defaultValue:l,isDisabled:s}){return t.jsxs(qe,{isDisabled:s!=null,children:[l?.type==null?t.jsx(Ke,{children:e}):null,l?.type=="day"&&l.dayOfMonth!=null?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth[`${l.dayOfMonth}`]}),t.jsx(W,{children:M.ofEveryMonth})]}):null,l?.type==="lastDayOfMonth"?t.jsxs(de,{children:[t.jsx(W,{children:M.daysOfMonth.lastDayOfMonth}),t.jsx(W,{children:M.ofEveryMonth})]}):null]})}function _e({defaultValue:e,onClick:l}){return t.jsxs(Xe,{children:[t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+1;return t.jsx(H,{isSelected:r===e,onClick:()=>l(Ne(r)),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+8;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+15;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})}),t.jsx(_,{children:[...Array(7).keys()].map(s=>{const r=s+22;return t.jsx(H,{isSelected:r===e,onClick:()=>l(r),children:r},r)})})]})}const He=e=>{switch(e.type){case"day":return e.dayOfMonth==null;case"lastDayOfMonth":return!1;default:return!0}},Ye=o.div`
2
2
  position: relative;
3
3
  `,qe=o.div`
4
4
  display: flex;