@zeniai/web-cockpit-ui 1.14.69-prod → 1.14.70-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 (231) hide show
  1. package/dist/assets/{ACHDetailsPage-CmWdWZdP-D08ZHH9H.js → ACHDetailsPage-DEHhAThG-DRAXXaYH.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DR_nar6I-C-nOpUga.js → AIPerformancePage-B464awTI-D9b_abqo.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-B38K8oEc-BrwpJjZu.js → AccountInfoPage-CXORyzg0-CybH32Bk.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-2BCqK6uX-DOZlSjt9.js → AccountInfoPageContent-C9u7rHSK-BT3xnzN2.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BRDWcWCW-Bs5kmnXp.js → AccountLockedInfoModal-CKll7MKb-CjjkXlxS.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-XWU779Do-CL2XjmwO.js → AccountReconDetailsDrawerPage-BC2fGcr2-D7kVaYoW.js} +1 -1
  7. package/dist/assets/{AccountRow-HX65ytA9-DetuuL-x.js → AccountRow-NUjIqQZG-CSuarqvN.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BgH0GUum-B0ik7ZZL.js → AccountsPromoCardStack-XBi6z1zm-ChZ4F-Su.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CTWrEuhw-C7oCxit3.js → AddAddressForCardDrawer-DQP3nz3Q-B4VYFuh8.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-DTXBDGyB-DI5kTo4U.js → AddToWalletPage-Bb2oVW4b-yCBdn2-5.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-D5cFIWFm-1uaNBQUg.js → AgingReportsPage-CumNO7Lc-CZuNjzaf.js} +1 -1
  12. package/dist/assets/{AllUserItems-CJuV-zCV-Cl9AZUy6.js → AllUserItems-B3X2Yuzf-nT-XTOL1.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-D70U6sDz-DBfXQvB3.js → ApAgingDetailPage-DO6H8pHR-BJjqV3Er.js} +1 -1
  14. package/dist/assets/{AppBasePage-DhJFM1Hf-BLCs30xv.js → AppBasePage-xQ6xhR2M-BaIjJbZZ.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-29n10idw-BgMVfnAi.js → AppDrawerContent-BcHjLmip-CD7Xrz71.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-Cdlgg_ES-C2o8fJ93.js → ApprovalRulesSettingsPage-DEaI5LXy-CdonxLeU.js} +1 -1
  17. package/dist/assets/{ArAgingChart-C_oM_bU9-CSIw0A4R.js → ArAgingChart-DzhE9mKv-Dm3ED-VE.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-GccX2G2o-CbxkMfZs.js → ArAgingDetailPage-B91ZARF--DiGTdxjY.js} +1 -1
  19. package/dist/assets/{AttachmentView-DDNmVg54-BEQuPzAU.js → AttachmentView-ChgqlLZN-CRfLn9o5.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CSEVnGzl-RoBrk-6C.js → BankAccountSection-BDRw3NWV-B1HXDOJd.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CZWf6Ctu-DzlhcQ-1.js → BankAccountWarningSection-BKoo9URq-B_XL-xhd.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-DW3rv1B7-BI4eIich.js → BankConnectionsSettingsPage-CJ42ZzMq-CvQSATnj.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DSwhwZ3k-CSaWl-zQ.js → BillDetailPage-DfiuLZe8-Ce9yRmQm.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-Y3sdg8vr-eulWXclu.js → BillPayApprovalRuleDetailPage-5_IW6xXJ-Dvdnaki3.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-hF6nVaze-BnghCd19.js → BillPayApprovalRulesPage-CfJZKzVl-CE2_M-K3.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-BwgkXhsU-Bq9cwc_l.js → BillPayPromoPage-DDLOie6P-C6YHZPkv.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-Dz9F0OLg-C93_xcAH.js → BillPaySetUpPage-CSfFU76z-odkaZVOM.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CDdumusu-BSQ5mZ9a.js → BillingSettingsPage-BeXsONDQ-BbnTgDkb.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-BQ79pNCf-CEpEdOQe.js → BillsBulkReviewDrawerPage-C19XWwEC-K20I00y_.js} +1 -1
  30. package/dist/assets/{BoxItem-boLSc1SE-C2V3cWEh.js → BoxItem-DJq5xhLi-BG-pUsKW.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Cp39EL_C-DPdmKaH2.js → BusinessVerificationPage-cUeJO7D8-ByN9_rVE.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-XNpl-R7P-B5ov0C5q.js → CardNumberSubText-RiyeZ4Fi-3S6YZnxr.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-ntByDDMa-CjeQMIiq.js → CashbackDetailPage-BgmrLbkm-Bi8JIg5v.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-D-CZcmOW-CyjYNVBL.js → ChargeCardDetailPage-BfB9DQhO-PoXrGSDN.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-D1NJzMX--BRsERLcq.js → ChargeCardListPage-D5hExQrJ-CEDXeeuX.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-BmGQk4ht-DEDO8U5V.js → ChargeCardListTable-Xe0POHPI-C_aRBrpd.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-BY1dULbG-BOQk33rr.js → ChargeCardPromoPage-C-QZi7WU-7wj0mX09.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-C4PX3JTG-DN_SmBRl.js → ChargeCardSetupPage-CIaAoIaA-D0xfMcck.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-BiM-yT58-DF9Rz4vt.js → ChargeCardStatementsPage-Bta8G5rU-Bxd9GDQ6.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-Cj1kpTwU-DWkIAXDW.js → ChargeCardUtils-MXK7oeC0-D6RsKjLW.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-D8Wesmh3-Hay_lE2r.js → ChaseOverlay-nKLcp0IQ-DyPgaN6P.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-qtOoFuzp-PZgVMUM5.js → CheckDepositDrawerPage-DE9G4ZLn-CMYdeGxw.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-Do0pb5Lu-qtHBZTWo.js → CollapsableReportTable-9Ve7EJza-AqNxaI6j.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-DeRanOdM-CYn2t94Z.js → CompanyOfficerDetailsSection-Dxrw3A0v-CaTwjUfz.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-BTCP55KE-DxIA2Kgo.js → CompanyPassportCard-BLH9mk_K-Do765Ty4.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-yjAO_mG--D-XIvy88.js → CompanyPassportPage-DugSYQVz-BRWVbjGf.js} +1 -1
  47. package/dist/assets/{CompleteProfile-DdOrD2pt-HrNNW1Y7.js → CompleteProfile-DmnsbHlq-DyYFWoMC.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-sNSG2up_-BS-vrnmM.js → ConfettiBurst-BDREKQUf-DKUbjNni.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-Bq9oUnzE-CpG25ii2.js → CreateOrEditVendorPage-Dl6ec-s9-CkmD6cdK.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-2xfyy_iB-DP6O9SUr.js → CreditCardPaymentDrawerPage-Dyb4qL_P-DGVVqzgM.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-CvW-Fcsz-CXaa0G2D.js → CreditCardPaymentPlgSection-BPV1SLmY-C7jSKPJl.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-DXtYsTz_-dQTlHOvB.js → CurrencySelectField-CJb3Y-mb-29nC1opq.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-C5Tf8vxR-w9wWJnBX.js → CustomerOnboardingActivationPage-9iuVWGWw-CdtgmV6n.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-Pw4kXxCj-DIxXsPND.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-C_pZ_Mek-DTQ2JUX-.js → CustomerOnboardingDetailPageSkeleton-jYcjJ0PW-D1CCiZxT.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-DIefPh79-CJ95BLaj.js → CustomerOnboardingNoStepsPage-X-9T5fpG-DxjTi_Dm.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-DvWS1Fu5-D_Sqe41C.js → CustomerOnboardingPage-CtBN8YfR-CGkB_H2s.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-bkjJ76FE-YquW1Oxm.js → CustomerOnboardingProductSuitePage-bDKvS5bh-Duy-Ig0d.js} +1 -1
  59. package/dist/assets/{Dashboard-BIBEEsmW-BeYObmAZ.js → Dashboard-BH5qnfQd-CCuvs67T.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-CJ14rgfy-D6o2sgVt.js → DashboardReportPage-J1VeI2uE-Bu8eUuF5.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-BTCBzIff-fKpKGZqN.js → DashboardSidebarBackgroundAnimation-CXHOxSLP-4l1AB9D9.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-BGEabO5q-BEuL9m_Q.js → DepositAccTransactionItem-BGfoy6o8-BKfG_FHL.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-ByiVlTpi-BDqN3_Ld.js → DepositAccTransactionListPage-a69RARgv-CC4ca2oI.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-BMZuwYyI-DD7uqmMI.js → DomesticWireDetailsPage-DBt6rnIQ-Cqpf-IDY.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-BMuuHIe_-C6sk3TZT.js → DownloadOverlay-DgUHpkeg-D9EplThh.js} +1 -1
  66. package/dist/assets/{DrawerPage-CrIpCiKa-Nbri33S9.js → DrawerPage-B32TCGJ1-DlBcEsnN.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-DlNzfgqT-DCHAk3Yz.js → EditPeoplePage-BPfO6mun-wU23lVWV.js} +1 -1
  68. package/dist/assets/EditReimbursementDetailPage-DKGgXOY7-DLqEBdT-.js +865 -0
  69. package/dist/assets/{EntityDetailPage-DSRvBHpC-BMa47RLv.js → EntityDetailPage-BfHI2iuR-CVcUBkiC.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-9nOAnjkI-BqTlSEba.js → EntitySummarySection-CawV1rm1-D5PJQpxt.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-R3eUdjrH-X8tjo-Ht.js → ExpenseAutomationOverviewPage-BsAt8A9v-BK8BcjCH.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-CKh8vu_w-tEarM0o0.js → ExpenseAutomationPage-aw988_Ii-DHT0WFhA.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-Dduo1mOg-DNV7YrV7.js → ExpressPayPage-CJCdxlh5-y9jOExfe.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-DMRrw9-Y-DWp9ezgs.js → FeaturePreviewPage-CqLkGmd--BXP9O5_K.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-CEQpkklk-Y0e1DNzS.js → FollowStepsSection-Dyn5gNGd-Cpjk-5Ab.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-4VcZ6q0U-0o5Lv_xX.js → GlobalReviewListPage-B9ijztQn-D_Npdays.js} +1 -1
  77. package/dist/assets/{HelpButton-D2VIgqhe-CikEjabe.js → HelpButton-jlgjodRn-BM1z6Ko6.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DnfUYEKn-CCG3m7qR.js → InformationCardStack-BVY3WNAX-CE7DCPLF.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-BcmY7CE8-E-tTnJRR.js → InsightsCardStack-Cq1VFPv0-ClMSDXGQ.js} +1 -1
  80. package/dist/assets/{InsightsSection-DvljGiHX-ByqranmJ.js → InsightsSection-Bp2dI7sk-DQMqItrq.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-_UEZa5LV-Kdr0PwcS.js → IntegrationsSettingsPage-McjwChqZ-D9lZsJnd.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DWNfoLkN-B0-xZyVi.js → InternationalWireSwiftDetailsPage-BSbC9vYS-D96enR1t.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-Dd_gu2i8-D415t1pl.js → InternationalWireVerificationPage-CXKmxcJR-kOmgW9Gg.js} +1 -1
  84. package/dist/assets/{InviteFormPage-D51wJ12d-BLMraIs_.js → InviteFormPage-UVuBwyyT-TSMvggYq.js} +1 -1
  85. package/dist/assets/{InvitePageListView-BooLnbN2-DLQz0rVr.js → InvitePageListView-D3vLBLdn-DjxY9b3S.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-Crh233yV-CwdbTN9k.js → InvitePeoplePage-Dq2c-OEI-BhG4wwyM.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-wg-xymDI-7QWAPep4.js → InvoiceUploadSection-CGiw1Fsl-BqhdArfE.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-CdoWbyWu-BahTnZB6.js → IssueChargeCardPage-DZt48WaC-CBzgdS2l.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-BhmZAbzp-DZf4ElCh.js → LabeledAddressValue-COZIVVuQ-DoFhDxlG.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-Drg5O-US-DbwmMbJK.js → LabeledAddressValueField-BqxCJ214-BeCISlsF.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-BbYnFF5o-CgHKKGrg.js → LabeledControlledCheckBoxField-Ctt5nlNb-BxWNv_F8.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-xcFQjqaM-VO5tpw19.js → LabeledCreatableSingleSelectField-DXxch_y1-CJyXki6j.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-C8pHsM4S-CPPM3Tz-.js → LabeledDocumentField--7BXDK3g-YRWqFfMC.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-Cx5ONCxF-Dvig-n1H.js → LabeledDropDownFormattedTextField-j62_NoR8-C00ox8Xv.js} +1 -1
  95. package/dist/assets/{LabeledText-D5IHVOg0-DTokZ3Wf.js → LabeledText-j7jn7khK-1kY3l2me.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D4LdosVZ-CNQLb7VB.js → LabeledUserSingleSelectWithSubtitlesField-pIek7oI7--tqFNvok.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-zOTYaEh8-x4pjqckW.js → LabeledZeniRolesDropDownField-X2qZXFaF-DpGJz-M1.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-Cjf7vBDA-CkhiSoEX.js → LinkJETransactionPage-DRC88j7z-FCK8U7jy.js} +1 -1
  99. package/dist/assets/{LockCardPage-D-quZPt4-By5NXdU-.js → LockCardPage-BMvHSrDy-DHBB4k1q.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-CDVNL1Ng-BFRy_HyW.js → LowBalancePopup-DVn8qbv_-ybNeezIV.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-X0_WQkYj-B3gBebiQ.js → MagicLinkACHDetailsPage-Bvw_kaVc-FL1VkBF6.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D-C3JyeK-CSa6Ga4n.js → MagicLinkDomesticWireDetailsPage-BkVZ1jpB-Da7sci-J.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-B27G9Xh5-UaM6gXLE.js → MagicLinkInternationalWireDetailsPage-s_vBiYar-9tMEta3k.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-CzNf5Y4Z-BAyEW9oe.js → MagicLinkSuccessPage-BfC_ewro-D5JfIS9N.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-CBQ-D4Ax-c31H1T_K.js → MagicLinkTitleSection-BheV8eRd-YQNBdJjw.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-BMHFJz4W-CDGuL3Yu.js → MailingDetailsSection-dpOFXIy_-ChE90SHL.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-ClAUcXqM-HBKW1kyR.js → MeetingCalenderPopup-Ma-N6si8-DVldPR_b.js} +1 -1
  108. package/dist/assets/{Menu-Cd5A1JNy-e_SIl2iW.js → Menu-CS4snQyL-iEWPQ8Jg.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-CCBp1XGb-DfKbX64b.js → MyBankConnectionsSettingsPage-BNwfq3mV-DvRfS-ot.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-CYYNDJEv-BQZ2VoxI.js → MyPendingActivationChargeCardListPage-CvtCpxZ2-B9s4AD2w.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage--4GywTfD-BZZwGrm5.js → MyProfileSettingsPage-CYHd_uJf-CXL88bXq.js} +1 -1
  112. package/dist/assets/{NavBarWithPicker-BCwWE09x-BuhopnGe.js → NavBarWithPicker-CIwo3-bU-BlAZrmkB.js} +1 -1
  113. package/dist/assets/{NavigationArrow-Bgry4cXl-DAzfOxUH.js → NavigationArrow-Ctsd8z-N-Dey9XvGJ.js} +1 -1
  114. package/dist/assets/{NavigationDots-Ddi6oobs-DxfYtOhs.js → NavigationDots-DGv77DnI-DBz-xiee.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-WtpOSLWM-zMWYGlIP.js → NewGlobalMerchantPage-oyu_zZde-bRSk7vCu.js} +1 -1
  116. package/dist/assets/{NoDataChart-BNlDDQwD-Sl0108ki.js → NoDataChart-CXFwQK_G-CblpjrHE.js} +1 -1
  117. package/dist/assets/{NoDataTable-BS-9P_1q-D0B4frra.js → NoDataTable-DrDufNQl-Xxh0U3Y6.js} +1 -1
  118. package/dist/assets/{NotFoundPage-B9ora6ML-D_jz_LfE.js → NotFoundPage-D5ZkhpVx-Dlj_Efgz.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-Dz8TrJJt-DrRNFqWc.js → NotificationSettingsPage-DV2O4HOU-DYRLZiyD.js} +1 -1
  120. package/dist/assets/{NotificationsListConfig-DFEuYLQn-DUPfNfRl.js → NotificationsListConfig-DzTt3sW7-D7k64tPL.js} +1 -1
  121. package/dist/assets/{NotificationsPage-BC4qwyyR-CN0IvL2c.js → NotificationsPage-pIGEEWO1-D5PlvpRi.js} +1 -1
  122. package/dist/assets/{OpExByVendorPage-BEDrqFvy-46vwHXL-.js → OpExByVendorPage-B5udt4MV-Db0rh8wD.js} +1 -1
  123. package/dist/assets/{OverlayContainerPage-CU1AAMcq-R2gJ3RpC.js → OverlayContainerPage-BrLfNEnQ-COB3BYnt.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-Q6RMHNEP-CNNhzYR9.js → PandLWithForecastPage-BH4-z8YX-CdZe4LXy.js} +1 -1
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DgZaYNuQ-PyR6Yob-.js → PaymentAccountSetupBillingAddressSection-DXtYsHZ5-DYuls--U.js} +1 -1
  126. package/dist/assets/{PeoplePage-B7-DBwAE-uvbgxO_f.js → PeoplePage-CudFyR33-DWYV_q9f.js} +1 -1
  127. package/dist/assets/{PortfolioAllocationFormPage-BYrJIO4G-CKemIwTc.js → PortfolioAllocationFormPage--pbBsqs1-Bdnin9RL.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-CSUj2M7N-B43xGMlq.js → PortfolioDetails-BMo4nZPY-C_OYsbEg.js} +1 -1
  129. package/dist/assets/{ProductsCarousel-CJawWb9Z-BdtwzFSn.js → ProductsCarousel-n8JigLY0-hfuXryxc.js} +1 -1
  130. package/dist/assets/{PromoBaseCards-DBUPttkv-7qEVLUcx.js → PromoBaseCards-C7Gs9HU9-bF3NRHMd.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-XDxex81f-DeVyM9HR.js → QBOConnectionDialog-Bs4TixAR-CkOj_Icl.js} +1 -1
  132. package/dist/assets/{QBOSetupSection-C6N7GK8Z-Ch9cbdvZ.js → QBOSetupSection-CmnpJttN-D-P5eb83.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-C-vED-R4-0-9Pv-eq.js → ReimbursementApprovalRuleDetailPage-JqIc8GYJ-C9mMI_X1.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-BKnffido-bza8Gua_.js → ReimbursementApprovalRulesPage-PnesOCg3-DqiGKhbd.js} +1 -1
  135. package/dist/assets/ReimbursementDetailPage-D22_cS36-Bpcy5-fU.js +314 -0
  136. package/dist/assets/{ReimbursementPromoPage-CSRGTsL--BAhI56PW.js → ReimbursementPromoPage-DIbk9BFN-DVPfxSMn.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-Dt45ZWe6-BIGPDPeN.js → ReimbursementSetUpPage-DS-cwKlv-D_Hm45Ky.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-BPB3gXW9-CF49ycsK.js → ReimbursementsBulkReviewDrawerPage-BLdVlRgq-JaicePT_.js} +1 -1
  139. package/dist/assets/{ReloadCard-C7H9HpbO-_kdesY41.js → ReloadCard-DBa4gyKQ-Buh0vXeY.js} +1 -1
  140. package/dist/assets/{ReportTableViewSelector-CXqW1clk-GSVgkRxB.js → ReportTableViewSelector-DuwAvmlS-BBnfMgKH.js} +1 -1
  141. package/dist/assets/{ReportsPage-cosy_Bbq-OTCGmxc4.js → ReportsPage-WABWxLPG-DKN5DzWh.js} +1 -1
  142. package/dist/assets/{RevenueChart-DUPn_XF8-BDu1SDxr.js → RevenueChart-B5jN8P8V-Bz2uKzvD.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-DH6T7H7g-DH-6NE08.js → ReviewDetailsPage-BudlDfFj-BIOHcwWG.js} +1 -1
  144. package/dist/assets/{ReviewOverlay-D1gSW-Yw-B8hhebw_.js → ReviewOverlay-CckOQNCd-Cqn6hgqy.js} +1 -1
  145. package/dist/assets/{RoleWithToolTip-Cp5gvEZs-DwN1v8Cj.js → RoleWithToolTip-Bur7bxOe-CYEzIvk3.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CnphYKxN-BXYrlUXY.js → ScheduleDetailsFixedAssetsPage-Div2wWri-CXszSt2I.js} +1 -1
  147. package/dist/assets/{ScheduleDetailsPage-C-Aexea6-DU14GLoR.js → ScheduleDetailsPage-DDYQPFGk-CiGVq9tp.js} +1 -1
  148. package/dist/assets/{ScheduleSequenceTable-DcwqaLmf-CGtKtyWB.js → ScheduleSequenceTable-1TRzUR6V-wcPOEmww.js} +1 -1
  149. package/dist/assets/ScreenRoutes-i5d_donU.js +203 -0
  150. package/dist/assets/{SetUpAccountSection-DcPnHW0X-DTztXzhn.js → SetUpAccountSection-Dfs_xZu7-CWFfutWm.js} +1 -1
  151. package/dist/assets/{SetUpDefaultSection-BFPybRJc-BixU69LG.js → SetUpDefaultSection-TtnDS5ad-BZjzQ8Mk.js} +1 -1
  152. package/dist/assets/{SignIn-_2PLYEin-DIx0TRbT.js → SignIn-D3-Ker_M-zn09bTiA.js} +1 -1
  153. package/dist/assets/{SignInScreen-BnzespSp.js → SignInScreen-EsgrSlOr.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-DoOD0SKy-CBwphAUh.js → SpendManagementListViewPage-D0yJ6ZZV-DPeBz9Dm.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-zAut4sVr-Dx6Uwcef.js → SpendManagementPerTabPage-Dfhzyv14-BxpKm9-A.js} +1 -1
  156. package/dist/assets/{SpendManagementSection-DZz_fsH6-BO0X1BhL.js → SpendManagementSection-CNgCznpS-D2Anolaw.js} +1 -1
  157. package/dist/assets/{SpendMgmtSetupAccountSection-CM4RGF3P-CEi1-z0Q.js → SpendMgmtSetupAccountSection-CKg4qknx-DMsYuVmq.js} +1 -1
  158. package/dist/assets/{StatementItem-CgyEvD-b-a_xofKOn.js → StatementItem-Cv3RZsIv-CE3xFXTY.js} +1 -1
  159. package/dist/assets/{StatementsPage-DsIQ8XQY-DrS2pukO.js → StatementsPage-4JEocF4A-CUYYmhxY.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-0FW5MyfZ-Ckzka9NF.js → StatusSwitcher-DbsnK4Pn-QF_adjcm.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-DROmoxUm-DMhWlatK.js → SubTabSwitcher-Di6AZRan-D-fc0CCz.js} +1 -1
  162. package/dist/assets/{SummaryCard-CvqpWY1e-CSF6-9Tw.js → SummaryCard-BbqP93PD-DCBLhe4V.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-BlRUCsH2-CR3T4qHe.js → TaskManagementPage-BJhjliCJ-Dgf8KAM1.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-DaSDSBJg-D8rwcFXC.js → TimeRangeSwitcher-MsG4Kt2X-hRGxoqg7.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-CQXRt_ve-_zsfOZYb.js → TimeframeSwitcher-Cv7wfQSS--wV3l3C4.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-DRxK4ucX-Dt89QoOS.js → TimeframeSwitcherWithToggle-CXnzJ3Ip-DVUB_GmO.js} +1 -1
  167. package/dist/assets/{TopExCard-Bx4hv8bP-CJJoCX_h.js → TopExCard-Bb0F0Re9-BGQwgN2R.js} +1 -1
  168. package/dist/assets/{TopExDetailPage-WwjISiBR-Cf2e4GFX.js → TopExDetailPage-BgRX-60I-Dvt1aqR4.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-DZxj6ERf-6l8yINyG.js → TransactionDetailPage-C1clpiWS-CjTAZZDd.js} +1 -1
  170. package/dist/assets/{TransactionList-CS0vdVOy-BhTABrNB.js → TransactionList-DqlnGjYa-CR04FLWL.js} +1 -1
  171. package/dist/assets/{TransactionListBig-EJgfLOeO-88TXRgl4.js → TransactionListBig-CCuDCegl-nebtbqVL.js} +1 -1
  172. package/dist/assets/{TransactionListPage-B7HHD_XG-DWoC2vGy.js → TransactionListPage-B1TxgyxD-BG9D6Llv.js} +1 -1
  173. package/dist/assets/{TransactionVendorDetailPage-91nT0xN2-BefYRztA.js → TransactionVendorDetailPage-BYWPYZkV-DmR3luWN.js} +1 -1
  174. package/dist/assets/{TransferDrawerPage-DRnmOKbS-XYkHz5Q1.js → TransferDrawerPage-Cx4Qxlnr-KKZmPzs2.js} +1 -1
  175. package/dist/assets/{TreasuryOverviewPage-BL6F3EAV-BG3QG9B9.js → TreasuryOverviewPage-B0scZon9-BtBCUnCW.js} +1 -1
  176. package/dist/assets/{TreasuryPromoPage-EgoFyZHZ-DAFbRUib.js → TreasuryPromoPage-Cs6MvdWT-CmcGtneC.js} +1 -1
  177. package/dist/assets/{TreasurySetupPage-CNEy8TpS-DIs9Un6S.js → TreasurySetupPage-BT3fZK16-DjGogfn_.js} +1 -1
  178. package/dist/assets/{TreasuryStatementsPage-CpHtCiHi-BWaLA3-u.js → TreasuryStatementsPage-Cj28uTCq-DnMgkVai.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-B4MAEQMq-Co2rZ51I.js → TreasuryTaxLetterPage-C6fYejXM-CXfwlQFb.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-BCLp7kS2-bG4fJ74_.js → TreasuryTransferOrReviewPage-DMaGU-Gd-CFr5ChKO.js} +1 -1
  181. package/dist/assets/{TrendChart-BnJ_z_Ip-8PP2Ttx5.js → TrendChart-UOHctvPR-DYyf53nB.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-D1U0xBzL-DWMtMU3P.js → TrendWithTransactions-DeXSoeh9-DHeP6Kmv.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-Bo9l9uDw-w1Di1v2h.js → UncategorizedAccountsMappingPage-BY8Y7Cfi-DtDaq4sQ.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-68TmJxRI-ClTOV1Ga.js → UnitIntegrationPage-TSdJXoyv-Cz-xulb6.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-Cgxo-kPs-7HE8RrRn.js → UploadAdditionalDocumentOverlay-GdA3H_LM-C69p4BvM.js} +1 -1
  186. package/dist/assets/{Vendor2FAPopup-D0T-_56--Bozo8IGD.js → Vendor2FAPopup-ga_dxJ2i-DbustIG7.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-CXuz8qCs-BgCQ8sKJ.js → VendorACHDetailsPage-C0KPsWem-wXaugjAY.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-XdXKT6C6-BpBs_08w.js → VendorDetailPage-DtHbNBi2-AhAahu41.js} +1 -1
  189. package/dist/assets/{VendorDomesticWireDetailsPage-D9bM52Dq-lQS5Eb9R.js → VendorDomesticWireDetailsPage-BRePkxjz-C_zV_um3.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-BycAdkCM-BF1uBaWN.js → VendorFiling1099EditablePage-B9lgKnIN-DWOqfHoH.js} +1 -1
  191. package/dist/assets/{VendorFirstReviewPage-DJ20U30K-C2xMC5RA.js → VendorFirstReviewPage-fnjh1JBs-eKAAo5iG.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-CWM0qUI5-BvZcZxTa.js → VendorInternationalWireDetailsPage-B8mSTYwi-B8Dw9bcv.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-C25EI591-DNZMv76Z.js → VendorInternationalWireSwiftDetailsPage-D7FYPVgc-BT4ij3cX.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-COdnN_-5-C6RZj4jP.js → VendorsAccountsSection-B5a7wuJN-D5T-paLW.js} +1 -1
  195. package/dist/assets/{VerifyDevice-DgUJHRD4-BmpB5n1i.js → VerifyDevice-CVJF9lwM-CPuvMYue.js} +1 -1
  196. package/dist/assets/{VideoPlayer-BpmcTJBM-DQk9qndK.js → VideoPlayer-DloIycOu-CLtG3Kiy.js} +1 -1
  197. package/dist/assets/{VideoPopup-B0Mebd5O-CsEoP_3Y.js → VideoPopup-D2oWKmZt-DPTUFVjt.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-BA9frFhl-unl68OuI.js → WarningsDrawerPage-DW-8IxrS-DOJH3-n7.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-CFLHbicW-BNiCHSEL.js → ZeniAccountDetailPage-CF5PQDtn-DCaodhL6.js} +1 -1
  200. package/dist/assets/{ZeniAccountListViewPage-CLFp-HZC-C7ZhyLPF.js → ZeniAccountListViewPage-Dvzgoo-B-DJDpKPpC.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-Ckl-FxuF-DQRfXbZ_.js → ZeniAccountNavBarPieces-D7qqcIZ7-Ckj10NZU.js} +1 -1
  202. package/dist/assets/{ZeniAccountPromoPage-UY251u5Y-YgCmw_Dj.js → ZeniAccountPromoPage-DD-ZYLox-Bmu7d_Bc.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-Dyd_JQIP-CN5J54Fo.js → ZeniAccountSetupPage-ChTNTxo4-BfQrSTN7.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-BsZ2nX3I-BqG8KaP3.js → ZeniCopyright-D7A5qQVt-DD6lHGWl.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-DZV7XopX-CeQL-F7u.js → ZeniTransferAmountSlider-Clmv0ILZ-CusxQjDl.js} +1 -1
  206. package/dist/assets/{analyticsHelper-CGgt_qXV-B8CI40B8.js → analyticsHelper-Dn0mlAnz-iXePQX9C.js} +1 -1
  207. package/dist/assets/{analyticsHelper-CGnQfI5F.js → analyticsHelper-YKy7IxaP.js} +1 -1
  208. package/dist/assets/{chartTypes-CrYCtn5W-vvFJxyhx.js → chartTypes-A8wR1KBw-DpEneA3z.js} +1 -1
  209. package/dist/assets/{commonDimensions-CzZEAJMD-CXd4nX_H.js → commonDimensions-BT_as0IS-D3xsa4S9.js} +1 -1
  210. package/dist/assets/{crypto-cQYYQPTZ.js → crypto-Cicc6Fs8.js} +1 -1
  211. package/dist/assets/{detailCommon-DCm_e5wl-Dmz384l1.js → detailCommon-DppzaL-S-BgbDmqrB.js} +1 -1
  212. package/dist/assets/{downloadPdf-wjda1Kbt-CA-h_1ts.js → downloadPdf-CdA_CkNA-Bv6C7tQF.js} +1 -1
  213. package/dist/assets/{index-utnCtAcO.js → index-DI0MUGC6.js} +12 -12
  214. package/dist/assets/{lodash-D52QloPU.js → lodash-B66NTFTY.js} +6 -6
  215. package/dist/assets/{mapLoadingInProgressToTreeNode-CegpKrCb-CAUjmmc6.js → mapLoadingInProgressToTreeNode-_eXCwZ49-D7g990MI.js} +1 -1
  216. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DmY1QvVV-Dyd_eDPt.js → mapSectionWithAcOnlyToTreeNode-Ch0t_vs_-BO4dZMxU.js} +1 -1
  217. package/dist/assets/{mapSpacerToTreeNode-CBqkMj---cnP7d7US.js → mapSpacerToTreeNode-DV0UxtV9-m8YDFU8F.js} +1 -1
  218. package/dist/assets/{mapTimeframeBalancesToTreeNode-DN0p6EVx-p9sZxSMW.js → mapTimeframeBalancesToTreeNode-Mxxnpeq7-aaSrDsH6.js} +1 -1
  219. package/dist/assets/{mapTimeframeBalancesToTreeNode-BdXepUFS-C5CRbd-m.js → mapTimeframeBalancesToTreeNode-puf5eiMx-Bhs3Sn9u.js} +1 -1
  220. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D-hyDelr-Chgczrza.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B-W32Tm--Bv0I7MdF.js} +1 -1
  221. package/dist/assets/{toCOABalancesWithID-DcVKFWfH-ajwPTNjs.js → toCOABalancesWithID-CibeBR5w-DKx7lCaE.js} +1 -1
  222. package/dist/assets/{toChartData-CP77kYFN-WRS6hFfm.js → toChartData-D_R7lWVz-CD840bWJ.js} +1 -1
  223. package/dist/assets/{treasuryColorHelper-CAu0BSpC-PtGGDUlY.js → treasuryColorHelper-DudgBZZp-BB3FFLUP.js} +1 -1
  224. package/dist/assets/{uploadAttachment-NIzZa4c9-SVWT7q9X.js → uploadAttachment-DxrjP0NZ-kkI8V1hd.js} +1 -1
  225. package/dist/assets/{uploadReceipts-9DTOr0BG-DzIqT4ou.js → uploadReceipts-TOfVnojh-B2rywoul.js} +1 -1
  226. package/dist/index.html +1 -1
  227. package/package.json +9 -6
  228. package/dist/assets/CustomerOnboardingContainerPage-BQFnoCtd-B1bzOmSi.js +0 -1
  229. package/dist/assets/EditReimbursementDetailPage-Dqbs8qjg--rlw1Sms.js +0 -865
  230. package/dist/assets/ReimbursementDetailPage-DAw7ua01-D987A0H2.js +0 -314
  231. package/dist/assets/ScreenRoutes-GxRTI4h2.js +0 -206
