@zeniai/web-app-ui 4.14.33-dev → 4.14.33-prod

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 (347) hide show
  1. package/dist/assets/{ACHDetailsPage-DKTSwNyl-CDIFOfdq.js → ACHDetailsPage-DKTSwNyl-TXl1b9xz.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BzTlSxeg-BuDeNPSy.js → AIPerformancePage-BzTlSxeg-BS_hlzNx.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-CrEEthms-45HqRER7.js → AccountInfoPage-CrEEthms-CShh3lti.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B0ZnsyrQ-BWluBgsD.js → AccountInfoPageContent-B0ZnsyrQ-KbE96BJf.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-B6A-nGIq-Dg3p8NEN.js → AccountLockedInfoModal-B6A-nGIq-D-IFTFOu.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BTmjrd8b-CvWGr60v.js → AccountReconDetailsDrawerPage-BTmjrd8b-DiiqLtA-.js} +1 -1
  7. package/dist/assets/{AccountRow-C-Iunc36-CWR0-Stg.js → AccountRow-C-Iunc36-YQldrlVW.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-D6xN5A4_-DaMwJmFg.js → AccountsPromoCardStack-D6xN5A4_-WA3fSxPL.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-B6tLAOA_-DSLXld5A.js → AddAddressForCardDrawer-B6tLAOA_-CrWgXG6W.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Bw1oz9Y2-D8T9ntRu.js → AddToWalletPage-Bw1oz9Y2-DkLHI9hz.js} +1 -1
  11. package/dist/assets/{AddressRoutes-Du2U1_wy.js → AddressRoutes-CL0Pq_Ys.js} +1 -1
  12. package/dist/assets/{AddressScreen-Do5YL4Hs.js → AddressScreen-S2Le0Iyl.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-BK3PXwnr-sRb89fRD.js → AgingReportsPage-BK3PXwnr-D17kQP-y.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-m0mtpC7v.js → AiCfoScreen-Cg_pdlQK.js} +1 -1
  15. package/dist/assets/{AllUserItems-B42zEFpe-Dt3QyoOE.js → AllUserItems-B42zEFpe-CIjlkzgM.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-vzW4qF2Y-Be_AyJp4.js → ApAgingDetailPage-vzW4qF2Y-BD1Qrsku.js} +1 -1
  17. package/dist/assets/{AppBasePage-yAU5vW5D-DRiBAUPT.js → AppBasePage-yAU5vW5D-CQC_mBlM.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-nnh5cFf7-LHEC_nmn.js → AppDrawerContent-nnh5cFf7-CD40ny3-.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-B-Y2YjpT-Di6q3Tts.js → ApprovalRulesSettingsPage-B-Y2YjpT-Cmxno3qR.js} +1 -1
  20. package/dist/assets/{ArAgingChart-CCc6eh55-fg322qhA.js → ArAgingChart-CCc6eh55-gFVrqmo_.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-CYXVPEzK-BXygZJWM.js → ArAgingDetailPage-CYXVPEzK-DJfFgL4N.js} +1 -1
  22. package/dist/assets/{AttachmentView-DqrQDEWc-bqv6C4yz.js → AttachmentView-DqrQDEWc-xCZ214JL.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-D1_dZg5k-Cp5teLbH.js → BalancesInsightWithToolTip-D1_dZg5k-DQ_IxlP9.js} +1 -1
  24. package/dist/assets/{BankAccountSection-4vXBKCFA-DKXdSrK9.js → BankAccountSection-4vXBKCFA-Clz7a1S8.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-Dhmxhwx--DZdDHKDy.js → BankAccountWarningSection-Dhmxhwx--Yk0j00ZU.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-z52fh-wH-8ecSlDkf.js → BankConnectionsSettingsPage-z52fh-wH-3DxfIBNE.js} +1 -1
  27. package/dist/assets/{BillDetailPage-DRpctLxu-LXI19q8V.js → BillDetailPage-DRpctLxu-DXfbZDoG.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-KGuDCnTY.js → BillPayApprovalRoutes-BgvqlrUy.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-CJtb4oOG-D3VWhKCe.js → BillPayApprovalRuleDetailPage-CJtb4oOG-CtgAcmuQ.js} +1 -1
  30. package/dist/assets/{BillPayApprovalRulesPage-HG32jtX9-BIhcv1hk.js → BillPayApprovalRulesPage-HG32jtX9-BUVTGWgu.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-DwxNDF0k-CcLPK5n4.js → BillPayPromoPage-DwxNDF0k-B5FuLPhY.js} +1 -1
  32. package/dist/assets/{BillPayRoutes-Ce5JVkt4.js → BillPayRoutes-YLpt2aCD.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-B-kmDrpB-DqUJzo3-.js → BillPaySetUpPage-B-kmDrpB-BcgtlVH-.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-CNZyUOpM-KCtCCu_U.js → BillingSettingsPage-CNZyUOpM-CkmyE4GR.js} +1 -1
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DbIDTE51-jz6OelMc.js → BillsBulkReviewDrawerPage-DbIDTE51-BfhLnWA9.js} +1 -1
  36. package/dist/assets/{BoxItem-CIyMdw2s-BlAcmWAT.js → BoxItem-CIyMdw2s-C09MUjaB.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-DQ34qLUA-DQ_EHnlJ.js → BusinessVerificationPage-DQ34qLUA-DG-QnMwN.js} +1 -1
  38. package/dist/assets/{BusinessVerificationPageScreen-iODPCcKg.js → BusinessVerificationPageScreen-CXN2pQXQ.js} +1 -1
  39. package/dist/assets/{BusyIndication-YMYY0Pff-BY32OnMI.js → BusyIndication-YMYY0Pff-BT75hsR0.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-CN1RN7Tf-Crkz5sd9.js → CardNumberSubText-CN1RN7Tf-D2xaj4U6.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-CyYkVa0H-YXMN_DEG.js → CashbackDetailPage-CyYkVa0H-ZVP6lSdv.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-DFUAF2OM-DP6SPQkf.js → ChargeCardDetailPage-DFUAF2OM-CMq79ons.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-BTHDGtJ6-Cjssvtzk.js → ChargeCardListPage-BTHDGtJ6-Cf4tW6na.js} +1 -1
  44. package/dist/assets/{ChargeCardListTable-BiKjkqVs-C2Q47jri.js → ChargeCardListTable-BiKjkqVs-DmEZHkoe.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-sPGU7qmY-D7s1gonC.js → ChargeCardPaymentHistoryPage-sPGU7qmY-De2tWjhC.js} +1 -1
  46. package/dist/assets/{ChargeCardPromoPage-6JwKgWli-CuEACLDU.js → ChargeCardPromoPage-6JwKgWli-3qEX8CR5.js} +1 -1
  47. package/dist/assets/{ChargeCardRoutes-R82vHuIV.js → ChargeCardRoutes-Q_AcVfPK.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-DmhPAnYT-kDmietjf.js → ChargeCardSetupPage-DmhPAnYT-CZCQ5HNb.js} +1 -1
  49. package/dist/assets/{ChargeCardStatementsPage-DUXupPSN-BYaTogVZ.js → ChargeCardStatementsPage-DUXupPSN-5KsVWQ3X.js} +1 -1
  50. package/dist/assets/{CheckDepositDrawerPage-C8nbDVSz-fCr2LZZm.js → CheckDepositDrawerPage-C8nbDVSz-KV4EdXpf.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-C_bWRP7w-ybv6uXaY.js → CollapsableReportTable-C_bWRP7w-B5XVOChU.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-6LXCxWYP-N1CjwGwi.js → CompanyOfficerDetailsSection-6LXCxWYP-BUFWf_Jt.js} +1 -1
  53. package/dist/assets/{CompanyPassportCard-DVJS9xE7-WQAczivM.js → CompanyPassportCard-DVJS9xE7-D3yBGMbD.js} +1 -1
  54. package/dist/assets/{CompanyPassportPage-FJ30paB0-B650xBRc.js → CompanyPassportPage-FJ30paB0-DEw2KSMR.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-v4ozfRkw.js → CompanyPassportScreen-7B6uf7gM.js} +1 -1
  56. package/dist/assets/{CompleteProfile-D3Im5rsm-DOcwDl2N.js → CompleteProfile-D3Im5rsm-UkElY7yx.js} +1 -1
  57. package/dist/assets/{ConfettiBurst-BJrOe5Fg-B4cWwrd1.js → ConfettiBurst-BJrOe5Fg-zHdUBtAM.js} +1 -1
  58. package/dist/assets/{ConnectionAuthScreen-CRf6FtAm.js → ConnectionAuthScreen-LV19LrUf.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-Dk4QFttG.js → ConstrainedInnerElement-CgdnMeoA-CIRoVGoS.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-C8dK3_XQ-BF1JDoLL.js → CreateOrEditVendorPage-C8dK3_XQ-B7BE5vbO.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-Dp5mS2Hc-CeHtX3in.js → CreditCardPaymentDrawerPage-Dp5mS2Hc-CdWmI3zd.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-BAQ5aoHk-DH5SrL5M.js → CurrencySelectField-BAQ5aoHk-CLSx3dj2.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-D8T1akbN-CiWQ4BME.js → CustomerOnboardingActivationPage-D8T1akbN-CqBRQYAW.js} +1 -1
  64. package/dist/assets/CustomerOnboardingAuthScreen-7W5EArl5.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-CGFQ4G4y-UuDDkSt5.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DSvvHqR_-B6nZNBwn.js → CustomerOnboardingDetailPageSkeleton-DSvvHqR_-DDxDa7To.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-CSLO3M7E-qZci9B5e.js → CustomerOnboardingNoStepsPage-CSLO3M7E-DfrADWrN.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingPage-weza3x24-BkXOFQX9.js → CustomerOnboardingPage-weza3x24-89JMVlty.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-3YH4y1e1-JkiatwoQ.js → CustomerOnboardingProductSuitePage-3YH4y1e1-aePXzh9B.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-BH4p4U2x.js → CustomerOnboardingRoutes-CIx1-GM_.js} +1 -1
  71. package/dist/assets/{Dashboard-Bpuy-Pez-CGeVqi25.js → Dashboard-Bpuy-Pez-BVeBVlwV.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-1p79NBF9-PsndgGNB.js → DashboardReportPage-1p79NBF9-DWbFRbgX.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-BpbDpYw3.js → DashboardRoutes-0ryBDIPF.js} +1 -1
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-CBg2tWHO-BrEJtieY.js → DashboardSidebarBackgroundAnimation-CBg2tWHO-Cyc1B4hB.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-dh0i9bS7.js → DefaultTenantHome-CfqvxZPL.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-DlztlGZL-BabOldBp.js → DepositAccTransactionItem-DlztlGZL-CezsIYfK.js} +1 -1
  77. package/dist/assets/{DepositAccTransactionListPage-BO43c3Uz-DAiR329Z.js → DepositAccTransactionListPage-BO43c3Uz-Zcue0IvK.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailScreen-73EFUwYw.js → DomesticWireDetailScreen-Dt7o6kAb.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-SEql3I0P-DopSoItu.js → DomesticWireDetailsPage-SEql3I0P-CwtZcgDr.js} +1 -1
  80. package/dist/assets/{DownloadOverlay-PhrwF2iZ-DE41QNaR.js → DownloadOverlay-PhrwF2iZ-BOGlUpUv.js} +1 -1
  81. package/dist/assets/{DrawerPage-Bf3AP3Lj-Ca4Hlb-5.js → DrawerPage-Bf3AP3Lj-CuJ6OWfo.js} +1 -1
  82. package/dist/assets/{DrawerScreen-DHeqOl2i.js → DrawerScreen-BoLS3cEF.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-B-rBzonN-uBCjqsHV.js → EditPeoplePage-B-rBzonN-CS3sxfIN.js} +1 -1
  84. package/dist/assets/{EditReimbursementDetailPage-CUiIHNgT-8PuUQb7F.js → EditReimbursementDetailPage-CUiIHNgT-HAw3keDO.js} +1 -1
  85. package/dist/assets/{EntityDetailPage-CvLzsrUE-BBux-0Uo.js → EntityDetailPage-CvLzsrUE-Dr8rmeD7.js} +1 -1
  86. package/dist/assets/{EntityDetailRoutes-DBLMB4dw.js → EntityDetailRoutes-BToXXZKQ.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-mXeSjiuZ-B9FERucG.js → EntitySummarySection-mXeSjiuZ-BvfGPJV_.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-DQCoy1O9-BZfo9th3.js → ExpenseAutomationOverviewPage-DQCoy1O9-DKKO1Jrc.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationPage-BeAzQ7Qx-Dz7fhupP.js → ExpenseAutomationPage-BeAzQ7Qx-C48GQ06z.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-Ciow3RJ2.js → ExpenseAutomationRoutes-GuaeYvX3.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-C-isOU1b-CVmq_SpS.js → ExpressPayPage-C-isOU1b-DYMWp0fl.js} +1 -1
  92. package/dist/assets/{FeaturePreviewPage-Cyre9YzV-Cftfc0PA.js → FeaturePreviewPage-Cyre9YzV-DesOgA9M.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-2RPLc4Gf.js → FeaturePreviewScreen-DKVtqlmL.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-DZNWzSvo-BRkqWsPS.js → FollowStepsSection-DZNWzSvo-CEWgMRa8.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-Dp--ugNc-Dtv4hNaC.js → GlobalReviewListPage-Dp--ugNc-CR5AVKkp.js} +1 -1
  96. package/dist/assets/{InformationCardStack-D7naFDX0-DgOmsE3E.js → InformationCardStack-D7naFDX0-CJPEq7Jn.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-DexUl4h--CD8yzPkl.js → InsightsCardStack-DexUl4h--Bl8IGBl8.js} +1 -1
  98. package/dist/assets/{InsightsSection-D9PJ55E6-BZ3NURYW.js → InsightsSection-D9PJ55E6-Br2S_mzj.js} +1 -1
  99. package/dist/assets/{IntegrationsSettingsPage-hFTe3wiP-BhlDRzBS.js → IntegrationsSettingsPage-hFTe3wiP-BbqUP31g.js} +1 -1
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-DLkE5bXp-CEjk6OlM.js → InternationalWireSwiftDetailsPage-DLkE5bXp-CVUjdU_d.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-DYGjEqNz-BHv8RAGX.js → InternationalWireVerificationPage-DYGjEqNz-OdDFheAC.js} +1 -1
  102. package/dist/assets/{InviteFormPage-CGAsWQn7-CTMj3TWe.js → InviteFormPage-CGAsWQn7-BQX11ciA.js} +1 -1
  103. package/dist/assets/{InvitePageListView-BSPE9f03-DiWtDrPd.js → InvitePageListView-BSPE9f03-CSYqsy-x.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-ANvLB-mB-bW0ZLS4w.js → InvitePeoplePage-ANvLB-mB-CwQaZHmv.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-OGMswY7c-CziQJBl6.js → InvoiceUploadSection-OGMswY7c-JnVeVq04.js} +1 -1
  106. package/dist/assets/{IssueChargeCardPage-sLInqAsW-C2PmO3GP.js → IssueChargeCardPage-sLInqAsW-Cl_MHNbe.js} +1 -1
  107. package/dist/assets/{LabeledAddressValue-DBJ236tZ-DRwoxJhK.js → LabeledAddressValue-DBJ236tZ-DU9mrQ8B.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-CAr-IiTa-hz8acdw2.js → LabeledAddressValueField-CAr-IiTa-Coj2vGIo.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-BdWZgcQc-Dj_Rq1GV.js → LabeledControlledCheckBoxField-BdWZgcQc-CSRUO8Mc.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-C6z1v9S1-B3o5vQAY.js → LabeledCountryMultiSelectField-C6z1v9S1-0fn76-gA.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-Dhi0n2ky-DMTYZTz6.js → LabeledCreatableSingleSelectField-Dhi0n2ky-C4cpdoPU.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-B3QSq1eM-IGzby_k8.js → LabeledDocumentField-B3QSq1eM-CQ4OV_q7.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-B39DlufR-DdaTss6V.js → LabeledDropDownFormattedTextField-B39DlufR-OSl5UgSA.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-CY2mGhJG-CWnMQ78-.js → LabeledEmailInputField-CY2mGhJG-DsHOn9-h.js} +1 -1
  115. package/dist/assets/{LabeledNameField-CYN5kdQi-86Gkfv4K.js → LabeledNameField-CYN5kdQi-C2knR9hx.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-CBXzDXMd-Bb2Vdxcj.js → LabeledSingleSelectField-CBXzDXMd-Be-7ukpv.js} +1 -1
  117. package/dist/assets/{LabeledText-GEbY3-bB-BUisrQ9a.js → LabeledText-GEbY3-bB-a8-4xrHX.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Do8fziYM-CSkej6UT.js → LabeledUserSingleSelectWithSubtitlesField-Do8fziYM-jZMMsugI.js} +1 -1
  119. package/dist/assets/{LabeledZeniRolesDropDownField-DJfE1qQb-B_HO08cO.js → LabeledZeniRolesDropDownField-DJfE1qQb-C9jHsUlw.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-B2ROo3VS-YhdCoxbn.js → LinkJETransactionPage-B2ROo3VS-CD9ycgeo.js} +1 -1
  121. package/dist/assets/{LockCardPage-D2dUPnNL-tuQUusRC.js → LockCardPage-D2dUPnNL-CjHU-BzP.js} +1 -1
  122. package/dist/assets/{LowBalancePopup-DTtl3SIc-jw3rRGRn.js → LowBalancePopup-DTtl3SIc-aNudwoSx.js} +1 -1
  123. package/dist/assets/{MagicLinkACHDetailsPage-BC6_cyO0-C-40wwsX.js → MagicLinkACHDetailsPage-BC6_cyO0-BH-mUM2m.js} +1 -1
  124. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CdG5oCPl-DLQOqv2b.js → MagicLinkDomesticWireDetailsPage-CdG5oCPl-BJlbALp7.js} +1 -1
  125. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C046BNUz-Du-Hf2Rs.js → MagicLinkInternationalWireDetailsPage-C046BNUz-B5CdjKd2.js} +1 -1
  126. package/dist/assets/{MagicLinkRoutes-Ce7UoZ3g.js → MagicLinkRoutes-B_At_wkT.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-BzoOowms.js → MagicLinkSignInScreen-CB2sh4Tk.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-Ctt1pLiv-DgUpkUDW.js → MagicLinkSuccessPage-Ctt1pLiv-B1_3zL4I.js} +1 -1
  129. package/dist/assets/{MagicLinkTitleSection-CtsQ_c44-DD1X6fG2.js → MagicLinkTitleSection-CtsQ_c44-DzfsAoNb.js} +1 -1
  130. package/dist/assets/{MailingDetailsSection-DiZwQ9QV-Zw0hJwAt.js → MailingDetailsSection-DiZwQ9QV-DS2ZtXrV.js} +1 -1
  131. package/dist/assets/{MobileAppDrawer-qasrJsA4.js → MobileAppDrawer-D9B1riEd.js} +1 -1
  132. package/dist/assets/{MoreMenuButton--MxUyTqX-BRissmUy.js → MoreMenuButton--MxUyTqX-DxfOtpkn.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-6ltpx62E-D6KFe-KP.js → MyBankConnectionsSettingsPage-6ltpx62E-vyWVBa3l.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-CwDedcXl-Dxd2fyLg.js → MyPendingActivationChargeCardListPage-CwDedcXl-BfNnXoNe.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-Bmhu2lrK-CTluZRHn.js → MyProfileSettingsPage-Bmhu2lrK-BTNTNmEK.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-jqJCHGvR-DMu0y4Qb.js → NavBarWithPicker-jqJCHGvR-dfmiqqqq.js} +1 -1
  137. package/dist/assets/{NavigationArrow-DY_BhITD-gGit-4br.js → NavigationArrow-DY_BhITD-BQwiFtSS.js} +1 -1
  138. package/dist/assets/{NavigationDots-Kh5ODrCQ-DwZ3hrog.js → NavigationDots-Kh5ODrCQ-DBa52_8H.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-BYTROFvX-DwdJUPSt.js → NewGlobalMerchantPage-BYTROFvX-Bjv2RB8-.js} +1 -1
  140. package/dist/assets/{NoDataChart-CuiKDcAB-DcvOdNkO.js → NoDataChart-CuiKDcAB-BwyLAmy8.js} +1 -1
  141. package/dist/assets/{NoDataTable-BpH8puX--CKc9Uumk.js → NoDataTable-BpH8puX--CRikf6dL.js} +1 -1
  142. package/dist/assets/{NotFoundPage-BKvCYyvc-CVW4jAzU.js → NotFoundPage-BKvCYyvc-C4zGt610.js} +1 -1
  143. package/dist/assets/{NotFoundScreen-BGyIaLbV.js → NotFoundScreen-DGF4ewvh.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-g75WljLy.js → NotificationRoutes-BOCajdcJ.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-F2xXUCSE-1aLSD_P9.js → NotificationSettingsPage-F2xXUCSE-Exk6EXhh.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-C9r-O2kH-aq3nwp_9.js → NotificationsListConfig-C9r-O2kH-YO8sPuy3.js} +1 -1
  147. package/dist/assets/{NotificationsPage-CZZ9GTVy-CjLasA13.js → NotificationsPage-CZZ9GTVy-BlxqoNKc.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-Crvcsx0U-D2kbC2Nh.js → OpExByVendorPage-Crvcsx0U-DV1gdTtR.js} +1 -1
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-DpfAmCAx.js → OverlayContainerPage-BG9y5C0t-Bb0zlii5.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-CkDCt5NK-CZTB6HyP.js → PandLWithForecastPage-CkDCt5NK-BXsQyBSk.js} +1 -1
  151. package/dist/assets/{PandLWithForecastRoutes-BIm6SNTl.js → PandLWithForecastRoutes-DUjvSQn1.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D1ZDh1GY-CDM1qPvj.js → PaymentAccountSetupBillingAddressSection-D1ZDh1GY-CQR83EXw.js} +1 -1
  153. package/dist/assets/{PeoplePage-D2CtRlrd-By7K7MoK.js → PeoplePage-D2CtRlrd-CyfJaF0_.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-DYEYoT-Z.js → PeopleRoutes-DWTFCJOs.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-DfWgoWPO.js → PerformanceRoutes-DAqkD2US.js} +1 -1
  156. package/dist/assets/{Preview-CBFJfLMb.js → Preview-BOuv1ApV.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-sNagRI0c-61XsnGmO.js → ProductsCarousel-sNagRI0c-CXROneWv.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-BUk-u73S-BOYyiMks.js → PromoBaseCards-BUk-u73S-CdxIVd7h.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-C1rEAxUE-DfW1Uzaj.js → QBOConnectionDialog-C1rEAxUE-Bns4Q1dD.js} +1 -1
  160. package/dist/assets/{QBOConnectionScreen-Rp-2rn0k.js → QBOConnectionScreen-BzZBkC05.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-iQJCHR-K-Cozk6L0j.js → QBOSetupSection-iQJCHR-K-CCZ1VagE.js} +1 -1
  162. package/dist/assets/{ReferralListScreen-CBuGWNNX.js → ReferralListScreen-CRs7Pk4b.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-D0ehNmsg.js → ReimbursementApprovalRoutes-XjY3gDt6.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BPIKZ9v1-_Rw4LFib.js → ReimbursementApprovalRuleDetailPage-BPIKZ9v1-CWKcEqcV.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen--zBLN-vr.js → ReimbursementApprovalRuleDetailScreen-CxSdKHi9.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-AE810nQZ-CKLvlvGT.js → ReimbursementApprovalRulesPage-AE810nQZ-CChCQ3Ja.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-CYuZJL_J-Dc9Q5SmJ.js → ReimbursementDetailPage-CYuZJL_J-BWOIR-bJ.js} +1 -1
  168. package/dist/assets/{ReimbursementPromoPage-CaxjSwrz-BqYGPT-x.js → ReimbursementPromoPage-CaxjSwrz-DwHvaE_-.js} +1 -1
  169. package/dist/assets/{ReimbursementRoutes-Dw1HmBPZ.js → ReimbursementRoutes-CvpKnwwj.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-Bw77MBHF-CqZyhccg.js → ReimbursementSetUpPage-Bw77MBHF-CscUt_mO.js} +1 -1
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-svIloS-u7x5I4fB.js → ReimbursementsBulkReviewDrawerPage-B-svIloS-B1Lp4xHp.js} +1 -1
  172. package/dist/assets/{ReloadCard-D5kxTfzJ-CHGlYP1Y.js → ReloadCard-D5kxTfzJ-f2yTtdPG.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-BZU8yltx-BXz0jYWq.js → ReportTableViewSelector-BZU8yltx-DSV7knFo.js} +1 -1
  174. package/dist/assets/{ReportsPage-CdN9MEVy-VFwi_Sta.js → ReportsPage-CdN9MEVy-DTQ_WR-z.js} +1 -1
  175. package/dist/assets/{ReportsRoutes-BxP48mVj.js → ReportsRoutes-CuJzeSSZ.js} +1 -1
  176. package/dist/assets/{RevenueChart-B_RMeweH-sORV0ExB.js → RevenueChart-B_RMeweH-BaW-ee-H.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage-a73YIZSO-BwRkWQP6.js → ReviewDetailsPage-a73YIZSO-DpkHrzHu.js} +1 -1
  178. package/dist/assets/{ReviewOverlay-Ubmz06uP-Dq2e8WZF.js → ReviewOverlay-Ubmz06uP-BJLc1VC5.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-kNiN5XKd.js → RewardsRoutes-DR53o9JA.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-BYO1YG6N-CpH6tY8x.js → RoleWithToolTip-BYO1YG6N-BFoZQpPA.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-vgqilDC8-BtW6gR7z.js → ScheduleDetailsFixedAssetsPage-vgqilDC8-DDQ83sDS.js} +1 -1
  182. package/dist/assets/{ScheduleDetailsPage-DdEeFryA-D3pgpVcx.js → ScheduleDetailsPage-DdEeFryA-DsuykU2q.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-poNEzbqS-Bn1GkRq3.js → ScheduleSequenceTable-poNEzbqS-CnUEqaUu.js} +1 -1
  184. package/dist/assets/{ScreenRoutes-D1xPWhMn.js → ScreenRoutes-Cj2iuXVM.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-BSOGwHCj-BawfFLHE.js → SetUpAccountSection-BSOGwHCj-l5hcQr16.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-CQFKHlBE.js → SettingsRoutes-BxSbNmrP.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-Khrg4fmZ.js → SetupPagesScreen-zQ3NX2lR.js} +1 -1
  188. package/dist/assets/{SignIn-q4J9wRx8-CmY6_2-N.js → SignIn-q4J9wRx8-HA_1dqj8.js} +1 -1
  189. package/dist/assets/{SignInScreen-DE5iszhl.js → SignInScreen-CELs0Aza.js} +1 -1
  190. package/dist/assets/{SignOutScreen-BrEmVZ7k.js → SignOutScreen-Drnn4I9w.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-DKRkSADM-CyVMAS6i.js → SpendManagementListViewPage-DKRkSADM-B4S5gwAW.js} +3 -3
  192. package/dist/assets/{SpendManagementPerTabPage-Cd30NnXU-CuxG4XXm.js → SpendManagementPerTabPage-Cd30NnXU-Doh8LRUx.js} +1 -1
  193. package/dist/assets/{SpendManagementSection-CPBOh_J5-VebfRScE.js → SpendManagementSection-CPBOh_J5-Cx9bexj6.js} +1 -1
  194. package/dist/assets/{StatementItem-NyOORj5f-CGBabGx-.js → StatementItem-NyOORj5f-DBo43N4H.js} +1 -1
  195. package/dist/assets/{StatementsPage-Cp77wyFS-BNWHu83c.js → StatementsPage-Cp77wyFS-DaxbhsSQ.js} +1 -1
  196. package/dist/assets/{StatusSwitcher-DN-yYdli-C38uA7vA.js → StatusSwitcher-DN-yYdli-Cu3f5bfq.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-D1LNrhUn-k7hSwnGE.js → SubTabSwitcher-D1LNrhUn-CAQ9zzl5.js} +1 -1
  198. package/dist/assets/{SuccessAnimation-DdyAYe1e-CRBZLEcw.js → SuccessAnimation-DdyAYe1e-CEynHwH0.js} +1 -1
  199. package/dist/assets/{SummaryCard-DgIPSt4y-BreXikds.js → SummaryCard-DgIPSt4y-9lOT4ZI5.js} +1 -1
  200. package/dist/assets/{TaskDetailPage-DXTLNhtf-DSitOXq0.js → TaskDetailPage-DXTLNhtf-Bv_CIrcO.js} +1 -1
  201. package/dist/assets/{TaskListScreen-DkpddMj-.js → TaskListScreen-DF7HvN9h.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-BaLJR4-7-CF4lQh5a.js → TaskManagementPage-BaLJR4-7-CcdtHiNd.js} +1 -1
  203. package/dist/assets/{TaskRoutes-FkwKuuJe.js → TaskRoutes-DxF_jRUO.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-CkgGEwEw-BPD6p-o-.js → TimeRangeSwitcher-CkgGEwEw-Cje_LjEs.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcher-B8fpnYS8-DN6x7QeB.js → TimeframeSwitcher-B8fpnYS8-9PZp4BSK.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-DwFo6jY4-D-j20nY7.js → TimeframeSwitcherWithToggle-DwFo6jY4-D0eIiKbV.js} +1 -1
  207. package/dist/assets/{TopExCard-PayAZZY--CN7knT9a.js → TopExCard-PayAZZY--Bj-aVuk-.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-Mp2KcYf6-DF6BJLe1.js → TopExDetailPage-Mp2KcYf6-C_nzfxYJ.js} +1 -1
  209. package/dist/assets/{TransactionActivityLogPage-CnmL_hUz-xxBYOo0V.js → TransactionActivityLogPage-CnmL_hUz-DdEnXJ8f.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-Bqlnmn8Y-C-G32l9E.js → TransactionDetailPage-Bqlnmn8Y-JVQYT9QH.js} +1 -1
  211. package/dist/assets/{TransactionDetailRoutes-Bur6XOBC.js → TransactionDetailRoutes-Dsu-ghiL.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-TsmDBl7P.js → TransactionDetailScreen-8GuKlcKa.js} +1 -1
  213. package/dist/assets/{TransactionList-BOmlsfpv-P61oqFED.js → TransactionList-BOmlsfpv-qlUBYIHt.js} +1 -1
  214. package/dist/assets/{TransactionListBig-CaMT-rq_-CyI8cEhp.js → TransactionListBig-CaMT-rq_-7hp5f6-i.js} +1 -1
  215. package/dist/assets/{TransactionListPage-D_dgwnFp-D9ucLBYe.js → TransactionListPage-D_dgwnFp-ChsX6wWw.js} +1 -1
  216. package/dist/assets/{TransactionListRoutes-Bze4GklF.js → TransactionListRoutes-DVQtuZtB.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-DlXuiPC5-CVKs_i6q.js → TransactionVendorDetailPage-DlXuiPC5-DR6QT97k.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-C2VcssbM-BdJwka8r.js → TransferDrawerPage-C2VcssbM-Cu4oX3M3.js} +1 -1
  219. package/dist/assets/{TreasuryOverviewPage-DyyoGY23-8NjmnIXR.js → TreasuryOverviewPage-DyyoGY23-C8QrAhwL.js} +1 -1
  220. package/dist/assets/{TreasuryPromoPage-B9Hf7oxZ-CY7Z2jR8.js → TreasuryPromoPage-B9Hf7oxZ-exH2M4Kq.js} +1 -1
  221. package/dist/assets/{TreasuryRoutes-BcEhSPu-.js → TreasuryRoutes-NYBhe4Sz.js} +1 -1
  222. package/dist/assets/{TreasuryStatementsPage-DOzJzfTG-COamdHZN.js → TreasuryStatementsPage-DOzJzfTG-D2BPEanX.js} +1 -1
  223. package/dist/assets/{TreasuryTaxLetterPage-BcTBr9x9-DQ6bAdf9.js → TreasuryTaxLetterPage-BcTBr9x9-DmWWAi8g.js} +1 -1
  224. package/dist/assets/{TrendChart-BvXDrgUJ-D_jexAAy.js → TrendChart-BvXDrgUJ-DaPNeQha.js} +1 -1
  225. package/dist/assets/{TrendWithTransactions-RCpzdPf3-B6dzBDBs.js → TrendWithTransactions-RCpzdPf3-xFzViS9J.js} +1 -1
  226. package/dist/assets/{UncategorizedAccountsMappingPage-B1m3iXh5-Ip2N2jHp.js → UncategorizedAccountsMappingPage-B1m3iXh5-CWDJigyo.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-lVg_8mQ4-CG7xv8GT.js → UnitIntegrationPage-lVg_8mQ4-BqTrIaLn.js} +1 -1
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-DrAWxBXn-_zHsjfu5.js → UploadAdditionalDocumentOverlay-DrAWxBXn-CvQ8tJ-8.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-C8m_OJEH-D165qdUh.js → Vendor2FAPopup-C8m_OJEH-CGjK9uo8.js} +1 -1
  230. package/dist/assets/{VendorACHDetailsPage-JhO6KtMC-CANKU5ry.js → VendorACHDetailsPage-JhO6KtMC-Vnc2qc0g.js} +1 -1
  231. package/dist/assets/{VendorDetailPage-Y9_hsgjs-C9Wt_5QU.js → VendorDetailPage-Y9_hsgjs-Bs6JWCG0.js} +1 -1
  232. package/dist/assets/{VendorDomesticWireDetailsPage-D0RsDHxf-Bxd9GX1z.js → VendorDomesticWireDetailsPage-D0RsDHxf-BA4CpK_P.js} +1 -1
  233. package/dist/assets/{VendorFiling1099EditablePage-CPevpiim-qmsYTkLB.js → VendorFiling1099EditablePage-CPevpiim-Dbk4Mp2s.js} +1 -1
  234. package/dist/assets/{VendorFirstReviewPage-CXftFNl_-CCYTLrD_.js → VendorFirstReviewPage-CXftFNl_-_y9eg1t7.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-88NtGE3e-C0C0m4pv.js → VendorInternationalWireDetailsPage-88NtGE3e-DhB1w2yC.js} +1 -1
  236. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BTh-VP1b-C-5vzJEN.js → VendorInternationalWireSwiftDetailsPage-BTh-VP1b-r4FuxoOX.js} +1 -1
  237. package/dist/assets/{VendorsAccountsSection-DorsKXyL-B5FHsSOL.js → VendorsAccountsSection-DorsKXyL-DqIvcWpM.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-FQkb12pI.js → VendorsRoutes-KueNgBM0.js} +1 -1
  239. package/dist/assets/{VerifyDevice-DAym8rUN-BlHFuMzS.js → VerifyDevice-DAym8rUN-M7g6H0jm.js} +1 -1
  240. package/dist/assets/{VideoPlayer-53OvOC7l-pPI6Q2OV.js → VideoPlayer-53OvOC7l-RvSvHksJ.js} +1 -1
  241. package/dist/assets/{VideoPopup-v9quqdro-CKa7Hhxk.js → VideoPopup-v9quqdro-7jf9bldH.js} +1 -1
  242. package/dist/assets/{WiseConfirmationScreen-DsF9s3cq.js → WiseConfirmationScreen-ZA8zS_nU.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-CFEGqW5l-Cc3o93o-.js → ZeniAccountDetailPage-CFEGqW5l-typbF83j.js} +1 -1
  244. package/dist/assets/{ZeniAccountListViewPage-j85TO5tM-D8dMZ6jp.js → ZeniAccountListViewPage-j85TO5tM-DjfKcyrL.js} +1 -1
  245. package/dist/assets/{ZeniAccountNavBarPieces-Bv34Vsqj-S8eWsLxK.js → ZeniAccountNavBarPieces-Bv34Vsqj-DzYraOow.js} +1 -1
  246. package/dist/assets/{ZeniAccountPromoPage-DeHmh4My-CfY9P4dJ.js → ZeniAccountPromoPage-DeHmh4My-DJyZmW1d.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-CfCvabZR.js → ZeniAccountRoutes-_rESdYK7.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-ofkQR72l-CBlKDRVk.js → ZeniAccountSetupPage-ofkQR72l-DbUwbU98.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-CGYScuoU.js → ZeniAccountStatementScreen-CXTN4TcP.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-Ct7MPW2X-BHlw9FbG.js → ZeniAvatar-Ct7MPW2X-Dr9Hk39M.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-CmCqmJmV-3KycUvio.js → ZeniCopyright-CmCqmJmV-DYheSP80.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-RNJ2ukKC-BM4oYXJe.js → ZeniDatePicker-RNJ2ukKC-CtKXessM.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-BpfqM032-CVzLkYGE.js → ZeniTransferAmountSlider-BpfqM032-BwOaWtqI.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-rwWvpsms.js → accountMappingHelper-BLU8hIq_.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-CzXhL1Ym.js → add-to-wallet-DgdBD8_G-Cv2WBwY-.js} +1 -1
  256. package/dist/assets/{analytics-DIWVqtXV.js → analytics-DuMT4wpV.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CLBcUDc5.js → analyticsHelper-CtwnuYac.js} +1 -1
  258. package/dist/assets/{analyticsHelper-qtejXlXH-UFbrYbZ_.js → analyticsHelper-qtejXlXH-d-w7uTbl.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CWRd961V.js → arrow-south-east-round-PEovUgvH-DWItiKv4.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-Bjm-l3iW.js → auto-transfer-rule-mbafm5D3-DVkawdL2.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-CKqFD1L0.js → avatar-Dz7aEm3d-VXKNqIyu.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-BhxkRonC.js → bank-letter-BOcVjN6J-v-zvGYkf.js} +1 -1
  263. package/dist/assets/{calculateSize-CzpGCfNE-CNrV3_Iu.js → calculateSize-CzpGCfNE-DkEz7M5T.js} +1 -1
  264. package/dist/assets/{chartTypes-BqRsL6eJ-D0sv3zgU.js → chartTypes-BqRsL6eJ-DnPOTdta.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-9m-0TbEY.js → clock-CJkylEKt-DTBXHHGh.js} +1 -1
  266. package/dist/assets/{common-BxjzMhDO-M6F2cReY.js → common-BxjzMhDO-DjrSaNg9.js} +1 -1
  267. package/dist/assets/{commonDimensions-CzWWgDTA-C5sl3WWf.js → commonDimensions-CzWWgDTA-CkwNwI_N.js} +1 -1
  268. package/dist/assets/{commonTypes-CF6UyWSv-BQXpwXby.js → commonTypes-CF6UyWSv-CFnrHGdI.js} +1 -1
  269. package/dist/assets/{core-BAxGDYbL.js → core-Dbakk1VU.js} +1 -1
  270. package/dist/assets/{dash.all.min-DLVq1nc5.js → dash.all.min-C8PYPQo3.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-Bypqq6TF.js → decodeURIComponentSafe-EYVZFaGG.js} +1 -1
  272. package/dist/assets/{dnd-BEk5qqV2.js → dnd-CoZK9h43.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-DgPiQ4X2.js → dollar-round-D18u7nlm-PE8nVeMR.js} +1 -1
  274. package/dist/assets/{downloadPdf-BFFM3Hea-CZaqSBqv.js → downloadPdf-BFFM3Hea-2RXX_qzA.js} +1 -1
  275. package/dist/assets/{empty-C6XM9c0M.js → empty-C3KqHyA9.js} +1 -1
  276. package/dist/assets/{empty-BWHMm5Kr.js → empty-CjUOQS3C.js} +1 -1
  277. package/dist/assets/{epic-CkteLEKR.js → epic-BGBLm-VW.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-yDtIQZZZ.js → filter-cZIFUNvj-KJVxW4YT.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-DIET8R83.js → getLocaleForTenant-BAO89gke.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-a88q6Sec.js → gift-box-Cmt9OgIZ-Bfn5R-O9.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BXu_Erqy.js → graphic-no-data-l-DU4J8fDt-BFYI8sfE.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CDJ9LscK.js → graphic-no-data-net-burn-l-CzmycA0m-DgQOtljq.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-DXXhI3e_.js → handshake-BPg58FML-DOXeNqAW.js} +1 -1
  284. package/dist/assets/{helper-COxPEvgL-B99qx9wP.js → helper-COxPEvgL-DjqGilVF.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-DDEc353Q.js → hyperlink-DQyCeXx2-BPv_vjnI.js} +1 -1
  286. package/dist/assets/{index-CVjW2ppf.js → index-BG4JRo3L.js} +1 -1
  287. package/dist/assets/{index-CkLoBdAM.js → index-BdbGtEP2.js} +1 -1
  288. package/dist/assets/{index-CDtqLLbw.js → index-CH6Xem9w.js} +1 -1
  289. package/dist/assets/{index-rcznrhDB.js → index-DD0lDka6.js} +1 -1
  290. package/dist/assets/{index-BUTnHeUk.js → index-dCAlFLzb.js} +1 -1
  291. package/dist/assets/{index-CVe1fo1a.js → index-iSEGT9xi.js} +6 -6
  292. package/dist/assets/{lexical-eSt6-8-s.js → lexical-Dk5TD4lX.js} +1 -1
  293. package/dist/assets/{liveblocks-DIb7UiB5.js → liveblocks-DdnYk2Co.js} +1 -1
  294. package/dist/assets/{lottie-DR43ghJ6.js → lottie-DBYzZfO9.js} +1 -1
  295. package/dist/assets/{mapLoadingInProgressToTreeNode-COOJxneh-Dn5oaOob.js → mapLoadingInProgressToTreeNode-COOJxneh-C62pjQWQ.js} +1 -1
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CcuLqf_I-DlLPz3lr.js → mapSectionWithAcOnlyToTreeNode-CcuLqf_I-D5MLuJek.js} +1 -1
  297. package/dist/assets/{mapSpacerToTreeNode-Ci5bdH6P-L9lviHBs.js → mapSpacerToTreeNode-Ci5bdH6P-1RH2DZQ7.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-CCZ9A7A6-m60AXXy6.js → mapTimeframeBalancesToTreeNode-CCZ9A7A6-C2Dl8nFW.js} +1 -1
  299. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cql9mEn3-BI70JNWv.js → mapTimeframeBalancesToTreeNode-Cql9mEn3-acr__MkP.js} +1 -1
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CIXgJHQz-C3md0v2d.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CIXgJHQz-DcnMdcWy.js} +1 -1
  301. package/dist/assets/{media-player-t6imgqTs.js → media-player-C20hpg6W.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-BKLw88Z7.js → money-2cg1MuG4-DnxgWofF.js} +1 -1
  303. package/dist/assets/{mui-DcvwYC51.js → mui-Bg5IRLA2.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-DYwfMchM.js → page-detail-CWX5S47F-XQ_ZOvdt.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-Ccsx0X5Z.js → page-summary-D7_VQHwN-DKN2ai-q.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-oybQQD8A.js → panelSelectedMixin-Cddsb26L-C6CCGzAz.js} +1 -1
  307. package/dist/assets/{pathToGoBack-DgCvIIns.js → pathToGoBack-BLk7pE4i.js} +1 -1
  308. package/dist/assets/{pdf-DA3UteIy.js → pdf-2PUMrtF-.js} +3 -3
  309. package/dist/assets/{pdf-lib-CB0YH404.js → pdf-lib-DlaDOnMS.js} +1 -1
  310. package/dist/assets/{plaid-Dma9BWZs.js → plaid-DCRMdnUX.js} +1 -1
  311. package/dist/assets/{pusher-BpsMW-yL.js → pusher-DjPz7AVp.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-DhACFBeo.js → radio-default-CiSgisfh-B6m2tow9.js} +1 -1
  313. package/dist/assets/{react-DSe89Cs9.js → react-BRYNjAhe.js} +1 -1
  314. package/dist/assets/{react-DIlTJIev.js → react-BpovbSPi.js} +1 -1
  315. package/dist/assets/{react-Gk8q99af.js → react-BtDFM6dw.js} +1 -1
  316. package/dist/assets/{react-DYy5XxA9.js → react-BtvC2hyM.js} +1 -1
  317. package/dist/assets/{react-Da-tqkFZ.js → react-C1B10AWi.js} +1 -1
  318. package/dist/assets/{react-CHYwPjVO.js → react-Cu5T4aA9.js} +1 -1
  319. package/dist/assets/{react-CGustVKo.js → react-DPKlRGpY.js} +1 -1
  320. package/dist/assets/{react-B399TF4z.js → react-mssibIlX.js} +3 -3
  321. package/dist/assets/{recharts-LOG_L3Q0.js → recharts-Bztd37V0.js} +1 -1
  322. package/dist/assets/{routePaths-B9s6SzIs.js → routePaths-BxZ6qL2m.js} +1 -1
  323. package/dist/assets/{sentry-CFYfTv_F.js → sentry-DwNPvXBL.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-DouOIUSu.js → shield-DOlUxcFf-BW1Lfeco.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-DTJkvAlS.js → spend-limit-D6SyboD4-BsKlbYVQ.js} +1 -1
  326. package/dist/assets/{toCOABalancesWithID-B70YK7cw-CXnt8iTO.js → toCOABalancesWithID-B70YK7cw-Cqus0iZx.js} +1 -1
  327. package/dist/assets/{toChartData-CWgd8E5c-DiIGKIgi.js → toChartData-CWgd8E5c-vscPIv0G.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-9RLgCBK-.js → transaction-placeholder-CpOwZAMG-BWj2A57R.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-4JO3_5lb.js → undo-b_3XZ5CX-CGq1U42f.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-CncAfPJ6.js → unlock-BPWn2I5L-C6sn8W4Z.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-CX9b95cy.js → upload-reimbursement-receipt-O2N8vcO7-DPTiDKCC.js} +1 -1
  332. package/dist/assets/{uploadAttachment-D1ybl0Fy-CsdIaI-4.js → uploadAttachment-D1ybl0Fy-DXUbgDE0.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-BTLELte6.js → uploadReceipts-CIgkuVpu-b3VtRXVk.js} +1 -1
  334. package/dist/assets/{url-Cds_9Ffk.js → url-Cxz1BfkB.js} +1 -1
  335. package/dist/assets/{url-CG3dVLHq.js → url-DIYU8sPo.js} +1 -1
  336. package/dist/assets/{useDeviceId-Dzb269rv.js → useDeviceId-TTbuzrLv.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-D4Yk6niJ.js → useInitialThreadRequest-BftSmmiq.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-BCXZNFDE.js → useLongPress-GCK2COYQ-Cv3WvBA2.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-D0lXP7am.js → usp-line-BBd1wKwW-DX-ha8_c.js} +1 -1
  340. package/dist/assets/{utils-B0HnpOzO.js → utils-D8l6svaX.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-BBzl-sYH.js → withTransactionSidePanel-B9lAl4_T.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-BZiG8B71.js → zeni-epic-state-DQF5EBoo.js} +3 -3
  343. package/dist/assets/{zeni-icon-only-DWQkIW-o.js → zeni-icon-only-CG_yKzSn.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +1 -1
  346. package/dist/assets/CustomerOnboardingAuthScreen-BP0HWrE7.js +0 -1
  347. package/dist/assets/CustomerOnboardingContainerPage-CGFQ4G4y-B6eAJyRQ.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,bq as qt,C as Jt,gc as Zt,g7 as Xt,m as c,bH as Qt,co as ei}from"./index-CVe1fo1a.js";import{a as u}from"./sentry-CFYfTv_F.js";import{n as a}from"./mui-DcvwYC51.js";import{bG as ti,c6 as ii,G6 as ri}from"./zeni-epic-state-BZiG8B71.js";import ai from"./InvoiceUploadSection-OGMswY7c-CziQJBl6.js";import{r as oi,h as x,u as ni}from"./types-DyvtCprH-VF9iATMs.js";import"./pdf-DA3UteIy.js";import"./core-BAxGDYbL.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.js";import"./AttachmentView-DqrQDEWc-bqv6C4yz.js";import"./uploadReceipts-CIgkuVpu-BTLELte6.js";import"./upload-reimbursement-receipt-O2N8vcO7-CX9b95cy.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[$]="eac376bc-606f-4e02-ad67-026ae35b105e",e._sentryDebugIdIdentifier="sentry-dbid-eac376bc-606f-4e02-ad67-026ae35b105e")}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,X]=u.useState(!1),[Q,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(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(Xe,{windowSize:n,children:[t.jsx(Qe,{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(Qe,{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:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="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:Q==="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`
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,bq as qt,C as Jt,gc as Zt,g7 as Xt,m as c,bH as Qt,co as ei}from"./index-iSEGT9xi.js";import{a as u}from"./sentry-DwNPvXBL.js";import{n as a}from"./mui-Bg5IRLA2.js";import{bG as ti,c6 as ii,G6 as ri}from"./zeni-epic-state-DQF5EBoo.js";import ai from"./InvoiceUploadSection-OGMswY7c-JnVeVq04.js";import{r as oi,h as x,u as ni}from"./types-DyvtCprH-VF9iATMs.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";import"./AttachmentView-DqrQDEWc-xCZ214JL.js";import"./uploadReceipts-CIgkuVpu-b3VtRXVk.js";import"./upload-reimbursement-receipt-O2N8vcO7-DPTiDKCC.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[$]="eac376bc-606f-4e02-ad67-026ae35b105e",e._sentryDebugIdIdentifier="sentry-dbid-eac376bc-606f-4e02-ad67-026ae35b105e")}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,X]=u.useState(!1),[Q,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(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(Xe,{windowSize:n,children:[t.jsx(Qe,{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(Qe,{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:Q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||Q==="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:Q==="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)};
@@ -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,c 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-CVe1fo1a.js";import{a as j}from"./sentry-CFYfTv_F.js";import{n as t}from"./mui-DcvwYC51.js";import{G5 as je,bL as be}from"./zeni-epic-state-BZiG8B71.js";import{C as fe}from"./VideoPopup-v9quqdro-CKa7Hhxk.js";import{M as v}from"./usp-line-BBd1wKwW-D0lXP7am.js";import"./pdf-DA3UteIy.js";import"./core-BAxGDYbL.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.js";import"./VideoPlayer-53OvOC7l-pPI6Q2OV.js";import"./media-player-t6imgqTs.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]="90cc0a2e-c9c7-4305-a700-a45ef129fdde",i._sentryDebugIdIdentifier="sentry-dbid-90cc0a2e-c9c7-4305-a700-a45ef129fdde")}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 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-iSEGT9xi.js";import{a as j}from"./sentry-DwNPvXBL.js";import{n as t}from"./mui-Bg5IRLA2.js";import{G5 as je,bL as be}from"./zeni-epic-state-DQF5EBoo.js";import{C as fe}from"./VideoPopup-v9quqdro-7jf9bldH.js";import{M as v}from"./usp-line-BBd1wKwW-DX-ha8_c.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";import"./VideoPlayer-53OvOC7l-RvSvHksJ.js";import"./media-player-C20hpg6W.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]="90cc0a2e-c9c7-4305-a700-a45ef129fdde",i._sentryDebugIdIdentifier="sentry-dbid-90cc0a2e-c9c7-4305-a700-a45ef129fdde")}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%;
@@ -1,4 +1,4 @@
1
- import{j as i}from"./pdf-DA3UteIy.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-BAxGDYbL.js";import{ct as N,LO as ae,bE as se,ye as ke,gW as Ye,LP as et,bm as ie,dp as ve,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 ft,yc as yt,LX as It,yb as Rt,LY as kt,yk as be,yC as vt,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-BZiG8B71.js";import{y as K,N as Fe,aE as q,aG as k,js as j,jQ as Z,o as me,bk as Q,jz as v,lA as gn,kv as Ue,jO as $,lB as hn,_ as X,lC as Sn,e as fn,k2 as yn,x as In,J as Me,O as Rn,k9 as kn,l4 as vn,k4 as An,lD as Cn,kc as En}from"./index-CVe1fo1a.js";import{n as Pe,S as Bn}from"./mui-DcvwYC51.js";import ee from"./NotFoundScreen-BGyIaLbV.js";import{S as fe}from"./SetupPagesScreen-Khrg4fmZ.js";import{F as _e}from"./FeaturePreviewScreen-2RPLc4Gf.js";import{a as y}from"./sentry-CFYfTv_F.js";import{u as $e}from"./useInitialThreadRequest-D4Yk6niJ.js";import{D as xn}from"./DrawerScreen-DHeqOl2i.js";import{M as Ne}from"./MobileAppDrawer-qasrJsA4.js";import{R as Tn}from"./ReimbursementApprovalRoutes-D0ehNmsg.js";import{FallBackRoute as wn}from"./ScreenRoutes-D1xPWhMn.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.js";import"./analyticsHelper-CLBcUDc5.js";import"./routePaths-B9s6SzIs.js";import"./BusinessVerificationPageScreen-iODPCcKg.js";import"./ReimbursementApprovalRuleDetailScreen--zBLN-vr.js";import"./getLocaleForTenant-DIET8R83.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]="e3fb9552-8662-4f9a-b5d2-3372c361d0d3",e._sentryDebugIdIdentifier="sentry-dbid-e3fb9552-8662-4f9a-b5d2-3372c361d0d3")}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=ve(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:v,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(vt("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(kt({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(yt({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(ft({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&&(v.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 ye(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Fe(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(k.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(k.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(k.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=y.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),f=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);y.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ke(!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:v,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:f??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:()=>{v.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?v.trackReimbursementCancelAndDeleteReimbursement(n):v.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(k.isLimitedCategoryForReimbursement),[g,x]=y.useState(!1),[p,A]=y.useState(!1),[b,f]=y.useState(!1),{isFeatureEnabled:T}=d(k.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(k.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),L=a.fetchState;if(y.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]),y.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?f(!1):f(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]),y.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(ke(!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:v,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 y.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Fn,{navigate:e,analytics:v,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-2PUMrtF-.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-Dbakk1VU.js";import{ct as N,LO as ae,bE as se,ye as ke,gW as Ye,LP as et,bm as ie,dp as ve,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 ft,yc as yt,LX as It,yb as Rt,LY as kt,yk as be,yC as vt,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-DQF5EBoo.js";import{y as K,N as Fe,aE as q,aG as k,js as j,jQ as Z,o as me,bk as Q,jz as v,lA as gn,kv as Ue,jO as $,lB as hn,_ as X,lC as Sn,e as fn,k2 as yn,x as In,J as Me,O as Rn,k9 as kn,l4 as vn,k4 as An,lD as Cn,kc as En}from"./index-iSEGT9xi.js";import{n as Pe,S as Bn}from"./mui-Bg5IRLA2.js";import ee from"./NotFoundScreen-DGF4ewvh.js";import{S as fe}from"./SetupPagesScreen-zQ3NX2lR.js";import{F as _e}from"./FeaturePreviewScreen-DKVtqlmL.js";import{a as y}from"./sentry-DwNPvXBL.js";import{u as $e}from"./useInitialThreadRequest-BftSmmiq.js";import{D as xn}from"./DrawerScreen-BoLS3cEF.js";import{M as Ne}from"./MobileAppDrawer-D9B1riEd.js";import{R as Tn}from"./ReimbursementApprovalRoutes-XjY3gDt6.js";import{FallBackRoute as wn}from"./ScreenRoutes-Cj2iuXVM.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";import"./analyticsHelper-CtwnuYac.js";import"./routePaths-BxZ6qL2m.js";import"./BusinessVerificationPageScreen-CXN2pQXQ.js";import"./ReimbursementApprovalRuleDetailScreen-CxSdKHi9.js";import"./getLocaleForTenant-BAO89gke.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]="e3fb9552-8662-4f9a-b5d2-3372c361d0d3",e._sentryDebugIdIdentifier="sentry-dbid-e3fb9552-8662-4f9a-b5d2-3372c361d0d3")}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=ve(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:v,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(vt("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(kt({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(yt({reimbursementId:d,lineId:m,amountPayload:{amount:s.amount,currency_code:s.currencyCode,currency_symbol:s.currencySymbol}}))},onReimbursementDetailsChanged:s=>{e(ft({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&&(v.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 ye(){const e=z(),t=ne(),n=G(),{reimbursementId:o}=V(),l=K(),u=Fe(),{useFeatureGate:c}=q(),{isFeatureEnabled:r}=c(k.isLimitedCategoryForReimbursement),{isFeatureEnabled:a}=c(k.isShowDeletedReimbursementsFeatureEnabled),{isFeatureEnabled:s}=c(k.isReimbursementCommentingEnabled),m=G().pathname,d=m.includes("edit"),I=m.includes("reimbursement/new"),[g,x]=y.useState(!1),p=j.getSignedInUser(),A=B(h=>N(h)),b=B(h=>ae(h,o)),f=$e(A?.companyId,{clearParams:b.fetchState==="Completed"}),T=se(A?.userRole??[]);y.useEffect(()=>{(I&&!g||d&&b.fetchState!="Completed"&&b.fetchState!="In-Progress")&&(x(!0),t(ke(!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:v,onLoad:h=>(D=>{o!=null&&b.deleteStatus.fetchState!=="Completed"&&D.trackReimbursementEditReimbursement(o)})(h)}),i.jsx(Dn,{initialOpenThreadRequest:f??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:()=>{v.trackReimbursementDeleteReimbursement(n),e(Ae(n))},cancelAndDeleteReport:a=>{a===!0?v.trackReimbursementCancelAndDeleteReimbursement(n):v.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(k.isLimitedCategoryForReimbursement),[g,x]=y.useState(!1),[p,A]=y.useState(!1),[b,f]=y.useState(!1),{isFeatureEnabled:T}=d(k.isReimbursementCommentingEnabled),{isFeatureEnabled:R}=d(k.isShowDeletedReimbursementsFeatureEnabled),w=B(C=>ae(C,u??"")),h=K(),D=Bt(r),P=xt(r.userRole),L=a.fetchState;if(y.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]),y.useEffect(()=>{R&&a.remiDetails?.isDeleted===!0||r.isZeni===!0&&c?.userEmailDomain==="zeni.ai"&&D===!1?f(!1):f(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]),y.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(ke(!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:v,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 y.useEffect(()=>{t!=="Completed"&&n.length!==0||e("./")},[t,n.length]),i.jsx(Fn,{navigate:e,analytics:v,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-CVe1fo1a.js";import{a as o}from"./sentry-CFYfTv_F.js";import{n as t}from"./mui-DcvwYC51.js";import{cg as pi}from"./zeni-epic-state-BZiG8B71.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-DrAWxBXn-_zHsjfu5.js";import"./pdf-DA3UteIy.js";import"./core-BAxGDYbL.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.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]="13dd4c9b-9ec8-4e15-85a2-97963467ed71",e._sentryDebugIdIdentifier="sentry-dbid-13dd4c9b-9ec8-4e15-85a2-97963467ed71")}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`
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-iSEGT9xi.js";import{a as o}from"./sentry-DwNPvXBL.js";import{n as t}from"./mui-Bg5IRLA2.js";import{cg as pi}from"./zeni-epic-state-DQF5EBoo.js";import{g as gi}from"./UploadAdditionalDocumentOverlay-DrAWxBXn-CvQ8tJ-8.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.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]="13dd4c9b-9ec8-4e15-85a2-97963467ed71",e._sentryDebugIdIdentifier="sentry-dbid-13dd4c9b-9ec8-4e15-85a2-97963467ed71")}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"};
@@ -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-CVe1fo1a.js";import{a as b}from"./sentry-CFYfTv_F.js";import{GK as J}from"./zeni-epic-state-BZiG8B71.js";import{u as Q}from"./ReviewOverlay-Ubmz06uP-Dq2e8WZF.js";import"./pdf-DA3UteIy.js";import"./core-BAxGDYbL.js";import"./mui-DcvwYC51.js";import"./recharts-LOG_L3Q0.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.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]="03c1e0ab-af1d-4e2b-81aa-66dd2118a9a0",e._sentryDebugIdIdentifier="sentry-dbid-03c1e0ab-af1d-4e2b-81aa-66dd2118a9a0")}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(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: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=K(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
+ 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-iSEGT9xi.js";import{a as b}from"./sentry-DwNPvXBL.js";import{GK as J}from"./zeni-epic-state-DQF5EBoo.js";import{u as Q}from"./ReviewOverlay-Ubmz06uP-BJLc1VC5.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./mui-Bg5IRLA2.js";import"./recharts-Bztd37V0.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.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]="03c1e0ab-af1d-4e2b-81aa-66dd2118a9a0",e._sentryDebugIdIdentifier="sentry-dbid-03c1e0ab-af1d-4e2b-81aa-66dd2118a9a0")}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(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: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=K(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-CVe1fo1a.js";import{n as s}from"./mui-DcvwYC51.js";import{a as d}from"./sentry-CFYfTv_F.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-iSEGT9xi.js";import{n as s}from"./mui-Bg5IRLA2.js";import{a as d}from"./sentry-DwNPvXBL.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-CVe1fo1a.js";import{a as u,b as ue}from"./sentry-CFYfTv_F.js";import{n as h}from"./mui-DcvwYC51.js";import{t as O,n as De}from"./CollapsableReportTable-C_bWRP7w-ybv6uXaY.js";import{t as Pe}from"./filter-cZIFUNvj-yDtIQZZZ.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]="4de2d9aa-1807-4f1a-87ef-d043f8335bac",e._sentryDebugIdIdentifier="sentry-dbid-4de2d9aa-1807-4f1a-87ef-d043f8335bac")}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 ke,m,ad as Ce,bJ as je,bK as Ne,bL as Ie,l as Se,$ as Oe}from"./index-iSEGT9xi.js";import{a as u,b as ue}from"./sentry-DwNPvXBL.js";import{n as h}from"./mui-Bg5IRLA2.js";import{t as O,n as De}from"./CollapsableReportTable-C_bWRP7w-B5XVOChU.js";import{t as Pe}from"./filter-cZIFUNvj-KJVxW4YT.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]="4de2d9aa-1807-4f1a-87ef-d043f8335bac",e._sentryDebugIdIdentifier="sentry-dbid-4de2d9aa-1807-4f1a-87ef-d043f8335bac")}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};
@@ -1,4 +1,4 @@
1
- import{e as me,y as fe,_ as lt,ba as ct,bb as dt,bc as pt,O as k,V as a,bd as ht,b as F,a$ as mt,aM as ft,a_ as ut,be as gt,o as S,ab as bt,L as _t,bf as yt,x as W,bg as xt,m as j,k as ye,J as z,bh as xe,bi as wt,C as ue,$ as St,bj as Ct,S as Me,bk as Rt,ad as Ot,l as Fe,t as vt,b7 as Tt}from"./index-CVe1fo1a.js";import{a as v,b as Ie}from"./sentry-CFYfTv_F.js";import{n as g}from"./mui-DcvwYC51.js";import{_ as At}from"./liveblocks-DIb7UiB5.js";import{bt as we,F6 as kt,Ff as Bt,Fg as Lt,Fh as K,Fi as jt,Fj as Nt,Fk as $t,Fl as Mt,Fm as Ft,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-BZiG8B71.js";import{j as It,z as ce}from"./mapTimeframeBalancesToTreeNode-Cql9mEn3-BI70JNWv.js";import{m as Q,l as de}from"./analyticsHelper-qtejXlXH-UFbrYbZ_.js";import{b as Pt}from"./ReportTableViewSelector-BZU8yltx-BXz0jYWq.js";import{S as oe,y as Et,M as Vt,$ as zt,v as Dt}from"./TimeRangeSwitcher-CkgGEwEw-BPD6p-o-.js";import{X as Ut}from"./TimeframeSwitcherWithToggle-DwFo6jY4-D-j20nY7.js";import{DownloadOverlayButton as Wt}from"./DownloadOverlay-PhrwF2iZ-DE41QNaR.js";import{Z as Yt,n as Gt,t as P,j as Ce}from"./CollapsableReportTable-C_bWRP7w-ybv6uXaY.js";import{D as Re,T as Oe,C as te,L as Ht,g as Pe}from"./mapSectionWithAcOnlyToTreeNode-CcuLqf_I-DlLPz3lr.js";import{d as Zt,l as qt}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CIXgJHQz-C3md0v2d.js";import{d as Xt}from"./mapLoadingInProgressToTreeNode-COOJxneh-Dn5oaOob.js";import"./pdf-DA3UteIy.js";import"./core-BAxGDYbL.js";import"./lottie-DR43ghJ6.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./recharts-LOG_L3Q0.js";import"./utils-B0HnpOzO.js";import"./filter-cZIFUNvj-yDtIQZZZ.js";import"./TimeframeSwitcher-B8fpnYS8-DN6x7QeB.js";import"./page-detail-CWX5S47F-DYwfMchM.js";import"./page-summary-D7_VQHwN-Ccsx0X5Z.js";import"./AccountRow-C-Iunc36-CWR0-Stg.js";import"./clock-CJkylEKt-9m-0TbEY.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]="b5c1472c-3512-4421-bf29-e1a1741ab6ac",e._sentryDebugIdIdentifier="sentry-dbid-b5c1472c-3512-4421-bf29-e1a1741ab6ac")}catch{}})();const Jt=g.div`
1
+ import{e as me,y as fe,_ as lt,ba as ct,bb as dt,bc as pt,O as k,V as a,bd as ht,b as F,a$ as mt,aM as ft,a_ as ut,be as gt,o as S,ab as bt,L as _t,bf as yt,x as W,bg as xt,m as j,k as ye,J as z,bh as xe,bi as wt,C as ue,$ as St,bj as Ct,S as Me,bk as Rt,ad as Ot,l as Fe,t as vt,b7 as Tt}from"./index-iSEGT9xi.js";import{a as v,b as Ie}from"./sentry-DwNPvXBL.js";import{n as g}from"./mui-Bg5IRLA2.js";import{_ as At}from"./liveblocks-DdnYk2Co.js";import{bt as we,F6 as kt,Ff as Bt,Fg as Lt,Fh as K,Fi as jt,Fj as Nt,Fk as $t,Fl as Mt,Fm as Ft,Fn as re,Fo as le,Fp as Se}from"./zeni-epic-state-DQF5EBoo.js";import{j as It,z as ce}from"./mapTimeframeBalancesToTreeNode-Cql9mEn3-acr__MkP.js";import{m as Q,l as de}from"./analyticsHelper-qtejXlXH-d-w7uTbl.js";import{b as Pt}from"./ReportTableViewSelector-BZU8yltx-DSV7knFo.js";import{S as oe,y as Et,M as Vt,$ as zt,v as Dt}from"./TimeRangeSwitcher-CkgGEwEw-Cje_LjEs.js";import{X as Ut}from"./TimeframeSwitcherWithToggle-DwFo6jY4-D0eIiKbV.js";import{DownloadOverlayButton as Wt}from"./DownloadOverlay-PhrwF2iZ-BOGlUpUv.js";import{Z as Yt,n as Gt,t as P,j as Ce}from"./CollapsableReportTable-C_bWRP7w-B5XVOChU.js";import{D as Re,T as Oe,C as te,L as Ht,g as Pe}from"./mapSectionWithAcOnlyToTreeNode-CcuLqf_I-D5MLuJek.js";import{d as Zt,l as qt}from"./mapTimeframeHeaderLoadingInProgressToTreeNode-CIXgJHQz-DcnMdcWy.js";import{d as Xt}from"./mapLoadingInProgressToTreeNode-COOJxneh-C62pjQWQ.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./recharts-Bztd37V0.js";import"./utils-D8l6svaX.js";import"./filter-cZIFUNvj-KJVxW4YT.js";import"./TimeframeSwitcher-B8fpnYS8-9PZp4BSK.js";import"./page-detail-CWX5S47F-XQ_ZOvdt.js";import"./page-summary-D7_VQHwN-DKN2ai-q.js";import"./AccountRow-C-Iunc36-YQldrlVW.js";import"./clock-CJkylEKt-DTBXHHGh.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]="b5c1472c-3512-4421-bf29-e1a1741ab6ac",e._sentryDebugIdIdentifier="sentry-dbid-b5c1472c-3512-4421-bf29-e1a1741ab6ac")}catch{}})();const Jt=g.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  `,Kt=g.div`
@@ -1 +1 @@
1
- import{j as c}from"./pdf-DA3UteIy.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-BAxGDYbL.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as k,HK as D,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as ke,cy as De}from"./zeni-epic-state-BZiG8B71.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bk as Le,jz as E,J as Me,k3 as Pe,k4 as Be,jO as je}from"./index-CVe1fo1a.js";import"./mui-DcvwYC51.js";import ve from"./NotFoundScreen-BGyIaLbV.js";import{F as Ue}from"./FeaturePreviewScreen-2RPLc4Gf.js";import{a as y}from"./sentry-CFYfTv_F.js";import{u as Ve}from"./useInitialThreadRequest-D4Yk6niJ.js";import{t as z,a as q}from"./routePaths-B9s6SzIs.js";import{M as xe}from"./MobileAppDrawer-qasrJsA4.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.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]="73e8a455-1f41-4054-87c2-06099157a327",e._sentryDebugIdIdentifier="sentry-dbid-73e8a455-1f41-4054-87c2-06099157a327")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(we(a)),s){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(D({scrollPosition:s}));break;case"balance_sheet":e(k({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),J=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),Z=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Q=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:Z,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:J.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=ke(i,e),a=De(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
1
+ import{j as c}from"./pdf-2PUMrtF-.js";import{j as ee,i as ae,h as se,l as te,u as f,k as oe,R as ne,m as j}from"./core-Dbakk1VU.js";import{ct as L,cR as C,HA as re,mO as F,gB as le,fF as ie,mT as ce,bt as de,HB as pe,bm as me,r7 as fe,HC as ue,HD as _e,q5 as he,HE as v,HF as be,HG as ye,HH as T,HI as O,HJ as k,HK as D,HL as H,Fh as ge,qP as Ce,qD as U,qE as V,qV as Ie,qI as x,q$ as we,HM as Se,HN as Te,HO as Re,HP as Fe,HQ as Oe,cA as ke,cy as De}from"./zeni-epic-state-DQF5EBoo.js";import{e as He,aE as G,aG as A,js as Y,k2 as Ae,_ as Ee,bk as Le,jz as E,J as Me,k3 as Pe,k4 as Be,jO as je}from"./index-iSEGT9xi.js";import"./mui-Bg5IRLA2.js";import ve from"./NotFoundScreen-DGF4ewvh.js";import{F as Ue}from"./FeaturePreviewScreen-DKVtqlmL.js";import{a as y}from"./sentry-DwNPvXBL.js";import{u as Ve}from"./useInitialThreadRequest-BftSmmiq.js";import{t as z,a as q}from"./routePaths-BxZ6qL2m.js";import{M as xe}from"./MobileAppDrawer-D9B1riEd.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.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]="73e8a455-1f41-4054-87c2-06099157a327",e._sentryDebugIdIdentifier="sentry-dbid-73e8a455-1f41-4054-87c2-06099157a327")}catch{}})();const g=e=>{e(H({resetLeftScroll:!0})),e(D({resetLeftScroll:!0})),e(k({resetLeftScroll:!0})),e(O({resetLeftScroll:!0}))},ze=e=>{e(Te()),e(Re()),e(Fe()),e(Oe())},qe=oe(function(e){const o=Y.getSignedInUser(),i=e.tenantState.currentTenantId,u=L(e),a=u?.companyName??"",s={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:i??""},t=C(e),n=pe(u);return{fetchState:t.fetchState,selectedTimeframe:t.filter.timeframe,selectedReport:t.selectedReportId,displayOrder:t.displayOrder,reportFormat:t.reportFormat,dataAvailable:t.dataAvailable,balancesInTimeframe:t.balancesInTimeframe,allTimeframeTicks:t.allTimeframeTicks,selectedCOABalancesRange:t.filter.balancesRange,isCompareMode:t.isCompareModeOn,profitAndLossReport:t.profitAndLossReport,profitAndLossClassesViewReport:t.profitAndLossByClassReport,profitAndLossByClassHorizontalReport:t.profitAndLossByClassHorizontalReport,balanceSheetReport:t.balanceSheetReport,cashFlowReport:t.cashFlowReport,downloadState:t.downloadState,analytics:E,isZeniUser:me(o),showAccountGroups:n===!0,currentTenantCompanyName:a,statementEndPoint:`${Be}/statement`,authParams:s,isZeniCOAUsed:n}},function(e,o){const{navigate:i,handleDrawerToggle:u}=o;return{onReloadReport:()=>{o.signedInUser!=null&&e(F(o.signedInUser.userId,!0,!1))},updateDownloadStateHandler:a=>{e(Se(a))},onTimeframeSelectionChanged:(a,s,t)=>{if(e(we(a)),s){const{isCompareModeOn:n,filter:l}=o,{additionalBalances:p,balancesRange:d}=l;let m=[...p];a==="year"&&(m=m.filter(_=>_!=="this_period_vs_same_period_last_year"&&_!=="this_period_vs_same_period_last_year_percent"&&_!=="same_period_last_year")),e(U(o.firstMonthOfFY,n,d.numberOfPeriods<4?4:d.numberOfPeriods,m)),p.length>0&&e(V(o.firstMonthOfFY,m.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",d.numberOfPeriods<4?4:d.numberOfPeriods,m))}t!==!0&&setTimeout(()=>g(e),50)},onReportSelectionChanged:a=>{const s=o.selectedReportID;if(a===s)return;const t=o.classViewLayout;e(T(a)),(a==="balance_sheet"||a==="cash_flow")&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(x({numberOfPeriods:4,orderBy:"ascending_date"})),a!=="profit_and_loss"&&a!=="profit_and_loss_by_classes"&&s==="profit_and_loss_by_classes"&&t==="horizontal"&&e(v({classViewLayout:"vertical"})),g(e)},onCOABalancesRangeChanged:(a,s)=>{e(x(a,s)),g(e)},onThisPeriodChanged:(a,s,t)=>{e(Ie(o.firstMonthOfFY,a,s<4?4:s)),t!==!0&&g(e)},onAdditionalBalanceSelectionChanged:(a,s,t,n)=>{e(U(o.firstMonthOfFY,a,t<4?4:t,s)),s.length>0&&e(V(o.firstMonthOfFY,s.includes("this_period_vs_last_period")?"compare_mode_amount":"compare_mode_percent",t<4?4:t,s)),n!==!0&&o.isCompareModeOn===a||setTimeout(()=>g(e),50)},onUpdateHighlightedNumberOfPeriods:(a,s,t,n)=>{e(Ce({firstMonthOfFY:o.firstMonthOfFY,isCompareModeOn:s,additionalBalances:a,maxNumOfPeriodsToHighlight:t<4?4:t,coaBalances:n}))},onAccountBalanceClick:o.hasTransactionAccess!==!0?void 0:(a,s,t)=>{let n,l;if(s.balanceTimeFrame==="month"||s.balanceTimeFrame==="quarter"?(n=s.balanceTimeFrame,l=ge(s)):s.balanceTimeFrame==="year"?(n="quarter",l={startDate:s.endDate.startOf("quarter"),endDate:s.endDate}):console.error(`timeframe ${s.balanceTimeFrame} is not supported`),l!=null&&n!=null){const p=a.accountName===""?a.accountDescription:a.accountName,d=(()=>{if(o.selectedReportID==="profit_and_loss_by_classes"&&o.classViewLayout==="horizontal"&&a.accountType!=null){if(t?.isHorizontalClassTotalColumn===!0)return z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l);if(t?.isHorizontalClassColumn===!0&&s.id!=null)return q(o.tenantEmailDomain,a.accountId,a.accountType,s.id,p,n,l)}return a.classesViewParentId!=null&&a.classesViewParentId.parentClassId!=null&&a.accountType!=null?q(o.tenantEmailDomain,a.accountId,a.accountType,a.classesViewParentId.parentClassId?.[0],p,n,l):a.accountType!=null?z(o.tenantEmailDomain,a.accountId,a.accountType,p,n,l):void 0})();if(d!=null){const m=je(o.location.state?.pathnameStackToGoBack,o.location.pathname);i(d,{state:{pathnameStackToGoBack:m,referrer:R(o.selectedReportID)}})}}},onTableScroll:(a,s)=>{switch(a){case"profit_and_loss":e(H({scrollPosition:s}));break;case"profit_and_loss_by_classes":e(D({scrollPosition:s}));break;case"balance_sheet":e(k({scrollPosition:s}));break;case"cash_flow":e(O({scrollPosition:s}));break;default:console.log(`Table Scroll state for ${a} is not handled`)}},onElementCollapseStateChanged:(a,s,t)=>{switch(a){case"profit_and_loss":e(H({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"profit_and_loss_by_classes":e(D({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"balance_sheet":e(k({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;case"cash_flow":e(O({nodeCollapseState:{nodeId:s,isCollapsed:t}}));break;default:console.log(`Collapse state toggle for ${a} is not handled`)}},onBackClick:()=>{i("../../")},onUpdateAccountViewMode:a=>{e(ye({viewMode:a})),a==="classes"?(o.analytics?.trackGroupBySwitch("Classes",R(o.selectedReportID)),e(T("profit_and_loss_by_classes"))):(o.analytics?.trackGroupBySwitch("Accounts",R(o.selectedReportID)),e(T("profit_and_loss"))),g(e)},onUpdateClassesToFilterOut:a=>{e(be({classesToFilterOut:a}))},onUpdateClassViewLayout:a=>{e(v({classViewLayout:a}))},onOpenAccountViewMode:()=>{e(he())},onUpdateDisplayOrder:a=>{e(_e(a))},onUpdateReportFormat:a=>{ze(e),e(ue(a))},onClickMenuIcon:()=>{u(!0)},onResyncReports:()=>{e(fe("profit_and_loss_by_classes"))}}})(Pe);function Ge(){const e=He(),o=ee(),i=ae(),u=se(),{tenantEmailDomain:a}=te(),{useFeatureGate:s}=G(),{isFeatureEnabled:t}=s(A.isReportsHorizontalClassLayoutSwitchEnabled),n=Y.getSignedInUser(),[l,p]=y.useState(!1),[d,m]=y.useState(!1),{isFeatureEnabled:_}=s(A.isReportsCommentingEnabled);if(n==null)throw Error("Can't access reports page without signing in...");const M=f(r=>L(r)),N=M.company?.companyInfo.firstMonthOfFY??1,$=Ve(_?M?.companyId:void 0),I=f(r=>C(r).fetchState),J=f(r=>re(r)),{areTenantIdsInSync:h}=Ae(),w=f(r=>r.financeStatementState.selectedReportId),Z=f(r=>C(r).isCompareModeOn),b=f(r=>C(r).filter),S=f(r=>C(r).selectedReportAndTimeframeFetchState),K=f(r=>r.profitAndLossClassesViewState.uiState.classViewLayout);y.useEffect(()=>{!l&&h&&(p(!0),i(F(n.userId,!0,!0,!1)))},[l,n,i,h]),y.useEffect(()=>{l&&!d&&I==="Completed"&&h&&(i(F(n.userId,!1,!0,!1)),m(!0))},[l,d,I,h]),y.useEffect(()=>{if(l&&S.fetchState==="Not-Started"&&b.timeframe!=="free_range"&&b.timeframe!=="week"&&h)switch(w){case"profit_and_loss":case"profit_and_loss_by_classes":i(ce(b.timeframe));break;case"balance_sheet":i(ie(b.timeframe));break;case"cash_flow":i(le(b.timeframe))}},[l,w,S,h]);const P=Ee(),Q=P?.loggedInUserRole!=null&&de(P?.loggedInUserRole)!==!0,[W,X]=y.useState(!1),B=r=>{X(r)};return c.jsxs(c.Fragment,{children:[I==="Completed"?c.jsx(Le,{analytics:E,onLoad:r=>r.trackPageLoaded(Me.Event.reports)}):null,c.jsx(xe,{isAppContentDrawerOpen:W,handleDrawerToggle:B}),c.jsx(qe,{firstMonthOfFY:N,tenantEmailDomain:a,location:u,navigate:o,windowSize:e,classViewLayout:K,selectedReportID:w,analytics:E,filter:b,isCompareModeOn:Z,hasTransactionAccess:Q,signedInUser:n,selectedReportAndTimeframeFetchState:S,handleDrawerToggle:B,reportsResyncFetchState:J.reportsResyncFetchState,isHorizontalClassReportSwitchEnabled:t,isReportsCommentingEnabled:_,initialOpenThreadRequest:$})]})}const R=e=>{switch(e){case"profit_and_loss":return"Profit & Loss";case"balance_sheet":return"Balance Sheet";case"cash_flow":return"Cash Flow";default:return"Reports"}};function ca(){const e=f(s=>L(s)),{useFeatureGate:o}=G(),{isFeatureEnabled:i}=o(A.isDebitCardFeatureEnabled),u=ke(i,e),a=De(e);return u===!0||a===!0?c.jsx(Ue,{}):c.jsxs(ne,{children:[c.jsx(j,{path:"/",element:c.jsx(Ge,{})}),c.jsx(j,{path:"*",element:c.jsx(ve,{})})]})}export{ca as default};
@@ -1,4 +1,4 @@
1
- import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-CVe1fo1a.js";import{a as z,b as ee}from"./sentry-CFYfTv_F.js";import{n as f}from"./mui-DcvwYC51.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-BqRsL6eJ-D0sv3zgU.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-B70YK7cw-CXnt8iTO.js";import{V as J}from"./toChartData-CWgd8E5c-DiIGKIgi.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-LOG_L3Q0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e31dcb80-ed0f-4a7d-a433-efc82f34bb7d",e._sentryDebugIdIdentifier="sentry-dbid-e31dcb80-ed0f-4a7d-a433-efc82f34bb7d")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
1
+ import{y as F,O as S,V as t,f as m,S as Fe,an as Q,m as E,w as M,ag as Z,e as de,o as x,b as Ve,x as fe,b8 as ge,l as R,b9 as V,au as K}from"./index-iSEGT9xi.js";import{a as z,b as ee}from"./sentry-DwNPvXBL.js";import{n as f}from"./mui-Bg5IRLA2.js";import{p as b,b as T,d as te,y as N,g as ae,u as W}from"./chartTypes-BqRsL6eJ-DnPOTdta.js";import{c as I,i as A,h as re}from"./toCOABalancesWithID-B70YK7cw-Cqus0iZx.js";import{V as J}from"./toChartData-CWgd8E5c-vscPIv0G.js";import{G as pe,K as oe,S as me,E as le,X as ne,Y as ce,F as se,H as xe,J as We}from"./recharts-Bztd37V0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="e31dcb80-ed0f-4a7d-a433-efc82f34bb7d",e._sentryDebugIdIdentifier="sentry-dbid-e31dcb80-ed0f-4a7d-a433-efc82f34bb7d")}catch{}})();const q={legendLabelMarginLeft:new fe(2,2),legendLabelMarginRight:new fe(E[3],E[4])},Ke=f.div`
2
2
  display: flex;
3
3
  `,He=f.div`
4
4
  margin: ${x.sp2} ${x.sp0} ${x.sp2} ${x.sp0};
@@ -1,4 +1,4 @@
1
- import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as U,c$ as O,f as j,eP as At,eQ as E,d5 as _,eR as Bt,eS as Ft,bo as Le,o as n,a9 as Rt,m as s,O as Lt,u as zt,bx as Nt,d as Ot,M as Et,eT as _t,bH as Vt,l as ce,H as me,eU as Zt,eV as Gt,aD as Yt,n as Ht,at as Kt,eW as Ut,D as tt,b6 as qt,C as nt,aR as Wt,eX as Qt}from"./index-CVe1fo1a.js";import{a as Z}from"./sentry-CFYfTv_F.js";import{n as a}from"./mui-DcvwYC51.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-BZiG8B71.js";import{t as tn,o as nn}from"./LowBalancePopup-DTtl3SIc-jw3rRGRn.js";import{S as V}from"./LabeledText-GEbY3-bB-BUisrQ9a.js";import"./pdf-DA3UteIy.js";import"./core-BAxGDYbL.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="5a00c839-5d59-450c-aebc-5d922d2b7ee9",e._sentryDebugIdIdentifier="sentry-dbid-5a00c839-5d59-450c-aebc-5d922d2b7ee9")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ve=({attachment:e})=>{const[y,x]=Z.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Gt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:dt,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:X,retryPayment:ct})=>{const d=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),I=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:d,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&G?.code?G:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&G?.code?G:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),le=dt&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&K(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,K]=Z.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{st(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{K(!1),ae()},onClickAway:()=>{K(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:d,style:lt,children:[d==="small"?t.jsxs(Pn,{windowSize:d,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:d,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),d!=="small"?t.jsx(bn,{children:t.jsx(He,{windowSize:d,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(d)?t.jsxs(Ke,{windowSize:d,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(Ue,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,d):g,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Ut(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||Y==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:Y.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(Y.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:d,children:[t.jsxs(yn,{children:[t.jsx(sn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ye,{children:[t.jsx(se,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(se,{children:_e.transactionFee}),t.jsx(de,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(dn,{children:[t.jsx(se,{children:Ee.total}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,H,d)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?K(!0):Ce()},style:{width:Ge(!0,C,h,H,d)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Vn,{windowSize:d,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Zn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ze=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ge=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
1
+ import{e as wt,_ as $t,x as u,eB as vt,eC as jt,eD as St,V as t,eE as Ct,eF as ie,eG as Tt,eH as Dt,eI as It,eJ as Pt,a5 as k,eK as kt,b as v,eL as Mt,eM as Be,eN as Fe,eO as Re,w as U,c$ as O,f as j,eP as At,eQ as E,d5 as _,eR as Bt,eS as Ft,bo as Le,o as n,a9 as Rt,m as s,O as Lt,u as zt,bx as Nt,d as Ot,M as Et,eT as _t,bH as Vt,l as ce,H as me,eU as Zt,eV as Gt,aD as Yt,n as Ht,at as Kt,eW as Ut,D as tt,b6 as qt,C as nt,aR as Wt,eX as Qt}from"./index-iSEGT9xi.js";import{a as Z}from"./sentry-DwNPvXBL.js";import{n as a}from"./mui-Bg5IRLA2.js";import{cp as ze,cj as Ne,bX as D,c4 as Xt,FW as Jt,bG as re,c6 as en}from"./zeni-epic-state-DQF5EBoo.js";import{t as tn,o as nn}from"./LowBalancePopup-DTtl3SIc-aNudwoSx.js";import{S as V}from"./LabeledText-GEbY3-bB-a8-4xrHX.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},y=new e.Error().stack;y&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[y]="5a00c839-5d59-450c-aebc-5d922d2b7ee9",e._sentryDebugIdIdentifier="sentry-dbid-5a00c839-5d59-450c-aebc-5d922d2b7ee9")}catch{}})();const at=["small","medium-compact","medium-regular"],m={largeLabelWidth:new u(150,215,215),infoMinWidth:new u(0,0,0,142,142),infoMarginRight:new u(0,0,0,s[2],s[2]),footerButtonWidth:new u(120,165),iconContainerMarginTop:new u(6,s[1]),navBarContainerPaddingTop:new u(10,s[3]),sectionTitleMarginLeft:new u(s[3],s[0]),reviewContainerMarginLeft:new u(s[3],s[6]),reviewContainerMarginRight:new u(s[3],s[8]),footerRightIconMarginRight:new u(s[0],s[0],s[7]),infoLabelPaddingRight:new u(s[0],s[3]),infoLabelMarginTop:new u(s[1],s[0])},an={sectionTitle:new Ot("h6Medium","h5Medium")},{dateFormat:Oe,common:{currency:$,labels:Ee,edit:on,strings:{empty:g}},spendManagement:{billPay:ln}}=Lt.getLocalizedStrings(),{billDetails:o,paymentDetails:_e}=ln,Ve=({attachment:e})=>{const[y,x]=Z.useState(!1),M=e.fileId?.length===0;return t.jsxs(Fn,{isDisabled:e.fileId?.length===0,"data-testid":v("attachment-tag",e.fileName),onClick:()=>M===!1?x(!0):null,children:[y&&e?.fileDownloadUrl!=null?t.jsx(Zt,{title:e.fileName,file:e,onCrossClick:()=>{x(!1)},setShowFullScreenView:x}):null,t.jsx(Rn,{children:t.jsx(Gt,{contentType:e.contentType})})]})},ia=({billDetails:e,billpayApprovalView:y,isBillPayCommentingEnabled:x,currentTenant:M,isInternationalPaymentShaVsOurEnabled:A,isLocalCurrencyEnabled:ot,style:lt,analytics:w,isRecurringBillsFeatureEnabled:it,isApprovalRequiredForMarkAsPaid:rt,isDetectInsufficientFundsEnabled:dt,billId:b,onClickEdit:pe,discardBillDetailsFromLocalStore:ue,saveBillDetails:ye,discardOutsideZeniPaymentData:st,updateBillDetailSaveBillCode:he,redirectToBillsScreen:ge,onAttachmentClick:X,retryPayment:ct})=>{const d=wt(),c=$t(),B={application:"dashboard",companyId:c.currentTenant?.companyId,tab:"bill",entityId:b},F=x&&b!=null,R=`dashboard_${c.currentTenant?.companyId}`,L=m.largeLabelWidth.value(d),I=e.saveStatus,J=e.zeniAssistRetryStatus,ee=e.vendor?.vendorCurrencyCode,i=vt(A,ot,e.billPayConfigList.filter(l=>l.method.includes(e.paymentDetailsSection?.withdrawFrom?.accType??"depositAccount")),e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,e.paymentDetailsSection?.paymentType,ee),S=Oe.visual.MMMDCommaYYYYformat,xe={amount:e.recipientTotalAmount.amount/(e.paymentDetailsSection?.conversionRate??1)*100/100,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},p={amount:i?.method.includes("international")===!0?jt(xe,i):e.recipientTotalAmount.amount+(i?.fee.amount??0),currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},z={amount:i?.method.includes("international")===!0?St(xe,i):i?.fee.amount??0,currencyCode:$.currencyCode,currencySymbol:$.currencySymbol},[mt,fe]=Z.useState(!1),[te,be]=Z.useState(!1),we=()=>fe(!1),pt=e.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${o.magicLink.collectFrom} ${e.toAccountVendorEmail}`,t.jsx(Mn,{size:d,children:t.jsx(kn,{})})]}):Ct(e.paymentDetailsSection?.paymentTo);Z.useEffect(()=>{(I?.fetchState==="Completed"||J?.fetchState==="Completed")&&(ue(),he(),ge())},[I,J,ge,ue,he]);const P=e.billPayInfo?.stage,N=e.billPayInfo?.billStatus,G=e.billPayInfo?.billPaymentStatus,ut=e.billPayInfo?.billPaymentRefundStatus,ne=P?.code==="paid"?P:N?.code=="approved"&&G?.code?G:N,yt=e.billPayInfo?.isRefundInitiated===!0?ut:N?.code=="approved"&&G?.code?G:N,ae=()=>{pe()},$e=()=>{pe()},Y=e.paymentDetailsSection?.paymentDate,oe=ie(i?.method??""),ve=oe.replace("Same Day",""),ht=e.isCollectToAccountInfoFromVendorContact?t.jsx(Tt,{paymentTypeLabel:ve,onClick:()=>{w.trackBillPayMagicLinkPreviewEmail("review_bill"),fe(!0)}}):o.addedByZeni,H=y.allApprovalRules.length>0,gt=ze(i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?p.amount-z.amount:p.amount,i?.fee.currencyCode??Ne.currencyCode,i?.fee.currencySymbol??Ne.currencySymbol),f=Xt(e.paymentDetailsSection?.paymentType?.method),je=()=>{be(!0),w.trackBillPayMarkAsPaid(P?.code??"draft",ne?.code??"")},C=f,h=C&&!rt,Se=Ze(h,H,e.isBillMarkedForRetry),le=dt&&e.paymentDetailsSection!=null?Dt(p,e.paymentDetailsSection.withdrawFrom,e.paymentDetailsSection.paymentDate):void 0,Ce=()=>{Te===!0&&K(!1),e.isBillMarkedForRetry===!0?(ct(),w.trackRetryConfirmClick(ne?.code??"",P?.code??"",yt?.description??"",e.isRecurring?["Recurring"]:["One-Time"],e.invoiceNumber??"")):e.vendor!=null&&((()=>{const l=e.paymentDetailsSection?.paymentDate,r=e.isCollectToAccountInfoFromVendorContact,T=e.recurringConfig,ft=e.recipientTotalAmount;if(e.isInvoiceDateAutoUpdated===!0&&w.trackBillPayAutoDateChange(b??"new_bill"),i?.method!=null&&l!=null){const bt=f?o.paymentOutsideZeni.offline:ie(i.method);if(w.trackBillPaySendForApproval(bt,l.format(Oe.analytics.MMMDashDDDashYYYYFormat),r,e.isRecurring,b,e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod,{startDate:re(T?.startDate?.toString()??"").format(S),endDate:re(T?.endDate?.toString()??"").format(S),frequency:T?.frequency??"monthly",totalAmount:ft.amount,totalPaymentCycles:T?.totalPaymentCycles??0,isApprovalRequired:T?.isApprovalRequired??!1,updateCurrentBill:e.recurringConfig?.id!=null?T?.updateRecurringBills==="current":void 0,updateFutureRecurringBills:e.recurringConfig?.id!=null?T?.updateRecurringBills==="all":void 0}),le!=null){const De=P?.code??"draft",Ie=N?.code??"",Pe=e.isRecurring?["Recurring"]:["One-Time"],ke=e.invoiceNumber??"",Me=Qt(c.loggedInUser),Ae=e.paymentDetailsSection?.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account";Se===o.scheduleBill?w.trackLowBalanceAccountSchedule(De,Ie,Pe,ke,Me,Ae):Se===o.sendForApproval&&w.trackLowBalanceAccountSentForApproval(De,Ie,Pe,ke,Me,Ae)}}})(),ye(!1,{}))},xt=Jt(p.amount,y.allApprovalRules,c.loggedInUser),[Te,K]=Z.useState(!1);return t.jsxs(gn,{children:[te?t.jsx(tn,{onCancel:()=>{st(),be(!1)},onProceedForMarkAsPaid:l=>{w.trackBillPayMarkAsPaidSubmit(l.paymentMode??"other",P?.code??"draft",ne?.code??""),ye(!0,l)},saveDetailsFetchState:I?.fetchState,paymentData:e.outsideZeniPaymentInfo}):null,Te?t.jsx(nn,{withdrawFrom:e.paymentDetailsSection?.withdrawFrom,paymentDate:e.paymentDetailsSection?.paymentDate,onOkClick:Ce,onCancelClick:()=>{K(!1),ae()},onClickAway:()=>{K(!1)}}):null,t.jsx(It,{anchor:"right",open:mt,onClose:we,transitionDuration:250,"data-testid":v("vendor-email-preview-drawer"),children:t.jsx(Pt,{companyName:kt(M.company?.companyInfo),vendor:e.vendor?.name,paymentDate:Y?.format(S)??"",paymentType:ve,amount:k("0,0[.]00",p),isInvoiceAttached:!!e.file,onClose:we})}),t.jsxs(xn,{windowSize:d,style:lt,children:[d==="small"?t.jsxs(Pn,{windowSize:d,children:[t.jsx(We,{onClick:$e,"data-testid":v("review-detail-nav-bar-small-back")}),t.jsx(He,{windowSize:d,children:o.oneLastLook})]}):t.jsx(In,{"data-testid":v("review-details-nav-bar-back"),children:t.jsx(We,{onClick:$e})}),d!=="small"?t.jsx(bn,{children:t.jsx(He,{windowSize:d,children:o.oneLastLook})}):null,e.duplicateBillTransactions.length>0?t.jsxs(wn,{children:[t.jsxs($n,{children:[t.jsx(_n,{}),t.jsxs(vn,{children:[t.jsx(Sn,{children:o.duplicateBillPayWarning}),t.jsxs(jn,{children:[o.duplicateBillPayWarningSubHeading,t.jsxs("span",{"data-testid":v("review-detail-attachment-button"),onClick:()=>X(e.duplicateBillTransactions[0].id,e.duplicateBillTransactions[0].billPayInfo.stage.code),style:{textDecoration:"underline",cursor:"pointer"},children:[o.viewBill,e.duplicateBillTransactions[0].documentId]})]})]})]}),t.jsxs(Nn,{children:[t.jsx(En,{children:o.duplicateInvoiceFound}),e.duplicateBillTransactions.map(l=>{const r=Mt(l);return l!=null?t.jsx(On,{children:at.includes(d)?t.jsxs(Ke,{windowSize:d,children:[t.jsxs(Cn,{children:[t.jsxs(Tn,{children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsx(W,{children:t.jsxs(t.Fragment,{children:[l.documentId!=null?o.invoiceNo:null,l.documentId]})})]}),t.jsx(Je,{windowSize:d,children:k("0,0[.]00",l.recipientTotalAmount)})]}),t.jsxs(Ln,{"data-testid":v("review-detail-mobile-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsxs(W,{children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})]}):t.jsxs(Ke,{windowSize:d,children:[l.attachments&&l.attachments.length>0?t.jsx(Ve,{attachment:l.attachments[0]}):t.jsx(Qe,{children:t.jsx(Xe,{})}),t.jsxs(zn,{"data-testid":v("review-detail-info"),onClick:()=>X(l.id,l.billPayInfo.stage.code),children:[t.jsx(W,{style:{width:"50%"},children:t.jsxs("div",{children:[l.documentId!=null?o.invoiceNo:null," ",l.documentId]})}),t.jsxs(W,{style:{width:"25%"},children:[l.dueDate!=null?o.due:null," ",l.dueDate?.format(S)]}),t.jsx(Je,{style:{width:"25%"},windowSize:d,children:k("0,0[.]00",l.amount)})]}),t.jsx(et,{children:r!=null?Be.includes(r.code)?t.jsx(Fe,{style:{padding:"2px 5px"},title:r.value,placement:"top",children:t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value})}):t.jsx(Q,{color:r.color,bgColor:r.bgColor,borderColor:r.borderColor,children:r.value}):null})]})},l.id):null})]})]}):null,t.jsxs(Dn,{children:[t.jsx(Ue,{children:o.pay}),t.jsx(qe,{children:t.jsx(Re,{amount:gt,integerStyles:U.largeMedium.cssObject,decimalStyles:U.smallMedium.cssObject})}),t.jsx(Ue,{children:o.to}),t.jsx(qe,{children:e.vendor?.name})]}),t.jsxs(fn,{children:[f?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"withdrawFrom"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("withdrawFrom")}`},children:t.jsx(V,{label:{label:o.withdrawFrom,width:L},style:{width:"auto"},value:e.paymentDetailsSection?.withdrawFrom!=null?At(e.paymentDetailsSection.withdrawFrom,d):g,infoLabelStyle:{textAlign:d==="small"?"left":"right",paddingRight:m.infoLabelPaddingRight.valuePx(d),marginTop:m.infoLabelMarginTop.valuePx(d),color:j.brandColorGoldDark},additionalInfoLabel:le})}),t.jsx(q,{})]}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentType")}`},children:t.jsx(V,{label:{label:o.paymentMethod,width:L},style:{width:"auto"},value:ie(i?.method??""),additionalInfoLabel:f?h?void 0:o.paymentOutsideZeni.reviewInfo:i?.method!=null&&i.method.includes(D)&&e.paymentDetailsSection?.internationalTransferFeeBearerPaymentMethod!=null&&A&&ee===$.currencyCode?Ut(e.paymentDetailsSection.internationalTransferFeeBearerPaymentMethod):void 0})}),t.jsx(q,{}),f||Y==null?null:t.jsxs(t.Fragment,{children:[t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentDate"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentDate")}`},children:t.jsx(V,{label:{label:o.paymentDate,width:L},style:{width:"auto"},value:Y.format(S),additionalInfoLabel:`${o.estimatedArrival}${re(en(Y.toDate(),[0,6],i?.maxPeriod.value??0).toDateString()).format(S)} - (${oe.length>0?`${oe} `:""}${o.deliveryTimeLabel} = ${i?.maxPeriod.value??"0"} ${o.deliveryTimeUnits})`})}),t.jsx(q,{})]}),f?null:t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"paymentTo"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("paymentTo")}`},children:t.jsx(V,{label:{label:o.paymentTo,width:L},style:{width:"auto"},value:pt??"",additionalInfoLabel:ht})}),f||it?t.jsxs(t.Fragment,{children:[t.jsx(q,{}),t.jsx(O,{isThreadAllowed:F,entityId:b,dashboardTabKey:_({type:"details",key:"recurringPaymentType"}),roomId:R,companyId:c.currentTenant?.companyId??g,companyName:c.currentTenant?.companyName??g,dashboardOptionType:"bill",filterMetaData:{...B,entityType:`bill.details.${E("recurringPaymentType")}`},children:t.jsx(V,{label:{label:o.paymentType,width:L},style:{width:"auto"},value:Ft(e.isRecurring,f,e.recurringBillInstance??1,e.recurringConfig?.totalPaymentCycles??0),additionalInfoLabel:Bt(d,e.isRecurring,f,e.recurringConfig)})})]}):null]}),!f&&i?.method!=null&&(i.method.includes(D)||i?.fee.amount!=null&&i.fee.amount!==0)?t.jsx(pn,{children:t.jsxs(un,{windowSize:d,children:[t.jsxs(yn,{children:[t.jsx(sn,{children:o.total}),t.jsx(Le,{style:{padding:`12px ${n.sp3}`,lineHeight:"18px"},maxWidth:"312px",title:t.jsxs(mn,{children:[t.jsxs(Ye,{children:[t.jsx(se,{children:i.method.includes(D)&&ee!==$.currencyCode?_e.conversionAmountColon:Ee.invoiceAmount}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount-z.amount,currencySymbol:z.currencySymbol})})]}),t.jsxs(Ye,{children:[t.jsx(se,{children:_e.transactionFee}),t.jsx(de,{children:k("0,0[.]00",{amount:z.amount,currencySymbol:z.currencySymbol})})]}),t.jsx(cn,{}),t.jsxs(dn,{children:[t.jsx(se,{children:Ee.total}),t.jsx(de,{children:k("0,0[.]00",{amount:p.amount,currencyCode:p.currencyCode,currencySymbol:p.currencySymbol})})]})]}),placement:"top-end",children:t.jsx(rn,{})})]}),t.jsx(hn,{children:t.jsx(Re,{amount:ze(p.amount,p.currencyCode,p.currencySymbol),integerStyles:U.h6Medium.cssObject,decimalStyles:U.standardMedium.cssObject})})]})}):null]}),t.jsx(Rt,{cancelBtn:{label:C&&!h?o.paymentOutsideZeni.markAsPaid:o.editBill,onClick:C&&!h?je:ae,isLoading:C&&!h&&te&&I?.fetchState==="In-Progress",reverseSpinnerColor:!1,style:{width:Ge(!1,C,h,H,d)}},primaryBtn:{label:Ze(h,H,e.isBillMarkedForRetry),isLoading:I?.fetchState==="In-Progress"&&(h||!te)||J?.fetchState==="In-Progress",onClick:h?je:()=>{xt&&le!=null?K(!0):Ce()},style:{width:Ge(!0,C,h,H,d)}},rightSideComponent:C&&!h&&I.fetchState!=="In-Progress"?t.jsx(Vn,{windowSize:d,children:t.jsx(Le,{style:{color:j.heroDark,padding:`2px ${n.sp2}`},display:"flex",title:on,placement:"top",children:t.jsx(Gn,{onClick:ae,"data-testid":v("review-detail-edit-bill-button"),children:t.jsx(Zn,{})})})}):null,style:{minHeight:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?127:62,...e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)&&{padding:n.sp3,rowGap:n.sp3}},children:e.paymentDetailsSection?.paymentType?.method!=null&&e.paymentDetailsSection.paymentType.method.includes(D)?t.jsxs(An,{children:[o.internationalText1,t.jsx(Bn,{href:"https://www.nium.com/legal/end-customer-terms",target:"_Blank",rel:"noopener noreferrer",children:o.internationalTerms}),o.internationalText2]}):null})]})},Ze=(e,y,x)=>e?o.paymentOutsideZeni.markAsPaid:x===!0?o.retryPayment:y?o.sendForApproval:o.scheduleBill,Ge=(e,y,x,M,A)=>x?128:y&&!e&&A==="small"?"auto":M?165:m.footerButtonWidth.value(A),rn=a(qt)`
2
2
  width: ${n.sp3};
3
3
  height: ${n.sp3};
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-CVe1fo1a.js";import{n as t}from"./mui-DcvwYC51.js";import{a as w}from"./sentry-CFYfTv_F.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
1
+ import{e as P,V as i,b as x,o as r,a9 as B,x as d,a8 as L,d as I,M as W,f as s,l as b,c1 as D,L as R,C as S,aC as G,m as o,dO as A,aA as _,i9 as F}from"./index-iSEGT9xi.js";import{n as t}from"./mui-Bg5IRLA2.js";import{a as w}from"./sentry-DwNPvXBL.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="699f086a-7225-4684-91b8-ebe09172dae6",e._sentryDebugIdIdentifier="sentry-dbid-699f086a-7225-4684-91b8-ebe09172dae6")}catch{}})();const a={containerMarginTop:new d(0,o[2]),containerMarginLeft:new d(o[3],o[8]),containerMarginRight:new d(o[3],o[8]),subTitleMarginBottom:new d(o[2],o[2]),titleMarginBotom:new d(o[0],o[2]),titleMarginRight:new d(o[0],o[3]),navBarHeight:new d(62,62,62),navBarPaddingLeft:new d(o[3],o[3],o[8]),navBarPaddingRight:new d(o[3],o[3],o[8])},H={title:new I("h6Regular","h5Regular")},xe=({title:e,description:g,reviewItems:m,showFooter:z,footerProps:{primaryButton:C,cancelButton:T,hideCancel:E},onCloseOverlay:k,onCloseReviewItem:M})=>{const l=P();return i.jsxs(Z,{children:[i.jsx(U,{windowSize:l,children:i.jsx(X,{children:i.jsx(Y,{windowSize:l,children:i.jsx(ee,{children:i.jsx(ie,{onClick:k,"data-testid":x("review-overlay-close",e)})})})})}),i.jsxs(J,{windowSize:l,children:[i.jsxs(V,{windowSize:l,children:[i.jsx(q,{children:i.jsx(K,{windowSize:l,children:e})}),i.jsx(N,{isError:g.isError,windowSize:l,children:g.content})]}),i.jsx(Q,{windowSize:l,children:m.map(n=>{const h=n.reviewStatus.code==="error",c=n.reviewStatus.code==="warning"||n.reviewStatus.code==="low-balance";return i.jsxs(re,{isLoading:!1,isActive:!0,isWarning:c,isError:h,children:[c?i.jsx(ce,{onClick:()=>M(n.id),"data-testid":x("review-close",n.id)}):null,i.jsxs(te,{children:[i.jsxs(oe,{children:[i.jsx(de,{children:O(n)}),i.jsxs(ne,{children:[i.jsxs(u,{children:[i.jsx($,{style:{marginLeft:r.sp2},isWarning:c,isError:h,children:n.leftSideText.title}),i.jsx($,{isWarning:c,isError:h,children:n.rightSideText.title})]}),i.jsxs(u,{children:[i.jsx(se,{style:{marginLeft:r.sp2},children:n.leftSideText.subTitle}),l!=="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{isWarning:!0,isError:!1,children:n.rightSideText.additonalInfo})]}):null]})]})]}),l==="small"?i.jsxs(f,{windowSize:l,children:[i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isError:h,isWarning:c,children:i.jsxs(i.Fragment,{children:[n.rightSideText.showThunderIcon===!0?i.jsx(v,{children:i.jsx(j,{})}):null,n.rightSideText.subTitle]})}),i.jsx(p,{style:{marginLeft:r.sp5,marginTop:r.sp0},isWarning:c,isError:h,children:n.rightSideText.additonalInfo})]}):null]})]},n.id)})})]}),z?i.jsx(B,{primaryBtn:C,cancelBtn:T,showCancel:!E}):null]})},O=e=>e.reviewStatus.isLoading?i.jsx(R,{size:"Small",style:{display:"flex",width:r.sp4,height:r.sp4,alignItems:"center",justifyContent:"center"},start:!0}):e.reviewStatus.code==="error"?i.jsx(y,{isError:!0}):e.reviewStatus.code==="warning"?i.jsx(y,{isError:!1}):e.reviewStatus.code==="valid"?i.jsx(le,{}):e.reviewStatus.code==="low-balance"?i.jsx(he,{}):i.jsx(ae,{}),Z=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey4};
@@ -1 +1 @@
1
- import{j as e}from"./pdf-DA3UteIy.js";import{aE as x,js as w,aF as y,bk as I,jz as p,J as F,mj as L,aG as P}from"./index-CVe1fo1a.js";import"./mui-DcvwYC51.js";import m from"./NotFoundScreen-BGyIaLbV.js";import{a as u}from"./sentry-CFYfTv_F.js";import{i as R,u as b,j as T,h as V,k as O,R as U,m as f}from"./core-BAxGDYbL.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-BZiG8B71.js";import{R as j}from"./ReferralListScreen-CBuGWNNX.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.js";import"./MobileAppDrawer-qasrJsA4.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="234753b6-19af-48c1-8b48-7e4e913ceafa",a._sentryDebugIdIdentifier="sentry-dbid-234753b6-19af-48c1-8b48-7e4e913ceafa")}catch{}})();const K=O(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(J())},onUpdateInviteFormLocalData:s=>{a(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const a=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>z(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=b(i=>C(i)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),E=A(v);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&o===!1&&(a(G()),s(!0))},[]),u.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(q(!0)))},[l.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(f,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(f,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(f,{path:"refer/*",element:t?e.jsx(Z,{}):e.jsx(m,{})}),e.jsx(f,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
1
+ import{j as e}from"./pdf-2PUMrtF-.js";import{aE as x,js as w,aF as y,bk as I,jz as p,J as F,mj as L,aG as P}from"./index-iSEGT9xi.js";import"./mui-Bg5IRLA2.js";import m from"./NotFoundScreen-DGF4ewvh.js";import{a as u}from"./sentry-DwNPvXBL.js";import{i as R,u as b,j as T,h as V,k as O,R as U,m as f}from"./core-Dbakk1VU.js";import{ct as z,O3 as C,KZ as A,O4 as k,qu as G,cG as q,O5 as Y,qs as J}from"./zeni-epic-state-DQF5EBoo.js";import{R as j}from"./ReferralListScreen-CRs7Pk4b.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.js";import"./MobileAppDrawer-D9B1riEd.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new a.Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="234753b6-19af-48c1-8b48-7e4e913ceafa",a._sentryDebugIdIdentifier="sentry-dbid-234753b6-19af-48c1-8b48-7e4e913ceafa")}catch{}})();const K=O(function(a,t){const n=C(a);return{inviteFormView:n.localData,submitStatus:n.saveStatus,userName:t.userName,rewardsPlan:n.rewardsPlan,companyLegalName:t.companyName}},function(a,t){const{navigate:n}=t,o=w.getSignedInUser();return{onDismissClick:()=>{a(k()),n("..")},onSendClick:()=>{if(o!=null){const s=[],r=[];t.inviteFormCompayData.forEach(c=>{s.push(c.companyName),r.push(c.emailIds[0])}),p.trackInviteEmailClicked("send",s,r,s.length)}a(J())},onUpdateInviteFormLocalData:s=>{a(Y({localData:s}))},onSubmitSuccess:()=>{n("../../")},onCancelClick:()=>{o!=null&&p.trackInviteEmailClicked("cancel")}}})(L),Z=()=>{const a=R(),[t,n]=u.useState(!1),[o,s]=u.useState(!1),r=b(i=>z(i)),c=T(),D=V(),{useDynamicConfig:g}=x(),d=w.getSignedInUser();if(d==null)throw Error("Can't access invite referral screen without signing in...");const l=b(i=>C(i)),_=d?.firstName!=null?d.firstName:"User",{configValue:h}=g(y.zeniCardsConfig),{configValue:v}=g(y.zeniAccountsConfig),E=A(v);u.useEffect(()=>{a(k()),r?.rewardsLastViewedTime==null&&o===!1&&(a(G()),s(!0))},[]),u.useEffect(()=>{t||l.fetchState!=="Not-Started"||(n(!0),a(q(!0)))},[l.fetchState,a]);const N=r.company?.companyInfo.companyLegalName??r.companyName;return e.jsxs(e.Fragment,{children:[l.fetchState==="Completed"?e.jsx(I,{analytics:p,onLoad:i=>(S=>S.trackPageLoaded(F.Event.inviteEmailViewed))(i)}):null,e.jsx(K,{navigate:c,location:D,currentTenant:r,companyName:N,userName:_,inviteFormCompayData:l.localData,chargeCardCashbackRatePerTransaction:h.charge_card_cashback_rate_per_transaction!=null?h.charge_card_cashback_rate_per_transaction:.0175,maxAnnualPercentageYield:E.maxAnnualPercentageYield})]})};function la(){const{useFeatureGate:a}=x(),{isFeatureEnabled:t}=a(P.isReferralFeatureEnabled);return e.jsxs(U,{children:[e.jsx(f,{path:"/",element:t?e.jsx(j,{}):e.jsx(m,{})}),e.jsx(f,{path:"how-it-works",element:t?e.jsx(j,{isReferralDrawerOpen:!0}):e.jsx(m,{})}),e.jsx(f,{path:"refer/*",element:t?e.jsx(Z,{}):e.jsx(m,{})}),e.jsx(f,{path:"*",element:e.jsx(m,{})})]})}export{la as default};
@@ -1,4 +1,4 @@
1
- import{eg as p,eh as h,V as s,bo as f,o as a,b as l,O as g,j as x,C as c}from"./index-CVe1fo1a.js";import{n as d}from"./mui-DcvwYC51.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]="c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc",e._sentryDebugIdIdentifier="sentry-dbid-c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc")}catch{}})();const{hyphen:o}=g.getLocalizedStrings().common.strings,b=d.div``,m=d.div`
1
+ import{eg as p,eh as h,V as s,bo as f,o as a,b as l,O as g,j as x,C as c}from"./index-iSEGT9xi.js";import{n as d}from"./mui-Bg5IRLA2.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]="c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc",e._sentryDebugIdIdentifier="sentry-dbid-c424fbd2-75d5-4d8f-a0eb-e2ce1add02dc")}catch{}})();const{hyphen:o}=g.getLocalizedStrings().common.strings,b=d.div``,m=d.div`
2
2
  display: flex;
3
3
  min-width: 192px;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-CVe1fo1a.js";import{a as D}from"./sentry-CFYfTv_F.js";import{n as B}from"./mui-DcvwYC51.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-BZiG8B71.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-poNEzbqS-Bn1GkRq3.js";import"./pdf-DA3UteIy.js";import"./core-BAxGDYbL.js";import"./lottie-DR43ghJ6.js";import"./liveblocks-DIb7UiB5.js";import"./recharts-LOG_L3Q0.js";import"./dnd-BEk5qqV2.js";import"./analytics-DIWVqtXV.js";import"./plaid-Dma9BWZs.js";import"./utils-B0HnpOzO.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]="3a7d9610-8688-4ffb-86fb-d747ad511413",e._sentryDebugIdIdentifier="sentry-dbid-3a7d9610-8688-4ffb-86fb-d747ad511413")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
1
+ import{a7 as U,hI as X,g4 as fe,e3 as Le,hJ as we,T as Je,hK as Me,c8 as _e,c9 as Ve,V as a,A as Pe,bR as Fe,bS as Ne,bT as $e,a9 as qe,hL as Re,hM as Be,O as xe,E as ue,hN as Se,hO as We,cc as Ue,e as ze,h$ as He,ga as ie,m as q,f as De,x as ye,cd as Ke,hP as Ge,hQ as Qe,hR as Ye,o as V}from"./index-iSEGT9xi.js";import{a as D}from"./sentry-DwNPvXBL.js";import{n as B}from"./mui-Bg5IRLA2.js";import{bH as Xe,bI as Ze}from"./zeni-epic-state-DQF5EBoo.js";import{l as et,a as tt,s as lt,r as at}from"./ScheduleSequenceTable-poNEzbqS-CnUEqaUu.js";import"./pdf-2PUMrtF-.js";import"./core-Dbakk1VU.js";import"./lottie-DBYzZfO9.js";import"./liveblocks-DdnYk2Co.js";import"./recharts-Bztd37V0.js";import"./dnd-CoZK9h43.js";import"./analytics-DuMT4wpV.js";import"./plaid-DCRMdnUX.js";import"./utils-D8l6svaX.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]="3a7d9610-8688-4ffb-86fb-d747ad511413",e._sentryDebugIdIdentifier="sentry-dbid-3a7d9610-8688-4ffb-86fb-d747ad511413")}catch{}})();const R={labelWidth:new ye(160,160,160),depCategoryLabelWidth:new ye(200,280,280)},st=B.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;