@zeniai/web-cockpit-ui 1.14.93-qa → 1.14.94-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 (284) hide show
  1. package/dist/assets/{ACHDetailsPage-Cmt4zlsa-CDZiD7uq.js → ACHDetailsPage--3bIj7tB-3F9dwMR-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-Bll3cTy1-b27VXKt9.js → AIPerformancePage-DBCeKLy6-DoFLATw5.js} +1 -1
  3. package/dist/assets/AccountInfoPage-CITo61GF-CgwHepBH.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-9wbA8niq-BQPlrhif.js → AccountInfoPageContent-Zb49sPy6-B7XnQcW_.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-CLvVkdLW-DCJDL5e-.js → AccountLockedInfoModal-BcokXO2D-CS3sAEh5.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BXa1TZA0-CAajw4V5.js → AccountReconDetailsDrawerPage-BWydimgX-dIMZ3KX3.js} +3 -3
  7. package/dist/assets/{AccountRow-Ba39SxP8-BDy0Ghaj.js → AccountRow-XnGMYfcj-CkjY0dM_.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-W5TW8HPU-BTkK4mI8.js → AccountsPromoCardStack-BQeRFxKs-CSqaKnps.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-nEnaGKnm-CAOQViJ5.js → AddAddressForCardDrawer-DOXNDswm-JiOm9hW4.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CQYHG0Yj-0jpf7AZf.js → AddToWalletPage-D4yEGRLZ-9f9p7H0-.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BWCU11pF-BQ-PtZ_4.js → AgingReportsPage-Bos6Ptg1-u0-8eZRf.js} +3 -3
  12. package/dist/assets/{AllUserItems-DPxoQeZA-bZH6ly1p.js → AllUserItems-JjQPLLSr-CHIofzkk.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-cslGsO08-DaNljmbC.js → ApAgingDetailPage-Y4VWhY78-OPeQ-zhp.js} +2 -2
  14. package/dist/assets/{AppBasePage-BZINcjPW-BkU74Qad.js → AppBasePage-CaAadL3t-B5dacIto.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-V7jCH_90-BcsXCj8u.js → AppDrawerContent-BKsLlcGq-C-I5tgBW.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BC6CLesU-3XYsHbPE.js → ApprovalRulesSettingsPage-sHR8nTbf-CvweKKJv.js} +1 -1
  17. package/dist/assets/{ArAgingChart-C7VtW0AI-DEMe1eER.js → ArAgingChart-Cn2M7EaL-CioxnnU1.js} +4 -4
  18. package/dist/assets/{ArAgingDetailPage-Bttq4jQR-CnsZwMCV.js → ArAgingDetailPage-vdpIT5_o-BuX_9MW_.js} +5 -5
  19. package/dist/assets/{AttachmentView-BijZrB02-D9PbSyO-.js → AttachmentView-QyMOK54a-_Wag7_iK.js} +1 -1
  20. package/dist/assets/{BankAccountSection-De0m3zrf-BQt18cNm.js → BankAccountSection-BexfgJ02-CJbDgNfM.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-DoqOr9h0-DbOY-a-J.js → BankAccountWarningSection-MLEqvFgR-BxBAHmR8.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BaySatUW-FG6Z5V4J.js → BankConnectionsSettingsPage-DP9KRNaJ-CmsjOmvw.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Bg_3myu0-Ce1Egex3.js → BillDetailPage-jNE4rg05-BvKca9U-.js} +1 -1
  24. package/dist/assets/BillPayApprovalRuleDetailPage-C8hROA4_-CB0BAa6k.js +27 -0
  25. package/dist/assets/BillPayApprovalRulesPage-BQywFC8e-BuMp1BIY.js +235 -0
  26. package/dist/assets/{BillPayPromoPage-SUtLQemf-gCiMxmlk.js → BillPayPromoPage-D2OmNki0-COFGRb92.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BbIjaE2K-DSFxL_SK.js → BillPaySetUpPage-C81gx8-a-DAG36bWE.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-Bmd6ET1I-DQb7bbNw.js → BillingSettingsPage-CIUisdZK-mQpXJmxB.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CYSMvAbC-BflldkPi.js → BillsBulkReviewDrawerPage-DqjW9AqP-D7YAQNvr.js} +1 -1
  30. package/dist/assets/{BoxItem-B8HVRhgE-CWOe4vur.js → BoxItem-YBSbdQ7d-D8N3mTZg.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Cn1b1hk4-045nVDqZ.js → BusinessVerificationPage-DeJbdegJ-n2Ac3MMR.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BcJnpRxI-BBy68c92.js → CardNumberSubText-Bq9G3f38-BaBJQ2OX.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BkIotpWn-Dl5OkwTJ.js → CashbackDetailPage-C-0eaJVF-Bmh2Azca.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-kKKhppzB-DdFxPSZ5.js → ChargeCardDetailPage-CBB5up99-C7PliMpM.js} +21 -21
  35. package/dist/assets/{ChargeCardListPage-CP778-GK-CbLxjXoj.js → ChargeCardListPage-52TDMfjH-XC6zwUdm.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DBryLHST-WKtHlBqi.js → ChargeCardListTable-BdHKiQtr-BoKeTaBP.js} +11 -11
  37. package/dist/assets/ChargeCardPromoPage-D43dBHNx-Dmge2_bT.js +222 -0
  38. package/dist/assets/{ChargeCardSetupPage-m8dUXi38-BoklBBdh.js → ChargeCardSetupPage-CgzI8qMq-8aOP9gWV.js} +3 -3
  39. package/dist/assets/{ChargeCardStatementsPage-Dq5NpUXk-DFKaCFU_.js → ChargeCardStatementsPage-C1PYOcuH-DSHTFs6J.js} +6 -6
  40. package/dist/assets/{CheckDepositDrawerPage-BJQ2GSoP-B2ngCuBp.js → CheckDepositDrawerPage-CrYCkxKl-DX8fhtud.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-l16Ixpgb-DLPmakbL.js → CollapsableReportTable-CvXUxopt-CWXKqXg0.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-mKcrRkb5-CKYOdtvi.js → CompanyOfficerDetailsSection-DYAECWJz-C-5qszuR.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-DUwjb7jY-5By1D8Ys.js → CompanyPassportCard-CLoIl-hE-CX-RLpgg.js} +2 -2
  44. package/dist/assets/{CompanyPassportPage-mQ_Le1I1-DjufVjcH.js → CompanyPassportPage-B3opPlfY-CffcaeWU.js} +13 -13
  45. package/dist/assets/{CompleteProfile-CesiGAex-CGlxomCD.js → CompleteProfile-DKCP0ZOq-CCpcvdBI.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-CXF_94LB-BPT2fe0G.js → ConfettiBurst-Ccs36Y8q-BoEyotYe.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-BMVOhEEP-BYnaIOr4.js → CreateOrEditVendorPage-CC5jroI_-C5qdwHAS.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-Cl4vJBjO-jN6hG5nU.js → CreditCardPaymentDrawerPage-BNSfaY2k-4QGMMrZP.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-CvnrYpdi-2Zo75Egb.js → CurrencySelectField-CfFOlEnM-CfS03uxO.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-CmengYgm-BvZ0VfeS.js → CustomerOnboardingActivationPage-Cac_xdpd-DG_j3gPE.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-DOZu4r0V-CARfFPsC.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-hF2fjE7f-C4vs0VMm.js → CustomerOnboardingDetailPageSkeleton-Cktian-X-Ch6gtFyy.js} +6 -6
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-B-pbVz1_--ihgoaxq.js → CustomerOnboardingNoStepsPage-BVW1Hd-G-CEYYL4XK.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-CUj-SOSh-C8piDFOY.js → CustomerOnboardingPage-CSTODxiL-B0YN-L_5.js} +4 -4
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-DLJg9lqc-BSOnv8FC.js → CustomerOnboardingProductSuitePage-dcjDfxm3-DmmzRM-K.js} +1 -1
  56. package/dist/assets/{Dashboard-DUBT_4AU-02rhMcb1.js → Dashboard-DHwjF8AD-euUt_v4D.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-cTPn6w4q-8aV02WCJ.js → DashboardReportPage-BbFqvGcc-Bm6bvb04.js} +10 -10
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation--y1-phUW-Bt_H2fey.js → DashboardSidebarBackgroundAnimation-Aepv0x8n-BRMC8BKu.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-BJ6rNbQF-VwiYfZOw.js → DepositAccTransactionItem-B6bYU73--Bk-F2M5u.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-BXu7yVC4-DHoc-nzx.js → DepositAccTransactionListPage-DdCwnDuw-DoIQ6X_F.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-D5wDMrfR-Dnw1Nv9m.js → DomesticWireDetailsPage-DXlw9Ok--f2WgPebu.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-BF8Uzj65-DU4IzGTl.js → DownloadOverlay-KKP34aVT-GDmhikON.js} +1 -1
  63. package/dist/assets/{DrawerPage-4QqiD5ag-CHJx5rEc.js → DrawerPage-DXGL0DM7-Bc-jzyXP.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-BFROUzlu-DbH6MX1W.js → EditPeoplePage-DWmJ1PpR-B171l_6f.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-Bz32u6U5-ByvxQ-VQ.js → EditReimbursementDetailPage-B_5V1IzS-CpmdAjAk.js} +1 -1
  66. package/dist/assets/EntityDetailPage-BUzV8V9O-CDFw7Jz4.js +18 -0
  67. package/dist/assets/{EntitySummarySection-0nKZeBKn-CxDzlgPW.js → EntitySummarySection-CdjupOWB-Bdi92weZ.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-Dvyn5ovf-Dh_1NuUv.js → ExpenseAutomationOverviewPage-Bx47Uuzu-r5x-Txwb.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-DPmIOATd-H9uO6DCm.js → ExpenseAutomationPage-aVCW740N-y9h0gDFl.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-DGTh3qGM-hx60EgHF.js → ExpressPayPage-xIDJP3---15Mg_KmG.js} +8 -8
  71. package/dist/assets/{FeaturePreviewPage-CHUVkqak--PnBOI8w.js → FeaturePreviewPage-BeGkbhpj-XrVvhthA.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-C_pWSlPc-CNxhobiG.js → FollowStepsSection-9Bp032CO-BrD2qQBR.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-BjPOnObQ-BoVAoUv0.js → GlobalReviewListPage-BKgbn5KU-DMdX8GV6.js} +1 -1
  74. package/dist/assets/{InformationCardStack-DvFu-gjh-BSt4ac6w.js → InformationCardStack-DR09Frl5-og6T9hD3.js} +6 -6
  75. package/dist/assets/{InsightsCardStack-CR3wSnhE-CeoxR_4s.js → InsightsCardStack-Bs9n7ddB-B2Kwtl5L.js} +5 -5
  76. package/dist/assets/{InsightsSection-DCFjudcA-ZH-CYvlE.js → InsightsSection-Bt4Z2mKl-xYOXRNGL.js} +2 -2
  77. package/dist/assets/{IntegrationsSettingsPage-DpPc99qg-DfOzY_vz.js → IntegrationsSettingsPage-Ce3RYvgj-Bxed6b4a.js} +2 -2
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-xXEk6Ubv-CcZYQF-w.js → InternationalWireSwiftDetailsPage-Dl6FL0Lc-BaPHN9iA.js} +4 -4
  79. package/dist/assets/{InternationalWireVerificationPage-uh0GqYQA-DPUb5rUD.js → InternationalWireVerificationPage-MYSltOya-BZ90_Q4i.js} +5 -5
  80. package/dist/assets/{InviteFormPage-5xqk5ISe-LF5dwR2M.js → InviteFormPage-C0ezbQfC-ClPGWuNA.js} +1 -1
  81. package/dist/assets/{InvitePageListView-CpmTnQLj-t_m815b9.js → InvitePageListView-SMhlCNKA-B22x1b9R.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-BeCWfFpI-qVy_wkS4.js → InvitePeoplePage-Dna0gg0J-kTwq0Am9.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-BvaKEakI-By_ZVvOJ.js → InvoiceUploadSection-QGU5U32X-Bt28YEXu.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-Bomvo_PH-DPoESmHo.js → IssueChargeCardPage-jai5Nd4c-BHDpP46s.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-b4zlBP-g-DhADQjsR.js → LabeledAddressValue-cvWoRExB-DOimN9ER.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-DpcuqwLy-Cmfk083A.js → LabeledAddressValueField-BewnvHGP-Cy17-5a4.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-BTjbeJMZ-Cg7yDZmx.js → LabeledControlledCheckBoxField-DFKeD5HK-jfbQYMID.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-D_oWjB4_-Bia0PLfa.js → LabeledCreatableSingleSelectField-nc8iZ1C1-CV4i9q1e.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-dtnakMLl-jYpuR46_.js → LabeledDocumentField-DmRNRSkb-CDplxK9C.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-DDtxGo1u-VTNlZkCL.js → LabeledDropDownFormattedTextField-BP1jmZf7-D3OI0FNX.js} +1 -1
  91. package/dist/assets/{LabeledText-CUs3VIof-Cvm8EKo3.js → LabeledText-CIupsEGL-vKnChPk0.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-BusH2qnZ-q3jCk6Er.js → LabeledUserSingleSelectWithSubtitlesField-CeZEGuNW-DnFoIROQ.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-DYkmOsOP-BPuWz2hY.js → LabeledZeniRolesDropDownField-CDmiz3py-JlLIrijY.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-DbP6jfzn-fKg3yGaJ.js → LinkJETransactionPage-BtUXXguK-BX6h2lWE.js} +1 -1
  95. package/dist/assets/{LockCardPage-CWEZyzEM-BSGmLwo3.js → LockCardPage-TzEwLGD1-Cmclt9pm.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-BQ9JPBTS-CsnR6U3v.js → LowBalancePopup-BWD6Kz-D-JhqQW5Xo.js} +1 -1
  97. package/dist/assets/MagicLinkACHDetailsPage-CZQ8tUTD-Da6izWW_.js +1 -0
  98. package/dist/assets/MagicLinkDomesticWireDetailsPage-DHZY9sKi-DpYSqAI_.js +1 -0
  99. package/dist/assets/MagicLinkInternationalWireDetailsPage-BJtMjz1M-Dw8wDVtb.js +1 -0
  100. package/dist/assets/{MagicLinkSuccessPage-DU1RM5NI-ChKPq-l1.js → MagicLinkSuccessPage-DQAUDzEV-D_oG7NAX.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-RWEjrx8m-C9NF9igZ.js → MagicLinkTitleSection-JcGSlbn4-wY3-HkBx.js} +1 -1
  102. package/dist/assets/MailingDetailsSection-Ch5XvR8o-DHMj4gz4.js +21 -0
  103. package/dist/assets/{Menu-BTZYMOTT-Dr0t7odP.js → Menu-B05IRjpP-oB6ZIzEi.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-DufaL9n8-DDos_p1w.js → MyBankConnectionsSettingsPage-D2a7LgLg-CVhBWNpq.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-DwCUyRec-DFxL-ZIz.js → MyPendingActivationChargeCardListPage-pDexjhqy-DP1wPJrc.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-geduKqxy-s7eWbMFw.js → MyProfileSettingsPage-CRkrD2Bn-FBlqtq-o.js} +2 -2
  107. package/dist/assets/{NavBarWithPicker-edkm8kW--BSVNjduX.js → NavBarWithPicker-9HjZDzt5-FKds7wXE.js} +1 -1
  108. package/dist/assets/{NavigationArrow-DAOz2wst-tG8IGOKf.js → NavigationArrow-CgBj8o4H-BlFGUhy1.js} +1 -1
  109. package/dist/assets/{NavigationDots-Dm8SYcdL--7WpuL09.js → NavigationDots-BcSXYcwF-cwaSYMDv.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-enaZFSVb-DInVAo0j.js → NewGlobalMerchantPage-Dv9JrWDT-BA8nAIgM.js} +1 -1
  111. package/dist/assets/{NoDataChart-BIcLmdso-CfY1R0LV.js → NoDataChart-tkUQHi-b-C5CjlXPt.js} +1 -1
  112. package/dist/assets/{NoDataTable-C9ywvwy4--OJw2Ozq.js → NoDataTable-DHZ1gQeV-DFGtLWam.js} +1 -1
  113. package/dist/assets/{NotFoundPage-B0Pfc4vD-D1bPY-GY.js → NotFoundPage-D59UVi8i-5MNYbcKK.js} +7 -7
  114. package/dist/assets/{NotificationSettingsPage-Di4KhoPI-BvChH4Ms.js → NotificationSettingsPage-xVOogGxf-BuNP_ADs.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-CHb7phwi-D6AWL70s.js → NotificationsListConfig-CkDLXlK_-Dyu4QQzt.js} +1 -1
  116. package/dist/assets/{NotificationsPage-B4KMZZ0V-hcFdhwJL.js → NotificationsPage-C8zx5kJx-Dl-4CqVn.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-CAxLWg7x-CtZ9giOs.js → OpExByVendorPage-BaUEnLMo-DqlhH9_M.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-Daz3A7cI-CimFomY0.js → OverlayContainerPage-Daz3A7cI-CjSleqHo.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-Dx56-ypM-DK1GJPJa.js → PandLWithForecastPage-BKWEOfwP-voM5FybB.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-C8QwChEK-BLjfO0Lx.js → PaymentAccountSetupBillingAddressSection-Ddm0Q_3J-iDE-MOKu.js} +1 -1
  121. package/dist/assets/{PeoplePage-CjD6uKA--BHaPhKgZ.js → PeoplePage-ChBsx1YC-C_Fl1jcc.js} +1 -1
  122. package/dist/assets/Preview-DWEhp9iP.js +1 -0
  123. package/dist/assets/{ProductsCarousel-DzOaqLVq-DpOWg2CM.js → ProductsCarousel-CaOQupY4-Bxf4CH6R.js} +1 -1
  124. package/dist/assets/{PromoBaseCards-B1h9AEH0-CHuvtaI2.js → PromoBaseCards-DeJ4J5Lp-BRCdntYT.js} +1 -1
  125. package/dist/assets/{QBOConnectionDialog-Bv6unk3C-C4_jlkWG.js → QBOConnectionDialog--nz5v12t-BznyDbQp.js} +1 -1
  126. package/dist/assets/{QBOSetupSection-BTjj7g98-Dapfrzs_.js → QBOSetupSection-DQTH1dAT--WL2Dx1Z.js} +1 -1
  127. package/dist/assets/ReimbursementApprovalRuleDetailPage-BottOscg-CAHU3Hml.js +24 -0
  128. package/dist/assets/ReimbursementApprovalRulesPage-B46nrYDg-DD0XiWBs.js +237 -0
  129. package/dist/assets/{ReimbursementDetailPage-DnXsG55s-Dtagyh2_.js → ReimbursementDetailPage-DvSn2LUG-B9MjjUuK.js} +1 -1
  130. package/dist/assets/{ReimbursementPromoPage-Di39wgvD-BxNUKJJW.js → ReimbursementPromoPage-DRItpn0n-DjtSA1Xj.js} +1 -1
  131. package/dist/assets/{ReimbursementSetUpPage-CT5bs4wM-ByTF7QY9.js → ReimbursementSetUpPage-CRnE1XYI-C2_UvSyd.js} +4 -4
  132. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BcB8hTar-BMbnui6b.js → ReimbursementsBulkReviewDrawerPage-C6Cn3AOg-WyMbQmuf.js} +1 -1
  133. package/dist/assets/{ReloadCard-BGPtXAV7-XTkROFfl.js → ReloadCard-CRQf0INS-CM9HcBcK.js} +1 -1
  134. package/dist/assets/{ReportTableViewSelector-gEKTiiSk-yAHt6AaJ.js → ReportTableViewSelector-Dj9qmDS0-C79_BFmS.js} +4 -4
  135. package/dist/assets/{ReportsPage-Ctvnzlk1-9xU8MY_m.js → ReportsPage-BJmkDtu3-BHlyDsBo.js} +5 -5
  136. package/dist/assets/{RevenueChart-D1PfVLk0-1BQEFyGm.js → RevenueChart-LvTct9qg-CqMmRuwP.js} +14 -14
  137. package/dist/assets/{ReviewDetailsPage-Ynw6pln--CN0sJcfC.js → ReviewDetailsPage-CDWKsdgl-_lQ4M5E9.js} +52 -52
  138. package/dist/assets/{ReviewOverlay-DQZwNpFY-BpRxW5CE.js → ReviewOverlay-Bh8LAnRM-CyjKd25e.js} +1 -1
  139. package/dist/assets/{RoleWithToolTip-DbQ4ezrP-CEMERHZy.js → RoleWithToolTip-BHHwWcYs-BR4B_g9G.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DlqQBt-s-BtvHlj3c.js → ScheduleDetailsFixedAssetsPage-C_nki9xG-C_v2_vCQ.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsPage-CrVetPy7-12CzluPZ.js → ScheduleDetailsPage-BXmAqbuh-Gg4bs2eh.js} +1 -1
  142. package/dist/assets/{ScheduleSequenceTable-B7pQ00z8-B7tyn4Md.js → ScheduleSequenceTable-BePVgFIB-BxJLrQ2I.js} +1 -1
  143. package/dist/assets/{ScreenRoutes-d0ZspmbS.js → ScreenRoutes-xhTHWLYi.js} +1 -1
  144. package/dist/assets/{SetUpAccountSection-BAsI7p1f-BQKv5JAR.js → SetUpAccountSection-B1mXaFmw-BQBAmCi3.js} +1 -1
  145. package/dist/assets/{SignIn-CE6gxhI3-Cwe0hMEG.js → SignIn-B8qL3jmy-CehNtVNp.js} +1 -1
  146. package/dist/assets/SignInScreen-Cp3MQQbP.js +1 -0
  147. package/dist/assets/SpendManagementListViewPage-D-XwxN9o-C4dAHfpb.js +123 -0
  148. package/dist/assets/SpendManagementPerTabPage-CF7D2umh-zU9LbhKc.js +754 -0
  149. package/dist/assets/{SpendManagementSection-rHLuZG8_-wlUP3HQF.js → SpendManagementSection-CIqYxYxX-BVCp77Yh.js} +1 -1
  150. package/dist/assets/StatementItem-Cj9_LMwP-iOXv6bUO.js +31 -0
  151. package/dist/assets/{StatementsPage-5oimgNHp-Cik2GNOK.js → StatementsPage-CB8LocUZ-e2Dh9l46.js} +1 -1
  152. package/dist/assets/{StatusSwitcher-CLCkXs_4-BLM4_oql.js → StatusSwitcher-DetjWSRH-Q0yUcFVR.js} +1 -1
  153. package/dist/assets/{SubTabSwitcher-DDR7LrDO-B46o4hWR.js → SubTabSwitcher-DNqrmpKa-CF4L1Kwg.js} +1 -1
  154. package/dist/assets/{SummaryCard-Cg5UVud3-D024tZI0.js → SummaryCard-CxlxmBvk-B-SyMhB-.js} +1 -1
  155. package/dist/assets/{TaskManagementPage-6_zt2ePp-DjEWnpm8.js → TaskManagementPage-zHTW1LJ--Dqvt7j5c.js} +15 -15
  156. package/dist/assets/{TimeRangeSwitcher-BTx3d66N-wus2PWOy.js → TimeRangeSwitcher-8D64-X4u-DSKeQDPn.js} +11 -11
  157. package/dist/assets/{TimeframeSwitcher-BkGiMDhd-OU0F34Ma.js → TimeframeSwitcher-YicRGCkf-D-mysr-q.js} +1 -1
  158. package/dist/assets/{TimeframeSwitcherWithToggle-M554ai9V-CRoAjStF.js → TimeframeSwitcherWithToggle-mP6ezXyM-B9RCQQMF.js} +3 -3
  159. package/dist/assets/{TopExCard-ym2uAvUy-DnigppX5.js → TopExCard-BDEoKFUO-Cqks_MY0.js} +10 -10
  160. package/dist/assets/{TopExDetailPage-DU1Qj5ea-LRwIFDCO.js → TopExDetailPage-CLUf9sHg-DjgQ-dJN.js} +8 -8
  161. package/dist/assets/{TransactionDetailPage-BHyBhrM7-BYi-GSuY.js → TransactionDetailPage-C-GKDIp2-oZAwumRI.js} +1 -1
  162. package/dist/assets/{TransactionList-CIbSavhJ-1mjim1La.js → TransactionList-BqQVYWs_-CYNYQaes.js} +1 -1
  163. package/dist/assets/{TransactionListBig-kC4b3DAu-BmaMPZxd.js → TransactionListBig-CDgdq8hU-BFzaq7Iz.js} +1 -1
  164. package/dist/assets/{TransactionListPage-Ci98GcF7-DNyraU_a.js → TransactionListPage-CyGTX1pW-Cj8J8ecy.js} +2 -2
  165. package/dist/assets/{TransactionVendorDetailPage-DI4kq_vO-B82fS_UE.js → TransactionVendorDetailPage-NKocfHyN-C_fZiZg1.js} +1 -1
  166. package/dist/assets/{TransferDrawerPage-B342yNDJ-B7sPLTpd.js → TransferDrawerPage-qNh4Fww2-CNaDS1Go.js} +1 -1
  167. package/dist/assets/{TreasuryOverviewPage-cvOuWLTK-B1Ra99a3.js → TreasuryOverviewPage-D1RQYkoX-CQ3CkOfI.js} +1 -1
  168. package/dist/assets/{TreasuryPromoPage-DyseS2l1-w9bsCAsi.js → TreasuryPromoPage-najiDjYG-CYR1JzfB.js} +1 -1
  169. package/dist/assets/TreasuryStatementsPage-CRR-Df5x-DF9p1Ylz.js +58 -0
  170. package/dist/assets/{TreasuryTaxLetterPage-DjV36uFi-Bi_ZZ4SJ.js → TreasuryTaxLetterPage-vKXs7eCx-B9A61B43.js} +2 -2
  171. package/dist/assets/{TrendChart--yie2Xkp-Ctp4-mkm.js → TrendChart-DtubLSsW-C9uVL_nf.js} +2 -2
  172. package/dist/assets/{TrendWithTransactions-DVLdmgtU-S2aCQzJD.js → TrendWithTransactions-DB5hmoGk-BT0bTVEH.js} +1 -1
  173. package/dist/assets/{UncategorizedAccountsMappingPage-CRypWMwQ-CD5tyyJq.js → UncategorizedAccountsMappingPage-ldBfy4n9-BSd43gPp.js} +5 -5
  174. package/dist/assets/{UnitIntegrationPage-DU6Luklp-DXGJziz-.js → UnitIntegrationPage-DPHlAm3E-k8T3V2L9.js} +1 -1
  175. package/dist/assets/{UploadAdditionalDocumentOverlay-jNiTn6qG-CyN0ip8w.js → UploadAdditionalDocumentOverlay-C2kqDNTp-CLCo9ZjN.js} +1 -1
  176. package/dist/assets/{Vendor2FAPopup-BNA3GtkO-DBarOU6y.js → Vendor2FAPopup-_DrX-sZ2-C-ynpNGr.js} +1 -1
  177. package/dist/assets/VendorACHDetailsPage-ims8AKLH-Ckg60c1E.js +1 -0
  178. package/dist/assets/{VendorDetailPage-B6s7kOX--uMKcoPFP.js → VendorDetailPage-dh7UBGAL-gseaFndd.js} +1 -1
  179. package/dist/assets/VendorDomesticWireDetailsPage-C_28sDKW-Ck0eXnl0.js +1 -0
  180. package/dist/assets/{VendorFiling1099EditablePage-DiVBfWTv-CUW53e28.js → VendorFiling1099EditablePage-CGEA0mkh-DtfOreYr.js} +1 -1
  181. package/dist/assets/{VendorFirstReviewPage-CuM6lK63-Dvp1nLKR.js → VendorFirstReviewPage-BGktoc9W-h6QMXY4Y.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireDetailsPage-CcTippeu-Cd-dat-9.js → VendorInternationalWireDetailsPage-DidLa6Yx-BHcPntRA.js} +1 -1
  183. package/dist/assets/VendorInternationalWireSwiftDetailsPage-YqE835gy-EXKEVzqz.js +1 -0
  184. package/dist/assets/{VendorsAccountsSection-zeM6PeT4-DbfJJIUQ.js → VendorsAccountsSection-BtjrsclQ-CCbXB7Vr.js} +1 -1
  185. package/dist/assets/{VerifyDevice-iKowLq-3-B1M5ehkG.js → VerifyDevice-DkibYc6v-B-zCOUZe.js} +7 -7
  186. package/dist/assets/{VideoPlayer-CN28Ho6V-C9X8iWgG.js → VideoPlayer-C8VeeJIx-Bo3SMitQ.js} +2 -2
  187. package/dist/assets/{VideoPopup-CfYmxIk4-CtU-zes6.js → VideoPopup-aA7dkXbZ-BQm8xqng.js} +4 -4
  188. package/dist/assets/{WarningsDrawerPage-C4jqovLJ-BX5GJuEL.js → WarningsDrawerPage-CA0EogPY-DmMnG6Y0.js} +1 -1
  189. package/dist/assets/{ZeniAccountDetailPage-M045ginI-BmZ9yaIJ.js → ZeniAccountDetailPage-Z7ZXcJ98-BoMU7_sz.js} +1 -1
  190. package/dist/assets/{ZeniAccountListViewPage-C-eOjorO-BI7UOOes.js → ZeniAccountListViewPage-CllLl65J-C_iRgCJw.js} +1 -1
  191. package/dist/assets/{ZeniAccountNavBarPieces-Dz9ssqU1-BUAdtMrT.js → ZeniAccountNavBarPieces-CHXbVcQE-vXZ3dsMQ.js} +1 -1
  192. package/dist/assets/{ZeniAccountPromoPage-BxzNy8wF-B2j7-cEN.js → ZeniAccountPromoPage-DAtyHUfj-BSm4TiYG.js} +1 -1
  193. package/dist/assets/{ZeniAccountSetupPage-zWKttj2U-Bxni_B2X.js → ZeniAccountSetupPage-Cy6_fMVK-C8cnPKU9.js} +1 -1
  194. package/dist/assets/{ZeniCopyright-2oeOVh0P-CbjjvS5r.js → ZeniCopyright-D5JfDH77-jPfeHSFD.js} +1 -1
  195. package/dist/assets/{ZeniTransferAmountSlider-BADEO33A-CRBj7Za4.js → ZeniTransferAmountSlider-Bk2gg7DY-CUDntV_F.js} +1 -1
  196. package/dist/assets/{add-to-wallet-DgdBD8_G-CE3qjZuH.js → add-to-wallet-DgdBD8_G-C5IoXTpL.js} +1 -1
  197. package/dist/assets/{analytics-B5pDs204.js → analytics-aL6KvWIc.js} +1 -1
  198. package/dist/assets/{analyticsHelper-C2XPB_2A-Cg5vkOR0.js → analyticsHelper-Cnk2OUU2-obG2D2We.js} +1 -1
  199. package/dist/assets/{analyticsHelper-C5DBFkb8.js → analyticsHelper-KEHx3dOo.js} +1 -1
  200. package/dist/assets/{arrow-south-east-round-PEovUgvH-DXn2IDql.js → arrow-south-east-round-PEovUgvH-TX5SKWFw.js} +1 -1
  201. package/dist/assets/{auto-transfer-rule-mbafm5D3-B7q3IbIp.js → auto-transfer-rule-mbafm5D3-Bk6z9OTx.js} +1 -1
  202. package/dist/assets/{chartTypes-PZyiFZrr-BuwhqnUh.js → chartTypes-CMIndIax-BEMOmico.js} +1 -1
  203. package/dist/assets/{commonDimensions-C_y3LIE8-DaT6d7Mw.js → commonDimensions-DSS8XDHZ-BEyzahKx.js} +1 -1
  204. package/dist/assets/{constants-sZKYfJG5.js → constants-BPxZQJPZ.js} +1 -1
  205. package/dist/assets/{core-DcqdNo0H.js → core-DesIUmVX.js} +1 -1
  206. package/dist/assets/{dash.all.min-DMmskpzZ.js → dash.all.min-C390RKsv.js} +1 -1
  207. package/dist/assets/{detailCommon-PTd6DPpO-DmTNZyzt.js → detailCommon-DWd4agOz-DxO_ewED.js} +3 -3
  208. package/dist/assets/{downloadPdf-BdoS2D6l-CiYpnZbY.js → downloadPdf-BCoq8NLc-6NV7wH9_.js} +1 -1
  209. package/dist/assets/{empty-BxmXnrZk.js → empty-SFYuBxta.js} +1 -1
  210. package/dist/assets/{empty-DnkbAo83.js → empty-VSZPEYlm.js} +1 -1
  211. package/dist/assets/{epic-Bx59pZdn.js → epic-BVf_osK2.js} +2 -2
  212. package/dist/assets/{gift-box-Cmt9OgIZ-B3o5Zg1h.js → gift-box-Cmt9OgIZ-TIfg-5OQ.js} +1 -1
  213. package/dist/assets/{graphic-no-data-l-DU4J8fDt--3ATT7Qt.js → graphic-no-data-l-DU4J8fDt-DuzN_8KG.js} +1 -1
  214. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-XpHCs2R-.js → graphic-no-data-net-burn-l-CzmycA0m-DXtlpj6J.js} +1 -1
  215. package/dist/assets/{handshake-BPg58FML-jt5_DBPg.js → handshake-BPg58FML-CsRg4PlR.js} +1 -1
  216. package/dist/assets/{index-D6Zob7EU.js → index-9kMzLkcy.js} +1 -1
  217. package/dist/assets/{index-B5d0r7Yf.js → index-BoDHThmj.js} +561 -561
  218. package/dist/assets/{index-BVPSEWzG.js → index-C68_2S6E.js} +1 -1
  219. package/dist/assets/{index-DT-1tkPQ.js → index-CznijgRQ.js} +1 -1
  220. package/dist/assets/{index-BlQ_Oyyj.js → index-DUHbU2Cn.js} +1 -1
  221. package/dist/assets/{index-CwVOVIdt.js → index-Do2Bw3DR.js} +1 -1
  222. package/dist/assets/{index-C1nDAmoC.js → index-Ibs5bNMX.js} +1 -1
  223. package/dist/assets/{lexical-zpRxoSKS.js → lexical-WHFPYU-_.js} +1 -1
  224. package/dist/assets/{liveblocks-4VX4OJFQ.js → liveblocks-2fUZ-mzS.js} +1 -1
  225. package/dist/assets/{lottie-C2a9Y5yd.js → lottie-BC5QDLx3.js} +2 -2
  226. package/dist/assets/mapLoadingInProgressToTreeNode-Dgkep7PZ-BYp3zSrW.js +1 -0
  227. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-C6gW1Rqr-BoSMxCv6.js → mapSectionWithAcOnlyToTreeNode-DF-WWO6U-CTOVPeIK.js} +1 -1
  228. package/dist/assets/mapSpacerToTreeNode-CumKhTYV-Dl2RLlwx.js +1 -0
  229. package/dist/assets/mapTimeframeBalancesToTreeNode-BttFKWAb-HZT5Q3k5.js +1 -0
  230. package/dist/assets/{mapTimeframeBalancesToTreeNode-BooGIyls-RwkDj_oc.js → mapTimeframeBalancesToTreeNode-CBfPdKyR-CzUv0SrG.js} +1 -1
  231. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BREIWW8N-D82Zhv2q.js +1 -0
  232. package/dist/assets/{mui-CKwEUYbh.js → mui-DjUnBv6N.js} +1 -1
  233. package/dist/assets/{page-detail-CWX5S47F-BxOlrbPR.js → page-detail-CWX5S47F-BzMdmGGr.js} +1 -1
  234. package/dist/assets/{radio-default-CiSgisfh-D7ndbp4a.js → radio-default-CiSgisfh-BaxkJ2IH.js} +1 -1
  235. package/dist/assets/{react-BuYDTl9N.js → react-C_7-vb8x.js} +1 -1
  236. package/dist/assets/{react-DlvMMjCe.js → react-ClWHGkrF.js} +2 -2
  237. package/dist/assets/{react-DJnrjIDe.js → react-D27rdI1k.js} +1 -1
  238. package/dist/assets/{react-mJ1u5MvS.js → react-DJeKvZ9o.js} +3 -3
  239. package/dist/assets/{react-BHUEll3W.js → react-Duprtjy6.js} +2 -2
  240. package/dist/assets/{react-CJu1cymU.js → react-alWVovel.js} +2 -2
  241. package/dist/assets/{react-C5e0T-7Y.js → react-pGoAOdu_.js} +1 -1
  242. package/dist/assets/{react-CO6rLI-o.js → react-rAAguZrV.js} +2 -2
  243. package/dist/assets/{recharts-BlDkob1i.js → recharts-CFBD4y8X.js} +1 -1
  244. package/dist/assets/{sentry-DzQhN3No.js → sentry-CAa_RBiQ.js} +2 -2
  245. package/dist/assets/{shield-DOlUxcFf-DTDJsrO9.js → shield-DOlUxcFf-DL1rYkPV.js} +1 -1
  246. package/dist/assets/toCOABalancesWithID-v28KjzUb-BufPkuG3.js +1 -0
  247. package/dist/assets/{toChartData-BUhYY9IR-DiW5_axO.js → toChartData-DuH-6FTe-D-qs3n2e.js} +1 -1
  248. package/dist/assets/{transaction-placeholder-CpOwZAMG-C-BUqW8t.js → transaction-placeholder-CpOwZAMG-CmGAjmF0.js} +1 -1
  249. package/dist/assets/{uploadAttachment-D-Lomshq-C_Ew8v0M.js → uploadAttachment-BkoEZkOd-bK4cqD66.js} +1 -1
  250. package/dist/assets/{uploadReceipts-CPw64UYa-Bg2U2LcG.js → uploadReceipts-CPw64UYa-UaFIqgAV.js} +1 -1
  251. package/dist/assets/{url-Wb1ccSRL.js → url-qjSvksOH.js} +1 -1
  252. package/dist/assets/{url-B9MZZX7S.js → url-sgt9CiMb.js} +1 -1
  253. package/dist/assets/{useLongPress-GCK2COYQ-BSW8jE0L.js → useLongPress-GCK2COYQ-BKjrZB1N.js} +1 -1
  254. package/dist/assets/{usp-line-BBd1wKwW-k25tt47-.js → usp-line-BBd1wKwW-DAbeFX6P.js} +1 -1
  255. package/dist/assets/{utils-CKnuWyyl.js → utils-MCudDogO.js} +1 -1
  256. package/dist/assets/{zeni-epic-state-CYBJ9Ksh.js → zeni-epic-state-BO46e_7F.js} +3 -3
  257. package/dist/index.html +1 -1
  258. package/package.json +3 -3
  259. package/dist/assets/AccountInfoPage-D2IedGAy-Cz5TLln_.js +0 -18
  260. package/dist/assets/BillPayApprovalRuleDetailPage-B7z1PKq6-Cf5yYldh.js +0 -27
  261. package/dist/assets/BillPayApprovalRulesPage-Cj55NkSk-CraBsE0m.js +0 -241
  262. package/dist/assets/ChargeCardPromoPage-D_eQ_vXf-DSdm9hEo.js +0 -222
  263. package/dist/assets/CustomerOnboardingContainerPage-CBiHoKP2-B0bStTtk.js +0 -1
  264. package/dist/assets/EntityDetailPage-BnG_PBK5-Nxflpy3T.js +0 -18
  265. package/dist/assets/MagicLinkACHDetailsPage-CKoTuvNz-9gzlzqz1.js +0 -1
  266. package/dist/assets/MagicLinkDomesticWireDetailsPage-Di5hHI_D-lB6fkCG4.js +0 -1
  267. package/dist/assets/MagicLinkInternationalWireDetailsPage-B2izwKNk-B5csZV5I.js +0 -1
  268. package/dist/assets/MailingDetailsSection-BT3SGHhD-B74c5iH6.js +0 -21
  269. package/dist/assets/Preview-Dvnsp7t1.js +0 -1
  270. package/dist/assets/ReimbursementApprovalRuleDetailPage-CHXo51lU-DKyJaU9a.js +0 -32
  271. package/dist/assets/ReimbursementApprovalRulesPage-D7utb8vM-CyER6oRv.js +0 -243
  272. package/dist/assets/SignInScreen-eVmQ-DfD.js +0 -1
  273. package/dist/assets/SpendManagementListViewPage-CURCimXb-CBLs-Eck.js +0 -123
  274. package/dist/assets/SpendManagementPerTabPage-RY3B-92H-0Q1oDPVt.js +0 -785
  275. package/dist/assets/StatementItem-DcPGZchp-CSlg6IgE.js +0 -31
  276. package/dist/assets/TreasuryStatementsPage-rXMNPd2f-DPIn1ORC.js +0 -58
  277. package/dist/assets/VendorACHDetailsPage-B9UpKcN3-C3lYJogA.js +0 -1
  278. package/dist/assets/VendorDomesticWireDetailsPage-CVJAmjuC-DapV1CxI.js +0 -1
  279. package/dist/assets/VendorInternationalWireSwiftDetailsPage-8u1L-aEg-BBNitL_n.js +0 -1
  280. package/dist/assets/mapLoadingInProgressToTreeNode-CUy8c_Sm-9Yp9R5Je.js +0 -1
  281. package/dist/assets/mapSpacerToTreeNode-DqR98mLo-DOVy7yts.js +0 -1
  282. package/dist/assets/mapTimeframeBalancesToTreeNode-BIGZRHHI-CyM2WyTo.js +0 -1
  283. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-lSB04gFW-DIijgkB1.js +0 -1
  284. package/dist/assets/toCOABalancesWithID-CPbzhUua-BBMB5d-t.js +0 -1
