@zeniai/web-cockpit-ui 1.14.62-dev → 1.14.63-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/assets/{ACHDetailsPage-C9GD0hCH-wcmQ_I_w.js → ACHDetailsPage-QkOAxB4j-BwmsngrU.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-B0Adp0wg-BRw7cYj4.js → AIPerformancePage-POiv6dgZ-BKgnVS14.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-BSxUquf3-Cq3qTjcH.js → AccountInfoPage-DpzAjyd0-CKJdFzLl.js} +3 -3
  4. package/dist/assets/{AccountInfoPageContent-8V3PDzEc-BlV15_jy.js → AccountInfoPageContent-BrPhtN53-CjBlOxg5.js} +15 -15
  5. package/dist/assets/{AccountLockedInfoModal-7bhpExx3-DJKdkKXd.js → AccountLockedInfoModal-D1ZHYvRy-C9tYFXcu.js} +4 -4
  6. package/dist/assets/{AccountReconDetailsDrawerPage-jTH8M9iA-CMGLbrVx.js → AccountReconDetailsDrawerPage-CubIO376-CtKM65LB.js} +12 -12
  7. package/dist/assets/{AccountRow-BpoPw0Cq-PxbfVOGF.js → AccountRow-DTdcfEa8-U3MpTECA.js} +12 -12
  8. package/dist/assets/{AccountsPromoCardStack-gsG5tf8_-DWo1I6r8.js → AccountsPromoCardStack-CwDbKaNJ-1hCsTiEX.js} +9 -9
  9. package/dist/assets/{AddAddressForCardDrawer-CMF3Il-u-Dg_CMfGn.js → AddAddressForCardDrawer-CniAAcX8-D363vOD8.js} +2 -2
  10. package/dist/assets/{AddToWalletPage-CpWP7Kpn-oyevXfMf.js → AddToWalletPage-DOG6ubAY-BGRDDIey.js} +12 -12
  11. package/dist/assets/{AgingReportsPage-DEQ2pO0Y-B_El_7jI.js → AgingReportsPage-Dbtn1PKG-CbUghZ5Y.js} +5 -5
  12. package/dist/assets/{AllUserItems-D0SR0Oue-C_Mnq_2_.js → AllUserItems-Dth5Uovp-tGFNdHax.js} +6 -6
  13. package/dist/assets/{ApAgingDetailPage-BA-wKCiF-DoDUWxWK.js → ApAgingDetailPage-C6C-aYG7-Dbv3SH4D.js} +2 -2
  14. package/dist/assets/{AppBasePage-DFn4TCyI-BVuiMG50.js → AppBasePage-CtnXt_EV-BSPuX6dn.js} +6 -6
  15. package/dist/assets/{AppDrawerContent-CBG4Ybue-1CDBllQE.js → AppDrawerContent-DnrQdYVp-D2qog1EV.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-CpjHazzI-CsBcR4Oy.js → ApprovalRulesSettingsPage-BEOQl822-CbUsx0mD.js} +4 -4
  17. package/dist/assets/{ArAgingChart-BDISnDae-DNBj0-9L.js → ArAgingChart-B9rpCcBM-q8jdb__E.js} +5 -5
  18. package/dist/assets/{ArAgingDetailPage-Cgqf_0fL-CU471vpq.js → ArAgingDetailPage-BKsCQCpu-jNIcx6Tl.js} +1 -1
  19. package/dist/assets/{AttachmentView-X1k01Vtr-BZZUcPOE.js → AttachmentView-DEE6AWkv-B1086jMd.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CrxSDsgw-BPSLHakI.js → BankAccountSection-D8_5fjrd-BCE6WYWF.js} +4 -4
  21. package/dist/assets/{BankAccountWarningSection-Dpt8yOKi-BO8G0nmG.js → BankAccountWarningSection-CMrRr8aa-BT7FUFGR.js} +7 -7
  22. package/dist/assets/{BankConnectionsSettingsPage-Uzhaoi7g-Bcdti6AO.js → BankConnectionsSettingsPage-BUwkPoK_-Baxx5R77.js} +41 -41
  23. package/dist/assets/{BillDetailPage-DcyikS7i-dCdg2EaC.js → BillDetailPage-DcGxex6B-g3MH8yQi.js} +10 -10
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-aM8F15Nu-ackUtbJ8.js → BillPayApprovalRuleDetailPage-B4OuTcAA-Bkq-QU-5.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-B46FwPVR-Bv9k8Xtu.js → BillPayApprovalRulesPage-DaCdVMRx-DKi7a9ar.js} +4 -4
  26. package/dist/assets/{BillPayPromoPage-DtVzdlsy-Bd5M4tTJ.js → BillPayPromoPage-DBlGsv9D-BevFRtNT.js} +8 -8
  27. package/dist/assets/{BillPaySetUpPage-BKdNiQf7-BvAzvMev.js → BillPaySetUpPage-A4zcT_mP-BkNiC1Xc.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-3AgPTFzN-deJJWYq4.js → BillingSettingsPage-CujTn-BW-DGU5_gJ4.js} +1 -1
  29. package/dist/assets/BillsBulkReviewDrawerPage-Cs779Xc4-D5R5rhwS.js +1 -0
  30. package/dist/assets/{BoxItem-Dsoq6QyZ-D7NZjkdf.js → BoxItem-imggFWL_-C8e_yZct.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DSkBV_II-DSCAr_Go.js → BusinessVerificationPage-U_lU2O0k-B63nfdcn.js} +4 -4
  32. package/dist/assets/{CardNumberSubText-Crk5WDQr-D42xv8Vo.js → CardNumberSubText-Ct0mJOMk-DQXdeyZe.js} +2 -2
  33. package/dist/assets/{CashbackDetailPage-BZAFRMGW-CBzh2ZdI.js → CashbackDetailPage-GMncsgDy-DzCIgTYK.js} +17 -17
  34. package/dist/assets/ChargeCardDetailPage-BQvjt_rh-Dc8yPFPr.js +1462 -0
  35. package/dist/assets/{ChargeCardListPage-CIV1XQK1-BsJ1Un8U.js → ChargeCardListPage-BJgzJ53p-D4N85pU_.js} +9 -9
  36. package/dist/assets/{ChargeCardListTable-Dxn8Y17P-BLWbpWSy.js → ChargeCardListTable-BD4N2FtO-DrTuKtln.js} +49 -49
  37. package/dist/assets/{ChargeCardPromoPage-B6yTGsIY-CaVyUdrp.js → ChargeCardPromoPage-BQMfHfHp-DuUPUl6t.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-HHFdpsmJ-BZfvUbrB.js → ChargeCardSetupPage-DO1cXZF4-CWlYdj31.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-tuV67f3k-0CxnC-oz.js → ChargeCardStatementsPage-0rBvkIU1-NpKk50PX.js} +5 -5
  40. package/dist/assets/ChargeCardUtils-Cy5rZlIH-BILI0sIl.js +1 -0
  41. package/dist/assets/{ChaseOverlay-B2pqFXTT-BWakvkAR.js → ChaseOverlay-Dqg_bWdn-C8vTlyWM.js} +6 -6
  42. package/dist/assets/{CheckDepositDrawerPage-DDXZ3m54-CXBK2nJg.js → CheckDepositDrawerPage-BzzWhLjb-CVED41XL.js} +15 -15
  43. package/dist/assets/{CollapsableReportTable-BLDh7Osv-ox-qsXy2.js → CollapsableReportTable-CwhNUlX5-CGrdBCh6.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-Dg3sn5Sh-BTBTOsDr.js → CompanyOfficerDetailsSection-BHXF7g6M-BrZ1ZKbF.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-2HnVDVVi-dxhiiZQi.js → CompanyPassportCard-Dd4Modb9-C23aPg6a.js} +6 -6
  46. package/dist/assets/{CompanyPassportPage-DlGllnaL-u0Oh4-Ab.js → CompanyPassportPage-Bh2JSIAW-rjC4pxXL.js} +20 -20
  47. package/dist/assets/{CompleteProfile-kFGIESms-CDZ04UbG.js → CompleteProfile-CAtziP70-DuSPFP1s.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-D5IgJ5P3-DI0WARwG.js → ConfettiBurst-DvSGcRZX-C_PjMyTg.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D8IFFcdA-BWjjY2FD.js → CreateOrEditVendorPage-Csorfbun-CNt6xuOL.js} +9 -9
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Xu0psAw0-DRgPLpcF.js → CreditCardPaymentDrawerPage-DAw1GyrP-BNs6qoGC.js} +12 -12
  51. package/dist/assets/{CreditCardPaymentPlgSection-CqvgalYj-CACGNzop.js → CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js} +6 -6
  52. package/dist/assets/{CurrencySelectField-hwgVPqTt-CZrVpTrr.js → CurrencySelectField-BW71th1E-DHxO3UVa.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-CBFhWSJz-BUJvmXrh.js → CustomerOnboardingActivationPage-t4YirGGH-BQcXqlYq.js} +7 -7
  54. package/dist/assets/CustomerOnboardingContainerPage-BFE2DU3a-C9v_itD5.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-B2q2tdnD-Bp78peNj.js → CustomerOnboardingDetailPageSkeleton-CWWXhhJn-DacLmheB.js} +10 -10
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-BsNq90nq-_3KuDz4_.js → CustomerOnboardingNoStepsPage-YdWEMnwL-BhhMIya_.js} +2 -2
  57. package/dist/assets/{CustomerOnboardingPage-BbGV3jtT-DCZddKCA.js → CustomerOnboardingPage-C-WAF_MK-0e07LkOq.js} +5 -5
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-R2PJEOqZ-BqHqYyVu.js → CustomerOnboardingProductSuitePage-CxwXw5lA-8eL0zyfM.js} +10 -10
  59. package/dist/assets/{Dashboard-Cw4u8_9e-CNVcyr2a.js → Dashboard-Cp0UY0M3-DrmBKQin.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-ls_MMfAh-ku8msjfd.js → DashboardReportPage-Bsr_1Vfu-CrZaa5CE.js} +6 -6
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-C_9jGJQn-DjB0cTYb.js → DashboardSidebarBackgroundAnimation-BvgNiAXF-CXiqzdPm.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-BLgpyexV-BUif7HBg.js → DepositAccTransactionItem-Cm5lhc_H-Db7mfK10.js} +2 -2
  63. package/dist/assets/{DepositAccTransactionListPage-r4UVSUOl-jIySug5o.js → DepositAccTransactionListPage-CHwS-_Nr-DFBxFwkp.js} +3 -3
  64. package/dist/assets/{DomesticWireDetailsPage-BSXsHwf5-nZMW9ya5.js → DomesticWireDetailsPage-mqJgiAC--4FLLq-KS.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DKpj3Vwl-DX_ZKzvM.js → DownloadOverlay-DwPR_SsY-EUTGOsKd.js} +21 -21
  66. package/dist/assets/{DrawerPage-Cxz5I3Mb-DWCpAx75.js → DrawerPage-CR2L2ry3-DOZs2EHb.js} +14 -14
  67. package/dist/assets/{EditPeoplePage-Dbsa013z-C87B1cPM.js → EditPeoplePage-DiNxeKXK-BiaRAv0O.js} +5 -5
  68. package/dist/assets/{EditReimbursementDetailPage-Clpj3Hjz-De3HxU8I.js → EditReimbursementDetailPage-5TJ4Spw1-CpwzkfQj.js} +64 -64
  69. package/dist/assets/{EntityDetailPage-C73BtWIp-Cr_6Sl3E.js → EntityDetailPage-CYDIH-NA-wQQfd0jW.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-BQA0g-pF-C1PbnddD.js → EntitySummarySection-Cv7t21-t-DI0hIJYP.js} +5 -5
  71. package/dist/assets/{ExpenseAutomationOverviewPage-BxEr0k8F-CUbCOzoq.js → ExpenseAutomationOverviewPage-Cwl9dV2--DfcmKBVV.js} +17 -17
  72. package/dist/assets/{ExpenseAutomationPage-BS4M9nkW-DYAXIB9M.js → ExpenseAutomationPage-LMBRJxAv-Vn9lo85n.js} +26 -26
  73. package/dist/assets/{ExpressPayPage-Buxb2M1i-DC3wux1h.js → ExpressPayPage-CCF0jSlI-C7_sWp9b.js} +6 -6
  74. package/dist/assets/{FeaturePreviewPage-ClfFYnHb-BfGEfVGQ.js → FeaturePreviewPage-POKsqSnu-BhWwdsL7.js} +2 -2
  75. package/dist/assets/{FollowStepsSection-CkQ-g4YK-GLs0gIYR.js → FollowStepsSection-BZdlZelr-Dgb2aUZZ.js} +21 -21
  76. package/dist/assets/{GlobalReviewListPage-C_DbsHsA-Bi1oO-Mz.js → GlobalReviewListPage-BnmMh-Bc-CYAA0kUn.js} +13 -13
  77. package/dist/assets/{HelpButton-B0ZBXPeh-zSwt_svY.js → HelpButton-Cp2LXxyy-C5Y06Y1n.js} +4 -4
  78. package/dist/assets/{InformationCardStack-DYdCt7zr-DhV-r4Uj.js → InformationCardStack-CiYqiW7_-CbY8PLVD.js} +4 -4
  79. package/dist/assets/{InsightsCardStack-BSHQznep-CWR7qCJZ.js → InsightsCardStack-BnVrehfR-CN-oMur2.js} +2 -2
  80. package/dist/assets/{InsightsSection-C37BKIiK-KVt8i2oW.js → InsightsSection-BpVW6ov6-CBRdcxmz.js} +5 -5
  81. package/dist/assets/{IntegrationsSettingsPage-DHAdlHrq-Bqfn2ev2.js → IntegrationsSettingsPage-CaAahFPb-BYVW6C7U.js} +8 -8
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-B64WNt28-D1_PuT1L.js → InternationalWireSwiftDetailsPage-DcwbldkC-BB32EMRa.js} +8 -8
  83. package/dist/assets/{InternationalWireVerificationPage-D7ttGovC-BKd-ehNA.js → InternationalWireVerificationPage-7XDbU2GY-Dyfkxo3B.js} +7 -7
  84. package/dist/assets/{InviteFormPage-BhbGM4dC-CzvXIR5_.js → InviteFormPage-Dgv7jdgF-DVviW_Nt.js} +1 -1
  85. package/dist/assets/{InvitePageListView-CyRlLv60-CnnQlGla.js → InvitePageListView-DlpINjRJ-BMeTuOsJ.js} +11 -11
  86. package/dist/assets/InvitePeoplePage-0YsY4Il7-B0pE52_Y.js +12 -0
  87. package/dist/assets/{InvoiceUploadSection-BPPgbS-r-DsP3dMQH.js → InvoiceUploadSection-DzzjJVfz-KKaBZftU.js} +5 -5
  88. package/dist/assets/{IssueChargeCardPage-D_qQkkfo-B3Igv8Wu.js → IssueChargeCardPage-BeB9egJS-Buw9rvK5.js} +20 -20
  89. package/dist/assets/{LabeledAddressValue-EshVNGGW-BdxJWtKx.js → LabeledAddressValue-D6advpnC-6YH6AS3A.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-kgieouBM-C9jRpERl.js → LabeledAddressValueField-DRBoA2eb-CWryzMa2.js} +2 -2
  91. package/dist/assets/{LabeledControlledCheckBoxField-CWABc6OK-HO6-gxJI.js → LabeledControlledCheckBoxField-Bu2WHgAQ-BgnuqupP.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-B5o1KUJj-BQcKTXHX.js → LabeledCreatableSingleSelectField-DcdF286I-C7Y6s3yv.js} +7 -7
  93. package/dist/assets/{LabeledDocumentField-BrXpwWfM-8fIPpLS4.js → LabeledDocumentField-B25RLa6I-jFD7YVyX.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-Cepl3y9a-W2a_RnbU.js → LabeledDropDownFormattedTextField-DoK5Zfc1-HbMH9wCe.js} +1 -1
  95. package/dist/assets/{LabeledText-BmFLymPb-D8x81Lh_.js → LabeledText-depbwNsM-DXrsYHkA.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CBbnTiwl-DBx8kYuJ.js → LabeledUserSingleSelectWithSubtitlesField-BURpXN_N-Xj7wxd7w.js} +8 -8
  97. package/dist/assets/{LabeledZeniRolesDropDownField-Da9mc-0B-BJ1z3EeH.js → LabeledZeniRolesDropDownField-TbyaA8M3-DTROc_uU.js} +7 -7
  98. package/dist/assets/{LinkJETransactionPage-DIhsx2g--KBlFRQb2.js → LinkJETransactionPage-BITHs1CJ-Y1_ePi-m.js} +7 -7
  99. package/dist/assets/{LockCardPage-BA4Lj9Iy-DTk5VUQk.js → LockCardPage-DPBKHSos-D1Lau_ZJ.js} +15 -15
  100. package/dist/assets/{LowBalancePopup-B1pTBmAF-XO9AvMeQ.js → LowBalancePopup-D2G3wpXv-BCydjVKG.js} +3 -3
  101. package/dist/assets/{MagicLinkACHDetailsPage-BxzbJBWO--JriP-v7.js → MagicLinkACHDetailsPage-Be7GMhBd-D3Y_9hTy.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DB2tBUoV-D11VFVs7.js → MagicLinkDomesticWireDetailsPage-C9d2Ea6m-DiWMiwF8.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-0B5pD_Iw-D3uoz_xk.js → MagicLinkInternationalWireDetailsPage-B2M9WztX-B6F5ppQ2.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-3I1CRYrj-CQ85jc3m.js → MagicLinkSuccessPage-DPb0UoGh-y5M5nnWg.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-BKgwdBLy-DJAtgQrS.js → MagicLinkTitleSection-Cc-MU2bJ-DSi2szeX.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-BwEd_J6R-dp-4DZAU.js → MailingDetailsSection-8mj7Lslp--SKJjx0D.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-BpRpGSe6-BbPmd_3K.js → MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js} +1 -1
  108. package/dist/assets/{Menu-De_gaVnj-BIeYBB7q.js → Menu-ndvXF6cX-B4y3KuMr.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-lChXBDCb-CU4FUkGq.js → MyBankConnectionsSettingsPage-DuZFVLYx-VAbH3B5M.js} +4 -4
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-D3di8BeS-DVyKiAts.js → MyPendingActivationChargeCardListPage-DDIlU_fs-C-bYuxLR.js} +2 -2
  111. package/dist/assets/{MyProfileSettingsPage-CYI4yK6I-B8BI2oLj.js → MyProfileSettingsPage-CccRK9mD-BRFADFUO.js} +3 -3
  112. package/dist/assets/{NavBarWithPicker-DcELUvq0-JOqnZxMT.js → NavBarWithPicker-D_MqRubB-D8dMZBv7.js} +6 -6
  113. package/dist/assets/{NavigationArrow-W1nVj2KC-CMqtrSRj.js → NavigationArrow-CfMVfLD8-BQnWEdPn.js} +1 -1
  114. package/dist/assets/{NavigationDots-BKVFhe2Y-BrHbPCev.js → NavigationDots-E2eEHB86-BK4Og9YA.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-DRrjJgZt-CEoy9VUB.js → NewGlobalMerchantPage-vXrz_DRg-Wc9088Ea.js} +7 -7
  116. package/dist/assets/{NoDataChart-BzSCComh-BBDrgF2D.js → NoDataChart-CpocQ1Pa-ChFzAJ2R.js} +1 -1
  117. package/dist/assets/{NoDataTable-CGWMbvak-ByO1cOCm.js → NoDataTable-937mkn0a-D0ksTITz.js} +2 -2
  118. package/dist/assets/{NotFoundPage-DfRFngFV-5gg6LFkb.js → NotFoundPage-BmxF81mT-B9r6velH.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-BTJH62-O-D7DVGMmr.js → NotificationSettingsPage-DyOyHW6d-DehMDImE.js} +20 -20
  120. package/dist/assets/{NotificationsListConfig-DPutUxp3-C94QRV7X.js → NotificationsListConfig-DVs7cr0d-wmSn6l3s.js} +1 -1
  121. package/dist/assets/{NotificationsPage-xu6A1hVF-DQF7RHp8.js → NotificationsPage-ntuZjRm--CaQvtRPb.js} +24 -24
  122. package/dist/assets/{OpExByVendorPage-BeO7iMry-DDqW-8aU.js → OpExByVendorPage-1MOdxG9V-BhrPpCQQ.js} +5 -5
  123. package/dist/assets/{OverlayContainerPage-CU1AAMcq-D-Pawytj.js → OverlayContainerPage-CU1AAMcq-lFQCSe-G.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-1qSy3_Ke-EOIFmkSR.js → PandLWithForecastPage-n4fiElGl-BTwNmE3c.js} +8 -8
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DnObHdjD-BdZ7cMoC.js → PaymentAccountSetupBillingAddressSection-CXcwA0ON-KeSy0gEv.js} +8 -8
  126. package/dist/assets/{PeoplePage-CPqz8R9j-Db69JWzl.js → PeoplePage-BvZkMpjW-D7ElTICV.js} +13 -13
  127. package/dist/assets/{PortfolioAllocationFormPage-C9ZM9oUf-CZJ1jxYZ.js → PortfolioAllocationFormPage-B7AKufjq-BCZV66E3.js} +3 -3
  128. package/dist/assets/{PortfolioDetails-BJBNPfcI-DsK_BUc_.js → PortfolioDetails-C85yA52O-BcnUojwW.js} +7 -7
  129. package/dist/assets/{ProductsCarousel-Ctx00P5D-D9FkIJxu.js → ProductsCarousel-ixHCR9AW-BHD947gD.js} +4 -4
  130. package/dist/assets/{PromoBaseCards-BGYdfmx6-BEMDJNz0.js → PromoBaseCards-DiefKKcS-CVepNaw-.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-B9yKv9hq-BkyyC54F.js → QBOConnectionDialog-DV-xC7Yc-6uoxl-nC.js} +1 -1
  132. package/dist/assets/{QBOSetupSection-CTMSCXwv-e3p1TnXx.js → QBOSetupSection-CI8cHWjq-CNHezBrT.js} +8 -8
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BtZUsK7H-D7OL8G_2.js → ReimbursementApprovalRuleDetailPage-CqnCqZ5F-MbrRP60p.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-DNBHPoIZ-DjLma364.js → ReimbursementApprovalRulesPage-DxoNMA62-DOLuIxNO.js} +2 -2
  135. package/dist/assets/{ReimbursementDetailPage-BxZ5ijHe-BVaX9EvT.js → ReimbursementDetailPage-CTvPAxMB-BlP7rQJ5.js} +7 -7
  136. package/dist/assets/{ReimbursementPromoPage-D284EkRZ-DkeYmm5-.js → ReimbursementPromoPage-DcxPNTHd-asHPfKWE.js} +9 -9
  137. package/dist/assets/{ReimbursementSetUpPage-BzR91_eW-B1cVy_ii.js → ReimbursementSetUpPage-SQo-xrwo-BuAAGp_P.js} +7 -7
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BMo9fFp7-DDhl84yp.js → ReimbursementsBulkReviewDrawerPage-y4v-8gQs-b-mXMP5z.js} +1 -1
  139. package/dist/assets/{ReloadCard-CGUNX_x4-DHHdzF-o.js → ReloadCard-CWZU9IDv-lCmqRueL.js} +3 -3
  140. package/dist/assets/{ReportTableViewSelector-BVAek1Ui-tg0FtSlz.js → ReportTableViewSelector-t3pgCiJb-DU7QbDSE.js} +5 -5
  141. package/dist/assets/{ReportsPage-BzKbMWV4-Bkyilcu9.js → ReportsPage-D82gQH-e-Ckp9VR2p.js} +1 -1
  142. package/dist/assets/{RevenueChart-CPUrVR7y-p14Y9U0K.js → RevenueChart-BMgI2BHK-I-njStGG.js} +13 -13
  143. package/dist/assets/{ReviewDetailsPage-B74yrCe2-2UJj3aSZ.js → ReviewDetailsPage-Dc7dY-VA-CxSy8KVL.js} +3 -3
  144. package/dist/assets/{ReviewOverlay-DQvXSDYM-BgLXL5oi.js → ReviewOverlay-Bra2W5Jg-C_PWInnU.js} +4 -4
  145. package/dist/assets/{RoleWithToolTip-MwI_BmVq-X2NuZkOe.js → RoleWithToolTip-DJ15AsI3-p10xCSND.js} +2 -2
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CbkRYKjG-CGeWP6Q0.js → ScheduleDetailsFixedAssetsPage-DoH2eyLG-BrozO2ME.js} +8 -8
  147. package/dist/assets/{ScheduleDetailsPage-CCRspH3Y-CWtiBfKU.js → ScheduleDetailsPage-BM1Paa1W-C0ySlnA2.js} +3 -3
  148. package/dist/assets/{ScheduleSequenceTable-55zYXNwF-DayScLRg.js → ScheduleSequenceTable-C8UB3y1y-CNI-a_wl.js} +7 -7
  149. package/dist/assets/{ScreenRoutes-DFaMy6Tb.js → ScreenRoutes-_3xGjUU-.js} +41 -41
  150. package/dist/assets/{SetUpAccountSection-IgQjKWEr-C4h-8RcD.js → SetUpAccountSection-BGdUkQz3-D6CAjYv7.js} +7 -7
  151. package/dist/assets/{SetUpDefaultSection-shC3qOy6-NZDiaWla.js → SetUpDefaultSection-C4NnRO65-C0fyZc92.js} +10 -10
  152. package/dist/assets/{SignIn-CZGmLYjH-DKDYi6L5.js → SignIn-BrHA4sLj-DDyEN7b5.js} +1 -1
  153. package/dist/assets/SignInScreen-Cx7qc3RP.js +1 -0
  154. package/dist/assets/{SpendManagementListViewPage-BhTnQtma-CGcx-wdm.js → SpendManagementListViewPage-Dqb0zspN-DreMX5hh.js} +4 -4
  155. package/dist/assets/{SpendManagementPerTabPage-DpnIM6Nc-DJd_UPYY.js → SpendManagementPerTabPage-D5xIpojr-P0_AnHoz.js} +14 -14
  156. package/dist/assets/{SpendManagementSection-Hjvwgkt0-C9Ik4rB-.js → SpendManagementSection-C2iof2aM-Bp9C8eeM.js} +7 -7
  157. package/dist/assets/{SpendMgmtSetupAccountSection-CAWyEGGM-CyE9_AxZ.js → SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js} +6 -6
  158. package/dist/assets/{StatementItem-D8v_Laju-BC0rGudd.js → StatementItem-BOgmKBTq-DcvmbOpL.js} +5 -5
  159. package/dist/assets/{StatementsPage-CEw-9UyR-F4RCa_uj.js → StatementsPage-ClMtBDGf-DWR5BFTu.js} +4 -4
  160. package/dist/assets/{StatusSwitcher-DoSCydJG-CUZayvzb.js → StatusSwitcher-QwlvHg3_-DRNWj6rt.js} +2 -2
  161. package/dist/assets/{SubTabSwitcher-Ct1DqfgC-D_B5Q5CC.js → SubTabSwitcher-CiJ1FPk5-CEwKyb-x.js} +1 -1
  162. package/dist/assets/{SummaryCard-CHUbuF_0-BPkrpzgf.js → SummaryCard-D1B_1H2X-Lh7q95p7.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-Ddox5Vwh-BtmzFtgk.js → TaskManagementPage-DibwJCOk-BF0_AhRU.js} +14 -14
  164. package/dist/assets/{TimeRangeSwitcher-CiOSsTU--DJtVL6uZ.js → TimeRangeSwitcher-Ci3SxLOE-anbVhnvw.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-D1k1Zf_U-DRQ7Dyxo.js → TimeframeSwitcher-DSRKJTq1-BG9pQPgY.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DXbaoDe6-CTgc86K9.js → TimeframeSwitcherWithToggle-D_BNOfdQ-BKTbCmic.js} +1 -1
  167. package/dist/assets/{TopExCard-D4ZDqXZg-BF-WMzyH.js → TopExCard-C5622MiP-2KEQHijQ.js} +4 -4
  168. package/dist/assets/{TopExDetailPage-BdPAcKwH-DpLiY3rN.js → TopExDetailPage-qOhQ-KAG-fVnbyWbs.js} +6 -6
  169. package/dist/assets/{TransactionDetailPage-BcjGxHy8-IuIJ3mqx.js → TransactionDetailPage-DaCUZuc0-DAUodm_m.js} +13 -13
  170. package/dist/assets/{TransactionList-BSuMEtB3-CMOkefWM.js → TransactionList-CzdU-NQx-D6gdr6x7.js} +6 -6
  171. package/dist/assets/{TransactionListBig-MY_ZxyR3-DAEJW71z.js → TransactionListBig-Bq7XI_xx-DjK27aH5.js} +11 -11
  172. package/dist/assets/{TransactionListPage-CWGrWDjK-CIEoKrUV.js → TransactionListPage-CZDewehT-BcmO71OJ.js} +6 -6
  173. package/dist/assets/{TransactionVendorDetailPage-DDNK9KrI-O_lhiQcq.js → TransactionVendorDetailPage-Bf5UUIC6-DQ0SU60H.js} +3 -3
  174. package/dist/assets/{TransferDrawerPage-vK0YoMro-BnQ7gfWx.js → TransferDrawerPage-yQE7GKl_-BiU7RlMv.js} +17 -17
  175. package/dist/assets/{TreasuryOverviewPage-CQsUti1c-B9kfLqNq.js → TreasuryOverviewPage-CisB53k8-CkomXNIa.js} +20 -20
  176. package/dist/assets/{TreasuryPromoPage-Bp72hKEs-CTtwU0ZX.js → TreasuryPromoPage-BfISVj15-BKUZCqqQ.js} +11 -11
  177. package/dist/assets/{TreasurySetupPage-BUKsU3nh-ChLyWbKe.js → TreasurySetupPage-SN-3mAFw-C_4PPIWf.js} +2 -2
  178. package/dist/assets/{TreasuryStatementsPage-Cryv1PNX-BXauBu3y.js → TreasuryStatementsPage-DGyug1wv-CZKI-qyS.js} +5 -5
  179. package/dist/assets/{TreasuryTaxLetterPage-BMYTdYa5-B5Y_HIfH.js → TreasuryTaxLetterPage-BRvcOhJZ-BeVUPN4i.js} +5 -5
  180. package/dist/assets/{TreasuryTransferOrReviewPage-B9VwyDJa-BiuSVWbg.js → TreasuryTransferOrReviewPage-H5ohs_5r-DHIAJoBr.js} +30 -30
  181. package/dist/assets/{TrendChart-CqYeWLeV-DGzeA7Oj.js → TrendChart-ohr8bK1l-B5dRIvEy.js} +4 -4
  182. package/dist/assets/{TrendWithTransactions-xn1fvlLO-BRgtHO5b.js → TrendWithTransactions-D5eTj9Ca-BjYM3mpG.js} +3 -3
  183. package/dist/assets/{UncategorizedAccountsMappingPage-B_aOzm4v-CskTnoly.js → UncategorizedAccountsMappingPage-3NGCCdAA-DC14oDOB.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-B6LF_f7C-D2tKVxd-.js → UnitIntegrationPage-B6FOsf88-BTafkfwm.js} +3 -3
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-BlKvE3tT-HoFIL9hV.js → UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js} +1 -1
  186. package/dist/assets/Vendor2FAPopup-D7455GFK-DU0-h-ac.js +1 -0
  187. package/dist/assets/{VendorACHDetailsPage-CncDplWQ-B3O_yZHX.js → VendorACHDetailsPage-CXoxi6Qp-CrJbaYWf.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-POan4Fo8-CFdhAO3w.js → VendorDetailPage-C6BgYb-c-BaTlvY1P.js} +6 -6
  189. package/dist/assets/{VendorDomesticWireDetailsPage-B1bT0W9o-D_UYfmub.js → VendorDomesticWireDetailsPage-DXfnCFu1-Bhf2lnL-.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-C25iYV4w-Crhvm405.js → VendorFiling1099EditablePage-ByESLoQK-C5wgo9Qc.js} +14 -14
  191. package/dist/assets/{VendorFirstReviewPage-DY035p5C-CBR39dJP.js → VendorFirstReviewPage-iNPtUFNw-BbgJ63Tq.js} +27 -27
  192. package/dist/assets/{VendorInternationalWireDetailsPage-DN_mcAqY-mmYMcnBl.js → VendorInternationalWireDetailsPage-CqgGFU1K-CKX6n49-.js} +11 -11
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaXgGRdu-Cae4saOt.js → VendorInternationalWireSwiftDetailsPage-CNzft0dg-D-n290kY.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-C2UiqXC0-C8tGsoLh.js → VendorsAccountsSection-DCWhoqAP-DHjXIFFo.js} +2 -2
  195. package/dist/assets/{VerifyDevice-C7BWrAZ3-Csv3HVHz.js → VerifyDevice-DvJEmcUq-BD1k6-81.js} +4 -4
  196. package/dist/assets/{VideoPlayer-BYkDTMkS-BwPpLJtc.js → VideoPlayer-Cp5DBUTp-n0gfwB0a.js} +1 -1
  197. package/dist/assets/{VideoPopup-Chye3pds-CsfGUZ0P.js → VideoPopup-97jTEw9t-C5kzDaxd.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-Cx-gJdnW-CaMsO86D.js → WarningsDrawerPage-CMy4FFqt-zNFC-DvY.js} +7 -7
  199. package/dist/assets/{ZeniAccountDetailPage-BrXe6Kao-DSC2z41y.js → ZeniAccountDetailPage-mzHK5HUV-B2AMGiBu.js} +1 -1
  200. package/dist/assets/{ZeniAccountListViewPage-CJnHvk5a-CKxe9b_t.js → ZeniAccountListViewPage-BeN4AKFd-B0XSIJvm.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-BdLOT9UG-BloORYtU.js → ZeniAccountNavBarPieces-Db9bLk29-BybXcA-l.js} +2 -2
  202. package/dist/assets/{ZeniAccountPromoPage-B1I9l833-C9FtKjkQ.js → ZeniAccountPromoPage-By02sVg0-BAnhqfjw.js} +11 -11
  203. package/dist/assets/{ZeniAccountSetupPage-CitVJnZC-djUrd4xP.js → ZeniAccountSetupPage-DeDgKig1-lQnp_HAL.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-DbQka65R-DPVtmyyb.js → ZeniCopyright-Bfc0Yl56-xItwPVZ8.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-Dzxu82Xw-dYxKyELc.js → ZeniTransferAmountSlider-DzeU3D5r-Dnm1GguJ.js} +6 -6
  206. package/dist/assets/{analyticsHelper-DNLhFCBz.js → analyticsHelper-CuIvasD7.js} +1 -1
  207. package/dist/assets/{analyticsHelper-DgJDMdal-1yNDR_DA.js → analyticsHelper-Cx9PlTZt-BYpG33i-.js} +1 -1
  208. package/dist/assets/{chartTypes-D1j_l919-BJFL1pej.js → chartTypes-BoA9fCCZ-7xW-fVbz.js} +1 -1
  209. package/dist/assets/{commonDimensions-DDu54g8x-CV84qnXW.js → commonDimensions-BCUrWcBL-vTG5ZzmA.js} +1 -1
  210. package/dist/assets/{detailCommon-DXjUFoA1-DOO_rLzr.js → detailCommon-CFA4p6RP-B16mjiFN.js} +4 -4
  211. package/dist/assets/{downloadPdf-DChYYVaW-Dnx-iALN.js → downloadPdf-DZ5WQt0r-Bylb-lK-.js} +1 -1
  212. package/dist/assets/{index-HCR8uiT1.js → index-6DHFBk74.js} +1721 -1710
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-BC5IH44--DUlVTHZE.js → mapLoadingInProgressToTreeNode-DQf-1sg7-B5MxQ8jl.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CUXssP6r-BNiiDwH7.js → mapSectionWithAcOnlyToTreeNode-D0W1f0wZ-D3CjHikv.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-sdzfy8cu-BS6jqoR8.js → mapSpacerToTreeNode-Dzbv_N4o-CAPOe3mv.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DgOZfixy-2xtis6eH.js → mapTimeframeBalancesToTreeNode-2yWiGglp-Dy8oBMmS.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-BROieqal-CeHO_B7h.js → mapTimeframeBalancesToTreeNode-COS_auLN-CKgStlR5.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-bXb7WXAq-BQ_We1t6.js → mapTimeframeHeaderLoadingInProgressToTreeNode-NCujclSc-BUwl6Oy8.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-DqhuI8hD-BZz1K830.js → toCOABalancesWithID--3a-7Ohb-Dq8zIbZX.js} +1 -1
  220. package/dist/assets/{toChartData-DZPFiNsp-eUlwDIgN.js → toChartData-KZ92y9KA-BJN5TA9Q.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-D5AxfiPH-BIkGmYn_.js → treasuryColorHelper-ChFJTPyg--ivM0q9A.js} +1 -1
  222. package/dist/assets/{uploadAttachment-D04Fz4F1-CY5qRTQH.js → uploadAttachment-BzeeOF-1-oKdmjDH7.js} +14 -14
  223. package/dist/assets/{uploadReceipts-9DTOr0BG-Dpma3uTz.js → uploadReceipts-9DTOr0BG-BAqIaRxY.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +4 -4
  226. package/dist/assets/BillsBulkReviewDrawerPage-CFK7g3R1-b-zDDdgS.js +0 -1
  227. package/dist/assets/ChargeCardDetailPage-DXUoIbZa-DkTH3Igs.js +0 -1813
  228. package/dist/assets/ChargeCardUtils-BeG5m9OQ-BVnvyZkb.js +0 -1
  229. package/dist/assets/CustomerOnboardingContainerPage-D4zUp7hX-CSoGWUYd.js +0 -1
  230. package/dist/assets/InvitePeoplePage-DYpb33z0-yjHHc7mx.js +0 -12
  231. package/dist/assets/SignInScreen-DeabHgX8.js +0 -1
  232. package/dist/assets/Vendor2FAPopup-BLzf9zxl-l8gvXF4Y.js +0 -1
@@ -1,20 +1,20 @@
1
- import{q as C,F as u,j as i,n as k,o,y as a,h as d,fJ as T,O as E,ag as W,bz as q,f1 as B,fH as H,aU as w,ai as $,u as t}from"./index-HCR8uiT1.js";import{n as s}from"./vendor-Bs1fkIUX.js";import I from"./QBOConnectionDialog-B9yKv9hq-BkyyC54F.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},A={title:new E("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=C(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:b,sucessText:z,button:v,errorText:P,requiredText:O}=S;return i.jsxs(F,{windowSize:n,children:[i.jsxs(G,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(_,{}):i.jsx(K,{})}):null,i.jsx(N,{windowSize:n,children:b})]}),i.jsxs(Q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(M,{children:[i.jsx(R,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(J,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:O})}):null]}),i.jsx(I,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(H,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},F=s.div`
1
+ import{q as C,O as u,j as i,n as k,o,y as a,h as d,fJ as T,b as E,ag as W,bz as q,f1 as B,fH as H,aU as w,ai as $,u as t}from"./index-6DHFBk74.js";import{n as s}from"./vendor-Bs1fkIUX.js";import I from"./QBOConnectionDialog-DV-xC7Yc-6uoxl-nC.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},A={title:new E("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=C(),{qbo_connection:b}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:z,button:v,errorText:P,requiredText:O}=b;return i.jsxs(G,{windowSize:n,children:[i.jsxs(N,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(_,{}):i.jsx(K,{})}):null,i.jsx(Q,{windowSize:n,children:S})]}),i.jsxs(D,{windowSize:n,children:[i.jsxs(J,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(F,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(M,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:O})}):null]}),i.jsx(I,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(H,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},G=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
5
5
  justify-content: center;
6
- `,G=s.div`
6
+ `,N=s.div`
7
7
  display: flex;
8
8
  align-items: center;
9
9
  padding-top: ${o.sp3};
10
10
  padding-bottom: ${o.sp3};
11
11
  width: ${e=>r.sectionWidth.valuePx(e.windowSize)};
12
- `,N=s.div`
12
+ `,Q=s.div`
13
13
  display: flex;
14
14
  align-items: center;
15
15
  color: ${e=>e.theme.colors.primary};
16
16
  ${e=>`${A.title.style(e.windowSize)}`};
17
- `,Q=s.div`
17
+ `,D=s.div`
18
18
  display: flex;
19
19
  flex-direction: column;
20
20
  width: ${e=>r.sectionWidth.valuePx(e.windowSize)};
@@ -37,23 +37,23 @@ import{q as C,F as u,j as i,n as k,o,y as a,h as d,fJ as T,O as E,ag as W,bz as
37
37
  `,g=s($)`
38
38
  display: flex;
39
39
  color: ${d.important};
40
- `,D=s.div`
40
+ `,J=s.div`
41
41
  width: 100%;
42
42
  display: flex;
43
43
  justify-content: space-between;
44
44
  row-gap: ${e=>r.topElementsRowGap.valuePx(e.windowSize)};
45
45
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
46
- `,J=s($)`
46
+ `,M=s($)`
47
47
  display: flex;
48
48
  margin-top: ${o.sp2};
49
49
  color: ${e=>e.theme.colors.hero};
50
- `,M=s.div`
50
+ `,R=s.div`
51
51
  display: flex;
52
52
  align-items: center;
53
53
  gap: ${o.sp4};
54
54
  justify-content: left;
55
55
  color: ${e=>e.theme.colors.primary};
56
- `,R=s(W)`
56
+ `,F=s(W)`
57
57
  height: 20px;
58
58
  width: auto;
59
59
  color: ${e=>e.theme.colors.primary};
@@ -1,4 +1,4 @@
1
- import{y as O,u as U,b as M,q as W,F as D,aa as G,aP as J,j as s,aJ as Q,cS as X,bF as H,ad as K,aQ as Y,o as f}from"./index-HCR8uiT1.js";import{b as $,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-CkQ-g4YK-GLs0gIYR.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const L="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:F,onSaveRuleSuccess:S}){const E=M(),A=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=J(u?.fetchState),{upperBound:w}=x,{allApprovalRules:n,allAccountingClasses:_,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const q=g.handleSubmit(()=>{F()}),V=async(i,p)=>{b(p)};return $.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),$.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&S()},[P,u?.fetchState,S]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:C(L),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C(L),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(A)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Se=e=>`${e}`,se=h.div`
1
+ import{y as O,u as U,c as M,q as W,O as D,aa as G,aP as J,j as s,aJ as Q,cS as X,bF as H,ad as K,aQ as Y,o as f}from"./index-6DHFBk74.js";import{b as j,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as B,o as L}from"./FollowStepsSection-BZdlZelr-Dgb2aUZZ.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:E,onSaveRuleSuccess:S}){const _=M(),A=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=J(u?.fetchState),{upperBound:w}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const q=g.handleSubmit(()=>{E()}),V=async(i,p)=>{b(p)};return j.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),j.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&S()},[P,u?.fetchState,S]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:_.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:C($),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(A)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:B},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Se=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{b as M,q as B,F as y,j as o,bF as E,P as H,aM as S,o as t,y as r,am as L,aN as z,cD as G,cE as F,cF as U,dd as q,u as l,b8 as O,O as P,b7 as V,h as j,da as _,bx as K,C as Y}from"./index-HCR8uiT1.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=i.div`
1
+ import{c as M,q as B,O as y,j as o,bF as E,P as H,aM as S,o as t,y as r,am as L,aN as z,cD as G,cE as U,cF as q,dd as F,u as l,b8 as O,b as P,b7 as V,h as j,da as _,bx as K,C as Y}from"./index-6DHFBk74.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -229,7 +229,7 @@ import{b as M,q as B,F as y,j as o,bF as E,P as H,aM as S,o as t,y as r,am as L,
229
229
  border-color: ${e=>e.theme.colors.primary};
230
230
  }
231
231
  margin-bottom: ${t.sp6};
232
- `,ge=i(q)`
232
+ `,ge=i(F)`
233
233
  width: ${t.sp3};
234
234
  height: ${t.sp3};
235
235
  `,$e=i.div`
@@ -1,4 +1,4 @@
1
- import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as Nt,gt as Lt,gu as Ot,j as t,cD as ke,cE as Ae,cF as Me,aM as y,bF as Re,bs as _t,dN as Wt,gv as Et,gG as Pe,o as a,gw as Be,fu as b,fw as w,gz as x,aN as Ne,ft as Le,C as F,gB as Oe,aQ as Ft,ap as Kt,gC as Ut,gD as ae,bB as Vt,gE as Yt,A as Gt,O as Ht,H as qt,am as et,b8 as tt,h as K,an as Jt,c7 as Qt,ai as Xt,gV as Zt,gR as ei,u as c,cw as ti,d8 as ii}from"./index-HCR8uiT1.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ai}from"./liveblocks-8ht9CoL5.js";import ri from"./InvoiceUploadSection-BPPgbS-r-DsP3dMQH.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-X1k01Vtr-BZZUcPOE.js";import"./uploadReceipts-9DTOr0BG-Dpma3uTz.js";const l={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 Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},Se=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),je()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Si,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Kt,{onClickAway:()=>G(!1),children:t.jsxs(ji,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
1
+ import{ax as At,a9 as Mt,q as Rt,c as Pt,cr as Bt,y as m,O as Ze,l as ie,gr as Nt,gt as Lt,gu as Ot,j as t,cD as ke,cE as Ae,cF as Me,aM as y,bF as Re,bs as _t,dN as Wt,gv as Et,gG as Pe,o as a,gw as Be,fu as b,fw as w,gz as x,aN as Ne,ft as Le,C as F,gB as Oe,aQ as Ft,ap as Kt,gC as Ut,gD as ae,bB as Vt,gE as Gt,A as Yt,b as Ht,H as qt,am as et,b8 as tt,h as K,an as Jt,c7 as Qt,ai as Xt,gV as Zt,gR as ei,u as c,cw as ti,d8 as ii}from"./index-6DHFBk74.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ai}from"./liveblocks-8ht9CoL5.js";import ri from"./InvoiceUploadSection-DzzjJVfz-KKaBZftU.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-DEE6AWkv-B1086jMd.js";import"./uploadReceipts-9DTOr0BG-BAqIaRxY.js";const l={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 Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},D=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},Se=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),je()):(J("rejected"),H(!0))},Dt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??Dt,De=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,It=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),Ie=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:I}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ce(null))},[te,M,I,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Si,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:I,onClick:I?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:I?void 0:zt,isLoading:I,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:D},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,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:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Ii,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Di,{windowSize:o,children:[!R&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(ji,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&De===!0?t.jsx(vi,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&It===!0?t.jsx(fi,{windowSize:o,showEditIcon:De,children:t.jsx(xi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -140,7 +140,7 @@ import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as N
140
140
  box-shadow: 0 2px ${a.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
141
141
  pointer-events: none;
142
142
  z-index: 1;
143
- `,Ii=r.div`
143
+ `,Di=r.div`
144
144
  width: auto;
145
145
  justify-content: flex-end;
146
146
  position: ${e=>e.windowSize==="small"?"static":"relative"};
@@ -158,7 +158,7 @@ import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as N
158
158
  &:hover {
159
159
  background-color: ${e=>e.theme.colors.background};
160
160
  }
161
- `,Di=r.div`
161
+ `,Ii=r.div`
162
162
  display: flex;
163
163
  width: 100%;
164
164
  position: sticky;
@@ -184,7 +184,7 @@ import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as N
184
184
  background-color: ${e=>e.theme.colors.grey3};
185
185
  min-height: 1px;
186
186
  max-height: 1px;
187
- `,ki=r(Gt)`
187
+ `,ki=r(Yt)`
188
188
  cursor: pointer;
189
189
  width: ${a.sp4};
190
190
  height: ${a.sp4};
@@ -207,7 +207,7 @@ import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as N
207
207
  &:hover {
208
208
  color: ${e=>e.theme.colors.primary};
209
209
  }
210
- `,Ri=r(Yt)`
210
+ `,Ri=r(Gt)`
211
211
  display: flex;
212
212
  width: ${a.sp4};
213
213
  height: ${a.sp4};
@@ -245,12 +245,12 @@ import{ax as At,a9 as Mt,q as Rt,b as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as N
245
245
  `}
