@zeniai/web-app-ui 4.14.30-qa → 4.14.31-qa

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 (372) hide show
  1. package/dist/assets/{ACHDetailsPage-CQdbfxHV-CVfdxX3S.js → ACHDetailsPage-CFhoboVe-DcRe2nTt.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-jyNXVGMj-Df3oatFx.js → AIPerformancePage-DB-fTWME-DYZeuOnD.js} +1 -1
  3. package/dist/assets/AccountInfoPage-pEEhPqOb-B-Hd8VtG.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-eYEsv7ac-DDYvpmDy.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-EbQpyRJx-CBjiURZ4.js → AccountLockedInfoModal-jYWr_8TD-DcOOzUkE.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CK1QV13E-DZmItK8g.js → AccountReconDetailsDrawerPage-3Q0EPYhL-27wJMTjD.js} +2 -2
  7. package/dist/assets/{AccountRow-B3Sz6a-V-CTAgoDt8.js → AccountRow-CdgvnPG8-BR1hQ4Zy.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DJtz56-u-DZZMgyeG.js → AccountsPromoCardStack-DHo59LLN-ChbxyMzd.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-BDtxj9h6-CGRCP-Ov.js → AddAddressForCardDrawer-BzO1FXUa-kLdLeGkd.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Czepun8f-BSrXEfN0.js → AddToWalletPage-BfXFbHjk-CYPGe181.js} +1 -1
  11. package/dist/assets/{AddressRoutes-TFWvRoK1.js → AddressRoutes-XcDMlDlS.js} +1 -1
  12. package/dist/assets/{AddressScreen-TV5gX_gl.js → AddressScreen-DPPx0MfK.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-DzAVDq_i-ym_LOlxy.js → AgingReportsPage-C1hFq4KH-DN--gN3O.js} +8 -8
  14. package/dist/assets/{AiCfoScreen-D6K-vpzr.js → AiCfoScreen-30SW2q3w.js} +1 -1
  15. package/dist/assets/{AllUserItems-BEoRQT-v-B0L7dc_f.js → AllUserItems-B6pnKByY-DyP7v-cA.js} +5 -5
  16. package/dist/assets/{ApAgingDetailPage-55JdoIHh-DrarMtyY.js → ApAgingDetailPage-CxLVGnpY-BYGcfd1t.js} +8 -8
  17. package/dist/assets/{AppBasePage-CLye29uw-XKxIMpL1.js → AppBasePage-DiVxF606-AXI0aqhJ.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-CDawrmfz-CIsX5yBE.js → AppDrawerContent-B_EWsf8O-CMysKcTU.js} +5 -5
  19. package/dist/assets/{ApprovalRulesSettingsPage-BHUZdWCO-Dwb34rZQ.js → ApprovalRulesSettingsPage-HHjDp_NQ-jrLhlHCF.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DeL9nNI7-jiARVqmw.js → ArAgingChart-Ba4A-i2N-PODxdvyn.js} +4 -4
  21. package/dist/assets/{ArAgingDetailPage-CuG65EQs-DJsQVyGf.js → ArAgingDetailPage-prgcvsS4-BsTAVwTa.js} +1 -1
  22. package/dist/assets/{AttachmentView-C5anq6-B-B0oKrwit.js → AttachmentView-SsWJw4A8-RJr9hQhO.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-1PK_fwhP-DTycoTBO.js → BalancesInsightWithToolTip-DE6gDjGA-e_65zoZY.js} +4 -4
  24. package/dist/assets/{BankAccountSection-BUJoSOk8-CktP5_6B.js → BankAccountSection-B4jmT0lb-zwPodZbw.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-BQaoV2yQ-D2dPrb3a.js → BankAccountWarningSection-Bz2itMx0-BfZtVATK.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-DRDS5xzS-sJm12Xpi.js → BankConnectionsSettingsPage-BcVk7bTt-C3Wp_iZl.js} +9 -9
  27. package/dist/assets/{BillDetailPage-CtVVaqTN-Cs2maBN6.js → BillDetailPage-Dkqmi4H1-C6mDNSc2.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-BcknH4As.js → BillPayApprovalRoutes-CaSA1uSR.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-6GHCsDkX-BhEokdj1.js → BillPayApprovalRuleDetailPage-Blxlv3pa-BYAGbgwQ.js} +4 -4
  30. package/dist/assets/{BillPayApprovalRulesPage-QKjq-qVP-bPrJjJ_n.js → BillPayApprovalRulesPage-B_QwggJS-BveqhBul.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-_n9uoXTN-C-ItO23h.js → BillPayPromoPage-Bx2AXpWe-BrIbmhut.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-CrujOQ7A.js → BillPayRoutes-CMdKHc5T.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-DNYX24VA-xlmRW4oi.js → BillPaySetUpPage-CM7_DkHC-Bt5CjJNs.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-Btv3yiNs-8WC50UDB.js → BillingSettingsPage-DM0OIfxa-CKHUmPAw.js} +3 -3
  35. package/dist/assets/{BillsBulkReviewDrawerPage-BiLLeGke-JyRoZ7s-.js → BillsBulkReviewDrawerPage-C3xmQ7wz-Cf_j4N1J.js} +1 -1
  36. package/dist/assets/{BoxItem-Dqp4SNlI-CnJYfmyU.js → BoxItem-CvCo0wr6-BAtsmvg4.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-_8Wg_S5G-CBDfKOCi.js → BusinessVerificationPage-BAZmkR4a-BbYTLnZH.js} +3 -3
  38. package/dist/assets/{BusinessVerificationPageScreen-BSkh5puj.js → BusinessVerificationPageScreen-DVGxc_kT.js} +1 -1
  39. package/dist/assets/{BusyIndication-BZLVwIo8-D7x09Syx.js → BusyIndication-Cp8KWKB2-paVspSd6.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-12zyW5qQ-CZArd4_p.js → CardNumberSubText-DHtSIcZZ-CJNkVpEB.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-B8-TDuv8-BtBdmaco.js → CashbackDetailPage-CNS1FA6b-DNPbsy8R.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-Bdz5L2ko-B9HW8VJu.js → ChargeCardDetailPage-C4NeG7IM-Bqzrs3Tx.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-EuJ1VXck-C9ILrDfC.js → ChargeCardListPage-DNYiWaEf-D4WPR4qJ.js} +6 -6
  44. package/dist/assets/{ChargeCardListTable-SgjwYd8W-D2X3nHhv.js → ChargeCardListTable-DdnyzdFf-BLIVQeNK.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-BC2DkmZT-z-BJ1TRl.js → ChargeCardPaymentHistoryPage-CXlqzaUt-nlgSDdhG.js} +10 -10
  46. package/dist/assets/ChargeCardPromoPage-D4canPX9-CjFFR5oK.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-DtXgeUrQ.js → ChargeCardRoutes-DipRg107.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-ByLoLZE_-D5yhBe12.js → ChargeCardSetupPage-BtikPFOq-Ci06zFqY.js} +2 -2
  49. package/dist/assets/{ChargeCardStatementsPage-C4XdqPO1-B4JvhC1B.js → ChargeCardStatementsPage-RepWBbvJ-qZhzfjJs.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-D5X61CKc-DCVEIWOd.js → CheckDepositDrawerPage-BCqg3irO-CU861UMl.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-D7zD4-h0-CXEJdn3k.js → CollapsableReportTable-gy7Ue_fk-Cp0GdxMJ.js} +2 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-w86_5FXJ-BVS8U2VI.js → CompanyOfficerDetailsSection-BsCx7q-g-Bqu05vNe.js} +11 -11
  53. package/dist/assets/{CompanyPassportCard-tpE1lXug-aG1e_v_p.js → CompanyPassportCard-BbUWOs1U-CQapOMzG.js} +6 -6
  54. package/dist/assets/{CompanyPassportPage-bND99CJN-51EM3BS8.js → CompanyPassportPage-BnP2oA1U-DG-ray3n.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-DNHzvh3T.js → CompanyPassportScreen-Bsk4iSLd.js} +1 -1
  56. package/dist/assets/{CompleteProfile-B5W07hcs-BYS2Cw7x.js → CompleteProfile-TiRsm2Fm-Dmw9B9gd.js} +1 -1
  57. package/dist/assets/ConfettiBurst-D7J36hZf-DAmXS8qh.js +1 -0
  58. package/dist/assets/{ConnectionAuthScreen-C1ACdx6M.js → ConnectionAuthScreen-CdbJnza-.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-C96GWvku.js → ConstrainedInnerElement-CgdnMeoA-CpoLys2G.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CrQh8JCh-CdARK_ay.js → CreateOrEditVendorPage-Dihzr1D5-Df0a--du.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-BoVmLCHh-ClmStU3s.js → CreditCardPaymentDrawerPage-CZGzDuxC-CG7xBUFZ.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-D2azwi1T-Yce6ywvM.js → CurrencySelectField-BTAmIqPa-BOvsicp3.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-DxuEGe6X-DOVYYini.js → CustomerOnboardingActivationPage-MVI7kqIh-B52EVUog.js} +3 -3
  64. package/dist/assets/CustomerOnboardingAuthScreen-DO7d0gIb.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--CSEqEIM8.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DRGKainD-DRHsfYAC.js → CustomerOnboardingDetailPageSkeleton-CaI_0pCb-Dx2c__Yb.js} +8 -8
  67. package/dist/assets/CustomerOnboardingNoStepsPage-CO_c2COV-CcNi7DUF.js +66 -0
  68. package/dist/assets/{CustomerOnboardingPage-BXZSl2im-CdR09mXQ.js → CustomerOnboardingPage-BF0vuYaJ-CpeT13Rn.js} +16 -16
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-BJmYX0kI-DgmtQLkO.js → CustomerOnboardingProductSuitePage-BGFdLX1i-C7qSBsYV.js} +3 -3
  70. package/dist/assets/{CustomerOnboardingRoutes-BNk50EBa.js → CustomerOnboardingRoutes-BqTX1iyW.js} +1 -1
  71. package/dist/assets/{Dashboard-yhqyXPbZ-DD3l1FY2.js → Dashboard-Qjedd4r--DdmcDs7e.js} +26 -26
  72. package/dist/assets/{DashboardReportPage-BG4StCjY-BqArxOAD.js → DashboardReportPage-Deith_ON-BYNIuWwI.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-sZ-hP0Lz.js → DashboardRoutes-C3tqy16Q.js} +1 -1
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-C7DfUDio-CXRw7JSP.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-BZ1C0pHF.js → DefaultTenantHome-DTL7QcJH.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-5ZEPnNxa-5QBvNOk0.js → DepositAccTransactionItem-7kYotKov-C07q_etT.js} +7 -7
  77. package/dist/assets/{DepositAccTransactionListPage-BR8d0Kun-DoTQr_rp.js → DepositAccTransactionListPage-Bop4Uj5w-DYSx2RBP.js} +3 -3
  78. package/dist/assets/{DomesticWireDetailScreen-H_WuL4rG.js → DomesticWireDetailScreen-D_BfoPLh.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-wGIWvhgQ-uEZDY48j.js → DomesticWireDetailsPage-_TyXsqEx-jkwnoEUE.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-SLvxfa6B-BbI1muq1.js → DownloadOverlay-Cmd727bN-CUU7ZY9L.js} +14 -14
  81. package/dist/assets/{DrawerPage-CFdTV10k-BDAq-J1m.js → DrawerPage-DmGwfnGp-LTv4sDcy.js} +1 -1
  82. package/dist/assets/{DrawerScreen-DokbcyFi.js → DrawerScreen-DtF71b7B.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-C-Y62PJ0-OR5daMys.js → EditPeoplePage-YyluIC6R-CXdaDa7G.js} +5 -5
  84. package/dist/assets/{EditReimbursementDetailPage-BYpXof8e-DpqR0TKa.js → EditReimbursementDetailPage-DeMid2Ko-Bv-8Xabp.js} +14 -14
  85. package/dist/assets/EntityDetailPage-DPTSSZdS-oHoyHWu0.js +18 -0
  86. package/dist/assets/{EntityDetailRoutes-DPf_I5PV.js → EntityDetailRoutes-DYnivlwX.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-B2uG3-Zh-BNN-XEhG.js → EntitySummarySection-5NbutA8l-CQbl1YIH.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-CrtNuarm-DCl80aVX.js → ExpenseAutomationOverviewPage-CQ_3WluW-CLWld5W7.js} +6 -6
  89. package/dist/assets/{ExpenseAutomationPage-CWPnIMSu-DYb4-i2t.js → ExpenseAutomationPage-VuU4acYd-B7T-Dg4p.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-DUWDjNay.js → ExpenseAutomationRoutes-BlW2sTwn.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-CsI_DUc6-DXAWujAE.js → ExpressPayPage-DhoNmyC2-Bd-YVNzq.js} +10 -10
  92. package/dist/assets/{FeaturePreviewPage-B67a68N9-D61ej93i.js → FeaturePreviewPage-GSwhPxgP-CXXTQoUA.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-Bcvg8Bfv.js → FeaturePreviewScreen-CpHWA-St.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-CgjzMm02-glrhNO5E.js → FollowStepsSection-DaueHRo4-FQso0zsG.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-CIfK-0rd-COml45hA.js → GlobalReviewListPage-DG7_1HOT-_eh0o3Lh.js} +1 -1
  96. package/dist/assets/{InformationCardStack-qKld10kr-0nHm6M6u.js → InformationCardStack-zc-BxR7F-CH328-RF.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-Bbh77o6f-D3KyjkmI.js → InsightsCardStack-DxCA5sFh-Y8l4503l.js} +5 -5
  98. package/dist/assets/{InsightsSection-DgfCOO4F-D4slzBMJ.js → InsightsSection-BdFG3j3R-DjHyJY78.js} +7 -7
  99. package/dist/assets/{IntegrationsSettingsPage-BRQFeOLt-PsXcQlIc.js → IntegrationsSettingsPage-CaiL3kqS-CiO2l-pg.js} +3 -3
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-DPemNncS-DLnjaRZK.js → InternationalWireSwiftDetailsPage-BrQVSzeS-B8g9fXts.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-BOxXfIY5-B_1WnyJ0.js → InternationalWireVerificationPage-NaLnhW9C-Be5m5GNN.js} +10 -10
  102. package/dist/assets/{InviteFormPage-BbbPCdh--NZBdztJE.js → InviteFormPage-fjqv2l7h-CLLSBMJ2.js} +1 -1
  103. package/dist/assets/{InvitePageListView-DqfrAulo-DhRBOiF7.js → InvitePageListView-CQecQhxr-DHxSXSin.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-CgTpZp4M-BUUsiiJF.js → InvitePeoplePage-DAEBuOnk-CNuAu3aA.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-DZOzTShz-CcOswv0c.js → InvoiceUploadSection-58l6ePuH-CbCDsLyQ.js} +8 -8
  106. package/dist/assets/{IssueChargeCardPage-x6dLcd-P-w04y_5jk.js → IssueChargeCardPage-Bkxqsgax-B2E0w7s1.js} +8 -8
  107. package/dist/assets/{LabeledAddressValue-CY4Fn72d-eGI6rz6c.js → LabeledAddressValue-CZfFV97h-D0qxrk9o.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-D47ofJFV-vxJBVafU.js → LabeledAddressValueField-D66XOhMx-BL2wLyLH.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-C_c8Rs-i-BHT9Wulx.js → LabeledControlledCheckBoxField-BtnsqE4D-B85xoPON.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-vRw9drBe-B76tRzel.js → LabeledCountryMultiSelectField-kopByxLB-1-3v1UQa.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CdF97ljM-CAYzF-3Y.js → LabeledCreatableSingleSelectField-B6An-cwq-DFSBA92N.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-Dn25Ru1C-B_WMp98N.js → LabeledDocumentField-D_ZD8JTn-vKeq6vm6.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-C2sZjA-q-Ct_5ILId.js → LabeledDropDownFormattedTextField-CJ7ncCzH-B0WjHFnN.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-DzAdekQn-C8rbJEKG.js → LabeledEmailInputField-CSfzMDYO-CWt52Wcv.js} +1 -1
  115. package/dist/assets/{LabeledNameField-Dxx0xwMv-q011DeE8.js → LabeledNameField-DZJXGYR9-BrTXKAba.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-EO8TA_z_-C5J3CIRA.js → LabeledSingleSelectField-D_LoOMiZ-BMpo-aMs.js} +1 -1
  117. package/dist/assets/{LabeledText-Bo7B-LrF-XkdNglCy.js → LabeledText-A1h_ionS-CFl8s8G-.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DD11_Map-Cz77QBp-.js → LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-Q6YssO3g.js} +4 -4
  119. package/dist/assets/{LabeledZeniRolesDropDownField-BJ99uBt1-DRxN007k.js → LabeledZeniRolesDropDownField-DmynBXbJ-B4T-A7Cu.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-BiDoUKQW-DfQfBCux.js → LinkJETransactionPage-D6-fL4a6-tCaqs9Yj.js} +13 -13
  121. package/dist/assets/{LockCardPage-B1QOSByp-DoXf8Ddb.js → LockCardPage-BDlnh_zf-cKP8zIxD.js} +10 -10
  122. package/dist/assets/{LowBalancePopup-Bl_PaIUx-Cz8COji5.js → LowBalancePopup-CBPl_udd-BorudEL4.js} +1 -1
  123. package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-C2vI5jVH.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-BcNOhJgL-mWcNcIhr.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-bsxOE2QI.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-26mPfcBZ.js → MagicLinkRoutes-CcsKjkce.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-BZrsQ5lk.js → MagicLinkSignInScreen-Dw8ViAP-.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-CuL-7CWN-CPURwwOW.js → MagicLinkSuccessPage-Cl461HWp-01GdAVLj.js} +6 -6
  129. package/dist/assets/{MagicLinkTitleSection-RYhrN820-C7Vcy8B4.js → MagicLinkTitleSection-DoIMYrRv-wUyCV4b7.js} +1 -1
  130. package/dist/assets/MailingDetailsSection-NdwWGQ88-ChhAh-Lq.js +21 -0
  131. package/dist/assets/{MobileAppDrawer-CVmbFUtl.js → MobileAppDrawer-D7V2koAX.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-5MZl4h9B-zFBR8G0C.js → MoreMenuButton-CkkW1atP-CT7ietod.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBw6kNsm-CLFKHbI6.js → MyBankConnectionsSettingsPage-BU6TBzI1-DURfzXrx.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-BC4YjZtP-DazHEsal.js → MyPendingActivationChargeCardListPage-DcunCDU6-CQIAZ-Ax.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-DZ5M2BUN-CgmWIcfU.js → MyProfileSettingsPage-DF7ahyXE-BEXIytCm.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-C6FiaLu5-CpPmiX85.js → NavBarWithPicker-D2v1fhLS-CGpIi67k.js} +1 -1
  137. package/dist/assets/{NavigationArrow-BnAgR0wH-BHMKW5N7.js → NavigationArrow-CWUL-6kN-CRVEGy5S.js} +1 -1
  138. package/dist/assets/{NavigationDots-WUDG_g8M-DDdWfUW3.js → NavigationDots-c-XSrFzE-Bl0Sm_Ng.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-gAsCusVw-Dq-IWGpb.js → NewGlobalMerchantPage-FGEO68I8-BKtwnvr_.js} +1 -1
  140. package/dist/assets/{NoDataChart-BBYUjdKn-CRdzJbNp.js → NoDataChart-DJhSgtLu-BO4-72hz.js} +1 -1
  141. package/dist/assets/{NoDataTable-D3750d25-DG2oQDdM.js → NoDataTable-BZiwo2qK-CJLZnBQL.js} +1 -1
  142. package/dist/assets/{NotFoundPage-C4D8Rn9E-CwNmDrN1.js → NotFoundPage-BN5unYX8-B80hQ8eO.js} +3 -3
  143. package/dist/assets/{NotFoundScreen-B8XFlejE.js → NotFoundScreen-BBbILNsa.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-N8MRrxNI.js → NotificationRoutes-BH_Amwk1.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-CD-t91ia-m4MxTTW4.js → NotificationSettingsPage-d8kHDj0M-2vIf0BRe.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-C7JSE-eQ-KxVFUV3z.js → NotificationsListConfig-ThKLok_w-Bx-0LQ4e.js} +1 -1
  147. package/dist/assets/{NotificationsPage-Be1v8niA-VHkbcX-a.js → NotificationsPage-Uvu6XESA-D1y42vLB.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-D1f1lQbs-DLXANeGq.js → OpExByVendorPage-QyqRkD2_-h8x1NnCW.js} +5 -5
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-B0J4P0vh.js → OverlayContainerPage-BG9y5C0t-B8rQHhtN.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-DIYb7BWp-eRZ2xhPy.js → PandLWithForecastPage-DJ2v5qbE-BgEHjFpy.js} +2 -2
  151. package/dist/assets/{PandLWithForecastRoutes-DV3lwMtf.js → PandLWithForecastRoutes-CCN_Dopf.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-tGkjxbjY-DHB-KR0X.js → PaymentAccountSetupBillingAddressSection-q5z8XZFC-IYhUlGT-.js} +6 -6
  153. package/dist/assets/{PeoplePage-xwAOX4Jk-cobVcrYv.js → PeoplePage-C5ZdpVyR-DA1lsmrN.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-0VPcCQMG.js → PeopleRoutes-BLNrKR-x.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-DWL6I_M2.js → PerformanceRoutes-BBydKp8A.js} +1 -1
  156. package/dist/assets/{Preview-k4ohm46R.js → Preview-C2UYzTeJ.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-OHbYasaa-DyO10mDE.js → ProductsCarousel-CXjLTOLy-2QbHSm9u.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-B_0dccCZ-Cll52Aug.js → PromoBaseCards-CN9uZfG4-CB2JkJIv.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-5ItNvdCA-B93tYXoX.js → QBOConnectionDialog-CXSi1Pd9-CSvewQW2.js} +2 -2
  160. package/dist/assets/{QBOConnectionScreen-CIFlgaXj.js → QBOConnectionScreen-tSJfFhQn.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-CHZgQppe-Boi15f5H.js → QBOSetupSection-BrtLMvEP-D5Os1BGx.js} +3 -3
  162. package/dist/assets/{ReferralListScreen-OXcIgRf5.js → ReferralListScreen-CJqU7RxZ.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-CoU_u8MQ.js → ReimbursementApprovalRoutes-BHsHN-u_.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CqZT111l-BQrCKR9A.js → ReimbursementApprovalRuleDetailPage-CS1BQ7pL-_lY11RDq.js} +6 -6
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js → ReimbursementApprovalRuleDetailScreen-Bs2ple33.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BzTe2nqd-CnRJV-7t.js → ReimbursementApprovalRulesPage-aLRkhkZB-CV07eSYp.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-DM650uCR-CfT7lIQy.js → ReimbursementDetailPage-Dr5BTvEq-DM2tEzQB.js} +7 -7
  168. package/dist/assets/{ReimbursementPromoPage-CitTg9s4-C0IJS9C3.js → ReimbursementPromoPage-C5Z0mVhQ-Dq3UPRZ3.js} +10 -10
  169. package/dist/assets/{ReimbursementRoutes-CexK6hr3.js → ReimbursementRoutes-iv71wb2Z.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-qphyaCoX-DoGJ3Yjs.js → ReimbursementSetUpPage-CXhOBErm-BnZZWQ1W.js} +5 -5
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CCJvQKip-DJZoHiHh.js → ReimbursementsBulkReviewDrawerPage-CA0n0mau-Bq7X2QJa.js} +1 -1
  172. package/dist/assets/{ReloadCard-DMNbI6QE-C_0_5wQl.js → ReloadCard-Bjp8ygC2-DsEbxw3o.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-CUG4hVI9-BizHpKUG.js → ReportTableViewSelector-DTk1dNWC-QFtHZK4J.js} +5 -5
  174. package/dist/assets/{ReportsPage-nuM-ub1p-B6rPi-ib.js → ReportsPage-DrjOGopt-xwTAFZ82.js} +4 -4
  175. package/dist/assets/{ReportsRoutes-Cp6mze8I.js → ReportsRoutes-BhpH3vEG.js} +1 -1
  176. package/dist/assets/{RevenueChart-BL5Wb2UT-33eDsujQ.js → RevenueChart-CqGvXDr4-BDXPrwnC.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage-CUolLJ6s-D-zhUoA6.js → ReviewDetailsPage-CWBP7FBN-XuXg3BcA.js} +17 -17
  178. package/dist/assets/{ReviewOverlay-A1OYNSqG-9s_1ZdtP.js → ReviewOverlay-Cxkp85Kw-BxuvLEpC.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-BSovi6wQ.js → RewardsRoutes-CGI6v1LD.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-VOllzDDB-BYsZPBtm.js → RoleWithToolTip-CqLxmtj6-Rnjw9i_g.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-By3U1RYU-DKJcrnu_.js → ScheduleDetailsFixedAssetsPage-CYvlB3Nf-DLsNuhIe.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-ButJHPUw-QIDoDzfq.js → ScheduleDetailsPage-CZXJ15tN-DK-Vvm5e.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-Dv831gVJ-DAMs3BZ5.js → ScheduleSequenceTable-DNPID_7F-Bz8d2Fhy.js} +14 -14
  184. package/dist/assets/{ScreenRoutes-Dbhh2QOI.js → ScreenRoutes-B0gKACTz.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-BcNG0nDh-wr_b4Gnf.js → SetUpAccountSection-_WPR-q2V-BVzNpUbf.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-DsoaaeGm.js → SettingsRoutes-BrokioTP.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-C8L8QqMz.js → SetupPagesScreen-BiJM7znn.js} +1 -1
  188. package/dist/assets/{SignIn-D80UITQm-DIIeYnW9.js → SignIn-CDEsZw_T-BhKsIiWi.js} +7 -7
  189. package/dist/assets/{SignInScreen-CWsG4Mxf.js → SignInScreen-CRHQkOWq.js} +1 -1
  190. package/dist/assets/{SignOutScreen-Cs9C3-Pe.js → SignOutScreen-CSmP5G0L.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-DSG6Son_-kr01Gbhc.js → SpendManagementListViewPage-MOCWuROI-DdkFjcW6.js} +8 -8
  192. package/dist/assets/{SpendManagementPerTabPage-DiSu0RS1-DHuUoD95.js → SpendManagementPerTabPage-BeK0SCeE-DPZd4om4.js} +1 -1
  193. package/dist/assets/{SpendManagementSection-BXU3RGG8-BYhx4BvA.js → SpendManagementSection-DZFPfKNi-DT0rYb2P.js} +14 -14
  194. package/dist/assets/StatementItem-DjvU5wiI-DmQsj9gw.js +31 -0
  195. package/dist/assets/{StatementsPage-Ck1xzA0w-ClPKQbtk.js → StatementsPage-DYLp_e7W-CYuAqH_I.js} +1 -1
  196. package/dist/assets/{StatusSwitcher-_Cs3CzJl-Dgp2ChlN.js → StatusSwitcher-jxaonB4S-Cxq2Q9_V.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-D3ltE_yc-CnL7Gxp8.js → SubTabSwitcher-CudjNlsi-D6kvvomf.js} +1 -1
  198. package/dist/assets/SuccessAnimation-DE_x1Zz_-AQ5Y5JIA.js +13 -0
  199. package/dist/assets/SummaryCard-DPOhBmkr-Cv-w5fsm.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CJKga1vr-C9aggkuO.js → TaskDetailPage-CXexRKAY-BOPspi-s.js} +1 -1
  201. package/dist/assets/{TaskListScreen--R6ZRUkx.js → TaskListScreen-B0RVzFet.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-BMwMSG1j-H5G6dYbH.js → TaskManagementPage-CTMoHv0R-BGb6WsaA.js} +28 -28
  203. package/dist/assets/{TaskRoutes-DYzJiY4s.js → TaskRoutes-vmd5uItQ.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-B1Wx03tG-BWIrI-Q6.js → TimeRangeSwitcher-SqY2MHGs-ChpZHeuG.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-Dmtsdwi9-Cw7Bi58F.js → TimeframeSwitcher-BlJ2fuHy-JP2UlRBY.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-P5CfgTUd-Dktx47QV.js → TimeframeSwitcherWithToggle-Dgc1odUH-ChrHPbvN.js} +2 -2
  207. package/dist/assets/{TopExCard-DQkr9Xhh-BRnZbxyD.js → TopExCard-CG8YLsYe-B5wqJJSw.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-5Di6WUfV-BUXw1BOA.js → TopExDetailPage-TvYCbzSP-CTOCVsET.js} +5 -5
  209. package/dist/assets/{TransactionActivityLogPage-R9LoW4DL-D_EoHZ59.js → TransactionActivityLogPage-BL3vEAdU-Bk3OacNa.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-B-blHtkn-DCMnh0nU.js → TransactionDetailPage-DUouBL0o-DkOa5f2H.js} +32 -32
  211. package/dist/assets/{TransactionDetailRoutes-Ct3Dbt4h.js → TransactionDetailRoutes-D5_-HF2Q.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-BI8wXwWu.js → TransactionDetailScreen-DHwJH1ZP.js} +1 -1
  213. package/dist/assets/{TransactionList-FQvTXSzy-B5IF52jl.js → TransactionList-B16NONME-xM0VK0uD.js} +9 -9
  214. package/dist/assets/{TransactionListBig-CNDw7zRw-TaxjiJ28.js → TransactionListBig-CItPbTRV-BpUwrWyu.js} +1 -1
  215. package/dist/assets/TransactionListPage-DNecYY8M-ptahFcY0.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-B3byuAak.js → TransactionListRoutes-DIJ_fkWS.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-Ch2UUF1f-BrGjAHyI.js → TransactionVendorDetailPage-DpqisXN8-wU2wHv2K.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-C1Ly_xKj-fiBb4oDE.js → TransferDrawerPage-Dsmbswu0-DFQDwnPy.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-Zt5w8zfp-Ch3HnWvf.js → TreasuryOverviewPage-BcRpcYmB-DwdLr4Xt.js} +21 -21
  220. package/dist/assets/{TreasuryPromoPage-BsP73kf7-CL2gh8Up.js → TreasuryPromoPage-DOO_OMRa-uzWYBUzW.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-CiZ9sTKP.js → TreasuryRoutes-BfRwxvKx.js} +1 -1
  222. package/dist/assets/TreasuryStatementsPage-A_U7bEy5-C1uv8XvN.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-tHkQvX2V-DC4DIUK0.js → TreasuryTaxLetterPage-BsJn-BgX-Dcdm_qTO.js} +3 -3
  224. package/dist/assets/TrendChart-GMMat-NG-BewK0MCc.js +16 -0
  225. package/dist/assets/{TrendWithTransactions-DP1jZL1i-DLC5jL9Q.js → TrendWithTransactions-CrA4opNV-B_vQq65J.js} +7 -7
  226. package/dist/assets/{UncategorizedAccountsMappingPage-4mHyt2P6-CaPpF27u.js → UncategorizedAccountsMappingPage-CrzbFGOi-BDtcuYej.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-BymmWe1G-c3FxOZsw.js → UnitIntegrationPage-XZY6zJa7-D8B46vcm.js} +3 -3
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-DUO2ZoU--C5vn0EeB.js → UploadAdditionalDocumentOverlay-eqwSLigx-kRVMQYF-.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-8kpMx5RI-B6wz9ehO.js → Vendor2FAPopup-BHDivuPB-D7ySxcXF.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-BgbOpk55.js +1 -0
  231. package/dist/assets/{VendorDetailPage-C-JJfR0u-xsJdXYgh.js → VendorDetailPage-DEu-yS8w-BhFmuJot.js} +7 -7
  232. package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-DCXCuX-V.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-B4vFgSwb-BhTGj51T.js → VendorFiling1099EditablePage-C461SzO0-CCIZoPU6.js} +6 -6
  234. package/dist/assets/{VendorFirstReviewPage-CUwdrbjH-C8NXBWTw.js → VendorFirstReviewPage-klbCHS04-UP-04u7X.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-BzP1zqhw-BApkoCPp.js → VendorInternationalWireDetailsPage-DY0V-VbO-Dl3hBhoD.js} +1 -1
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-h6qnY29-.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-Drue-Lvz-BCNmsP23.js → VendorsAccountsSection-Cqcr-ArD-CzW5lMfP.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-CKhkv2e_.js → VendorsRoutes-DLnvF6hR.js} +1 -1
  239. package/dist/assets/{VerifyDevice-B_NNzkjT-DssvqA1v.js → VerifyDevice-Dhu5iywf-cUES-VE2.js} +9 -9
  240. package/dist/assets/{VideoPlayer-Bc4tAd79-1S5ggZVm.js → VideoPlayer-ZGjx_Hp7-CjY3r1rL.js} +1 -1
  241. package/dist/assets/VideoPopup-R3u0N_if-CaG3EJQq.js +31 -0
  242. package/dist/assets/{WiseConfirmationScreen-DJuJvNzv.js → WiseConfirmationScreen-CT86mZ0i.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-BW6G2voE-DG228Rrt.js → ZeniAccountDetailPage-DQB7sXU9-CZEM5xVV.js} +12 -12
  244. package/dist/assets/{ZeniAccountListViewPage-gNszI2XV-vz3h67sw.js → ZeniAccountListViewPage-BwXKgf6g-FfpOzmd6.js} +1 -1
  245. package/dist/assets/{ZeniAccountNavBarPieces-BP1IxZ18-D8VlWC64.js → ZeniAccountNavBarPieces-CHUTFAWG-v671evv-.js} +4 -4
  246. package/dist/assets/{ZeniAccountPromoPage-LsZxIdX9-BS_EkGM_.js → ZeniAccountPromoPage-BkfJuMNV-CmI6f_1i.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-1i5H0-IW.js → ZeniAccountRoutes-bnzTspvl.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-BExQA9Cz-xecz4xSG.js → ZeniAccountSetupPage-C3drM4Zs-CvpINFn4.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-YmdFA__8.js → ZeniAccountStatementScreen-B5KsFobU.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-5wP6sb3W-CwxwTkTA.js → ZeniAvatar-C38T0-5--BM3XjRcp.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-CMjFbDBQ-Ck2DhCCZ.js → ZeniCopyright-CznSgVJF-BhclYMa4.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-C_YQpGe--B6o5NtIP.js → ZeniDatePicker-Bw9RlgoL-DDQaNsVY.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-CIu35Xz9-CbkYbuv-.js → ZeniTransferAmountSlider-C77DEl-C-CYKYiLaT.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-Ctd7yuH3.js → accountMappingHelper-B1SwIfFo.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-q_ZatOIu.js → add-to-wallet-DgdBD8_G-2vbkyqzY.js} +1 -1
  256. package/dist/assets/{analytics-Ci5SIN4_.js → analytics-Qgv3Fhaa.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CG-L3dO7-BuQ3dQan.js → analyticsHelper-Bh8o1v3y-erbhoWbk.js} +1 -1
  258. package/dist/assets/{analyticsHelper-BkUpwFP4.js → analyticsHelper-CsyUSML_.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-BXAmISmi.js → arrow-south-east-round-PEovUgvH-CHgaZ-yo.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-Qtr813uy.js → auto-transfer-rule-mbafm5D3-BdBsn5Ol.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-lVrrjTFE.js → avatar-Dz7aEm3d-CxU8IzEu.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-a5lcVCZG.js → bank-letter-BOcVjN6J-DhC6VHDB.js} +1 -1
  263. package/dist/assets/{calculateSize-CAxK0dN_-CtindZTL.js → calculateSize-QoQyn_Ku-j5kLdf_t.js} +1 -1
  264. package/dist/assets/{chartTypes-_AEkJ5Cg-BoLLmK-7.js → chartTypes-C14YY2Rq-mIXPNQxz.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-CBVPxBka.js → clock-CJkylEKt-BBrb7jeK.js} +1 -1
  266. package/dist/assets/common-Cu5K0AJk-BihNw_Do.js +1 -0
  267. package/dist/assets/{commonDimensions-_Dpm4Anv-JKxakvSV.js → commonDimensions-CVpc-NCw-xOjrok2-.js} +1 -1
  268. package/dist/assets/{commonTypes-C64XobC6-zWzHHgag.js → commonTypes-Ec-PxfpT-DZ1xbinn.js} +1 -1
  269. package/dist/assets/{core-oEkj6b51.js → core-CaikJZHD.js} +1 -1
  270. package/dist/assets/{dash.all.min-DZu0W7MW.js → dash.all.min-CteFsaah.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-AFO0vA4L.js → decodeURIComponentSafe-DcEFJStp.js} +1 -1
  272. package/dist/assets/{dnd-DwLm2ZWc.js → dnd-CzsffKNn.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-BxzwYsJa.js → dollar-round-D18u7nlm-BF4Thvjs.js} +1 -1
  274. package/dist/assets/{downloadPdf-BAZhe2iR-XXbzTfDj.js → downloadPdf-BuPJ6cfr-Cy2ZBk4z.js} +1 -1
  275. package/dist/assets/{empty-fwRWXj2G.js → empty-B5B-FKq1.js} +1 -1
  276. package/dist/assets/{empty-CpgB6ACX.js → empty-CTO6rJhq.js} +1 -1
  277. package/dist/assets/{epic-qeTSmk29.js → epic-DtTDCbBB.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-Cn5LR_-W.js → filter-cZIFUNvj-CWbeOwgA.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-gFC-Rnfp.js → getLocaleForTenant-DLrlmQCo.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CByaMYJG.js → gift-box-Cmt9OgIZ-BfzCBGHZ.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-bzI3_a8w.js → graphic-no-data-l-DU4J8fDt-DEuKmvBU.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CaA33M1d.js → graphic-no-data-net-burn-l-CzmycA0m-CIA_wKU3.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-BxWewJRH.js → handshake-BPg58FML-Z_I5plJl.js} +1 -1
  284. package/dist/assets/{helper-D3UIpXq7-k6HHkxTA.js → helper-AgH8nJln-DNDXfXpF.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-Dt5l5kWs.js → hyperlink-DQyCeXx2-Bwqrw7ES.js} +1 -1
  286. package/dist/assets/{index-Cpbn6-TN.js → index-B7wRNic7.js} +1 -1
  287. package/dist/assets/{index-DRNExedw.js → index-B9eknY8q.js} +1 -1
  288. package/dist/assets/{index-B5c5iTId.js → index-B9myuWEH.js} +1 -1
  289. package/dist/assets/{index-BE_133so.js → index-BL34svil.js} +1 -1
  290. package/dist/assets/{index-CjBlNHKF.js → index-CLf01Vy8.js} +1 -1
  291. package/dist/assets/{index-ByqexAVU.js → index-mhb15COx.js} +2726 -2726
  292. package/dist/assets/{lexical-BLFyyXBr.js → lexical-CXNTSpM4.js} +1 -1
  293. package/dist/assets/{liveblocks-Ia5FU_Xu.js → liveblocks--AdozwCz.js} +1 -1
  294. package/dist/assets/{lottie-DEK510sX.js → lottie-D86WIi_0.js} +1 -1
  295. package/dist/assets/{mapLoadingInProgressToTreeNode-C_DjhqLk-Cbs7Of5h.js → mapLoadingInProgressToTreeNode-DTyQHWMc-BqMSzUiy.js} +1 -1
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B5H-460G.js → mapSectionWithAcOnlyToTreeNode-D7pjBGp6-BMY0vZTn.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-C6nWwAzP.js +1 -0
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode--FHVcIix-DC7cXapm.js → mapTimeframeBalancesToTreeNode-Drhl_lnP-BDA52mbW.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-DrvNkcA6.js +1 -0
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-CPa7R1do.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-DHD18LN5.js} +1 -1
  301. package/dist/assets/{media-player-uto_Jl5G.js → media-player-OnsEq_AY.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-BmcWx6In.js → money-2cg1MuG4-CfgKOIyt.js} +1 -1
  303. package/dist/assets/{mui-Cni6P-fz.js → mui-G2MlMTlr.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-B9qcUnuN.js → page-detail-CWX5S47F-CWJ8fnGp.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-ZSqDN0WI.js → page-summary-D7_VQHwN-CaK_VLEF.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-BCo5ICo2.js → panelSelectedMixin-Cddsb26L-XfdQwEMM.js} +1 -1
  307. package/dist/assets/{pathToGoBack-BpMzEQ5A.js → pathToGoBack-Dh6AhADv.js} +1 -1
  308. package/dist/assets/{pdf-CTJ16aEe.js → pdf-DwfifS04.js} +3 -3
  309. package/dist/assets/{pdf-lib-BZoHbIry.js → pdf-lib-CuGtb6jg.js} +1 -1
  310. package/dist/assets/{plaid-B2vW8NaN.js → plaid-CcxzSXZd.js} +1 -1
  311. package/dist/assets/{pusher-DFtcQaPW.js → pusher-BNSVRSP_.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh--JwnmKdf.js → radio-default-CiSgisfh-CF7OSKL1.js} +1 -1
  313. package/dist/assets/{react-C70tWLg5.js → react-BEcxr4nX.js} +1 -1
  314. package/dist/assets/{react-cn6O__9s.js → react-BUDcsgZo.js} +1 -1
  315. package/dist/assets/{react-DZ1_qQub.js → react-C0Whd_8a.js} +1 -1
  316. package/dist/assets/{react-B0u9lmTz.js → react-Chqt_ss-.js} +1 -1
  317. package/dist/assets/{react-DKkpOD3_.js → react-Cobj-_wp.js} +3 -3
  318. package/dist/assets/{react-Cohr3oKl.js → react-DOvM9ag3.js} +1 -1
  319. package/dist/assets/{react-BxE_BeY2.js → react-V3TERlfD.js} +1 -1
  320. package/dist/assets/{react-jjkPSe6Z.js → react-WpjiT9jD.js} +1 -1
  321. package/dist/assets/{recharts-LlOU9oLm.js → recharts-3tylCZU1.js} +1 -1
  322. package/dist/assets/{routePaths-BnaAtOOM.js → routePaths-CDVBEe6a.js} +1 -1
  323. package/dist/assets/{sentry-CY6wsJT-.js → sentry-Cm8I7E9J.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-CGZqPLdL.js → shield-DOlUxcFf-tt-dORuJ.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-DAZsY_K2.js → spend-limit-D6SyboD4-d-tIWfnn.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-wh35N3no-2SjovFHm.js +1 -0
  327. package/dist/assets/{toChartData-BODe4y2V-C6JFTy1O.js → toChartData-G5y-N82I-HPFXqzd4.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-B7lzeBRq.js → transaction-placeholder-CpOwZAMG-CXIruzlf.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-okXLDguZ.js → undo-b_3XZ5CX-5VNbpbUY.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-BcwMx3a4.js → unlock-BPWn2I5L-8UNw8MhM.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BLqHMVJK.js → upload-reimbursement-receipt-O2N8vcO7-BhCuFTsT.js} +1 -1
  332. package/dist/assets/{uploadAttachment-Dbumcc_g-Dxdg1PHe.js → uploadAttachment-RbkIBMGO-BHEoxgsX.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-BX0LuAuH.js → uploadReceipts-CIgkuVpu-BPECKX43.js} +1 -1
  334. package/dist/assets/{url-Cv3aJ--T.js → url-BMzuxPwA.js} +1 -1
  335. package/dist/assets/{url-B5kkbwRv.js → url-CvhemPUG.js} +1 -1
  336. package/dist/assets/{useDeviceId-BWAR3Wtl.js → useDeviceId-BzlY8kf5.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-D1CqutXV.js → useInitialThreadRequest-Dldme96o.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-BX_5sahW.js → useLongPress-GCK2COYQ-BgmUYGJ7.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-CuU9mWQv.js → usp-line-BBd1wKwW-BqojtCEK.js} +1 -1
  340. package/dist/assets/{utils-ChLimP28.js → utils-BhOlvYO8.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-BzduT6UI.js → withTransactionSidePanel-DBF40Qih.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-cFF_NqwA.js → zeni-epic-state-lC5X-sam.js} +7 -7
  343. package/dist/assets/{zeni-icon-only-jOM3nMPU.js → zeni-icon-only-DZ6h0uLr.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +3 -3
  346. package/dist/assets/AccountInfoPage-CiPtog_o-DPWdb5xr.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-Bj0kaRHv-B0-iD3mG.js +0 -149
  348. package/dist/assets/ChargeCardPromoPage-C-z0xtuN-Cj9Xh0NF.js +0 -222
  349. package/dist/assets/ConfettiBurst-C0DFgWJj-BGxc90V2.js +0 -1
  350. package/dist/assets/CustomerOnboardingAuthScreen-voIng-Gb.js +0 -1
  351. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CbCO9XOL.js +0 -1
  352. package/dist/assets/CustomerOnboardingNoStepsPage-C--jDBQq-D1RWdf29.js +0 -66
  353. package/dist/assets/DashboardSidebarBackgroundAnimation-DsWKmIXY-BKVS4wpr.js +0 -12
  354. package/dist/assets/EntityDetailPage-CgDHg6g5-DEy7q7j7.js +0 -18
  355. package/dist/assets/MagicLinkACHDetailsPage-l76_Y3sO-BRaxCag1.js +0 -1
  356. package/dist/assets/MagicLinkDomesticWireDetailsPage-D_z_Q-jz-C4Uhpu4B.js +0 -1
  357. package/dist/assets/MagicLinkInternationalWireDetailsPage-D276lsq_-BhCxcHkI.js +0 -1
  358. package/dist/assets/MailingDetailsSection-D9_I-DTk-CH2kzcO6.js +0 -21
  359. package/dist/assets/StatementItem-B1M65xN--GeNfVEEV.js +0 -31
  360. package/dist/assets/SuccessAnimation-RuQd1S4B-Bm3TMOLx.js +0 -13
  361. package/dist/assets/SummaryCard-buadhnmc-D_ubT5UT.js +0 -1
  362. package/dist/assets/TransactionListPage-BkZLtwmQ-DMj8aMnI.js +0 -35
  363. package/dist/assets/TreasuryStatementsPage-DhXESeOi-D1GmDTaA.js +0 -58
  364. package/dist/assets/TrendChart-B7Pox_TQ-CaG-s4IC.js +0 -16
  365. package/dist/assets/VendorACHDetailsPage-BODHiiUQ-CbkmGhf7.js +0 -1
  366. package/dist/assets/VendorDomesticWireDetailsPage-CVfEcUFJ-Bq6iA8BG.js +0 -1
  367. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CIw7ERg3.js +0 -1
  368. package/dist/assets/VideoPopup-BYo5bzpU-DUVlPGQp.js +0 -31
  369. package/dist/assets/common-B74Sb4iG-wPHt407r.js +0 -1
  370. package/dist/assets/mapSpacerToTreeNode-Dq4CasLR-Dqbo2uhz.js +0 -1
  371. package/dist/assets/mapTimeframeBalancesToTreeNode-BP0iF3Of-DbCZ7i8N.js +0 -1
  372. package/dist/assets/toCOABalancesWithID-CuxwOBs0-BNfZJE4p.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,ba as Pt,fJ as Bt,fK as Nt,bR as Ae,bS as Me,bT as Re,a_ as Pe,b as f,aM as _t,cR as Lt,fL as Wt,fU as Be,o as r,fM as Ne,c$ as b,fP as g,d5 as w,a5 as _e,eO as Le,w as H,fR as We,a9 as Et,k as Ot,be as Ft,fS as ne,aV as Kt,bf as Ut,a8 as Vt,d as Gt,M as Ht,l as rt,at,f as Y,H as Yt,bp as qt,C as Jt,gc as Qt,g7 as Xt,m as c,bH as Zt,co as ei}from"./index-ByqexAVU.js";import{a as u}from"./sentry-CY6wsJT-.js";import{n as a}from"./mui-Cni6P-fz.js";import{bG as ti,c6 as ii,G6 as ri}from"./zeni-epic-state-cFF_NqwA.js";import ai from"./InvoiceUploadSection-DZOzTShz-CcOswv0c.js";import{r as oi,h as x,u as ni}from"./types-DyvtCprH-VF9iATMs.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./AttachmentView-C5anq6-B-B0oKrwit.js";import"./uploadReceipts-CIgkuVpu-BX0LuAuH.js";import"./upload-reimbursement-receipt-O2N8vcO7-BLqHMVJK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},$=new e.Error().stack;$&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[$]="4735d166-8130-4835-840e-33c761c3ce3e",e._sentryDebugIdIdentifier="sentry-dbid-4735d166-8130-4835-840e-33c761c3ce3e")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Gt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:$,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=zt().analytics,n=At(),ge=Mt(),[mt,M]=u.useState(!1),[J,Q]=u.useState(!1),[pt,X]=u.useState(!1),[Z,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ut]=u.useState(null),[ht,W]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>ni(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]),Rt({componentName:"reimbursement.details"});const yt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:bt},strings:{empty:ve}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:wt},tooltip:{resolveComment:xt,unResolveComment:ft}}},dateFormat:$e}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,F=e.remiDetails?.reimbursementInfo.billStatus,K=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",vt=Te?O:F?.code=="approved"&&K?.code?K:F,T=si(e.remiDetails),P=F?.code=="approved"&&K?.code?K:F,U=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},De=()=>{nt()},$t={onOkClick:l=>{X(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{X(!1)}},Tt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ti(ii(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,re=e.remiDetails?.reimbursementInfo.expectedDepositDate??Tt,jt=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!jt,St=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ae=vt?.code,It=oi(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&It>0,{requestToOpenThread:oe,setRequestToOpenThread:V,setOpenThread:G}=u.useContext(Pt);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&V(A)},[A,V]);const{threads:B,isLoading:C}=Bt(),Dt=u.useMemo(()=>B.filter(l=>l.resolved===!1&&!l.id.includes(Nt)),[B]).length,Ct=u.useCallback((l,o)=>{G(o),W(!1)},[G,W]);u.useEffect(()=>{oe?.threadId!=null&&B.length>0&&!C&&(G(oe.threadId),V(null))},[oe,B,C,G,V]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=ri(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:yt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:$t,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Pe,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(Si,{}):null,t.jsx(Pe,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??ve,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[p?t.jsxs(Mi,{isDisabled:C,onClick:C?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),W(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Lt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(_t,{count:C?void 0:Dt,isLoading:C,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:n,onClick:()=>{q()},"data-testid":f("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:n,children:t.jsx(Qe,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,P?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{progressSectionObj:P,createDate:e.remiDetails?.createTime,paymentDate:re,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:U}),N?t.jsx(Be,{variant:"warning",style:{margin:`${r.sp5} ${r.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(Oe,{size:n,children:[t.jsx(Ve,{}),t.jsxs(Ke,{children:[t.jsx(Fe,{children:i.thereSeems}),t.jsx(Ue,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:P,createDate:e.remiDetails?.createTime,paymentDate:re,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:U})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsx(Ei,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(ai,{showAutofill:!1,uploadInvoiceEndPoint:$,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Li,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:n,children:[t.jsx(Qe,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,P?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:P,createDate:e.remiDetails?.createTime,paymentDate:re,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:U})}):null,N?t.jsx(Be,{variant:"warning",style:{margin:`${r.sp3} ${r.sp8} ${r.sp3} ${r.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(Oe,{size:n,children:[t.jsx(Ve,{}),t.jsxs(Ke,{children:[t.jsx(Fe,{children:i.thereSeems}),t.jsx(Ue,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(bi,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${r.sp2} ${r.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${r.sp2} ${r.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(v,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format($e.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${r.sp2} ${r.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${r.sp2} ${r.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format($e.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${r.sp2} ${r.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${r.sp2} ${r.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(_i,{windowSize:n,children:[t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(We,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:be,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:n,children:[t.jsx(Ni,{windowSize:n,children:t.jsxs(Xe,{windowSize:n,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:n,children:t.jsx(We,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:be,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Oi,{})]}),Te||U===!0?null:t.jsxs(Di,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),J===!0&&Q(!1)},children:t.jsx(Et,{separatorStyle:{marginRight:r.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:Z==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Z==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),X(!0))},style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:Z==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(gi,{children:t.jsxs(Ii,{windowSize:n,children:[!N&&J?t.jsx(Ot,{onClickAway:()=>Q(!1),children:t.jsxs(ji,{windowSize:n,children:[ae!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,ae==="processing"?t.jsx(le,{onClick:()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,ae==="processing"?t.jsx(le,{onClick:()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:n,children:[!N&&Ce?t.jsx($i,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(vi,{})}):null,N||St!==!0?null:t.jsx(fi,{windowSize:n,showEditIcon:Ce,children:t.jsx(xi,{onClick:()=>Q(!J),"data-testid":f("remi-more-actions-button")})})]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ft,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:bt,threads:B,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??ve,isGlobalComment:!1,tab:"reimbursement"},isLoading:C,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:wt,threadResolve:xt,threadUnResolve:ft},onThreadClick:(l,o)=>Ct(l,o),onCloseAllThreadsDrawer:()=>W(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},lr=e=>{const $=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!e.isReimbursementCommentingEnabled||z==null||$==null)return t.jsx(Ee,{...e});const _=`dashboard_${$}`;return t.jsx(kt,{roomId:_,filter:{application:"dashboard",companyId:$,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},si=e=>{const $=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:$.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},di=a.div`
1
+ import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,ba as Pt,fJ as Bt,fK as Nt,bR as Ae,bS as Me,bT as Re,a_ as Pe,b as f,aM as _t,cR as Lt,fL as Wt,fU as Be,o as r,fM as Ne,c$ as b,fP as g,d5 as w,a5 as _e,eO as Le,w as H,fR as We,a9 as Et,k as Ot,be as Ft,fS as ne,aV as Kt,bf as Ut,a8 as Vt,d as Gt,M as Ht,l as rt,at,f as Y,H as Yt,bp as qt,C as Jt,gc as Zt,g7 as Qt,m as c,bH as Xt,co as ei}from"./index-mhb15COx.js";import{a as u}from"./sentry-Cm8I7E9J.js";import{n as a}from"./mui-G2MlMTlr.js";import{bG as ti,c6 as ii,G6 as ri}from"./zeni-epic-state-lC5X-sam.js";import ai from"./InvoiceUploadSection-58l6ePuH-CbCDsLyQ.js";import{r as oi,h as x,u as ni}from"./types-DyvtCprH-VF9iATMs.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./AttachmentView-SsWJw4A8-RJr9hQhO.js";import"./uploadReceipts-CIgkuVpu-BPECKX43.js";import"./upload-reimbursement-receipt-O2N8vcO7-BhCuFTsT.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},$=new e.Error().stack;$&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[$]="ecbeac3d-40cc-4e39-9200-a6a426788fea",e._sentryDebugIdIdentifier="sentry-dbid-ecbeac3d-40cc-4e39-9200-a6a426788fea")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Gt("h6Regular","h5Regular")},Ee=({remiDetails:e,uploadInvoiceEndPoint:$,authParams:z,isAdmin:_,signedInUser:se,showApproveRejectBtns:de,isRealTimeApprovalEnabled:ce,isReimbursementCommentingEnabled:p,isShowDeletedReimbursementEnabled:me,isSignedInUserReimbursementCreator:ot,updateEditRealTimeApproverClicked:pe,onSaveRealTimeApprovals:ue,redirectToReimbursementListScreen:q,redirectToEditableReimbursementScreen:nt,onDuplicateLineClick:lt,approveOrRejectRemi:he,deleteReimbursement:st,cancelAndDeleteReport:ye,handleZeniLogoClick:dt,onAddNewRule:be,initialOpenThreadRequest:A})=>{const d=tt(),ct=zt().analytics,n=At(),ge=Mt(),[mt,M]=u.useState(!1),[J,Z]=u.useState(!1),[pt,Q]=u.useState(!1),[X,ee]=u.useState("approved"),L=u.useRef(null),[D,te]=u.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ut]=u.useState(null),[ht,W]=u.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,we=u.useRef({}),xe=l=>{const o=we.current[l];o!=null&&setTimeout(()=>ni(o,L.current),100)};u.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&q()},[e,q]),u.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const o=l.substring(1);xe(o)}},[]),Rt({componentName:"reimbursement.details"});const yt={onOkClick:()=>{M(!1),D.primaryButtonText===i.buttons.delete?st?.():D.title===i.cancelReportTitle?ye?.():D.title===i.cancelAndDeleteReportTitle&&ye?.(!0)},onCancelClick:()=>{M(!1)}},S=s.labelWidth.value(n),R=s.largeLabelWidth.value(n),fe=it.getLocalizedStrings(),{common:{texts:{comments:bt},strings:{empty:ve}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:wt},tooltip:{resolveComment:xt,unResolveComment:ft}}},dateFormat:$e}=fe,{reimbursementDetail:i,bulkActions:E}=fe.spendManagement.reimbursement,ie=e.remiDetails?.reportTitle,I=e.remiDetails?.lines??[],O=e.remiDetails?.reimbursementInfo.stage,F=e.remiDetails?.reimbursementInfo.billStatus,K=e.remiDetails?.reimbursementInfo.billPaymentStatus,Te=O?.code==="paid",vt=Te?O:F?.code=="approved"&&K?.code?K:F,T=si(e.remiDetails),P=F?.code=="approved"&&K?.code?K:F,U=e.remiDetails?.isDeleted??!1,je=e.remiDetails?.amount,Se=e.remiDetails?.amount.amount??0,Ie=()=>{te({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),M(!0)},De=()=>{nt()},$t={onOkClick:l=>{Q(!1),he({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{Q(!1)}},Tt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ti(ii(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,re=e.remiDetails?.reimbursementInfo.expectedDepositDate??Tt,jt=e.remiDetails?.lines?.some(l=>{const o=l.lineDetail;return o?.account?.isDeleted===!0&&o?.account?.isBillEditableCoaAccountType===!1})??!1,Ce=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&ot&&!jt,St=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ae=vt?.code,It=oi(e.duplicateLineByLineId),ke=e.duplicateReimbursementStatus.fetchState==="Completed"&&It>0,{requestToOpenThread:oe,setRequestToOpenThread:V,setOpenThread:G}=u.useContext(Pt);u.useEffect(()=>{A?.threadId!=null&&A?.companyId!=null&&A?.entityType!=null&&V(A)},[A,V]);const{threads:B,isLoading:C}=Bt(),Dt=u.useMemo(()=>B.filter(l=>l.resolved===!1&&!l.id.includes(Nt)),[B]).length,Ct=u.useCallback((l,o)=>{G(o),W(!1)},[G,W]);u.useEffect(()=>{oe?.threadId!=null&&B.length>0&&!C&&(G(oe.threadId),V(null))},[oe,B,C,G,V]);const y={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},N=ri(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:n,ref:L,children:[mt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:D.title}),descriptionComponent:t.jsx(Me,{children:D.description}),primaryButtonText:D.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:D.secondaryButtonText,action:yt}):null,pt?t.jsx(Ae,{titleComponent:t.jsx(Re,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Me,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:$t,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:n,"data-testid":f("reimbursement-detail-page-nav-bar-container"),children:[n!=="small"?t.jsx(Pe,{"data-testid":f("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>dt?.(),"data-testid":f("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ge.colors.background,keepBackgroundOnScroll:!0,scrollableContent:L,source:"ReimbursementDetailPage"}):null,n!=="small"?t.jsx(Si,{}):null,t.jsx(Pe,{"data-testid":f("reimbursement-detail-page-nav-bar-right"),title:ie??ve,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:n!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[p?t.jsxs(Mi,{isDisabled:C,onClick:C?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ut({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),W(!0),ct.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(o=>Lt(o)),void 0,void 0,"page icon")},"data-testid":f("remi-comments-section"),children:[t.jsx(_t,{count:C?void 0:Dt,isLoading:C,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:n,onClick:()=>{q()},"data-testid":f("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:L,enableTitleOnScroll:n!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Je,{windowSize:n,children:t.jsx(Ze,{windowsSize:n,children:ie})}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null,P?.code!=null?n==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Wt,{progressSectionObj:P,createDate:e.remiDetails?.createTime,paymentDate:re,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:U}),N?t.jsx(Be,{variant:"warning",style:{margin:`${r.sp5} ${r.sp3}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(Oe,{size:n,children:[t.jsx(Ve,{}),t.jsxs(Ke,{children:[t.jsx(Fe,{children:i.thereSeems}),t.jsx(Ue,{children:i.pleaseFind})]})]}):null]}):t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:P,createDate:e.remiDetails?.createTime,paymentDate:re,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:U})}):null]}):null,I.map((l,o)=>{const j=e.duplicateLineByLineId[l.lineId];return t.jsxs(et,{windowSize:n,children:[t.jsx(Wi,{windowSize:n,children:t.jsx(Ei,{bottomSeperator:I.length!==1,windowSize:n,children:t.jsx(ai,{showAutofill:!1,uploadInvoiceEndPoint:$,authParams:z,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:I.length>1?`#${o+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:I.length-1===o||o===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Li,{windowSize:n,children:[o===0&&n!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Je,{windowSize:n,children:[t.jsx(Ze,{windowsSize:n,children:ie}),me&&T!=null?t.jsx(He,{color:T.color,bgColor:T.bgColor,borderColor:T.borderColor,children:T.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ge,{windowSize:n,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,P?.code!=null?t.jsx(qe,{windowSize:n,children:t.jsx(Ne,{progressSectionObj:P,createDate:e.remiDetails?.createTime,paymentDate:re,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:U})}):null,N?t.jsx(Be,{variant:"warning",style:{margin:`${r.sp3} ${r.sp8} ${r.sp3} ${r.sp6}`},title:E.duplicateWarning.title,description:E.duplicateWarning.description}):ke?t.jsxs(Oe,{size:n,children:[t.jsx(Ve,{}),t.jsxs(Ke,{children:[t.jsx(Fe,{children:i.thereSeems}),t.jsx(Ue,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:n,ref:ze=>{ze!=null&&(we.current[`L${l.lineId}`]=ze)},children:[n!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:I.length>1?`#${o+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(bi,{windowSize:n,children:[j?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(j.isDuplicateWithinTransaction&&j.duplicateLineId!=null)return xe(`L${j.duplicateLineId}`);j.duplicateTransactionId!=null&&j.duplicateLineId!=null&&lt(j.duplicateTransactionId,j.duplicateLineId)},"data-testid":f("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:l.type===i.mileageKey?`${o}.mileage.reimbursementType`:`${o}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("reimbursementType",o,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:j?.duplicateLineId==null?`${r.sp2} ${r.sp2} 0 0`:"0 0 0 0"},children:t.jsx(g,{label:{label:i.reimbursementType,width:R},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:j?.duplicateLineId==null?`${r.sp2} ${r.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(v,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"mileage")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format($e.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("distanceInMiles",o,"mileage")}`},children:t.jsx(g,{label:{label:i.distanceInMiles,width:R},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"mileage")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"mileage")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"mileage")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.mileage.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"mileage")}`},style:{borderRadius:`0 0 ${r.sp2} ${r.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${r.sp2} ${r.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("merchant",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.merchant,width:R},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("transactionDate",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.transactionDate,width:R},text:l.transactionDate?.format($e.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("amount",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.amount,width:S},text:l.homeCurrencyConversions!=null?_e("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("memo",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.memo,width:S},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("account",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.category,width:S},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("class",o,"out_of_pocket")}`},children:t.jsx(g,{label:{label:i.department,width:S},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto"}})}),t.jsx(v,{}),t.jsx(b,{isThreadAllowed:p,dashboardTabKey:w({type:"details",key:`${o}.out_of_pocket.customer`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...y,entityType:`reimbursement.details.${x("customer",o,"out_of_pocket")}`},style:{borderRadius:`0 0 ${r.sp2} ${r.sp2}`},children:t.jsx(g,{label:{label:i.customer,width:S},text:l.lineDetail.customer?.name??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${r.sp2} ${r.sp2}`}})})]})]})]}),I.length!==1&&I.length===o+1&&t.jsxs(_i,{windowSize:n,children:[t.jsxs(Qe,{windowSize:n,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(We,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:be,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),I.length===1&&t.jsxs(et,{windowSize:n,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:n,children:[t.jsx(Ni,{windowSize:n,children:t.jsxs(Qe,{windowSize:n,children:[t.jsx(Xe,{children:i.total}),t.jsx(Le,{amount:je,integerStyles:H.h6Regular.cssObject,decimalStyles:H.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:n,children:t.jsx(We,{amount:Se,activities:e.remiActivities,stage:O?.code??"draft",onAddNewRule:be,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:_,signedInUserId:se?.userId,showRealTimeApproval:ce,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:pe,onSaveRealTimeApprovals:ue}})})]})]}),t.jsx(Oi,{})]}),Te||U===!0?null:t.jsxs(Di,{children:[n!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:n,"data-testid":f("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),J===!0&&Z(!1)},children:t.jsx(Et,{separatorStyle:{marginRight:r.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||de,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.delete:i.buttons.deleteReport:n==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:X==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||X==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(ee("delete"),Ie()):(ee("rejected"),Q(!0))},style:{width:s.footerButtonWidth.value(n)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?n==="small"?i.buttons.edit:i.buttons.editAndResubmit:n==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:X==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?De():(ee("approved"),he({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},style:{width:s.footerButtonWidth.value(n)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(gi,{children:t.jsxs(Ii,{windowSize:n,children:[!N&&J?t.jsx(Ot,{onClickAway:()=>Z(!1),children:t.jsxs(ji,{windowSize:n,children:[ae!=="processing"?t.jsx(le,{onClick:Ie,"data-testid":f("remi-delete-action"),children:i.buttons.deleteReport}):null,ae==="processing"?t.jsx(le,{onClick:()=>{te({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},"data-testid":f("remi-cancel-action"),children:i.buttons.cancel}):null,ae==="processing"?t.jsx(le,{onClick:()=>{te({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),M(!0)},"data-testid":f("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:n,children:[!N&&Ce?t.jsx($i,{onClick:De,"data-testid":f("remi-edit-button"),children:t.jsx(vi,{})}):null,N||St!==!0?null:t.jsx(fi,{windowSize:n,showEditIcon:Ce,children:t.jsx(xi,{onClick:()=>Z(!J),"data-testid":f("remi-more-actions-button")})})]})]})}),style:{minHeight:62}})})]}),p?t.jsx(Ft,{isDrawerOpen:ht,allowComposer:!0,drawerTitle:bt,threads:B,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??ve,isGlobalComment:!1,tab:"reimbursement"},isLoading:C,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:wt,threadResolve:xt,threadUnResolve:ft},onThreadClick:(l,o)=>Ct(l,o),onCloseAllThreadsDrawer:()=>W(!1),drawerSectionStyle:{width:"400px",backgroundColor:ge.colors.background}}):null]})},lr=e=>{const $=tt().currentTenant?.companyId,z=e.remiDetails.remiDetails?.id;if(!e.isReimbursementCommentingEnabled||z==null||$==null)return t.jsx(Ee,{...e});const _=`dashboard_${$}`;return t.jsx(kt,{roomId:_,filter:{application:"dashboard",companyId:$,entityId:z,tab:"reimbursement",isGlobalComment:!1},children:t.jsx(Ee,{...e})})},si=e=>{const $=it.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:$.tabsById.deleted,color:ne.deleted.color,bgColor:ne.deleted.bgColor,borderColor:ne.deleted.borderColor,code:"deleted"}},di=a.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -27,7 +27,7 @@ import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,b
27
27
  margin-left: ${e=>s.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
28
28
  background-color: ${Y.alertLight};
29
29
  border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
30
- `,Fe=a(Zt)`
30
+ `,Fe=a(Xt)`
31
31
  color: ${e=>e.theme.colors.brandColorGoldDark};
32
32
  `,Ke=a.div`
33
33
  width: 100%;
@@ -65,7 +65,7 @@ import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,b
65
65
  justify-content: flex-end;
66
66
  `,wi=a.div`
67
67
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
68
- `,xi=a(Xt)`
68
+ `,xi=a(Qt)`
69
69
  cursor: pointer;
70
70
  color: ${e=>e.theme.colors.hero};
71
71
  width: ${r.sp5};
@@ -81,7 +81,7 @@ import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,b
81
81
  &:hover {
82
82
  color: ${e=>e.theme.colors.primary};
83
83
  }
84
- `,vi=a(Qt)`
84
+ `,vi=a(Zt)`
85
85
  cursor: pointer;
86
86
  color: ${e=>e.theme.colors.hero};
87
87
  width: ${r.sp5};
@@ -262,7 +262,7 @@ import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,b
262
262
  margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
263
263
  margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
264
264
  width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
265
- `,Qe=a(Ht)`
265
+ `,Ze=a(Ht)`
266
266
  flex-grow: 1;
267
267
  ${e=>`${li.formTitle.style(e.windowsSize)}`};
268
268
  color: ${e=>e.theme.colors.primary};
@@ -272,7 +272,7 @@ import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,b
272
272
  flex-direction: column;
273
273
  margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
274
274
  margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
275
- `,Xe=a.div`
275
+ `,Qe=a.div`
276
276
  padding: ${r.sp3};
277
277
  display: flex;
278
278
  align-items: center;
@@ -283,7 +283,7 @@ import{_ as tt,V as t,fI as kt,h as zt,e as At,y as Mt,bF as Rt,x as m,O as it,b
283
283
  color: ${e=>e.theme.colors.hero};
284
284
  margin-bottom: ${e=>s.totalBottomMargin.valuePx(e.windowSize)};
285
285
  justify-content: space-between;
286
- `,Ze=a(qt)`
286
+ `,Xe=a(qt)`
287
287
  display: flex;
288
288
  width: 176px;
289
289
  color: ${e=>e.theme.colors.primary};
@@ -1,4 +1,4 @@
1
- import{_ as ne,y as S,e as k,a7 as le,V as e,b as a,eY as ae,a_ as de,a as u,z as d,O as _,o as s,D as ce,c2 as me,ab as Z,H as pe,x as xe,f as z,bM as he,ac as ue,au as ge,m as we}from"./index-ByqexAVU.js";import{a as j}from"./sentry-CY6wsJT-.js";import{n as t}from"./mui-Cni6P-fz.js";import{G5 as je,bL as be}from"./zeni-epic-state-cFF_NqwA.js";import{C as fe}from"./VideoPopup-BYo5bzpU-DUVlPGQp.js";import{M as v}from"./usp-line-BBd1wKwW-CuU9mWQv.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./VideoPlayer-Bc4tAd79-1S5ggZVm.js";import"./media-player-uto_Jl5G.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]="cbf1e4e9-5191-4d2d-86aa-47634cce8186",i._sentryDebugIdIdentifier="sentry-dbid-cbf1e4e9-5191-4d2d-86aa-47634cce8186")}catch{}})();const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=t.div`
1
+ import{_ as ne,y as S,e as k,a7 as le,V as e,b as a,eY as ae,a_ as de,a as u,c as d,O as _,o as s,D as me,c2 as ce,ab as Z,H as pe,x as xe,f as z,bM as he,ac as ue,au as ge,m as we}from"./index-mhb15COx.js";import{a as j}from"./sentry-Cm8I7E9J.js";import{n as t}from"./mui-G2MlMTlr.js";import{G5 as je,bL as be}from"./zeni-epic-state-lC5X-sam.js";import{C as fe}from"./VideoPopup-R3u0N_if-CaG3EJQq.js";import{M as v}from"./usp-line-BBd1wKwW-BqojtCEK.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./VideoPlayer-ZGjx_Hp7-CjY3r1rL.js";import"./media-player-OnsEq_AY.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]="3b51b4e3-f91b-4ce5-8edf-83f482ba2f7f",i._sentryDebugIdIdentifier="sentry-dbid-3b51b4e3-f91b-4ce5-8edf-83f482ba2f7f")}catch{}})();const E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",F="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -7,12 +7,12 @@ import{_ as ne,y as S,e as k,a7 as le,V as e,b as a,eY as ae,a_ as de,a as u,z a
7
7
  `,Se=t.div`
8
8
  padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
9
9
  text-align: center;
10
- `,ke=t(me)`
10
+ `,ke=t(ce)`
11
11
  max-width: 648px;
12
12
  margin: auto;
13
13
  padding: ${s.sp7} ${s.sp0};
14
14
  color: ${i=>i.theme.colors.primary};
15
- `,ze=t(ce)`
15
+ `,ze=t(me)`
16
16
  max-width: 600px;
17
17
  margin: auto;
18
18
  padding: ${s.sp5} ${s.sp0};
@@ -32,7 +32,7 @@ import{_ as ne,y as S,e as k,a7 as le,V as e,b as a,eY as ae,a_ as de,a as u,z a
32
32
  width: ${i=>i.windowSize==="small"?"auto":"376px"};
33
33
  display: flex;
34
34
  flex-direction: column;
35
- `,O=t.div`
35
+ `,G=t.div`
36
36
  width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
37
37
  overflow: hidden;
38
38
  max-width: 712px;
@@ -40,14 +40,14 @@ import{_ as ne,y as S,e as k,a7 as le,V as e,b as a,eY as ae,a_ as de,a as u,z a
40
40
  align-content: center;
41
41
  justify-content: center;
42
42
  align-items: center;
43
- `,G=t.div`
43
+ `,O=t.div`
44
44
  margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
45
45
  margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
46
46
  background: ${i=>i.theme.colors.grey3};
47
47
  border-radius: 12px;
48
48
  border: ${i=>`1px solid ${i.theme.colors.grey3}`};
49
49
  padding: 15px;
50
- `,c=t.div`
50
+ `,m=t.div`
51
51
  border-radius: ${s.sp12};
52
52
  border: ${i=>`1px solid ${i.theme.colors.grey2}`};
53
53
  padding: ${i=>i.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
@@ -66,19 +66,19 @@ import{_ as ne,y as S,e as k,a7 as le,V as e,b as a,eY as ae,a_ as de,a as u,z a
66
66
  color: ${i=>i.theme.colors.champion};
67
67
  `,$=t(he)`
68
68
  color: ${i=>i.theme.colors.champion};
69
- `,m=t.div``,p=t.div`
69
+ `,c=t.div``,p=t.div`
70
70
  padding-left: ${s.sp3};
71
71
  `,M=t(Z)`
72
72
  margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
73
73
  color: ${i=>i.theme.colors.grey1};
74
74
  `,H=t(v)`
75
75
  color: ${z.graphColor16Dark};
76
- `,W=t(v)`
77
- color: ${z.graphColor09Dark};
78
76
  `,Y=t(v)`
77
+ color: ${z.graphColor09Dark};
78
+ `,q=t(v)`
79
79
  color: ${z.success};
80
80
  `,A=t(pe)`
81
81
  margin: ${s.sp3} auto;
82
82
  max-width: 772px;
83
83
  color: ${i=>i.theme.colors.hero};
84
- `,r=_.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=_.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsx(O,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(m,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.simplestText.bold}),e.jsx(b,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(W,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(b,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(m,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(b,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(O,{windowSize:o,children:e.jsx(G,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},He=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:q,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:K,onBackClick:Q,onSetupReimbursementSuccess:C,onClickMenuIcon:X})=>{const P=ne(),[ee,ie]=j.useState(!1),[re,I]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,R=le(h?.fetchStatus.fetchState),te=je(P.loggedInUserRoleMap),w=be(P.loggedInUserRoleMap)&&!te,oe=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?B?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[R,C,h?.fetchStatus]);const D=()=>{x?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:q,"data-testid":a("remi-promo-page-video-popup")}):null,re===!0?e.jsx(ae,{onCancelClick:()=>{I(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:r.title,backgroundColor:se.colors.grey4,onBackClick:Q,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:X,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:U}):e.jsx(ke,{children:U}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:B&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:D,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(A,{children:[r.terms.createTerms1,e.jsx(d,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(d,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:D,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(A,{children:[r.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,r.terms.terms3]})]})})]})]})};export{He as default};
84
+ `,r=_.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=_.getLocalizedStrings().commonSetUp.businessVerification.terms,Te=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsx(G,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(m,{windowSize:o,children:[e.jsx(c,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx($,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Ce=()=>{const i=S(),o=k();return e.jsxs(V,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(H,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.simplestText.bold}),e.jsx(b,{children:r.simplestText.regular})]})]}),e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(Y,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(b,{children:r.aiPoweredText.regular})]})]}),e.jsxs(m,{windowSize:o,style:{width:"376px"},children:[e.jsx(c,{children:e.jsx(q,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(b,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(G,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:F,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:E,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},He=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:T,videoUrl:J,analytics:x,onSetupButtonClick:K,onCreateNewRemiButtonClick:Q,onBackClick:W,onSetupReimbursementSuccess:C,onClickMenuIcon:X})=>{const P=ne(),[ee,ie]=j.useState(!1),[re,R]=j.useState(!1),se=S(),l=k(),{remiTermsDetails:h}=i,I=le(h?.fetchStatus.fetchState),te=je(P.loggedInUserRoleMap),w=be(P.loggedInUserRoleMap)&&!te,oe=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,B=w?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{I==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&C?.()},[I,C,h?.fetchStatus]);const D=()=>{x?.trackReimbursementPromoScheduleDemo(),R(!0)};return e.jsxs($e,{children:[ee===!0?e.jsx(fe,{onCancelClick:()=>{ie(!1)},videoUrl:J,"data-testid":a("remi-promo-page-video-popup")}):null,re===!0?e.jsx(ae,{onCancelClick:()=>{R(!1)},meetingUrl:T,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(de,{title:r.title,backgroundColor:se.colors.grey4,onBackClick:W,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:X,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ze,{children:B}):e.jsx(ke,{children:B}),l==="small"?e.jsx(Te,{}):e.jsx(Ce,{}),e.jsx(ve,{children:w?e.jsx(e.Fragment,{children:U&&!oe?e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:D,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:Q,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(A,{children:[r.terms.createTerms1,e.jsx(d,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(d,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(L,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:D,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(M,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:K,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(A,{children:[r.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,r.terms.terms3]})]})})]})]})};export{He as default};
@@ -1,4 +1,4 @@
1
- import{j as i}from"./pdf-CTJ16aEe.js";import{j as z,i as ne,h as G,l as V,u as B,N as F,k as H,g as Xe,R as Je,m as E}from"./core-oEkj6b51.js";import{ct as N,LO as ae,bE as se,ye as ve,gW as Ye,LP as et,bm as ie,dp as ke,LQ as tt,I9 as nt,Ia as de,Ib as at,fI as st,L4 as it,fX as rt,y2 as ot,pc as mt,fP as lt,yO as Ae,LR as Ce,LS as ct,LT as ut,LU as dt,LV as pt,yr as bt,LW as gt,yy as pe,g1 as ht,Ld as St,ys as yt,yc as ft,LX as It,yb as Rt,LY as vt,yk as be,yC as kt,yB as At,yx as Ct,yq as Et,LZ as Ee,Dr as Bt,bn as xt,yn as Tt,z4 as wt,L_ as Dt,L$ as jt,yK as Lt,yH as ge,Kz as Ft,y9 as Ut,M0 as Be,zt as he,zB as Mt,M1 as Pt,M2 as _,M3 as _t,M4 as xe,M5 as $t,M6 as Te,M7 as we,yW as Y,bq as Nt,G5 as re,bL as oe,cA as De,cy as je,M8 as Ot,eg as Gt,KM as zt,M9 as Ht,Ma as Le,KQ as Zt,Ly as Wt,Mb as Vt,LN as Kt,zy as Se,zx as qt,Mc as Qt,Md as Xt,Me as Jt,Mf as Yt,Mg as en,Lj as tn,zo as nn,zs as an,bt as sn,FX as rn,FY as on,F5 as mn,F4 as ln,Hb as cn,bM as un,bO as dn,bN as pn,bK as bn}from"./zeni-epic-state-cFF_NqwA.js";import{y as K,N as Fe,aE as q,aG as v,js as j,jQ as Z,o as me,bj as Q,jz as k,lA as gn,kv as Ue,jO as $,lB as hn,_ as X,lC as Sn,e as yn,k2 as fn,x as In,J as Me,O as Rn,k9 as vn,l4 as kn,k4 as An,lD as Cn,kc as En}from"./index-ByqexAVU.js";import{n as Pe,S as Bn}from"./mui-Cni6P-fz.js";import ee from"./NotFoundScreen-B8XFlejE.js";import{S as ye}from"./SetupPagesScreen-C8L8QqMz.js";import{F as _e}from"./FeaturePreviewScreen-Bcvg8Bfv.js";import{a as f}from"./sentry-CY6wsJT-.js";import{u as $e}from"./useInitialThreadRequest-D1CqutXV.js";import{D as xn}from"./DrawerScreen-DokbcyFi.js";import{M as Ne}from"./MobileAppDrawer-CVmbFUtl.js";import{R as Tn}from"./ReimbursementApprovalRoutes-CoU_u8MQ.js";import{FallBackRoute as wn}from"./ScreenRoutes-Dbhh2QOI.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./analyticsHelper-BkUpwFP4.js";import"./routePaths-BnaAtOOM.js";import"./BusinessVerificationPageScreen-BSkh5puj.js";import"./ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js";import"./getLocaleForTenant-gFC-Rnfp.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]="be7e98be-38ba-4610-a70a-6a806e47521a",e._sentryDebugIdIdentifier="sentry-dbid-be7e98be-38ba-4610-a70a-6a806e47521a")}catch{}})();const Oe=e=>`/${e}/reimbursements`,Dn=H(function(e,t){const n=t.currentTenant?.companyId,o=et(e.plaidAccountViewState,"user_reimbursement_account"),l=j.getSignedInUser(),u=ie(l),c=o.plaidConnectionDetails,r=ke(e.companyState,n),a=e.tenantState.currentTenantId,s={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:a??""},m=ae(e,t.reimbursementId),d=tt(e,l?.userId??"");let I=`${l?.firstName} ${l?.lastName}`,g=!0;t.reimbursementId!=null&&(I=`${m.createdBy?.firstName??"Zeni"} ${m.createdBy?.lastName??""}`,g=l?.userId===m.createdBy?.userId);const x=e.entityAutoCompleteState?.autoCompleteText?.common,p=nt(e,"common");return{remiDetails:m,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,reimbursementId:t.reimbursementId,customerSearchAutoCompleteData:{autoCompleteText:x,entityAutoCompleteView:p},authParams:s,defaultCurrency:{currencySymbol:r?.company.companyLocaleInfo.currencySymbol??"$",currencyCode:r?.company.companyLocaleInfo.currencyCode??"USD"},companyMileageConfigInfo:r?.company.configInfo.mileageRateConfig,createdBy:I,isUserAdmin:se(t.currentTenant?.userRole??[]),isZeniUser:u,plaidConnectionDetails:c,bankNameByRouting:m.bankNameByRouting,bankAccountCreationState:d.bankAccountCreationState,bankAccounts:d.bankAccounts,analytics:k,bankAccountToCreate:m.bankAccountToCreate,fetchBankNameByRoutingStatus:m.fetchBankNameByRoutingStatus,isSignedInUserReimbursementCreator:g}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o,a=j.getSignedInUser();return{onReceiptsUpload:(s,m,d)=>{s!=null&&e(Et(s,m,d,n,a?.userId))},onExistingMerchantChange:(s,m)=>{e(be(!1,m,n,s,void 0))},fetchDuplicateReimbursement:()=>{a?.userId!=null&&e(Ct(a.userId,!0,n))},clearDuplicateReimbursementDetail:()=>{e(At())},clearRemiSaveStatus:()=>{e(kt("Not-Started",n))},onDuplicateLineClick:(s,m)=>window.open(`/${r}/reimbursement/${s}#L${m}`),onNewMerchantChange:(s,m)=>{e(be(!1,m,n,void 0,s))},removeFileFromLine:s=>{e(vt({lineId:s,reimbursementId:n}))},onAmountChanged:(s,m)=>{e(Rt(m,s,n))},updateReimbursementType:(s,m,d)=>{e(It({reimbursementId:d,lineId:m,reimbursementType:s}))},onHomeCurrencyConversionUpdate:(s,m,d)=>{e(ft({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(yt({remiDetailLocalData:s,reimbursementId:n}))},saveRemiDetails:s=>{e(pe(s,!1,n))},onUserBankDetailsUpdated:s=>{const{bankAccountSection:m}=s;e(St({data:m}))},onFetchBankName:s=>{e(ht(s))},submitRemiDetails:()=>{e(pe("pending_approval",!0,n))},discardReimbursementDetailsFromLocalStore:s=>{e(gt({reimbursementId:s}))},updateInvoiceUploadFetchState:s=>{e(bt({reimbursementId:n,fetchState:s}))},clearTentativeNameForLine:s=>{e(pt({reimbursementId:n,lineId:s}))},removeDuplicateReimbursementForLine:s=>{e(dt({lineId:s}))},onZeniLogoClick:()=>{c.toggle()},clearAddRemiAutoFields:s=>{e(ut({reimbursementId:n,lineId:s}))},redirectToReimbursementListScreen:()=>{e(Ce()),e(ct());const s=Oe(r),m=$(l.state?.pathnameStackToGoBack,l.pathname);u(s,{state:{pathnameStackToGoBack:m}})},redirectToReimbursementDetailScreen:()=>{t.navigate("../")},deleteReimbursement:()=>{n!=null&&(k.trackReimbursementDeleteReimbursement(n),e(Ae(n)))},onSaveBankAccount:()=>{a?.userId&&e(lt(a?.userId,n))},onFetchLinkTokenClick:s=>{e(mt("user_reimbursement_account",s))},onEstablishConnectionClick:s=>{e(ot(s,o.companyId,"user_reimbursement_account",void 0,"link_account_no_microdeposit"))},deleteBankAccount:s=>{e(rt(s,a?.userId??""))},onBackClickFromBankAccountPage:()=>{e(st({fetchState:"Not-Started"})),e(it())},customerSearchAutoCompleteActions:{onAutoCompleteInputChange:(s,m)=>{s.trim().length>=2?e(at({searchString:s,entityType:m,searchOrigin:"common"})):e(de("common"))},onCancelAutoComplete:()=>{e(de("common"))}}}})(gn);function fe(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Fe(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(v.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(v.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(v.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=f.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),y=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);f.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ve(!1,r,a,o)))});const R=B(h=>Ye(h.accountState,h.accountListState,"reimbursementAccountList"));if(p==null)throw Error("Can't access address page without signing in...");const w={pathname:`../${o}`,search:n.search};return b.isDeleted===!0||b.billStage=="paid"||b.billStage=="scheduled"||b.fetchState=="Not-Started"||T&&b.billStatus==="rejected"||T===!1&&b.billStage==="pending_approval"&&b.billStatus!=="rejected"?i.jsx(F,{to:w}):b.deleteStatus.fetchState==="In-Progress"||b.fetchState!=="Completed"?i.jsx(Z,{style:{backgroundColor:l.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${l.colors.dropShadowNormal}`},fetchState:b.deleteStatus.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(Q,{analytics:k,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:y??void 0,isReimbursementCommentingEnabled:s,location:n,navigate:e,currentTenant:A,reimbursementId:o,themeState:u,uncategorizedAccounts:R})]})}const jn=H(function(e,t){const n=Ee(e,t.reimbursementId),o=j.getSignedInUser(),l=ie(o),u=e.tenantState.currentTenantId,c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:u??""},r=`${n.createdBy?.firstName??"Zeni"} ${n.createdBy?.lastName??""}`;let a=!1;n?.remiActivities.length>0&&(a=Dt(n.remiActivities,jt(t.currentTenant),o));const s=se(t.currentTenant?.userRole??[]),m=o?.userId===n.createdBy?.userId;return{remiDetails:n,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,authParams:c,signedInUser:o,createdBy:r,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,isAdmin:s,showApproveRejectBtns:a,isZeniUser:l,isSignedInUserReimbursementCreator:m}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o;return{onDuplicateLineClick:(a,s)=>window.open(`/${r}/reimbursement/${a}#L${s}`),redirectToReimbursementListScreen:()=>{e(Ce());const a=Oe(r),s=$(l.state?.pathnameStackToGoBack,l.pathname);u(a,{state:{pathnameStackToGoBack:s}})},onSaveRealTimeApprovals:a=>{e(Ut(n,"reimbursement",a))},updateEditRealTimeApproverClicked:a=>{e(Ft({isEdit:a,entityId:n,entityType:"reimbursement"}))},approveOrRejectRemi:a=>{a.type==="approved"?e(ge(n,a.type,"")):e(ge(n,a.type,a.description??""))},redirectToEditableReimbursementScreen:()=>{const a=$(l.state?.pathnameStackToGoBack,l.pathname);u("./edit",{state:{pathnameStackToGoBack:a}})},deleteReimbursement:()=>{k.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?k.trackReimbursementCancelAndDeleteReimbursement(n):k.trackReimbursementCancelReimbursement(n),e(Lt(n,a))},handleZeniLogoClick:()=>{c.toggle()}}})(hn);function Ln(){const e=z(),t=ne(),n=G(),o=n.hash.substring(1),l=Fe(),{reimbursementId:u}=V(),c=j.getSignedInUser(),r=B(C=>N(C)),a=B(C=>Ee(C,u??"")),s=a.remiDetails?.reimbursementInfo.stage.code==="draft",m=$e(r?.companyId,{clearParams:a.fetchState==="Completed"&&!s}),{useFeatureGate:d}=q(),{isFeatureEnabled:I}=d(v.isLimitedCategoryForReimbursement),[g,x]=f.useState(!1),[p,A]=f.useState(!1),[b,y]=f.useState(!1),{isFeatureEnabled:T}=d(v.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(v.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),L=a.fetchState;if(f.useEffect(()=>{g||u==null?g==1&&L==="Error"&&e("page-not-found",{replace:!0}):(x(!0),t(Tt(u,!1,R)))},[g,u,t,L]),f.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?y(!1):y(a.remiActivities[0]?.isRealTimeApprovalEnabled&&(P||a.allApprovers.find(C=>C.user.userId===c?.userId)!=null||a.remiDetails?.lastUpdatedBy===c?.userId))},[a.remiActivities[0]?.isRealTimeApprovalEnabled,a.allApprovers,a.remiDetails?.lastUpdatedBy,P,r.isZeni,D,c]),f.useEffect(()=>{p||a.fetchState!="Completed"||a.remiDetails?.reimbursementInfo.stage.code=="paid"||a.remiDetails?.reimbursementInfo.stage.code=="scheduled"||w.fetchState=="Completed"||w.fetchState=="In-Progress"||(A(!0),t(ve(!1,I,R,u)),a.remiActivities[0]?.isRealTimeApprovalEnabled===!0&&t(wt(!1,!0,!0,a.lastUpdatedByUserId)))},[p,a,u,t]),c==null)throw Error("Can't access address page without signing in...");return a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState=="Completed"&&a.remiDetails.isDeleted===!1?i.jsx(F,{to:`./edit${n.search}`}):a.deleteStatus.fetchState==="In-Progress"||a.cancelAndDeleteStatus.fetchState==="In-Progress"||a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState!="Completed"||a.fetchState!="Completed"?i.jsx(Z,{fetchState:a.deleteStatus.fetchState,style:{backgroundColor:h.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${h.colors.dropShadowNormal}`}}):i.jsxs(i.Fragment,{children:[i.jsx(Q,{analytics:k,onLoad:C=>(O=>{u!=null&&O.trackReimbursementReimbursementDetails(u)})(C)}),i.jsx(jn,{initialOpenThreadRequest:m??void 0,scrollId:o,isReimbursementCommentingEnabled:T,isShowDeletedReimbursementEnabled:R,location:n,navigate:e,isRealTimeApprovalEnabled:b,currentTenant:r,reimbursementId:u??"",themeState:l})]})}const Fn=H(function(e,t){return{remisReviewView:Be(e),analytics:t.analytics}},function(e,t){return{onCloseOverlay:()=>{t.navigate("./"),e(_())},onCloseReviewItem:n=>{e(Pt(n))},onProceedForBulkActionClick:(n,o)=>{switch(n){case"send_for_approval":e(Mt());break;case"approve":e(he("approved",o??""));break;case"reject":e(he("rejected",o??""))}}}})(Sn);function Un(){const e=z(),t=B(u=>u.remisBulkActionViewState.bulkSubmissionFetchState.fetchState),{remisForReview:n}=B(u=>Be(u)),o=X(),l=o?.loggedInUserRole?.includes("admin")===!0;return f.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Fn,{navigate:e,analytics:k,isAdmin:l})}const M=Zt(),Ge="bulk-operation-update",te="reimbursement-approval-rule-update",{spendManagement:Mn,common:Ie}=Rn.getLocalizedStrings(),Re=Mn.reimbursement.bulkActions,Pn=Pe.div`
1
+ import{j as i}from"./pdf-DwfifS04.js";import{j as z,i as ne,h as G,l as V,u as B,N as F,k as H,g as Xe,R as Je,m as E}from"./core-CaikJZHD.js";import{ct as N,LO as ae,bE as se,ye as ve,gW as Ye,LP as et,bm as ie,dp as ke,LQ as tt,I9 as nt,Ia as de,Ib as at,fI as st,L4 as it,fX as rt,y2 as ot,pc as mt,fP as lt,yO as Ae,LR as Ce,LS as ct,LT as ut,LU as dt,LV as pt,yr as bt,LW as gt,yy as pe,g1 as ht,Ld as St,ys as yt,yc as ft,LX as It,yb as Rt,LY as vt,yk as be,yC as kt,yB as At,yx as Ct,yq as Et,LZ as Ee,Dr as Bt,bn as xt,yn as Tt,z4 as wt,L_ as Dt,L$ as jt,yK as Lt,yH as ge,Kz as Ft,y9 as Ut,M0 as Be,zt as he,zB as Mt,M1 as Pt,M2 as _,M3 as _t,M4 as xe,M5 as $t,M6 as Te,M7 as we,yW as Y,bq as Nt,G5 as re,bL as oe,cA as De,cy as je,M8 as Ot,eg as Gt,KM as zt,M9 as Ht,Ma as Le,KQ as Zt,Ly as Wt,Mb as Vt,LN as Kt,zy as Se,zx as qt,Mc as Qt,Md as Xt,Me as Jt,Mf as Yt,Mg as en,Lj as tn,zo as nn,zs as an,bt as sn,FX as rn,FY as on,F5 as mn,F4 as ln,Hb as cn,bM as un,bO as dn,bN as pn,bK as bn}from"./zeni-epic-state-lC5X-sam.js";import{y as K,N as Fe,aE as q,aG as v,js as j,jQ as Z,o as me,bj as Q,jz as k,lA as gn,kv as Ue,jO as $,lB as hn,_ as X,lC as Sn,e as yn,k2 as fn,x as In,J as Me,O as Rn,k9 as vn,l4 as kn,k4 as An,lD as Cn,kc as En}from"./index-mhb15COx.js";import{n as Pe,S as Bn}from"./mui-G2MlMTlr.js";import ee from"./NotFoundScreen-BBbILNsa.js";import{S as ye}from"./SetupPagesScreen-BiJM7znn.js";import{F as _e}from"./FeaturePreviewScreen-CpHWA-St.js";import{a as f}from"./sentry-Cm8I7E9J.js";import{u as $e}from"./useInitialThreadRequest-Dldme96o.js";import{D as xn}from"./DrawerScreen-DtF71b7B.js";import{M as Ne}from"./MobileAppDrawer-D7V2koAX.js";import{R as Tn}from"./ReimbursementApprovalRoutes-BHsHN-u_.js";import{FallBackRoute as wn}from"./ScreenRoutes-B0gKACTz.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./analyticsHelper-CsyUSML_.js";import"./routePaths-CDVBEe6a.js";import"./BusinessVerificationPageScreen-DVGxc_kT.js";import"./ReimbursementApprovalRuleDetailScreen-Bs2ple33.js";import"./getLocaleForTenant-DLrlmQCo.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]="be7e98be-38ba-4610-a70a-6a806e47521a",e._sentryDebugIdIdentifier="sentry-dbid-be7e98be-38ba-4610-a70a-6a806e47521a")}catch{}})();const Oe=e=>`/${e}/reimbursements`,Dn=H(function(e,t){const n=t.currentTenant?.companyId,o=et(e.plaidAccountViewState,"user_reimbursement_account"),l=j.getSignedInUser(),u=ie(l),c=o.plaidConnectionDetails,r=ke(e.companyState,n),a=e.tenantState.currentTenantId,s={userId:l?.userId??"",sessionId:l?.zeniSessionId??"",tenantId:a??""},m=ae(e,t.reimbursementId),d=tt(e,l?.userId??"");let I=`${l?.firstName} ${l?.lastName}`,g=!0;t.reimbursementId!=null&&(I=`${m.createdBy?.firstName??"Zeni"} ${m.createdBy?.lastName??""}`,g=l?.userId===m.createdBy?.userId);const x=e.entityAutoCompleteState?.autoCompleteText?.common,p=nt(e,"common");return{remiDetails:m,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,reimbursementId:t.reimbursementId,customerSearchAutoCompleteData:{autoCompleteText:x,entityAutoCompleteView:p},authParams:s,defaultCurrency:{currencySymbol:r?.company.companyLocaleInfo.currencySymbol??"$",currencyCode:r?.company.companyLocaleInfo.currencyCode??"USD"},companyMileageConfigInfo:r?.company.configInfo.mileageRateConfig,createdBy:I,isUserAdmin:se(t.currentTenant?.userRole??[]),isZeniUser:u,plaidConnectionDetails:c,bankNameByRouting:m.bankNameByRouting,bankAccountCreationState:d.bankAccountCreationState,bankAccounts:d.bankAccounts,analytics:k,bankAccountToCreate:m.bankAccountToCreate,fetchBankNameByRoutingStatus:m.fetchBankNameByRoutingStatus,isSignedInUserReimbursementCreator:g}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o,a=j.getSignedInUser();return{onReceiptsUpload:(s,m,d)=>{s!=null&&e(Et(s,m,d,n,a?.userId))},onExistingMerchantChange:(s,m)=>{e(be(!1,m,n,s,void 0))},fetchDuplicateReimbursement:()=>{a?.userId!=null&&e(Ct(a.userId,!0,n))},clearDuplicateReimbursementDetail:()=>{e(At())},clearRemiSaveStatus:()=>{e(kt("Not-Started",n))},onDuplicateLineClick:(s,m)=>window.open(`/${r}/reimbursement/${s}#L${m}`),onNewMerchantChange:(s,m)=>{e(be(!1,m,n,void 0,s))},removeFileFromLine:s=>{e(vt({lineId:s,reimbursementId:n}))},onAmountChanged:(s,m)=>{e(Rt(m,s,n))},updateReimbursementType:(s,m,d)=>{e(It({reimbursementId:d,lineId:m,reimbursementType:s}))},onHomeCurrencyConversionUpdate:(s,m,d)=>{e(ft({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(yt({remiDetailLocalData:s,reimbursementId:n}))},saveRemiDetails:s=>{e(pe(s,!1,n))},onUserBankDetailsUpdated:s=>{const{bankAccountSection:m}=s;e(St({data:m}))},onFetchBankName:s=>{e(ht(s))},submitRemiDetails:()=>{e(pe("pending_approval",!0,n))},discardReimbursementDetailsFromLocalStore:s=>{e(gt({reimbursementId:s}))},updateInvoiceUploadFetchState:s=>{e(bt({reimbursementId:n,fetchState:s}))},clearTentativeNameForLine:s=>{e(pt({reimbursementId:n,lineId:s}))},removeDuplicateReimbursementForLine:s=>{e(dt({lineId:s}))},onZeniLogoClick:()=>{c.toggle()},clearAddRemiAutoFields:s=>{e(ut({reimbursementId:n,lineId:s}))},redirectToReimbursementListScreen:()=>{e(Ce()),e(ct());const s=Oe(r),m=$(l.state?.pathnameStackToGoBack,l.pathname);u(s,{state:{pathnameStackToGoBack:m}})},redirectToReimbursementDetailScreen:()=>{t.navigate("../")},deleteReimbursement:()=>{n!=null&&(k.trackReimbursementDeleteReimbursement(n),e(Ae(n)))},onSaveBankAccount:()=>{a?.userId&&e(lt(a?.userId,n))},onFetchLinkTokenClick:s=>{e(mt("user_reimbursement_account",s))},onEstablishConnectionClick:s=>{e(ot(s,o.companyId,"user_reimbursement_account",void 0,"link_account_no_microdeposit"))},deleteBankAccount:s=>{e(rt(s,a?.userId??""))},onBackClickFromBankAccountPage:()=>{e(st({fetchState:"Not-Started"})),e(it())},customerSearchAutoCompleteActions:{onAutoCompleteInputChange:(s,m)=>{s.trim().length>=2?e(at({searchString:s,entityType:m,searchOrigin:"common"})):e(de("common"))},onCancelAutoComplete:()=>{e(de("common"))}}}})(gn);function fe(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Fe(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(v.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(v.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(v.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=f.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),y=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);f.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ve(!1,r,a,o)))});const R=B(h=>Ye(h.accountState,h.accountListState,"reimbursementAccountList"));if(p==null)throw Error("Can't access address page without signing in...");const w={pathname:`../${o}`,search:n.search};return b.isDeleted===!0||b.billStage=="paid"||b.billStage=="scheduled"||b.fetchState=="Not-Started"||T&&b.billStatus==="rejected"||T===!1&&b.billStage==="pending_approval"&&b.billStatus!=="rejected"?i.jsx(F,{to:w}):b.deleteStatus.fetchState==="In-Progress"||b.fetchState!=="Completed"?i.jsx(Z,{style:{backgroundColor:l.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${l.colors.dropShadowNormal}`},fetchState:b.deleteStatus.fetchState}):i.jsxs(i.Fragment,{children:[i.jsx(Q,{analytics:k,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:y??void 0,isReimbursementCommentingEnabled:s,location:n,navigate:e,currentTenant:A,reimbursementId:o,themeState:u,uncategorizedAccounts:R})]})}const jn=H(function(e,t){const n=Ee(e,t.reimbursementId),o=j.getSignedInUser(),l=ie(o),u=e.tenantState.currentTenantId,c={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:u??""},r=`${n.createdBy?.firstName??"Zeni"} ${n.createdBy?.lastName??""}`;let a=!1;n?.remiActivities.length>0&&(a=Dt(n.remiActivities,jt(t.currentTenant),o));const s=se(t.currentTenant?.userRole??[]),m=o?.userId===n.createdBy?.userId;return{remiDetails:n,uploadInvoiceEndPoint:`${Ue.communicationAgentMicroServiceBaseUrl}`,authParams:c,signedInUser:o,createdBy:r,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,isAdmin:s,showApproveRejectBtns:a,isZeniUser:l,isSignedInUserReimbursementCreator:m}},function(e,t){const{reimbursementId:n,currentTenant:o,location:l,navigate:u,themeState:c}=t,{tenantEmailDomain:r}=o;return{onDuplicateLineClick:(a,s)=>window.open(`/${r}/reimbursement/${a}#L${s}`),redirectToReimbursementListScreen:()=>{e(Ce());const a=Oe(r),s=$(l.state?.pathnameStackToGoBack,l.pathname);u(a,{state:{pathnameStackToGoBack:s}})},onSaveRealTimeApprovals:a=>{e(Ut(n,"reimbursement",a))},updateEditRealTimeApproverClicked:a=>{e(Ft({isEdit:a,entityId:n,entityType:"reimbursement"}))},approveOrRejectRemi:a=>{a.type==="approved"?e(ge(n,a.type,"")):e(ge(n,a.type,a.description??""))},redirectToEditableReimbursementScreen:()=>{const a=$(l.state?.pathnameStackToGoBack,l.pathname);u("./edit",{state:{pathnameStackToGoBack:a}})},deleteReimbursement:()=>{k.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?k.trackReimbursementCancelAndDeleteReimbursement(n):k.trackReimbursementCancelReimbursement(n),e(Lt(n,a))},handleZeniLogoClick:()=>{c.toggle()}}})(hn);function Ln(){const e=z(),t=ne(),n=G(),o=n.hash.substring(1),l=Fe(),{reimbursementId:u}=V(),c=j.getSignedInUser(),r=B(C=>N(C)),a=B(C=>Ee(C,u??"")),s=a.remiDetails?.reimbursementInfo.stage.code==="draft",m=$e(r?.companyId,{clearParams:a.fetchState==="Completed"&&!s}),{useFeatureGate:d}=q(),{isFeatureEnabled:I}=d(v.isLimitedCategoryForReimbursement),[g,x]=f.useState(!1),[p,A]=f.useState(!1),[b,y]=f.useState(!1),{isFeatureEnabled:T}=d(v.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(v.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),L=a.fetchState;if(f.useEffect(()=>{g||u==null?g==1&&L==="Error"&&e("page-not-found",{replace:!0}):(x(!0),t(Tt(u,!1,R)))},[g,u,t,L]),f.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?y(!1):y(a.remiActivities[0]?.isRealTimeApprovalEnabled&&(P||a.allApprovers.find(C=>C.user.userId===c?.userId)!=null||a.remiDetails?.lastUpdatedBy===c?.userId))},[a.remiActivities[0]?.isRealTimeApprovalEnabled,a.allApprovers,a.remiDetails?.lastUpdatedBy,P,r.isZeni,D,c]),f.useEffect(()=>{p||a.fetchState!="Completed"||a.remiDetails?.reimbursementInfo.stage.code=="paid"||a.remiDetails?.reimbursementInfo.stage.code=="scheduled"||w.fetchState=="Completed"||w.fetchState=="In-Progress"||(A(!0),t(ve(!1,I,R,u)),a.remiActivities[0]?.isRealTimeApprovalEnabled===!0&&t(wt(!1,!0,!0,a.lastUpdatedByUserId)))},[p,a,u,t]),c==null)throw Error("Can't access address page without signing in...");return a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState=="Completed"&&a.remiDetails.isDeleted===!1?i.jsx(F,{to:`./edit${n.search}`}):a.deleteStatus.fetchState==="In-Progress"||a.cancelAndDeleteStatus.fetchState==="In-Progress"||a.remiDetails?.reimbursementInfo.stage.code=="draft"&&w.fetchState!="Completed"||a.fetchState!="Completed"?i.jsx(Z,{fetchState:a.deleteStatus.fetchState,style:{backgroundColor:h.colors.grey5,boxShadow:`0px 2px ${me.sp1} ${h.colors.dropShadowNormal}`}}):i.jsxs(i.Fragment,{children:[i.jsx(Q,{analytics:k,onLoad:C=>(O=>{u!=null&&O.trackReimbursementReimbursementDetails(u)})(C)}),i.jsx(jn,{initialOpenThreadRequest:m??void 0,scrollId:o,isReimbursementCommentingEnabled:T,isShowDeletedReimbursementEnabled:R,location:n,navigate:e,isRealTimeApprovalEnabled:b,currentTenant:r,reimbursementId:u??"",themeState:l})]})}const Fn=H(function(e,t){return{remisReviewView:Be(e),analytics:t.analytics}},function(e,t){return{onCloseOverlay:()=>{t.navigate("./"),e(_())},onCloseReviewItem:n=>{e(Pt(n))},onProceedForBulkActionClick:(n,o)=>{switch(n){case"send_for_approval":e(Mt());break;case"approve":e(he("approved",o??""));break;case"reject":e(he("rejected",o??""))}}}})(Sn);function Un(){const e=z(),t=B(u=>u.remisBulkActionViewState.bulkSubmissionFetchState.fetchState),{remisForReview:n}=B(u=>Be(u)),o=X(),l=o?.loggedInUserRole?.includes("admin")===!0;return f.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Fn,{navigate:e,analytics:k,isAdmin:l})}const M=Zt(),Ge="bulk-operation-update",te="reimbursement-approval-rule-update",{spendManagement:Mn,common:Ie}=Rn.getLocalizedStrings(),Re=Mn.reimbursement.bulkActions,Pn=Pe.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je,f as q,x as s,a_ as Xe,L as Ye,A as Ke,eZ as Pe,de as Qe,e_ as ei,aU as ii,d4 as ti,a9 as ni,o as a,f0 as oi,m as n,bH as ai,cc as li,dX as si,f8 as Ae,f9 as je,fH as ri,a as ci,b as Ie,d as De,b8 as di,C as ui,aR as mi}from"./index-ByqexAVU.js";import{a as o}from"./sentry-CY6wsJT-.js";import{n as t}from"./mui-Cni6P-fz.js";import{cg as pi}from"./zeni-epic-state-cFF_NqwA.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-DUO2ZoU--C5vn0EeB.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="8f0d292c-6d4d-458c-9677-c242def661c3",e._sentryDebugIdIdentifier="sentry-dbid-8f0d292c-6d4d-458c-9677-c242def661c3")}catch{}})();const hi=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])},pe={title:new De("standardSemiBold","largeSemiBold"),infoLabel:new De("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:A,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),j=Le(),{formState:{errors:Z},trigger:J}=li(),I=xi(P,"mileageAmountInDenomination"),f=si(Z,I),{localData:c,updateStatus:z,mileageStatus:C}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[S,D]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||J(I)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&D(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||U(S)},[S]);const{reimbursementSetup:x}=K,{setUp:ee}=X,ie=S===!1||z.fetchState==="In-Progress"?"readonly":r,te=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ne=c&&c?.mileageUnit?c?.mileageUnit:"";return i.jsxs(yi,{windowSize:l,style:A,isActive:d&&r==null,children:[i.jsxs(Ai,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Di,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:j.mode==="dark",children:i.jsx(hi,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),i.jsxs(wi,{children:[i.jsxs(Pi,{children:[i.jsxs(ji,{children:[i.jsxs(Ii,{children:[i.jsx(Si,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(bi,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(Ae,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:je(C.code)}):null]}),i.jsxs(Ci,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(Ae,{style:{width:"max-content"},tagTitle:C.name,textColor:je(C.code)}):null,i.jsx(vi,{})]})]}),i.jsxs(Ei,{children:[i.jsxs(Ti,{children:[i.jsx(ri,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:j.colors.background,color:S||f?void 0:j.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:I,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:te,suffix:` ${x.perText} ${ne}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:E=>E!=null||r!=null,required:r==null},isDisabled:ie}),i.jsx(Vi,{children:S?i.jsx(ci,{label:x.save,"data-testid":Ie("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&R&&!f&&G?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:z.fetchState==="In-Progress"}):i.jsx(Mi,{isDisabled:r,"data-testid":Ie("edit-mileage"),onClick:E=>{E.stopPropagation(),D(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?i.jsx(Li,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(100*e.defaultMileageUnitAmount).toString()):c.description}):null]})]})]})]})}const xi=(e,m)=>`${e}.${m}`,yi=t.div`
1
+ import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je,f as q,x as s,a_ as Xe,L as Ye,A as Ke,eZ as Pe,de as Qe,e_ as ei,aU as ii,d4 as ti,a9 as ni,o as a,f0 as oi,m as n,bH as ai,cc as li,dX as si,f8 as Ae,f9 as je,fH as ri,a as ci,b as Ie,d as De,b8 as di,C as ui,aR as mi}from"./index-mhb15COx.js";import{a as o}from"./sentry-Cm8I7E9J.js";import{n as t}from"./mui-G2MlMTlr.js";import{cg as pi}from"./zeni-epic-state-lC5X-sam.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-eqwSLigx-kRVMQYF-.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="c25d8636-b08e-4e11-ad14-6da9c5ac4dd8",e._sentryDebugIdIdentifier="sentry-dbid-c25d8636-b08e-4e11-ad14-6da9c5ac4dd8")}catch{}})();const hi=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])},pe={title:new De("standardSemiBold","largeSemiBold"),infoLabel:new De("extraSmallRegular","smallRegular")};function fi({companyMileageConfigInfo:e,mileageDetails:m,analytics:$,style:A,sectionId:P,isActive:d=!0,isDisabled:r,onSaveMileageClick:G}){const l=Ve(),j=Le(),{formState:{errors:Z},trigger:J}=li(),I=xi(P,"mileageAmountInDenomination"),f=si(Z,I),{localData:c,updateStatus:z,mileageStatus:b}=m,R=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Y}=Me.getLocalizedStrings(),{reimbursement:K}=Y,[C,D]=o.useState(R),[Q,U]=o.useState(!1);o.useEffect(()=>{f||J(I)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&D(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||U(C)},[C]);const{reimbursementSetup:x}=K,{setUp:ee}=X,ie=C===!1||z.fetchState==="In-Progress"?"readonly":r,te=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ne=c&&c?.mileageUnit?c?.mileageUnit:"";return i.jsxs(yi,{windowSize:l,style:A,isActive:d&&r==null,children:[i.jsxs(Ai,{windowSize:l,children:[x.mileageHeader,d===!1?i.jsx(Di,{children:ee.comingSoon}):null]}),i.jsxs($i,{windowSize:l,children:[i.jsx(ki,{windowSize:l,isDarkMode:j.mode==="dark",children:i.jsx(hi,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),i.jsxs(wi,{children:[i.jsxs(Pi,{children:[i.jsxs(ji,{children:[i.jsxs(Ii,{children:[i.jsx(Ci,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),i.jsx(Si,{children:x.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?i.jsx(Ae,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:je(b.code)}):null]}),i.jsxs(bi,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?i.jsx(Ae,{style:{width:"max-content"},tagTitle:b.name,textColor:je(b.code)}):null,i.jsx(vi,{})]})]}),i.jsxs(Ei,{children:[i.jsxs(Ti,{children:[i.jsx(ri,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:j.colors.background,color:C||f?void 0:j.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:Q,name:I,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:te,suffix:` ${x.perText} ${ne}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:E=>E!=null||r!=null,required:r==null},isDisabled:ie}),i.jsx(Vi,{children:C?i.jsx(ci,{label:x.save,"data-testid":Ie("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&R&&!f&&G?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:z.fetchState==="In-Progress"}):i.jsx(Mi,{isDisabled:r,"data-testid":Ie("edit-mileage"),onClick:E=>{E.stopPropagation(),D(!0),U(!0),$.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?i.jsx(Li,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(100*e.defaultMileageUnitAmount).toString()):c.description}):null]})]})]})]})}const xi=(e,m)=>`${e}.${m}`,yi=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -9,12 +9,12 @@ import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,Ci=t.div`
12
+ `,bi=t.div`
13
13
  display: flex;
14
- `,Si=t.div`
14
+ `,Ci=t.div`
15
15
  ${e=>`${pe.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?q.important:e.theme.colors.primary};
17
- `,bi=t(ui)`
17
+ `,Si=t(ui)`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-start;
@@ -103,7 +103,7 @@ import{y as Le,e as Ve,a7 as O,T as Ge,c8 as Ze,O as Me,ad as $e,V as i,eI as Je
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},Ee="remiSetupPage",_="remiAccount",N="remiMileage",it=({remiSetupView:e,isDisabled:m,remiApprovalView:$,connectedAccountProvider:A,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:G,analytics:l,accountsPromoConfig:j,onBackClick:Z,onBusinessVerificationSectionClick:J,onSetupApprovalRulesSectionClick:I,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:z,updateMileageDetails:C,onUpdateAccountClick:R,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEnableRemiClick:S,onEnableRemiSuccess:D,onSaveMileageClick:Q,onClickMenuIcon:U,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,onCompanyOfficerUpdated:te,onSendForVerificationClick:ne,onSignUpClick:E})=>{const F=Le(),u=Ve(),[H,T]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:ge,updateStatus:L,accountUpdateStatus:ze,plaidConnectionDetails:oe,allBankAccounts:Re,companyRemiInfo:Ue,companyBillPayInfo:he,mileageRateConfig:Fe,isRefreshingViewInBackground:He,selectedCompanyOfficer:g}=e,{fetchState:fe,allApprovalRules:W,approvalRulesStatus:We}=$,ae=oe.link_account.updateStatus,le=oe.update_account.updateStatus,B=O(v),xe=O(L.fetchState),ye=O(ae.fetchState),we=O(le.fetchState),V=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>me(e),[e]),values:me(e)});o.useEffect(()=>{!H&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&T(!0),H&&B==="In-Progress"&&v==="Completed"&&T(!1)},[g,v,B]),o.useEffect(()=>{(B==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&ae.fetchState==="Completed"||we==="In-Progress"&&le.fetchState==="Completed")&&V.reset(me(e))},[B,v,V,e,ye,ae.fetchState,we,le.fetchState]);const Be=V.handleSubmit(Se=>{l.trackEnableReimbursement(),S()});o.useEffect(()=>{const Se=V.watch((be,{name:ve})=>{ve!=null&&be!=null&&Ze(()=>(async(de,ke)=>{const y=ke[_];if(de.includes(_)){if(de.includes("fundingAccount")){if(y.fundingAccount.selectedOption!=null&&b?.id!=y.fundingAccount.selectedOption){const w=ge.find(ue=>ue.id===y.fundingAccount.selectedOption);w!=null&&X(y.fundingAccount.selectedOption,w.accType)}}else if(y.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=y.account.selectedOption){const w=y.account.allOptions.find(ue=>ue.value===y.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),R(y.account.selectedOption,b.id,b.accType)}}else if(de.includes(N)){const w=ke[N];C(w)}})(ve,be))});return()=>{Se.unsubscribe()}}),o.useEffect(()=>{xe==="In-Progress"&&L.fetchState==="Completed"&&D()},[D,xe,L.fetchState]);const{commonSetUp:Ce,spendManagement:Oe}=Me.getLocalizedStrings(),{reimbursement:_e}=Oe,{reimbursementSetup:M}=_e,{setUp:k}=Ce,se=he?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||pi(b?.providerVerificationStatus?.code??""))&&Fe?.denominationConversions.amount!=null,re=Ue?.isReimbursementEnabled===!0,Ne=se?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,qe=v==="In-Progress"||v==="Not-Started"||fe==="In-Progress"||fe==="Not-Started",ce=F.mode==="light"?new $e(F.colors.brandColorJadeLight):new $e(F.colors.brandColorJadeDark);return i.jsxs(zi,{children:[i.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:H,onClose:()=>T(!1),style:{backgroundColor:q.drawerBackground},transitionDuration:250,children:i.jsx(gi,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,companyOfficer:g,onClose:()=>T(!1),onCompanyOfficerUpdated:te,onSendForVerificationClick:ne})}),i.jsx(Xe,{title:M.setupTitle,backgroundColor:F.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!re&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),i.jsxs(Ui,{windowSize:u,children:[i.jsx(Ri,{windowSize:u,children:Ne}),qe?i.jsx(Fi,{children:i.jsx(Ye,{size:"ExtraLarge",start:!0})}):i.jsx(Ke,{...V,children:i.jsx("form",{id:Te(Ee),onSubmit:Be,children:i.jsxs(Hi,{windowSize:u,children:[i.jsx(Pe,{onClick:()=>{H||g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!g.areAdditionalDocumentsRequestedForVerification||g.areAdditionalDocumentsSubmittedForVerification||g.userVerificationStatus?.code!=="require_info"?J?.():T(!0)},title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:i.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ce},status:he?.businessVerificationStatus,isTagLoading:He}),i.jsx(ei,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:oe,allBankAccounts:Re,allFundingAccounts:ge,sectionId:_,isDisabled:m,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEstablishConnectionSuccess:z,icon:{element:i.jsx(ii,{width:p.iconWidthHeight.valuePx(u)}),color:ce},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:E,pageName:"Reimbursement Setup",accountsPromoConfig:j}),i.jsx(fi,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:N,onSaveMileageClick:Q,analytics:l}),i.jsx(Pe,{title:W.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:W.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:i.jsx(ti,{height:p.iconWidthHeight.valuePx(u)}),color:ce},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:I,status:W.length>0?We:void 0})]})})})]}),se&&!re&&W.length>0?i.jsx(ni,{formId:Te(Ee),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||ze.fetchState==="In-Progress",isDisabled:m!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,i.jsx(oi,{isFooterRendered:se&&!re,meetingUrl:G,analytics:l,productType:"reimbursement"})]})},zi=t.div`
106
+ `,p={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},Ee="remiSetupPage",_="remiAccount",N="remiMileage",it=({remiSetupView:e,isDisabled:m,remiApprovalView:$,connectedAccountProvider:A,isAccountsEnabled:P,filesEndPoint:d,authParams:r,meetingUrl:G,analytics:l,accountsPromoConfig:j,onBackClick:Z,onBusinessVerificationSectionClick:J,onSetupApprovalRulesSectionClick:I,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:z,updateMileageDetails:b,onUpdateAccountClick:R,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEnableRemiClick:C,onEnableRemiSuccess:D,onSaveMileageClick:Q,onClickMenuIcon:U,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,onCompanyOfficerUpdated:te,onSendForVerificationClick:ne,onSignUpClick:E})=>{const F=Le(),u=Ve(),[H,T]=o.useState(!1),{fetchState:v,primaryFundingAccount:S,allFundingAccounts:ge,updateStatus:L,accountUpdateStatus:ze,plaidConnectionDetails:oe,allBankAccounts:Re,companyRemiInfo:Ue,companyBillPayInfo:he,mileageRateConfig:Fe,isRefreshingViewInBackground:He,selectedCompanyOfficer:g}=e,{fetchState:fe,allApprovalRules:W,approvalRulesStatus:We}=$,ae=oe.link_account.updateStatus,le=oe.update_account.updateStatus,B=O(v),xe=O(L.fetchState),ye=O(ae.fetchState),we=O(le.fetchState),V=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>me(e),[e]),values:me(e)});o.useEffect(()=>{!H&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&T(!0),H&&B==="In-Progress"&&v==="Completed"&&T(!1)},[g,v,B]),o.useEffect(()=>{(B==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&ae.fetchState==="Completed"||we==="In-Progress"&&le.fetchState==="Completed")&&V.reset(me(e))},[B,v,V,e,ye,ae.fetchState,we,le.fetchState]);const Be=V.handleSubmit(Ce=>{l.trackEnableReimbursement(),C()});o.useEffect(()=>{const Ce=V.watch((Se,{name:ve})=>{ve!=null&&Se!=null&&Ze(()=>(async(de,ke)=>{const y=ke[_];if(de.includes(_)){if(de.includes("fundingAccount")){if(y.fundingAccount.selectedOption!=null&&S?.id!=y.fundingAccount.selectedOption){const w=ge.find(ue=>ue.id===y.fundingAccount.selectedOption);w!=null&&X(y.fundingAccount.selectedOption,w.accType)}}else if(y.account.selectedOption!=null&&S?.id!=null&&S?.zeniAccountId!=y.account.selectedOption){const w=y.account.allOptions.find(ue=>ue.value===y.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),R(y.account.selectedOption,S.id,S.accType)}}else if(de.includes(N)){const w=ke[N];b(w)}})(ve,Se))});return()=>{Ce.unsubscribe()}}),o.useEffect(()=>{xe==="In-Progress"&&L.fetchState==="Completed"&&D()},[D,xe,L.fetchState]);const{commonSetUp:be,spendManagement:Oe}=Me.getLocalizedStrings(),{reimbursement:_e}=Oe,{reimbursementSetup:M}=_e,{setUp:k}=be,se=he?.isBusinessVerified===!0&&(S?.accType==="depositAccount"||pi(S?.providerVerificationStatus?.code??""))&&Fe?.denominationConversions.amount!=null,re=Ue?.isReimbursementEnabled===!0,Ne=se?be.setUp.setupVerifiedSubTitle:M.setupSubTitle,qe=v==="In-Progress"||v==="Not-Started"||fe==="In-Progress"||fe==="Not-Started",ce=F.mode==="light"?new $e(F.colors.brandColorJadeLight):new $e(F.colors.brandColorJadeDark);return i.jsxs(zi,{children:[i.jsx(Je,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:H,onClose:()=>T(!1),style:{backgroundColor:q.drawerBackground},transitionDuration:250,children:i.jsx(gi,{authParams:r,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ee,updateFilesEntity:ie,companyOfficer:g,onClose:()=>T(!1),onCompanyOfficerUpdated:te,onSendForVerificationClick:ne})}),i.jsx(Xe,{title:M.setupTitle,backgroundColor:F.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!re&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),i.jsxs(Ui,{windowSize:u,children:[i.jsx(Ri,{windowSize:u,children:Ne}),qe?i.jsx(Fi,{children:i.jsx(Ye,{size:"ExtraLarge",start:!0})}):i.jsx(Ke,{...V,children:i.jsx("form",{id:Te(Ee),onSubmit:Be,children:i.jsxs(Hi,{windowSize:u,children:[i.jsx(Pe,{onClick:()=>{H||g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!g.areAdditionalDocumentsRequestedForVerification||g.areAdditionalDocumentsSubmittedForVerification||g.userVerificationStatus?.code!=="require_info"?J?.():T(!0)},title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:i.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ce},status:he?.businessVerificationStatus,isTagLoading:He}),i.jsx(ei,{connectedAccountProvider:A,primaryFundingAccount:S,plaidConnectionDetails:oe,allBankAccounts:Re,allFundingAccounts:ge,sectionId:_,isDisabled:m,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Y,onUpdatePaymentAccountLoginStatus:K,onEstablishConnectionSuccess:z,icon:{element:i.jsx(ii,{width:p.iconWidthHeight.valuePx(u)}),color:ce},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:E,pageName:"Reimbursement Setup",accountsPromoConfig:j}),i.jsx(fi,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:N,onSaveMileageClick:Q,analytics:l}),i.jsx(Pe,{title:W.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:W.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:i.jsx(ti,{height:p.iconWidthHeight.valuePx(u)}),color:ce},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:I,status:W.length>0?We:void 0})]})})})]}),se&&!re&&W.length>0?i.jsx(ni,{formId:Te(Ee),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||ze.fetchState==="In-Progress",isDisabled:m!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,i.jsx(oi,{isFooterRendered:se&&!re,meetingUrl:G,analytics:l,productType:"reimbursement"})]})},zi=t.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -1 +1 @@
1
- import{_ as V,fm as M,V as _,bR as W,bS as z,bT as G,iU as K,ag as q,O as H}from"./index-ByqexAVU.js";import{a as b}from"./sentry-CY6wsJT-.js";import{GK as J}from"./zeni-epic-state-cFF_NqwA.js";import{u as Q}from"./ReviewOverlay-A1OYNSqG-9s_1ZdtP.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./mui-Cni6P-fz.js";import"./recharts-LlOU9oLm.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="98541661-6037-469c-882a-ebe9ec0a187f",e._sentryDebugIdIdentifier="sentry-dbid-98541661-6037-469c-882a-ebe9ec0a187f")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=H.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:m,onCloseReviewItem:d,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:l,bulkOperationTypeSelected:r,currentTab:f,currentSubTab:g}=e,y=!1,T=V(),p=M(T),[v,u]=b.useState(!1),[h,A]=b.useState(P(e,y,o,p)),[w,D]=b.useState(y),[j,Z]=b.useState(0),[S,F]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(j===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(P(e,!1,o,p)),()=>{clearInterval(R)}),[h.length,j,w,e.fetchState,y,e,o,p]);const $=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,E={onOkClick:c=>{u(!1);const I=e.remisForReview.map(k=>k.reimbursement);s.trackReimbursementBulkPopupConfirm(r,f,g,J(I.map(k=>k?.reimbursementTypesIncluded??[]))),m("reject",c)},onCancelClick:()=>{u(!1)}},{title:O,description:U}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,L=()=>{s.trackReimbursementBulkSubmit(r,f,g),m(r)},N={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&l==="In-Progress",isLoading:r==="reject"&&l==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:()=>{const{title:c,description:I}=X(x);F({type:"reject",title:c,description:I,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,f,g),u(!0)},style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(G,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Q,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:d,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:(()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&l==="In-Progress",isLoading:l==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:L,style:r==="send_for_approval"?{minWidth:"92px"}:{}}})(),cancelButton:N,hideCancel:C}})]})},P=(e,o,s,m)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=K(s,t.submittedBy,m);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:t.reviewStatus??""}}})},X=e=>{const{this_:o,these:s,report:m,reports:d,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",d)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",m)}},Y=(e,o,s,m)=>{const{has:d,have:t,report:i,reports:l,are:r,is:f,do_:g,does:y}=a.texts,T=o>1,p=s>1;let v="",u="";return e!=="Completed"||m?(v=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(v=n.reviewPage.reportsReviewed.title.replace("__report__",p?B.bulkActions.reports:n.report).replace("<_has_>",p?t:d),u=o===0?n.reviewPage.reportsReviewed.descriptionError.replace("__report__",p?l:i).replace("<_do_>",p?g:y):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:v,description:u}};export{_e as default};
1
+ import{_ as V,fm as M,V as _,bR as W,bS as z,bT as K,iU as G,ag as q,O as H}from"./index-mhb15COx.js";import{a as b}from"./sentry-Cm8I7E9J.js";import{GK as J}from"./zeni-epic-state-lC5X-sam.js";import{u as Q}from"./ReviewOverlay-Cxkp85Kw-BxuvLEpC.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./mui-G2MlMTlr.js";import"./recharts-3tylCZU1.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="e28442ba-b136-40aa-aa88-1ffd7dd65d9a",e._sentryDebugIdIdentifier="sentry-dbid-e28442ba-b136-40aa-aa88-1ffd7dd65d9a")}catch{}})();const{common:a,spendManagement:{reimbursement:B}}=H.getLocalizedStrings(),n=B.bulkActions;let R;const _e=({remisReviewView:e,isAdmin:o,analytics:s,onProceedForBulkActionClick:d,onCloseReviewItem:m,onCloseOverlay:t})=>{const{fetchState:i,bulkSubmissionFetchState:l,bulkOperationTypeSelected:r,currentTab:f,currentSubTab:g}=e,y=!1,T=V(),p=M(T),[v,u]=b.useState(!1),[h,A]=b.useState(P(e,y,o,p)),[w,D]=b.useState(y),[j,Z]=b.useState(0),[S,F]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(j===h.length&&w&&(D(!1),clearInterval(R)),e.fetchState==="Completed"&&A(P(e,!1,o,p)),()=>{clearInterval(R)}),[h.length,j,w,e.fetchState,y,e,o,p]);const $=h.length,x=h.filter(c=>c.reviewStatus.code!=="error").length,E={onOkClick:c=>{u(!1);const I=e.remisForReview.map(k=>k.reimbursement);s.trackReimbursementBulkPopupConfirm(r,f,g,J(I.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",c)},onCancelClick:()=>{u(!1)}},{title:O,description:U}=Y(i,x,$,w),C=e.fetchState==="Completed"&&x===0,L=()=>{s.trackReimbursementBulkSubmit(r,f,g),d(r)},N={label:r==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:r!=="reject"&&l==="In-Progress",isLoading:r==="reject"&&l==="In-Progress",reverseSpinnerColor:!1,onClick:r==="send_for_approval"?t:()=>{const{title:c,description:I}=X(x);F({type:"reject",title:c,description:I,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),s.trackReimbursementBulkSubmit(r,f,g),u(!0)},style:r==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[v?_.jsx(W,{titleComponent:_.jsx(K,{children:S.title}),descriptionComponent:_.jsx(z,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:E,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Q,{title:O,description:{content:U,isError:e.fetchState==="Completed"&&x===0},reviewItems:h,onCloseReviewItem:m,onCloseOverlay:t,showFooter:e.fetchState==="Completed"&&!w,footerProps:{primaryButton:(()=>{let c=a.footer.approve;return C?c=a.texts.close:r==="send_for_approval"&&(c=a.footer.submit),{label:c,isDisabled:i!=="Completed"||r==="reject"&&l==="In-Progress",isLoading:l==="In-Progress"&&(r==="send_for_approval"||r==="approve"),onClick:C?t:L,style:r==="send_for_approval"?{minWidth:"92px"}:{}}})(),cancelButton:N,hideCancel:C}})]})},P=(e,o,s,d)=>{const m=e.fetchState==="In-Progress";return e.remisForReview.map(t=>{const i=G(s,t.submittedBy,d);return{id:t.transactionId,leftSideText:{title:t.reimbursement?.reportTitle!=null?t.reimbursement.reportTitle:B.reimbursementDetail.newReimbursementTitle,subTitle:i!=null?`${a.by} ${i?.firstName} ${i?.lastName}`:a.strings.empty},rightSideText:{title:q("0,0.[00]",t.reimbursement?.amount?.amount,t.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:t.reviewInfoMessage??""},reviewStatus:{isLoading:m,code:t.reviewStatus??""}}})},X=e=>{const{this_:o,these:s,report:d,reports:m,payment:t,payments:i}=a.texts;return e>1?{title:n.popUps.reject.title.replace("__report__",n.reports),description:n.popUps.reject.description.replaceAll("<_this_>",s).replaceAll("<_payment_>",i).replaceAll("__report__",m)}:{title:n.popUps.reject.title.replace("__report__",n.report),description:n.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",t).replaceAll("__report__",d)}},Y=(e,o,s,d)=>{const{has:m,have:t,report:i,reports:l,are:r,is:f,do_:g,does:y}=a.texts,T=o>1,p=s>1;let v="",u="";return e!=="Completed"||d?(v=n.reviewPage.reportsReviewing.title.replace("__report__",p?l:i),u=n.reviewPage.reportsReviewing.description.replace("__report__",p?l:i)):(v=n.reviewPage.reportsReviewed.title.replace("__report__",p?B.bulkActions.reports:n.report).replace("<_has_>",p?t:m),u=o===0?n.reviewPage.reportsReviewed.descriptionError.replace("__report__",p?l:i).replace("<_do_>",p?g:y):`${o}/${s} ${n.reviewPage.reportsReviewed.description.replace("__report__",s>1?l:i).replace("<_is_>",T?r:f)}`),{title:v,description:u}};export{_e as default};
@@ -1,4 +1,4 @@
1
- import{y as h,V as r,a4 as a,an as f,am as m,O as y,b as j,aa as l,b0 as g,C as u,o as c}from"./index-ByqexAVU.js";import{n as s}from"./mui-Cni6P-fz.js";import{a as d}from"./sentry-CY6wsJT-.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]="db413ffe-96a3-45e6-a289-13f06584e962",e._sentryDebugIdIdentifier="sentry-dbid-db413ffe-96a3-45e6-a289-13f06584e962")}catch{}})();function w({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!=0,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!=0,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=s(l)`
1
+ import{y as h,V as r,a4 as a,an as f,am as m,O as y,b as j,aa as l,b0 as g,C as u,o as c}from"./index-mhb15COx.js";import{n as s}from"./mui-G2MlMTlr.js";import{a as d}from"./sentry-Cm8I7E9J.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]="db413ffe-96a3-45e6-a289-13f06584e962",e._sentryDebugIdIdentifier="sentry-dbid-db413ffe-96a3-45e6-a289-13f06584e962")}catch{}})();function w({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!=0,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!=0,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=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function E({dimension:e,animated:o}){const t=h();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 T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:n,width:i})=>r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const C=s(l)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{y as X,e as de,bF as fe,T as be,V as t,k as xe,bG as te,A as ye,x as S,a9 as _e,o as r,bH as we,H as he,O as ee,bI as $e,C as ve,S as Q,b0 as ke,m,ad as Ce,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-ByqexAVU.js";import{a as u,b as ue}from"./sentry-CY6wsJT-.js";import{n as h}from"./mui-Cni6P-fz.js";import{t as O,n as De}from"./CollapsableReportTable-D7zD4-h0-CXEJdn3k.js";import{t as Pe}from"./filter-cZIFUNvj-Cn5LR_-W.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="3be4da45-5636-440e-855f-4115816e8348",e._sentryDebugIdIdentifier="sentry-dbid-3be4da45-5636-440e-855f-4115816e8348")}catch{}})();const z=ee.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;async function ro(e,i,n){const s=ee.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(function(o){return{locale_id:o.localeId,show_negative_amount_in_parenthesis:o.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:o.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:o.filterAccountGroupsWithNilBalances,include_cover_page:o.includeCoverPage,company_name:o.companyName,statement_file_type:o.statementFileType,statements:o.statements,first_month_of_fy:o.firstMonthOfFY,book_close_date:o.bookCloseDate!=null?o.bookCloseDate.format(z):void 0,timeframe:o.timeframe,additional_balances:o.additionalBalances,format:o.format,balances_filter:Te(o.balancesFilter),account_view_mode:o.accountViewMode,classes_to_filter_out:o.classesToFilterOut,data_available:Fe(o.dataAvailable),is_zeni_coa_used:o.isZeniCOAUsed,class_view_layout:o.accountViewMode==="classes"?o.classViewLayout:void 0}}(n)))}`;try{const o=await je({urlEndPoint:l,authParams:i,fileType:n.statementFileType});if(o.ok){const y=Ne(o.headers,s.defaultFileName),_=await o.arrayBuffer();Ie(_,y)}else console.error(`${s.reportErrorMessage} ${o.statusText}`)}catch(o){console.error(`${s.reportErrorMessage} ${JSON.stringify(o)}`)}}const Be=h.div`
1
+ import{y as X,e as de,bF as fe,T as be,V as t,k as xe,bG as te,A as ye,x as S,a9 as _e,o as r,bH as we,H as he,O as ee,bI as $e,C as ve,S as Q,b0 as Ce,m,ad as ke,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-mhb15COx.js";import{a as u,b as ue}from"./sentry-Cm8I7E9J.js";import{n as h}from"./mui-G2MlMTlr.js";import{t as O,n as De}from"./CollapsableReportTable-gy7Ue_fk-Cp0GdxMJ.js";import{t as Pe}from"./filter-cZIFUNvj-CWbeOwgA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="c82f7396-fc92-423b-a148-1ce5429a147b",e._sentryDebugIdIdentifier="sentry-dbid-c82f7396-fc92-423b-a148-1ce5429a147b")}catch{}})();const z=ee.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Te=e=>({this_period:{start_date:e.thisPeriod.startDate.format(z),end_date:e.thisPeriod.endDate.format(z)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(z),end_date:e.endDate.format(z)}:void 0;async function ro(e,i,n){const s=ee.getLocalizedStrings().downloadReport,l=`${e}?query=${encodeURIComponent(JSON.stringify(function(o){return{locale_id:o.localeId,show_negative_amount_in_parenthesis:o.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:o.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:o.filterAccountGroupsWithNilBalances,include_cover_page:o.includeCoverPage,company_name:o.companyName,statement_file_type:o.statementFileType,statements:o.statements,first_month_of_fy:o.firstMonthOfFY,book_close_date:o.bookCloseDate!=null?o.bookCloseDate.format(z):void 0,timeframe:o.timeframe,additional_balances:o.additionalBalances,format:o.format,balances_filter:Te(o.balancesFilter),account_view_mode:o.accountViewMode,classes_to_filter_out:o.classesToFilterOut,data_available:Fe(o.dataAvailable),is_zeni_coa_used:o.isZeniCOAUsed,class_view_layout:o.accountViewMode==="classes"?o.classViewLayout:void 0}}(n)))}`;try{const o=await je({urlEndPoint:l,authParams:i,fileType:n.statementFileType});if(o.ok){const y=Ne(o.headers,s.defaultFileName),_=await o.arrayBuffer();Ie(_,y)}else console.error(`${s.reportErrorMessage} ${o.statusText}`)}catch(o){console.error(`${s.reportErrorMessage} ${JSON.stringify(o)}`)}}const Be=h.div`
2
2
  padding: 0 ${r.sp3} 0 ${r.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};
@@ -20,16 +20,16 @@ import{y as X,e as de,bF as fe,T as be,V as t,k as xe,bG as te,A as ye,x as S,a9
20
20
  :hover {
21
21
  color: ${e=>e.theme.colors.primary};
22
22
  }
23
- `,Ee=ue.memo(e=>{const{value:i,onClick:n}=e,s=X();return t.jsxs(Be,{onClick:n,children:[t.jsx(Le,{style:{color:s.colors.primary},children:i}),t.jsx(Ae,{})]})});function Me({backgroundColor:e,foregroundColor:i,animated:n,width:s,height:l}){return t.jsxs(ke,{speed:2,width:s,height:l,viewBox:`0 0 ${s} ${l}`,animate:n!=0,backgroundColor:e,foregroundColor:i,style:{marginBottom:r.sp2},children:[t.jsx("rect",{x:"45",y:m[3],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:m[8],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:m[4]})]})}function pe({nestedClass:e,isLastNode:i,config:n,parentNodeIDs:s}){const l=O("checkbox_and_name_only",[],e.classId[0]),o={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return o.children=e.children.map((y,_)=>pe({nestedClass:y,config:n,isLastNode:_===e.children.length-1,parentNodeIDs:[...s,l]})),o}function He(e,i){const n=e.map((s,l)=>{const o=O("checkbox_and_name_only",[],s.classId[0]),y={children:[],id:o,isLastNode:s.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:s.className,data:s,numOfBalances:0},config:i}},_=s.children.map(D=>pe({nestedClass:D,config:i,isLastNode:l===s.children.length-1,parentNodeIDs:[o]}));return y.children.push(..._),y});return{config:i,headerNodes:[],contentNodes:[...n]}}function Re(e,i){Object.assign(e.config,i);const n=e.contentNodes;return n.forEach(s=>me(s,i)),{config:i,headerNodes:[],contentNodes:[...n]}}function me(e,i){Object.assign(e.reportElementData.config,i),e.children.forEach(n=>me(n,i))}const se={contentPaddingLeft:new S(m[3],m[3],m[2]),contentPaddingRight:new S(m[3],m[3],m[2])},Ve=h.div`
23
+ `,Ee=ue.memo(e=>{const{value:i,onClick:n}=e,s=X();return t.jsxs(Be,{onClick:n,children:[t.jsx(Le,{style:{color:s.colors.primary},children:i}),t.jsx(Ae,{})]})});function Me({backgroundColor:e,foregroundColor:i,animated:n,width:s,height:l}){return t.jsxs(Ce,{speed:2,width:s,height:l,viewBox:`0 0 ${s} ${l}`,animate:n!=0,backgroundColor:e,foregroundColor:i,style:{marginBottom:r.sp2},children:[t.jsx("rect",{x:"45",y:m[3],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:m[8],rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"96",rx:"5",ry:"5",width:"120",height:m[4]}),t.jsx("rect",{x:"45",y:"136",rx:"5",ry:"5",width:"120",height:m[4]})]})}function pe({nestedClass:e,isLastNode:i,config:n,parentNodeIDs:s}){const l=O("checkbox_and_name_only",[],e.classId[0]),o={children:[],id:l,isLastNode:i,reportElementData:{element:{kind:"checkbox_and_name_only",title:e.className,data:e,numOfBalances:0},config:n}};return o.children=e.children.map((y,_)=>pe({nestedClass:y,config:n,isLastNode:_===e.children.length-1,parentNodeIDs:[...s,l]})),o}function He(e,i){const n=e.map((s,l)=>{const o=O("checkbox_and_name_only",[],s.classId[0]),y={children:[],id:o,isLastNode:s.children.length!==0,reportElementData:{element:{kind:"checkbox_and_name_only",title:s.className,data:s,numOfBalances:0},config:i}},_=s.children.map(D=>pe({nestedClass:D,config:i,isLastNode:l===s.children.length-1,parentNodeIDs:[o]}));return y.children.push(..._),y});return{config:i,headerNodes:[],contentNodes:[...n]}}function Re(e,i){Object.assign(e.config,i);const n=e.contentNodes;return n.forEach(s=>me(s,i)),{config:i,headerNodes:[],contentNodes:[...n]}}function me(e,i){Object.assign(e.reportElementData.config,i),e.children.forEach(n=>me(n,i))}const se={contentPaddingLeft:new S(m[3],m[3],m[2]),contentPaddingRight:new S(m[3],m[3],m[2])},Ve=h.div`
24
24
  height: ${e=>e.height}px;
25
25
  width: 100%;
26
- `,C={width:new S(350,400,400),height:new S(165,165,165),buttonWidth:new S(62,62),buttonHeight:new S(m[5],m[5]),containerWidth:new S(150,400,400)},ze=h.div`
26
+ `,k={width:new S(350,400,400),height:new S(165,165,165),buttonWidth:new S(62,62),buttonHeight:new S(m[5],m[5]),containerWidth:new S(150,400,400)},ze=h.div`
27
27
  position: relative;
28
28
  pointer-events: ${e=>e.isDisabled===!0?"none":"initial"};
29
29
  `,We=h.div`
30
30
  display: flex;
31
31
  flex-direction: column;
32
- width: ${e=>C.containerWidth.valuePx(e.windowSize)};
32
+ width: ${e=>k.containerWidth.valuePx(e.windowSize)};
33
33
  `,Ye=h(we)`
34
34
  display: flex;
35
35
  flex-direction: row;
@@ -148,4 +148,4 @@ import{y as X,e as de,bF as fe,T as be,V as t,k as xe,bG as te,A as ye,x as S,a9
148
148
  margin-left: ${r.sp5};
149
149
  margin-top: -12px;
150
150
  color: ${e=>e.theme.colors.hero};
151
- `,{reportViewSelector:I,common:{footer:ie}}=ee.getLocalizedStrings(),le="tableViewSelector",ce=e=>`${e}_form`;function io({reportId:e,firstMonthOfFY:i,nodes:n,classesListFetchState:s,selectedView:l,classesToBeFilteredOut:o,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:D,isClassViewDisabled:J,downloadPage:B,showAccountGroups:L=!0,onResyncReports:U,isPageFetchInProgress:P=!1,lastRefreshSuccessTime:w}){const A=X(),b=de(),[E,M]=u.useState(!1),[g,H]=u.useState(l),[T,j]=u.useState({}),R=(a,p)=>(a.forEach(x=>{p.push(x.classId),p=R(x.children,p)}),p),F=R(n,[]),[k,$]=u.useState(g==="classes"?o:F),W=s!=="Completed"||g==="classes"&&k.length===F.length,Y=u.useRef(!1),[q,d]=u.useState(!1),c=u.useRef(a=>{a&&!Y.current&&(Y.current=!0,d(!0))});fe({componentName:`reports.${e}`,enabled:q});const f=a=>a==="classes"?I.classes.label:L===!0?I.accountGroups.label:I.accounts.label,v=be({mode:"all"}),K=v.handleSubmit(()=>{M(!1),g==="classes"?D?.("classes",k):D?.("account_group")}),G=a=>{if(H(a),a==="classes")j({}),$([]);else{$(F);let p={};n.forEach(x=>{const N=O("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[N]:!1})}),j(p)}},oe=()=>{E===!0&&Z(),M(!E);let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=l==="account_group"||k.find(N=>N[0]===p.classId[0])!==void 0?Object.assign({},a,{[x]:!1}):Object.assign({},a,{[x]:!0})}),j(a)},Z=()=>{M(!1),H(l),$(o)};return u.useEffect(()=>{if(s==="Completed"&&g==="account_group"){let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=Object.assign({},a,{[x]:!1})}),j(a)}},[s]),t.jsx(xe,{onClickAway:Z,children:t.jsxs(ze,{ref:c.current,isDisabled:J??!1,children:[B===!0?t.jsx(Ee,{value:f(l),onClick:()=>{_?.(),oe()}}):t.jsxs(We,{windowSize:b,children:[t.jsxs(Ye,{onClick:a=>{a.preventDefault(),_?.(),oe()},children:[t.jsx(Ge,{className:"dropdownIcon"}),f(l)]}),l==="classes"?t.jsx(Ke,{onClick:()=>{P===!1&&U?.()},children:P?I.generatingReportByClass:t.jsxs(t.Fragment,{children:[w&&`${te(w)}`,t.jsx(Qe,{})]})}):null]}),E?t.jsx(ye,{...v,children:t.jsx("form",{id:ce(le),onSubmit:K,children:t.jsxs(Je,{width:C.width.value(b),children:[t.jsx(ne,{checked:g==="account_group",children:t.jsxs(ae,{onClick:()=>g!=="account_group"?G("account_group"):null,children:[t.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:a=>G(a.currentTarget.value),checked:g==="account_group",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:L===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),t.jsx(Ze,{}),t.jsxs(ne,{checked:g==="classes",children:[t.jsxs(ae,{onClick:()=>s==="Completed"?G("classes"):null,children:[t.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:a=>s==="Completed"?G(a.currentTarget.value):null,checked:g==="classes",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:I.classes.dropdownLabel})]}),P||s!=="Completed"?null:t.jsx(Xe,{children:w&&`${te(w)}`}),s==="Completed"?t.jsx(Ue,{id:"sectionformcontainer",children:t.jsx(eo,{reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:k,maxTreeHeightPx:353,selectedView:g,nodeOpenStatus:T,showClassAccountNumber:y,onToggleCheck:(a,p,x)=>{if(x===!0&&(H("classes"),$(F)),p===!0){const N=O("checkbox_and_name_only",[],a[0]);T[N]=!0,j(T),$(V=>V.filter(ge=>ge[0]!==a[0]))}else{const N=O("checkbox_and_name_only",[],a[0]);T[N]=!1,k.find(V=>V[0]===a[0])===void 0&&$(V=>[...V,a])}}})}):t.jsx(Me,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:C.width.value(b),height:C.height.value(b),animated:!0})]}),t.jsx(qe,{children:t.jsx(_e,{formId:ce(le),primaryBtn:{label:ie.save,style:{width:C.buttonWidth.valuePx(b),height:C.buttonHeight.valuePx(b)},isLoading:!1,isDisabled:W,size:"small"},showCancel:!0,cancelBtn:{label:ie.cancel,style:{width:C.buttonWidth.valuePx(b),height:C.buttonHeight.valuePx(b)},onClick:Z,size:"small",shouldResetOnCancel:!0},style:{padding:r.sp3}})})]})})}):null]})})}const eo=ue.memo(({reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:s,selectedView:l,showClassAccountNumber:o,scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:B,maxTreeHeightPx:L})=>{const U=X(),P=de(),[w,A]=u.useState(void 0),[b,E]=u.useState(!1),[M,g]=u.useState({}),[H,T]=u.useState(void 0),[j,R]=u.useState(l),F=d=>l==="account_group"||s?.length>0&&s.find(c=>c[0]===d[0])!=null,k=(d,c)=>{const f=$(d);for(const v of f.children)B?.(v.classId,c),k(v.classId,c)},$=d=>{let c=n.filter(f=>f.classId[0]===d[d.length-1])[0];for(let f=d.length-2;f>=0;f--)c=c.children.filter(v=>v.classId[0]===d[f])[0];return c};u.useEffect(()=>{b&&(d=>{if(d.length>1){const c=$(d.slice(1));let f=!1;for(const v of c.children)if(s.find(K=>K[0]===v.classId[0])===void 0){f=!0;break}B?.(c.classId,f===!0),g(c.classId)}})(M)}),u.useEffect(()=>{const d={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:"none",firstMonthOfFY:i,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:F,showClassAccountNumber:o};if(w!=null&&Q(H,n)&&Q(j,l)&&b!==!0){const c=Re(w,d);A(c),R(l)}else{const c=He(n,d);T(n),A(c),R(l)}},[n,l,s]);const[W,Y]=u.useState(5),q=L!=null?Math.min(W,L):W;return w!=null?t.jsx(Ve,{height:q,children:t.jsx(De,{backgroundColor:l==="classes"?new Ce(U.colors.background):void 0,rootNodes:w,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(P),right:se.contentPaddingRight.value(P)},scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:(d,c)=>{E(!0),g(d),B?.(d,c,l==="account_group"||void 0),k(d,c)},onReportTableHeightChanged:d=>{const c=d+m[6];Y(c)}})}):null},Q);export{io as b,ro as x};
151
+ `,{reportViewSelector:I,common:{footer:ie}}=ee.getLocalizedStrings(),le="tableViewSelector",ce=e=>`${e}_form`;function io({reportId:e,firstMonthOfFY:i,nodes:n,classesListFetchState:s,selectedView:l,classesToBeFilteredOut:o,showClassAccountNumber:y,onOpenAccountViewMode:_,onSaveClick:D,isClassViewDisabled:J,downloadPage:B,showAccountGroups:L=!0,onResyncReports:U,isPageFetchInProgress:P=!1,lastRefreshSuccessTime:w}){const A=X(),b=de(),[E,M]=u.useState(!1),[g,H]=u.useState(l),[T,j]=u.useState({}),R=(a,p)=>(a.forEach(x=>{p.push(x.classId),p=R(x.children,p)}),p),F=R(n,[]),[C,$]=u.useState(g==="classes"?o:F),W=s!=="Completed"||g==="classes"&&C.length===F.length,Y=u.useRef(!1),[q,d]=u.useState(!1),c=u.useRef(a=>{a&&!Y.current&&(Y.current=!0,d(!0))});fe({componentName:`reports.${e}`,enabled:q});const f=a=>a==="classes"?I.classes.label:L===!0?I.accountGroups.label:I.accounts.label,v=be({mode:"all"}),K=v.handleSubmit(()=>{M(!1),g==="classes"?D?.("classes",C):D?.("account_group")}),G=a=>{if(H(a),a==="classes")j({}),$([]);else{$(F);let p={};n.forEach(x=>{const N=O("checkbox_and_name_only",[],x.classId[0]);p=Object.assign({},p,{[N]:!1})}),j(p)}},oe=()=>{E===!0&&Z(),M(!E);let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=l==="account_group"||C.find(N=>N[0]===p.classId[0])!==void 0?Object.assign({},a,{[x]:!1}):Object.assign({},a,{[x]:!0})}),j(a)},Z=()=>{M(!1),H(l),$(o)};return u.useEffect(()=>{if(s==="Completed"&&g==="account_group"){let a={};n.forEach(p=>{const x=O("checkbox_and_name_only",[],p.classId[0]);a=Object.assign({},a,{[x]:!1})}),j(a)}},[s]),t.jsx(xe,{onClickAway:Z,children:t.jsxs(ze,{ref:c.current,isDisabled:J??!1,children:[B===!0?t.jsx(Ee,{value:f(l),onClick:()=>{_?.(),oe()}}):t.jsxs(We,{windowSize:b,children:[t.jsxs(Ye,{onClick:a=>{a.preventDefault(),_?.(),oe()},children:[t.jsx(Ge,{className:"dropdownIcon"}),f(l)]}),l==="classes"?t.jsx(Ke,{onClick:()=>{P===!1&&U?.()},children:P?I.generatingReportByClass:t.jsxs(t.Fragment,{children:[w&&`${te(w)}`,t.jsx(Qe,{})]})}):null]}),E?t.jsx(ye,{...v,children:t.jsx("form",{id:ce(le),onSubmit:K,children:t.jsxs(Je,{width:k.width.value(b),children:[t.jsx(ne,{checked:g==="account_group",children:t.jsxs(ae,{onClick:()=>g!=="account_group"?G("account_group"):null,children:[t.jsx("input",{type:"radio",value:"account_group",id:"accountGroups",name:"formgroup",onChange:a=>G(a.currentTarget.value),checked:g==="account_group",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:L===!0?I.accountGroups.dropdownLabel:I.accounts.dropdownLabel})]})}),t.jsx(Ze,{}),t.jsxs(ne,{checked:g==="classes",children:[t.jsxs(ae,{onClick:()=>s==="Completed"?G("classes"):null,children:[t.jsx("input",{type:"radio",value:"classes",id:"classes",name:"formgroup",onChange:a=>s==="Completed"?G(a.currentTarget.value):null,checked:g==="classes",disabled:s!=="Completed"}),t.jsx(re,{disabled:s!=="Completed",children:I.classes.dropdownLabel})]}),P||s!=="Completed"?null:t.jsx(Xe,{children:w&&`${te(w)}`}),s==="Completed"?t.jsx(Ue,{id:"sectionformcontainer",children:t.jsx(eo,{reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:C,maxTreeHeightPx:353,selectedView:g,nodeOpenStatus:T,showClassAccountNumber:y,onToggleCheck:(a,p,x)=>{if(x===!0&&(H("classes"),$(F)),p===!0){const N=O("checkbox_and_name_only",[],a[0]);T[N]=!0,j(T),$(V=>V.filter(ge=>ge[0]!==a[0]))}else{const N=O("checkbox_and_name_only",[],a[0]);T[N]=!1,C.find(V=>V[0]===a[0])===void 0&&$(V=>[...V,a])}}})}):t.jsx(Me,{backgroundColor:A.colors.grey3,foregroundColor:A.colors.grey4,width:k.width.value(b),height:k.height.value(b),animated:!0})]}),t.jsx(qe,{children:t.jsx(_e,{formId:ce(le),primaryBtn:{label:ie.save,style:{width:k.buttonWidth.valuePx(b),height:k.buttonHeight.valuePx(b)},isLoading:!1,isDisabled:W,size:"small"},showCancel:!0,cancelBtn:{label:ie.cancel,style:{width:k.buttonWidth.valuePx(b),height:k.buttonHeight.valuePx(b)},onClick:Z,size:"small",shouldResetOnCancel:!0},style:{padding:r.sp3}})})]})})}):null]})})}const eo=ue.memo(({reportId:e,firstMonthOfFY:i,nestedClassHierarchy:n,classesToBeFilteredOut:s,selectedView:l,showClassAccountNumber:o,scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:B,maxTreeHeightPx:L})=>{const U=X(),P=de(),[w,A]=u.useState(void 0),[b,E]=u.useState(!1),[M,g]=u.useState({}),[H,T]=u.useState(void 0),[j,R]=u.useState(l),F=d=>l==="account_group"||s?.length>0&&s.find(c=>c[0]===d[0])!=null,C=(d,c)=>{const f=$(d);for(const v of f.children)B?.(v.classId,c),C(v.classId,c)},$=d=>{let c=n.filter(f=>f.classId[0]===d[d.length-1])[0];for(let f=d.length-2;f>=0;f--)c=c.children.filter(v=>v.classId[0]===d[f])[0];return c};u.useEffect(()=>{b&&(d=>{if(d.length>1){const c=$(d.slice(1));let f=!1;for(const v of c.children)if(s.find(K=>K[0]===v.classId[0])===void 0){f=!0;break}B?.(c.classId,f===!0),g(c.classId)}})(M)}),u.useEffect(()=>{const d={reportId:e,displayOrder:"ascending_date",reportFormat:"more_detailed",mode:"none",firstMonthOfFY:i,filterAccountsWithNilBalances:"off",filterAccountGroupsWithNilBalances:"off",showNegativeAmountInParenthesis:!1,isClassToBeFilteredOut:F,showClassAccountNumber:o};if(w!=null&&Q(H,n)&&Q(j,l)&&b!==!0){const c=Re(w,d);A(c),R(l)}else{const c=He(n,d);T(n),A(c),R(l)}},[n,l,s]);const[W,Y]=u.useState(5),q=L!=null?Math.min(W,L):W;return w!=null?t.jsx(Ve,{height:q,children:t.jsx(De,{backgroundColor:l==="classes"?new ke(U.colors.background):void 0,rootNodes:w,type:"name_only",compareMode:"compare_mode_amount",isSticky:{isStickyHeader:!1,isStickyName:!1},treeNodePadding:{left:se.contentPaddingLeft.value(P),right:se.contentPaddingRight.value(P)},scrollPosition:y,onScroll:_,nodeOpenStatus:D,onNodeCollapseToggled:J,onToggleCheck:(d,c)=>{E(!0),g(d),B?.(d,c,l==="account_group"||void 0),C(d,c)},onReportTableHeightChanged:d=>{const c=d+m[6];Y(c)}})}):null},Q);export{io as b,ro as x};