@@ -1,4 +1,4 @@
1
- import{j as e,O as Q,o as n,ji as V,am as X,a9 as G,c as H,q as J,aN as B,y as L,c5 as f,h as I,cw as _,ai as N,dM as Z,a$ as ee,b6 as ie,bP as se,bX as ne,an as le,dr as oe,u as te}from"./index-utnCtAcO.js";import{n as s,b as re}from"./vendor-Bs1fkIUX.js";import{l as ae}from"./treasuryColorHelper-CAu0BSpC-PtGGDUlY.js";const{common:r,spendManagement:{treasury:o},dateFormat:de}=Q.getLocalizedStrings(),w={portfolioYieldMarginTop:new L(-4,te[0]),sliderWidth:new L(143,177)},Le=({isInReview:i,isSetup:l,fundDetails:m,allocation:d,amount:h,fundAllocations:v,page:j})=>{const a=ce(m);return e.jsxs(he,{children:[!l&&e.jsx(me,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${o.portfolioAllocation.title}`}),a.map(($,x)=>{const A=v?.find(g=>g.fundCode===m[x].fundCode)?.amount;return e.jsx(pe,{portfolio:$,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:l,isLast:x===a.length-1,amount:h,currentAllocationAmount:A,page:j},m[x]?.fundCode||x)})]})},ce=i=>i.map(l=>[{label:o.promoPage.liquidity,value:l.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:V(l.fundSize,l.currencyCode)},{label:o.promoPage.maturity,value:`${l.maturity} ${r.timeStrings.days}`},{label:o.promoPage.expenseRatio,value:`${l.expenseRatio}${o.promoPage.expenseRatioSuffix}`},{label:o.promoPage.riskRating,value:l.riskRating||r.strings.hyphen},{label:o.promoPage.composition,value:Array.isArray(l.compositions)&&l.compositions.length>0?`${l.compositions[0].investedIn} ${l.compositions[0].percentage}${r.strings.percentage}`:r.strings.hyphen,tag:Array.isArray(l.compositions)&&l.compositions.length>1?`+${l.compositions.length-1}`:void 0,compositions:l.compositions??[]}]),pe=({portfolio:i,fund:l,fundIndex:m,allocationPercentage:d,isInReview:h,isSetup:v,isLast:j,amount:a,currentAllocationAmount:$,page:x})=>{const A=G().analytics,g=H(),t=J(),b=$?$.amount:a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,K]=re.useState(!1),u=ae(m,g),S=()=>{p||A.trackTreasuryProspectusClick(l.fundName,l.fundCode,x),K(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{children:e.jsxs(ue,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(fe,{windowSize:t,children:[e.jsxs(ye,{isInReview:h,windowSize:t,children:[e.jsx(we,{children:l.fundCode}),e.jsx(ve,{color:u.fundNameColor,children:`${l.fundCompanyName} ${l.fundName}`})]}),t!=="small"&&e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:h?e.jsxs(O,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(F,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs($e,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(O,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,style:{marginRight:n.sp3},children:[l.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(Te,{children:v?e.jsxs(Ae,{children:[e.jsxs(Re,{children:[e.jsxs(We,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}),e.jsxs(z,{onClick:S,style:{marginBottom:n.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}):h?e.jsxs(Ye,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(F,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(z,{onClick:S,style:{margin:`${n.sp2} ${n.sp0}`,...j?{marginBottom:n.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}):e.jsxs(Ie,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(Se,{children:[e.jsx(k,{children:l.description}),e.jsx(be,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Ce,{windowSize:t,children:[e.jsx(k,{children:r.strings.dividerDot}),e.jsx(k,{style:{minWidth:"140px"},children:c.label}),e.jsxs(k,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:g.colors.primary,borderBottom:`1px solid ${g.colors.grey3}`,width:"100%",padding:`${n.sp1} ${n.sp0}`,display:"flex",flexDirection:"row",alignItems:"center",gap:n.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(q=>({text:`${r.strings.dividerDot} ${q.investedIn}`,amount:`${q.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${n.sp3}`},children:e.jsx(De,{children:c.tag})})]})]},c.label))}),e.jsxs(Pe,{onClick:()=>window.open(l.url,"_blank"),children:[e.jsx(je,{children:`${o.promoPage.asOf} ${l.asOfDate.format(de.visual.MMMDCommaYYYYformat)}`}),e.jsx(ze,{})]})]}),(!j||v)&&e.jsx(ke,{style:{width:"100%",marginBottom:n.sp3}})]})},xe=s.div`
1
+ import{j as e,O as Q,o as n,ji as V,am as X,a9 as G,c as H,q as J,aN as B,y as L,c5 as f,h as I,cw as _,ai as N,dM as Z,a$ as ee,b6 as ie,bP as se,bX as ne,an as le,dr as oe,u as te}from"./index-DI0MUGC6.js";import{n as s,b as re}from"./vendor-Bs1fkIUX.js";import{l as ae}from"./treasuryColorHelper-DudgBZZp-BB3FFLUP.js";const{common:r,spendManagement:{treasury:o},dateFormat:de}=Q.getLocalizedStrings(),w={portfolioYieldMarginTop:new L(-4,te[0]),sliderWidth:new L(143,177)},Le=({isInReview:i,isSetup:l,fundDetails:m,allocation:d,amount:h,fundAllocations:v,page:j})=>{const a=ce(m);return e.jsxs(he,{children:[!l&&e.jsx(me,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${o.portfolioAllocation.title}`}),a.map(($,x)=>{const A=v?.find(g=>g.fundCode===m[x].fundCode)?.amount;return e.jsx(pe,{portfolio:$,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:l,isLast:x===a.length-1,amount:h,currentAllocationAmount:A,page:j},m[x]?.fundCode||x)})]})},ce=i=>i.map(l=>[{label:o.promoPage.liquidity,value:l.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:V(l.fundSize,l.currencyCode)},{label:o.promoPage.maturity,value:`${l.maturity} ${r.timeStrings.days}`},{label:o.promoPage.expenseRatio,value:`${l.expenseRatio}${o.promoPage.expenseRatioSuffix}`},{label:o.promoPage.riskRating,value:l.riskRating||r.strings.hyphen},{label:o.promoPage.composition,value:Array.isArray(l.compositions)&&l.compositions.length>0?`${l.compositions[0].investedIn} ${l.compositions[0].percentage}${r.strings.percentage}`:r.strings.hyphen,tag:Array.isArray(l.compositions)&&l.compositions.length>1?`+${l.compositions.length-1}`:void 0,compositions:l.compositions??[]}]),pe=({portfolio:i,fund:l,fundIndex:m,allocationPercentage:d,isInReview:h,isSetup:v,isLast:j,amount:a,currentAllocationAmount:$,page:x})=>{const A=G().analytics,g=H(),t=J(),b=$?$.amount:a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,K]=re.useState(!1),u=ae(m,g),S=()=>{p||A.trackTreasuryProspectusClick(l.fundName,l.fundCode,x),K(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{children:e.jsxs(ue,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(fe,{windowSize:t,children:[e.jsxs(ye,{isInReview:h,windowSize:t,children:[e.jsx(we,{children:l.fundCode}),e.jsx(ve,{color:u.fundNameColor,children:`${l.fundCompanyName} ${l.fundName}`})]}),t!=="small"&&e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:h?e.jsxs(O,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(F,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs($e,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(O,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,style:{marginRight:n.sp3},children:[l.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(Te,{children:v?e.jsxs(Ae,{children:[e.jsxs(Re,{children:[e.jsxs(We,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}),e.jsxs(z,{onClick:S,style:{marginBottom:n.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}):h?e.jsxs(Ye,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(F,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(z,{onClick:S,style:{margin:`${n.sp2} ${n.sp0}`,...j?{marginBottom:n.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}):e.jsxs(Ie,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(Se,{children:[e.jsx(k,{children:l.description}),e.jsx(be,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Ce,{windowSize:t,children:[e.jsx(k,{children:r.strings.dividerDot}),e.jsx(k,{style:{minWidth:"140px"},children:c.label}),e.jsxs(k,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:g.colors.primary,borderBottom:`1px solid ${g.colors.grey3}`,width:"100%",padding:`${n.sp1} ${n.sp0}`,display:"flex",flexDirection:"row",alignItems:"center",gap:n.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(q=>({text:`${r.strings.dividerDot} ${q.investedIn}`,amount:`${q.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${n.sp3}`},children:e.jsx(De,{children:c.tag})})]})]},c.label))}),e.jsxs(Pe,{onClick:()=>window.open(l.url,"_blank"),children:[e.jsx(je,{children:`${o.promoPage.asOf} ${l.asOfDate.format(de.visual.MMMDCommaYYYYformat)}`}),e.jsx(ze,{})]})]}),(!j||v)&&e.jsx(ke,{style:{width:"100%",marginBottom:n.sp3}})]})},xe=s.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  gap: ${n.sp2};
@@ -1,4 +1,4 @@
1
- import{O as T,j as t,a9 as F,o as l,cg as U,a$ as N,u as q,dq as G,ar as H,am as X,dr as J,h as y}from"./index-utnCtAcO.js";import{b as $,n as i}from"./vendor-Bs1fkIUX.js";const u=T.getLocalizedStrings(),w={large:{labelComp:G,title:H,subtitle:X,seeMoreLink:X}},Y={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=Y.large,K=i.div`
1
+ import{O as T,j as t,a9 as F,o as l,cg as U,a$ as N,u as q,dq as G,ar as H,am as X,dr as J,h as y}from"./index-DI0MUGC6.js";import{b as $,n as i}from"./vendor-Bs1fkIUX.js";const u=T.getLocalizedStrings(),w={large:{labelComp:G,title:H,subtitle:X,seeMoreLink:X}},Y={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=Y.large,K=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{q as c,j as r,dv as b,dw as v,dx as L,bB as z,y as a,o as e,h as d,b as f,u as l}from"./index-utnCtAcO.js";import{i,n as p,k as m}from"./vendor-Bs1fkIUX.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:x,style:$})=>{const n=c();return r.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,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:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,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{q as c,j as r,dv as b,dw as v,dx as L,bB as z,y as a,o as e,h as d,b as f,u as l}from"./index-DI0MUGC6.js";import{i,n as p,k as m}from"./vendor-Bs1fkIUX.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:x,style:$})=>{const n=c();return r.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,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:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,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,4 +1,4 @@
1
- import{q as w,O as t,j as n,c4 as j,n as l,y as s,o as i,ar as y,am as P,ag as f,bz as b,f1 as v,u as a}from"./index-utnCtAcO.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const 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{q as w,O as t,j as n,c4 as j,n as l,y as s,o as i,ar as y,am as P,ag as f,bz as b,f1 as v,u as a}from"./index-DI0MUGC6.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-Cicc6Fs8.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`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{q as C,O as u,j as i,n as k,o,y as a,h as d,fJ as T,b as E,ag as W,bz as q,f1 as B,fH as H,aU as w,ai as $,u as t}from"./index-utnCtAcO.js";import{n as s}from"./vendor-Bs1fkIUX.js";import I from"./QBOConnectionDialog-XDxex81f-DeVyM9HR.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},A={title:new E("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=C(),{qbo_connection:b}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:z,button:v,errorText:P,requiredText:O}=b;return i.jsxs(G,{windowSize:n,children:[i.jsxs(N,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(_,{}):i.jsx(K,{})}):null,i.jsx(Q,{windowSize:n,children:S})]}),i.jsxs(D,{windowSize:n,children:[i.jsxs(J,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(F,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(M,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:O})}):null]}),i.jsx(I,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(H,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},G=s.div`
1
+ import{q as C,O as u,j as i,n as k,o,y as a,h as d,fJ as T,b as E,ag as W,bz as q,f1 as B,fH as H,aU as w,ai as $,u as t}from"./index-DI0MUGC6.js";import{n as s}from"./vendor-Bs1fkIUX.js";import I from"./QBOConnectionDialog-Bs4TixAR-CkOj_Icl.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},A={title:new E("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=C(),{qbo_connection:b}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:S,sucessText:z,button:v,errorText:P,requiredText:O}=b;return i.jsxs(G,{windowSize:n,children:[i.jsxs(N,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(_,{}):i.jsx(K,{})}):null,i.jsx(Q,{windowSize:n,children:S})]}),i.jsxs(D,{windowSize:n,children:[i.jsxs(J,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(F,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(M,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:O})}):null]}),i.jsx(I,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(H,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},G=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as O,u as U,c as M,q as W,O as D,aa as G,aP as J,j as s,aJ as Q,cS as X,bF as H,ad as K,aQ as Y,o as f}from"./index-utnCtAcO.js";import{b as j,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as B,o as L}from"./FollowStepsSection-CEQpkklk-Y0e1DNzS.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:E,onSaveRuleSuccess:S}){const _=M(),A=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=J(u?.fetchState),{upperBound:w}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const q=g.handleSubmit(()=>{E()}),V=async(i,p)=>{b(p)};return j.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),j.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&S()},[P,u?.fetchState,S]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:_.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:C($),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(A)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:B},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Se=e=>`${e}`,se=h.div`
1
+ import{y as O,u as U,c as M,q as W,O as D,aa as G,aP as J,j as s,aJ as Q,cS as X,bF as H,ad as K,aQ as Y,o as f}from"./index-DI0MUGC6.js";import{b as j,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as B,o as L}from"./FollowStepsSection-Dyn5gNGd-Cpjk-5Ab.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-Cicc6Fs8.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:E,onSaveRuleSuccess:S}){const _=M(),A=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=J(u?.fetchState),{upperBound:w}=x,{allApprovalRules:n,allAccountingClasses:F,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const q=g.handleSubmit(()=>{E()}),V=async(i,p)=>{b(p)};return j.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),j.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&S()},[P,u?.fetchState,S]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:_.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:C($),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:F,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent:A==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(A)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),L(e.allAttributes),L(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:B},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:B},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Se=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{c as M,q as B,O as y,j as o,bF as E,P as H,aM as S,o as t,y as r,am as L,aN as z,cD as G,cE as U,cF as q,dd as F,u as l,b8 as O,b as P,b7 as V,h as j,da as _,bx as K,C as Y}from"./index-utnCtAcO.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=i.div`
1
+ import{c as M,q as B,O as y,j as o,bF as E,P as H,aM as S,o as t,y as r,am as L,aN as z,cD as G,cE as U,cF as q,dd as F,u as l,b8 as O,b as P,b7 as V,h as j,da as _,bx as K,C as Y}from"./index-DI0MUGC6.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-Cicc6Fs8.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},N={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:n,children:[o.jsxs(ae,{children:[o.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ne,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:n,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,A)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(le,{children:a.requireText}):o.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},A))})}),g?o.jsx(G,{titleComponent:o.jsx(q,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Q=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -0,0 +1,314 @@
1
+ import{ax as Mt,a9 as Rt,q as Pt,c as Bt,cr as Nt,y as m,O as Ze,l as ie,gr as Lt,gt as Ot,gu as _t,j as t,cD as ke,cE as Ae,cF as Me,aM as y,bF as Re,bs as Wt,dN as Et,gv as Ft,gG as Pe,o as a,gw as Be,fu as b,fw as w,gz as x,aN as Ne,ft as Le,C as F,gB as Oe,aQ as Kt,ap as Ut,gC as Vt,gD as ae,bB as Gt,gE as Yt,A as Ht,b as qt,H as Jt,am as et,b8 as tt,h as K,an as Qt,c7 as Xt,ai as Zt,gV as ei,gR as ti,u as c,cw as ii,d8 as ai}from"./index-DI0MUGC6.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ri}from"./liveblocks-8ht9CoL5.js";import oi from"./InvoiceUploadSection-CGiw1Fsl-BqhdArfE.js";import{r as ni,h as f,u as li}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-Cicc6Fs8.js";import"./AttachmentView-ChgqlLZN-CRfLn9o5.js";import"./uploadReceipts-TOfVnojh-B2rywoul.js";const s={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},si={formTitle:new qt("h6Regular","h5Regular")},aa=({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=Mt(),st=Rt().analytics,o=Pt(),ye=Bt(),[dt,z]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=l=>{const n=ge.current[l];n!=null&&setTimeout(()=>li(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const l=window.location.hash;if(l&&l.startsWith("#L")){const n=l.substring(1);be(n)}},[]);const ut=()=>{V()};Nt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},D=s.labelWidth.value(o),k=s.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=di(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},Se=()=>{rt()},Tt={onOkClick:l=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:l})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),je()):(J("rejected"),H(!0))},Dt=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??Dt,It=e.remiDetails?.lines?.some(l=>{const n=l.lineDetail;return n?.account?.isDeleted===!0&&n?.account?.isBillEditableCoaAccountType===!1})??!1,De=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at&&!It,Ct=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,zt=ni(e.duplicateLineByLineId),Ie=e.duplicateReimbursementStatus.fetchState==="Completed"&&zt>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Lt),{threads:M,isLoading:I}=Ot({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(l=>l.resolved===!1&&!l.id.includes(_t)),[M]).length,At=p.useCallback((l,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!I&&(E(te.threadId),Ce(null))},[te,M,I,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Ni,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(zi,{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(Di,{}):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(Mi,{children:[u?t.jsxs(Ri,{isDisabled:I,onClick:I?()=>null:l=>{l.preventDefault(),l.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=>Et(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(Wt,{count:I?void 0:kt,isLoading:I,style:{left:"12px"}}),t.jsx(Pi,{})]}):null,t.jsx(Bi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(Ai,{})})]}),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(Ft,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((l,n)=>{const v=e.duplicateLineByLineId[l.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(Wi,{windowSize:o,children:t.jsx(Ei,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(oi,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:l.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(_i,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):Ie?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(yi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${l.lineId}`]=ze)},children:[o!=="small"?t.jsx(hi,{children:t.jsx(gi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(bi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(pi,{children:[i.thisExpenseReview," ",t.jsx(ui,{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:l.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,l.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:l.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),l.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:l.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:l.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:l.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:D},text:l.homeCurrencyConversions!=null?Ne("0,0[.]00",l.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:D},text:l.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:D},text:l.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:D},text:l.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Oi,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},l.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(ci,{windowSize:o,children:[t.jsx(Li,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(mi,{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(Fi,{})]}),$e||W===!0?null:t.jsxs(Ci,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:l=>{l.stopPropagation(),G===!0&&Y(!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:St,style:{width:s.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:s.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(wi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Ut,{onClickAway:()=>Y(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(ji,{windowSize:o,children:[!R&&De?t.jsx(Ti,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx(vi,{})}):null,!R&&Ct===!0?t.jsx($i,{windowSize:o,showEditIcon:De,children:t.jsx(fi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ri,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:I,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(l,n)=>At(l,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},di=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"}},ci=r.div`
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
5
+ `,mi=r.div`
6
+ margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
7
+ margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
8
+ margin-bottom: ${e=>s.activityBottomMargin.valuePx(e.windowSize)};
9
+ `,pi=r(Qt)`
10
+ padding: ${a.sp2} ${a.sp0} ${a.sp2} ${a.sp4};
11
+ background-color: ${K.alertLight};
12
+ color: ${K.brandColorGoldDark};
13
+ border-top-left-radius: inherit;
14
+ border-top-right-radius: inherit;
15
+ `,ui=r.span`
16
+ border-bottom: 1px solid currentColor;
17
+ cursor: pointer;
18
+ `,_e=r.div`
19
+ display: flex;
20
+ gap: ${a.sp2};
21
+ padding: ${a.sp3};
22
+ border-radius: ${a.sp2};
23
+ align-items: start;
24
+ margin-top: ${e=>s.duplicateBannerWrapperMarginTop.valuePx(e.size)};
25
+ margin-right: ${e=>s.duplicateBannerWrapperMarginRight.valuePx(e.size)};
26
+ margin-bottom: ${e=>s.duplicateBannerWrapperMarginBottom.valuePx(e.size)};
27
+ margin-left: ${e=>s.duplicateBannerWrapperMarginLeft.valuePx(e.size)};
28
+ background-color: ${K.alertLight};
29
+ border: 1px solid ${e=>e.theme.colors.brandColorGoldDark};
30
+ `,We=r(ii)`
31
+ color: ${e=>e.theme.colors.brandColorGoldDark};
32
+ `,Ee=r.div`
33
+ width: 100%;
34
+ `,Fe=r(et)`
35
+ color: ${e=>e.theme.colors.brandColorGoldDark};
36
+ `,Ke=r(ai)`
37
+ width: ${a.sp4};
38
+ height: ${a.sp4};
39
+ color: ${K.brandColorGoldDark};
40
+ `,Ue=r(et)`
41
+ margin-bottom: ${e=>s.bottomMargin.valuePx(e.windowSize)};
42
+ margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
43
+ margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
44
+ color: ${e=>e.theme.colors.primary};
45
+ `,hi=r.div`
46
+ display: flex;
47
+ justify-content: space-between;
48
+ `,yi=r.div`
49
+ margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
50
+ margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
51
+ `,gi=r(tt)`
52
+ color: ${e=>e.theme.colors.primary};
53
+ margin-bottom: ${a.sp3};
54
+ `,bi=r.div`
55
+ display: flex;
56
+ flex-direction: column;
57
+ background-color: ${e=>e.theme.colors.grey5};
58
+ border: 1px solid ${e=>e.theme.colors.grey3};
59
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
60
+ border-radius: ${a.sp2};
61
+ margin-bottom: ${e=>s.formBottomMargin.valuePx(e.windowSize)};
62
+ z-index: 3;
63
+ `,wi=r.div`
64
+ display: flex;
65
+ justify-content: flex-end;
66
+ `,xi=r.div`
67
+ width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
68
+ `,fi=r(ti)`
69
+ cursor: pointer;
70
+ color: ${e=>e.theme.colors.hero};
71
+ width: ${a.sp5};
72
+ height: ${a.sp5};
73
+ &:hover {
74
+ color: ${e=>e.theme.colors.primary};
75
+ }
76
+ `,$i=r.div`
77
+ display: flex;
78
+ margin-left: ${e=>e.windowSize==="small"?e.showEditIcon===!0?a.sp3:a.sp4:a.sp5};
79
+ cursor: pointer;
80
+ color: ${e=>e.theme.colors.grey1};
81
+ &:hover {
82
+ color: ${e=>e.theme.colors.primary};
83
+ }
84
+ `,vi=r(ei)`
85
+ cursor: pointer;
86
+ color: ${e=>e.theme.colors.hero};
87
+ width: ${a.sp5};
88
+ height: ${a.sp5};
89
+ &:hover {
90
+ color: ${e=>e.theme.colors.primary};
91
+ }
92
+ `,Ti=r.div`
93
+ display: flex;
94
+ cursor: pointer;
95
+ color: ${e=>e.theme.colors.grey1};
96
+ margin-left: ${a.sp4};
97
+ &:hover {
98
+ color: ${e=>e.theme.colors.primary};
99
+ }
100
+ `,Ve=r(tt)`
101
+ display: flex;
102
+ color: ${e=>e.borderColor};
103
+ align-items: center;
104
+ justify-content: flex-end;
105
+ margin-left: ${a.sp3};
106
+ padding: 1px 6px 1px 6px;
107
+ border: ${e=>`1px solid ${e.borderColor}`};
108
+ border-radius: ${a.sp1};
109
+ min-width: fit-content;
110
+ max-width: fit-content;
111
+ `,ji=r.div`
112
+ display: flex;
113
+ justify-content: center;
114
+ align-items: center;
115
+ `,Si=r.div`
116
+ display: flex;
117
+ width: max-content;
118
+ align-items: center;
119
+ justify-content: center;
120
+ flex-direction: column;
121
+ background-color: ${e=>e.theme.colors.grey5};
122
+ color: ${e=>e.theme.colors.hero};
123
+ cursor: pointer;
124
+ padding-top: ${a.sp1};
125
+ padding-bottom: ${a.sp1};
126
+ position: absolute;
127
+ bottom: ${e=>s.otherActionsContainerBottom.valuePx(e.windowSize)};
128
+ z-index: 3;
129
+ border: ${e=>`1px solid ${e.theme.colors.grey3}`};
130
+ border-radius: ${a.sp1};
131
+ right: ${e=>s.right.valuePx(e.windowSize)};
132
+ box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.grey1} 3D`};
133
+ `,Di=r.div`
134
+ position: fixed;
135
+ top: 0;
136
+ left: 42vw;
137
+ width: 100%;
138
+ height: 100vh;
139
+ background: transparent;
140
+ box-shadow: 0 2px ${a.sp1} ${({theme:e})=>e.colors.dropShadowNormal};
141
+ pointer-events: none;
142
+ z-index: 1;
143
+ `,Ii=r.div`
144
+ width: auto;
145
+ justify-content: flex-end;
146
+ position: ${e=>e.windowSize==="small"?"static":"relative"};
147
+ right: ${e=>s.actionsContainerRight.valuePx(e.windowSize)};
148
+ height: 100%;
149
+ display: flex;
150
+ `,re=r(Zt)`
151
+ display: flex;
152
+ align-items: center;
153
+ width: 100%;
154
+ padding-left: ${a.sp3};
155
+ padding-right: ${a.sp3};
156
+ height: ${a.sp6};
157
+ box-sizing: border-box;
158
+ &:hover {
159
+ background-color: ${e=>e.theme.colors.background};
160
+ }
161
+ `,Ci=r.div`
162
+ display: flex;
163
+ width: 100%;
164
+ position: sticky;
165
+ bottom: 0;
166
+ z-index: 2;
167
+ `,zi=r.div`
168
+ min-height: ${e=>s.navBarHeight.valuePx(e.windowSize)};
169
+ height: ${e=>s.navBarHeight.valuePx(e.windowSize)};
170
+ display: flex;
171
+ align-items: center;
172
+ width: 100%;
173
+ justify-content: space-between;
174
+ position: fixed;
175
+ z-index: 4;
176
+ `,ki=r(Gt)`
177
+ color: ${e=>e.theme.colors.brandColorJade};
178
+ cursor: pointer;
179
+ width: ${a.sp4};
180
+ height: ${a.sp4};
181
+ `,T=r.div`
182
+ display: flex;
183
+ flex: 1;
184
+ background-color: ${e=>e.theme.colors.grey3};
185
+ min-height: 1px;
186
+ max-height: 1px;
187
+ `,Ai=r(Ht)`
188
+ cursor: pointer;
189
+ width: ${a.sp4};
190
+ height: ${a.sp4};
191
+ float: right;
192
+ color: ${e=>e.theme.colors.hero};
193
+ &:hover {
194
+ color: ${e=>e.theme.colors.primary};
195
+ }
196
+ `,Mi=r.div`
197
+ margin-top: ${e=>s.closeMarginTop.valuePx(e.windowSize)};
198
+ display: flex;
199
+ float: right;
200
+ `,Ri=r.div`
201
+ display: flex;
202
+ align-items: center;
203
+ justify-content: center;
204
+ position: relative;
205
+ cursor: ${e=>e.isDisabled?"not-allowed":"pointer"};
206
+ color: ${e=>e.theme.colors.hero};
207
+ &:hover {
208
+ color: ${e=>e.theme.colors.primary};
209
+ }
210
+ `,Pi=r(Yt)`
211
+ display: flex;
212
+ width: ${a.sp4};
213
+ height: ${a.sp4};
214
+ align-items: center;
215
+ justify-content: center;
216
+ `,Bi=r.div`
217
+ margin-top: ${e=>s.closeMarginTop.valuePx(e.size)};
218
+ margin-left: ${a.sp5};
219
+ `,Ni=r.div`
220
+ display: flex;
221
+ flex-direction: column;
222
+ width: 100vw;
223
+ background: -webkit-linear-gradient(
224
+ to right,
225
+ ${e=>e.theme.colors.background} 42%,
226
+ ${e=>e.theme.colors.grey4} 42%
227
+ );
228
+ background: -moz-linear-gradient(
229
+ to right,
230
+ ${e=>e.theme.colors.background} 42%,
231
+ ${e=>e.theme.colors.grey4} 42%
232
+ );
233
+ background: -o-linear-gradient(
234
+ to right,
235
+ ${e=>e.theme.colors.background} 42%,
236
+ ${e=>e.theme.colors.grey4} 42%
237
+ );
238
+ background: linear-gradient(
239
+ to right,
240
+ ${e=>e.theme.colors.background} 42%,
241
+ ${e=>e.theme.colors.grey4} 42%
242
+ );
243
+ ${e=>e.windowSize==="small"&&`
244
+ background: ${e.theme.colors.grey4};
245
+ `}
246
+ height: 100vh;
247
+ overflow: scroll;
248
+ `,Ge=r.div`
249
+ width: 42%;
250
+ `,Li=r.div`
251
+ margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
252
+ margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
253
+ `,Ye=r.div`
254
+ margin-bottom: ${e=>s.bottomMargin.valuePx(e.windowSize)};
255
+ margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
256
+ margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
257
+ `,He=r.div`
258
+ display: flex;
259
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
260
+ align-items: ${e=>e.windowSize==="small"?"unset":"center"};
261
+ margin-top: ${e=>s.topMargin.valuePx(e.windowSize)};
262
+ margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
263
+ margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
264
+ width: ${e=>e.windowSize==="small"?"fit-content":"unset"};
265
+ `,qe=r(Jt)`
266
+ flex-grow: 1;
267
+ ${e=>`${si.formTitle.style(e.windowsSize)}`};
268
+ color: ${e=>e.theme.colors.primary};
269
+ word-break: break-all;
270
+ `,Oi=r.div`
271
+ display: flex;
272
+ flex-direction: column;
273
+ margin-left: ${e=>s.leftMargin.valuePx(e.windowSize)};
274
+ margin-right: ${e=>s.rightMargin.valuePx(e.windowSize)};
275
+ `,Je=r.div`
276
+ padding: ${a.sp3};
277
+ display: flex;
278
+ align-items: center;
279
+ justify-content: center;
280
+ background-color: ${e=>e.theme.colors.grey3};
281
+ border: 1px solid ${e=>e.theme.colors.grey3};
282
+ border-radius: ${a.sp2};
283
+ color: ${e=>e.theme.colors.hero};
284
+ margin-bottom: ${e=>s.totalBottomMargin.valuePx(e.windowSize)};
285
+ justify-content: space-between;
286
+ `,Qe=r(Xt)`
287
+ display: flex;
288
+ width: 176px;
289
+ color: ${e=>e.theme.colors.primary};
290
+ `,_i=r.div`
291
+ display: flex;
292
+ flex-direction: column;
293
+ width: ${e=>s.rightSectionWidth.valuePercentage(e.windowSize)};
294
+ `,Xe=r.div`
295
+ display: flex;
296
+ width: 100%;
297
+ flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
298
+ align-items: ${e=>e.windowSize==="small"?"center":"flex-start"};
299
+ `,Wi=r.div`
300
+ width: ${e=>s.leftSectionWidth.valuePercentage(e.windowSize)};
301
+ `,Ei=r.div`
302
+ background: ${e=>e.theme.colors.grey3};
303
+ border-radius: ${a.sp2};
304
+ margin-top: ${e=>s.topMargin.valuePx(e.windowSize)};
305
+ margin-left: ${e=>s.invoiceLeftMargin.valuePx(e.windowSize)};
306
+ margin-right: ${e=>s.invoiceRightMargin.valuePx(e.windowSize)};
307
+ margin-bottom: ${e=>e.bottomSeperator===!0&&e.windowSize!=="small"?"107px":a.sp5};
308
+ `,Fi=r.div`
309
+ display: flex;
310
+ flex-direction: column;
311
+ height: ${a.sp11};
312
+ `,Ki=r.div`
313
+ margin-top: 78px;
314
+ `;export{aa as default};
@@ -1,4 +1,4 @@
1
- import{ax as le,c as $,q as k,aP as ae,l as L,O as E,j as e,aM as a,bF as me,n as u,af as m,o as s,ar as ce,_ as de,aS as F,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-utnCtAcO.js";import{b as j,n as t}from"./vendor-Bs1fkIUX.js";import{x as je}from"./MeetingCalenderPopup-ClAUcXqM-HBKW1kyR.js";import{f as be}from"./VideoPopup-B0Mebd5O-CsEoP_3Y.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-BpmcTJBM-DQk9qndK.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=t.div`
1
+ import{ax as le,c as $,q as k,aP as ae,l as L,O as E,j as e,aM as a,bF as me,n as u,af as m,o as s,ar as ce,_ as de,aS as F,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-DI0MUGC6.js";import{b as j,n as t}from"./vendor-Bs1fkIUX.js";import{x as je}from"./MeetingCalenderPopup-Ma-N6si8-DVldPR_b.js";import{f as be}from"./VideoPopup-D2oWKmZt-DPTUFVjt.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-Cicc6Fs8.js";import"./VideoPlayer-DloIycOu-CLtG3Kiy.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{c as Ee,q as Te,aP as N,aa as qe,cS as Ge,O as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,b as Pe,bX as st,ai as ct,bx as dt}from"./index-utnCtAcO.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-D2VIgqhe-CikEjabe.js";import{K as je}from"./SetUpDefaultSection-BFPybRJc-BixU69LG.js";import{f as mt}from"./SpendMgmtSetupAccountSection-CM4RGF3P-CEi1-z0Q.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Cgxo-kPs-7HE8RrRn.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-ClAUcXqM-HBKW1kyR.js";import"./ChargeCardUtils-Cj1kpTwU-DWkIAXDW.js";import"./CreditCardPaymentPlgSection-CvW-Fcsz-CXaa0G2D.js";import"./ChaseOverlay-D8Wesmh3-Hay_lE2r.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Te(),D=Ee(),{formState:{errors:Z},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:F,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[C,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
1
+ import{c as Ee,q as Te,aP as N,aa as qe,cS as Ge,O as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,P as Ye,ad as Xe,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,n as rt,aM as $e,b as Pe,bX as st,ai as ct,bx as dt}from"./index-DI0MUGC6.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-jlgjodRn-BM1z6Ko6.js";import{K as je}from"./SetUpDefaultSection-TtnDS5ad-BZjzQ8Mk.js";import{f as mt}from"./SpendMgmtSetupAccountSection-CKg4qknx-DMsYuVmq.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-GdA3H_LM-C69p4BvM.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-Cicc6Fs8.js";import"./MeetingCalenderPopup-Ma-N6si8-DVldPR_b.js";import"./ChargeCardUtils-MXK7oeC0-D6RsKjLW.js";import"./CreditCardPaymentPlgSection-BPV1SLmY-C7jSKPJl.js";import"./ChaseOverlay-nKLcp0IQ-DyPgaN6P.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Te(),D=Ee(),{formState:{errors:Z},trigger:Y}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:F,mileageStatus:S}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:X,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[C,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||Y(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{C||H(C)},[C]);const{reimbursementSetup:x}=ee,{setUp:ie}=X,ne=C===!1||F.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(St,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(Ct,{children:x.mileageSubTitle})]}),S!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:S.name,textColor:ke(S.code)}):null]}),t.jsxs(yt,{children:[S!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:S.name,textColor:ke(S.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:C||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:C?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:F.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{O as M,j as b,cD as X,cE as V,cF as W,k1 as Z,aX as q,l as z}from"./index-utnCtAcO.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as Y}from"./ReviewOverlay-D1gSW-Yw-B8hhebw_.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=G(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:O}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(X,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:L,description:{content:O,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=Z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},G=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
1
+ import{O as M,j as b,cD as X,cE as V,cF as W,k1 as Z,aX as q,l as z}from"./index-DI0MUGC6.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as Y}from"./ReviewOverlay-CckOQNCd-Cqn6hgqy.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-Cicc6Fs8.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,J]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const E=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,F=()=>{const{title:u,description:T}=G(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,z.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:O}=H(p,S,E,x),C=e.fetchState==="Completed"&&S===0,U=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},D=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:U,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:F,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(X,{titleComponent:b.jsx(W,{children:y.title}),descriptionComponent:b.jsx(V,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(Y,{title:L,description:{content:O,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:D(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=Z(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:q("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},G=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},H=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
@@ -1,4 +1,4 @@
1
- import{c as h,j as r,aL as a,aM as m,b2 as j,O as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-utnCtAcO.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{c as h,j as r,aL as a,aM as m,b2 as j,O as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-DI0MUGC6.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function z({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function R({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{c as Q,q as ie,cr as me,aa as fe,j as o,ap as ge,O as X,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as K,bI as je,aU as Se,am as Ie,av as Ne}from"./index-utnCtAcO.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Oe}from"./CollapsableReportTable-Do0pb5Lu-qtHBZTWo.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
1
+ import{c as Q,q as ie,cr as me,aa as fe,j as o,ap as ge,O as X,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as K,bI as je,aU as Se,am as Ie,av as Ne}from"./index-DI0MUGC6.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Oe}from"./CollapsableReportTable-9Ve7EJza-AqNxaI6j.js";const W=X.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),De=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function Fe(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:De(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=X.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(Fe(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};