@zeniai/web-cockpit-ui 1.14.95-prod → 1.14.96-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 (275) hide show
  1. package/dist/assets/{ACHDetailsPage-OhfwzmDP-CUPlHlS1.js → ACHDetailsPage-BRWOdhMx-lCkplz0-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-9OxanlvK-Bk_qTUs7.js → AIPerformancePage-4v4Fkm9f-BqYLGo1s.js} +1 -1
  3. package/dist/assets/AccountInfoPage-Ca_vKG58-pmVk2hiY.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-Bu-ZFVKf-BazFs_cA.js → AccountInfoPageContent-Dv1IPcdF-ChZIyLOA.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BqLkGmTA-Bi36nE_K.js → AccountLockedInfoModal-CEk5d9hq-BU7zCzNG.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CyQ13mJl-CAv47_Mb.js → AccountReconDetailsDrawerPage-DYKjrPwN-BReGAKzb.js} +4 -4
  7. package/dist/assets/{AccountRow-pJ59k4-J-BFmtHL3N.js → AccountRow-BM3xLbeh-DwBWMEiu.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-Ukdm1VDj-Dh0SxjJq.js → AccountsPromoCardStack-CTkwARBJ-Dqd8qLkS.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CZ9kZK-_-7zBs11LO.js → AddAddressForCardDrawer-DfOyebHX-BnGN6mbi.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Bc0GY8mw-CwBrjgnk.js → AddToWalletPage-OJBvAKUj-CKSRCSe6.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Cam_Ox67-DaZT71t6.js → AgingReportsPage-n-UKn3Ei-CfeYGvlE.js} +1 -1
  12. package/dist/assets/{AllUserItems-CEBWfFac-DPOuER5U.js → AllUserItems-BsvKEVcx-Ckn7N6Nq.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-uy2AK45a-JhYM22T9.js → ApAgingDetailPage-Duu2uAEr-CuSndO2U.js} +2 -2
  14. package/dist/assets/{AppBasePage-BBolfeYB-CAoueBdK.js → AppBasePage-DoCF494Z-BPFvSn_P.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-Df0b3OK2-CKxXRIrV.js → AppDrawerContent-DM1t0oLS-DX8gDdRy.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-ChI1Wnf--DELVy5mB.js → ApprovalRulesSettingsPage-GZCo6_i2-ClrA48La.js} +1 -1
  17. package/dist/assets/{ArAgingChart-PIQ_BFy4-YcKcd549.js → ArAgingChart-CsFDVdeO-C-RKv3GM.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-DpdUPb6--BJoxfTPP.js → ArAgingDetailPage-CaOr6vAU-Dju9MqE9.js} +1 -1
  19. package/dist/assets/{AttachmentView-mC246Bpw-CT1OWA3c.js → AttachmentView-B0d42oAf-CFenLcCO.js} +1 -1
  20. package/dist/assets/{BankAccountSection-DehqZ04x-BJbbHUH9.js → BankAccountSection-Bgdk93V0-DEu58Lvd.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-WkczfI75-p--soGkR.js → BankAccountWarningSection-DMRmF2yM-Bdqe05tT.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CCEKqkfW-CxNmb7UL.js → BankConnectionsSettingsPage-BpwKq93l-yFMdYswL.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DA1djKtd-CT6NN5ei.js → BillDetailPage-BG7FhHEq-CI73yv-V.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CLkMLaIk-DBi0iP3G.js → BillPayApprovalRuleDetailPage-BAK1Gfko-DXu3RSd8.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-CZnYZ8cn-D3dv90TB.js → BillPayApprovalRulesPage-DiCNUU-G-CN0GV9DL.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-M3bRYehy-Bpwpx-W-.js → BillPayPromoPage-aGKOv8Ur-59DxEGOU.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-CJyPhrld-BW-k6Cq5.js → BillPaySetUpPage-DRCjyEfB-CkG4ce3e.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CQngU3lq-DrWAQyUl.js → BillingSettingsPage-CdYb74V7-D26O7kQD.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DlAOz-SY-hKyZsi63.js → BillsBulkReviewDrawerPage-D8EGfY5P-BpW4NDmq.js} +1 -1
  30. package/dist/assets/{BoxItem-Cb4_ZBkK-xDHkx3mk.js → BoxItem-WOrvBzns-DD4R649W.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-D7btikKT-BPUDQBNI.js → BusinessVerificationPage-CbqJIVpz-BiQu25FO.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DQ6T2OKm-CtS54mYI.js → CardNumberSubText-DBOH0_yP-Be1TwMNo.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-ToN5ueBt-BpzeYowT.js → CashbackDetailPage-D-kXy6LW-DDN4yxLo.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BYNjlLQX-smovJQ3p.js → ChargeCardDetailPage-BQnJsfn5-D6Qm3_DY.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-CTG6bNbA-DN4yg5h2.js → ChargeCardListPage-130ILwkr-xWvWRUI-.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BRAAvmWW-BCMrKmLw.js → ChargeCardListTable-EGkwcy7i-Gk77wXoS.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-xhEvT_sU-D7VUd9Kw.js → ChargeCardPromoPage-BwqrXrY--B5or9kQv.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-Be89R3A7-BvY-IfNf.js → ChargeCardSetupPage-DRzB7Rt4-SAR76aeK.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CFNCOiLr-DDhNhCxi.js → ChargeCardStatementsPage-C3NxKjmB-Bqdh-I41.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-Cy0NVgKc-D8fpunhe.js → CheckDepositDrawerPage-ClxKj2js-BOLtAKO1.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-CrR91Kpi-DnJZSUDi.js → CollapsableReportTable-xkNXkjfh-CuBOzrbM.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-4FjXy6T9-CStOu48U.js → CompanyOfficerDetailsSection-BtUBatbQ-CS2katNY.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-Bv6Aws7i-dO40WjmK.js → CompanyPassportCard-BOxM716U-DxvRrHgL.js} +2 -2
  44. package/dist/assets/{CompanyPassportPage-DRhnOgdd-BOnCftvv.js → CompanyPassportPage-DzE7sm8S-ZZY5euQN.js} +13 -13
  45. package/dist/assets/{CompleteProfile-CdVQdaB0-CLoHBDqw.js → CompleteProfile-BjGSPASa-Bfp0I59Q.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-Cygb8bhF-CpMHcY5K.js → ConfettiBurst-1rYKpbAj-DHWZb_DF.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-_jZBL7C2-BT5eOx4Y.js → CreateOrEditVendorPage-WQeDCj-E-ZLNX3FBX.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-CWF47Q9G-lJ5s9KFG.js → CreditCardPaymentDrawerPage-Q12y6HMX-CRUPlZFr.js} +101 -101
  49. package/dist/assets/{CurrencySelectField-ppkSKTpN-BC31P_0q.js → CurrencySelectField-AjAWhg6e-h8iODRHM.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-DbaC9Uy1-BzvBGrNi.js → CustomerOnboardingActivationPage-BJhw-PvI-DfxjHeaa.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-C9radmIS-D7esgWyy.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-5PeyznvM-B8Mhh2k2.js → CustomerOnboardingDetailPageSkeleton-B0WzN1Sx-A_sh3_b9.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-CWvaI2vY-BkjuYe-o.js → CustomerOnboardingNoStepsPage-CNni6chX-DEHNST6I.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-DWmMR5Ke-C-0daaby.js → CustomerOnboardingPage-CvN9Jrdy-BbxW7een.js} +4 -4
  55. package/dist/assets/CustomerOnboardingProductSuitePage-CZkX9ur7-CVf3ueoc.js +202 -0
  56. package/dist/assets/{Dashboard-CJSMYKO7-S41CzF6L.js → Dashboard-_o0Ftdv8-B4FMEqu7.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-CcY-7-W_-DdmW4wbH.js → DashboardReportPage-Cu5wqWkj-BjOABFkU.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-D3qI_q0a-iCovmnlW.js → DashboardSidebarBackgroundAnimation-Bl8Ss6Gf-1uwRQXQg.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-BpbS0SRE-NmcXTIJb.js → DepositAccTransactionItem-BOPK7-7P-CmYSzV4w.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-C1EuUbFg-CI8oEH7-.js → DepositAccTransactionListPage-oj9tntbI-CMORNmGB.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-DTrY_uHQ-CknHfbIJ.js → DomesticWireDetailsPage-FGdEilUB-BIDfGIPL.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-gRH0FIa6-e2777Hoq.js → DownloadOverlay-c57lEf_V-BH-A5hnp.js} +1 -1
  63. package/dist/assets/{DrawerPage-gsfboWa--D8_bnW1E.js → DrawerPage-inbhWwND-BaLC0Hdr.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-D3GenIke-s4IX6oMr.js → EditPeoplePage-DJthuIP4-Ccr8TbIs.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-CC4JbXua-Dip_aVtM.js → EditReimbursementDetailPage-Bt7XKq5h-BcSPiJVn.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-dZ-H_-kO-B3yxSec8.js → EntityDetailPage-DbTiF9Hs-DOWN_WQU.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BaSzuw3T-DJX_ZTYK.js → EntitySummarySection-CHgrPo86-C_DZGpt7.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-CtBVIXza-8HVAkTgZ.js → ExpenseAutomationOverviewPage-QZT_UFXf-Q6Yezq8W.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-BByZfMUo-Bp9htN-p.js → ExpenseAutomationPage-Y7V_Z8rd-Nz-tHH0P.js} +36 -36
  70. package/dist/assets/{ExpressPayPage-Dx4Cc9w2-5nFukiXm.js → ExpressPayPage-CIp_R6ZQ-SvQXytoV.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-Us5W5Wo9-CTfS268U.js → FeaturePreviewPage-qsUO3mUu-CQPzEAZz.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-DDXRZdXi-BkUwTVWQ.js → FollowStepsSection-ebmR-eLP-CCCIBkct.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-Ou4B6O28-Cj-vrRvJ.js → GlobalReviewListPage-9V-xoqvs-O56nx8QU.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DEj81xCg-BlO4gF2p.js → InformationCardStack-DnB7TmOk-BJQfDBIj.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-BSigEuRs-DrhT2GS8.js → InsightsCardStack-BBczCYEz-CM9k6Dqk.js} +5 -5
  76. package/dist/assets/{InsightsSection-BrjpMz4X-DExiKNju.js → InsightsSection-BTXj5WUe-BehAISJe.js} +5 -5
  77. package/dist/assets/{IntegrationsSettingsPage-BEBtsJ8z-BJ7jcJB8.js → IntegrationsSettingsPage-CByj2tO4-zF-3f5Vb.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-DqTA5UPe-CmHr1otA.js → InternationalWireSwiftDetailsPage-4-pl1ozv-BL59ObmT.js} +4 -4
  79. package/dist/assets/{InternationalWireVerificationPage-CGLyTJOX-CNAH8NOm.js → InternationalWireVerificationPage-kIajgPZt-Cim3HMUE.js} +1 -1
  80. package/dist/assets/{InviteFormPage-CHZVhrof-Ctwgv0tR.js → InviteFormPage-XsnZcAvb-F0roB33R.js} +1 -1
  81. package/dist/assets/{InvitePageListView-B0aN2fz0-C_ebzQNV.js → InvitePageListView-HfsehyxK-ADhebkRn.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-DLPupvdi-DD0j_YWt.js → InvitePeoplePage-DrBtwpMH-D70ug1bL.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-COIpUGEB-wLZvdMHG.js → InvoiceUploadSection-DPd4VmqZ-BLpPijn4.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-6LWMwuaq-BfBIAKq3.js → IssueChargeCardPage-xbfFhV0O-D87TKikm.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-BOPQCQtK-glMgUt5i.js → LabeledAddressValue-CB_KH7v5-DhXcxbM6.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DxybAWPO-DIu3ggxx.js → LabeledAddressValueField-Bt41wdNQ-CdN5suyF.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-BSciMX7_-DpOi6Pih.js → LabeledControlledCheckBoxField-Btw_zwzy-I7spg7Dx.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-q23ARfG8-CRQFWLML.js → LabeledCreatableSingleSelectField-fycRE7PX-BLM_4t-_.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-Icg5_obX-DhGSKEqK.js → LabeledDocumentField-C73vQNgq-xVgwP02Y.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-BiJOzT5B-urCKQV5c.js → LabeledDropDownFormattedTextField-DGb_bDyp-DbOxXrX_.js} +1 -1
  91. package/dist/assets/{LabeledText-Tn7u-Ek3-DOKeDUtN.js → LabeledText-yhm8qxrA-B5O06POj.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B_MWazM_-Deht3VPb.js → LabeledUserSingleSelectWithSubtitlesField-CgA4UPJh-BYzGVtZI.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-DyCxNVQD-CDJPm5Uy.js → LabeledZeniRolesDropDownField-DGkU72cd-iMLOxXqS.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-NXVaaeQn-Dc1IDF_5.js → LinkJETransactionPage-C0onrP5t-DohOtG77.js} +1 -1
  95. package/dist/assets/{LockCardPage-DFFQF_XE-ZW7dAknw.js → LockCardPage-DaVzuRMw-C59qINIA.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-T5Ms2v-E-DO0_djob.js → LowBalancePopup-Dd9HLWlh-qIEjt8fN.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-Cpde2XoD-JoGWlKNi.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-DQYH52_8-Clx_7zaI.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-DwBUSxwe-x_28I9nn.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-BU8oXuny-C8cR1VFE.js → MagicLinkSuccessPage-DbhdGmhh-DNYzgAJU.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-kbY8yTTa-9EHeM1LM.js → MagicLinkTitleSection-Bx92291D-D9nsnbMt.js} +1 -1
  102. package/dist/assets/MailingDetailsSection-D-tnK244-BXHufBP2.js +21 -0
  103. package/dist/assets/{Menu-DTdVYIrC-BIdLGG6J.js → Menu-0YHUdU0n-12P5RljB.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-B67G0-7Z-n6eVqpf_.js → MyBankConnectionsSettingsPage-Dn9AT8p1-BbviCBBU.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-Cbap6Vpr-CSFLEHXK.js → MyPendingActivationChargeCardListPage-DrQu6s7j-DI8j4Roq.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-TqtGXk0G-LTkAmfNQ.js → MyProfileSettingsPage-CBvjEd7r-B3f0C00b.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-C4_SW0nA-DEnXFLuU.js → NavBarWithPicker-aXn2QYh1-CB_AN-HG.js} +1 -1
  108. package/dist/assets/{NavigationArrow-6jp6I9fp-c3H2_Bem.js → NavigationArrow-JLUXaIrz-BZffLUxV.js} +1 -1
  109. package/dist/assets/{NavigationDots-BSjG6OlY-Buo2a5d0.js → NavigationDots-B0_dDbgu-D1euhRa0.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-BXM36kwh-Cd4H2AF3.js → NewGlobalMerchantPage-B_019EtP-Cnin4QvT.js} +1 -1
  111. package/dist/assets/{NoDataChart-CRhOisS1-BTCCqtJ6.js → NoDataChart-DLKHNXD4-CdqcDLeH.js} +1 -1
  112. package/dist/assets/{NoDataTable-bIZY56VS-ccYortqh.js → NoDataTable-BMD2qygC-4Ck98ufk.js} +1 -1
  113. package/dist/assets/{NotFoundPage-Y4UqiUrL-Dl07MVyQ.js → NotFoundPage-BEya4LS2-BrCuBa4j.js} +3 -3
  114. package/dist/assets/{NotificationSettingsPage-Ct1wYM98-cHt-xjmV.js → NotificationSettingsPage-C9SjRKCu-Du1Cf4y_.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-tD8IFVDs-CZIDK_9u.js → NotificationsListConfig-OCeJNw1G-DxjI9EUe.js} +1 -1
  116. package/dist/assets/{NotificationsPage-C8PlG40Q-CVuSfSFc.js → NotificationsPage-FJHx_WBG-TAfeF35H.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-B5dz3g_I-CwduKJys.js → OpExByVendorPage-Dxk68R6U-TSpF0BZT.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-DCcii6jR.js → OverlayContainerPage-Daz3A7cI-BG61qzjJ.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BzeV5E9J-BCbR55BC.js → PandLWithForecastPage-Bu49FbWD-DV8somvz.js} +4 -4
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C7ucXP-C-vD6tp49H.js → PaymentAccountSetupBillingAddressSection-s9EEHxoG-Ccng4Jbq.js} +1 -1
  121. package/dist/assets/{PeoplePage-Di9LbUPG-Da8rtaKy.js → PeoplePage-DN5VtG7Q-CKG_6p7l.js} +1 -1
  122. package/dist/assets/{Preview-tV-yCjmx.js → Preview-8iqIdVv4.js} +1 -1
  123. package/dist/assets/{ProductsCarousel-IX34mwaP-9RoB5Xfe.js → ProductsCarousel-6gthLCkf-RpcyX94H.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-DKl5hmY7-DihqgpsA.js → PromoBaseCards-CzPzj69A-DGTVwpLe.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-CFgV4ltt-DFaL9t9h.js → QBOConnectionDialog-BFy0lMZd-D5AhMSo8.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-3Igwysxj-wURB4Ues.js → QBOSetupSection-DcLYyQ5m-DYCAROkc.js} +7 -7
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-0o5lDuM2-Cr0TZK-s.js +26 -0
  128. package/dist/assets/{ReimbursementApprovalRulesPage-CUQt2z6s-CacQtgTe.js → ReimbursementApprovalRulesPage-D5ZMrrmO-CIYzhtUg.js} +1 -1
  129. package/dist/assets/{ReimbursementDetailPage-CgwRpLnh-BB4SRwDm.js → ReimbursementDetailPage-DatcF8rt-B5PSoIBr.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-BxBAhFM1-BF6hJaxb.js → ReimbursementPromoPage-MweW-4DO-BO5Os0EF.js} +4 -4
  131. package/dist/assets/{ReimbursementSetUpPage-CP8WtKvQ-CigASL8Y.js → ReimbursementSetUpPage-BD2LWlbW-YI084Mlh.js} +1 -1
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Ir7LV3Qg-Dnq7FHvk.js → ReimbursementsBulkReviewDrawerPage-DV_PLm_g-CdjeW3Za.js} +1 -1
  133. package/dist/assets/{ReloadCard-DLKVg3Sx-raifO-B_.js → ReloadCard-9KpQCrce-Y78Zw9cJ.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-BlpUjTMl-C-RA5eDL.js → ReportTableViewSelector-BPliEsuo-CZegsDsW.js} +1 -1
  135. package/dist/assets/{ReportsPage-D-4SKTVF-DBO0HPPe.js → ReportsPage-h2DAaQfK-Dj7aDDw4.js} +5 -5
  136. package/dist/assets/{RevenueChart-C3cckydL-DuMhXuaA.js → RevenueChart-DY2s_upY-DFXm-6Am.js} +1 -1
  137. package/dist/assets/{ReviewDetailsPage-Df882foz-DSNm6Tvp.js → ReviewDetailsPage-BiYxRnvA-cVXSS1nN.js} +1 -1
  138. package/dist/assets/{ReviewOverlay-n3lZIztC-Jt6HA3yk.js → ReviewOverlay-BvPN7IKD-BVyGsnOK.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-jGxjGCFo-Cfrtl2v2.js → RoleWithToolTip-aW95rpRe-D_rCTb4X.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-cVGyXDC1-BNedCqMx.js → ScheduleDetailsFixedAssetsPage-DlXqz1QQ-CI8b87nD.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsPage-Dcl5GREY-Ct_YcYBo.js → ScheduleDetailsPage-DebosLND-CytjKLyD.js} +3 -3
  142. package/dist/assets/{ScheduleSequenceTable-CkqvmnzR-ChIiKEV4.js → ScheduleSequenceTable-Dd4Ep_c0-CndtHY8m.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-B-IHS-7V.js → ScreenRoutes-CrZHoFIY.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-bKk_0Pau-Bgf6Zs6Q.js → SetUpAccountSection-Dhb8A0Oe-CHZzV0W4.js} +1 -1
  145. package/dist/assets/{SignIn-BZXzRb1K-B_z9rDGz.js → SignIn-DQBJB5ad-yHNBe1dm.js} +1 -1
  146. package/dist/assets/{SignInScreen-aZSIS5dr.js → SignInScreen-B08t21nJ.js} +1 -1
  147. package/dist/assets/{SpendManagementListViewPage-jdvSYQ4J-C-TI7b_0.js → SpendManagementListViewPage-Ac-9u-X2-ConJ7IhF.js} +3 -3
  148. package/dist/assets/{SpendManagementPerTabPage-BlyFIn6o-CDHF62oQ.js → SpendManagementPerTabPage-DgrMAQ8l-CwC7irjo.js} +1 -1
  149. package/dist/assets/{SpendManagementSection-Dzlokoym-DFpoafz0.js → SpendManagementSection-Ci2yOCJ9-DUAKhgdu.js} +1 -1
  150. package/dist/assets/StatementItem-hcBoe79o-BTjI_1ZK.js +31 -0
  151. package/dist/assets/{StatementsPage-Cw6GRd81-ChCacJhz.js → StatementsPage-DVR5LhTi-ldyTOd7O.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-CcLiXtx4-f9qUB_aI.js → StatusSwitcher-Cy5ITFgi-DNMieZwF.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-zpnLoSBy-DHPyjZjM.js → SubTabSwitcher-DhsES2OW-DrYqVYfO.js} +1 -1
  154. package/dist/assets/{SummaryCard-C2KHXXwg-D6dUyKsz.js → SummaryCard-Byv4Hw8Q-CEnhPnYc.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-C3M_HCXR-DTuYPwo5.js → TaskManagementPage-CVXMOPf2-q63kh_yR.js} +1 -1
  156. package/dist/assets/{TimeRangeSwitcher-COHAPH9b-d1DuuIDi.js → TimeRangeSwitcher-jct2_5PE-DPu4jgs4.js} +11 -11
  157. package/dist/assets/{TimeframeSwitcher-5ql0bSzz-Bs-WyJqF.js → TimeframeSwitcher-BK-qliOX-BjbSBToW.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-BXSkHN5Y-DtM__aUW.js → TimeframeSwitcherWithToggle-Cl6ISBIz-3_smJQH4.js} +2 -2
  159. package/dist/assets/{TopExCard-BrodwfJq-BuNuom9E.js → TopExCard-o4Q3ze1b-CQFtRtLu.js} +1 -1
  160. package/dist/assets/{TopExDetailPage-B8-Zzr1B-CRfyljYM.js → TopExDetailPage-BsCwwwDi-CdmjqJ_1.js} +5 -5
  161. package/dist/assets/{TransactionDetailPage-D8v3KPrb-BrPGsz8W.js → TransactionDetailPage-rpCG65yC-CLh205i5.js} +1 -1
  162. package/dist/assets/{TransactionList-DMb2xYOV-CraifWnm.js → TransactionList-YI4oZaim-xbjxS_zo.js} +1 -1
  163. package/dist/assets/{TransactionListBig-dUBjAacV-DC5_6EqD.js → TransactionListBig-D_Jw9Ip2-Bz8jw08Q.js} +5 -5
  164. package/dist/assets/{TransactionListPage-x0r04hx4-ByjUdu-s.js → TransactionListPage-B2yWm7eA-DCySOEer.js} +2 -2
  165. package/dist/assets/{TransactionVendorDetailPage-BqjeDf6Q-Dzq8RIOd.js → TransactionVendorDetailPage-Dr5C4-7q-BPGPWJM6.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-LppLtT6A-9tQ3RVxi.js → TransferDrawerPage-BnEVH7Mc-C6QWMjAo.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-DNoQLXPn-DtJgqzkX.js → TreasuryOverviewPage-C927Rdkg-PWkTzy8N.js} +1 -1
  168. package/dist/assets/{TreasuryPromoPage--MgysW-J-BnZiQCLe.js → TreasuryPromoPage-C6D3bF2f-xmypxDfH.js} +1 -1
  169. package/dist/assets/{TreasuryStatementsPage-DRPB8HzF-D1pupcJw.js → TreasuryStatementsPage-BE54gWl6-BusQnftI.js} +1 -1
  170. package/dist/assets/{TreasuryTaxLetterPage-BeeNFRtm-BSH1fBvD.js → TreasuryTaxLetterPage-BaHut8Wc-DaO1lvfz.js} +2 -2
  171. package/dist/assets/{TrendChart-C7DgNHh6-CJUZv0E3.js → TrendChart-BI4Tz813-BMzjSOb0.js} +1 -1
  172. package/dist/assets/{TrendWithTransactions-CpQPkCN4-C20sTqz7.js → TrendWithTransactions-BicIDSlC-GPxD5Pyy.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-f9xrtur3-C6VmI6RW.js → UncategorizedAccountsMappingPage-sbn4Sdr2-CCtQxv0E.js} +5 -5
  174. package/dist/assets/{UnitIntegrationPage-SiS8CA0g-CWR3OzFU.js → UnitIntegrationPage-CZUyjeh5-DYAwrSQY.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-Djnl6dYH-B9X_EH8P.js → UploadAdditionalDocumentOverlay-4AWDV_HK-CxD_HluI.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-CYwD3yQ8-C90N1LpP.js → Vendor2FAPopup-C_PmEAQ7-BaU4ZlJ1.js} +1 -1
  177. package/dist/assets/{VendorACHDetailsPage-ChZp1Db0-Cse3K9q8.js → VendorACHDetailsPage-DMMoCytX-D-f3jOPl.js} +1 -1
  178. package/dist/assets/{VendorDetailPage-CG0SxxIa-DRDl0JtE.js → VendorDetailPage-CLFKkF8I-DlccPRJ1.js} +1 -1
  179. package/dist/assets/VendorDomesticWireDetailsPage-WxmpwlTS-CXFWxa5o.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-DQs8RP_2-BUbnv_T9.js → VendorFiling1099EditablePage-CrWrhHZl-MLHVoFXe.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-XaE6ddOQ-rVweCi-_.js → VendorFirstReviewPage-C6MnbIan-CvuNZRdM.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CT75sZ0O-CdoJJkNf.js → VendorInternationalWireDetailsPage-CzPRK4E2-DP27a23P.js} +1 -1
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BBYmlLxN-CGwvkONg.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-C9NkRN0p-B0pCAjM_.js → VendorsAccountsSection-CVh1n81R-CZE2h2vy.js} +1 -1
  185. package/dist/assets/{VerifyDevice-c6uTgDIl-CbEOfzzD.js → VerifyDevice-BHocExfO-CXvB8GAp.js} +1 -1
  186. package/dist/assets/{VideoPlayer-BgTXP1p7-Cluk8mf7.js → VideoPlayer-9rYRtSLf-C_MG4aUQ.js} +2 -2
  187. package/dist/assets/VideoPopup-D1o92dj6-Dti5suvC.js +31 -0
  188. package/dist/assets/{WarningsDrawerPage-BS-TFvBs-DNJve9qV.js → WarningsDrawerPage-CzufXgaN-BVjYF7DU.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-CSVQF6vO-BffDIt1S.js → ZeniAccountDetailPage-ZZ3Ra-Jf-_49Q_UUx.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-BVGsjSB2-BZPNsiNG.js → ZeniAccountListViewPage-Cxid0mfh-Bo45T4Gx.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-B1l8Hjdg-CBpgN60Q.js → ZeniAccountNavBarPieces-DDc-xph4-CzcxivOl.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-s-QGT-pZ-4BJMfYD4.js → ZeniAccountPromoPage-YIYFkPIB-YhnencbA.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-CqXokSq4-D67zlWge.js → ZeniAccountSetupPage-BJ9UJ0dP-yNigxq0M.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-_f5jw1U0-Cm_sE86z.js → ZeniCopyright-CztmWsFm-x7y7hEtI.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-yvd98l69-CXQir1uN.js → ZeniTransferAmountSlider-g9qU5Lsq-BdpWeRuR.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-DcIDYSUN.js → add-to-wallet-DgdBD8_G-CnbN5S25.js} +1 -1
  197. package/dist/assets/{analytics-A_-qSDYO.js → analytics-C6bOaJY9.js} +1 -1
  198. package/dist/assets/{analyticsHelper-BvohFLdK-Dzhl4b0m.js → analyticsHelper-D4lKCWjQ-7uZfvraO.js} +1 -1
  199. package/dist/assets/{analyticsHelper-z7zDW-m3.js → analyticsHelper-Dyr99-JR.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-Bjs-Qn41.js → arrow-south-east-round-PEovUgvH-D0tcq0ac.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-DwSG-0Tc.js → auto-transfer-rule-mbafm5D3-C5MrpFJF.js} +1 -1
  202. package/dist/assets/{chartTypes-h1GkAvwh-FT7wGKaw.js → chartTypes-BPPSjkhb-H7A_cnp3.js} +1 -1
  203. package/dist/assets/{commonDimensions-7B20r1RL-_hVmC3-Q.js → commonDimensions-Ds75pRzR-DJ4H9OI5.js} +1 -1
  204. package/dist/assets/{constants-BJHEKrOg.js → constants-DNQWEIo3.js} +1 -1
  205. package/dist/assets/{core-CIAE9Iou.js → core-BiYEzgTE.js} +1 -1
  206. package/dist/assets/{dash.all.min-OQiut6fg.js → dash.all.min-CNiNGlQC.js} +1 -1
  207. package/dist/assets/{detailCommon-C28aeDGm-BwKr3Jwq.js → detailCommon-DdZdfmYT-DWQ_1h8d.js} +5 -5
  208. package/dist/assets/{downloadPdf-D1MhyCE3-BRAULud8.js → downloadPdf-B8UMaJCC-BA2fFFfC.js} +1 -1
  209. package/dist/assets/{empty-qC9xuHfK.js → empty-B0QxjPHg.js} +1 -1
  210. package/dist/assets/{empty-Cz51lwOs.js → empty-D0VQVmJ6.js} +1 -1
  211. package/dist/assets/{epic-DhKV_nq7.js → epic-BPfIZ-JM.js} +1 -1
  212. package/dist/assets/{gift-box-Cmt9OgIZ-C3WoTp93.js → gift-box-Cmt9OgIZ-DZtTQChg.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BJxMLkUg.js → graphic-no-data-l-DU4J8fDt-D9COe3MR.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-D-qWdRKa.js → graphic-no-data-net-burn-l-CzmycA0m-CnFblD9c.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-WPUTSbks.js → handshake-BPg58FML-Dk4MbD0e.js} +1 -1
  216. package/dist/assets/{index-4PNYlcwA.js → index-BBJ8MbHB.js} +9 -9
  217. package/dist/assets/{index-DhrgV_ix.js → index-BLOT0kav.js} +1 -1
  218. package/dist/assets/{index-DRnHG-3E.js → index-BWdq4kfG.js} +1 -1
  219. package/dist/assets/{index-CGQmgJEE.js → index-Bl0eTNht.js} +1 -1
  220. package/dist/assets/{index-MXpgXI6y.js → index-CmMi38cf.js} +1 -1
  221. package/dist/assets/{index-Bu7tM8jp.js → index-D66eZF3S.js} +1 -1
  222. package/dist/assets/{index-Dvl7ZPqE.js → index-QkeEXb1H.js} +1 -1
  223. package/dist/assets/{lexical-D0mgjaqy.js → lexical-Cbl76XZt.js} +1 -1
  224. package/dist/assets/{liveblocks-B2g7ROdB.js → liveblocks-BstIT-4Z.js} +1 -1
  225. package/dist/assets/{lottie-DvUF1pax.js → lottie-Dcr3TlBE.js} +1 -1
  226. package/dist/assets/mapLoadingInProgressToTreeNode-DGRrn6kh-B7ARKarP.js +1 -0
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DtwKYRnC-Caj3kiPo.js → mapSectionWithAcOnlyToTreeNode-rrJBbsC8-DldkvgD3.js} +1 -1
  228. package/dist/assets/mapSpacerToTreeNode-CWvamMX2-8qhsm047.js +1 -0
  229. package/dist/assets/mapTimeframeBalancesToTreeNode-DfQk4Tsr-CLPrV0Gx.js +1 -0
  230. package/dist/assets/mapTimeframeBalancesToTreeNode-_jEVk1uh-Dt-fMHUy.js +1 -0
  231. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-lBQd2IWW.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-BVNM6n_o.js} +1 -1
  232. package/dist/assets/{mui-o4KTDVYm.js → mui-CqcpY1UR.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-CPwel8vo.js → page-detail-CWX5S47F-KNgKNFoz.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-CywL4kIK.js → radio-default-CiSgisfh-yEV1b0CM.js} +1 -1
  235. package/dist/assets/{react-BCcPfS1c.js → react-4Ya91sN5.js} +1 -1
  236. package/dist/assets/{react-Z5v0eeyD.js → react-B4eK6Gcb.js} +1 -1
  237. package/dist/assets/{react-NUTeTPEN.js → react-BPBfJ6wZ.js} +1 -1
  238. package/dist/assets/{react-CXz3KePA.js → react-BR4cTFeR.js} +1 -1
  239. package/dist/assets/{react-BYU6BCD1.js → react-CAF4_aM2.js} +1 -1
  240. package/dist/assets/{react-CCHDJHXq.js → react-CG2AEOc2.js} +1 -1
  241. package/dist/assets/{react-BSMWc32-.js → react-CHCFBd-l.js} +2 -2
  242. package/dist/assets/{react-lMeFMTFb.js → react-COBWBcIx.js} +1 -1
  243. package/dist/assets/{recharts-BJmPBfq4.js → recharts-bDaLwU4I.js} +1 -1
  244. package/dist/assets/{sentry-CjZuZb_k.js → sentry-CTfRDee5.js} +1 -1
  245. package/dist/assets/{shield-DOlUxcFf-DKVN6gSI.js → shield-DOlUxcFf-CaZu4NEg.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-CkjRB0sJ-DDXgenlP.js +1 -0
  247. package/dist/assets/{toChartData-BYQCR1Q4-DFPuCktO.js → toChartData-CMi2WgAy-Bk_h1ue0.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-BQ2O_9lU.js → transaction-placeholder-CpOwZAMG-DpKoIbbu.js} +1 -1
  249. package/dist/assets/{uploadAttachment-Cs2BAs2F-D_wyMmah.js → uploadAttachment-B4ddYCCL-B4kq7cBL.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-CVPftMJd.js → uploadReceipts-CPw64UYa-DdOlSolA.js} +1 -1
  251. package/dist/assets/{url-caPnqlhh.js → url-BPLyW2rO.js} +1 -1
  252. package/dist/assets/{url-BjWWFI3O.js → url-DI6ZTkbp.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-D6HBn4oj.js → useLongPress-GCK2COYQ-DwbMzQIX.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-C1bodntP.js → usp-line-BBd1wKwW-CG6D_gsM.js} +1 -1
  255. package/dist/assets/{utils-BdW9S11I.js → utils-BI6ira9J.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-DJnPqdxc.js → zeni-epic-state-n7oqKrUc.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +2 -2
  259. package/dist/assets/AccountInfoPage-CDn5K_o2-641sWKgU.js +0 -18
  260. package/dist/assets/CustomerOnboardingContainerPage-qmrLtjkH-BEltfCv2.js +0 -1
  261. package/dist/assets/CustomerOnboardingProductSuitePage-CEOJEMdY-ntP-LOfn.js +0 -202
  262. package/dist/assets/MagicLinkACHDetailsPage-DtxKOlmX-C3DvZH5g.js +0 -1
  263. package/dist/assets/MagicLinkDomesticWireDetailsPage-C7DsI3GD-DonhhvUC.js +0 -1
  264. package/dist/assets/MagicLinkInternationalWireDetailsPage-BQtq93Cv-Cdv7ebZp.js +0 -1
  265. package/dist/assets/MailingDetailsSection-CMekdUCQ-xJE41G8i.js +0 -21
  266. package/dist/assets/ReimbursementApprovalRuleDetailPage-gUzCi41q-KVZqQggT.js +0 -24
  267. package/dist/assets/StatementItem-BMV39A0D-BrJFdPY2.js +0 -31
  268. package/dist/assets/VendorDomesticWireDetailsPage-Dfawpwuo-BLDa-BWv.js +0 -1
  269. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CBKqnkvK-Bir8wvug.js +0 -1
  270. package/dist/assets/VideoPopup-BD0vmbkL-D5UO4z6F.js +0 -31
  271. package/dist/assets/mapLoadingInProgressToTreeNode-B5fs_QGb-BbA7RFsu.js +0 -1
  272. package/dist/assets/mapSpacerToTreeNode-BufNagSk-TTaGXpmE.js +0 -1
  273. package/dist/assets/mapTimeframeBalancesToTreeNode-BHbBvkxK-C7-N1YyL.js +0 -1
  274. package/dist/assets/mapTimeframeBalancesToTreeNode-BOahnk__-RnE09Z0i.js +0 -1
  275. package/dist/assets/toCOABalancesWithID-DScSc4rG-Bzsy78A1.js +0 -1
@@ -1,4 +1,4 @@
1
- import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-4PNYlcwA.js";import{a as j}from"./sentry-CjZuZb_k.js";import{n as r}from"./mui-o4KTDVYm.js";import{FA as je,bT as be}from"./zeni-epic-state-DJnPqdxc.js";import{f as fe}from"./VideoPopup-BD0vmbkL-D5UO4z6F.js";import{M as v}from"./usp-line-BBd1wKwW-C1bodntP.js";import"./liveblocks-B2g7ROdB.js";import"./core-CIAE9Iou.js";import"./recharts-BJmPBfq4.js";import"./lottie-DvUF1pax.js";import"./analytics-A_-qSDYO.js";import"./lexical-D0mgjaqy.js";import"./utils-BdW9S11I.js";import"./VideoPlayer-BgTXP1p7-Cluk8mf7.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]="1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf",i._sentryDebugIdIdentifier="sentry-dbid-1adced5d-55ee-4f2c-b26e-c88b5d7fc1bf")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-BBJ8MbHB.js";import{a as j}from"./sentry-CTfRDee5.js";import{n as r}from"./mui-CqcpY1UR.js";import{FA as je,bT as fe}from"./zeni-epic-state-n7oqKrUc.js";import{f as be}from"./VideoPopup-D1o92dj6-Dti5suvC.js";import{M as v}from"./usp-line-BBd1wKwW-CG6D_gsM.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./VideoPlayer-9rYRtSLf-C_MG4aUQ.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]="548aa480-41ac-4615-a425-b22af6e6f359",i._sentryDebugIdIdentifier="sentry-dbid-548aa480-41ac-4615-a425-b22af6e6f359")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -58,9 +58,9 @@ import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,a
58
58
  align-items: center;