246
246
  height: 100vh;
247
247
  overflow: scroll;
248
- `,Ye=r.div`
248
+ `,Ge=r.div`
249
249
  width: 42%;
250
250
  `,Ni=r.div`
251
251
  margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
252
252
  margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
253
- `,Ge=r.div`
253
+ `,Ye=r.div`
254
254
  margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
255
255
  margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
256
256
  margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n as u,af as m,o as s,ar as ce,_ as de,aS as E,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-HCR8uiT1.js";import{b as j,n as t}from"./vendor-Bs1fkIUX.js";import{x as je}from"./MeetingCalenderPopup-BpRpGSe6-BbPmd_3K.js";import{f as be}from"./VideoPopup-Chye3pds-CsfGUZ0P.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-BYkDTMkS-BwPpLJtc.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=t.div`
1
+ import{ax as le,c as $,q as k,aP as ae,l as L,O as E,j as e,aM as a,bF as me,n as u,af as m,o as s,ar as ce,_ as de,aS as F,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-6DHFBk74.js";import{b as j,n as t}from"./vendor-Bs1fkIUX.js";import{x as je}from"./MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js";import{f as be}from"./VideoPopup-97jTEw9t-C5kzDaxd.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-Cp5DBUTp-n0gfwB0a.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -17,7 +17,7 @@ import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n a
17
17
  margin: auto;
18
18
  padding: ${s.sp5} ${s.sp0};
19
19
  color: ${i=>i.theme.colors.primary};
20
- `,N=t.div`
20
+ `,q=t.div`
21
21
  display: flex;
22
22
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
23
23
  align-items: center;
@@ -28,11 +28,11 @@ import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n a
28
28
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
29
29
  align-items: center;
30
30
  justify-content: center;
31
- `,g=t.img``,V=t.div`
31
+ `,g=t.img``,N=t.div`
32
32
  width: ${i=>i.windowSize==="small"?"auto":"376px"};
33
33
  display: flex;
34
34
  flex-direction: column;
35
- `,H=t.div`
35
+ `,V=t.div`
36
36
  width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
37
37
  overflow: hidden;
38
38
  max-width: 712px;
@@ -40,7 +40,7 @@ import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n a
40
40
  align-content: center;
41
41
  justify-content: center;
42
42
  align-items: center;
43
- `,O=t.div`
43
+ `,H=t.div`
44
44
  margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
45
45
  margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
46
46
  background: ${i=>i.theme.colors.grey3};
@@ -62,13 +62,13 @@ import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n a
62
62
  color: ${i=>i.theme.colors.champion};
63
63
  `,f=t(ue)`
64
64
  color: ${i=>i.theme.colors.champion};
65
- `,y=t(E)`
65
+ `,y=t(F)`
66
66
  color: ${i=>i.theme.colors.champion};
67
67
  `,S=t(he)`
68
68
  color: ${i=>i.theme.colors.champion};
69
69
  `,d=t.div``,p=t.div`
70
70
  padding-left: ${s.sp3};
71
- `,I=t(E)`
71
+ `,I=t(F)`
72
72
  margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
73
73
  color: ${i=>i.theme.colors.grey1};
74
74
  `,_=t(v)`
@@ -77,8 +77,8 @@ import{ax as le,b as $,q as k,aP as ae,l as L,F as D,j as e,aM as a,bF as me,n a
77
77
  color: ${z.graphColor09Dark};
78
78
  `,K=t(v)`
79
79
  color: ${z.success};
80
- `,F=t(pe)`
80
+ `,D=t(pe)`
81
81
  margin: ${s.sp3} auto;
82
82
  max-width: 772px;
83
83
  color: ${i=>i.theme.colors.hero};
84
- `,r=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=D.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=$(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsx(H,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(p,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(p,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=$(),o=k();return e.jsxs(N,{windowSize:o,children:[e.jsxs(V,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.simplestText.bold}),e.jsx(b,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(b,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(b,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(H,{windowSize:o,children:e.jsx(O,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:q,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},qe=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:Q,videoUrl:W,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:X,onBackClick:Y,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,re]=j.useState(!1),[se,P]=j.useState(!1),te=$(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=L.hasReimbursementAdminLevelAccess(C.loggedInUserRoleMap),w=L.hasReimbursementAccess(C.loggedInUserRoleMap)&&!oe,ne=!!o?.isReimbursementTOSAccepted,B=!!i.companyRemiInfo?.isReimbursementEnabled,U=w?B?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const A=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs(ye,{children:[ie===!0?e.jsx(be,{onCancelClick:()=>{re(!1)},videoUrl:W,"data-testid":a("remi-promo-page-video-popup")}):null,se===!0?e.jsx(je,{onCancelClick:()=>{P(!1)},meetingUrl:Q,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(me,{title:r.title,backgroundColor:te.colors.grey4,onBackClick:Y,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:ee,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ke,{children:U}):e.jsx($e,{children:U}),l==="small"?e.jsx(ve,{}):e.jsx(Te,{}),e.jsx(ze,{children:w?e.jsx(e.Fragment,{children:B&&!ne?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:X,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(F,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:A,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(F,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{qe as default};
84
+ `,r=E.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=E.getLocalizedStrings().commonSetUp.businessVerification.terms,ve=()=>{const i=$(),o=k();return e.jsxs(q,{windowSize:o,children:[e.jsx(V,{windowSize:o,children:e.jsx(H,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(p,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(y,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(y,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(p,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(y,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Te=()=>{const i=$(),o=k();return e.jsxs(q,{windowSize:o,children:[e.jsxs(N,{windowSize:o,children:[e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(_,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.simplestText.bold}),e.jsx(b,{children:r.simplestText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.aiPoweredText.bold}),e.jsx(b,{children:r.aiPoweredText.regular})]})]}),e.jsxs(c,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(K,{})}),e.jsxs(p,{children:[e.jsx(f,{children:r.multiLevelApprovalText.bold}),e.jsx(b,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsx(V,{windowSize:o,children:e.jsx(H,{windowSize:o,children:i.mode==="dark"?e.jsx(g,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})},Oe=({reimbursementSetupView:i,userReimbursementInfo:o,meetingUrl:Q,videoUrl:W,analytics:x,onSetupButtonClick:J,onCreateNewRemiButtonClick:X,onBackClick:Y,onSetupReimbursementSuccess:T,onClickMenuIcon:ee})=>{const C=le(),[ie,re]=j.useState(!1),[se,P]=j.useState(!1),te=$(),l=k(),{remiTermsDetails:h}=i,R=ae(h?.fetchStatus.fetchState),oe=L.hasReimbursementAdminLevelAccess(C.loggedInUserRoleMap),w=L.hasReimbursementAccess(C.loggedInUserRoleMap)&&!oe,ne=!!o?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=w?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;j.useEffect(()=>{R==="In-Progress"&&h?.fetchStatus.fetchState==="Completed"&&T?.()},[R,T,h?.fetchStatus]);const B=()=>{x?.trackReimbursementPromoScheduleDemo(),P(!0)};return e.jsxs(ye,{children:[ie===!0?e.jsx(be,{onCancelClick:()=>{re(!1)},videoUrl:W,"data-testid":a("remi-promo-page-video-popup")}):null,se===!0?e.jsx(je,{onCancelClick:()=>{P(!1)},meetingUrl:Q,"data-testid":a("remi-promo-page-meeting-popup")}):null,e.jsx(me,{title:r.title,backgroundColor:te.colors.grey4,onBackClick:Y,showBackButton:!w,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:ee,source:"ReimbursementPromoPage"}),e.jsxs(Se,{windowSize:l,children:[l==="small"?e.jsx(ke,{children:A}):e.jsx($e,{children:A}),l==="small"?e.jsx(ve,{}):e.jsx(Te,{}),e.jsx(ze,{children:w?e.jsx(e.Fragment,{children:U&&!ne?e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:B,"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.createNewReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:X,"data-testid":a("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(M,{windowSize:l,children:[e.jsx(u,{variant:"secondary",label:r.scheduleDemoButton,onClick:B,style:{width:216},"data-testid":a("reimbursement-promo-page-schedule-demo-button")}),e.jsx(I,{windowSize:l,children:r.orText}),e.jsx(u,{variant:"primary",label:r.setupReimbursementButton,loading:h?.fetchStatus.fetchState==="In-Progress",onClick:J,style:{width:216},"data-testid":a("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(D,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(x?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(x?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{Oe as default};
@@ -1,4 +1,4 @@
1
- import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,O as Pe,bX as st,ai as ct,bx as dt}from"./index-HCR8uiT1.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-B0ZBXPeh-zSwt_svY.js";import{K as je}from"./SetUpDefaultSection-shC3qOy6-NZDiaWla.js";import{f as mt}from"./SpendMgmtSetupAccountSection-CAWyEGGM-CyE9_AxZ.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-BlKvE3tT-HoFIL9hV.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-BpRpGSe6-BbPmd_3K.js";import"./ChargeCardUtils-BeG5m9OQ-BVnvyZkb.js";import"./CreditCardPaymentPlgSection-CqvgalYj-CACGNzop.js";import"./ChaseOverlay-B2pqFXTT-BWakvkAR.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Te(),E=De(),{formState:{errors:Z},trigger:Y}=ot(),D=ft($,"mileageAmountInDenomination"),f=at(Z,D),{localData:c,updateStatus:R,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[C,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(D)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Et,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:E.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Dt,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:E.colors.background,color:C||f?void 0:E.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:D,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
1
+ import{c as Ee,q as Te,aP as N,aa as qe,cS as Ge,O as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,b as Pe,bX as st,ai as ct,bx as dt}from"./index-6DHFBk74.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-Cp2LXxyy-C5Y06Y1n.js";import{K as je}from"./SetUpDefaultSection-C4NnRO65-C0fyZc92.js";import{f as mt}from"./SpendMgmtSetupAccountSection-Dz3vQC2g-P6jfr6Bz.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-CH9x8nx2-CEXAXlCj.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-Be-tan9_-CK9Gr3Pd.js";import"./ChargeCardUtils-Cy5rZlIH-BILI0sIl.js";import"./CreditCardPaymentPlgSection-HikR7OVv-BCZXDr8I.js";import"./ChaseOverlay-Dqg_bWdn-C8vTlyWM.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Te(),D=Ee(),{formState:{errors:Z},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:F,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[C,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -68,10 +68,10 @@ import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t
68
68
  `,jt=i.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
- `,At=i.div``,Et=i(st)`
71
+ `,At=i.div``,Dt=i(st)`
72
72
  color: ${e=>e.theme.colors.comingSoon};
73
73
  margin-left: ${a.sp3};
74
- `,Dt=i.div`
74
+ `,Et=i.div`
75
75
  display: flex;
76
76
  width: 100%;
77
77
  flex-direction: column;
@@ -103,7 +103,7 @@ import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:K,analytics:l,accountsPromoConfig:E,onBackClick:Z,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:D,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:T,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:V})=>{const B=De(),u=Te(),[W,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Me,companyBillPayInfo:fe,mileageRateConfig:ze,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&I(!0),W&&_==="In-Progress"&&v==="Completed"&&I(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,ye,re.fetchState,Se,se.fetchState]);const Ue=M.handleSubmit(P=>{l.trackEnableReimbursement(),C()}),He=async(P,F)=>{const m=F[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=F[G];S(w)}};o.useEffect(()=>{const P=M.watch((F,{name:m})=>{m!=null&&F!=null&&Ge(()=>He(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&T()},[T,we,L.fetchState]);const{commonSetUp:Ce,spendManagement:Be}=Ve.getLocalizedStrings(),{reimbursement:We}=Be,{reimbursementSetup:z}=We,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Je.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,de=Me?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=B.mode==="light"?new be(B.colors.brandColorJadeLight):new be(B.colors.brandColorJadeDark),Ne=()=>{!W&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?I(!0):Y?.()};return t.jsxs(Mt,{children:[t.jsx(Ke,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:W,onClose:()=>I(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:B.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Ft,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Rt,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...M,children:t.jsx("form",{id:Ee(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:V,pageName:"Reimbursement Setup",accountsPromoConfig:E}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:z.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:D,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:Ee(Ae),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:K,analytics:l,productType:"reimbursement"})]})},Mt=i.div`
106
+ `,p={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",q="remiAccount",G="remiMileage",ni=({remiSetupView:e,isDisabled:y,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:K,analytics:l,accountsPromoConfig:D,onBackClick:Z,onBusinessVerificationSectionClick:Y,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onEstablishConnectionSuccess:F,updateMileageDetails:S,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:C,onEnableRemiSuccess:T,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:V})=>{const W=Ee(),u=Te(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:b,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Me,companyBillPayInfo:fe,mileageRateConfig:ze,isRefreshingViewInBackground:Re,selectedCompanyOfficer:g}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[g,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,ye,re.fetchState,Se,se.fetchState]);const Ue=M.handleSubmit(P=>{l.trackEnableReimbursement(),C()}),He=async(P,R)=>{const m=R[q];if(P.includes(q)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&b?.id!=m.fundingAccount.selectedOption){const w=he.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&b?.id!=null&&b?.zeniAccountId!=m.account.selectedOption){const w=m.account.allOptions.find(me=>me.value===m.account.selectedOption);w!=null&&typeof w.label=="string"&&l.trackConnectBankLink(w.value,w.label,"reimbursement"),U(m.account.selectedOption,b.id,b.accType)}}else if(P.includes(G)){const w=R[G];S(w)}};o.useEffect(()=>{const P=M.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>He(m,R))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&T()},[T,we,L.fetchState]);const{commonSetUp:Ce,spendManagement:We}=Ve.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:z}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(b?.accType==="depositAccount"||Je.isVerifiedPaymentAccountProviderStatusCode(b?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,de=Me?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&g?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&g.areAdditionalDocumentsRequestedForVerification&&!g.areAdditionalDocumentsSubmittedForVerification&&g.userVerificationStatus?.code==="require_info"?I(!0):Y?.()};return t.jsxs(Mt,{children:[t.jsx(Ke,{anchor:"right",PaperProps:{style:{width:p.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:x,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:g,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:Z,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Rt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Ye,{size:"ExtraLarge",start:!0})}):t.jsx(Xe,{...M,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Qe,{width:p.iconWidthHeight.valuePx(u),height:p.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Re}),t.jsx(mt,{connectedAccountProvider:A,primaryFundingAccount:b,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:q,isDisabled:y,onFetchLinkTokenClick:f,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:p.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:V,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ht,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:z.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(tt,{height:p.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:p.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(it,{formId:De(Ae),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:y!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(ut,{isFooterRendered:ce&&!de,meetingUrl:K,analytics:l,productType:"reimbursement"})]})},Mt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -117,7 +117,7 @@ import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t
117
117
  padding-top: ${e=>p.subTitlePaddingTop.valuePx(e.windowSize)};
118
118
  padding-bottom: ${e=>p.subTitlePaddingBottom.valuePx(e.windowSize)};
119
119
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
120
- `,Ft=i.div`
120
+ `,Rt=i.div`
121
121
  display: flex;
122
122
  justify-content: flex-start;
123
123
  height: 100%;
@@ -125,7 +125,7 @@ import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t
125
125
  flex-direction: column;
126
126
  align-items: center;
127
127
  row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
128
- `,Rt=i.div`
128
+ `,Ft=i.div`
129
129
  display: flex;
130
130
  width: 100%;
131
131
  height: calc(100vh - 110px);
@@ -137,4 +137,4 @@ import{b as De,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  row-gap: ${e=>p.sectionRowGap.valuePx(e.windowSize)};
140
- `,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(s=>({label:s.accountName,value:s.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},Ee=e=>`${e}_form`;export{ni as default,Ee as uniqueName};
140
+ `,pe=e=>{const{allBankAccounts:y,allFundingAccounts:j,mileageDetails:A,primaryFundingAccount:$}=e,{localData:d}=A;return{[q]:{fundingAccount:{selectedOption:$?.id,allOptions:j.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:$?.zeniAccountId,allOptions:y.map(s=>({label:s.accountName,value:s.accountId}))}},[G]:{mileageAmount:d?.mileageUnitAmount?.amount,mileageCurrencyCode:d?.mileageCurrencyCode??"USD",mileageCurrencySymbol:d?.mileageCurrencySymbol??"$",mileageUnit:d?.mileageUnit??"",description:d?.description??"",mileageAmountInDenomination:d?.mileageAmountInDenomination,denomination:d?.denomination??"dollars",denominationSymbol:d?.denominationSymbol??""}}},De=e=>`${e}_form`;export{ni as default,De as uniqueName};
@@ -1 +1 @@
1
- import{F as M,j as b,cD as X,cE as V,cF as W,k0 as q,aX as z,l as Y}from"./index-HCR8uiT1.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as Z}from"./ReviewOverlay-DQvXSDYM-BgLXL5oi.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=G(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},U={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Y.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},N=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},O={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(X,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:U,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Z,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:N(),cancelButton:O,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},G=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
1
+ import{O as M,j as b,cD as X,cE as V,cF as W,k1 as Z,aX as q,l as z}from"./index-6DHFBk74.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as Y}from"./ReviewOverlay-Bra2W5Jg-C_PWInnU.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=G(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:O}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(X,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:L,description:{content:O,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=Z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},G=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
@@ -1,6 +1,6 @@
1
- import{b as h,j as r,aL as a,aM as m,b2 as j,F as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-HCR8uiT1.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{c as h,j as r,aL as a,aM as m,b2 as j,O as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-6DHFBk74.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
- `;function z({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function I({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
3
+ `;function z({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function R({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
5
5
  `,b=s.div`
6
6
  height: ${c.sp10};
@@ -23,4 +23,4 @@ import{b as h,j as r,aL as a,aM as m,b2 as j,F as C,aR as l,bI as x,ai as g,o as
23
23
  color: ${e=>e.theme.colors.champion};
24
24
  `,v=s(g)`
25
25
  color: ${e=>e.theme.colors.hero};
26
- `,L=s(y)``;function T({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs($,{children:[i??j(o)," "]}),r.jsx(b,{children:r.jsx(L,{})}),r.jsx(v,{children:C.getLocalizedStrings().card.failedText})]})})}export{z as E,T as I,I as z};
26
+ `,L=s(y)``;function T({dimension:e,cardType:o,cardIndex:t,reportTitle:i,onReloadData:n}){return r.jsx(a,{"data-testid":m("dashboard-reload",o),dimension:e,onClick:()=>n(t,o),children:r.jsxs(k,{children:[r.jsxs($,{children:[i??j(o)," "]}),r.jsx(b,{children:r.jsx(L,{})}),r.jsx(v,{children:C.getLocalizedStrings().card.failedText})]})})}export{z as E,T as I,R as z};