@@ -0,0 +1,24 @@
1
+ import{y as O,c as R,d as G,q as M,F as U,a8 as W,aN as X,aG as H,cB as J,V as s,bz as K,ab as Q,aO as Y,o as f}from"./index-BoDHThmj.js";import{a as B}from"./sentry-CAa_RBiQ.js";import{n as b}from"./mui-DjUnBv6N.js";import{b as Z,f as ee,o as L,l as $}from"./FollowStepsSection-9Bp032CO-BrD2qQBR.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a42d300a-cfcb-42ce-aa56-8d5c3c83d7d5",e._sentryDebugIdIdentifier="sentry-dbid-a42d300a-cfcb-42ce-aa56-8d5c3c83d7d5")}catch{}})();const T="reimbursementApprovalRuleDetailPage",k="lowerBound",C="upperBound",v="steps",ae={footerPadding:new O(R[2],R[3])};function Ie({localData:e,approvalUpdateActionType:t,isLowerBoundDisabled:a=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:p,onApprovalRuleDataUpdated:h,onResetClick:N,onSaveRuleClick:j,onSaveRuleSuccess:A}){const E=G(),I=M(),l=U.getLocalizedStrings().commonSetUp.approval,S=U.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,g=te(e,t==="approval_create"&&!a),x=W({mode:"all",reValidateMode:"onChange",defaultValues:g}),c=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(c?.fetchState),{upperBound:P}=g,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:u}=e;let m=n.length>1?n.length-1:0,y=n.length>0?n[m].criteria[0].range.min.amount:0;if(u!=null&&u.type==="approval_update"&&u.data!=null){const{approvalRuleId:i}=u.data;m=n.findIndex(d=>d.approvalRuleId===i),y=m>0?n[m-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{j()}),q=async(i,d)=>{h(d)};return B.useEffect(()=>{const i=x.watch((d,{name:D})=>{if(D!=null&&d!=null){const z=H(d);J(()=>q(D,z))}});return()=>{i.unsubscribe()}}),B.useEffect(()=>{w==="In-Progress"&&c?.fetchState==="Completed"&&A()},[w,c?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:t==="approval_create"?l.newApproval:l.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{p()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ie,{children:s.jsx(Q,{...x,children:s.jsx("form",{id:_(T),onSubmit:V,children:s.jsxs(ne,{children:[s.jsx(Z,{label:{label:o?S.amountPerRemiGreaterLabel:S.amountPerRemiLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:y,validate:i=>a?!0:i!=null&&i>y},isDisabled:a,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:l.upperBoundInfoLabel}}),s.jsx(de,{}),s.jsx(ee,{sectionId:v,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:g[v],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:_(T),primaryBtn:{label:l.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(I)},separatorStyle:{marginRight:f.sp4}})]})}const te=(e,t)=>{const{criteria:a,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[v]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),r??[])??[],[k]:t?void 0:a!=null?a.range.min.amount??0:0,[C]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},le=(e,t,a,r,o)=>o&&o.length>0?o.map((p,h)=>({stepIndex:h,stepType:{selectedOption:p.action,allOptions:$},actors:{allUsers:t,selectedUsers:re(e,p.actors),allNonUsers:r,selectedNonUsers:oe(a,p.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),oe=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),_=e=>`${e}_form`,Se=e=>`${e}`,se=b.div`
2
+ display: flex;
3
+ height: 100%;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ background-color: ${e=>e.theme.colors.grey4};
7
+ `,ie=b.div`
8
+ display: flex;
9
+ flex: 1;
10
+ flex-direction: column;
11
+ min-height: 0;
12
+ `,ne=b.div`
13
+ display: flex;
14
+ flex-direction: column;
15
+ border: 1px solid ${e=>e.theme.colors.grey3};
16
+ box-shadow: ${e=>`${f.sp0} 2px ${f.sp1} ${e.theme.colors.dropShadowNormal}`};
17
+ border-radius: ${f.sp2};
18
+ `,de=b.div`
19
+ display: flex;
20
+ flex: 1;
21
+ background-color: ${e=>e.theme.colors.grey3};
22
+ min-height: 1px;
23
+ max-height: 1px;
24
+ `;export{ae as D,Ie as default,_ as uniqueFormName,Se as uniqueName};
@@ -0,0 +1,237 @@
1
+ import{d as N,q as L,F as v,V as o,bz as E,m as H,aM as S,o as t,y as r,ak as B,aK as z,cm as V,cn as _,co as G,cY as U,c as l,b7 as q,a as P,b6 as F,p as j,cV as J,br as Y,b as K}from"./index-BoDHThmj.js";import{n as i}from"./mui-DjUnBv6N.js";import{a as O}from"./sentry-CAa_RBiQ.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./zeni-epic-state-BO46e_7F.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="c6ff3c1d-3c97-4245-b171-b5e51d69e4bc",e._sentryDebugIdIdentifier="sentry-dbid-c6ff3c1d-3c97-4245-b171-b5e51d69e4bc")}catch{}})();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)},D={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},Q=({showDeleteBtn:e=!1,isLastSection:m=!1,approvalRule:w,onEditRuleClick:b,onDeleteRuleClick:y})=>{const[$,d]=O.useState(!1),a=L(),{range:c}=w.criteria[0],{steps:x,approvalRuleId:u}=w,n=v.getLocalizedStrings().commonSetUp.approval,f=()=>{d(!0)},W={onOkClick:()=>{d(!1),y?.(u)},onCancelClick:()=>{d(!1)}};return o.jsxs(X,{windowSize:a,isLastSection:m,"data-testid":S("approval-rule-section",u),children:[o.jsxs(Z,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(R,{windowSize:a,children:[n.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(R,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:f}):null,o.jsx(de,{onClick:()=>{b(u)},"data-testid":S("edit-approval-rule",u)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:x.length===1,windowSize:a,children:x.map((h,A)=>o.jsxs(re,{isSingleStep:x.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>o.jsxs(C,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(I,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(C,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(I,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),$?o.jsx(V,{titleComponent:o.jsx(G,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(_,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},X=i.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
5
+ margin-bottom: ${e=>e.isLastSection?s.lastWrapperMarginBottom.valuePx(e.windowSize):s.wrapperMarginBottom.valuePx(e.windowSize)};
6
+ .icons {
7
+ display: none;
8
+ }
9
+ &:hover {
10
+ .icons {
11
+ display: flex;
12
+ }
13
+ > div:last-of-type {
14
+ border-color: ${e=>e.theme.colors.primary};
15
+ }
16
+ }
17
+ `,Z=i(q)`
18
+ display: flex;
19
+ position: relative;
20
+ align-items: center;
21
+ justify-content: space-between;
22
+ text-align: center;
23
+ width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
24
+ gap: ${t.sp2};
25
+ `,ee=i.div`
26
+ align-items: center;
27
+ display: flex;
28
+ justify-content: center;
29
+ `,oe=i.div`
30
+ width: ${t.sp8};
31
+ height: 2px;
32
+ background-color: ${e=>e.theme.colors.primary};
33
+ `,k=i.div`
34
+ width: 6px;
35
+ height: 6px;
36
+ border-radius: 3px;
37
+ background-color: ${e=>e.theme.colors.primary};
38
+ `,te=i.div`
39
+ display: flex;
40
+ flex-direction: column;
41
+ align-items: flex-start;
42
+ padding: ${e=>s.ruleWrapperPadding.valuePx(e.windowSize)};
43
+ gap: 10px;
44
+
45
+ width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
46
+ background-color: ${e=>e.theme.colors.grey5};
47
+
48
+ border: 1px solid ${e=>e.theme.colors.grey3};
49
+
50
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1} ${e.theme.colors.dropShadowNormal}`};
51
+ border-radius: ${t.sp2};
52
+
53
+ flex: none;
54
+ order: 1;
55
+ flex-grow: 0;
56
+ justify-content: center;
57
+ box-sizing: border-box;
58
+ position: relative;
59
+ `,ie=i.ul`
60
+ ${e=>`${D.stepper.style(e.windowSize)}`};
61
+ position: relative;
62
+ padding-left: ${t.sp6};
63
+ list-style: none;
64
+ box-sizing: initial;
65
+ margin: 0;
66
+ &::before {
67
+ display: inline-block;
68
+ content: "";
69
+ position: absolute;
70
+ top: ${e=>s.stepperTop.valuePx(e.windowSize)};
71
+ left: ${e=>s.stepperLeft.valuePx(e.windowSize)};
72
+ width: 10px;
73
+ height: ${e=>e.isSingleStep?"0%":"100%"};
74
+ border-left: 2px solid ${e=>e.theme.colors.grey1};
75
+ }
76
+ `,re=i.li`
77
+ position: relative;
78
+ counter-increment: list;
79
+ min-height: ${e=>s.stepperItemMinHeight.valuePx(e.windowSize)};
80
+ display: flex;
81
+ justify-content: flex-start;
82
+ align-items: center;
83
+ padding-left: ${e=>s.stepperItemPaddingLeft.valuePx(e.windowSize)};
84
+ gap: ${t.sp1};
85
+
86
+ > div:last-of-type > span.operator:last-of-type {
87
+ visibility: hidden;
88
+ }
89
+
90
+ &:not(:last-child) {
91
+ padding-bottom: 20px;
92
+ }
93
+
94
+ &::before {
95
+ display: inline-block;
96
+ content: "";
97
+ position: absolute;
98
+ top: ${e=>s.stepperItemTop.valuePx(e.windowSize)};
99
+ left: ${e=>s.stepperItemLeft.valuePx(e.windowSize)};
100
+ height: ${e=>e.isSingleStep?"0%":"100%"};
101
+ width: 10px;
102
+ }
103
+
104
+ &.stepperItem {
105
+ flex-wrap: wrap;
106
+ &::before {
107
+ border-left: 2px solid ${e=>e.theme.colors.grey1};
108
+ }
109
+ &:last-child::before {
110
+ border-left: 2px solid ${e=>e.theme.colors.grey5};
111
+ }
112
+
113
+ &::after {
114
+ content: counter(list);
115
+ position: absolute;
116
+ width: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
117
+ height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
118
+ top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
119
+ left: -${t.sp6};
120
+ ${K.standardMedium.css};
121
+ text-align: center;
122
+ color: ${e=>e.theme.colors.grey1};
123
+ border: 2px solid ${e=>e.theme.colors.grey1};
124
+ background-color: ${e=>e.theme.colors.grey5};
125
+ display: flex;
126
+ justify-content: center;
127
+ align-items: center;
128
+ border-radius: 50%;
129
+ }
130
+ }
131
+ `,le=i.span`
132
+ color: ${j.alertDark};
133
+ `,se=i.span`
134
+ color: ${j.successDark};
135
+ `,T=i.span`
136
+ color: ${e=>e.theme.colors.primary};
137
+ `,ne=i.div`
138
+ display: flex;
139
+ align-items: center;
140
+ gap: ${t.sp2};
141
+ `,ae=i.div`
142
+ display: flex;
143
+ gap: ${t.sp5};
144
+ `,pe=i(J)`
145
+ width: ${t.sp3};
146
+ height: ${t.sp3};
147
+ cursor: pointer;
148
+ color: ${e=>e.theme.colors.hero};
149
+ &:hover {
150
+ color: ${j.important};
151
+ }
152
+ `,de=i(Y)`
153
+ width: ${t.sp3};
154
+ height: ${t.sp3};
155
+ cursor: pointer;
156
+ color: ${e=>e.theme.colors.hero};
157
+ &:hover {
158
+ color: ${e=>e.theme.colors.primary};
159
+ }
160
+ `,ce=i(F)`
161
+ width: ${t.sp4};
162
+ height: ${t.sp4};
163
+ color: ${e=>e.theme.colors.hero};
164
+ `,I=i.span`
165
+ color: ${e=>e.theme.colors.hero};
166
+ `,C=i.div`
167
+ display: inherit;
168
+ gap: inherit;
169
+ `,R=i.span`
170
+ ${e=>`${D.amount.style(e.windowSize)}`};
171
+ color: ${e=>e.theme.colors.primary};
172
+ word-break: break-word;
173
+ `,g={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Ce=({approvalView:e,onBackClick:m,onEditRuleClick:w,onDeleteRuleClick:b})=>{const y=N(),$=L(),{fetchState:d,deleteStatus:a}=e,c=v.getLocalizedStrings().commonSetUp.approval,x=v.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,u=a.fetchState;return o.jsxs(he,{children:[o.jsx(E,{title:c.approvalPageHeader,backgroundColor:y.colors.grey4,style:{zIndex:4},onBackClick:()=>{m()},source:"ReimbursementApprovalRulesPage"}),o.jsxs(me,{children:[o.jsx(ue,{windowSize:$,children:x.approvalPageSubTitle}),d==="In-Progress"||d==="Not-Started"||u==="In-Progress"?o.jsx(we,{children:o.jsx(H,{size:"ExtraLarge",start:!0})}):d==="Completed"?o.jsxs(o.Fragment,{children:[e.allApprovalRules.map((n,f)=>o.jsx(Q,{showDeleteBtn:f!==0,approvalRule:n,isLastSection:f===e.allApprovalRules.length-1,onEditRuleClick:w,onDeleteRuleClick:b},n.approvalRuleId)),o.jsxs(xe,{windowSize:$,onClick:()=>{w()},"data-testid":S("add-approval-rule"),children:[o.jsx(ge,{}),o.jsx($e,{children:c.addApprovalText})]})]}):null]})]})},he=i.div`
174
+ display: flex;
175
+ min-height: 100%;
176
+ flex-direction: column;
177
+ width: 100%;
178
+ background-color: ${e=>e.theme.colors.grey4};
179
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1}
180
+ ${e.theme.colors.dropShadowNormal}`};
181
+ `,me=i.div`
182
+ display: flex;
183
+ justify-content: flex-start;
184
+ height: 100%;
185
+ overflow-y: auto;
186
+ flex-direction: column;
187
+ align-items: center;
188
+ `,we=i.div`
189
+ display: flex;
190
+ width: 100%;
191
+ height: calc(100vh - 110px);
192
+ flex-direction: row;
193
+ justify-content: center;
194
+ align-items: center;
195
+ background-color: ${e=>e.theme.colors.grey4};
196
+ `,ue=i(B)`
197
+ color: ${e=>e.theme.colors.hero};
198
+ display: flex;
199
+ justify-content: center;
200
+ width: ${e=>g.titleWidth.valuePx(e.windowSize)};
201
+ padding-top: ${e=>g.subTitlePaddingTop.valuePx(e.windowSize)};
202
+ padding-bottom: ${e=>g.subTitlePaddingBottom.valuePx(e.windowSize)};
203
+ `,xe=i(B)`
204
+ cursor: pointer;
205
+ display: flex;
206
+ flex-direction: row;
207
+ justify-content: center;
208
+ align-items: center;
209
+ padding: ${t.sp3} ${t.sp4};
210
+ gap: ${e=>g.addApprovalGap.valuePx(e.windowSize)};
211
+
212
+ width: ${e=>g.width.valuePx(e.windowSize)};
213
+ height: ${t.sp8};
214
+
215
+ background: ${e=>e.theme.colors.grey5};
216
+
217
+ border: 1px solid ${e=>e.theme.colors.grey3};
218
+
219
+ box-shadow: ${e=>`${t.sp0} 2px ${t.sp1}
220
+ ${e.theme.colors.dropShadowNormal}`};
221
+ border-radius: ${t.sp2};
222
+ color: ${e=>e.theme.colors.hero};
223
+ box-sizing: border-box;
224
+ &:hover {
225
+ div {
226
+ color: ${e=>e.theme.colors.primary};
227
+ }
228
+ color: ${e=>e.theme.colors.primary};
229
+ border-color: ${e=>e.theme.colors.primary};
230
+ }
231
+ margin-bottom: ${t.sp6};
232
+ `,ge=i(U)`
233
+ width: ${t.sp3};
234
+ height: ${t.sp3};
235
+ `,$e=i.div`
236
+ color: ${e=>e.theme.colors.hero};
237
+ `;export{Ce as default};
@@ -1,4 +1,4 @@
1
- import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-B5d0r7Yf.js";import{a as p}from"./sentry-DzQhN3No.js";import{n as r}from"./mui-CKwEUYbh.js";import{a as ai}from"./liveblocks-4VX4OJFQ.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-CYBJ9Ksh.js";import li from"./InvoiceUploadSection-BvaKEakI-By_ZVvOJ.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-DcqdNo0H.js";import"./lottie-C2a9Y5yd.js";import"./analytics-B5pDs204.js";import"./recharts-BlDkob1i.js";import"./lexical-zpRxoSKS.js";import"./utils-CKnuWyyl.js";import"./AttachmentView-BijZrB02-D9PbSyO-.js";import"./uploadReceipts-CPw64UYa-Bg2U2LcG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="6e2928b0-cf5e-4edf-9023-1c60324c3c83",e._sentryDebugIdIdentifier="sentry-dbid-6e2928b0-cf5e-4edf-9023-1c60324c3c83")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{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:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{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(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.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(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),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,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{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:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),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,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{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(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.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,l.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(w,{label:{label:i.reimbursementType,width:A},text:l.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,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.distanceInMiles,width:A},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},text:l.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:x({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(w,{label:{label:i.merchant,width:A},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.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})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.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(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.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:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{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:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
1
+ import{av as At,a7 as Mt,q as Rt,d as Pt,ca as Bt,y as m,F as Xe,gc as Nt,ge as Lt,gf as _t,V as t,cm as ze,cn as Ae,co as Me,bz as Re,aM as y,bm as Ot,dr as Wt,gg as Et,gr as Pe,o as a,gh as Be,fd as b,gk as w,fg as x,aK as Ne,fc as Le,b as K,gm as _e,aO as Ft,an as Kt,gn as Ut,go as ie,bv as Vt,gp as Gt,L as Yt,a as Ht,B as Jt,ak as et,b7 as tt,p as U,al as qt,bS as Zt,ag as Qt,gI as Xt,gE as ei,c,cf as ti,cT as ii}from"./index-BoDHThmj.js";import{a as p}from"./sentry-CAa_RBiQ.js";import{n as r}from"./mui-DjUnBv6N.js";import{a as ai}from"./liveblocks-2fUZ-mzS.js";import{bL as ri,bP as oi,FB as ni}from"./zeni-epic-state-BO46e_7F.js";import li from"./InvoiceUploadSection-QGU5U32X-Bt28YEXu.js";import{r as si,h as f,u as di}from"./types-DyvtCprH-NFPm5TaG.js";import"./core-DesIUmVX.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./recharts-CFBD4y8X.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";import"./AttachmentView-QyMOK54a-_Wag7_iK.js";import"./uploadReceipts-CPw64UYa-UaFIqgAV.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},C=new e.Error().stack;C&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[C]="7cf4a66c-81c3-45bf-bd33-e817fd549a7f",e._sentryDebugIdIdentifier="sentry-dbid-7cf4a66c-81c3-45bf-bd33-e817fd549a7f")}catch{}})();const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},ci={formTitle:new Ht("h6Regular","h5Regular")},la=({remiDetails:e,uploadInvoiceEndPoint:C,authParams:re,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:it,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:at,onDuplicateLineClick:rt,approveOrRejectRemi:pe,deleteReimbursement:ot,cancelAndDeleteReport:ue,handleZeniLogoClick:nt,onAddNewRule:he})=>{const d=At(),lt=Mt().analytics,o=Rt(),ye=Pt(),[st,z]=p.useState(!1),[G,Y]=p.useState(!1),[dt,H]=p.useState(!1),[J,q]=p.useState("approved"),B=p.useRef(null),[j,Z]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[k,ct]=p.useState(null),[mt,N]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>di(n,B.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const pt=()=>{V()};Bt({componentName:"reimbursement.details"});const ut={onOkClick:()=>{z(!1),j.primaryButtonText===i.buttons.delete?ot?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=s.labelWidth.value(o),A=s.largeLabelWidth.value(o),we=Xe.getLocalizedStrings(),{common:{texts:{comments:ht},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:yt,replyAComment:gt},tooltip:{resolveComment:bt,unResolveComment:wt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:L}=we.spendManagement.reimbursement,Q=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],_=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,W=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=_?.code==="paid",xt=$e?_:O?.code=="approved"&&W?.code?W:O,$=mi(e.remiDetails),M=O?.code=="approved"&&W?.code?W:O,E=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Z({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},ft=()=>{Z({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},$t=()=>{Z({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},je=()=>{at()},vt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},Tt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(q("delete"),Se()):(q("rejected"),H(!0))},jt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ri(oi(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,X=e.remiDetails?.reimbursementInfo.expectedDepositDate??jt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&it&&!It,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=xt?.code,Ct=si(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:F}=p.useContext(Nt),{threads:R,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>R.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[R]).length,zt=p.useCallback((l,n)=>{F(n),N(!1)},[F,N]);p.useEffect(()=>{te?.threadId!=null&&R.length>0&&!D&&(F(te.threadId),Ce(null))},[te,R,D,F,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},P=ni(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(_i,{windowSize:o,ref:B,children:[st?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ut}):null,dt?t.jsx(ze,{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:vt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ai,{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(Mi,{onClick:()=>nt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:B,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Ci,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:Q??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Pi,{children:[u?t.jsxs(Bi,{isDisabled:D,onClick:D?()=>null:l=>{l.preventDefault(),l.stopPropagation(),ct({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),N(!0),lt.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(Ot,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ni,{})]}):null,t.jsx(Li,{size:o,onClick:()=>pt(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ri,{})})]}),scrollableContent:B,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Vi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(Je,{windowsSize:o,children:Q})}),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,M?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E}),P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{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:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null]}):null,S.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Qe,{windowSize:o,children:[t.jsx(Fi,{windowSize:o,children:t.jsx(Ki,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(li,{showAutofill:!1,uploadInvoiceEndPoint:C,authParams:re,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Ei,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(Je,{windowsSize:o,children:Q}),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,M?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:M,createDate:e.remiDetails?.createTime,paymentDate:X,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:E})}):null,P?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:L.duplicateWarning.title,description:L.duplicateWarning.description}):De?t.jsxs(Oe,{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(bi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${l.lineId}`]=ke)},children:[o!=="small"?t.jsx(gi,{children:t.jsx(wi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(xi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(hi,{children:[i.thisExpenseReview," ",t.jsx(yi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&rt(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:l.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,l.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(w,{label:{label:i.reimbursementType,width:A},text:l.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,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.distanceInMiles,width:A},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},text:l.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:x({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(w,{label:{label:i.merchant,width:A},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.transactionDate,width:A},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.amount,width:I},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.memo,width:I},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.category,width:I},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({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(w,{label:{label:i.department,width:I},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Wi,{windowSize:o,children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.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})]})]})]},l.lineId)}),S.length===1&&t.jsxs(Qe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(pi,{windowSize:o,children:[t.jsx(Oi,{windowSize:o,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ze,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ui,{windowSize:o,children:t.jsx(_e,{amount:Te,activities:e.remiActivities,stage:_?.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(Ui,{})]}),$e||E===!0?null:t.jsxs(zi,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx($i,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.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:J==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||J==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:s.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:J==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Tt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(fi,{children:t.jsxs(ki,{windowSize:o,children:[!P&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(Di,{windowSize:o,children:[ee!=="processing"?t.jsx(ae,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(ae,{onClick:ft,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(ae,{onClick:$t,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ii,{windowSize:o,children:[!P&&Ie?t.jsx(ji,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx(Si,{})}):null,!P&&Dt===!0?t.jsx(Ti,{windowSize:o,showEditIcon:Ie,children:t.jsx(vi,{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:mt,allowComposer:!0,drawerTitle:ht,threads:R,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:k?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:k?{companyName:k.companyName,companyId:k.companyId,entityId:k.entityId,entityType:k.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:yt,replyComposerPlaceholder:gt,threadResolve:bt,threadUnResolve:wt},onThreadClick:(l,n)=>zt(l,n),onCloseAllThreadsDrawer:()=>N(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},mi=e=>{const C=Xe.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:C.tabsById.deleted,color:ie.deleted.color,bgColor:ie.deleted.bgColor,borderColor:ie.deleted.borderColor,code:"deleted"}},pi=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-B5d0r7Yf.js";import{a as j}from"./sentry-DzQhN3No.js";import{n as r}from"./mui-CKwEUYbh.js";import{FA as je,bT as be}from"./zeni-epic-state-CYBJ9Ksh.js";import{f as fe}from"./VideoPopup-CfYmxIk4-CtU-zes6.js";import{M as v}from"./usp-line-BBd1wKwW-k25tt47-.js";import"./liveblocks-4VX4OJFQ.js";import"./core-DcqdNo0H.js";import"./recharts-BlDkob1i.js";import"./lottie-C2a9Y5yd.js";import"./analytics-B5pDs204.js";import"./lexical-zpRxoSKS.js";import"./utils-CKnuWyyl.js";import"./VideoPlayer-CN28Ho6V-C9X8iWgG.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="164d5ecb-faca-44c2-9e36-847e6b3fe3ec",i._sentryDebugIdIdentifier="sentry-dbid-164d5ecb-faca-44c2-9e36-847e6b3fe3ec")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
1
+ import{av as ne,d as S,q as k,aN as le,V as e,aM as a,fo as ae,bz as de,n as u,ad as d,F,o as s,ap as ce,D as me,aQ as N,al as pe,y as xe,p as z,cA as he,aR as ue,b8 as ge,c as we}from"./index-BoDHThmj.js";import{a as j}from"./sentry-CAa_RBiQ.js";import{n as r}from"./mui-DjUnBv6N.js";import{FA as je,bT as be}from"./zeni-epic-state-BO46e_7F.js";import{f as fe}from"./VideoPopup-aA7dkXbZ-BQm8xqng.js";import{M as v}from"./usp-line-BBd1wKwW-DAbeFX6P.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";import"./VideoPlayer-C8VeeJIx-Bo3SMitQ.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="55e50090-f5d3-4722-96d6-b7ec1d8bcd65",i._sentryDebugIdIdentifier="sentry-dbid-55e50090-f5d3-4722-96d6-b7ec1d8bcd65")}catch{}})();const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",E="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",ye={midContainerMarginBottom:new xe(we[5],44)},$e=r.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-B5d0r7Yf.js";import{a as o}from"./sentry-DzQhN3No.js";import{n as i}from"./mui-CKwEUYbh.js";import{bJ as mt}from"./zeni-epic-state-CYBJ9Ksh.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-jNiTn6qG-CyN0ip8w.js";import"./liveblocks-4VX4OJFQ.js";import"./core-DcqdNo0H.js";import"./recharts-BlDkob1i.js";import"./lottie-C2a9Y5yd.js";import"./analytics-B5pDs204.js";import"./lexical-zpRxoSKS.js";import"./utils-CKnuWyyl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="ebd5355a-64d4-4c2d-b688-42288dff51aa",e._sentryDebugIdIdentifier="sentry-dbid-ebd5355a-64d4-4c2d-b688-42288dff51aa")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:w}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(wt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),w!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:w.name,textColor:$e(w.code)}):null]}),t.jsxs(bt,{children:[w!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:w.name,textColor:$e(w.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
1
+ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as Je,p as J,y as s,bz as Ze,m as Ye,ab as Ke,fp as ve,dM as Xe,fq as Qe,bu as et,dC as tt,aO as it,o as a,fs as nt,c as n,cf as ot,cO as at,cW as lt,fB as ke,fC as $e,gb as st,n as rt,aM as Pe,a as Ae,bJ as dt,ag as ct,br as ut}from"./index-BoDHThmj.js";import{a as o}from"./sentry-CAa_RBiQ.js";import{n as i}from"./mui-DjUnBv6N.js";import{bJ as mt}from"./zeni-epic-state-BO46e_7F.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-C2kqDNTp-CLCo9ZjN.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="39009426-4731-46e9-90a3-0af9ef891d3f",e._sentryDebugIdIdentifier="sentry-dbid-39009426-4731-46e9-90a3-0af9ef891d3f")}catch{}})();const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new s(343,580,726),iconContainerMaxWidthHeight:new s(n[6],n[7]),iconContainerMarginRight:new s(12,n[3]),infoLabelPaddingLeft:new s(n[0],n[3]),iconPadding:new s(10,12),iconWidthHeight:new s(20,n[4]),rowGap:new s(n[2],n[3]),containerPadding:new s(n[3],n[4])},ge={title:new Ae("standardSemiBold","largeSemiBold"),infoLabel:new Ae("extraSmallRegular","smallRegular")};function ft({companyMileageConfigInfo:e,mileageDetails:p,analytics:$,style:j,sectionId:P,isActive:c=!0,isDisabled:r,onSaveMileageClick:Z}){const l=Ie(),D=Ee(),{formState:{errors:Y},trigger:K}=at(),E=ht(P,"mileageAmountInDenomination"),x=lt(Y,E),{localData:d,updateStatus:F,mileageStatus:b}=p,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==d?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Te.getLocalizedStrings(),{reimbursement:ee}=Q,[S,I]=o.useState(U),[te,W]=o.useState(!1);o.useEffect(()=>{x||K(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===d?.mileageAmountInDenomination&&I(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||W(S)},[S]);const{reimbursementSetup:y}=ee,{setUp:ie}=X,ne=S===!1||F.fetchState==="In-Progress"?"readonly":r,oe=d&&d?.denominationSymbol?`${d?.denominationSymbol} `:"",ae=d&&d?.mileageUnit?d?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:j,isActive:c&&r==null,children:[t.jsxs(Pt,{windowSize:l,children:[y.mileageHeader,c===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(yt,{children:[t.jsxs($t,{children:[t.jsxs(At,{children:[t.jsxs(jt,{children:[t.jsx(bt,{windowSize:l,children:e?.denominationConversions.amount==null?y.mileageAddTitle:y.mileageEditTitle}),t.jsx(St,{children:y.mileageSubTitle})]}),b!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ke,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:b.name,textColor:$e(b.code)}):null]}),t.jsxs(wt,{children:[b!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ke,{style:{width:"max-content"},tagTitle:b.name,textColor:$e(b.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Et,{children:[t.jsxs(It,{children:[t.jsx(st,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:S||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:d?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${y.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||r!=null,required:r==null},isDisabled:ne}),t.jsx(Vt,{children:S?t.jsx(rt,{label:y.save,"data-testid":Pe("save-mileage"),onClick:()=>{d?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(d.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:r!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:r,"data-testid":Pe("edit-mileage"),onClick:T=>{T.stopPropagation(),I(!0),W(!0),$.trackReimbursementMileageRateEdit()}})})]}),d?.description!=null?t.jsx(Tt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?y.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):d.description}):null]})]})]})]})}const ht=(e,p)=>`${e}.${p}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -9,9 +9,9 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
9
9
  width: 100%;
10
10
  flex-direction: column;
11
11
  justify-content: flex-start;
12
- `,bt=i.div`
13
- display: flex;
14
12
  `,wt=i.div`
13
+ display: flex;
14
+ `,bt=i.div`
15
15
  ${e=>`${ge.title.style(e.windowSize)}`};
16
16
  color: ${e=>e.isError===!0?J.important:e.theme.colors.primary};
17
17
  `,St=i(ct)`
@@ -103,7 +103,7 @@ import{d as Ee,q as Ie,aN as N,a8 as qe,cB as Ge,F as Te,aS as Ce,V as t,f6 as J
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:c,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onEstablishConnectionSuccess:F,updateMileageDetails:w,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ie(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Me,companyBillPayInfo:he,mileageRateConfig:ze,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),be=N(se.fetchState),we=N(re.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||be==="In-Progress"&&se.fetchState==="Completed"||we==="In-Progress"&&re.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,be,se.fetchState,we,re.fetchState]);const Ue=M.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),We=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const b=fe.find(me=>me.id===m.fundingAccount.selectedOption);b!=null&&X(m.fundingAccount.selectedOption,b.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.zeniAccountId!=m.account.selectedOption){const b=m.account.allOptions.find(me=>me.value===m.account.selectedOption);b!=null&&typeof b.label=="string"&&l.trackConnectBankLink(b.value,b.label,"reimbursement"),U(m.account.selectedOption,C.id,C.accType)}}else if(A.includes(G)){const b=R[G];w(b)}};o.useEffect(()=>{const A=M.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&I()},[I,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:z}=Be,{setUp:k}=Se,de=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,ce=Me?.isReimbursementEnabled===!0,Oe=de?Se.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Ce(H.colors.brandColorJadeLight):new Ce(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(Mt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:c,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!ce&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,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(Ke,{...M,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{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:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),de&&!ce&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:de&&!ce,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Mt=i.div`
106
+ `,g={titleWidth:new s(343,580,726,826),setupDetailsRowGap:new s(12,n[5],n[5]),sectionRowGap:new s(n[5],n[9],n[9]),lastSectionPaddingBottom:new s(n[7],n[10],n[10]),iconWidthHeight:new s(20,n[4]),subTitlePaddingTop:new s(12,n[3]),subTitlePaddingBottom:new s(n[3],n[3]),overlayWidth:new s(100,100,59)},je="remiSetupPage",q="remiAccount",G="remiMileage",Xt=({remiSetupView:e,isDisabled:p,remiApprovalView:$,connectedAccountProvider:j,isAccountsEnabled:P,filesEndPoint:c,authParams:r,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:Y,onBusinessVerificationSectionClick:K,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onEstablishConnectionSuccess:F,updateMileageDetails:b,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:X,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:S,onEnableRemiSuccess:I,onSaveMileageClick:te,onClickMenuIcon:W,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const H=Ee(),u=Ie(),[B,V]=o.useState(!1),{fetchState:v,primaryFundingAccount:C,allFundingAccounts:fe,updateStatus:L,accountUpdateStatus:Ve,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:Me,companyBillPayInfo:he,mileageRateConfig:ze,isRefreshingViewInBackground:Re,selectedCompanyOfficer:f}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Fe}=$,se=le.link_account.updateStatus,re=le.update_account.updateStatus,_=N(v),ye=N(L.fetchState),we=N(se.fetchState),be=N(re.fetchState),M=qe({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"&&V(!0),B&&_==="In-Progress"&&v==="Completed"&&V(!1)},[f,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||we==="In-Progress"&&se.fetchState==="Completed"||be==="In-Progress"&&re.fetchState==="Completed")&&M.reset(pe(e))},[_,v,M,e,we,se.fetchState,be,re.fetchState]);const Ue=M.handleSubmit(A=>{l.trackEnableReimbursement(),S()}),We=async(A,R)=>{const m=R[q];if(A.includes(q)){if(A.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&C?.id!=m.fundingAccount.selectedOption){const w=fe.find(me=>me.id===m.fundingAccount.selectedOption);w!=null&&X(m.fundingAccount.selectedOption,w.accType)}}else if(m.account.selectedOption!=null&&C?.id!=null&&C?.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,C.id,C.accType)}}else if(A.includes(G)){const w=R[G];b(w)}};o.useEffect(()=>{const A=M.watch((R,{name:m})=>{m!=null&&R!=null&&Ge(()=>We(m,R))});return()=>{A.unsubscribe()}}),o.useEffect(()=>{ye==="In-Progress"&&L.fetchState==="Completed"&&I()},[I,ye,L.fetchState]);const{commonSetUp:Se,spendManagement:He}=Te.getLocalizedStrings(),{reimbursement:Be}=He,{reimbursementSetup:z}=Be,{setUp:k}=Se,de=he?.isBusinessVerified===!0&&(C?.accType==="depositAccount"||mt(C?.providerVerificationStatus?.code??""))&&ze?.denominationConversions.amount!=null,ce=Me?.isReimbursementEnabled===!0,Oe=de?Se.setUp.setupVerifiedSubTitle:z.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=H.mode==="light"?new Ce(H.colors.brandColorJadeLight):new Ce(H.colors.brandColorJadeDark),Ne=()=>{!B&&f?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&f.areAdditionalDocumentsRequestedForVerification&&!f.areAdditionalDocumentsSubmittedForVerification&&f.userVerificationStatus?.code==="require_info"?V(!0):K?.()};return t.jsxs(Mt,{children:[t.jsx(Je,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>V(!1),style:{backgroundColor:J.drawerBackground},transitionDuration:250,children:t.jsx(pt,{authParams:r,filesEndPoint:c,updateStatus:L,onEditFileName:y,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:f,onClose:()=>V(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:z.setupTitle,backgroundColor:H.colors.grey4,style:{zIndex:3},onBackClick:Y,showMenuIcon:!ce&&(u==="medium-compact"||u==="small"),onClickMenuIcon:W,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(Ke,{...M,children:t.jsx("form",{id:De(je),onSubmit:Ue,children:t.jsxs(Ut,{windowSize:u,children:[t.jsx(ve,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:he?.businessVerificationStatus,isTagLoading:Re}),t.jsx(Qe,{connectedAccountProvider:j,primaryFundingAccount:C,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:fe,sectionId:q,isDisabled:p,onFetchLinkTokenClick:x,onEstablishConnectionClick:d,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:F,icon:{element:t.jsx(et,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:P,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(ft,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:G,onSaveMileageClick:te,analytics:l}),t.jsx(ve,{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:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Fe:void 0})]})})})]}),de&&!ce&&O.length>0?t.jsx(it,{formId:De(je),primaryBtn:{label:z.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ve.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:z.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(nt,{isFooterRendered:de&&!ce,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Mt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -1 +1 @@
1
- import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-B5d0r7Yf.js";import{a as b}from"./sentry-DzQhN3No.js";import{G5 as K}from"./zeni-epic-state-CYBJ9Ksh.js";import{u as Q}from"./ReviewOverlay-DQZwNpFY-BpRxW5CE.js";import"./liveblocks-4VX4OJFQ.js";import"./core-DcqdNo0H.js";import"./recharts-BlDkob1i.js";import"./mui-CKwEUYbh.js";import"./lottie-C2a9Y5yd.js";import"./analytics-B5pDs204.js";import"./lexical-zpRxoSKS.js";import"./utils-CKnuWyyl.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c590fa1c-2a5f-4fe0-b892-6920d1985ac4",e._sentryDebugIdIdentifier="sentry-dbid-c590fa1c-2a5f-4fe0-b892-6920d1985ac4")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[m,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===m.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[m.length,B,h,e.fetchState,v,e,o]);const D=m.length,S=m.filter(d=>d.reviewStatus.code!=="error").length,E=()=>{const{title:d,description:C}=Y(S);A({type:"reject",title:d,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:d=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",d)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let d=a.footer.approve;return T?d=a.texts.close:t==="send_for_approval"&&(d=a.footer.submit),{label:d,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let m="",_="";return e==="Completed"&&!u?(m=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(m=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{ce as default};
1
+ import{V as f,cm as O,cn as M,co as q,k1 as W,aV as z,F as G}from"./index-BoDHThmj.js";import{a as b}from"./sentry-CAa_RBiQ.js";import{G5 as K}from"./zeni-epic-state-BO46e_7F.js";import{u as Q}from"./ReviewOverlay-Bh8LAnRM-CyjKd25e.js";import"./liveblocks-2fUZ-mzS.js";import"./core-DesIUmVX.js";import"./recharts-CFBD4y8X.js";import"./mui-DjUnBv6N.js";import"./lottie-BC5QDLx3.js";import"./analytics-aL6KvWIc.js";import"./lexical-WHFPYU-_.js";import"./utils-MCudDogO.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="325f220d-e6bf-416d-9794-b169934bd99d",e._sentryDebugIdIdentifier="sentry-dbid-325f220d-e6bf-416d-9794-b169934bd99d")}catch{}})();const{common:a,spendManagement:{reimbursement:k}}=G.getLocalizedStrings(),s=k.bulkActions;let j;const ce=({remisReviewView:e,isAdmin:o,analytics:i,onProceedForBulkActionClick:u,onCloseReviewItem:r,onCloseOverlay:n})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:g,currentSubTab:y}=e,v=!1,[x,l]=b.useState(!1),[d,_]=b.useState(P(e,v,o)),[h,R]=b.useState(v),[B,H]=b.useState(0),[w,A]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(B===d.length&&h&&(R(!1),clearInterval(j)),e.fetchState==="Completed"&&_(P(e,!1,o)),()=>{clearInterval(j)}),[d.length,B,h,e.fetchState,v,e,o]);const D=d.length,S=d.filter(m=>m.reviewStatus.code!=="error").length,E=()=>{const{title:m,description:C}=Y(S);A({type:"reject",title:m,description:C,primaryButtonText:a.texts.confirm,secondaryButtonText:a.texts.close}),i.trackReimbursementBulkSubmit(t,g,y),l(!0)},F={onOkClick:m=>{l(!1);const C=e.remisForReview.map(I=>I.reimbursement);i.trackReimbursementBulkPopupConfirm(t,g,y,K(C.map(I=>I?.reimbursementTypesIncluded??[]))),u("reject",m)},onCancelClick:()=>{l(!1)}},{title:$,description:L}=Z(p,S,D,h),T=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,g,y),u(t)},V=()=>{let m=a.footer.approve;return T?m=a.texts.close:t==="send_for_approval"&&(m=a.footer.submit),{label:m,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:T?n:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?a.texts.goBack:a.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?n:E,style:t==="approve"?{minWidth:"92px"}:{}};return f.jsxs(f.Fragment,{children:[x?f.jsx(O,{titleComponent:f.jsx(q,{children:w.title}),descriptionComponent:f.jsx(M,{children:w.description}),primaryButtonText:w.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:w.secondaryButtonText,action:F,isNotesIncluded:!0,isEditPopup:!0}):null,f.jsx(Q,{title:$,description:{content:L,isError:e.fetchState==="Completed"&&S===0},reviewItems:d,onCloseReviewItem:r,onCloseOverlay:n,showFooter:e.fetchState==="Completed"&&!h,footerProps:{primaryButton:V(),cancelButton:N,hideCancel:T}})]})},P=(e,o,i)=>{const u=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const n=W(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:n!=null?`${a.by} ${n?.firstName} ${n?.lastName}`:a.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:u,code:r.reviewStatus??""}}})},Y=e=>{const{this_:o,these:i,report:u,reports:r,payment:n,payments:p}=a.texts;return e>1?{title:s.popUps.reject.title.replace("__report__",s.reports),description:s.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:s.popUps.reject.title.replace("__report__",s.report),description:s.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",n).replaceAll("__report__",u)}},Z=(e,o,i,u)=>{const{has:r,have:n,report:p,reports:c,are:t,is:g,do_:y,does:v}=a.texts,x=o>1,l=i>1;let d="",_="";return e==="Completed"&&!u?(d=s.reviewPage.reportsReviewed.title.replace("__report__",l?k.bulkActions.reports:s.report).replace("<_has_>",l?n:r),o===0?_=s.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?y:v):_=`${o}/${i} ${s.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",x?t:g)}`):(d=s.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=s.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:d,description:_}};export{ce as default};
@@ -1,4 +1,4 @@
1
- import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-B5d0r7Yf.js";import{n as d}from"./mui-CKwEUYbh.js";import{a as s}from"./sentry-DzQhN3No.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
1
+ import{d as l,V as r,aJ as a,b0 as f,F as y,aM as m,aP as h,bB as g,ag as u,o as c,b1 as w}from"./index-BoDHThmj.js";import{n as d}from"./mui-DjUnBv6N.js";import{a as s}from"./sentry-CAa_RBiQ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="1e034b64-978b-4e67-a75e-11f25cdc6871",e._sentryDebugIdIdentifier="sentry-dbid-1e034b64-978b-4e67-a75e-11f25cdc6871")}catch{}})();function b({backgroundColor:e,foregroundColor:o,animated:t,width:n,height:i}){return r.jsxs(g,{speed:2,width:n,height:i,viewBox:`0 0 ${n} ${i}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${n-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${n-48}`,height:"228"})]})}function p({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(g,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const x=d(h)`
2
2
  justify-content: flex-start;
3
3
  `;function T({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function D({dimension:e,animated:o}){const t=l();return r.jsx(a,{dimension:e,children:r.jsx(x,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(w,{children:({height:n,width:i})=>r.jsx(b,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:i,height:n})})})})})}const j=e=>s.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),s.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),C=d(h)`
4
4
  justify-content: space-between;