59
59
  text-align: start;
60
60
  box-sizing: border-box;
61
- `,b=r(ge)`
61
+ `,f=r(ge)`
62
62
  color: ${i=>i.theme.colors.champion};
63
- `,f=r(ue)`
63
+ `,b=r(ue)`
64
64
  color: ${i=>i.theme.colors.champion};
65
65
  `,y=r(N)`
66
66
  color: ${i=>i.theme.colors.champion};
@@ -81,4 +81,4 @@ import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,a
81
81
  margin: ${s.sp3} auto;
82
82
  max-width: 772px;
83
83
  color: ${i=>i.theme.colors.hero};
84
- `,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(Q,{})}),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(V,{windowSize:o,children:[e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.simplestText.bold}),e.jsx(b,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.aiPoweredText.bold}),e.jsx(b,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(f,{children:t.multiLevelApprovalText.bold}),e.jsx(b,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},_e=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:W,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:K,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,A=le(h?.fetchStatus.fetchState),re=je(P.loggedInUserRoleMap),w=be(P.loggedInUserRoleMap)&&!re,oe=!!o?.isReimbursementTOSAccepted,I=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?I?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{A==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[A,C,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:W,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:se.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:U}):e.jsx(ke,{children:U}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:I&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{_e as default};
84
+ `,t=F.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=F.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.simplestText.bold}),e.jsx(y,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(Q,{})}),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(V,{windowSize:o,children:[e.jsxs(_,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.simplestText.bold}),e.jsx(f,{children:t.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.aiPoweredText.bold}),e.jsx(f,{children:t.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(Q,{})}),e.jsxs(p,{children:[e.jsx(b,{children:t.multiLevelApprovalText.bold}),e.jsx(f,{children:t.multiLevelApprovalText.regular})]})]})]}),e.jsx(q,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},_e=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:W,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:K,onBackClick:X,onSetupReimbursementSuccess:C,onClickMenuIcon:Y})=>{const P=ne(),[ee,ie]=j.useState(!1),[te,R]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,A=le(h?.fetchStatus.fetchState),re=je(P.loggedInUserRoleMap),w=fe(P.loggedInUserRoleMap)&&!re,oe=!!o?.isReimbursementTOSAccepted,I=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?I?t.employeeAcceptPromoText:t.employeePendingPromoText:t.promoText;j.useEffect(()=>{A==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[A,C,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(be,{onCancelClick:()=>{ie(!1)},videoUrl:W,"data-testid":a("remi-promo-page-video-popup")}):null,te===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:t.title,backgroundColor:se.colors.grey4,onBackClick:X,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:Y,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:U}):e.jsx(ke,{children:U}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:I&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.createTerms1,e.jsx(d,{href:t.terms.tosUrl,linkText:t.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),t.terms.terms2,e.jsx(d,{href:t.terms.privacyPolicyUrl,linkText:t.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),t.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:t.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:t.orText}),e.jsx(u,{variant:"primary",label:t.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[t.terms.setupTerms1,e.jsx(d,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(d,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(d,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(d,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,t.terms.terms3]})]})})]})]})};export{_e as default};
@@ -1,4 +1,4 @@
1
- import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-4PNYlcwA.js";import{a as o}from"./sentry-CjZuZb_k.js";import{n as i}from"./mui-o4KTDVYm.js";import{bJ as mt}from"./zeni-epic-state-DJnPqdxc.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Djnl6dYH-B9X_EH8P.js";import"./liveblocks-B2g7ROdB.js";import"./core-CIAE9Iou.js";import"./recharts-BJmPBfq4.js";import"./lottie-DvUF1pax.js";import"./analytics-A_-qSDYO.js";import"./lexical-D0mgjaqy.js";import"./utils-BdW9S11I.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]="cd89d792-d0be-4486-9264-a05cd1342321",e._sentryDebugIdIdentifier="sentry-dbid-cd89d792-d0be-4486-9264-a05cd1342321")}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:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!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(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.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:d?.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:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.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()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-BBJ8MbHB.js";import{a as o}from"./sentry-CTfRDee5.js";import{n as i}from"./mui-CqcpY1UR.js";import{bJ as mt}from"./zeni-epic-state-n7oqKrUc.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-4AWDV_HK-CxD_HluI.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="38b28ca9-803d-49eb-9943-0595538fdd1b",e._sentryDebugIdIdentifier="sentry-dbid-38b28ca9-803d-49eb-9943-0595538fdd1b")}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:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!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(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.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:d?.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:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.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()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.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,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-4PNYlcwA.js";import{a as b}from"./sentry-CjZuZb_k.js";import{G5 as K}from"./zeni-epic-state-DJnPqdxc.js";import{u as Q}from"./ReviewOverlay-n3lZIztC-Jt6HA3yk.js";import"./liveblocks-B2g7ROdB.js";import"./core-CIAE9Iou.js";import"./recharts-BJmPBfq4.js";import"./mui-o4KTDVYm.js";import"./lottie-DvUF1pax.js";import"./analytics-A_-qSDYO.js";import"./lexical-D0mgjaqy.js";import"./utils-BdW9S11I.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]="4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda",e._sentryDebugIdIdentifier="sentry-dbid-4eda3aa5-9d94-41e1-b1a1-0ff87fea1fda")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.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:g,currentSubTab:y}=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,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{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"}:{}}},N={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:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(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:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=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)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,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?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(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,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-BBJ8MbHB.js";import{a as b}from"./sentry-CTfRDee5.js";import{G5 as K}from"./zeni-epic-state-n7oqKrUc.js";import{u as Q}from"./ReviewOverlay-BvPN7IKD-BVyGsnOK.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./mui-CqcpY1UR.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="8c36dfc8-2682-4715-ae9d-bfeacca4bae2",e._sentryDebugIdIdentifier="sentry-dbid-8c36dfc8-2682-4715-ae9d-bfeacca4bae2")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.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:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[m,_]=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===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,E=()=>{const{title:d,description:C}=Y(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,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"}:{}}},N={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:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(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:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=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)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=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?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
@@ -1,4 +1,4 @@
1
- import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-4PNYlcwA.js";import{n as d}from"./mui-o4KTDVYm.js";import{a as s}from"./sentry-CjZuZb_k.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]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}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{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-BBJ8MbHB.js";import{n as d}from"./mui-CqcpY1UR.js";import{a as s}from"./sentry-CTfRDee5.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]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}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{d as ee,q as de,ca as xe,a8 as ye,V as o,an as we,cb as te,ab as _e,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-4PNYlcwA.js";import{a as u,w as ue}from"./sentry-CjZuZb_k.js";import{n as d}from"./mui-o4KTDVYm.js";import{R as O,I as Be}from"./CollapsableReportTable-CrR91Kpi-DnJZSUDi.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]="4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef",e._sentryDebugIdIdentifier="sentry-dbid-4e393ee3-ccff-4f96-973c-ad5cfa9bd0ef")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=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}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(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:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(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(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),w=await h.arrayBuffer();Ce(w,y)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Le=d.div`
1
+ import{d as ee,q as de,ca as xe,a8 as ye,V as o,an as we,cb as te,ab as _e,y as D,aO as $e,o as n,F as oe,cc as ke,cd as ve,ce as Ce,cf as je,cg as Ie,al as he,ch as Se,ag as Ne,aA as X,bB as De,c as f,aS as Oe,ak as Pe,at as Fe}from"./index-BBJ8MbHB.js";import{a as u,w as ue}from"./sentry-CTfRDee5.js";import{n as d}from"./mui-CqcpY1UR.js";import{R as O,I as Be}from"./CollapsableReportTable-xkNXkjfh-CuBOzrbM.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]="0a475346-66d6-449d-9d64-7f961d310dec",e._sentryDebugIdIdentifier="sentry-dbid-0a475346-66d6-449d-9d64-7f961d310dec")}catch{}})();const V=oe.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Ae=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}),Te=e=>e!=null?{start_date:e.startDate.format(V),end_date:e.endDate.format(V)}:void 0;function Ee(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:Ae(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Te(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(Ee(a)))}`;try{const h=await ke({urlEndPoint:l,authParams:r,fileType:a.statementFileType});if(h.ok){const y=ve(h.headers,t.defaultFileName),w=await h.arrayBuffer();Ce(w,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{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-4PNYlcwA.js";import{a as T,w as K}from"./sentry-CjZuZb_k.js";import{n as _}from"./mui-o4KTDVYm.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-DJnPqdxc.js";import{m as z,l as q}from"./analyticsHelper-BvohFLdK-Dzhl4b0m.js";import{x as Ne}from"./ReportTableViewSelector-BlpUjTMl-C-RA5eDL.js";import{a as se,p as Me}from"./TimeRangeSwitcher-COHAPH9b-d1DuuIDi.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-BXSkHN5Y-DtM__aUW.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-gRH0FIa6-e2777Hoq.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-CrR91Kpi-DnJZSUDi.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-DtwKYRnC-Caj3kiPo.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-BHbBvkxK-C7-N1YyL.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-Dscp66eK-lBQd2IWW.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-B5fs_QGb-BbA7RFsu.js";import"./liveblocks-B2g7ROdB.js";import"./core-CIAE9Iou.js";import"./recharts-BJmPBfq4.js";import"./lottie-DvUF1pax.js";import"./analytics-A_-qSDYO.js";import"./lexical-D0mgjaqy.js";import"./utils-BdW9S11I.js";import"./TimeframeSwitcher-5ql0bSzz-Bs-WyJqF.js";import"./page-detail-CWX5S47F-CPwel8vo.js";import"./AccountRow-pJ59k4-J-BFmtHL3N.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]="4d272a03-b6a6-4914-aa33-325f0d73050e",e._sentryDebugIdIdentifier="sentry-dbid-4d272a03-b6a6-4914-aa33-325f0d73050e")}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=M("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??M("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=M("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(Le(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 Te(s)===!0&&i.push(j({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:M("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=M("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(j({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($e({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(j({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(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.div`
1
+ import{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz as Se,o as w,aQ as we,m as ye,y as B,bM as Ce,c as S,C as A,aA as X,O as xe,aS as Oe,as as Re,bI as Ae}from"./index-BBJ8MbHB.js";import{a as T,w as K}from"./sentry-CTfRDee5.js";import{n as _}from"./mui-CqcpY1UR.js";import{bg as Z,EH as Be,EQ as ve,ER as E,ES as Le,ET as Te,EU as Pe,EV as Ie,EW as ke,EX as ee,EY as te}from"./zeni-epic-state-n7oqKrUc.js";import{m as z,l as q}from"./analyticsHelper-D4lKCWjQ-7uZfvraO.js";import{x as Ne}from"./ReportTableViewSelector-BPliEsuo-CZegsDsW.js";import{a as se,p as Me}from"./TimeRangeSwitcher-jct2_5PE-DPu4jgs4.js";import{M as Fe}from"./TimeframeSwitcherWithToggle-Cl6ISBIz-3_smJQH4.js";import{DownloadOverlayButton as Ee}from"./DownloadOverlay-c57lEf_V-BH-A5hnp.js";import{I as je,R as M,x as ne}from"./CollapsableReportTable-xkNXkjfh-CuBOzrbM.js";import{D as oe,T as ae,C as j,L as $e,g as ie}from"./mapSectionWithAcOnlyToTreeNode-rrJBbsC8-DldkvgD3.js";import{s as Y}from"./mapTimeframeBalancesToTreeNode-DfQk4Tsr-CLPrV0Gx.js";import{d as Ve,l as De}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-DCb9paz3-BVNM6n_o.js";import{d as ze}from"./mapLoadingInProgressToTreeNode-DGRrn6kh-B7ARKarP.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";import"./TimeframeSwitcher-BK-qliOX-BjbSBToW.js";import"./page-detail-CWX5S47F-KNgKNFoz.js";import"./AccountRow-BM3xLbeh-DwBWMEiu.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]="75593ffb-d21e-47b0-8c1c-21911f14af42",e._sentryDebugIdIdentifier="sentry-dbid-75593ffb-d21e-47b0-8c1c-21911f14af42")}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=M("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??M("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=M("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(Le(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 Te(s)===!0&&i.push(j({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:M("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=M("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(j({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($e({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(j({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(j({calculatedSection:u,numOfBalances:d,title:a.sections[i],isLastNode:!0,config:t}))}}),{config:t,headerNodes:o?[p]:[],contentNodes:l}}const Q={contentPaddingLeft:new B(S[0],S[0],S[0]),contentPaddingRight:new B(S[3],S[3],S[8])},Qe=_.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 Je({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]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(h==="small"||h==="medium-compact"),V="name+balances_actual",F=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=>E(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=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(f=>E(f));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(f=>E(f));break}}return m.length>0&&m.find(f=>f.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:F,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||!X(x,e)||g===!0){const f=Xe(e,m,v,g);$(e),C(f)}else{const f=We(c,m,e,v);C(f)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const f=m+135;k(f)},he=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:he}),r.jsx(Qe,{height:R,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:Q.contentPaddingLeft.value(h),right:Q.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 Xe=(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}},Ke=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 Je({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]=T.useState(void 0),[x,$]=T.useState(void 0),v=!(f==="small"||f==="medium-compact"),V="name+balances_actual",F=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=>E(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=>E(me)));break}case"cash_flow":{m=e.calculatedSections.investingActivitiesTotal.additionalBalances.map(h=>E(h));break}case"balance_sheet":{m=e.sections.equity.additionalBalances.map(h=>E(h));break}}return m.length>0&&m.find(h=>h.balanceType==="this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent"};T.useEffect(()=>{const m={reportId:e.reportId,bookCloseDate:e.bookCloseDate,mode:F,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||!X(x,e)||g===!0){const h=Xe(e,m,v,g);$(e),C(h)}else{const h=We(c,m,e,v);C(h)}},[u,e,g]);const[R,k]=T.useState(5),N=m=>{const h=m+135;k(h)},fe=m=>m?.trackPageLoaded(Ke(e));return c!=null?r.jsxs(r.Fragment,{children:[r.jsx(xe,{analytics:a,onLoad:fe}),r.jsx(Qe,{height:R,children:r.jsx(je,{backgroundColor:new Oe(s.colors.grey4),rootNodes:c,type:V,compareMode:O(),isSticky:{isStickyHeader:v,isStickyName:v},treeNodePadding:{left:Q.contentPaddingLeft.value(f),right:Q.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 Xe=(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}},Ke=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{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz 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{q as W,d as G,F as y,av as ge,V as r,bL as _e,aM as P,bA as be,bz 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 Qt(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)};T.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[$,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,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 F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="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(Ee,{defaultOptions:h,analytics:e.analytics,referrer:L(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=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(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(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(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(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(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(L(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 J=(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 L=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=K.memo(Je,(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&&X(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 Qt(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)};T.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[$,v]=K.useState(x.includes("more_detailed")?"detailed":"more_detailed"),V={selectedFormat:$,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 F=e.fetchState;if(i.fetchState!=="Completed"&&(F==="In-Progress"||F==="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(Ee,{defaultOptions:f,analytics:e.analytics,referrer:L(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=T.useRef(null),{selectedReportAndTimeframeFetchState:n}=e,d=["month","quarter","year"],p=(s,c)=>{e.analytics?.trackCompareFilterChange(s==="this_period_vs_last_period_percent"?"percentage":"amount",L(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(Fe,{timeframe:{allowedTimeframes:d,selectedTimeframe:e.selectedTimeframe,onTimeframeSelectionChanged:s=>{e.analytics?.trackTimeframeSwitch(z(s),L(e.selectedReport)),e.onTimeframeSelectionChanged?.(s,!0)}},toggle:{label:y.getLocalizedStrings().compareSwitchLabel,isOn:e.isCompareMode,onValueChanged:s=>{e.analytics?.trackCompareMode(s,L(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(Me,{firstMonthOfFY:i.firstMonthOfFY,timeframe:e.selectedTimeframe,timeframeTicks:e.allTimeframeTicks,selection:{selectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange),highlightedOfSelectedTicks:J(e.allTimeframeTicks,e.selectedCOABalancesRange)},onClick:(s,c)=>{e.analytics?.trackDateRangeFilterChange(L(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(L(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 J=(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 L=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=K.memo(Je,(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&&X(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{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-4PNYlcwA.js";import{a as P,w as ee}from"./sentry-CjZuZb_k.js";import{n as x}from"./mui-o4KTDVYm.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-h1GkAvwh-FT7wGKaw.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-DScSc4rG-Bzsy78A1.js";import{V as Z}from"./toChartData-BYQCR1Q4-DFPuCktO.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-BJmPBfq4.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]="c1558961-1804-4557-966f-edcc729dfd44",e._sentryDebugIdIdentifier="sentry-dbid-c1558961-1804-4557-966f-edcc729dfd44")}catch{}})();const X={legendLabelMarginLeft:new xe(2,2),legendLabelMarginRight:new xe(I[3],I[4])},Fe=x.div`
1
+ import{d as A,V as a,F as D,q as de,b1 as Q,c as I,b as M,aV as J,o as m,aM as Ae,p as g,aA as Ve,y as xe,bJ as ge,ak as R,bK as V,b8 as F}from"./index-BBJ8MbHB.js";import{a as P,w as ee}from"./sentry-CTfRDee5.js";import{n as x}from"./mui-CqcpY1UR.js";import{p as b,d as ae,y as W,b as N,g as re,u as T}from"./chartTypes-BPPSjkhb-H7A_cnp3.js";import{i as K,h as oe,c as G}from"./toCOABalancesWithID-CkjRB0sJ-DDXgenlP.js";import{V as Z}from"./toChartData-CMi2WgAy-Bk_h1ue0.js";import{H as Te,I as te,X as le,Y as ne,J as ce,L as pe,K as se,M as me,N as fe}from"./recharts-bDaLwU4I.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]="1ca0f0cc-20eb-4052-8719-66e74f3026a6",e._sentryDebugIdIdentifier="sentry-dbid-1ca0f0cc-20eb-4052-8719-66e74f3026a6")}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{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-4PNYlcwA.js";import{a as Z}from"./sentry-CjZuZb_k.js";import{n as a}from"./mui-o4KTDVYm.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-DJnPqdxc.js";import{t as rn,o as dn}from"./LowBalancePopup-T5Ms2v-E-DO0_djob.js";import{S as W}from"./LabeledText-Tn7u-Ek3-DOKeDUtN.js";import"./liveblocks-B2g7ROdB.js";import"./core-CIAE9Iou.js";import"./recharts-BJmPBfq4.js";import"./lottie-DvUF1pax.js";import"./analytics-A_-qSDYO.js";import"./lexical-D0mgjaqy.js";import"./utils-BdW9S11I.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]="7043bc79-5205-4466-9209-ca68f33d66d2",e._sentryDebugIdIdentifier="sentry-dbid-7043bc79-5205-4466-9209-ca68f33d66d2")}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,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{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(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=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(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.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},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.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-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.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=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(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?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.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}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),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,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!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(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{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(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),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(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!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(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):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(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),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(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,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:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:M("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:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):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(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
1
+ import{q as Tt,av as Ct,y as u,e$ as Dt,f0 as It,f1 as Pt,V as t,f2 as kt,f3 as le,f4 as Mt,f5 as At,f6 as Bt,f7 as Ft,aK as M,f8 as Rt,aM as j,f9 as Lt,fa as Ae,fb as Be,fc as Fe,b as H,fd as O,p as S,fe as zt,ff as E,fg as _,fh as Nt,fi as Ot,bQ as Re,o as n,aO as Et,c as s,F as _t,ah as Wt,b$ as Zt,a as Vt,B as Yt,fj as qt,cf as Gt,ak as se,al as ce,fk as Ht,fl as Ut,bg as Kt,l as Qt,b7 as Jt,fm as Xt,ap as et,bH as en,ag as tt,br as tn,fn as nn}from"./index-BBJ8MbHB.js";import{a as Z}from"./sentry-CTfRDee5.js";import{n as a}from"./mui-CqcpY1UR.js";import{bo as Le,bm as ze,bH as I,bN as an,Fp as ln,bL as oe,bP as on}from"./zeni-epic-state-n7oqKrUc.js";import{t as rn,o as dn}from"./LowBalancePopup-Dd9HLWlh-qIEjt8fN.js";import{S as W}from"./LabeledText-yhm8qxrA-B5O06POj.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="90598be2-0c2e-4efa-9896-bdb91bc40e32",e._sentryDebugIdIdentifier="sentry-dbid-90598be2-0c2e-4efa-9896-bdb91bc40e32")}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,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},sn={sectionTitle:new Vt("h6Medium","h5Medium")},{dateFormat:Ne,common:{currency:v,labels:Oe,edit:cn,strings:{empty:h}},spendManagement:{billPay:mn}}=_t.getLocalizedStrings(),{billDetails:i,paymentDetails:Ee}=mn,_e=({attachment:e})=>{const[y,f]=Z.useState(!1),A=()=>{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(Ht,{title:e.fileName,file:e,onCrossClick:()=>A(),setShowFullScreenView:f}):null,t.jsx(En,{children:t.jsx(Ut,{contentType:e.contentType})})]})},sa=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:f,currentTenant:A,isInternationalPaymentShaVsOurEnabled:T,isLocalCurrencyEnabled:at,style:it,analytics:w,isRecurringBillsFeatureEnabled:lt,isApprovalRequiredForMarkAsPaid:ot,isDetectInsufficientFundsEnabled:rt,billId:x,onClickEdit:me,discardBillDetailsFromLocalStore:pe,saveBillDetails:ue,discardOutsideZeniPaymentData:dt,updateBillDetailSaveBillCode:ye,redirectToBillsScreen:he,onAttachmentClick:J,retryPayment:st})=>{const d=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(d),z=e.saveStatus,X=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,o=Dt(T,at,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),C=Ne.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},N={amount:o?.method.includes("international")===!0?Pt(fe,o):o?.fee.amount??0,currencyCode:v.currencyCode,currencySymbol:v.currencySymbol},[ct,ge]=Z.useState(!1),[mt,xe]=Z.useState(!1),be=()=>ge(!1),pt=()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),ge(!0)},ut=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${i.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Ln,{size:d,children:t.jsx(Rn,{})})]}):kt(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(z?.fetchState==="Completed"||X?.fetchState==="Completed")&&(pe(),ye(),he())},[z,X,he,pe,ye]);const $=e.billPayInfo?.stage,P=e.billPayInfo?.billStatus,V=e.billPayInfo?.billPaymentStatus,yt=e.billPayInfo?.billPaymentRefundStatus,te=$?.code==="paid"?$:P?.code=="approved"&&V?.code?V:P,ht=e.billPayInfo?.isRefundInitiated===!0?yt:P?.code=="approved"&&V?.code?V:P,ne=()=>{me()},we=()=>{me()},Y=e.paymentDetailsSection?.paymentDate,ae=le(o?.method??""),$e=ae.replace("Same Day",""),ft=e.isCollectToAccountInfoFromVendorContact?t.jsx(Mt,{paymentTypeLabel:$e,onClick:pt}):i.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-N.amount:p.amount,o?.fee.currencyCode??ze.currencyCode,o?.fee.currencySymbol??ze.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=()=>{dt(),xe(!1)},k=g&&($?.code!=null?$.code==="draft"||P?.code==="approved":!0),b=k&&!ot,je=We(b,q,e.isBillMarkedForRetry),wt=()=>g?b?void 0:i.paymentOutsideZeni.reviewInfo:o?.method!=null&&o.method.includes(I)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&T&&ee===v.currencyCode?Xt(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0,ie=rt&&e.paymentDetailsSection!=null?At(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?i.paymentOutsideZeni.offline:le(o.method);if(w.trackBillPaySendForApproval(St,l.format(Ne.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}),ie!=null){const Ce=$?.code??"draft",De=P?.code??"",Ie=e.isRecurring?["Recurring"]:["One-Time"],Pe=e.invoiceNumber??"",ke=nn(c.loggedInUser),Me=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";je===i.scheduleBill?w.trackLowBalanceAccountSchedule(Ce,De,Ie,Pe,ke,Me):je===i.sendForApproval&&w.trackLowBalanceAccountSentForApproval(Ce,De,Ie,Pe,ke,Me)}}},Se=()=>{Te===!0&&G(!1),e.isBillMarkedForRetry===!0?(st(),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,G]=Z.useState(!1);return t.jsxs($n,{children:[mt?t.jsx(rn,{onCancel:bt,onProceedForMarkAsPaid:xt,saveDetailsFetchState:z?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(dn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Se,onCancelClick:()=>{G(!1),ne()},onClickAway:()=>{G(!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(A.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(C)??"",paymentType:$e,amount:M("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:be})}),t.jsxs(vn,{windowSize:d,style:it,children:[d==="small"?t.jsxs(Fn,{windowSize:d,children:[t.jsx(Ue,{onClick:we,"data-testid":j("review-detail-nav-bar-small-back")}),t.jsx(Ye,{windowSize:d,children:i.oneLastLook})]}):t.jsx(Bn,{"data-testid":j("review-details-nav-bar-back"),children:t.jsx(Ue,{onClick:we})}),d!=="small"?t.jsx(Sn,{children:t.jsx(Ye,{windowSize:d,children:i.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(Tn,{children:[t.jsxs(Cn,{children:[t.jsx(qn,{}),t.jsxs(Dn,{children:[t.jsx(Pn,{children:i.duplicateBillPayWarning}),t.jsxs(In,{children:[i.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":j("review-detail-attachment-button"),onClick:()=>J(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[i.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Zn,{children:[t.jsx(Yn,{children:i.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Lt(l);return l!=null?t.jsx(Vn,{children:nt.includes(d)?t.jsxs(qe,{windowSize:d,children:[t.jsxs(kn,{children:[t.jsxs(Mn,{children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsx(K,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?i.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:M("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(_n,{"data-testid":j("review-detail-mobile-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsxs(K,{children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(qe,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(_e,{attachment:l.attachments[0]}):t.jsx(Ke,{children:t.jsx(Qe,{})}),t.jsxs(Wn,{"data-testid":j("review-detail-info"),onClick:()=>J(l.id,l.billPayInfo.stage.code),children:[t.jsx(K,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?i.invoiceNo:null," ",l.documentId]})}),t.jsxs(K,{style:{width:"25%"},children:[l.dueDate!=null?i.due:null," ",l.dueDate?.format(C)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:M("0,0[.]00",l.amount)})]}),t.jsx(Xe,{children:r!=null?Ae.includes(r.code)?t.jsx(Be,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(An,{children:[t.jsx(Ge,{children:i.pay}),t.jsx(He,{children:t.jsx(Fe,{amount:gt,integerStyles:H.largeMedium.cssObject,decimalStyles:H.smallMedium.cssObject})}),t.jsx(Ge,{children:i.to}),t.jsx(He,{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(W,{label:{label:i.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?zt(e.paymentDetailsSection.withdrawFrom,d):h,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:S.brandColorGoldDark},additionalInfoLabel:ie})}),t.jsx(U,{})]}),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(W,{label:{label:i.paymentMethod,width:L},style:{width:"auto"},value:le(o?.method??""),additionalInfoLabel:wt()})}),t.jsx(U,{}),!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(W,{label:{label:i.paymentDate,width:L},style:{width:"auto"},value:Y.format(C),additionalInfoLabel:`${i.estimatedArrival}${oe(on(Y.toDate(),[0,6],o?.maxPeriod.value??0).toDateString()).format(C)} - (${ae.length>0?`${ae} `:""}${i.deliveryTimeLabel} = ${o?.maxPeriod.value??"0"} ${i.deliveryTimeUnits})`})}),t.jsx(U,{})]}):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(W,{label:{label:i.paymentTo,width:L},style:{width:"auto"},value:ut??"",additionalInfoLabel:ft})}),g||lt?t.jsxs(t.Fragment,{children:[t.jsx(U,{}),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(W,{label:{label:i.paymentType,width:L},style:{width:"auto"},value:Ot(e.isRecurring,g,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Nt(d,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:d,children:[t.jsxs(bn,{children:[t.jsx(yn,{children:i.total}),t.jsx(Re,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(fn,{children:[t.jsxs(Ve,{children:[t.jsx(de,{children:o.method.includes(I)&&ee!==v.currencyCode?Ee.conversionAmountColon:Oe.invoiceAmount}),t.jsx(re,{children:M("0,0[.]00",{amount:p.amount-N.amount,currencySymbol:N.currencySymbol})})]}),t.jsxs(Ve,{children:[t.jsx(de,{children:Ee.transactionFee}),t.jsx(re,{children:M("0,0[.]00",{amount:N.amount,currencySymbol:N.currencySymbol})})]}),t.jsx(hn,{}),t.jsxs(un,{children:[t.jsx(de,{children:Oe.total}),t.jsx(re,{children:M("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:H.h6Medium.cssObject,decimalStyles:H.standardMedium.cssObject})})]})}):null]}),t.jsx(Et,{cancelBtn:{label:k&&!b?i.paymentOutsideZeni.markAsPaid:i.editBill,onClick:k&&!b?ve:ne,style:{width:Ze(!1,k,b,q,d)}},primaryBtn:{label:We(b,q,e.isBillMarkedForRetry),isLoading:z?.fetchState==="In-Progress"||X?.fetchState==="In-Progress",onClick:b?ve:()=>{vt&&ie!=null?G(!0):Se()},style:{width:Ze(!0,k,b,q,d)}},rightSideComponent:k&&!b&&z.fetchState!=="In-Progress"?t.jsx(Gn,{windowSize:d,children:t.jsx(Re,{style:{color:S.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:cn,placement:"top",children:t.jsx(Un,{onClick:ne,"data-testid":j("review-detail-edit-bill-button"),children:t.jsx(Hn,{})})})}):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(zn,{children:[i.internationalText1,t.jsx(Nn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:i.internationalTerms}),i.internationalText2]}):null})]})},We=(e,y,f)=>e?i.paymentOutsideZeni.markAsPaid:f===!0?i.retryPayment:y?i.sendForApproval:i.scheduleBill,Ze=(e,y,f,A,T)=>f?128:y&&!e&&T==="small"?"auto":A?165:m.footerButtonWidth.value(T),pn=a(en)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-4PNYlcwA.js";import{n as t}from"./mui-o4KTDVYm.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]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}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 C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{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:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(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:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{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,{}),V=t.div`
1
+ import{q as B,V as i,aM as m,o as r,aO as L,y as d,L as P,a as C,B as I,p as s,ak as j,cy as W,m as R,ag as b,bf as D,c as n,eg as G,u as _,iR as q,k0 as A}from"./index-BBJ8MbHB.js";import{n as t}from"./mui-CqcpY1UR.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]="f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53",e._sentryDebugIdIdentifier="sentry-dbid-f4f7d4af-ca63-4f9f-bfde-b10dc5d90c53")}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 C("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:x,showFooter:S,footerProps:{primaryButton:z,cancelButton:T,hideCancel:k},onCloseOverlay:E,onCloseReviewItem:M})=>{const a=B();return i.jsxs(V,{children:[i.jsx(X,{windowSize:a,children:i.jsx(Y,{children:i.jsx(Z,{windowSize:a,children:i.jsx(ee,{children:i.jsx(ie,{onClick:E,"data-testid":m("review-overlay-close",e)})})})})}),i.jsxs(H,{windowSize:a,children:[i.jsxs(J,{windowSize:a,children:[i.jsx(K,{children:i.jsx(N,{windowSize:a,children:e})}),i.jsx(Q,{isError:g.isError,windowSize:a,children:g.content})]}),i.jsx(U,{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:()=>M(o.id),"data-testid":m("review-close",o.id)}):null,i.jsxs(te,{children:[i.jsxs(ne,{children:[i.jsx(de,{children:O(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:!k}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{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,{}),V=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{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-4PNYlcwA.js";import{n as l}from"./mui-o4KTDVYm.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]="f880c637-61c4-47f9-a13f-f4e73109bbc2",e._sentryDebugIdIdentifier="sentry-dbid-f880c637-61c4-47f9-a13f-f4e73109bbc2")}catch{}})();const{hyphen:d}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
1
+ import{eL as f,eM as h,V as s,bQ as g,o as i,aM as n,F as x,am as y,ag as c}from"./index-BBJ8MbHB.js";import{n as l}from"./mui-CqcpY1UR.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]="f880c637-61c4-47f9-a13f-f4e73109bbc2",e._sentryDebugIdIdentifier="sentry-dbid-f880c637-61c4-47f9-a13f-f4e73109bbc2")}catch{}})();const{hyphen:d}=x.getLocalizedStrings().common.strings,b=l.div``,m=l.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-4PNYlcwA.js";import{a as f}from"./sentry-CjZuZb_k.js";import{n as U}from"./mui-o4KTDVYm.js";import{FT as Ze,FU as Xe}from"./zeni-epic-state-DJnPqdxc.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-CkqvmnzR-ChIiKEV4.js";import"./liveblocks-B2g7ROdB.js";import"./core-CIAE9Iou.js";import"./recharts-BJmPBfq4.js";import"./lottie-DvUF1pax.js";import"./analytics-A_-qSDYO.js";import"./lexical-D0mgjaqy.js";import"./utils-BdW9S11I.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="face273d-1d85-484c-8396-7076848dc04a",e._sentryDebugIdIdentifier="sentry-dbid-face273d-1d85-484c-8396-7076848dc04a")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
1
+ import{aN as K,ig as ee,gB as fe,ew as we,ih as Le,a8 as Je,ii as Me,cB as Ve,cC as _e,V as a,ab as Fe,cm as Pe,cn as Be,co as Ne,aO as qe,ij as Re,ik as We,F as ge,a9 as he,il as me,im as Ue,cO as ze,q as $e,iB as Ge,gG as re,c as R,p as Se,y as De,cE as Ke,io as He,ip as Qe,iq as Ye,o as _}from"./index-BBJ8MbHB.js";import{a as f}from"./sentry-CTfRDee5.js";import{n as U}from"./mui-CqcpY1UR.js";import{FT as Ze,FU as Xe}from"./zeni-epic-state-n7oqKrUc.js";import{i as et,r as tt,n as lt,o as at}from"./ScheduleSequenceTable-Dd4Ep_c0-CndtHY8m.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="af7faad5-06d3-43ed-9772-0f6c9c61c07c",e._sentryDebugIdIdentifier="sentry-dbid-af7faad5-06d3-43ed-9772-0f6c9c61c07c")}catch{}})();const W={labelWidth:new De(160,160,160),depCategoryLabelWidth:new De(200,280,280)},st=U.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-4PNYlcwA.js";import{a as D}from"./sentry-CjZuZb_k.js";import{n as P}from"./mui-o4KTDVYm.js";import{FT as Qe,FU as Ye,bL as Xe}from"./zeni-epic-state-DJnPqdxc.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-CkqvmnzR-ChIiKEV4.js";import"./liveblocks-B2g7ROdB.js";import"./core-CIAE9Iou.js";import"./recharts-BJmPBfq4.js";import"./lottie-DvUF1pax.js";import"./analytics-A_-qSDYO.js";import"./lexical-D0mgjaqy.js";import"./utils-BdW9S11I.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]="702e2cfe-05cc-4b5f-8e78-af476d2db523",e._sentryDebugIdIdentifier="sentry-dbid-702e2cfe-05cc-4b5f-8e78-af476d2db523")}catch{}})();const U={labelWidth:new We(160,160,160)},at=P.div`
1
+ import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC as Me,V as a,ab as Ve,cm as Pe,cn as _e,co as Fe,aO as Be,ij as $e,ik as Ne,F as Se,a9 as ie,il as he,im as Ue,cO as qe,q as ze,gG as pe,c as X,p as Re,y as We,io as Ke,ip as Ge,iq as He,o as w}from"./index-BBJ8MbHB.js";import{a as D}from"./sentry-CTfRDee5.js";import{n as P}from"./mui-CqcpY1UR.js";import{FT as Qe,FU as Ye,bL as Xe}from"./zeni-epic-state-n7oqKrUc.js";import{i as Ze,r as et,n as tt,o as lt}from"./ScheduleSequenceTable-Dd4Ep_c0-CndtHY8m.js";import"./liveblocks-BstIT-4Z.js";import"./core-BiYEzgTE.js";import"./recharts-bDaLwU4I.js";import"./lottie-Dcr3TlBE.js";import"./analytics-C6bOaJY9.js";import"./lexical-Cbl76XZt.js";import"./utils-BI6ira9J.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]="dbc6b1f7-b64e-4775-b111-9d7c818f2c8e",e._sentryDebugIdIdentifier="sentry-dbid-dbc6b1f7-b64e-4775-b111-9d7c818f2c8e")}catch{}})();const U={labelWidth:new We(160,160,160)},at=P.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -18,7 +18,7 @@ import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  margin: ${w.sp4} ${w.sp8} ${w.sp0} ${w.sp8};
21
- `,B=(e,s)=>`${e}.${s}`;function nt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:b,allMonthOptions:o,uncategorizedAccounts:m,selectedAccount:r,selectedClass:y,selectedDate:L,selectedMonths:A,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:f,allowCreateSchedule:v,onCreateSchedule:u,onDelete:le,onMarkAsComplete:_}){const{resetField:q}=qe(),z=B(e,"scheduleExpenseCategory"),R=B(e,"scheduleClass"),ae=B(e,"startDate"),$=B(e,"postingDate"),C=B(e,"months"),S=Se.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(N=>N.qboId===d)[0]?.qboId,ne=d=>i.filter(N=>N.classId===d)[0]?.accountingClassNumber,W={valueContainer:d=>({...d,overflow:"unset"})},J=ze(),E=ot({startDate:s.baseTransaction.date,endDate:s.baseTransaction.date.add(1,"year")}),h=()=>{q($)},n=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",x=d=>[m.expense?.qboId,m.income?.qboId].includes(d),T=()=>{s.jeScheduleId!=null&&le(s.jeScheduleId)},K=s.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(st,{children:[a.jsx(tt,{isUpdating:p==="In-Progress",status:s.status.code,jeScheduleId:s.jeScheduleId,allowCreateSchedule:v,onDelete:T,onMarkAsComplete:_,onCreateSchedule:u}),a.jsx(ie,{controller:v===!0,children:a.jsxs(at,{children:[a.jsx(pe,{isDisabled:K.includes("debit_category_deleted")?void 0:f,isLoading:!1,label:{label:S.expenseCategory,width:U.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?Re.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:z,placeholder:S.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},disableCurrentOption:x,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(pe,{isDisabled:f,isLoading:!1,label:{label:S.class,width:U.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:R,placeholder:S.classPlaceholder,valueToId:d=>ne(d),defaultValue:{selectedOption:y,allOptions:b},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(Ke,{label:{label:S.startMonth,width:U.labelWidth.value(J)},monthSelectorField:{name:ae,placeholder:S.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:f,monthsAndYears:E},isDisabled:f}),a.jsx(Z,{}),a.jsx(lt,{label:{label:S.postingDate,width:U.labelWidth.value(J)},isDisabled:f,dayOfMonthField:{placeholder:S.postingDatePlaceholder,name:$,defaultValue:{type:n,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Ge,{label:{label:S.months,width:U.labelWidth.value(J)},singleSelectNumericField:{name:C,isDisabled:f,placeholder:S.monthsPlaceholder,defaultValue:{selectedOption:A!=null?o[A-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:d=>!!d.selectedOption}}})]})}),a.jsx(ie,{controller:v===!1,children:a.jsx(He,{text:S.scheduleMarkedAsCompleted})})]})}const ot=e=>{const s={},p=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(p).fill(l).map((i,b)=>{const o=i-b,m=o.toString();let r=[];if(o===t){const y=e.startDate.month();r=e.startDate.localeData().monthsShort(),y!==0&&r.splice(0,y)}else r=Xe(`${o}-01-01`).localeData().monthsShort();return s[m]=r,m}).reverse(),months:s}},dt=P.div`
21
+ `,B=(e,s)=>`${e}.${s}`;function nt({sectionId:e,jeScheduledTransaction:s,updateStatus:p,allAccountOptions:l,allAccountList:t,allClassList:i,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:m,selectedAccount:r,selectedClass:y,selectedDate:L,selectedMonths:A,selectedPostingDay:O,lastDayOfMonth:k,isDisabled:f,allowCreateSchedule:v,onCreateSchedule:u,onDelete:le,onMarkAsComplete:_}){const{resetField:q}=qe(),z=B(e,"scheduleExpenseCategory"),R=B(e,"scheduleClass"),ae=B(e,"startDate"),$=B(e,"postingDate"),C=B(e,"months"),S=Se.getLocalizedStrings().jeSchedules.scheduleDetails.scheduleDetailsSection,se=d=>t.filter(N=>N.qboId===d)[0]?.qboId,ne=d=>i.filter(N=>N.classId===d)[0]?.accountingClassNumber,W={valueContainer:d=>({...d,overflow:"unset"})},J=ze(),E=ot({startDate:s.baseTransaction.date,endDate:s.baseTransaction.date.add(1,"year")}),h=()=>{q($)},n=O==null&&k==null?void 0:k===!0?"lastDayOfMonth":"day",x=d=>[m.expense?.qboId,m.income?.qboId].includes(d),T=()=>{s.jeScheduleId!=null&&le(s.jeScheduleId)},K=s.scheduledJournalEntry.flatMap(d=>d.error);return a.jsxs(st,{children:[a.jsx(tt,{isUpdating:p==="In-Progress",status:s.status.code,jeScheduleId:s.jeScheduleId,allowCreateSchedule:v,onDelete:T,onMarkAsComplete:_,onCreateSchedule:u}),a.jsx(ie,{controller:v===!0,children:a.jsxs(at,{children:[a.jsx(pe,{isDisabled:K.includes("debit_category_deleted")?void 0:f,isLoading:!1,label:{label:S.expenseCategory,width:U.labelWidth.value(J)},groupedSingleSelectField:{customPlaceholderColor:K.includes("debit_category_deleted")?Re.brandColorGoldDark:void 0,shouldShowChevronIcon:!1,name:z,placeholder:S.expenseCategoryPlaceholder,valueToId:d=>se(d),defaultValue:{selectedOption:r,allOptions:l},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},disableCurrentOption:x,style:{borderTopLeftRadius:X[2],borderTopRightRadius:X[2]}}),a.jsx(Z,{}),a.jsx(pe,{isDisabled:f,isLoading:!1,label:{label:S.class,width:U.labelWidth.value(J)},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:R,placeholder:S.classPlaceholder,valueToId:d=>ne(d),defaultValue:{selectedOption:y,allOptions:g},registerOptions:{required:!0,validate:d=>!!d.selectedOption},customStyleConfig:W},style:{borderTopLeftRadius:X[0],borderTopRightRadius:X[0]}}),a.jsx(Z,{}),a.jsx(Ke,{label:{label:S.startMonth,width:U.labelWidth.value(J)},monthSelectorField:{name:ae,placeholder:S.startMonthPlaceholder,defaultValue:L,showDownChevron:!1,isDisabled:f,monthsAndYears:E},isDisabled:f}),a.jsx(Z,{}),a.jsx(lt,{label:{label:S.postingDate,width:U.labelWidth.value(J)},isDisabled:f,dayOfMonthField:{placeholder:S.postingDatePlaceholder,name:$,defaultValue:{type:n,dayOfMonth:O},onSaveClick:()=>{},onCancelClick:h}}),a.jsx(Z,{}),a.jsx(Ge,{label:{label:S.months,width:U.labelWidth.value(J)},singleSelectNumericField:{name:C,isDisabled:f,placeholder:S.monthsPlaceholder,defaultValue:{selectedOption:A!=null?o[A-1]:void 0,allOptions:o},registerOptions:{required:!0,validate:d=>!!d.selectedOption}}})]})}),a.jsx(ie,{controller:v===!1,children:a.jsx(He,{text:S.scheduleMarkedAsCompleted})})]})}const ot=e=>{const s={},p=e.endDate.year()-e.startDate.year()+1,l=e.endDate.year(),t=e.startDate.year();return{years:Array(p).fill(l).map((i,g)=>{const o=i-g,m=o.toString();let r=[];if(o===t){const y=e.startDate.month();r=e.startDate.localeData().monthsShort(),y!==0&&r.splice(0,y)}else r=Xe(`${o}-01-01`).localeData().monthsShort();return s[m]=r,m}).reverse(),months:s}},dt=P.div`
22
22
  display: flex;
23
23
  flex-direction: column;
24
24
  width: 100%;
@@ -34,4 +34,4 @@ import{aN as F,ig as Y,gB as ke,ew as Ie,ih as Ae,a8 as Je,ii as we,cB as Le,cC
34
34
  `,rt=P.div`
35
35
  display: flex;
36
36
  justify-content: center;
37
- `,me="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",ut=Se.getLocalizedStrings(),{common:I,jeSchedules:{scheduleDetails:ht}}=ut;function Ot({analytics:e,controllerUserDetails:s,expenseAutomationSelectedPeriod:p,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,onMarkAsComplete:m,onNavigateBack:r,onEditAmount:y,onJELinkClick:L,onSave:A,onDelete:O,onDetailPageChange:k,onViewLinkedJE:f,onTransactionClick:v,removeJeScheduleTransactionKey:u}){const[le,_]=D.useState(!1),q=F(l.updateStatus.fetchState),z=F(l.selectedJEScheduleTransaction?.status.code),R=F(l.deleteStatus.fetchState),[ae,$]=D.useState(!1),C=l.scheduleDetailsLocalData.prepaid_expenses,S=F(C.jeScheduleDetails.length),se=F(C.selectedDate),ne=F(C.selectedDayOfMonth),[W,J]=D.useState(!0),E=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,n=l.selectedJEScheduleTransaction,x=Qe(s.controllers),T=Ye(s.controllerUserIds),K={onOkClick:()=>{_(!1),r()},onCancelClick:()=>{_(!1)}},d=c=>{const g=n?.scheduledJournalEntry[c];h!=null&&g!=null&&n!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...Ue(h)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...he(g)},vendorName:E!=null?E.name:I.strings.hyphen,controllerEmails:x,controllerUserIds:T}),L(c)},N=(c,g)=>{const j=n?.scheduledJournalEntry[g];h!=null&&j!=null&&n!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:he(j),controllerEmails:x,controllerUserIds:T}),f(c)};D.useEffect(()=>{q==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&n!=null&&e.trackScheduleDetailsSaved(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),i===!0&&n?.jeScheduleTransactionKey!=null&&z==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(n.jeScheduleTransactionKey,{month:p.month,year:p.year}),r())},[z,l.selectedJEScheduleTransaction?.status.code,e,r,p,q,l.updateStatus,u,t,i,n,h,E,x,T]),D.useEffect(()=>{R==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[R,l.deleteStatus,r]);const G=ke(l.accountListNestedAccountHierarchy),H=Ie(l.classListNestedAccountHierarchy),Q=Ae(t),re=D.useRef(),M=Je({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,G,H,Q,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,G,H,Q,o.entityAutoCompleteView)}),oe=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&re.current?.(we(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const De=(c,g)=>{b.onAutoCompleteInputChange?.(c,"vendor"),re.current=g},ye=M.handleSubmit(()=>{A(l.selectedJEScheduleTransaction?.jeScheduleId)}),Ce=async(c,g)=>{const j=g[ee].vendor;if(c.includes("vendor")){const de=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&de?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(Oe=>Oe.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??I.strings.empty,value:V.id}])}}const je=c.includes("amount");if(k(g,je),c.includes("amount")){const de=c.split(".")[1],V=parseInt(de);$(!0),y(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{const c=M.watch((g,{name:j})=>{j!=null&&g!=null&&Le(()=>Ce(j,g))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(S!==C.jeScheduleDetails.length||se!==C.selectedDate||ne!==C.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,G,H,Q,o.entityAutoCompleteView)[te],keepDirty:!1}),$(!1))},[C.jeScheduleDetails.length,C.selectedDate,C.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const ue=(Me(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&C.jeScheduleDetails.length>0,ge=()=>{ue===!0?_(!0):(h!=null&&n!=null&&e.trackScheduleDetailsCanceled(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),r())},be=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},ve=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&n!=null&&e.trackScheduleDetailsMarkedAsCompleted(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),m()},[e,n,m,t,h,E,x,T]),xe=D.useCallback(c=>{h!=null&&n!=null&&e.trackScheduleDetailsDeleted(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),O(c)},[e,n,O,t,h,E,x,T]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(c=>c.error??[]).filter(c=>!!c)??[])?.includes("vendor_deleted")===!0?oe?.defaultOptions.find(c=>c.value===oe?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{onNavigateBack:ge,onTransactionClick:be,title:Te??I.strings.empty}),a.jsx(ct,{children:a.jsx(Ve,{...M,children:a.jsxs("form",{style:{width:"100%"},id:fe(me),onSubmit:ye,children:[a.jsx(mt,{vendorLoadOptions:De,vendorField:oe,vendorSearchAutoCompleteActions:b,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:G,allClassOptions:H,allMonthOptions:Q,allowCreateSchedule:W,onEditAmount:y,onDelete:xe,onJELinkClick:d,onViewLinkedJE:N,onMarkAsComplete:Ee,onCreateSchedule:ve}),le===!0?a.jsx(Pe,{titleComponent:a.jsx(Fe,{children:I.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(_e,{children:I.confirmationPopup.discardDescription}),primaryButtonText:I.confirmationPopup.discard,secondaryButtonText:I.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,ue===!0?a.jsx(Be,{formId:fe(me),primaryBtn:{label:I.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:I.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{_(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({title:e,onNavigateBack:s,onTransactionClick:p}){return a.jsx(Ne,{title:e,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:s,onLaunchClick:p,style:{zIndex:3}})}function mt({vendorField:e,vendorLoadOptions:s,vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:b,allMonthOptions:o,allowCreateSchedule:m,onCreateSchedule:r,onMarkAsComplete:y,onEditAmount:L,onDelete:A,onJELinkClick:O,onViewLinkedJE:k}){const f=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(v=>v.error??[]).filter(v=>!!v)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(rt,{children:a.jsx(Ze,{errors:f,vendorLoadOptions:s,vendorField:e,vendorFieldName:B(ee,"vendor"),vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:ee,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:b,allMonthOptions:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:m,onCreateSchedule:r,onDelete:A,onMarkAsComplete:y,updateStatus:t.deleteStatus.fetchState}),a.jsx(ie,{controller:m===!0,children:a.jsx(et,{sectionId:te,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:L,onJELinkClick:O,onViewLinkedJE:k,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const fe=e=>`${e}_form`,ce=(e,s,p,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,b=i.selectedAccount,o=i.selectedVendor,m=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=b!=null?e.allAccountList.find(u=>u.accountId===b):void 0,y=i.selectedClass,L=y!=null?e.allClassList.find(u=>u.classId===y):void 0,A=i.selectedMonths,O=i.jeScheduleDetails.map(u=>({postingDate:u.postingDate,amount:u.amount.amount,runningBalance:u.runningBalance.amount,postingStatus:u.postingStatus,jeLink:u.jeLink.thirdPartyTransactionId})),k=i.selectedDayOfMonth,f=i.lastDayOfMonth,v=k==null&&f==null?void 0:f===!0?"lastDayOfMonth":"day";return{[ee]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:s},scheduleClass:{selectedOption:L?.classId,allOptions:p},startDate:i.selectedDate,months:{selectedOption:A,allOptions:l},vendor:{selectedOption:m?.id??o?.id,defaultOptions:$e(t,m??o)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{Ot as default};
37
+ `,me="scheduleDetailsPage",ee="scheduleDetailsSection",te="scheduleDetailsListSection",ut=Se.getLocalizedStrings(),{common:I,jeSchedules:{scheduleDetails:ht}}=ut;function Ot({analytics:e,controllerUserDetails:s,expenseAutomationSelectedPeriod:p,scheduleDetailsView:l,scheduleTab:t,usedInExpenseAutomation:i,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,onMarkAsComplete:m,onNavigateBack:r,onEditAmount:y,onJELinkClick:L,onSave:A,onDelete:O,onDetailPageChange:k,onViewLinkedJE:f,onTransactionClick:v,removeJeScheduleTransactionKey:u}){const[le,_]=D.useState(!1),q=F(l.updateStatus.fetchState),z=F(l.selectedJEScheduleTransaction?.status.code),R=F(l.deleteStatus.fetchState),[ae,$]=D.useState(!1),C=l.scheduleDetailsLocalData.prepaid_expenses,S=F(C.jeScheduleDetails.length),se=F(C.selectedDate),ne=F(C.selectedDayOfMonth),[W,J]=D.useState(!0),E=l.selectedJEScheduleTransaction?.vendor,h=l.selectedJEScheduleTransaction?.baseTransaction,n=l.selectedJEScheduleTransaction,x=Qe(s.controllers),T=Ye(s.controllerUserIds),K={onOkClick:()=>{_(!1),r()},onCancelClick:()=>{_(!1)}},d=c=>{const b=n?.scheduledJournalEntry[c];h!=null&&b!=null&&n!=null&&e.trackScheduleDetailsLinkJournalEntry({scheduleType:t,transaction:{...Ue(h)},scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:{...he(b)},vendorName:E!=null?E.name:I.strings.hyphen,controllerEmails:x,controllerUserIds:T}),L(c)},N=(c,b)=>{const j=n?.scheduledJournalEntry[b];h!=null&&j!=null&&n!=null&&e.trackScheduleDetailsViewJournalEntry({scheduleType:t,scheduleExpenseCategoryAndClass:{expenseCategory:n.jeDebit.account?.accountName??null,expenseClass:n.jeDebit.accountingClass?.className??null},journalEntryDetails:he(j),controllerEmails:x,controllerUserIds:T}),f(c)};D.useEffect(()=>{q==="In-Progress"&&l.updateStatus.fetchState==="Completed"&&(h!=null&&n!=null&&e.trackScheduleDetailsSaved(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),i===!0&&n?.jeScheduleTransactionKey!=null&&z==="draft"&&l.selectedJEScheduleTransaction?.status.code==="ongoing"&&u(n.jeScheduleTransactionKey,{month:p.month,year:p.year}),r())},[z,l.selectedJEScheduleTransaction?.status.code,e,r,p,q,l.updateStatus,u,t,i,n,h,E,x,T]),D.useEffect(()=>{R==="In-Progress"&&l.deleteStatus.fetchState==="Completed"&&r()},[R,l.deleteStatus,r]);const G=ke(l.accountListNestedAccountHierarchy),H=Ie(l.classListNestedAccountHierarchy),Q=Ae(t),re=D.useRef(),M=Je({mode:"all",reValidateMode:"onChange",defaultValues:ce(l,G,H,Q,o.entityAutoCompleteView),resetOptions:{keepDirtyValues:!0,keepErrors:!0},values:ce(l,G,H,Q,o.entityAutoCompleteView)}),oe=M.watch("scheduleDetailsSection.vendor");D.useEffect(()=>{o.entityAutoCompleteView.fetchState==="Completed"&&re.current?.(we(o.entityAutoCompleteView))},[o.entityAutoCompleteView.fetchState]);const De=(c,b)=>{g.onAutoCompleteInputChange?.(c,"vendor"),re.current=b},ye=M.handleSubmit(()=>{A(l.selectedJEScheduleTransaction?.jeScheduleId)}),Ce=async(c,b)=>{const j=b[ee].vendor;if(c.includes("vendor")){const de=j?.defaultOptions.map(V=>V.value);if(j?.selectedOption!=null&&de?.includes(j.selectedOption)!==!0){const V=o.entityAutoCompleteView.vendor.find(Oe=>Oe.id===j.selectedOption);V!=null&&M.setValue("scheduleDetailsSection.vendor.defaultOptions",[{label:V.name??I.strings.empty,value:V.id}])}}const je=c.includes("amount");if(k(b,je),c.includes("amount")){const de=c.split(".")[1],V=parseInt(de);$(!0),y(V,l.selectedJEScheduleTransaction?.jeScheduleId)}};D.useEffect(()=>{const c=M.watch((b,{name:j})=>{j!=null&&b!=null&&Le(()=>Ce(j,b))});return()=>{c.unsubscribe()}}),D.useEffect(()=>{(S!==C.jeScheduleDetails.length||se!==C.selectedDate||ne!==C.selectedDayOfMonth)&&ae===!0&&(M.resetField(te,{defaultValue:ce(l,G,H,Q,o.entityAutoCompleteView)[te],keepDirty:!1}),$(!1))},[C.jeScheduleDetails.length,C.selectedDate,C.selectedDayOfMonth]),D.useEffect(()=>{l.selectedJEScheduleTransaction?.status.code==="marked_as_completed"&&J(!1)},[l.selectedJEScheduleTransaction?.status.code]);const ue=(Me(M.formState.dirtyFields)||l.selectedJEScheduleTransaction?.status.code==="draft")&&C.jeScheduleDetails.length>0,be=()=>{ue===!0?_(!0):(h!=null&&n!=null&&e.trackScheduleDetailsCanceled(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),r())},ge=()=>{l.selectedJEScheduleTransaction!=null&&v({id:l.selectedJEScheduleTransaction?.baseTransaction.id,type:l.selectedJEScheduleTransaction?.baseTransaction.type})},ve=D.useCallback(()=>{J(!0)},[]),Ee=D.useCallback(()=>{h!=null&&n!=null&&e.trackScheduleDetailsMarkedAsCompleted(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),m()},[e,n,m,t,h,E,x,T]),xe=D.useCallback(c=>{h!=null&&n!=null&&e.trackScheduleDetailsDeleted(Y({jeScheduleTransaction:n,scheduleTab:t,transaction:h,vendor:E,controllerEmails:x,controllerUserIds:T})),O(c)},[e,n,O,t,h,E,x,T]),Te=(l.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(c=>c.error??[]).filter(c=>!!c)??[])?.includes("vendor_deleted")===!0?oe?.defaultOptions.find(c=>c.value===oe?.selectedOption)?.[0]?.label:l?.selectedJEScheduleTransaction?.vendor?.name;return a.jsxs(dt,{children:[a.jsx(pt,{onNavigateBack:be,onTransactionClick:ge,title:Te??I.strings.empty}),a.jsx(ct,{children:a.jsx(Ve,{...M,children:a.jsxs("form",{style:{width:"100%"},id:fe(me),onSubmit:ye,children:[a.jsx(mt,{vendorLoadOptions:De,vendorField:oe,vendorSearchAutoCompleteActions:g,vendorSearchAutoCompleteData:o,scheduleDetailsView:l,allAccountOptions:G,allClassOptions:H,allMonthOptions:Q,allowCreateSchedule:W,onEditAmount:y,onDelete:xe,onJELinkClick:d,onViewLinkedJE:N,onMarkAsComplete:Ee,onCreateSchedule:ve}),le===!0?a.jsx(Pe,{titleComponent:a.jsx(Fe,{children:I.confirmationPopup.discardTitle}),descriptionComponent:a.jsx(_e,{children:I.confirmationPopup.discardDescription}),primaryButtonText:I.confirmationPopup.discard,secondaryButtonText:I.confirmationPopup.cancel,proceedButtonVariant:"danger",action:K}):null,ue===!0?a.jsx(Be,{formId:fe(me),primaryBtn:{label:I.footer.save,style:{minWidth:"82px"},isLoading:l.updateStatus.fetchState==="In-Progress",isDisabled:l.updateStatus.fetchState==="In-Progress"},cancelBtn:{label:I.footer.cancel,shouldResetOnCancel:!0,onClick:()=>{_(!0)},style:{minWidth:"82px"}}}):null]})})})]})}function pt({title:e,onNavigateBack:s,onTransactionClick:p}){return a.jsx(Ne,{title:e,tooltipTextOnLaunch:ht.showTransactionTooltip,onBackClick:s,onLaunchClick:p,style:{zIndex:3}})}function mt({vendorField:e,vendorLoadOptions:s,vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,scheduleDetailsView:t,allAccountOptions:i,allClassOptions:g,allMonthOptions:o,allowCreateSchedule:m,onCreateSchedule:r,onMarkAsComplete:y,onEditAmount:L,onDelete:A,onJELinkClick:O,onViewLinkedJE:k}){const f=t.selectedJEScheduleTransaction?.scheduledJournalEntry.flatMap(v=>v.error??[]).filter(v=>!!v)??[];return t.selectedJEScheduleTransaction!=null?a.jsxs(it,{children:[a.jsx(rt,{children:a.jsx(Ze,{errors:f,vendorLoadOptions:s,vendorField:e,vendorFieldName:B(ee,"vendor"),vendorSearchAutoCompleteActions:p,vendorSearchAutoCompleteData:l,transaction:t.selectedJEScheduleTransaction.baseTransaction,vendor:t.selectedJEScheduleTransaction.vendor})}),a.jsx(nt,{sectionId:ee,jeScheduledTransaction:t.selectedJEScheduleTransaction,allAccountOptions:i,allAccountList:t.allAccountList,allClassList:t.allClassList,allClassOptions:g,allMonthOptions:o,uncategorizedAccounts:t.uncategorizedAccounts,lastDayOfMonth:t.scheduleDetailsLocalData.prepaid_expenses.lastDayOfMonth,selectedPostingDay:t.scheduleDetailsLocalData.prepaid_expenses.selectedDayOfMonth,selectedMonths:t.scheduleDetailsLocalData.prepaid_expenses.selectedMonths,isDisabled:t.selectedJEScheduleTransaction.jeScheduleId!=null&&t.selectedJEScheduleTransaction.status.code!=="marked_as_completed"&&t.selectedJEScheduleTransaction.status.code!=="draft"?"disabled":void 0,allowCreateSchedule:m,onCreateSchedule:r,onDelete:A,onMarkAsComplete:y,updateStatus:t.deleteStatus.fetchState}),a.jsx(ie,{controller:m===!0,children:a.jsx(et,{sectionId:te,totalAmount:t.selectedJEScheduleTransaction.baseTransaction.amount.amount,listFetchState:t.fetchState,scheduleJournalEntries:t.selectedJEScheduleTransaction.scheduledJournalEntry,hideMemoField:t.selectedJEScheduleTransaction.jeScheduleId==null,localData:t.scheduleDetailsLocalData.prepaid_expenses.jeScheduleDetails,uiState:t.uiState,onEditAmount:L,onJELinkClick:O,onViewLinkedJE:k,jeScheduleId:t.selectedJEScheduleTransaction.baseTransaction.id})})]}):null}const fe=e=>`${e}_form`,ce=(e,s,p,l,t)=>{const i=e.scheduleDetailsLocalData.prepaid_expenses,g=i.selectedAccount,o=i.selectedVendor,m=o!=null?t.vendor.find(u=>u.zeniId===o.id):void 0,r=g!=null?e.allAccountList.find(u=>u.accountId===g):void 0,y=i.selectedClass,L=y!=null?e.allClassList.find(u=>u.classId===y):void 0,A=i.selectedMonths,O=i.jeScheduleDetails.map(u=>({postingDate:u.postingDate,amount:u.amount.amount,runningBalance:u.runningBalance.amount,postingStatus:u.postingStatus,jeLink:u.jeLink.thirdPartyTransactionId})),k=i.selectedDayOfMonth,f=i.lastDayOfMonth,v=k==null&&f==null?void 0:f===!0?"lastDayOfMonth":"day";return{[ee]:{scheduleExpenseCategory:{selectedOption:r?.qboId,allOptions:s},scheduleClass:{selectedOption:L?.classId,allOptions:p},startDate:i.selectedDate,months:{selectedOption:A,allOptions:l},vendor:{selectedOption:m?.id??o?.id,defaultOptions:$e(t,m??o)},postingDate:{type:v,dayOfMonth:k}},[te]:O}};export{Ot as default};