@zeniai/web-cockpit-ui 1.13.94-dev → 1.13.95-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/assets/{ACHDetailsPage-C77hriAS-Bp9UERQr.js → ACHDetailsPage-CTeCxcke-DEZ1DdXH.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DWLZz5fl-xe6YeuvR.js → AIPerformancePage-DHndW6Jx-BmfxnNcs.js} +16 -16
  3. package/dist/assets/{AccountInfoPage-CHH8xpX7-OTuTPmWc.js → AccountInfoPage-DX6r16Bm-C_0exxSE.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CslCCxyA-CKIHtSb5.js → AccountInfoPageContent-DuUO6Fmo-ChKBTH6K.js} +7 -7
  5. package/dist/assets/{AccountReconDetailsDrawerPage-Bg65723V-z_C0MUXO.js → AccountReconDetailsDrawerPage-XjxpxHaM-BlVBZ7kJ.js} +1 -1
  6. package/dist/assets/{AccountRow-CBhTc-CO-BhHbolQV.js → AccountRow-BUDNnxLp-lnjPiXai.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-C1FN6ldb-CTHlY162.js → AccountsPromoCardStack-BkYuVRiC-CxxRy5F_.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-DKbwVrFG-IuCuUpQj.js → AddAddressForCardDrawer-CaKymF5H-Dj9EwadM.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-BLH7hMIs-p7f4w_jj.js → AddToWalletPage-CO_ranRc-Y0gvdbgy.js} +9 -9
  10. package/dist/assets/{AgingReportsPage-iXp5N9xa-BuwByTSa.js → AgingReportsPage-CmvGohzQ-CnwGJP78.js} +4 -4
  11. package/dist/assets/{AllUserItems-SiwAGR6X-CB3qDmMz.js → AllUserItems-Bcd_lx2s-D5cL7TJF.js} +5 -5
  12. package/dist/assets/{ApAgingDetailPage-CSv-Yx3u-CQfdnkLR.js → ApAgingDetailPage-B6h9L4qX-C7HrCT0Q.js} +2 -2
  13. package/dist/assets/{AppBasePage-BVhJh2iM-DhwgHBUl.js → AppBasePage-bPmQIx1U-LDUbxoeo.js} +1 -1
  14. package/dist/assets/{AppDrawerContent-TBHNokFo-a7xFQjLd.js → AppDrawerContent-D4e_1ju1-Dhj_wy1v.js} +1 -1
  15. package/dist/assets/{ApprovalRulesSettingsPage-DmPsbDZd-DdnQZTKs.js → ApprovalRulesSettingsPage-D7d0RwUR-D1d_wH6A.js} +1 -1
  16. package/dist/assets/{ArAgingChart-CPyAljB5-C1xslsyT.js → ArAgingChart-CfBXj53W-SUndSl9y.js} +7 -7
  17. package/dist/assets/{ArAgingDetailPage-BLc5FDm2-BOdfR_tV.js → ArAgingDetailPage-D-HZa9vX-DvZl4P3_.js} +1 -1
  18. package/dist/assets/{AttachmentView-sMKTopf8-CQuqGqLW.js → AttachmentView-BF2v7v3I-BI4HJynu.js} +1 -1
  19. package/dist/assets/{BankAccountSection-DoGfRREZ-B2ezqzYk.js → BankAccountSection-Cm_J2y31-CDMRL_3y.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-BhSSRCzK-DNfJcwlK.js → BankAccountWarningSection-BnsmtuKk-DP1_s4k_.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-DIKMwQoQ-OeAXgZvH.js → BankConnectionsSettingsPage-BawBUQ6M-CMfekVh9.js} +22 -22
  22. package/dist/assets/{BillDetailPage-DSYeib0o-BwJVgfN9.js → BillDetailPage-DFHM1n3a-CZEScqpR.js} +5 -5
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-DDFr9CL_-CYlqmWUc.js → BillPayApprovalRuleDetailPage-PGRG0N6y-BxcnUNyI.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-3Yak-MB--CaAqhGEn.js → BillPayApprovalRulesPage-ByawtRCM-DDp-vV61.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-nRvSJMZU-aGHL9LIB.js → BillPayPromoPage-BvA5aJV2-CaYtY57T.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-BWrp4v6b-DQFkIYKy.js → BillPaySetUpPage-D4dtDoPF-pJA12_gD.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-DtBZmdxq-BCytA-g_.js → BillingSettingsPage-C0c3igP5-ap-9LOcf.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-DCz41OgH-BEoVAqH0.js → BillsBulkReviewDrawerPage-ChobILB2-GJEoEUgd.js} +1 -1
  29. package/dist/assets/{BoxItem-DBi8kqn3-BDAOAuEh.js → BoxItem-qV71vsVl-DibKZa0V.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-BfPqcCH3-Dr7d8VRo.js → BusinessVerificationPage-CYL-J6jv-Dor_XGL3.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-CkmaTF_l-Kwic4R2k.js → CardNumberSubText-BkMaMdcB-ChxBB6AF.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-BlcEXdet-B9yAfRkP.js → CashbackDetailPage-Bkvu7uCA-BYpe0YrA.js} +9 -9
  33. package/dist/assets/{ChargeCardDetailPage-BARovLsv-j69HZx4R.js → ChargeCardDetailPage-B8JhA6aM-0cEMZGgL.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-C1XbbZJ2-BE2YBCij.js → ChargeCardListPage-DayFsVdx-7umY7GOL.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-HXAc8Lqx-wKEbgM6d.js → ChargeCardListTable-Ck15ShIF-B2Jd56oy.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-B8aTlJ8l-5K-z8G1R.js → ChargeCardPromoPage-ZvHc9uZ8-BCAw2lta.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-XI-WplXI-vUgUcPsh.js → ChargeCardSetupPage-QROShfxq-C4kf_hhx.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-CYopWAg4-fr_o5tML.js → ChargeCardStatementsPage-DlFimewo-dsUOLazz.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-BEtXxds6-iY4L_brM.js → ChargeCardUtils-Buf1Xa4X-CfiY3Rp3.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-BySoceqB-DYKQzq4d.js → ChaseOverlay-Cp5-sc7K-q-w46Qrq.js} +2 -2
  41. package/dist/assets/CheckDepositDrawerPage-ClJh5smc-CaqzSYGu.js +206 -0
  42. package/dist/assets/CollapsableReportTable-CKu2AawV-BR9Jh8-F.js +2932 -0
  43. package/dist/assets/{CompanyOfficerDetailsSection-QQIIHW41-xH4MKkl5.js → CompanyOfficerDetailsSection-CHi8zT6M-2vvUSfpo.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-D2b6Ztes-ot6tMI66.js → CompanyPassportCard-DW8AIAcy-ChQaVIG_.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-Bkd2l8Xj-psAfEsoz.js → CompanyPassportPage-CG1U8xfQ-z31zr_09.js} +1 -1
  46. package/dist/assets/{CompleteProfile-DYv1reCa-3AIo6bvw.js → CompleteProfile-Lnfcm8Mq-A9UckRww.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-CDUVssuw-hjqW22eh.js → ConfettiBurst-Ca6cfnuf-0CP5GWxx.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-mlx8B4Jv-DUHw5PtN.js → CreateOrEditVendorPage-BuBYOkXS-C5Z5SPL2.js} +5 -5
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DBTT4Ptu-Dc8GvYzf.js → CreditCardPaymentDrawerPage-8d6cEGBi-DeW_T_vn.js} +6 -6
  50. package/dist/assets/{CreditCardPaymentPlgSection-CH8Ic2sK-CXQECn24.js → CreditCardPaymentPlgSection-B9DUkdWm-rJN3aibi.js} +5 -5
  51. package/dist/assets/{CurrencySelectField-BpuAi_Wp-COgh-Qif.js → CurrencySelectField-BUtL_oMC-vjfdBgAC.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-CJn_cLk6-D6OFbgAy.js → CustomerOnboardingActivationPage-BZIt8djd-6s7QTCQc.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DLE82ybr-CRS91glj.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Cr10sdrX-B55KDkTQ.js → CustomerOnboardingDetailPageSkeleton-n8n9mzuh-1Pj7fv61.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-9Jl0VpUx-BiS5ICyP.js → CustomerOnboardingNoStepsPage-f_PloOrf-B7YeJUhG.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-OCG7AjuD-DJnYkmg8.js → CustomerOnboardingPage-B_vGVChf-BBpgC_P8.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-vXKRghjP-hldhfPSg.js → CustomerOnboardingProductSuitePage-hXloSEH1-tV_sIlVM.js} +1 -1
  58. package/dist/assets/{Dashboard-BOJNXopc-byUhih3W.js → Dashboard-DN58fmab-BSfq0dju.js} +1 -1
  59. package/dist/assets/DashboardReportPage-DIx6h5UA-DE9i6tXD.js +370 -0
  60. package/dist/assets/{DepositAccTransactionItem-BVGKoyyZ-CtkDwopW.js → DepositAccTransactionItem-DNv9nV2t-sabH0i0g.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-kkdrU5Mo-3snjZA89.js → DepositAccTransactionListPage-CWEabc_8-D6J4mdt4.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-C_LxmFZ8-Bt6Lz_p3.js → DocumentSecurityBanner-B6VGrs_d-jwQl4fBm.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-BhE0GcbL-CklyzXqp.js → DomesticWireDetailsPage-BYIbT0cd-MsB82_Nr.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-LH6MXphu-kt8sJEjY.js → DownloadOverlay-RhRX-Goq-0pJzo8tq.js} +1 -1
  65. package/dist/assets/{DrawerPage-C3wbST4Q-CLJNN7bG.js → DrawerPage-C01myF5D-L_T-Mi_O.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-C53vRVhe-BSK-mQZ3.js → EditPeoplePage-BMm08q5E-B2z1Cy4i.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-BBQIYJrj-a2qRFgyX.js → EditReimbursementDetailPage-C5FnQpPh-sK_g6wjY.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-Ba0fzVNR-DpkKGCO_.js → EntityDetailPage-BkpeRVR1-B6XILqHa.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-DA6Vsjwj-DPw5fEaJ.js → EntitySummarySection-DpxcfRng-Umu6Fw_D.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-glEgQT6c-Dj_Wb6rt.js → ExpenseAutomationOverviewPage-BJ1ba0Oz-BAbt9eHm.js} +3 -3
  71. package/dist/assets/{ExpenseAutomationPage-CsJiE1ap-BnkOrNDa.js → ExpenseAutomationPage-C7GKFlgt-B1fB3w-U.js} +3 -3
  72. package/dist/assets/{ExpressPayPage-i9LGeqy_-wmqq-4AX.js → ExpressPayPage-pgy9CEaP-C4tOK1_E.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-Bl2C_tQd-DJQ0amFl.js → FeaturePreviewPage-Bpnn3Eao-DWGadm42.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-KcgZahKS-BPKITv3B.js → FollowStepsSection-D4Do4Mtd-Bgez_ajJ.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-D2NH1omi-CTNsB5Nb.js → GlobalReviewListPage-D_50hOfK-D74gQQCX.js} +8 -8
  76. package/dist/assets/{HelpButton-YqQNv-UM-CruBHlAV.js → HelpButton-BBLa-U8R-5BfdLJDT.js} +1 -1
  77. package/dist/assets/{InformationCardStack-OhjUoNBj-DBwYrPQy.js → InformationCardStack-CNCEEO1z-BPT-WizN.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-CDrOBeoJ-DTHqugyU.js → InsightsCardStack-BangbyzX-C-dfE00z.js} +1 -1
  79. package/dist/assets/{InsightsSection-CBaItqYN-Dz4Ilz30.js → InsightsSection-DNfDisn9-CMHRFpDc.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-CuPS5otW-BirDKZz3.js → IntegrationsSettingsPage-ColuS6Tk-CdBeqhKb.js} +2 -2
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DQsW7Uzb-CUGMa7hJ.js → InternationalWireSwiftDetailsPage-BG4x1tCL-5AAkqkwh.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BE1xcmQo-s1fsXNah.js → InternationalWireVerificationPage-B22ThS6Q-B85Ehc7_.js} +1 -1
  83. package/dist/assets/{InviteFormPage-CUDsc0Y3-BT3er91i.js → InviteFormPage-Cixm85d1-N6lcykk5.js} +15 -15
  84. package/dist/assets/{InvitePageListView-DJildrs1-BRenHpuK.js → InvitePageListView-DBcwM1lk-DLgO5vEV.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-6upCRZjT-Cy37Dy58.js → InvitePeoplePage-DIq28HlK-DxgsZvQF.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-CyacFv78-bjw3W0fU.js → InvoiceUploadSection-D5vmrKLq-CaJvqPBS.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-6iTrYJEM-BjNouHGB.js → IssueChargeCardPage-DjW6ZTWB-DVAoNzJY.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-CDy1Q4J--CkXQxeFy.js → LabeledAddressValue-CDidTB7_-BYCZE34N.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-DbR_ehJJ-kXFBzBc8.js → LabeledAddressValueField-CVVc36IB-mrR3y5nG.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-CXNDX5oe-Cc00saAR.js → LabeledControlledCheckBoxField-CGN805d2-BvA9NcSn.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-B_TreAUT-DzJBfD6q.js → LabeledCreatableSingleSelectField-PunIRbD6-DSy2bCTv.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-CUTXDuQL-CB7-inDg.js → LabeledDocumentField-DgGIyJH_-hDHBkxrT.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-yPu_zrn8-f9OAJ2TU.js → LabeledDropDownFormattedTextField-BDVtmFqG-j2xXgXWn.js} +1 -1
  94. package/dist/assets/{LabeledText-gvxUV2ku-Cf06N418.js → LabeledText-BW7VKf6E-PGkPpMVO.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-Bh1Ts3Yn-DTgSGsxS.js → LabeledUserSingleSelectWithSubtitlesField-Cmc8qo-r-M7EEhfxE.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-xA0_8wFb-Dd3nBqBN.js → LabeledZeniRolesDropDownField-Cl6BAapU-DdwZAoZU.js} +9 -9
  97. package/dist/assets/{LinkJETransactionPage-f4-YwvQe-D8ooeWsr.js → LinkJETransactionPage-CtYsRhte-gAytw1dS.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-C7oCDqcx-2Rje4uhG.js → LowBalancePopup-C_c9t4ho-r8GHfwbA.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-Bqe3RDsV-CZa4p9hj.js → MagicLinkACHDetailsPage-KZmNuH71-eLFzvgps.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DPU-8FAH-CSBTwaek.js → MagicLinkDomesticWireDetailsPage-DCkibDQs-DjBoqAab.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DeXZfP0h-D3k-uGEY.js → MagicLinkInternationalWireDetailsPage-CR1BJE-p-BVc964tl.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-CArToNjz-DqyiFP-T.js → MagicLinkSuccessPage-D9VscY-N-BvVpg8o7.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CP0OhLNZ-BeBei-_2.js → MagicLinkTitleSection-DwxRtyUO-Dj3CNxLB.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-TgN7VRhK-CYe74YT_.js → MailingDetailsSection-B3AtsI4y-Cg3vKD8Z.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js → MeetingCalenderPopup-5ibEhgcm-p1sBC8Am.js} +1 -1
  106. package/dist/assets/{Menu-DNn9-W-C-DaYpba-h.js → Menu-B3jEZq8P-CBWyxFfA.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-TawXQ1Zb-BllmvVI4.js → MyBankConnectionsSettingsPage-BLqGgTGR-DFR7-MdN.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CPgV9E8n-BAkl0Cop.js → MyPendingActivationChargeCardListPage-GXGFSZqe-DQBMtuje.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DuXTV0pM-5CplCRBg.js → MyProfileSettingsPage-CwBD0rUF-Bso1ueKy.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-Cdali7jG-B142_aE-.js → NavBarWithPicker-wTsy1SAG-B0aq1ozI.js} +1 -1
  111. package/dist/assets/{NavigationArrow-DaoZtCA8-BHc3euQ9.js → NavigationArrow-PxVotVGU-BN6LQQ8z.js} +2 -2
  112. package/dist/assets/{NavigationDots-BhF2AV0Y-DUHF5KEe.js → NavigationDots-BhLlf9IS-Cc6rFgNx.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-BaoJ7yB8-BF04eMSd.js → NewGlobalMerchantPage-BnXD_AkF-7b5iQIvJ.js} +1 -1
  114. package/dist/assets/{NoDataChart-IPJ1xGPZ-BKJQDDL9.js → NoDataChart-DLfKZ9J--1T9pg2HM.js} +1 -1
  115. package/dist/assets/{NoDataTable-D5U81gbD-BirLBEpp.js → NoDataTable-BRKuhxS0-sx0oHeyw.js} +1 -1
  116. package/dist/assets/{NotFoundPage-C7BswX2A-DQWUyCMU.js → NotFoundPage-BD417YGL-rToNH_nB.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-BQyqFWby-GjMlWRuD.js → NotificationSettingsPage-Mb9ed249-CQss7Tea.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-kLqWFg2Q-DecPdYAb.js → NotificationsListConfig-CISUs4yA-Up6zrNe0.js} +1 -1
  119. package/dist/assets/{NotificationsPage-DjRkTZVT-udgcPcnZ.js → NotificationsPage-WTGOES7C-D5gXR2ud.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-CSasi7Uo-CoBJ4a1U.js → OpExByVendorPage-D4Ur1QRV-CtpvGOvR.js} +6 -6
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-CokciX1J.js → OverlayContainerPage-C0rUb6-5-DLDjA1WL.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-D8YwSYiz-BlQ8i7AP.js → PandLWithForecastPage-DSvdGyym-C1hZzOpv.js} +7 -7
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWwcQZfk-DK-YnIzr.js → PaymentAccountSetupBillingAddressSection-Bs8f-d_P-BeYSvOrY.js} +1 -1
  124. package/dist/assets/{PeoplePage-mrXiZ4VG-Cp2NcBr2.js → PeoplePage-ByFdUCgV-C-dQ5ifc.js} +17 -17
  125. package/dist/assets/PortfolioAllocationFormPage-BY5JJCu--Db_AJDDA.js +207 -0
  126. package/dist/assets/PortfolioDetails-Du2wncho-DR6hA4On.js +218 -0
  127. package/dist/assets/{ProductsCarousel-DpevGHyq-M7sMCRPA.js → ProductsCarousel-6mui8g8D-BXwmVYBD.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-BreO0rHq-CmneT-LE.js → PromoBaseCards-CASb_Nf9-BmTbWgM7.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-BCWc6AK--ExlTvgR6.js → QBOConnectionDialog-AF50P_eR-DhzipR7w.js} +5 -5
  130. package/dist/assets/{QBOSetupSection-D_doa7hh-C2_irMwi.js → QBOSetupSection-hObNFdKz-3XFNnwv5.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BSFxsbcx-5oswA6u0.js → ReimbursementApprovalRuleDetailPage-NuprN06r-BkFlu4jO.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-X9bJFM6L-DS04bVT9.js → ReimbursementApprovalRulesPage-DP8frTz1-BIghkZwb.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-BJmSB65P-B9Io-y6T.js → ReimbursementDetailPage-B9F6pND6-DNevCo1s.js} +3 -3
  134. package/dist/assets/{ReimbursementPromoPage-DO7dI9S7-IIxWWc2q.js → ReimbursementPromoPage-CUNbpcAP-BJXAeXWj.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-Wjj6aNpc-BXv92xHK.js → ReimbursementSetUpPage-ihfYAhDw-BJyrWltl.js} +2 -2
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-GPuEjGqi-qY4F19Li.js → ReimbursementsBulkReviewDrawerPage-CafTodEa-vUUwSS79.js} +1 -1
  137. package/dist/assets/{ReloadCard-cApojDpl-BTIiWZRj.js → ReloadCard-aQ5Ma2ne-srF7XfGP.js} +1 -1
  138. package/dist/assets/ReportTableViewSelector-CjZe9dc3-B94C9OUt.js +150 -0
  139. package/dist/assets/ReportsPage-PDTasuAQ-CD592IPM.js +121 -0
  140. package/dist/assets/{RevenueChart-xoOc_3W3-Dzhhcd2T.js → RevenueChart-CJYsWcyb-COXSVzci.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-CF-R6wwN-BMnS8ktk.js → ReviewDetailsPage-47Qg28PV-DD0ehHxI.js} +8 -8
  142. package/dist/assets/{ReviewOverlay-Bora7h_H-BkZGLYKt.js → ReviewOverlay-DvYSZ8u9-D1sec7oa.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-k62RaqAZ-Bav1TewG.js → RoleWithToolTip-DoD_vW-E-xeMdlQFI.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bd6qfpob-BxOEwKtI.js → ScheduleDetailsFixedAssetsPage-BMX7jbBN-B126g4bO.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-scOS36lS-CAMrRW5Y.js → ScheduleDetailsPage-CNtV2SVn-Ddz0O5ah.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-BIhbFnjb-DCpkIU0H.js → ScheduleSequenceTable-CMrsG_y3-ZI5_od4y.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-C1ZbXccz.js → ScreenRoutes-Xqggk2Tm.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-ehZfUFEf-BgFNCBNu.js → SetUpAccountSection-D3nUQAk8-DKZLa9Zq.js} +37 -37
  149. package/dist/assets/{SetUpDefaultSection-DnYtx3XN-CNoT73Ow.js → SetUpDefaultSection-C2MgZHUf-x0_RVnLC.js} +1 -1
  150. package/dist/assets/{SignIn-k9MFplB1-eud7vdJb.js → SignIn-Bud28HbX-Xl-uNzmG.js} +1 -1
  151. package/dist/assets/{SignInScreen-CqP6hQef.js → SignInScreen-BV0zmhf7.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-B11exjM8-CE2MaiYn.js → SpendManagementListViewPage-B8R0PEMD-BbaRv050.js} +6 -6
  153. package/dist/assets/{SpendManagementPerTabPage-ByXU-omE-DWwC2JuF.js → SpendManagementPerTabPage-CTdgMCHu-CAOhzan7.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-CAewVL0Z-GsJe1fhq.js → SpendManagementSection-CnD0V00y-Dmq0cMig.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-BY2LT0qv-CgVflLnR.js → SpendMgmtSetupAccountSection-D7LHyfpa-46XD5tWn.js} +5 -6
  156. package/dist/assets/{StatementItem-BJoMxmJY-BVhb_2i3.js → StatementItem-Dn796WZD-1Rb-SXfR.js} +4 -4
  157. package/dist/assets/{StatementsPage-C_O76V3t-DoehdMaa.js → StatementsPage-L75Co_mK-C_J6xieF.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-39NGxygM-8g3Kr8Ie.js → StatusSwitcher-CxbcO6mR-C4PCbece.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-BcL8UKX8-CtPS6-C1.js → SubTabSwitcher-mCKmnU9--jUtM0Bft.js} +1 -1
  160. package/dist/assets/{SummaryCard-VT7YJ6jy-DeCNM95f.js → SummaryCard-BoA0mdbI-C3rDEBSG.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-p-3BLn0_-TCdTn4Be.js → TaskManagementPage-CbSLSOpI-BFGgqlJt.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-Cjs5znYy-Dn_2XKTn.js → TimeRangeSwitcher-DIszv8B4-D-1vIZUO.js} +3 -3
  163. package/dist/assets/{TimeframeSwitcher-BJrFD5A7-CapG6nwB.js → TimeframeSwitcher-C8tn7HgF-Db6tSjO9.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-CrWRqA_S-Bvp4VoyC.js → TimeframeSwitcherWithToggle-DqvG5zv2-DqYusAPI.js} +1 -1
  165. package/dist/assets/{TopExCard-DAwlJbbc-Ch08mChi.js → TopExCard-B2pg-xWB-DR721esp.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-BgUJytuV-V8CGIoou.js → TopExDetailPage-Ch-SwhrE-C3B3fW9M.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-C8yIuCvF-lo-j_-eB.js → TransactionDetailPage-4ehnnMwj-CxGtpuw5.js} +1 -1
  168. package/dist/assets/{TransactionList-DG-KZUjZ-CV9wox71.js → TransactionList-Bds8YVxl-eo-qwfAU.js} +1 -1
  169. package/dist/assets/{TransactionListBig-iGiOjwVK-Dc9vBqnr.js → TransactionListBig-YrccrGWK-DQRVfhmg.js} +1 -1
  170. package/dist/assets/{TransactionListPage-C9Z_z4mC-UBhyOHuK.js → TransactionListPage-EBZJJ3Bb-C5h_p4zd.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-5uo1FPul-BOddX9Sk.js → TransactionVendorDetailPage-DIvXenmH-BygJi1pY.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-BKzo-4Wj-D-t2nTop.js → TransferDrawerPage-CK9V-5BR-DZ9c1lfC.js} +20 -20
  173. package/dist/assets/{TreasuryOverviewPage-C6kTg0L3-DDk4OCh2.js → TreasuryOverviewPage-Dhm7htH5-BUj5D_CB.js} +3 -3
  174. package/dist/assets/{TreasuryPromoPage-CAS0pdES-D8v7EASC.js → TreasuryPromoPage-CiE4S4u6-qiSczFzX.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-CcLiQWOT-B7yrMsSh.js → TreasurySetupPage-WygAmXcw-WQiA9bVD.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-Dm-3SPtA-C2bOR_YK.js → TreasuryStatementsPage-zycSYzUL-CE8VEsG8.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-0RsINpqA-DJWdIr-H.js → TreasuryTaxLetterPage-l_CSMKSV-CFFwa7b-.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-C_4CQVIe-BOkn6wNn.js → TreasuryTransferOrReviewPage-CkHJE0PT-CVfr6xd-.js} +7 -7
  179. package/dist/assets/{TrendChart-CkPRxjLa-ClAmXRdb.js → TrendChart-Buu-BMJt-1SixfBeO.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-DJYMqIOI-wnxxIB4C.js → TrendWithTransactions-C6sLZFPh-CJcdwvxU.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-BapLceo--CgdItlB5.js → UncategorizedAccountsMappingPage-Ct1KSgHe-BkPn1VDr.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-C9zNzH3B-gVQYcxZB.js → UnitIntegrationPage-DeG7GwFV-BTOJ5_nM.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-BNaV6i2S-BuH4CmLJ.js → UploadAdditionalDocumentOverlay-BBEBrd1k-C8YmGx6j.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-_Cn9FJ7D-cKAPYes9.js → Vendor2FAPopup-B2qGbIlK-CbqUscDE.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-B1vHY6rG-VScnw-FL.js → VendorACHDetailsPage-CIb3Lffi-IjDSrk-_.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-Dkl7AlIZ-5XPeaOqt.js → VendorDetailPage-DrZlWYNf-CitGu9Ha.js} +7 -7
  187. package/dist/assets/{VendorDomesticWireDetailsPage-Co8Uc_OS-I5CTiy_-.js → VendorDomesticWireDetailsPage-BGfsxhx5-BBlyKElB.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-M0gQJLkE-DzG8EXIY.js → VendorFiling1099EditablePage-DpYIPFDo-Cny4xMig.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-Bte87pqn-DeG8_h9I.js → VendorFirstReviewPage-JJMuxJAj-CEkUZQNo.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-DdfkKEFx-sHwHhQTJ.js → VendorInternationalWireDetailsPage-B7IVMovj-B5VUl76d.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CtQifsRT-BsMO6lfl.js → VendorInternationalWireSwiftDetailsPage-C7y7HA0_-iAtQaOvZ.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CxyObm3T-BgRsSYOY.js → VendorsAccountsSection-CKizD1gN-BJJ_j-nc.js} +1 -1
  193. package/dist/assets/{WarningsDrawerPage-D5nPLGJh-5sMWIR75.js → WarningsDrawerPage-REjc7j42-TgqIuesy.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-CKS9mcn3-BBMilYy5.js → ZeniAccountDetailPage-BYQt_cqt-B9TUZXOz.js} +3 -3
  195. package/dist/assets/{ZeniAccountListViewPage-CORl7azj-By_13T1c.js → ZeniAccountListViewPage-DPLQmd2c-BJzMmpCX.js} +7 -7
  196. package/dist/assets/{ZeniAccountNavBarPieces-88z7CFPI-kEgSzIRo.js → ZeniAccountNavBarPieces-CB_hOCVm-Dgt-KBoE.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-Car62P8Q-Bdd82q-1.js → ZeniAccountPromoPage-DjbDqqNB-DbFXyEm9.js} +1 -1
  198. package/dist/assets/{ZeniAccountSetupPage-B5uOzSDL-B_JyTC9y.js → ZeniAccountSetupPage-BKgmStQ8-DvOkzvTm.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-BcMyDAdQ-B3RH4DR7.js → ZeniCopyright-gnzM8wV--B3wiitHw.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-Css3_ojA-DueYRoaC.js → ZeniTransferAmountSlider-D5uBFeau-CCzhbeOi.js} +1 -1
  201. package/dist/assets/{analyticsHelper-X-GRY9hH-MGNhQKMp.js → analyticsHelper-Cdzg4Zjw-BD3QBCs9.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DsBQxHgn.js → analyticsHelper-g-8qlEdt.js} +1 -1
  203. package/dist/assets/{chartTypes-C5XZr0AA-C8J0rp67.js → chartTypes-BTdgphvt-COUgSR4v.js} +1 -1
  204. package/dist/assets/{commonDimensions-DBedC6J7-SSiZbAOc.js → commonDimensions-Ctzi29iY-mgtHXo4p.js} +1 -1
  205. package/dist/assets/{detailCommon-CIjWXBC2-K-4pS5u-.js → detailCommon-SwpJm2mb--HDCa1ev.js} +3 -3
  206. package/dist/assets/{downloadPdf-B21yi0DO-ZMTPTkC7.js → downloadPdf-YcATpN2g-D3XIUalG.js} +1 -1
  207. package/dist/assets/{index-ji6aa7AC.js → index-QTXYT_IZ.js} +6 -6
  208. package/dist/assets/mapLoadingInProgressToTreeNode-C8MSAhen-AfMjxweq.js +1 -0
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-XPbCtxen-DAUQseD_.js → mapSectionWithAcOnlyToTreeNode-C0LfGztS-DTztJDdH.js} +1 -1
  210. package/dist/assets/mapSpacerToTreeNode-BBfTCdRQ-bgZlN15f.js +1 -0
  211. package/dist/assets/mapTimeframeBalancesToTreeNode-ClOTGsb4-B5ylNJVM.js +1 -0
  212. package/dist/assets/mapTimeframeBalancesToTreeNode-DcljRs6K-orb0-qTl.js +1 -0
  213. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-BL3c3wFj-BCJhDRyN.js +1 -0
  214. package/dist/assets/{play-icon-D7s0M2vV-zKqEqpdy.js → play-icon-DaxUpyZT-ss_3TDIT.js} +1 -1
  215. package/dist/assets/{toCOABalancesWithID-CWk-QcRU-Db3b2mU1.js → toCOABalancesWithID-Vfz3d1qt-Dmwd2xoZ.js} +1 -1
  216. package/dist/assets/{toChartData-BMMsnVqz-Cij6F0sj.js → toChartData-CiTmOVzN-DBayRNk7.js} +1 -1
  217. package/dist/assets/{treasuryColorHelper-CDRG_Dxk-BbsHEkM1.js → treasuryColorHelper-BbkDcDKI-pPmAbCLc.js} +1 -1
  218. package/dist/assets/{uploadAttachment-5FffgOcW-DgFFpcCF.js → uploadAttachment-BLQvpBKI-CHSynwi0.js} +1 -1
  219. package/dist/assets/{uploadReceipts-Buvz7DfG-Dl3fgjOi.js → uploadReceipts-Buvz7DfG-D7H47NIP.js} +1 -1
  220. package/dist/index.html +1 -1
  221. package/package.json +3 -3
  222. package/dist/assets/CheckDepositDrawerPage-DOyXGzFg-BAQPRuRk.js +0 -206
  223. package/dist/assets/CollapsableReportTable-FShSCFEn-62FniBRb.js +0 -2860
  224. package/dist/assets/CustomerOnboardingContainerPage-Dln-_Yb0-BjXolAob.js +0 -1
  225. package/dist/assets/DashboardReportPage-Cuiynx8W-ac_35yhz.js +0 -349
  226. package/dist/assets/PortfolioAllocationFormPage-DAFisXnQ-DjoPfEuL.js +0 -207
  227. package/dist/assets/PortfolioDetails-BBOVIetI-BvRwtbCV.js +0 -218
  228. package/dist/assets/ReportTableViewSelector-BVUqQ9hl-WfosyobX.js +0 -150
  229. package/dist/assets/ReportsPage-CdiHHtXH-B1iwxprE.js +0 -120
  230. package/dist/assets/mapLoadingInProgressToTreeNode-CPDYMovk-DjQU3oZy.js +0 -1
  231. package/dist/assets/mapSpacerToTreeNode-CJ13HyFX-D7QAWDUL.js +0 -1
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-D8UCPznF-C5zbYkry.js +0 -1
@@ -0,0 +1,218 @@
1
+ import{j as e,M as J,o as l,iB as K,q,d2 as X,u as G,X as Q,_ as W,C as O,bt as f,g as T,bH as L,w as A,dp as V,ae as Z,al as ee,b5 as ie,bd as se,f as le,d4 as ne,n as oe}from"./index-QTXYT_IZ.js";import{n as s,b as te}from"./vendor-CnQcJ2Lu.js";import{l as re}from"./treasuryColorHelper-BbkDcDKI-pPmAbCLc.js";const{common:r,spendManagement:{treasury:o},dateFormat:ae}=J.getLocalizedStrings(),w={portfolioYieldMarginTop:new O(-4,oe[0]),sliderWidth:new O(143,177)},Be=({isInReview:i,isSetup:n,fundDetails:m,allocation:d,amount:g,page:v})=>{const h=de(m);return e.jsxs(me,{children:[!n&&e.jsx(xe,{style:{alignSelf:"flex-start",padding:`${l.sp2} ${l.sp0}`},children:`${o.portfolioAllocation.title}`}),h.map((a,x)=>e.jsx(ce,{portfolio:a,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:n,isLast:x===h.length-1,amount:g,page:v},m[x]?.fundCode||x))]})},de=i=>i.map(n=>[{label:o.promoPage.liquidity,value:n.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:K(n.fundSize,n.currencyCode)},{label:o.promoPage.maturity,value:`${n.maturity} ${r.timeStrings.days}`},{label:o.promoPage.expenseRatio,value:`${n.expenseRatio}${o.promoPage.expenseRatioSuffix}`},{label:o.promoPage.riskRating,value:n.riskRating||r.strings.hyphen},{label:o.promoPage.composition,value:Array.isArray(n.compositions)&&n.compositions.length>0?`${n.compositions[0].investedIn} ${n.compositions[0].percentage}${r.strings.percentage}`:r.strings.hyphen,tag:Array.isArray(n.compositions)&&n.compositions.length>1?`+${n.compositions.length-1}`:void 0,compositions:n.compositions??[]}]),ce=({portfolio:i,fund:n,fundIndex:m,allocationPercentage:d,isInReview:g,isSetup:v,isLast:h,amount:a,page:x})=>{const _=X().analytics,Y=G(),t=Q(),j=a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,H]=te.useState(!1),u=re(m,Y),$=()=>{p||_.trackTreasuryProspectusClick(n.fundName,n.fundCode,x),H(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(pe,{children:e.jsxs(he,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(ue,{windowSize:t,children:[e.jsxs(fe,{isInReview:g,windowSize:t,children:[e.jsx(ye,{children:n.fundCode}),e.jsx(we,{color:u.fundNameColor,children:`${n.fundCompanyName} ${n.fundName}`})]}),t!=="small"&&e.jsxs(C,{onClick:$,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:g?e.jsxs(B,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(E,{children:j!=null?W("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs(je,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(I,{children:[e.jsx(R,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(B,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,style:{marginRight:l.sp3},children:[n.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(ke,{children:v?e.jsxs(Ie,{children:[e.jsxs(Re,{children:[e.jsxs(Ae,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(I,{children:[e.jsx(R,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}),e.jsxs(C,{onClick:$,style:{marginBottom:l.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}):g?e.jsxs(Te,{children:[e.jsxs(F,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(E,{children:j!=null?W("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(C,{onClick:$,style:{margin:`${l.sp2} ${l.sp0}`,...h?{marginBottom:l.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}),e.jsxs(U,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]}):e.jsxs(Ye,{children:[e.jsxs(F,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(I,{children:[e.jsx(R,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(C,{onClick:$,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(P,{}):e.jsx(D,{})]})]}),e.jsxs(U,{children:[e.jsxs(S,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${l.sp3}`},enterDelay:300,children:e.jsx(k,{})})]}),e.jsxs(b,{windowSize:t,children:[n.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(be,{children:[e.jsx(z,{children:n.description}),e.jsx($e,{style:{marginLeft:l.sp3},children:i.map(c=>e.jsxs(Se,{windowSize:t,children:[e.jsx(z,{children:r.strings.dividerDot}),e.jsx(z,{style:{minWidth:"140px"},children:c.label}),e.jsxs(z,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:Y.colors.primary,borderBottom:`1px solid ${Y.colors.grey3}`,width:"100%",padding:`${l.sp1} ${l.sp0}`,display:"flex",flexDirection:"row",alignItems:"center",gap:l.sp2},children:[c.value,!!c.tag&&c.label===o.promoPage.composition&&e.jsx(f,{variant:"list-description",data:{title:r.strings.empty,items:Array.isArray(c.compositions)&&c.compositions.length>0?c.compositions.map(N=>({text:`${r.strings.dividerDot} ${N.investedIn}`,amount:`${N.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${l.sp3}`},children:e.jsx(Ce,{children:c.tag})})]})]},c.label))}),e.jsxs(ze,{onClick:()=>window.open(n.url,"_blank"),children:[e.jsx(ve,{children:`${o.promoPage.asOf} ${n.asOfDate.format(ae.visual.MMMDCommaYYYYformat)}`}),e.jsx(De,{})]})]}),(!h||v)&&e.jsx(Pe,{style:{width:"100%",marginBottom:l.sp3}})]})},pe=s.div`
2
+ display: flex;
3
+ flex-direction: row;
4
+ gap: ${l.sp2};
5
+ width: 100%;
6
+ `,xe=s(q)`
7
+ color: ${i=>i.theme.colors.hero};
8
+ `,me=s.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ width: 100%;
13
+ `,ge=s.div`
14
+ display: flex;
15
+ flex-direction: row;
16
+ align-items: center;
17
+ justify-content: space-between;
18
+ width: 100%;
19
+ align-items: flex-start;
20
+ `,he=s.div`
21
+ display: flex;
22
+ flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
23
+ width: 100%;
24
+ margin-bottom: ${l.sp2};
25
+ `,ue=s.div`
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: flex-start;
29
+ width: ${i=>i.windowSize==="small"?"auto":"245px"};
30
+ `,fe=s(L)`
31
+ color: ${T.graphColor34Dark};
32
+ max-width: 280px;
33
+ `,ye=s.span`
34
+ color: ${i=>i.theme.colors.primary};
35
+ margin-right: ${l.sp1};
36
+ `,we=s.span`
37
+ color: ${i=>i.color??T.graphColor34Dark};
38
+ `,B=s.div`
39
+ display: flex;
40
+ flex-direction: column;
41
+ align-items: flex-end;
42
+ width: 129px;
43
+ `,y=s(ee)`
44
+ color: ${i=>i.theme.colors.primary};
45
+ min-width: ${l.sp7};
46
+ text-align: left;
47
+ `,b=s(L)`
48
+ color: ${T.success};
49
+ margin-top: ${i=>w.portfolioYieldMarginTop.valuePx(i.windowSize)};
50
+ `,S=s(A)`
51
+ display: flex;
52
+ flex-direction: row;
53
+ align-items: flex-start;
54
+ gap: ${l.sp1};
55
+ color: ${i=>i.theme.colors.hero};
56
+ `,ve=s(le)`
57
+ display: flex;
58
+ flex-direction: row;
59
+ align-items: flex-start;
60
+ gap: ${l.sp1};
61
+ `,E=s(A)`
62
+ display: flex;
63
+ flex-direction: row;
64
+ align-items: flex-start;
65
+ gap: ${l.sp1};
66
+ color: ${i=>i.theme.colors.primary};
67
+ `,je=s.div`
68
+ display: flex;
69
+ flex-direction: row;
70
+ align-items: center;
71
+ gap: ${l.sp2};
72
+ width: 240px;
73
+ `,I=s.div`
74
+ display: flex;
75
+ flex-direction: row;
76
+ align-items: center;
77
+ position: relative;
78
+ flex: 1;
79
+ `,$e=s.div``,R=s.input`
80
+ width: ${({windowSize:i})=>w.sliderWidth.valuePx(i)};
81
+ cursor: default;
82
+ pointer-events: none;
83
+
84
+ &[type="range"]::-webkit-slider-runnable-track {
85
+ height: 2px;
86
+ background-color: ${i=>i.theme.colors.grey3};
87
+ }
88
+
89
+ &[type="range"] {
90
+ -webkit-appearance: none;
91
+ appearance: none;
92
+ }
93
+
94
+ &[type="range"]::-webkit-slider-thumb {
95
+ visibility: hidden;
96
+ }
97
+ `,M=s.div`
98
+ position: absolute;
99
+ height: 2px;
100
+ background-color: ${i=>i.color??T.graphColor34Dark};
101
+ `,C=s(A)`
102
+ color: ${i=>i.theme.colors.hero};
103
+ align-self: flex-start;
104
+ display: flex;
105
+ flex-direction: row;
106
+ align-items: center;
107
+ gap: ${l.sp1};
108
+ cursor: pointer;
109
+ `,D=s(Z)`
110
+ width: 12px;
111
+ height: 12px;
112
+ color: ${i=>i.theme.colors.hero};
113
+ `,be=s.div`
114
+ display: flex;
115
+ flex-direction: column;
116
+ width: 100%;
117
+ justify-self: flex-start;
118
+ gap: ${l.sp2};
119
+ margin-bottom: ${l.sp3};
120
+ `,z=s(q)`
121
+ color: ${i=>i.theme.colors.hero};
122
+ `,Se=s.div`
123
+ display: flex;
124
+ flex-direction: row;
125
+ align-items: center;
126
+ gap: ${i=>i.windowSize==="small"?l.sp1:l.sp2};
127
+ `,Ce=s(se)`
128
+ color: ${i=>i.theme.colors.hero};
129
+ padding: 1px 6px;
130
+ border: 1px solid ${i=>i.theme.colors.grey2};
131
+ border-radius: ${l.sp1};
132
+ `,De=s(ne)`
133
+ width: 12px;
134
+ height: 12px;
135
+ `,ze=s.div`
136
+ display: flex;
137
+ flex-direction: row;
138
+ align-items: baseline;
139
+ gap: ${l.sp2};
140
+ width: fit-content;
141
+ cursor: pointer;
142
+ color: ${i=>i.theme.colors.hero};
143
+
144
+ &:hover {
145
+ color: ${i=>i.theme.colors.primary};
146
+ text-decoration: underline;
147
+ }
148
+ `,P=s(V)`
149
+ cursor: pointer;
150
+ width: 12px;
151
+ height: 12px;
152
+ min-width: 12px;
153
+ min-height: 12px;
154
+ color: ${i=>i.theme.colors.hero};
155
+ `,Pe=s.div`
156
+ display: flex;
157
+ flex: 1;
158
+ background-color: ${i=>i.theme.colors.grey3};
159
+ min-height: 1px;
160
+ max-height: 1px;
161
+ `,k=s(ie)`
162
+ width: ${l.sp3};
163
+ height: ${l.sp3};
164
+ color: ${i=>i.theme.colors.hero};
165
+ margin-bottom: -3px;
166
+ cursor: pointer;
167
+ :hover {
168
+ color: ${i=>i.theme.colors.primary};
169
+ }
170
+ `,ke=s.div`
171
+ display: flex;
172
+ flex-direction: row;
173
+ justify-content: space-between;
174
+ align-items: flex-start;
175
+ width: 100%;
176
+ margin-top: ${l.sp2};
177
+ `,Te=s.div`
178
+ display: flex;
179
+ flex-direction: row;
180
+ align-items: flex-start;
181
+ justify-content: space-between;
182
+ width: 100%;
183
+ `,Ye=s.div`
184
+ display: flex;
185
+ flex-direction: row;
186
+ align-items: center;
187
+ justify-content: space-between;
188
+ width: 100%;
189
+ `,F=s.div`
190
+ display: flex;
191
+ flex-direction: column;
192
+ align-items: flex-start;
193
+ flex: 1;
194
+ `,U=s.div`
195
+ display: flex;
196
+ flex-direction: column;
197
+ align-items: flex-end;
198
+ `,Ie=s.div`
199
+ display: flex;
200
+ flex-direction: column;
201
+ width: 100%;
202
+ gap: ${l.sp2};
203
+ `,Re=s.div`
204
+ display: flex;
205
+ flex-direction: row;
206
+ width: 100%;
207
+ gap: ${l.sp2};
208
+ justify-content: space-between;
209
+ `,Me=s.div`
210
+ display: flex;
211
+ flex-direction: column;
212
+ align-items: center;
213
+ `,Ae=s.div`
214
+ display: flex;
215
+ flex-direction: row;
216
+ align-items: center;
217
+ gap: ${l.sp3};
218
+ `;export{Be as E};
@@ -1,4 +1,4 @@
1
- import{M as X,j as t,d2 as I,o as l,bo as O,ae as P,d3 as D,Z as F,q as L,d4 as R,g as v}from"./index-ji6aa7AC.js";import{b as $,n as i}from"./vendor-CnQcJ2Lu.js";const u=X.getLocalizedStrings(),y={large:{labelComp:D,title:F,subtitle:L,seeMoreLink:L}},U={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=U.large,B=i.div`
1
+ import{M as X,j as t,d2 as I,o as l,bp as O,ae as P,d3 as D,Z as F,q as L,d4 as R,g as v}from"./index-QTXYT_IZ.js";import{b as $,n as i}from"./vendor-CnQcJ2Lu.js";const u=X.getLocalizedStrings(),y={large:{labelComp:D,title:F,subtitle:L,seeMoreLink:L}},U={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=U.large,B=i.div`
2
2
  width: ${e=>e.scale*o.width}px;
3
3
  height: ${e=>e.scale*o.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{X as c,j as r,d8 as b,d9 as v,da as L,aR as z,C as a,o as e,g as d,Q as f,n as l}from"./index-ji6aa7AC.js";import{j as i,n as p,k as m}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
1
+ import{X as c,j as r,d8 as b,d9 as v,da as L,aR as z,C as a,o as e,g as d,Q as f,n as l}from"./index-QTXYT_IZ.js";import{j as i,n as p,k as m}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(k,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:$,style:x})=>{const n=c();return r.jsxs(W,{cardPromoType:$,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:x,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,18 +1,18 @@
1
- import{X as j,M as t,j as n,bz as w,K as l,C as s,o as i,Z as P,q as y,$ as b,aP as f,eF as v,n as a}from"./index-ji6aa7AC.js";import{n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},z=o.div`
1
+ import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,q as y,$ as b,aP as f,eF as v,n as a}from"./index-QTXYT_IZ.js";import{n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
5
5
  background: ${e=>e.theme.colors.background};
6
- `,S=o.div`
6
+ `,z=o.div`
7
7
  padding-top: ${e=>r.containerPaddingTop.valuePx(e.windowSize)};
8
8
  padding-bottom: ${e=>r.containerPaddingBottom.valuePx(e.windowSize)};
9
9
  padding-right: ${e=>r.containerPaddingLeftRight.valuePx(e.windowSize)};
10
10
  padding-left: ${e=>r.containerPaddingLeftRight.valuePx(e.windowSize)};
11
- `,k=o(P)`
11
+ `,A=o(P)`
12
12
  color: ${e=>e.theme.colors.primary};
13
13
  padding: ${i.sp0} ${i.sp0} ${i.sp4};
14
14
  min-width: 260px;
15
- `,A=o(y)`
15
+ `,k=o(y)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  max-width: 360px;
18
18
  `,L=o.div`
@@ -48,4 +48,4 @@ import{X as j,M as t,j as n,bz as w,K as l,C as s,o as i,Z as P,q as y,$ as b,aP
48
48
  `,O=o(v)`
49
49
  height: ${i.sp4};
50
50
  color: ${e=>e.theme.colors.primary};
51
- `;function X({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(z,{windowSize:x,children:[n.jsxs(S,{children:[n.jsx(k,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(A,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(C,{}),n.jsxs(B,{children:[c===!0?n.jsx(_,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(L,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{X as default};
51
+ `;function X({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(S,{windowSize:x,children:[n.jsxs(z,{children:[n.jsx(A,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(k,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(C,{}),n.jsxs(B,{children:[c===!0?n.jsx(_,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(L,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{X as default};
@@ -1,4 +1,4 @@
1
- import{X as O,M as $,j as i,K as k,o,C as a,g as d,e_ as Q,Q as T,$ as W,aP as B,eF as E,eY as G,a7 as w,w as u,n as r}from"./index-ji6aa7AC.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import M from"./QBOConnectionDialog-BCWc6AK--ExlTvgR6.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},A={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=$.getLocalizedStrings().customerOnboardingPage.sections,{title:z,sucessText:b,button:v,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(U,{children:l?i.jsx(Y,{}):i.jsx(Z,{})}):null,i.jsx(N,{windowSize:n,children:z})]}),i.jsxs(q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(K,{children:[i.jsx(R,{}),i.jsx(_,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(F,{children:b}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(M,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},H=s.div`
1
+ import{X as O,M as $,j as i,K as k,o,C as a,g as d,e_ as Q,Q as T,$ as W,aP as B,eF as E,eY as G,a7 as w,w as u,n as r}from"./index-QTXYT_IZ.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import M from"./QBOConnectionDialog-AF50P_eR-DhzipR7w.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},A={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=$.getLocalizedStrings().customerOnboardingPage.sections,{title:z,sucessText:b,button:v,errorText:P,requiredText:C}=S;return i.jsxs(H,{windowSize:n,children:[i.jsxs(I,{windowSize:n,children:[n==="small"?i.jsx(U,{children:l?i.jsx(Y,{}):i.jsx(Z,{})}):null,i.jsx(N,{windowSize:n,children:z})]}),i.jsxs(q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(K,{children:[i.jsx(R,{}),i.jsx(_,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(F,{children:b}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(M,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},H=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{C as q,n as U,u as M,X as W,M as D,a as G,a1 as X,j as s,S as H,c3 as J,aW as K,F as Q,a3 as Y,o as f}from"./index-ji6aa7AC.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-KcgZahKS-BPKITv3B.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new q(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const F=M(),S=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,l==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:_,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=H(p);J(()=>V(R,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,l)=>{const{criteria:t,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),r??[])??[],[T]:l?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},le=(e,l,t,r,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:l,selectedUsers:re(e,d.actors),allNonUsers:r,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(r=>r.userId===t.userId)>-1),oe=(e,l)=>e.filter(t=>l.findIndex(r=>r.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
1
+ import{C as q,n as U,u as M,X as W,M as D,a as G,a1 as X,j as s,S as H,c3 as J,aW as K,F as Q,a3 as Y,o as f}from"./index-QTXYT_IZ.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-D4Do4Mtd-Bgez_ajJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new q(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:l,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:r=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const F=M(),S=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,l==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:_,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=H(p);J(()=>V(R,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:l==="approval_create"?a.newApproval:a.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:r,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,l)=>{const{criteria:t,steps:r}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),r??[])??[],[T]:l?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},le=(e,l,t,r,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:l,selectedUsers:re(e,d.actors),allNonUsers:r,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:l,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],re=(e,l)=>e.filter(t=>t.userId!=null&&l.findIndex(r=>r.userId===t.userId)>-1),oe=(e,l)=>e.filter(t=>l.findIndex(r=>r.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{u as D,X as B,M as b,j as o,aW as H,d as E,Y as S,o as t,C as r,q as L,_ as z,bO as q,bQ as G,bR as U,cq as O,n as l,an as Q,Q as P,am as X,g as j,cn as Y,aN as _,v as F}from"./index-ji6aa7AC.js";import{n as i,b as V}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=V.useState(!1),a=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(K,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(Z,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(I,{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(I,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.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(R,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(q,{titleComponent:o.jsx(U,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(G,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:A}):null]})},K=i.div`
1
+ import{u as D,X as B,M as b,j as o,aW as H,d as E,Y as S,o as t,C as r,q as L,_ as z,bO as q,bQ as G,bR as U,cq as O,n as l,an as Q,Q as P,am as X,g as j,cn as Y,aN as _,v as F}from"./index-QTXYT_IZ.js";import{n as i,b as V}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=V.useState(!1),a=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(K,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(Z,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(I,{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(I,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.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(R,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(q,{titleComponent:o.jsx(U,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(G,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:A}):null]})},K=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{t as At,d2 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fI as Nt,fK as Lt,fL as Ot,j as t,bO as ze,bQ as Ae,bR as Me,Y as y,aW as Re,aI as _t,dq as Wt,fM as Et,fX as Pe,o as a,fN as Be,cP as b,cR as w,fQ as x,_ as Ne,cO as Le,v as K,fS as Oe,a3 as Kt,m as Ft,fT as Ut,fU as ae,aR as Vt,fV as Yt,a2 as Gt,Q as qt,h as Ht,q as et,an as tt,g as F,f as Qt,eW as Jt,w as Xt,ga as Zt,g6 as ei,n as c,bG as ti,cl as ii}from"./index-ji6aa7AC.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-CyacFv78-bjw3W0fU.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-sMKTopf8-CQuqGqLW.js";import"./uploadReceipts-Buvz7DfG-Dl3fgjOi.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new qt("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,q]=p.useState(!1),[H,Q]=p.useState("approved"),P=p.useRef(null),[j,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{J({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{J({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{J({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{q(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{q(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(Q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Se()):(Q("rejected"),q(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?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:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(qe,{windowSize:o,children:t.jsx(He,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle: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:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(qe,{windowSize:o,children:[t.jsx(He,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Kt,{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:H==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||H==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:H==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Ft,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
1
+ import{t as At,d2 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fI as Nt,fK as Lt,fL as Ot,j as t,bO as ze,bQ as Ae,bR as Me,Y as y,aW as Re,aI as _t,dq as Wt,fM as Et,fX as Pe,o as a,fN as Be,cP as b,cR as w,fQ as x,_ as Ne,cO as Le,v as K,fS as Oe,a3 as Kt,m as Ft,fT as Ut,fU as ae,aR as Vt,fV as Yt,a2 as Gt,Q as Ht,h as qt,q as et,an as tt,g as F,f as Qt,eW as Jt,w as Xt,ga as Zt,g6 as ei,n as c,bH as ti,cl as ii}from"./index-QTXYT_IZ.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-D5vmrKLq-CaJvqPBS.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-BF2v7v3I-BI4HJynu.js";import"./uploadReceipts-Buvz7DfG-D7H47NIP.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,Q]=p.useState("approved"),P=p.useRef(null),[j,J]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{J({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{J({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{J({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(Q("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(Q("delete"),Se()):(Q("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?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:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle: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:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Qe,{windowSize:o,children:[t.jsx(Je,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Ft,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -254,7 +254,7 @@ import{t as At,d2 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fI as Nt
254
254
  margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
255
255
  margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
256
256
  margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
257
- `,qe=r.div`
257
+ `,He=r.div`
258
258
  display: flex;
259
259
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
260
260
  align-items: ${e=>e.windowSize==="small"?"unset":"center"};
@@ -262,7 +262,7 @@ import{t as At,d2 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fI as Nt
262
262
  margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
263
263
  margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
264
264
  width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
265
- `,He=r(Ht)`
265
+ `,qe=r(qt)`
266
266
  flex-grow: 1;
267
267
  ${e=>`${li.formTitle.style(e.windowsSize)}`};
268
268
  color: ${e=>e.theme.colors.primary};
@@ -1,4 +1,4 @@
1
- import{t as me,u as z,X as v,a1 as de,l as D,M as K,j as e,Y as c,aW as pe,K as g,i as m,o as s,Z as xe,c0 as he,a5 as F,f as ue,C as ge,g as j,c2 as we,a6 as je,ao as fe,n as be}from"./index-ji6aa7AC.js";import{b,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js";import{f as ke,C as N}from"./play-icon-D7s0M2vV-zKqEqpdy.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",W="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(be[5],44)},ze=t.div`
1
+ import{t as me,u as z,X as v,a1 as de,l as D,M as K,j as e,Y as c,aW as pe,K as g,i as m,o as s,Z as xe,c0 as he,a5 as F,f as ue,C as ge,g as j,c2 as we,a6 as je,ao as fe,n as be}from"./index-QTXYT_IZ.js";import{b,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-5ibEhgcm-p1sBC8Am.js";import{f as ke,C as N}from"./play-icon-DaxUpyZT-ss_3TDIT.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",W="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(be[5],44)},ze=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as Ee,X as Ve,a1 as N,a as Ge,c3 as qe,M as Te,a7 as be,j as t,cI as Ke,g as K,C as r,aW as Ze,d as Je,F as Qe,c_ as Ye,aQ as Xe,c$ as et,a3 as tt,o as a,n,bG as it,cg as nt,co as ot,eY as ve,eZ as ke,fH as at,K as lt,Y as $e,Q as Pe,bc as rt,w as st,aN as ct}from"./index-ji6aa7AC.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{F as dt}from"./HelpButton-YqQNv-UM-CruBHlAV.js";import{K as je}from"./SetUpDefaultSection-DnYtx3XN-CNoT73Ow.js";import{p as ut}from"./SpendMgmtSetupAccountSection-BY2LT0qv-CgVflLnR.js";import{g as mt}from"./UploadAdditionalDocumentOverlay-BNaV6i2S-BuH4CmLJ.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-vr7DE2aj-DAZs4R6M.js";import"./ChargeCardUtils-BEtXxds6-iY4L_brM.js";import"./CreditCardPaymentPlgSection-CH8Ic2sK-CXQECn24.js";import"./ChaseOverlay-BySoceqB-DYKQzq4d.js";const pt=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"})),f={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function gt({companyMileageConfigInfo:e,mileageDetails:S,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:J},trigger:Q}=nt(),E=ht($,"mileageAmountInDenomination"),x=ot(J,E),{localData:c,updateStatus:R,mileageStatus:C}=S,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[b,V]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{x||Q(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{b||H(b)},[b]);const{reimbursementSetup:w}=ee,{setUp:ie}=Y,ne=b===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(ft,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs($t,{windowSize:l,children:[w.mileageHeader,d===!1?t.jsx(At,{children:ie.comingSoon}):null]}),t.jsxs(vt,{windowSize:l,children:[t.jsx(bt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(pt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(xt,{children:[t.jsxs(kt,{children:[t.jsxs(Pt,{children:[t.jsxs(jt,{children:[t.jsx(yt,{windowSize:l,children:e?.denominationConversions.amount==null?w.mileageAddTitle:w.mileageEditTitle}),t.jsx(St,{children:w.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(wt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Dt,{children:[t.jsxs(Et,{children:[t.jsx(at,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:b||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${w.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Tt,{children:b?t.jsx(lt,{label:w.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?w.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,S)=>`${e}.${S}`,ft=i.div`
1
+ import{u as Ee,X as Ve,a1 as N,a as Ge,c3 as qe,M as Te,a7 as be,j as t,cI as Ke,g as K,C as r,aW as Ze,d as Je,F as Qe,c_ as Ye,aQ as Xe,c$ as et,a3 as tt,o as a,n,bH as it,cg as nt,co as ot,eY as ve,eZ as ke,fH as at,K as lt,Y as $e,Q as Pe,bd as rt,w as st,aN as ct}from"./index-QTXYT_IZ.js";import{b as o,n as i}from"./vendor-CnQcJ2Lu.js";import{F as dt}from"./HelpButton-BBLa-U8R-5BfdLJDT.js";import{K as je}from"./SetUpDefaultSection-C2MgZHUf-x0_RVnLC.js";import{p as ut}from"./SpendMgmtSetupAccountSection-D7LHyfpa-46XD5tWn.js";import{g as mt}from"./UploadAdditionalDocumentOverlay-BBEBrd1k-C8YmGx6j.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-5ibEhgcm-p1sBC8Am.js";import"./ChargeCardUtils-Buf1Xa4X-CfiY3Rp3.js";import"./CreditCardPaymentPlgSection-B9DUkdWm-rJN3aibi.js";import"./ChaseOverlay-Cp5-sc7K-q-w46Qrq.js";const pt=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"})),f={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function gt({companyMileageConfigInfo:e,mileageDetails:S,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:Z}){const l=Ve(),D=Ee(),{formState:{errors:J},trigger:Q}=nt(),E=ht($,"mileageAmountInDenomination"),x=ot(J,E),{localData:c,updateStatus:R,mileageStatus:C}=S,H=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:X}=Te.getLocalizedStrings(),{reimbursement:ee}=X,[b,V]=o.useState(H),[te,U]=o.useState(!1);o.useEffect(()=>{x||Q(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&V(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{b||U(b)},[b]);const{reimbursementSetup:w}=ee,{setUp:ie}=Y,ne=b===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(ft,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs($t,{windowSize:l,children:[w.mileageHeader,d===!1?t.jsx(At,{children:ie.comingSoon}):null]}),t.jsxs(vt,{windowSize:l,children:[t.jsx(bt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(pt,{width:f.iconWidthHeight.valuePx(l),height:f.iconWidthHeight.valuePx(l)})}),t.jsxs(xt,{children:[t.jsxs(kt,{children:[t.jsxs(Pt,{children:[t.jsxs(jt,{children:[t.jsx(yt,{windowSize:l,children:e?.denominationConversions.amount==null?w.mileageAddTitle:w.mileageEditTitle}),t.jsx(St,{children:w.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(wt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(Ct,{})]})]}),t.jsxs(Dt,{children:[t.jsxs(Et,{children:[t.jsx(at,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:x?void 0:D.colors.background,color:b||x?void 0:D.colors.grey1},isFieldError:x,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${w.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:T=>T!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(Tt,{children:b?t.jsx(lt,{label:w.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&H&&!x&&Z?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(It,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:T=>{T.stopPropagation(),V(!0),U(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:x,children:x&&e?.defaultMileageUnitAmount!=null?w.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ht=(e,S)=>`${e}.${S}`,ft=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -103,7 +103,7 @@ import{u as Ee,X as Ve,a1 as N,a as Ge,c3 as qe,M as Te,a7 as be,j as t,cI as Ke
103
103
  &:hover {
104
104
  color: ${e=>e.theme.colors.primary};
105
105
  }
106
- `,g={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",G="remiAccount",q="remiMileage",ii=({remiSetupView:e,isDisabled:S,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:J,onBusinessVerificationSectionClick:Q,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:U,onUpdatePrimaryFundingAccount:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:b,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:H,onEditFileName:w,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:p,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:h}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[h,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Se,se.fetchState]);const Ue=z.handleSubmit(P=>{l.trackEnableReimbursement(),b()}),He=async(P,F)=>{const m=F[G];if(P.includes(G)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&p?.id!=m.fundingAccount.selectedOption){const y=he.find(me=>me.id===m.fundingAccount.selectedOption);y!=null&&Y(m.fundingAccount.selectedOption,y.accType)}}else if(m.account.selectedOption!=null&&p?.id!=null&&p?.zeniAccountId!=m.account.selectedOption){const y=m.account.allOptions.find(me=>me.value===m.account.selectedOption);y!=null&&typeof y.label=="string"&&l.trackConnectBankLink(y.value,y.label,"reimbursement"),U(m.account.selectedOption,p.id,p.accType)}}else if(P.includes(q)){const y=F[q];C(y)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&qe(()=>He(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,we,L.fetchState]);const{commonSetUp:Ce,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(p?.accType==="depositAccount"||p?.providerVerificationStatus?.code==="verified"||p?.providerVerificationStatus?.code==="manually_verified"||p?.providerVerificationStatus?.code==="automatically_verified"||p?.providerVerificationStatus?.code==="database_matched")&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"?I(!0):Q?.()};return t.jsxs(Lt,{children:[t.jsx(Ke,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:K.drawerBackground},transitionDuration:250,children:t.jsx(mt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:w,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:h,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:J,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:H,source:"ReimbursementSetUpPage"}),t.jsxs(Mt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Je,{size:"ExtraLarge",start:!0})}):t.jsx(Qe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:Ue,children:t.jsxs(Rt,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(ut,{connectedAccountProvider:A,primaryFundingAccount:p,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:G,isDisabled:S,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(gt,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(et,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(tt,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:S!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(dt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Lt=i.div`
106
+ `,g={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,n[5],n[5]),sectionRowGap:new r(n[5],n[9],n[9]),lastSectionPaddingBottom:new r(n[7],n[10],n[10]),iconWidthHeight:new r(20,n[4]),subTitlePaddingTop:new r(12,n[3]),subTitlePaddingBottom:new r(n[3],n[3]),overlayWidth:new r(100,100,59)},Ae="remiSetupPage",G="remiAccount",q="remiMileage",ii=({remiSetupView:e,isDisabled:S,remiApprovalView:j,connectedAccountProvider:A,isAccountsEnabled:$,filesEndPoint:d,authParams:s,meetingUrl:Z,analytics:l,accountsPromoConfig:D,onBackClick:J,onBusinessVerificationSectionClick:Q,onSetupApprovalRulesSectionClick:E,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onEstablishConnectionSuccess:R,updateMileageDetails:C,onUpdateAccountClick:H,onUpdatePrimaryFundingAccount:Y,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEnableRemiClick:b,onEnableRemiSuccess:V,onSaveMileageClick:te,onClickMenuIcon:U,onEditFileName:w,onDeleteFile:ie,updateFilesEntity:ne,onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae,onSignUpClick:T})=>{const W=Ee(),u=Ve(),[B,I]=o.useState(!1),{fetchState:v,primaryFundingAccount:p,allFundingAccounts:he,updateStatus:L,accountUpdateStatus:Ie,plaidConnectionDetails:le,allBankAccounts:Le,companyRemiInfo:ze,companyBillPayInfo:fe,mileageRateConfig:Me,isRefreshingViewInBackground:Fe,selectedCompanyOfficer:h}=e,{fetchState:xe,allApprovalRules:O,approvalRulesStatus:Re}=j,re=le.link_account.updateStatus,se=le.update_account.updateStatus,_=N(v),we=N(L.fetchState),ye=N(re.fetchState),Se=N(se.fetchState),z=Ge({mode:"all",reValidateMode:"onChange",defaultValues:o.useMemo(()=>pe(e),[e]),values:pe(e)});o.useEffect(()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"&&I(!0),B&&_==="In-Progress"&&v==="Completed"&&I(!1)},[h,v,_]),o.useEffect(()=>{(_==="In-Progress"&&v==="Completed"||ye==="In-Progress"&&re.fetchState==="Completed"||Se==="In-Progress"&&se.fetchState==="Completed")&&z.reset(pe(e))},[_,v,z,e,ye,re.fetchState,Se,se.fetchState]);const He=z.handleSubmit(P=>{l.trackEnableReimbursement(),b()}),Ue=async(P,F)=>{const m=F[G];if(P.includes(G)){if(P.includes("fundingAccount")){if(m.fundingAccount.selectedOption!=null&&p?.id!=m.fundingAccount.selectedOption){const y=he.find(me=>me.id===m.fundingAccount.selectedOption);y!=null&&Y(m.fundingAccount.selectedOption,y.accType)}}else if(m.account.selectedOption!=null&&p?.id!=null&&p?.zeniAccountId!=m.account.selectedOption){const y=m.account.allOptions.find(me=>me.value===m.account.selectedOption);y!=null&&typeof y.label=="string"&&l.trackConnectBankLink(y.value,y.label,"reimbursement"),H(m.account.selectedOption,p.id,p.accType)}}else if(P.includes(q)){const y=F[q];C(y)}};o.useEffect(()=>{const P=z.watch((F,{name:m})=>{m!=null&&F!=null&&qe(()=>Ue(m,F))});return()=>{P.unsubscribe()}}),o.useEffect(()=>{we==="In-Progress"&&L.fetchState==="Completed"&&V()},[V,we,L.fetchState]);const{commonSetUp:Ce,spendManagement:We}=Te.getLocalizedStrings(),{reimbursement:Be}=We,{reimbursementSetup:M}=Be,{setUp:k}=Ce,ce=fe?.isBusinessVerified===!0&&(p?.accType==="depositAccount"||p?.providerVerificationStatus?.code==="verified"||p?.providerVerificationStatus?.code==="manually_verified"||p?.providerVerificationStatus?.code==="automatically_verified"||p?.providerVerificationStatus?.code==="database_matched")&&Me?.denominationConversions.amount!=null,de=ze?.isReimbursementEnabled===!0,Oe=ce?Ce.setUp.setupVerifiedSubTitle:M.setupSubTitle,_e=v==="In-Progress"||v==="Not-Started"||xe==="In-Progress"||xe==="Not-Started",ue=W.mode==="light"?new be(W.colors.brandColorJadeLight):new be(W.colors.brandColorJadeDark),Ne=()=>{!B&&h?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&h.areAdditionalDocumentsRequestedForVerification&&!h.areAdditionalDocumentsSubmittedForVerification&&h.userVerificationStatus?.code==="require_info"?I(!0):Q?.()};return t.jsxs(Lt,{children:[t.jsx(Ke,{anchor:"right",PaperProps:{style:{width:g.overlayWidth.valuePercentage(u),boxShadow:"none"}},open:B,onClose:()=>I(!1),style:{backgroundColor:K.drawerBackground},transitionDuration:250,children:t.jsx(mt,{authParams:s,filesEndPoint:d,updateStatus:L,onEditFileName:w,onDeleteFile:ie,updateFilesEntity:ne,companyOfficer:h,onClose:()=>I(!1),onCompanyOfficerUpdated:oe,onSendForVerificationClick:ae})}),t.jsx(Ze,{title:M.setupTitle,backgroundColor:W.colors.grey4,style:{zIndex:3},onBackClick:J,showMenuIcon:!de&&(u==="medium-compact"||u==="small"),onClickMenuIcon:U,source:"ReimbursementSetUpPage"}),t.jsxs(Mt,{windowSize:u,children:[t.jsx(zt,{windowSize:u,children:Oe}),_e?t.jsx(Ft,{children:t.jsx(Je,{size:"ExtraLarge",start:!0})}):t.jsx(Qe,{...z,children:t.jsx("form",{id:De(Ae),onSubmit:He,children:t.jsxs(Rt,{windowSize:u,children:[t.jsx(je,{onClick:Ne,title:k.businessVerificationTitle,subTitle:k.businessVerificationSubTitle,header:k.businessVerificationHeader,icon:{element:t.jsx(Ye,{width:g.iconWidthHeight.valuePx(u),height:g.iconWidthHeight.valuePx(u)}),color:ue},status:fe?.businessVerificationStatus,isTagLoading:Fe}),t.jsx(ut,{connectedAccountProvider:A,primaryFundingAccount:p,plaidConnectionDetails:le,allBankAccounts:Le,allFundingAccounts:he,sectionId:G,isDisabled:S,onFetchLinkTokenClick:x,onEstablishConnectionClick:c,onUpdatePaymentAccountStatus:X,onUpdatePaymentAccountLoginStatus:ee,onEstablishConnectionSuccess:R,icon:{element:t.jsx(Xe,{width:g.iconWidthHeight.valuePx(u)}),color:ue},analytics:l,productType:"reimbursement",isAccountsEnabled:$,onSignUpClick:T,pageName:"Reimbursement Setup",accountsPromoConfig:D}),t.jsx(gt,{mileageDetails:e.mileageDetails,companyMileageConfigInfo:e.mileageRateConfig,sectionId:q,onSaveMileageClick:te,analytics:l}),t.jsx(je,{title:O.length>0?k.approvalTitle:k.createApprovalTitle,subTitle:M.approvalSubTitle,header:O.length>0?k.approvalHeader:k.setupApprovalHeader,icon:{element:t.jsx(et,{height:g.iconWidthHeight.valuePx(u)}),color:ue},style:{paddingBottom:g.lastSectionPaddingBottom.valuePx(u)},onClick:E,status:O.length>0?Re:void 0})]})})})]}),ce&&!de&&O.length>0?t.jsx(tt,{formId:De(Ae),primaryBtn:{label:M.enableReimbursements,style:{width:"auto",minWidth:u==="small"?"auto":"181px"},isLoading:L.fetchState==="In-Progress"||Ie.fetchState==="In-Progress",isDisabled:S!=null},showCancel:!1,helperText:M.terms,cancelBtn:{label:""},style:{padding:`12px ${a.sp3}`}}):null,t.jsx(dt,{isFooterRendered:ce&&!de,meetingUrl:Z,analytics:l,productType:"reimbursement"})]})},Lt=i.div`
107
107
  display: flex;
108
108
  min-height: 100%;
109
109
  flex-direction: column;
@@ -1 +1 @@
1
- import{M as N,j as b,bO as q,bQ as V,bR as W,jl as z,aa as H,l as Q}from"./index-ji6aa7AC.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-Bora7h_H-BkZGLYKt.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,G]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Q.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(q,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:H("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};
1
+ import{M as N,j as b,bO as q,bQ as V,bR as W,jl as z,aa as H,l as Q}from"./index-QTXYT_IZ.js";import{b as f}from"./vendor-CnQcJ2Lu.js";import{m as X}from"./ReviewOverlay-DvYSZ8u9-D1sec7oa.js";import"./mui-C5LQ0bMa.js";import"./analytics-CBL_L82S.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const{common:n,spendManagement:{reimbursement:k}}=N.getLocalizedStrings(),o=k.bulkActions;let I;const ae=({remisReviewView:e,isAdmin:l,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,a]=f.useState(!1),[m,_]=f.useState(R(e,h,l)),[x,P]=f.useState(h),[B,G]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(P(!1),clearInterval(I)),e.fetchState==="Completed"&&_(R(e,!1,l)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,l]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),a(!0)},$={onOkClick:u=>{a(!1);const T=e.remisForReview.map(j=>j.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,Q.getRemiListUniqueType(T.map(j=>j?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{a(!1)}},{title:L,description:U}=Z(p,S,E,x),C=e.fetchState==="Completed"&&S===0,O=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:O,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},M={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(q,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:M,hideCancel:C}})]})},R=(e,l,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:k.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:H("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:l,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,l,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=l>1,a=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",a?k.bulkActions.reports:o.report).replace("<_has_>",a?s:r),l===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",a?c:p).replace("<_do_>",a?g:h):_=`${l}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",a?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",a?c:p)),{title:m,description:_}};export{ae as default};