@zeniai/web-cockpit-ui 1.13.92-qa → 1.13.93-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 (222) hide show
  1. package/dist/assets/{ACHDetailsPage-DSxVnTLA-D1-iHIV_.js → ACHDetailsPage-B7Osqlyb-BwlnvX_d.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DpJmdFIS-ptP-VwzZ.js → AIPerformancePage-CEGqk2vj-DYer4sK1.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-UxE6vaxM-Cd6nbcJE.js → AccountInfoPage-Dsi_xY1U-B-sH9O2B.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-B8luWP8D-CZHd9VXv.js → AccountInfoPageContent-CmRpq4eF-B2DwYw45.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-CRuSLa04-C78XHZlh.js → AccountReconDetailsDrawerPage-Bwc-VZmp-CnpXttfi.js} +1 -1
  6. package/dist/assets/{AccountRow-DVnBiB7_-CPXvnObH.js → AccountRow-DMeCdEPJ-0Td7rdjz.js} +14 -14
  7. package/dist/assets/{AccountsPromoCardStack-oPvi6hmo-DZpnXhtG.js → AccountsPromoCardStack-NYQHh0uE-De_Ps0gr.js} +13 -13
  8. package/dist/assets/{AddAddressForCardDrawer-Bl8FShie-B95Xnw-A.js → AddAddressForCardDrawer-3WPrDfNL-BmoU8xMj.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-BykgUTfa-D4vrpQJK.js → AddToWalletPage-IjvBXyuu-LqJuRvIx.js} +18 -18
  10. package/dist/assets/{AgingReportsPage-CtpuS77Y-CE6txtIZ.js → AgingReportsPage-CIJTKbrN-CVdoyKAO.js} +5 -5
  11. package/dist/assets/{AllUserItems-zqRosy03-COR9NR1n.js → AllUserItems-BuX43aPo-H0s42hTQ.js} +4 -4
  12. package/dist/assets/{ApAgingDetailPage-B4dHhJE1-CaWZMWGh.js → ApAgingDetailPage-02ejdrQy-CkSV3Gpj.js} +2 -2
  13. package/dist/assets/{AppBasePage-ntAldChd-CbIHEw9R.js → AppBasePage-CC3bbnnu-Ciqf55R8.js} +2 -2
  14. package/dist/assets/{AppDrawerContent-LRG0OW3a-B799K3xV.js → AppDrawerContent-B_EAPC9w-BdR_mtmP.js} +5 -5
  15. package/dist/assets/ApprovalRulesSettingsPage-1AQm08qF-1bvo_sOv.js +47 -0
  16. package/dist/assets/{ArAgingChart-BmfMCB8_-fY0QEK4n.js → ArAgingChart-UnY648RV-B8ISkKOi.js} +6 -6
  17. package/dist/assets/{ArAgingDetailPage-C2lhYsGV-BYs1bmSh.js → ArAgingDetailPage-CMUpR-2N-CqTh98Ou.js} +3 -3
  18. package/dist/assets/{AttachmentView-CQlsMYN3-USK3brEH.js → AttachmentView-sbbFtu9R-wkkd2tSH.js} +1 -1
  19. package/dist/assets/{BankAccountSection-D1tQzNSO-gEkCF92l.js → BankAccountSection-BJPkV-qV-DnIozyCI.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-Dj_S6brX-3ftY6npO.js → BankAccountWarningSection-D9R1VhzE-GAcwzATB.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-UQAJXShM-DCO59eAm.js → BankConnectionsSettingsPage-BG99PtV_-CvP1ZQFj.js} +1 -1
  22. package/dist/assets/{BillDetailPage-BOy1MkMT-yl7syVQH.js → BillDetailPage-C_JDjRL0-Kxjam1W7.js} +6 -6
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-C7c04fyW-gv93wavc.js → BillPayApprovalRuleDetailPage-B_XMuvzZ-CuOSZOiJ.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-D7vn36vA-DVT6BH5J.js → BillPayApprovalRulesPage-CyZjNIsQ-DvR9HK7c.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-VCQ0v0Ko-k0l6XCko.js → BillPayPromoPage-ByDsqYfw-Bz6xfanS.js} +3 -3
  26. package/dist/assets/{BillPaySetUpPage-MD1PbTMB-Mj8YwN2-.js → BillPaySetUpPage-yTO-xwRJ-D5LOIl5a.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-B0U9RKLC-CxniqQ_i.js → BillingSettingsPage-BIAy1QHr-CdxSnuoN.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-CStmvhgL-BfpFJcjC.js → BillsBulkReviewDrawerPage-Cw1XCs0q-BPMOI-f-.js} +1 -1
  29. package/dist/assets/{BoxItem-D3v5T6bP-Ccyj0z_e.js → BoxItem-UCX7eqiN-Bx4T9Ckg.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-BIba2-zs-baesBtzL.js → BusinessVerificationPage-CSsout2C-D0_Wr4yR.js} +3 -3
  31. package/dist/assets/{CardNumberSubText-DoWj5vAy-CAfScSz4.js → CardNumberSubText-DuTv0ip1-BQ2cCq6Y.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-CPz0J2HA-DnWSOdcg.js → CashbackDetailPage-KdHf-_ZF-DMwQoPE0.js} +9 -9
  33. package/dist/assets/{ChargeCardDetailPage-DxE5h1S5-BSn9I5tq.js → ChargeCardDetailPage-DYGcQs0M-D9cSv6UR.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-fXayrykw-C4eDLONF.js → ChargeCardListPage-CNrRrNbd-BjkSAo-I.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-C-WxFg6W-Bxx8UmMq.js → ChargeCardListTable-B1a9-RYl-DFaeigKK.js} +103 -103
  36. package/dist/assets/ChargeCardPromoPage-DZ1f8Sus-BW8ozxyr.js +175 -0
  37. package/dist/assets/{ChargeCardSetupPage-ByLkUH5I-BPvN7kpq.js → ChargeCardSetupPage-DOrs_Bw8-DgkoLihJ.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-Dsv5AXrZ-DoY0Jw4d.js → ChargeCardStatementsPage-xvq2HeEr-DOI6TXvC.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-CVC43_6w-C9AAkcIV.js → ChargeCardUtils-Dt303NN_-05QPLa2p.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-CHWBgNa9-DBU-aocS.js → ChaseOverlay-BK2ISNjj-S6c-qliM.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DySu5_BH-C65eaIWg.js → CheckDepositDrawerPage-CbsRUWnx-BK3WXMqm.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-ZObwzBbY-AvFmJfte.js → CollapsableReportTable-D5D0ufUn-Bzt15FNd.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-DVG0lvX--Wg40Blwv.js → CompanyOfficerDetailsSection-C7fuDGQk-IsFgAXuq.js} +6 -6
  44. package/dist/assets/{CompanyPassportCard-DBZRV0g0-JDJxemYn.js → CompanyPassportCard-DwUqLcAr-DSkb28QS.js} +4 -4
  45. package/dist/assets/{CompanyPassportPage-BoaNol0L-D8V2l9pw.js → CompanyPassportPage-ClToBIAw-kZszHSwA.js} +10 -10
  46. package/dist/assets/{CompleteProfile-nkRKLJTF-kma5tNZE.js → CompleteProfile-CLDWG3QK-CfBVYMEP.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-BYoGZ66F-CE0o8Vhl.js → ConfettiBurst-DoZB9Us7-CMmPQCFc.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-C1Yx8t4M-BuM4U0t0.js → CreateOrEditVendorPage-B837xw8A-BAYCbcGJ.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-DlnR16jr-ChhzdCb0.js → CreditCardPaymentDrawerPage-zGaAOnnB-BsFRJBm4.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-CZ2vyMiF-ClsOZPvU.js → CreditCardPaymentPlgSection-BLbZFCcL-Bqc-C6eO.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-vH1oB0K8-Dr64IPr4.js → CurrencySelectField-DS3dOR3F-DalqX_lS.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-rpZmgNZo-DuEHpoc1.js → CustomerOnboardingActivationPage-WWVaQenb-B8ztly-z.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-BmFfAaO1-BI9KTD4O.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CFIeHxxw-UU0mUCiu.js → CustomerOnboardingDetailPageSkeleton-BSXKMQ77-MLxx67vI.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-BueMiyFl-DUOR8jGf.js → CustomerOnboardingNoStepsPage-Dd5kCuRE-BcQg4Ohl.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-CmHXtB9v-CXmQf7U7.js → CustomerOnboardingPage-CGJpD875-Dopxs2Zj.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-I9pftf_j-B_gnkO1d.js → CustomerOnboardingProductSuitePage-BFmVLk0l-Dqe6wu_O.js} +3 -3
  58. package/dist/assets/{Dashboard-DcfkiicK-q4fxRwyW.js → Dashboard-BLIK_ZsD-D6wuOJAN.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-B7J8yZR6-DRm7363E.js → DashboardReportPage-BbYtKYEH-pc8ejgXI.js} +8 -8
  60. package/dist/assets/{DepositAccTransactionItem-CP_2AL3M-UriJgTZ8.js → DepositAccTransactionItem-BMXQpKVB-DaF1MUuy.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-C4o1y1mJ-vDVIGMR1.js → DepositAccTransactionListPage-bwEdSihi-CXBTlKtY.js} +2 -2
  62. package/dist/assets/{DocumentSecurityBanner-C5w0d_S8-qYbxtRj6.js → DocumentSecurityBanner-DV9HE3MK-LQKK6f7V.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-t0Ebo518-C2FWXYt8.js → DomesticWireDetailsPage-OI-gqVNE-BqvWfcoc.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CPW9ebxu-C4HHQYK0.js → DownloadOverlay-De5uIGOt-g0Egf70Z.js} +1 -1
  65. package/dist/assets/{DrawerPage-Xc2rQipJ-DVYxRAtt.js → DrawerPage-n421ewDm-CnkmETxv.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-CF5UleI0-CUGe8Cnt.js → EditPeoplePage-sO1qN6Uw-bGTiOwCj.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-DGCkOykv-ClMeSVrD.js → EditReimbursementDetailPage-D5iKVGl3--EFA7JxG.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-BykQZo8S-KrJZ5syb.js → EntityDetailPage-CDk-oyYB-dhBDHyNo.js} +2 -2
  69. package/dist/assets/{EntitySummarySection-Dw4PBcg_-CvhgPnGt.js → EntitySummarySection-C4cC9rOJ-D8GGYrtb.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-BwAaZVq3-lC8f8L2T.js → ExpenseAutomationOverviewPage-BojhuW5i-BvXr37wt.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-Cqiyk-AY-BD5tyT7-.js → ExpenseAutomationPage-D0BViJ7J-CWRMA15W.js} +44 -44
  72. package/dist/assets/{ExpressPayPage-D0lCczvw-B2Rp-VPl.js → ExpressPayPage-DdgtFYep-CUOKOoiC.js} +7 -7
  73. package/dist/assets/{FeaturePreviewPage-CxZIUB8l-Bcfcu7bL.js → FeaturePreviewPage-CW0YmOgl-bNGEnD-g.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-CILr1_vc-CLgm2Hne.js → FollowStepsSection-BfnTsu_D-DwG4wG8g.js} +7 -7
  75. package/dist/assets/{GlobalReviewListPage-DL6H7PZG-U8XS5aLk.js → GlobalReviewListPage-C0U7Y6dI-BkEZ_PU4.js} +1 -1
  76. package/dist/assets/{HelpButton-CkSfhBfN-BPWTXFdl.js → HelpButton-DXFYhUL5-Co36EHOd.js} +1 -1
  77. package/dist/assets/{InformationCardStack-i76c5dym-DFWwTZfO.js → InformationCardStack-6BD3n76T-CKu_A2Jh.js} +2 -2
  78. package/dist/assets/{InsightsCardStack-wcWhovKK-DnGgdxv6.js → InsightsCardStack-CwxJP-ic-nmTxa9wo.js} +3 -3
  79. package/dist/assets/{InsightsSection-CCzgI0uK-VJ3ZyfK9.js → InsightsSection-DYyHpcUE-N_KvwWiO.js} +4 -4
  80. package/dist/assets/{IntegrationsSettingsPage-B2CDE2Xd-ohhBb_xY.js → IntegrationsSettingsPage-ZkvKZqwD-BFhl6nEA.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-DNT75nXv-vcMWpbBe.js → InternationalWireSwiftDetailsPage-D3nyRM06-CLJCmyag.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BDxujQK--D_AwvW9Z.js → InternationalWireVerificationPage-BOdAP6dN-Bwjg3gOc.js} +1 -1
  83. package/dist/assets/{InviteFormPage-BnLBPR7X-Dr7Az14X.js → InviteFormPage-HJMhfa_f-tkS1HQ9G.js} +1 -1
  84. package/dist/assets/{InvitePageListView-7mhz_Fyy-DnVzZkxM.js → InvitePageListView-CjneWRfJ-Cqi-gRH8.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-B8gb9N_8-BkOhV9LS.js → InvitePeoplePage-By6TWsVZ-DcezDHDA.js} +2 -2
  86. package/dist/assets/{InvoiceUploadSection-Bes1nCJn-cQbyoy31.js → InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js} +4 -4
  87. package/dist/assets/{IssueChargeCardPage-DC3yIsQd-CKHm2aDr.js → IssueChargeCardPage-pKF4dRNw-CboqmQ0I.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-Dtw8vM0g-Lr7x20Yy.js → LabeledAddressValue-UYEy_1W0-Ci2tufnL.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-D72yUpQl-Df1WQsGJ.js → LabeledAddressValueField-BmSVDTMx-CBdRfhaZ.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-BFaru2xf-BjoAdjoa.js → LabeledControlledCheckBoxField-BFnLx9E0-ozh3nGkA.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CCXfjgxP-5vcIQ2Mo.js → LabeledCreatableSingleSelectField-Bh-cfR9F-Cgfy3beB.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-aYYBY16j-Bae_VgX4.js → LabeledDocumentField-YBoeNDoD-DV_I5uPN.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-Co7u6hHL-B32MBaMN.js → LabeledDropDownFormattedTextField-jrOUW9Ig-BtNHTfAs.js} +1 -1
  94. package/dist/assets/{LabeledText-BrOLGzO5-rL0tneCB.js → LabeledText-BqO1wHro-DuRorhx4.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-D-Huhkbq-BEOyGiLV.js → LabeledUserSingleSelectWithSubtitlesField-DiWgp4aE-C9gBIqih.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-WXH8xLJq-Dib2Yw_B.js → LabeledZeniRolesDropDownField-Cgy0v5oD-DVkREz_1.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-NFV4Vo3i-9GCZH5U0.js → LinkJETransactionPage-PZAQ79zW-CK6GNIYR.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-Bxkd2pBR-unK4Ye9z.js → LowBalancePopup-BYeSnxBp-BI_shW18.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-BJFlUq7i-DCFJc6GZ.js → MagicLinkACHDetailsPage-D_FaPCmn-oM5m56GJ.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CTuaNol6-DlXeuNXQ.js → MagicLinkDomesticWireDetailsPage-rnZdulCr-CM2OhcqO.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-L2dPsfWM-C9gEpXm2.js → MagicLinkInternationalWireDetailsPage-B7ScwCJc-hpVpOAMi.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DutanrSJ-CZQdge1Z.js → MagicLinkSuccessPage-DVhVWuCR-C1ELLMXO.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-5B8jYoBn-vdest58S.js → MagicLinkTitleSection-CjV-_WEQ-BZeg3Eo_.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DwWeiSC0-pGk3-tya.js → MailingDetailsSection-CW6ShqHJ-CO_dTd-f.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-rC3PQdjG-B_4Eh-Cw.js → MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js} +1 -1
  106. package/dist/assets/{Menu-CrSQ1yNo-c9Hi2HXE.js → Menu-LDwLOgxI-DZ0xBJbp.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-CJjW9ymP-BCaJojyo.js → MyBankConnectionsSettingsPage-BzxtuXEu-B9IXFZww.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CvxqOjc7-BzSOTZYH.js → MyPendingActivationChargeCardListPage-9jGJWmds-BAoE5bWC.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-BX5dXulH-m3N29QaR.js → MyProfileSettingsPage-9yk4H_yu-D2-h3k3L.js} +7 -7
  110. package/dist/assets/{NavBarWithPicker-CuVAj7o5-CP10D7f9.js → NavBarWithPicker-DUpJ0EXp-43gjuBbT.js} +1 -1
  111. package/dist/assets/{NavigationArrow-BPQ9vRqR-CBW2ZEmU.js → NavigationArrow-lL3Ug8Mk-CKQ_08MZ.js} +1 -1
  112. package/dist/assets/{NavigationDots-Toh5TKEv-OSyhnKRF.js → NavigationDots-6Q5ZVqKl-C4jKPBGn.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-B4r1haCm-Ce2LoB6H.js → NewGlobalMerchantPage-nrWvsRy4-DbM5W8Wn.js} +1 -1
  114. package/dist/assets/{NoDataChart-CVM-QPHf-D5psvAcN.js → NoDataChart-DGbfWo33-CtNbg73S.js} +1 -1
  115. package/dist/assets/{NoDataTable-CM-tApqo-BIz-jCYp.js → NoDataTable-CsvWc_ok-iHpzgtD5.js} +1 -1
  116. package/dist/assets/{NotFoundPage-I-EBmx2b-CuWqLUY8.js → NotFoundPage-CzfiPkml-BQeqs7Av.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-CtZ7hdMN-Wo1EzU2G.js → NotificationSettingsPage-Dmfqzy1H-CXBPPrT7.js} +6 -6
  118. package/dist/assets/{NotificationsListConfig-BAKipCDG-Cv91iO15.js → NotificationsListConfig-Cc3hEei0-BUGnkVM7.js} +1 -1
  119. package/dist/assets/{NotificationsPage-xyLmK3l7-BEJKDLky.js → NotificationsPage-BAj5p1zx-D_Mwv5JA.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-B63DEuJM-BDxjaGzg.js → OpExByVendorPage-CRt-VUTi-BSRoe6fS.js} +7 -7
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-Ntu6HlKQ.js → OverlayContainerPage-C0rUb6-5-CpXI0Wjw.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-uY-ajYp4-V0SHSx_P.js → PandLWithForecastPage-lT9GgcG2-Do2wpSYt.js} +5 -5
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DM9NYbmX-DUzBMAJl.js → PaymentAccountSetupBillingAddressSection-DY4eeS5C-DRjMzj0b.js} +4 -4
  124. package/dist/assets/{PeoplePage-DPZj6XeQ-CAELlX33.js → PeoplePage-CDQl7HVr-BdnTCUNW.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-De56plDa-DJkYrYNG.js → PortfolioAllocationFormPage-StMDGc2G-BtdTMk__.js} +3 -3
  126. package/dist/assets/{PortfolioDetails-DiITguNZ-Cq29R7Zz.js → PortfolioDetails-Dk_IIRuG-B_DxSJx7.js} +3 -3
  127. package/dist/assets/{ProductsCarousel-BojgZxY7-cwoMBxX7.js → ProductsCarousel-0-ksFQos-BOcG3c1-.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-DPAkjdDp-Ep5C_mS4.js → PromoBaseCards-DNSnqS61-Al7XKWVe.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-CzuH4c1o-ZsjLY4Mn.js → QBOConnectionDialog-BmIUfW_i-DCw1_Zjz.js} +4 -4
  130. package/dist/assets/{QBOSetupSection-DJBfLeXn-DeLZ9-CI.js → QBOSetupSection-BaNFiEPB-BQTYBa9Y.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CAcLCt68-z4GKwxQt.js → ReimbursementApprovalRuleDetailPage-CtTk4HV2-BFn-5msn.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-edz_6MDX-ElMfP5AN.js → ReimbursementApprovalRulesPage-IhKSiGK_-xDcDckpI.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-DD_GbfiV-CY9HB-Ai.js → ReimbursementDetailPage-B2rT1dKM-BvN3K25P.js} +4 -4
  134. package/dist/assets/{ReimbursementPromoPage-B_HZWdXi-YAVdtzTS.js → ReimbursementPromoPage-d7XBUzip-Baqr_9HR.js} +18 -18
  135. package/dist/assets/{ReimbursementSetUpPage-C0SNbg5D-BNH2r07u.js → ReimbursementSetUpPage-DWCUtN5c-B7jvTAZ2.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-NOK5jPjr-YNxBe6Vb.js → ReimbursementsBulkReviewDrawerPage-ByNvcTCn-CVr0tk48.js} +1 -1
  137. package/dist/assets/{ReloadCard-CqyGWGqs-6_Cif2Ll.js → ReloadCard-DZy28iWR-fdBnNVQp.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-B8ZW0kxU-EaZ_XIvS.js → ReportTableViewSelector-DdZm4cOJ-noq_7l2G.js} +5 -5
  139. package/dist/assets/{ReportsPage-DdqQgvJt-f0a_FJwO.js → ReportsPage-CJDkY9FT-BvINYvTj.js} +1 -1
  140. package/dist/assets/{RevenueChart-QoBLII7z-Q1hk28a9.js → RevenueChart-B_jdFFPm-BXFiwU14.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-BVoI7xF7-CnpSx4Tw.js → ReviewDetailsPage-DjPVGzeL-DLDIfiIY.js} +9 -9
  142. package/dist/assets/{ReviewOverlay-CbpylyCx-DTIV4D_3.js → ReviewOverlay-DGYnF07r-qnvuKuhQ.js} +6 -6
  143. package/dist/assets/{RoleWithToolTip-TxLTa63q-DKveW2Ky.js → RoleWithToolTip-VlYG_GPv-D1yDUHv7.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CuwxZJjj-BYS2pDbG.js → ScheduleDetailsFixedAssetsPage-oPFQEE8g-DGu6MDH1.js} +3 -3
  145. package/dist/assets/{ScheduleDetailsPage-u0VNz7hA-BjWj5NhD.js → ScheduleDetailsPage-BdBgJEAl-DNQIOTck.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-usJjTfAn-D29S5hbD.js → ScheduleSequenceTable-Ncft3mZN-BP3nA4Wm.js} +5 -5
  147. package/dist/assets/{ScreenRoutes-rw1o8MQs.js → ScreenRoutes-GKyBzI0O.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-DDe06VBR-DLpiHVvI.js → SetUpAccountSection-BrYiljyO-B0sFI8H-.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-B6pcOXMO-CRtYcMT6.js → SetUpDefaultSection-B361ojb9-CxOpM9AT.js} +1 -1
  150. package/dist/assets/{SignIn-BdhV8PbY-BRh-EFuz.js → SignIn-B_-FUZwZ-DmmXPLIK.js} +1 -1
  151. package/dist/assets/{SignInScreen-BdMez8fF.js → SignInScreen-DXQE8i8n.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-DNgC__pX-Cd7FbCgo.js → SpendManagementListViewPage-XbjqwHXx-DUJaDID4.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-BkiWOMch-CwEHEBT9.js → SpendManagementPerTabPage-D-4W-Ru9-BTwZxU7E.js} +8 -8
  154. package/dist/assets/{SpendManagementSection-DuR3sx7V-JrRKdD4x.js → SpendManagementSection-B7pMvj7Z-BAsdHFSu.js} +8 -8
  155. package/dist/assets/{SpendMgmtSetupAccountSection-DoUKX4Sf-DwQmG6qy.js → SpendMgmtSetupAccountSection-DdUs96r9-BtVu2Jjy.js} +1 -1
  156. package/dist/assets/{StatementItem-VYK0Vtgt-BBKdzXaY.js → StatementItem-B4DJRmwy-B3hGXxas.js} +1 -1
  157. package/dist/assets/{StatementsPage-CLxned7l-C4PScILv.js → StatementsPage-DzFEOmFA-wer7iddM.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-Jqpvk1VX-CdG2mjou.js → StatusSwitcher-DGOwA8qO-D_gDSZQm.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-C7_JB54g-DSaKTJri.js → SubTabSwitcher-Be-6o_mE-CbWpxIAQ.js} +1 -1
  160. package/dist/assets/{SummaryCard-oqK_zyxl-DYQ4YzrX.js → SummaryCard-CD1amg78-BqcEBi2M.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-BDOhB7Ny-DCim2j5x.js → TaskManagementPage-C2UYhTtL-BjeaDszl.js} +12 -12
  162. package/dist/assets/{TimeRangeSwitcher-AWKZ7PNb-sMHjfJ3K.js → TimeRangeSwitcher-DxAmlHGP-Bw1t8DbY.js} +2 -2
  163. package/dist/assets/{TimeframeSwitcher-BlL5woGb-B1qdJISl.js → TimeframeSwitcher-ndYSpUa6-BlrKZqFe.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-CRnWI6xW-P8bjGMFI.js → TimeframeSwitcherWithToggle-B3bxr-_s-BNVy54lX.js} +1 -1
  165. package/dist/assets/{TopExCard-B4T3kqhZ-Q7tG_J2k.js → TopExCard-CcpyunQ3-BaDgbdKx.js} +2 -2
  166. package/dist/assets/{TopExDetailPage-Cx9T3i9O-fVM1l1lt.js → TopExDetailPage-C_B0c8iP-ByXi3xQ5.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-CAGxHcQ9-BuC2Vxi4.js → TransactionDetailPage-DVPGLobu-DL-y5UIM.js} +23 -23
  168. package/dist/assets/{TransactionList-CVrK_-YB-CyqUr8En.js → TransactionList-CvGyadHZ-CKr6j1Ej.js} +1 -1
  169. package/dist/assets/{TransactionListBig-BnI6EofP-DpJRFiC_.js → TransactionListBig-BeZjYsO0-CWaiI9xM.js} +14 -14
  170. package/dist/assets/{TransactionListPage-vK6DdhrP-C7d8mvAu.js → TransactionListPage-C8h-sa3V-ISAOcRCi.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-IyAfkyMv-BwtflFlU.js → TransactionVendorDetailPage-BcV8h3xR-BGD_XS9I.js} +6 -6
  172. package/dist/assets/{TransferDrawerPage-Bp0TG8fm-959WX7gB.js → TransferDrawerPage-B_AJgZWp-BgCFpQ-3.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-Cr1liTpc-CTqtlCQy.js → TreasuryOverviewPage-kG1jZF28-DFMfLtUz.js} +17 -17
  174. package/dist/assets/{TreasuryPromoPage-Da7l7gv8-DPF1lFAp.js → TreasuryPromoPage-Dy3ExIiy-DKLmlPyB.js} +9 -9
  175. package/dist/assets/{TreasurySetupPage-DLNsPnS8-S_4_ECXQ.js → TreasurySetupPage-Cjr-dp6O-D_HiOnt5.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-CNXxykvB-CBw5AysV.js → TreasuryStatementsPage-CzOSIKGQ-CtcTNklQ.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-DUbt8ItG-8rvpK6x5.js → TreasuryTaxLetterPage-CWLf1Zxq-BkcKbbtq.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-qxabbCrK-rO7uR-ni.js → TreasuryTransferOrReviewPage-C5F3fmoI-C6lOcQ5d.js} +8 -8
  179. package/dist/assets/{TrendChart-SOAxSpv2-BEwC2fOj.js → TrendChart-CtjfgQ9g-DU-bY5qU.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-BSQ2TJvu-DKoznMBK.js → TrendWithTransactions-SmcM2UIp-SwKmDId5.js} +5 -5
  181. package/dist/assets/{UncategorizedAccountsMappingPage-Caf242zp-C5DipiQT.js → UncategorizedAccountsMappingPage-CXoadwja-CEPslaD_.js} +7 -7
  182. package/dist/assets/{UnitIntegrationPage-Bvc4wx_r-BnaXEQW-.js → UnitIntegrationPage-wYQVQqP7-CMNCVZiN.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-BTEhwmVL-BU3VE2l2.js → UploadAdditionalDocumentOverlay-8_c7UpvB-74BXxoUO.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-DimcegQ_-ZwSJtWxA.js → Vendor2FAPopup-DtNSOXbK-B54GFzKj.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-BOIRRgCy-BviefvlH.js → VendorACHDetailsPage-zNbGGe4q-8GlI6jYy.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-CWcqMMpT-qMwE-rI0.js → VendorDetailPage-Cv-MG9iR-l4dRK0G1.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-9C2CIkhB-BOtPtDU5.js → VendorDomesticWireDetailsPage-BkqtoYAw-CtX9mSuC.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-Crz_WLRG-Bw34V4gU.js → VendorFiling1099EditablePage-DYJudj3c-DQ_wjKTT.js} +5 -5
  189. package/dist/assets/{VendorFirstReviewPage-hQ0U61KD-BzfMdPso.js → VendorFirstReviewPage-BNFIAB9n-BN6v_Gep.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-mm1qIXTf-Byl1FySa.js → VendorInternationalWireDetailsPage-DHa8JoNl-BRi2UVJj.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-BaOsJGNO-DK_12j59.js → VendorInternationalWireSwiftDetailsPage-a5nSOMXK-BxkY5s8d.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CGbDIAMd-DWeBvssx.js → VendorsAccountsSection-DwDGbjey-Bypo8ABo.js} +2 -2
  193. package/dist/assets/{WarningsDrawerPage-7DzlUfv7-DXPYNehY.js → WarningsDrawerPage-CaSTx_8h-B-9jNZQU.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-B_U4d2iv-DJdTSWpj.js → ZeniAccountDetailPage-BSOpxKiJ-Bcu_9TPK.js} +6 -6
  195. package/dist/assets/{ZeniAccountListViewPage-C2Yej3tG-BZm1pAj2.js → ZeniAccountListViewPage-CZM1ODEE-CvbySLjB.js} +6 -6
  196. package/dist/assets/{ZeniAccountNavBarPieces-DsWyZL7N-CM8u2fkO.js → ZeniAccountNavBarPieces-CjNAr1N9-HkSrs5G-.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-D6S3o6xA-C5TfP5fB.js → ZeniAccountPromoPage-PcyNGe7A-BLBuAvub.js} +9 -9
  198. package/dist/assets/{ZeniAccountSetupPage-YpW9LEB1-CT5yKJDM.js → ZeniAccountSetupPage-DhJ2zm6A-CuFLGcXY.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-Buv4_0jF-etRFVvK1.js → ZeniCopyright-CSUSID-7-DBheoLGB.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-CvuOgkEg-DnX0NID_.js → ZeniTransferAmountSlider-DPl7porw-Dl84FVK1.js} +1 -1
  201. package/dist/assets/{analyticsHelper-B3QVnfWf-H0h_HtBm.js → analyticsHelper-Cex5LOMD-Dxu2vm4u.js} +1 -1
  202. package/dist/assets/{analyticsHelper-BV5qlrBL.js → analyticsHelper-CpvxdbQV.js} +1 -1
  203. package/dist/assets/{chartTypes-DYAHlgKd-CIoUHagw.js → chartTypes-Df8u7la0-CtDbCz1y.js} +1 -1
  204. package/dist/assets/{commonDimensions-Pkc8qIrn-C51PkztX.js → commonDimensions-OJhakpB_-Bbp60BrB.js} +1 -1
  205. package/dist/assets/{detailCommon-CsukAL3T-C9Odjb8X.js → detailCommon-4wAnHr6n-CdRaYMXz.js} +4 -4
  206. package/dist/assets/{downloadPdf-DlKRXI5W-DRbhwI4R.js → downloadPdf-D02UNVHu-DqpjG06G.js} +1 -1
  207. package/dist/assets/{index-CChR0tlr.js → index-DTlzo6Yx.js} +512 -512
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-KYsp1YPe-DkDU3yOy.js → mapLoadingInProgressToTreeNode-HsZI6Bdg-DBYPe0Tb.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-t5fK12Uc-BPcBM_s6.js → mapSectionWithAcOnlyToTreeNode-B9KMXCTi-cXLO9gFn.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-1YBqnFwa-BCpUJJfk.js → mapSpacerToTreeNode-BIZ_jwXi-CRlgAghX.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-DD1v-gTG-CovxzaSA.js → mapTimeframeBalancesToTreeNode-BOFrVlzJ-4iwTY3Ct.js} +1 -1
  212. package/dist/assets/{play-icon-19dLaWkG-DVrAniBi.js → play-icon-BDRoJBSV-DFuHei9M.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-B8NxsLlK-BQM05QqO.js → toCOABalancesWithID-RJhTPgAt-Cci2ybt-.js} +1 -1
  214. package/dist/assets/{toChartData-CxZEcdj_-DkdJt_zk.js → toChartData-K68FB3Iy-nDeLE4ni.js} +1 -1
  215. package/dist/assets/{treasuryColorHelper-BqwCUN2u-u6_A3p-Z.js → treasuryColorHelper-DjASf5JB-DoMbQSj9.js} +1 -1
  216. package/dist/assets/{uploadAttachment-CHFo3qZI-D3BXDi9p.js → uploadAttachment-D7Rju7jS-SY7cBnUt.js} +1 -1
  217. package/dist/assets/{uploadReceipts-Buvz7DfG-CWJGX5ku.js → uploadReceipts-Buvz7DfG-JDslMarZ.js} +1 -1
  218. package/dist/index.html +1 -1
  219. package/package.json +2 -2
  220. package/dist/assets/ApprovalRulesSettingsPage-CFCbNOcB-DTKgg2MT.js +0 -47
  221. package/dist/assets/ChargeCardPromoPage-CiwWzvym-DqCOZpsp.js +0 -175
  222. package/dist/assets/CustomerOnboardingContainerPage-DEDQrgtq-CEuEcH5A.js +0 -1
@@ -1,4 +1,4 @@
1
- import{eO as Z,M as K,h4 as de,a5 as le,r as B,o as a,g as z,X as N,j as t,bA as pe,h5 as me,u as re,cg as ge,ab as F,C as W,aQ as he,eY as ue,t as ie,h6 as fe,h7 as Se,h8 as q,h9 as G,ha as Y,a7 as ye,i as X,q as xe,gh as be,m as Ce,Q as we}from"./index-CChR0tlr.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{O as ve}from"./SetUpAccountSection-DDe06VBR-DLpiHVvI.js";const Pe={containerHeight:new W(656,720)},$e=o.div`
1
+ import{eO as Z,M as K,h4 as de,a5 as le,r as B,o as a,g as z,X as N,j as t,bA as pe,h5 as me,u as re,cg as ge,ab as F,C as W,aQ as he,eY as ue,t as ie,h6 as fe,h7 as Se,h8 as q,h9 as G,ha as Y,a7 as ye,i as X,q as xe,gh as be,m as Ce,Q as we}from"./index-DTlzo6Yx.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";import{O as ve}from"./SetUpAccountSection-BrYiljyO-B0sFI8H-.js";const Pe={containerHeight:new W(656,720)},$e=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: 20px;
@@ -81,14 +81,14 @@ import{eO as Z,M as K,h4 as de,a5 as le,r as B,o as a,g as z,X as N,j as t,bA as
81
81
  color: ${z.important};
82
82
  width: 434px;
83
83
  text-align: center;
84
- `,{cardPayment:c,common:{footer:te}}=K.getLocalizedStrings(),Me=o(Ce)`
84
+ `,{cardPayment:c,common:{footer:te}}=K.getLocalizedStrings(),De=o(Ce)`
85
85
  color: ${e=>e.theme.colors.hero};
86
86
  text-align: center;
87
87
  margin-top: ${a.sp2};
88
- `,ae=e=>`${e}_form`,se="CardPaymentPaymentForm",De=({cardPaymentView:e,clientSecret:r,cardSetupInProgress:m,handleConfirmCardSetupIntent:i,updateCardPaymentModalState:y,handleAddCardPaymentSource:d,setCardSetupInProgress:g})=>{const x=fe(),n=Se(),[l,h]=p.useState(!1),[P,$]=p.useState(!1),[b,C]=p.useState(!1),[u,w]=p.useState(!1),j=N(),_=e.cardSetupConfirmStatus.fetchState,T=e.addCardPaymentSourceStatus.fetchState,M=e.cardSetupIntentStatus.fetchState,[I,f]=p.useState(!1),V=async S=>{if(S.preventDefault(),!x||!n)return;const v=n.getElement(q),E=n.getElement(G),A=n.getElement(Y);(!v||!E||!A)&&f(!0),w(!0),g(!0),v!=null&&E!=null&&A!=null&&x.confirmCardSetup(r,{payment_method:{card:v}}).then(L=>{w(!1),i(L),L.setupIntent?.id!=null&&d("card","payment_intent",L.setupIntent?.id)}).catch(()=>{w(!1),setTimeout(()=>{g(!1)},2e3)})},R=re(),U={showIcon:!0,style:{base:{...B.standardRegular.cssObject,color:R.colors.primary,"::placeholder":{color:R.colors.grey2}},invalid:{color:z.important,iconColor:z.important}}},D=_==="In-Progress"||T==="In-Progress"||M==="In-Progress"||u===!0||m===!0,H=l||P||b||_==="In-Progress"||T==="In-Progress"||M==="In-Progress"||u===!0||m===!0;return t.jsx(Ie,{windowSize:j,children:t.jsxs(je,{onSubmit:V,id:ae(se),children:[t.jsxs(Ee,{children:[t.jsx(Ae,{children:t.jsx(ke,{children:t.jsx(q,{options:U,onChange:S=>h(!!S.error)})})}),t.jsx(_e,{children:t.jsxs(Re,{children:[t.jsx(ee,{children:c.cardNumber}),t.jsx(G,{options:U,onChange:S=>$(!!S.error)})]})}),t.jsx(Te,{children:t.jsxs(Ue,{children:[t.jsx(ee,{children:c.CVC}),t.jsx(Y,{options:U,onChange:S=>C(!!S.error)})]})})]}),e.cardSetupConfirmStatus.error||I?t.jsx(ne,{children:c.errorMsg}):null,t.jsx(ye,{style:{width:"100%",padding:`${a.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:ae(se),primaryBtn:{label:te.linkCard,style:{width:"104px",height:a.sp6},isLoading:D,isDisabled:H,type:"submit"},cancelBtn:{label:te.cancel,style:{width:"104px",height:a.sp6},onClick:()=>{y(!1)}}}),t.jsxs(Me,{windowSize:j,children:[c.terms.term1,t.jsx(X,{href:c.terms.term2Link,linkText:c.terms.term2}),c.terms.term3,t.jsx(X,{href:c.terms.term4Link,linkText:c.terms.term4})]})]})})},qe=({isCardPaymentOpen:e,cardPaymentView:r,stripeKey:m,cardSetupInProgress:i,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleCreateCardSetupIntent:g,handleAddCardPaymentSource:x,handleResetCardPaymentErrorStatuses:n,setCardSetupInProgress:l})=>{const[h,P]=p.useState(""),$=de(m),b=le(r.addCardPaymentSourceStatus.fetchState),C=r.addCardPaymentSourceStatus.fetchState;p.useEffect(()=>(g(["card"]),()=>{d(!1),P(""),n()}),[]),p.useEffect(()=>{n()},[e]),p.useEffect(()=>{b==="In-Progress"&&C==="Error"?(l(!1),setTimeout(()=>{d(!1)},2e3)):b==="In-Progress"&&C==="Completed"&&(g(["card"]),setTimeout(()=>{d(!1),l(!1)},2e3))},[b,C]),p.useEffect(()=>{(r.cardSetupConfirmStatus.error||r.addCardPaymentSourceStatus.error)&&(g(["card"]),setTimeout(()=>{l(!1)},2e3))},[r.cardSetupConfirmStatus.error,r.addCardPaymentSourceStatus.error]),p.useEffect(()=>{r.clientSecret!=null&&P(r.clientSecret)},[r.clientSecret]);const u={theme:"stripe",variables:{borderRadius:a.sp1,fontSizeBase:B.standardRegular.fontSize,fontFamily:B.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${z.neutralGrey3Light}`,borderRadius:a.sp1,padding:"10px",fontSize:B.standardRegular.fontSize}}},w={clientSecret:h,appearance:u},j=N();return t.jsx(pe,{open:e,children:t.jsxs($e,{windowSize:j,isError:!!r.cardSetupConfirmStatus.error,children:[t.jsx(Le,{children:c.title}),t.jsx(ze,{children:c.subtitle}),h&&$!=null?t.jsx(me,{options:w,stripe:$,children:t.jsx(De,{clientSecret:h,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleAddCardPaymentSource:x,cardPaymentView:r,cardSetupInProgress:i,setCardSetupInProgress:l})}):t.jsx(ne,{children:c.errorMsg})]})})},{cardBrands:s}=K.getLocalizedStrings().cardPayment,J={visa:{name:s.visa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/visa.svg"},mastercard:{name:s.mastercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/mastercard.svg"},american_express:{name:s.american_express,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/amex.svg"},discover:{name:s.discover,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/discover-global.svg"},jcb:{name:s.jcb,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/jcb-card.svg"},diners_club:{name:s.diners_club,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dinersclub.svg"},unionpay:{name:s.unionpay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},rupay:{name:s.rupay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/rupay-card.svg"},bancontact:{name:s.bancontact,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cmr_falabella:{name:s.cmr_falabella,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},tarjeta_naranja:{name:s.tarjeta_naranja,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},nativa:{name:s.nativa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cencosud:{name:s.cencosud,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cabal:{name:s.cabal,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},argencard:{name:s.argencard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},elo:{name:s.elo,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/elo-card.svg"},hipercard:{name:s.hipercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/hipercard.svg"},carnet:{name:s.carnet,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/carnet.svg"},maestro:{name:s.maestro,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/maestro.svg"},not_applicable:{name:s.not_applicable,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},eftpos_australia:{name:s.eftpos_australia,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},girocard:{name:s.girocard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},other:{name:s.other,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},unknown:{name:s.unknown,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}},k={sectionWidth:new W(343,580,726),iconWidthHeight:new W(20,xe[4])},Oe={title:new we("standardSemiBold","largeSemiBold")},oe=e=>e?J[e]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Be=(e,r,m,i)=>({header:e,title:`${Z(J[i.cardsList[0]?.brand]?.name??"")} ${r}`,subtitle:`${Z(J[i.cardsList[0]?.brand]?.name??"")} ${m} ${i.cardsList[0]?.last4}`,status:i.cardsList[0]?.status}),Ve=o.img`
88
+ `,ae=e=>`${e}_form`,se="CardPaymentPaymentForm",Me=({cardPaymentView:e,clientSecret:r,cardSetupInProgress:m,handleConfirmCardSetupIntent:i,updateCardPaymentModalState:y,handleAddCardPaymentSource:d,setCardSetupInProgress:g})=>{const x=fe(),n=Se(),[l,h]=p.useState(!1),[P,$]=p.useState(!1),[b,C]=p.useState(!1),[u,w]=p.useState(!1),j=N(),_=e.cardSetupConfirmStatus.fetchState,T=e.addCardPaymentSourceStatus.fetchState,D=e.cardSetupIntentStatus.fetchState,[I,f]=p.useState(!1),V=async S=>{if(S.preventDefault(),!x||!n)return;const v=n.getElement(q),E=n.getElement(G),A=n.getElement(Y);(!v||!E||!A)&&f(!0),w(!0),g(!0),v!=null&&E!=null&&A!=null&&x.confirmCardSetup(r,{payment_method:{card:v}}).then(L=>{w(!1),i(L),L.setupIntent?.id!=null&&d("card","payment_intent",L.setupIntent?.id)}).catch(()=>{w(!1),setTimeout(()=>{g(!1)},2e3)})},R=re(),U={showIcon:!0,style:{base:{...B.standardRegular.cssObject,color:R.colors.primary,"::placeholder":{color:R.colors.grey2}},invalid:{color:z.important,iconColor:z.important}}},M=_==="In-Progress"||T==="In-Progress"||D==="In-Progress"||u===!0||m===!0,H=l||P||b||_==="In-Progress"||T==="In-Progress"||D==="In-Progress"||u===!0||m===!0;return t.jsx(Ie,{windowSize:j,children:t.jsxs(je,{onSubmit:V,id:ae(se),children:[t.jsxs(Ee,{children:[t.jsx(Ae,{children:t.jsx(ke,{children:t.jsx(q,{options:U,onChange:S=>h(!!S.error)})})}),t.jsx(_e,{children:t.jsxs(Re,{children:[t.jsx(ee,{children:c.cardNumber}),t.jsx(G,{options:U,onChange:S=>$(!!S.error)})]})}),t.jsx(Te,{children:t.jsxs(Ue,{children:[t.jsx(ee,{children:c.CVC}),t.jsx(Y,{options:U,onChange:S=>C(!!S.error)})]})})]}),e.cardSetupConfirmStatus.error||I?t.jsx(ne,{children:c.errorMsg}):null,t.jsx(ye,{style:{width:"100%",padding:`${a.sp3} 0 0 0`,borderTop:"none",position:"inherit"},formId:ae(se),primaryBtn:{label:te.linkCard,style:{width:"104px",height:a.sp6},isLoading:M,isDisabled:H,type:"submit"},cancelBtn:{label:te.cancel,style:{width:"104px",height:a.sp6},onClick:()=>{y(!1)}}}),t.jsxs(De,{windowSize:j,children:[c.terms.term1,t.jsx(X,{href:c.terms.term2Link,linkText:c.terms.term2}),c.terms.term3,t.jsx(X,{href:c.terms.term4Link,linkText:c.terms.term4})]})]})})},qe=({isCardPaymentOpen:e,cardPaymentView:r,stripeKey:m,cardSetupInProgress:i,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleCreateCardSetupIntent:g,handleAddCardPaymentSource:x,handleResetCardPaymentErrorStatuses:n,setCardSetupInProgress:l})=>{const[h,P]=p.useState(""),$=de(m),b=le(r.addCardPaymentSourceStatus.fetchState),C=r.addCardPaymentSourceStatus.fetchState;p.useEffect(()=>(g(["card"]),()=>{d(!1),P(""),n()}),[]),p.useEffect(()=>{n()},[e]),p.useEffect(()=>{b==="In-Progress"&&C==="Error"?(l(!1),setTimeout(()=>{d(!1)},2e3)):b==="In-Progress"&&C==="Completed"&&(g(["card"]),setTimeout(()=>{d(!1),l(!1)},2e3))},[b,C]),p.useEffect(()=>{(r.cardSetupConfirmStatus.error||r.addCardPaymentSourceStatus.error)&&(g(["card"]),setTimeout(()=>{l(!1)},2e3))},[r.cardSetupConfirmStatus.error,r.addCardPaymentSourceStatus.error]),p.useEffect(()=>{r.clientSecret!=null&&P(r.clientSecret)},[r.clientSecret]);const u={theme:"stripe",variables:{borderRadius:a.sp1,fontSizeBase:B.standardRegular.fontSize,fontFamily:B.standardRegular.fontFamily},rules:{".Input":{border:`1px solid ${z.neutralGrey3Light}`,borderRadius:a.sp1,padding:"10px",fontSize:B.standardRegular.fontSize}}},w={clientSecret:h,appearance:u},j=N();return t.jsx(pe,{open:e,children:t.jsxs($e,{windowSize:j,isError:!!r.cardSetupConfirmStatus.error,children:[t.jsx(Le,{children:c.title}),t.jsx(ze,{children:c.subtitle}),h&&$!=null?t.jsx(me,{options:w,stripe:$,children:t.jsx(Me,{clientSecret:h,handleConfirmCardSetupIntent:y,updateCardPaymentModalState:d,handleAddCardPaymentSource:x,cardPaymentView:r,cardSetupInProgress:i,setCardSetupInProgress:l})}):t.jsx(ne,{children:c.errorMsg})]})})},{cardBrands:s}=K.getLocalizedStrings().cardPayment,J={visa:{name:s.visa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/visa.svg"},mastercard:{name:s.mastercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/mastercard.svg"},american_express:{name:s.american_express,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/amex.svg"},discover:{name:s.discover,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/discover-global.svg"},jcb:{name:s.jcb,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/jcb-card.svg"},diners_club:{name:s.diners_club,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/dinersclub.svg"},unionpay:{name:s.unionpay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},rupay:{name:s.rupay,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/rupay-card.svg"},bancontact:{name:s.bancontact,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cmr_falabella:{name:s.cmr_falabella,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},tarjeta_naranja:{name:s.tarjeta_naranja,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},nativa:{name:s.nativa,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cencosud:{name:s.cencosud,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},cabal:{name:s.cabal,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},argencard:{name:s.argencard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},elo:{name:s.elo,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/elo-card.svg"},hipercard:{name:s.hipercard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/hipercard.svg"},carnet:{name:s.carnet,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/carnet.svg"},maestro:{name:s.maestro,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/maestro.svg"},not_applicable:{name:s.not_applicable,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},eftpos_australia:{name:s.eftpos_australia,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},girocard:{name:s.girocard,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},other:{name:s.other,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},unknown:{name:s.unknown,iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}},k={sectionWidth:new W(343,580,726),iconWidthHeight:new W(20,xe[4])},Oe={title:new we("standardSemiBold","largeSemiBold")},oe=e=>e?J[e]??{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"}:{name:"Other",iconURL:"https://storage.googleapis.com/zeni-apis.appspot.com/images/other-brand.svg"},Be=(e,r,m,i)=>({header:e,title:`${Z(J[i.cardsList[0]?.brand]?.name??"")} ${r}`,subtitle:`${Z(J[i.cardsList[0]?.brand]?.name??"")} ${m} ${i.cardsList[0]?.last4}`,status:i.cardsList[0]?.status}),Ve=o.img`
89
89
  width: ${e=>e.width}px;
90
90
  height: ${e=>e.height}px;
91
- `,Ge=({paymentAccount:e,plaidConnectionDetails:r,connectedAccountProvider:m,sectionId:i,isDisabled:y,hasError:d=!1,isValid:g,style:x,analytics:n,onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,updateCardPaymentModalState:C,cardPaymentView:u,resetCardPaymentViewState:w,cardSetupInProgress:j=!1,googleAPIKey:_,subscriptionBillingAddress:T,subscriptionBillingAddressSectionId:M})=>{const I=re(),f=N(),{register:V}=ge(),R=I.mode==="light"?new F(I.colors.brandColorJadeLight):new F(I.colors.brandColorJadeDark),{common:U,customerOnboardingPage:{sections:{link_payment_account:{title:D,text:H,subText:S},card_payment_method:v}}}=K.getLocalizedStrings(),E=u.cardsList.length>0,A=u.cardsList[0]?.brand??"other",L=u.addCardPaymentSourceStatus.fetchState,O=Be(v.header,v.titleText,v.protectedCardNo,u);let Q;return E&&(Q={header:O.header,title:O.title,subtitle:O.subtitle,status:O.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx(Ve,{src:oe(A).iconURL,width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f),alt:oe(A).name,loading:"lazy"}),color:new F(R)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1}),t.jsxs(Fe,{windowSize:f,children:[t.jsx(We,{type:"hidden",...V(`${i}.connected`,{validate:ce=>d?ce==="true":!0}),value:g?"true":"false"}),t.jsx(ve,{connectedAccountProvider:m,paymentAccount:e,plaidConnectionDetails:r,allBankAccounts:[],header:D,sectionTitle:D,defaultSectionTitle:H,defaultSectionSubTitle:S,sectionId:i,isDisabled:y,hasError:d,showZeniAccountSection:!1,isCompleted:e?.providerVerificationStatus?.code?.includes("verified")===!0&&e?.isLoginRequired===!1,showCompletedIcon:f==="small",onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,style:x,icon:{element:t.jsx(he,{width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f)}),color:R},analytics:n,productType:"onboarding",resetCardPaymentViewState:w,cardPaymentSectionValues:Q,cardPaymentView:u,updateCardPaymentModalState:C,referrer:"Onboarding",cardSetupInProgress:j}),He(f,U.headers.billingAddress,M,n,T,_,y)]})},He=(e,r,m,i,y,d,g)=>{const x={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return t.jsxs(Ke,{children:[t.jsx(Je,{windowSize:e,isDisabled:g==="disabled",children:r}),t.jsx(be,{googleAPIKey:d??"",addressToEdit:y,sectionId:`${m}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:n=>{if(n.target instanceof HTMLInputElement){const{placeholder:l}=n.target;if(l){const h=x[l];h&&i.trackOnboardingBillingAddress(h)}}}})]})},Fe=o.div`
91
+ `,Ge=({paymentAccount:e,plaidConnectionDetails:r,connectedAccountProvider:m,sectionId:i,isDisabled:y,hasError:d=!1,isValid:g,style:x,analytics:n,onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,updateCardPaymentModalState:C,cardPaymentView:u,resetCardPaymentViewState:w,cardSetupInProgress:j=!1,googleAPIKey:_,subscriptionBillingAddress:T,subscriptionBillingAddressSectionId:D})=>{const I=re(),f=N(),{register:V}=ge(),R=I.mode==="light"?new F(I.colors.brandColorJadeLight):new F(I.colors.brandColorJadeDark),{common:U,customerOnboardingPage:{sections:{link_payment_account:{title:M,text:H,subText:S},card_payment_method:v}}}=K.getLocalizedStrings(),E=u.cardsList.length>0,A=u.cardsList[0]?.brand??"other",L=u.addCardPaymentSourceStatus.fetchState,O=Be(v.header,v.titleText,v.protectedCardNo,u);let Q;return E&&(Q={header:O.header,title:O.title,subtitle:O.subtitle,status:O.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:E===!0,icon:{element:t.jsx(Ve,{src:oe(A).iconURL,width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f),alt:oe(A).name,loading:"lazy"}),color:new F(R)},showCompletedIcon:!1,isError:L==="Error",isLoading:L==="In-Progress",isCompleted:!0,showRightArrow:!1}),t.jsxs(Fe,{windowSize:f,children:[t.jsx(We,{type:"hidden",...V(`${i}.connected`,{validate:ce=>d?ce==="true":!0}),value:g?"true":"false"}),t.jsx(ve,{connectedAccountProvider:m,paymentAccount:e,plaidConnectionDetails:r,allBankAccounts:[],header:M,sectionTitle:M,defaultSectionTitle:H,defaultSectionSubTitle:S,sectionId:i,isDisabled:y,hasError:d,showZeniAccountSection:!1,isCompleted:e?.providerVerificationStatus?.code?.includes("verified")===!0&&e?.isLoginRequired===!1,showCompletedIcon:f==="small",onFetchLinkTokenClick:l,onEstablishConnectionClick:h,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:$,onEstablishConnectionSuccess:b,style:x,icon:{element:t.jsx(he,{width:k.iconWidthHeight.valuePx(f),height:k.iconWidthHeight.valuePx(f)}),color:R},analytics:n,productType:"onboarding",resetCardPaymentViewState:w,cardPaymentSectionValues:Q,cardPaymentView:u,updateCardPaymentModalState:C,referrer:"Onboarding",cardSetupInProgress:j}),He(f,U.headers.billingAddress,D,n,T,_,y)]})},He=(e,r,m,i,y,d,g)=>{const x={"Add street address":"street_address","Add suite":"suite","Add city":"city","Add state":"state","Select country":"country","Add ZIP code":"zip_code","Add secondary info":"secondary_info"};return t.jsxs(Ke,{children:[t.jsx(Je,{windowSize:e,isDisabled:g==="disabled",children:r}),t.jsx(be,{googleAPIKey:d??"",addressToEdit:y,sectionId:`${m}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"},onFormFieldClick:n=>{if(n.target instanceof HTMLInputElement){const{placeholder:l}=n.target;if(l){const h=x[l];h&&i.trackOnboardingBillingAddress(h)}}}})]})},Fe=o.div`
92
92
  display: flex;
93
93
  flex-direction: column;
94
94
  width: ${e=>k.sectionWidth.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{u as $e,X as I,M as y,j as t,Y as a,aW as le,bf as Ne,o as s,bK as De,bL as Oe,e as U,a9 as J,bM as we,K as Le,r as be,bN as _e,a5 as Ae,bO as Ve,bP as Me,bQ as We,bR as Be,ao as He,H,bS as Ke,C as $,bT as Ue,bU as je,q as b,l as A,bV as ee,bD as N,a as Ee,F as Fe,bW as Ze,bX as qe,R as Xe,v as D,bY as Qe,t as O,m as te,g as V,bZ as Ye,ah as Se,av as ie,b_ as ke,bd as Ge,b$ as Je}from"./index-CChR0tlr.js";import{f as ce,b as v,n as i}from"./vendor-CnQcJ2Lu.js";import{A as Ie}from"./Menu-CrSQ1yNo-c9Hi2HXE.js";import{T as Ce}from"./RoleWithToolTip-TxLTa63q-DKveW2Ky.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],K=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],et=58;function tt({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Xe(d==="off"?S:K));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(ot,{height:et,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(rt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(at,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(st,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(nt,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(lt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const it=ce.memo(tt),st=i.div`
1
+ import{u as $e,X as I,M as y,j as t,Y as a,aW as le,bf as Ne,o as s,bK as De,bL as Oe,e as U,a9 as J,bM as we,K as Le,r as be,bN as _e,a5 as Ae,bO as Ve,bP as Me,bQ as We,bR as Be,ao as He,D as H,bS as Ke,C as $,bT as Ue,bU as je,q as b,l as A,bV as ee,bD as N,a as Ee,F as Fe,bW as Ze,bX as qe,P as Xe,v as D,bY as Qe,t as O,m as te,g as V,bZ as Ye,ah as Se,av as ie,b_ as ke,bd as Ge,b$ as Je}from"./index-DTlzo6Yx.js";import{f as ce,b as v,n as i}from"./vendor-CnQcJ2Lu.js";import{A as Ie}from"./Menu-LDwLOgxI-DZ0xBJbp.js";import{T as Ce}from"./RoleWithToolTip-VlYG_GPv-D1yDUHv7.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const P=y.getLocalizedStrings().peoplePage.header,S=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,30,32)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(18,17,17,21,19)},{key:"manager",value:P.manager,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"department",value:P.department,sortOrder:"ascending",width:new $(20,20,20,19,20)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],K=[{key:"name",value:P.name,sortOrder:"ascending",width:new $(32,26,26,32,33)},{key:"role",value:P.role,sortOrder:"ascending",width:new $(58,57,57,57,58)},{key:"lastSeen",value:P.lastSeen,sortOrder:"ascending",width:new $(10,17,17,11,9)}],et=58;function tt({userNameSticky:e,sortConfig:r,onColumnSortConfigChanged:l,mode:d}){const m=I(),[p,x]=v.useState(Xe(d==="off"?S:K));v.useEffect(()=>{const n=[...p];for(const o of n)o.key===r.sortKey?o.sortOrder=r.sortOrder:o.sortOrder="ascending";x(n)},[r.sortKey,r.sortOrder]);const h=(n,o)=>{let u=o;r.sortKey===n&&(u=o==="ascending"?"descending":"ascending"),l?.(n,u)};return t.jsx(ot,{height:et,"data-testid":a("people-list-header-row"),children:p.map(n=>t.jsxs(rt,{userNameSticky:!!e&&n.key==="name",sortDataValue:r.sortKey,actualDataValue:n.key,wrapperWidth:n.width,windowSize:m,children:[t.jsxs(at,{"data-testid":a("people-list-header",n.key),onClick:()=>h(n.key,n.sortOrder),children:[t.jsx(D,{children:n.value}),t.jsx(st,{sortDataValue:r.sortKey,headerdata:n,children:t.jsx(Qe,{width:12,height:12})})]}),t.jsx(nt,{isVisible:r.sortKey===n.key&&n.key!=="name",children:t.jsx(lt,{"data-testid":a("people-list-header-sort-cancel",n.key),onClick:()=>h("name","ascending")})})]},n.key))})}const it=ce.memo(tt),st=i.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  transform: ${e=>e.sortDataValue===e.headerdata.key&&e.headerdata.sortOrder==="descending"?"rotate(180deg)":"rotate(0deg)"};
@@ -1,4 +1,4 @@
1
- import{X as Y,H as S,j as i,bt as H,M as Q,Y as U,C as u,a7 as K,o as n,a6 as V,Q as X,h as J,t as Z,q as l,r as _,aq as ee,m as T,g as v,v as ie,ah as te}from"./index-CChR0tlr.js";import{b as k,n as t}from"./vendor-CnQcJ2Lu.js";import{E as ne}from"./PortfolioDetails-DiITguNZ-Cq29R7Zz.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-BqwCUN2u-u6_A3p-Z.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=Q.getLocalizedStrings(),a={titleWidth:new u(343,580,726,826),cardBorderRadius:l[2],cardPadding:new u(l[3],l[4]),sliderWidth:new u(143,177),sliderContainerGap:new u(l[5],l[3]),navBarContainerPaddingYaxis:new u(10,l[3]),containerPaddingLeft:new u(l[3],l[6],l[8]),containerPaddingRight:new u(l[3],l[6],l[8]),riskLevelInfoPaddingRight:new u(l[0],l[3])},oe={stepTitle:new X("h6Regular","h5Regular")},Me=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:W,isReadOnly:c,isEditMode:p,isOnSetup:$=!1})=>{const r=Y(),[D,M]=k.useState(!1),{fundsData:N,fundAllocationOptions:s,fundAllocationLocalData:d,currentAllocation:w,portfolioAllocationUpdateStatus:q}=W;k.useEffect(()=>{if(p&&w!==null){const o=!S(d.allocation,w);M(o)}},[p,w,d]);const y=o=>{const f=s.find(G=>G.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},F=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&F(),e()};return i.jsxs(se,{children:[i.jsxs(de,{windowSize:r,children:[i.jsx(ae,{windowSize:r,children:i.jsx(H,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(ce,{"data-testid":U("nav-bar-back-portfolio-allocation"),onClick:j})})}),i.jsxs(pe,{windowSize:r,children:[i.jsxs(xe,{windowSize:r,children:[i.jsx(he,{windowSize:r,children:re(c,$,p)}),!c&&!p&&i.jsx(ue,{children:i.jsxs(me,{children:[i.jsx(ge,{}),i.jsx(we,{})]})})]}),i.jsx(fe,{isReadOnly:c,children:le(c,$,p)}),i.jsx($e,{children:i.jsxs(ye,{windowSize:r,children:[i.jsx(ve,{children:i.jsx(ne,{isInReview:!1,isSetup:!0,fundDetails:N,allocation:d,page:$?"setup portfolio":"edit portfolio"})}),i.jsxs(be,{windowSize:r,children:[i.jsx(je,{children:i.jsx(Se,{onClick:b,isRecommended:c||d.riskScore===0||d.riskLevel==="Conservative",children:x.resetButton})}),r==="small"?i.jsxs(ke,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(ze,{windowSize:r,children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]})]})]})})]})]}),c?null:i.jsx(K,{style:{zIndex:4,paddingTop:n.sp2,paddingBottom:n.sp2},showCancel:!0,cancelBtn:{label:p?m.cancel:m.navBar.back,onClick:j},primaryBtn:{label:p?m.confirm:m.next,onClick:g,isLoading:p&&q.fetchState==="In-Progress",isDisabled:p&&!D}})]})};function re(e,g,h){return e||g&&h?x.title:h?x.editTitle:x.stepTitle}function le(e,g,h){return e||g&&h?x.subtextReadOnly:h?x.subtextEdit:x.subtextSetup}const se=t.div`
1
+ import{X as Y,D as S,j as i,bt as Q,M as U,Y as H,C as u,a7 as K,o as n,a6 as V,Q as X,h as J,t as Z,q as l,r as _,aq as ee,m as D,g as v,v as ie,ah as te}from"./index-DTlzo6Yx.js";import{b as k,n as t}from"./vendor-CnQcJ2Lu.js";import{E as ne}from"./PortfolioDetails-Dk_IIRuG-B_DxSJx7.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./treasuryColorHelper-DjASf5JB-DoMbQSj9.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=U.getLocalizedStrings(),a={titleWidth:new u(343,580,726,826),cardBorderRadius:l[2],cardPadding:new u(l[3],l[4]),sliderWidth:new u(143,177),sliderContainerGap:new u(l[5],l[3]),navBarContainerPaddingYaxis:new u(10,l[3]),containerPaddingLeft:new u(l[3],l[6],l[8]),containerPaddingRight:new u(l[3],l[6],l[8]),riskLevelInfoPaddingRight:new u(l[0],l[3])},oe={stepTitle:new X("h6Regular","h5Regular")},Me=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:T,isReadOnly:c,isEditMode:p,isOnSetup:$=!1})=>{const r=Y(),[W,M]=k.useState(!1),{fundsData:N,fundAllocationOptions:s,fundAllocationLocalData:d,currentAllocation:w,portfolioAllocationUpdateStatus:q}=T;k.useEffect(()=>{if(p&&w!==null){const o=!S(d.allocation,w);M(o)}},[p,w,d]);const y=o=>{const f=s.find(G=>G.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},F=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&F(),e()};return i.jsxs(se,{children:[i.jsxs(de,{windowSize:r,children:[i.jsx(ae,{windowSize:r,children:i.jsx(Q,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(ce,{"data-testid":H("nav-bar-back-portfolio-allocation"),onClick:j})})}),i.jsxs(pe,{windowSize:r,children:[i.jsxs(xe,{windowSize:r,children:[i.jsx(he,{windowSize:r,children:re(c,$,p)}),!c&&!p&&i.jsx(ue,{children:i.jsxs(me,{children:[i.jsx(ge,{}),i.jsx(we,{})]})})]}),i.jsx(fe,{isReadOnly:c,children:le(c,$,p)}),i.jsx($e,{children:i.jsxs(ye,{windowSize:r,children:[i.jsx(ve,{children:i.jsx(ne,{isInReview:!1,isSetup:!0,fundDetails:N,allocation:d,page:$?"setup portfolio":"edit portfolio"})}),i.jsxs(be,{windowSize:r,children:[i.jsx(je,{children:i.jsx(Se,{onClick:b,isRecommended:c||d.riskScore===0||d.riskLevel==="Conservative",children:x.resetButton})}),r==="small"?i.jsxs(ke,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(z,{windowSize:r,children:[i.jsx(P,{children:d.riskScore}),i.jsx(C,{children:m.strings.slash}),i.jsx(O,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(L,{children:[i.jsx(B,{type:"range",min:"0",max:s.length-1,step:"1",value:d.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(I,{style:{width:`${s.length>1?d.optionIndex/(s.length-1)*(a.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(ze,{windowSize:r,children:[i.jsx(A,{children:x.riskLevelLabel}),i.jsx(E,{children:d.riskLevel})]})]})]})]})})]})]}),c?null:i.jsx(K,{style:{zIndex:4,paddingTop:n.sp2,paddingBottom:n.sp2},showCancel:!0,cancelBtn:{label:p?m.cancel:m.navBar.back,onClick:j},primaryBtn:{label:p?m.confirm:m.next,onClick:g,isLoading:p&&q.fetchState==="In-Progress",isDisabled:p&&!W}})]})};function re(e,g,h){return e||g&&h?x.title:h?x.editTitle:x.stepTitle}function le(e,g,h){return e||g&&h?x.subtextReadOnly:h?x.subtextEdit:x.subtextSetup}const se=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  height: 100%;
@@ -132,9 +132,9 @@ import{X as Y,H as S,j as i,bt as H,M as Q,Y as U,C as u,a7 as K,o as n,a6 as V,
132
132
  `}
133
133
  `,P=t(ee)`
134
134
  color: ${e=>e.theme.colors.primary};
135
- `,O=t(T)`
135
+ `,O=t(D)`
136
136
  color: ${e=>e.theme.colors.primary};
137
- `,C=t(T)`
137
+ `,C=t(D)`
138
138
  color: ${e=>e.theme.colors.primary};
139
139
  `,L=t.div`
140
140
  display: flex;
@@ -1,4 +1,4 @@
1
- import{j as e,M as H,o as n,iD as J,t as F,d3 as X,u as K,X as Q,_ as N,C as W,bt as f,g as k,ah as U,v as A,dq as V,ak as Z,aq as ee,b5 as ie,bd as se,m as ne,d5 as re,q as le}from"./index-CChR0tlr.js";import{n as s,b as te}from"./vendor-CnQcJ2Lu.js";import{l as oe}from"./treasuryColorHelper-BqwCUN2u-u6_A3p-Z.js";const{common:o,spendManagement:{treasury:l},dateFormat:ae}=H.getLocalizedStrings(),y={portfolioYieldMarginTop:new W(-4,le[0]),sliderWidth:new W(143,177)},Oe=({isInReview:i,isSetup:r,fundDetails:m,allocation:d,amount:g,page:v})=>{const h=de(m);return e.jsxs(me,{children:[!r&&e.jsx(xe,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${l.portfolioAllocation.title}`}),h.map((a,x)=>e.jsx(ce,{portfolio:a,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:r,isLast:x===h.length-1,amount:g,page:v},m[x]?.fundCode||x))]})},de=i=>i.map(r=>[{label:l.overviewPage.fundTile.liquidity,value:r.liquidityTimeline||o.strings.hyphen},{label:l.overviewPage.fundTile.fundSizeLabel,value:J(r.fundSize,r.currencyCode)},{label:l.overviewPage.fundTile.maturityLabel,value:`${r.maturity} ${o.timeStrings.days}`},{label:l.overviewPage.fundTile.expenseRatioLabel,value:`${r.expenseRatio}${o.strings.percentage} ${l.overviewPage.fundTile.includedInTheYield}`},{label:l.overviewPage.fundTile.riskRatingLabel,value:r.riskRating||o.strings.hyphen},{label:l.overviewPage.fundTile.compositionLabel,value:Array.isArray(r.compositions)&&r.compositions.length>0?`${r.compositions[0].investedIn} ${r.compositions[0].percentage}${o.strings.percentage}`:o.strings.hyphen,tag:Array.isArray(r.compositions)&&r.compositions.length>1?`+${r.compositions.length-1}`:void 0,compositions:r.compositions??[]}]),ce=({portfolio:i,fund:r,fundIndex:m,allocationPercentage:d,isInReview:g,isSetup:v,isLast:h,amount:a,page:x})=>{const _=X().analytics,L=K(),t=Q(),j=a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,G]=te.useState(!1),u=oe(m,L),$=()=>{p||_.trackTreasuryProspectusClick(r.fundName,r.fundCode,x),G(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(pe,{children:e.jsxs(he,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(ue,{windowSize:t,children:[e.jsxs(fe,{isInReview:g,windowSize:t,children:[e.jsx(we,{children:r.fundCode}),e.jsx(ye,{color:u.fundNameColor,children:`${r.fundCompanyName} ${r.fundName}`})]}),t!=="small"&&e.jsxs(T,{onClick:$,children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:g?e.jsxs(O,{style:{alignItems:"flex-start"},children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsx(q,{children:j!=null?N("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):o.strings.empty})]}):e.jsxs(je,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(O,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,style:{marginRight:n.sp3},children:[r.yield,o.strings.percentage]})]})]}),t==="small"&&e.jsx(Pe,{children:v?e.jsxs(Ye,{children:[e.jsxs(Ie,{children:[e.jsxs(Ae,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]}),e.jsxs(T,{onClick:$,style:{marginBottom:n.sp2},children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}):g?e.jsxs(ke,{children:[e.jsxs(E,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsx(q,{children:j!=null?N("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):o.strings.empty}),e.jsxs(T,{onClick:$,style:{margin:`${n.sp2} ${n.sp0}`,...h?{marginBottom:n.sp0}:{}},children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),e.jsxs(B,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]}):e.jsxs(Le,{children:[e.jsxs(E,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(T,{onClick:$,children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),e.jsxs(B,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(be,{children:[e.jsx(C,{children:r.description}),e.jsx($e,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Se,{windowSize:t,children:[e.jsx(C,{children:o.strings.dividerDot}),e.jsx(C,{style:{minWidth:"140px"},children:c.label}),e.jsxs(C,{style:{color:c.label===l.overviewPage.fundTile.fundSizeLabel?u.fundNameColor:L.colors.primary,borderBottom:`1px solid ${L.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===l.overviewPage.fundTile.compositionLabel&&e.jsx(f,{variant:"list-description",data:{title:o.strings.empty,items:Array.isArray(c.compositions)&&c.compositions.length>0?c.compositions.map(R=>({text:`${o.strings.dividerDot} ${R.investedIn}`,amount:`${R.percentage}${o.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${n.sp3}`},children:e.jsx(Te,{children:c.tag})})]})]},c.label))}),e.jsxs(Ce,{onClick:()=>window.open(r.url,"_blank"),children:[e.jsx(ve,{children:`${l.overviewPage.fundTile.asOfLabel} ${r.asOfDate.format(ae.visual.MMMDCommaYYYYformat)}`}),e.jsx(De,{})]})]}),(!h||v)&&e.jsx(ze,{style:{width:"100%",marginBottom:n.sp3}})]})},pe=s.div`
1
+ import{j as e,M as H,o as n,iD as J,t as F,d3 as X,u as K,X as Q,_ as N,C as W,bt as f,g as k,ah as U,v as A,dq as V,ak as Z,aq as ee,b5 as ie,bd as se,m as ne,d5 as re,q as le}from"./index-DTlzo6Yx.js";import{n as s,b as te}from"./vendor-CnQcJ2Lu.js";import{l as oe}from"./treasuryColorHelper-DjASf5JB-DoMbQSj9.js";const{common:o,spendManagement:{treasury:l},dateFormat:ae}=H.getLocalizedStrings(),y={portfolioYieldMarginTop:new W(-4,le[0]),sliderWidth:new W(143,177)},Oe=({isInReview:i,isSetup:r,fundDetails:m,allocation:d,amount:h,page:v})=>{const g=de(m);return e.jsxs(me,{children:[!r&&e.jsx(xe,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${l.portfolioAllocation.title}`}),g.map((a,x)=>e.jsx(ce,{portfolio:a,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:r,isLast:x===g.length-1,amount:h,page:v},m[x]?.fundCode||x))]})},de=i=>i.map(r=>[{label:l.overviewPage.fundTile.liquidity,value:r.liquidityTimeline||o.strings.hyphen},{label:l.overviewPage.fundTile.fundSizeLabel,value:J(r.fundSize,r.currencyCode)},{label:l.overviewPage.fundTile.maturityLabel,value:`${r.maturity} ${o.timeStrings.days}`},{label:l.overviewPage.fundTile.expenseRatioLabel,value:`${r.expenseRatio}${o.strings.percentage} ${l.overviewPage.fundTile.includedInTheYield}`},{label:l.overviewPage.fundTile.riskRatingLabel,value:r.riskRating||o.strings.hyphen},{label:l.overviewPage.fundTile.compositionLabel,value:Array.isArray(r.compositions)&&r.compositions.length>0?`${r.compositions[0].investedIn} ${r.compositions[0].percentage}${o.strings.percentage}`:o.strings.hyphen,tag:Array.isArray(r.compositions)&&r.compositions.length>1?`+${r.compositions.length-1}`:void 0,compositions:r.compositions??[]}]),ce=({portfolio:i,fund:r,fundIndex:m,allocationPercentage:d,isInReview:h,isSetup:v,isLast:g,amount:a,page:x})=>{const _=X().analytics,L=K(),t=Q(),j=a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,G]=te.useState(!1),u=oe(m,L),$=()=>{p||_.trackTreasuryProspectusClick(r.fundName,r.fundCode,x),G(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(pe,{children:e.jsxs(ge,{windowSize:t,children:[e.jsxs(he,{windowSize:t,children:[e.jsxs(ue,{windowSize:t,children:[e.jsxs(fe,{isInReview:h,windowSize:t,children:[e.jsx(we,{children:r.fundCode}),e.jsx(ye,{color:u.fundNameColor,children:`${r.fundCompanyName} ${r.fundName}`})]}),t!=="small"&&e.jsxs(T,{onClick:$,children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:h?e.jsxs(O,{style:{alignItems:"flex-start"},children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsx(q,{children:j!=null?N("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):o.strings.empty})]}):e.jsxs(je,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(O,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,style:{marginRight:n.sp3},children:[r.yield,o.strings.percentage]})]})]}),t==="small"&&e.jsx(Pe,{children:v?e.jsxs(Ye,{children:[e.jsxs(Ie,{children:[e.jsxs(Ae,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]}),e.jsxs(T,{onClick:$,style:{marginBottom:n.sp2},children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}):h?e.jsxs(ke,{children:[e.jsxs(E,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsx(q,{children:j!=null?N("0,0.[00]",{amount:j,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):o.strings.empty}),e.jsxs(T,{onClick:$,style:{margin:`${n.sp2} ${n.sp0}`,...g?{marginBottom:n.sp0}:{}},children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),e.jsxs(B,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]}):e.jsxs(Le,{children:[e.jsxs(E,{children:[e.jsxs(w,{windowSize:t,children:[d,o.strings.percentage]}),e.jsxs(Y,{children:[e.jsx(I,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(M,{color:u.fundNameColor,style:{width:`calc(${y.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(T,{onClick:$,children:[p?l.transferDrawer.calculator.footerText.hide:l.overviewPage.fundTile.viewDetails,p?e.jsx(z,{}):e.jsx(D,{})]})]}),e.jsxs(B,{children:[e.jsxs(S,{children:[l.overviewPage.fundTile.sevenDayYieldLabel,e.jsx(f,{data:l.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(P,{})})]}),e.jsxs(b,{windowSize:t,children:[r.yield,o.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(be,{children:[e.jsx(C,{children:r.description}),e.jsx($e,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Se,{windowSize:t,children:[e.jsx(C,{children:o.strings.dividerDot}),e.jsx(C,{style:{minWidth:"140px"},children:c.label}),e.jsxs(C,{style:{color:c.label===l.overviewPage.fundTile.fundSizeLabel?u.fundNameColor:L.colors.primary,borderBottom:`1px solid ${L.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===l.overviewPage.fundTile.compositionLabel&&e.jsx(f,{variant:"list-description",data:{title:o.strings.empty,items:Array.isArray(c.compositions)&&c.compositions.length>0?c.compositions.map(R=>({text:`${o.strings.dividerDot} ${R.investedIn}`,amount:`${R.percentage}${o.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${n.sp3}`},children:e.jsx(Te,{children:c.tag})})]})]},c.label))}),e.jsxs(Ce,{onClick:()=>window.open(r.url,"_blank"),children:[e.jsx(ve,{children:`${l.overviewPage.fundTile.asOfLabel} ${r.asOfDate.format(ae.visual.MMMDCommaYYYYformat)}`}),e.jsx(De,{})]})]}),(!g||v)&&e.jsx(ze,{style:{width:"100%",marginBottom:n.sp3}})]})},pe=s.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  gap: ${n.sp2};
@@ -10,14 +10,14 @@ import{j as e,M as H,o as n,iD as J,t as F,d3 as X,u as K,X as Q,_ as N,C as W,b
10
10
  flex-direction: column;
11
11
  align-items: center;
12
12
  width: 100%;
13
- `,ge=s.div`
13
+ `,he=s.div`
14
14
  display: flex;
15
15
  flex-direction: row;
16
16
  align-items: center;
17
17
  justify-content: space-between;
18
18
  width: 100%;
19
19
  align-items: flex-start;
20
- `,he=s.div`
20
+ `,ge=s.div`
21
21
  display: flex;
22
22
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
23
23
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{M as X,j as t,d3 as I,o as l,bp as O,ak as P,d4 as D,Z as F,t as L,d5 as R,g as v}from"./index-CChR0tlr.js";import{b as $,n as i}from"./vendor-CnQcJ2Lu.js";const u=X.getLocalizedStrings(),y={large:{labelComp:D,title:F,subtitle:L,seeMoreLink:L}},U={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=U.large,B=i.div`
1
+ import{M as X,j as t,d3 as I,o as l,bp as O,ak as P,d4 as D,Z as F,t as L,d5 as R,g as v}from"./index-DTlzo6Yx.js";import{b as $,n as i}from"./vendor-CnQcJ2Lu.js";const u=X.getLocalizedStrings(),y={large:{labelComp:D,title:F,subtitle:L,seeMoreLink:L}},U={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=U.large,B=i.div`
2
2
  width: ${e=>e.scale*o.width}px;
3
3
  height: ${e=>e.scale*o.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{X as c,j as a,d9 as b,da as v,db as L,aR as z,C as r,o as e,g as d,Q as m,q as l}from"./index-CChR0tlr.js";import{j as i,n as p,k as f}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new r(l[6],120),plasticCardMarginTop:new r(12,-9),businessTextRight:new r(l[2],13),businessTextBottom:new r(l[8],81),chargeCardWidth:new r(240,384),chargeCardHeight:new r(153,243),styledLogoWidth:new r(47,76),styledLogoHeight:new r(46,74),styledFullLogoTop:new r(12,28),styledFullLogoRight:new r(l[2],13),styledFullLogoHeight:new r(20,34),styledFullLogoWidth:new r(88,142),chipLogoWidth:new r(31,50),chipLogoHeight:new r(l[4],39),visaLogoWidth:new r(52,84),visaLogoHeight:new r(17,27),visaLogoRight:new r(l[2],13),visaLogoBottom:new r(l[2],13)},u={businessText:new m("extraSmallRegular","largeRegular"),promoBusinessText:new m("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return a.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&a.jsx(S,{windowSize:n,forDashboard:s,children:a.jsx(b,{})}),a.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(z,{})}),a.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),a.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return a.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&a.jsx(S,{windowSize:n,forDashboard:s,children:a.jsx(b,{})}),a.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(v,{})}),a.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),a.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(L,{})})]})},C=f`
1
+ import{X as c,j as a,d9 as b,da as v,db as L,aR as z,C as r,o as e,g as d,Q as m,q as l}from"./index-DTlzo6Yx.js";import{j as i,n as p,k as f}from"./vendor-CnQcJ2Lu.js";const t={plasticCardMarginLeft:new r(l[6],120),plasticCardMarginTop:new r(12,-9),businessTextRight:new r(l[2],13),businessTextBottom:new r(l[8],81),chargeCardWidth:new r(240,384),chargeCardHeight:new r(153,243),styledLogoWidth:new r(47,76),styledLogoHeight:new r(46,74),styledFullLogoTop:new r(12,28),styledFullLogoRight:new r(l[2],13),styledFullLogoHeight:new r(20,34),styledFullLogoWidth:new r(88,142),chipLogoWidth:new r(31,50),chipLogoHeight:new r(l[4],39),visaLogoWidth:new r(52,84),visaLogoHeight:new r(17,27),visaLogoRight:new r(l[2],13),visaLogoBottom:new r(l[2],13)},u={businessText:new m("extraSmallRegular","largeRegular"),promoBusinessText:new m("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return a.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&a.jsx(S,{windowSize:n,forDashboard:s,children:a.jsx(b,{})}),a.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(z,{})}),a.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),a.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return a.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&a.jsx(S,{windowSize:n,forDashboard:s,children:a.jsx(b,{})}),a.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(v,{})}),a.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),a.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:a.jsx(L,{})})]})},C=f`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP as f,eH as v,q as a}from"./index-CChR0tlr.js";import{n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
1
+ import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP as f,eH as v,q as a}from"./index-DTlzo6Yx.js";import{n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},S=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -19,12 +19,12 @@ import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP
19
19
  margin: 20px ${i.sp0};
20
20
  `,_=o.div`
21
21
  margin: 20px ${i.sp0};
22
- `,C=o.hr`
22
+ `,B=o.hr`
23
23
  width: 100%;
24
24
  border: 0.2px solid ${e=>e.theme.colors.grey3};
25
25
  margin-top: auto;
26
26
  margin-bottom: 0;
27
- `,B=o.div`
27
+ `,C=o.div`
28
28
  display: flex;
29
29
  align-items: center;
30
30
  justify-content: center;
@@ -48,4 +48,4 @@ import{X as j,M as t,j as n,bA as w,K as l,C as s,o as i,Z as P,t as y,$ as b,aP
48
48
  `,O=o(v)`
49
49
  height: ${i.sp4};
50
50
  color: ${e=>e.theme.colors.primary};
51
- `;function N({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(S,{windowSize:x,children:[n.jsxs(z,{children:[n.jsx(A,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(k,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(C,{}),n.jsxs(B,{children:[c===!0?n.jsx(_,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(L,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{N as default};
51
+ `;function N({companyName:e="",isGoBackAllowed:c,isAdmin:d,saveConnectionState:p,isQBOPopupOpen:g=!0,handleOnConnectClick:m,handleGoBack:h}){const x=j(),$=t.getLocalizedStrings().dashboardAccountingPage.adminInfoText.replace(e?"_company-name_":"‘_company-name_’",e),u=t.getLocalizedStrings().dashboardAccountingPage.nonAdminInfoText.replace(e?"_company-name_":"‘_company-name_’",e);return n.jsx(w,{open:g,children:n.jsxs(S,{windowSize:x,children:[n.jsxs(z,{children:[n.jsx(A,{children:t.getLocalizedStrings().dashboardAccountingPage.title}),n.jsx(k,{children:d?$:u}),n.jsxs(R,{children:[n.jsx(T,{}),n.jsx(I,{}),n.jsx(O,{})]})]}),d||c?n.jsxs(n.Fragment,{children:[n.jsx(B,{}),n.jsxs(C,{children:[c===!0?n.jsx(_,{children:n.jsx(l,{variant:"secondary",label:t.getLocalizedStrings().dashboardAccountingPage.goBack,onClick:h})}):null,d?n.jsx(L,{children:n.jsx(l,{variant:"primary",label:t.getLocalizedStrings().dashboardAccountingPage.connect,onClick:m,loading:p==="In-Progress"})}):null]})]}):null]})})}export{N as default};
@@ -1,4 +1,4 @@
1
- import{X as O,M as $,j as i,K as k,o,C as a,g as d,f0 as Q,Q as T,$ as W,aP as B,eH as E,e_ as G,ab as w,v as u,q as r}from"./index-CChR0tlr.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import H from"./QBOConnectionDialog-CzuH4c1o-ZsjLY4Mn.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},M={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=$.getLocalizedStrings().customerOnboardingPage.sections,{title:v,sucessText:b,button:z,errorText:P,requiredText:C}=S;return i.jsxs(q,{windowSize:n,children:[i.jsxs(A,{windowSize:n,children:[n==="small"?i.jsx(U,{children:l?i.jsx(Z,{}):i.jsx(J,{})}):null,i.jsx(I,{windowSize:n,children:v})]}),i.jsxs(N,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(_,{}),i.jsx(F,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(K,{children:b}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(H,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},q=s.div`
1
+ import{X as O,M as $,j as i,K as k,o,C as a,g as d,f0 as Q,Q as T,$ as W,aP as B,eH as E,e_ as G,ab as w,v as u,q as r}from"./index-DTlzo6Yx.js";import{n as s}from"./vendor-CnQcJ2Lu.js";import H from"./QBOConnectionDialog-BmIUfW_i-DCw1_Zjz.js";const t={containerPadding:new a(r[3],r[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(r[3],r[0]),arrowIconWidthHeight:new a(r[3],r[4])},M={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:j,companyName:y,updateQBOPopupState:h,handleOnConnectClick:f})=>{const n=O(),{qbo_connection:S}=$.getLocalizedStrings().customerOnboardingPage.sections,{title:v,sucessText:b,button:z,errorText:P,requiredText:C}=S;return i.jsxs(q,{windowSize:n,children:[i.jsxs(A,{windowSize:n,children:[n==="small"?i.jsx(U,{children:l?i.jsx(Z,{}):i.jsx(J,{})}):null,i.jsx(I,{windowSize:n,children:v})]}),i.jsxs(N,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(R,{children:[i.jsx(_,{}),i.jsx(F,{windowSize:n}),i.jsx(L,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:z.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(K,{children:b}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:C})}):null]}),i.jsx(H,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:j,companyName:y,saveConnectionState:p,handleOnConnectClick:f,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=$.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(G,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},q=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{C as z,q as U,u as M,X as W,M as D,a as G,a5 as X,j as s,R as H,c3 as J,aW as K,F as Q,a7 as Y,o as f}from"./index-CChR0tlr.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-CILr1_vc-CLgm2Hne.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new z(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const F=M(),S=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=X(u?.fetchState),{upperBound:P}=x,{allApprovalRules:n,allAccountingClasses:_,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const q=H(p);J(()=>V(R,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:P===1/0?Number.MAX_SAFE_INTEGER-1:P-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
1
+ import{C as z,q as U,u as M,X as W,M as D,a as G,a5 as X,j as s,P as H,c3 as J,aW as K,F as Q,a7 as Y,o as f}from"./index-DTlzo6Yx.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-BfnTsu_D-DwG4wG8g.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const $="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new z(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:E,onSaveRuleClick:N,onSaveRuleSuccess:A}){const F=M(),S=W(),a=D.getLocalizedStrings().commonSetUp.approval,I=D.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,P=X(u?.fetchState),{upperBound:w}=x,{allApprovalRules:n,allAccountingClasses:_,remiSetupApproverViewUpdateData:c}=e;let m=n.length>1?n.length-1:0,v=n.length>0?n[m].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;m=n.findIndex(p=>p.approvalRuleId===i),v=m>0?n[m-1].criteria[0].range.min.amount:0}const O=g.handleSubmit(()=>{N()}),V=async(i,p)=>{b(p)};return L.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const q=H(p);J(()=>V(R,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{P==="In-Progress"&&u?.fetchState==="Completed"&&A()},[P,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(K,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:F.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(Q,{...g,children:s.jsx("form",{id:C($),onSubmit:O,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:w===1/0?Number.MAX_SAFE_INTEGER-1:w-1,min:v,validate:i=>t?!0:i!=null&&i>v},isDisabled:t,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:l,hideField:o,additionalInfoLabel:a.upperBoundInfoLabel}}),s.jsx(pe,{}),s.jsx(ee,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_reimbursements"})]})})})}),s.jsx(Y,{formId:C($),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:E},containerStyle:{justifyContent:S==="small"?"space-between":"center"},style:{padding:te.footerPadding.valuePx(S)},separatorStyle:{marginRight:f.sp4}})]})}const ae=(e,r)=>{const{criteria:t,steps:l}=e.remiSetupApproverViewUpdateData?.data??{};return{[y]:re(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),B(e.allAttributes),B(e.filteredAttributes),l??[])??[],[T]:r?void 0:t!=null?t.range.min.amount??0:0,[k]:t!=null?t.range.max==null?1/0:t.range.max.amount:1/0}},re=(e,r,t,l,o)=>o&&o.length>0?o.map((d,b)=>({stepIndex:b,stepType:{selectedOption:d.action,allOptions:j},actors:{allUsers:r,selectedUsers:le(e,d.actors),allNonUsers:l,selectedNonUsers:oe(t,d.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:r,selectedUsers:[],allNonUsers:l,selectedNonUsers:[]}}],le=(e,r)=>e.filter(t=>t.userId!=null&&r.findIndex(l=>l.userId===t.userId)>-1),oe=(e,r)=>e.filter(t=>r.findIndex(l=>l.subType===t.value)>-1),C=e=>`${e}_form`,Ae=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,bO as q,bQ as G,bR as U,cq as O,q as l,as as Q,Q as P,ar as X,g as j,cn as Y,aN as _,r as F}from"./index-CChR0tlr.js";import{n as i,b as V}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=V.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return t.jsxs(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(ae,{children:[t.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),t.jsxs(ee,{children:[t.jsx(k,{}),t.jsx(te,{}),t.jsx(k,{})]}),c.max==null?t.jsx(ce,{}):t.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e?t.jsx(pe,{onClick:$}):null,t.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),t.jsx(oe,{windowSize:n,children:t.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,N)=>t.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(le,{children:a.requireText}):t.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(R,{children:[t.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>t.jsxs(R,{children:[t.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?t.jsx(q,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},K=i.div`
1
+ import{u as D,X as B,M as b,j as t,aW as H,e as E,Y as S,o,C as r,t as L,_ as z,bO as q,bQ as G,bR as U,cq as O,q as l,as as Q,Q as P,ar as X,g as j,cn as Y,aN as _,r as F}from"./index-DTlzo6Yx.js";import{n as i,b as V}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},W={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:y})=>{const[g,d]=V.useState(!1),n=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,a=b.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},A={onOkClick:()=>{d(!1),y?.(m)},onCancelClick:()=>{d(!1)}};return t.jsxs(K,{windowSize:n,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(ae,{children:[t.jsxs(I,{windowSize:n,children:[a.from," ",z("0,0",c.min)]}),t.jsxs(ee,{children:[t.jsx(k,{}),t.jsx(te,{}),t.jsx(k,{})]}),c.max==null?t.jsx(ce,{}):t.jsx(I,{windowSize:n,children:z("0,0",{...c.min,amount:c.max.amount})})]}),t.jsxs(ne,{className:"icons",children:[e?t.jsx(pe,{onClick:$}):null,t.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),t.jsx(oe,{windowSize:n,children:t.jsx(ie,{isSingleStep:w.length===1,windowSize:n,children:w.map((h,N)=>t.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?t.jsx(le,{children:a.requireText}):t.jsx(se,{children:a.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(R,{children:[t.jsx(T,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${M}`)),h.actors.map(p=>t.jsxs(R,{children:[t.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?t.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?t.jsx(q,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},K=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{y as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt,fM as Lt,fN as Ot,j as t,bO as ze,bQ as Ae,bR as Me,Y as y,aW as Re,aH as _t,dr as Wt,fO as Et,fZ as Pe,o as a,fP as Be,cP as b,cR as x,fS as w,_ as Ne,cO as Le,r as K,fU as Oe,a7 as Kt,p as Ft,fV as Vt,fW as ae,aR as Ut,fX as Yt,a6 as Ht,Q as Gt,h as qt,t as et,as as tt,g as F,m as Jt,eY as Qt,v as Xt,gc as Zt,g8 as ei,q as c,ah as ti,cl as ii}from"./index-CChR0tlr.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-Bes1nCJn-cQbyoy31.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-CQlsMYN3-USK3brEH.js";import"./uploadReceipts-Buvz7DfG-CWJGX5ku.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Gt("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:V,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:U,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,H]=p.useState(!1),[ct,G]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&U()},[e,U]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{U()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),xe=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{G(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{G(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),G(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Ge,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(He,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:V,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(Ge,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(He,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&H(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Ft,{onClickAway:()=>H(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(wi,{onClick:()=>H(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const V=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:V.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
1
+ import{V as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt,fM as Lt,fN as Ot,j as t,bO as ze,bQ as Ae,bR as Me,Y as y,aW as Re,aH as _t,dr as Wt,fO as Et,fZ as Pe,o as a,fP as Be,cP as b,cR as x,fS as w,_ as Ne,cO as Le,r as K,fU as Oe,a7 as Kt,p as Ft,fV as Vt,fW as ae,aR as Ut,fX as Yt,a6 as Gt,Q as Ht,h as qt,t as et,as as tt,g as F,m as Jt,eY as Qt,v as Xt,gc as Zt,g8 as ei,q as c,ah as ti,cl as ii}from"./index-DTlzo6Yx.js";import{b as p,n as r}from"./vendor-CnQcJ2Lu.js";import{_ as ai}from"./liveblocks-sSQ9JElv.js";import ri from"./InvoiceUploadSection-CfAnZsV9-DBOTURQ6.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./crypto-BURQLTgV.js";import"./AttachmentView-sbbFtu9R-wkkd2tSH.js";import"./uploadReceipts-Buvz7DfG-JDslMarZ.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:V,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:U,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,k]=p.useState(!1),[Y,G]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[j,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&U()},[e,U]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{U()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{k(!1),j.primaryButtonText===i.buttons.delete?nt?.():j.title===i.cancelReportTitle?ue?.():j.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{k(!1)}},I=l.labelWidth.value(o),z=l.largeLabelWidth.value(o),xe=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:we}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:xt,unResolveComment:wt}}},dateFormat:fe}=xe,{reimbursementDetail:i,bulkActions:N}=xe.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,S=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,Se=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),k(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),k(!0)},je=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?je():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),Se()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),kt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,zt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ze,{titleComponent:t.jsx(Me,{children:j.title}),descriptionComponent:t.jsx(Ae,{children:j.description}),primaryButtonText:j.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:j.secondaryButtonText,action:ht}):null,ct?t.jsx(ze,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(ki,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(ji,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??we,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:kt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(zi,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Ki,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,S.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:S.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:V,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:S.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:S.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"receipt"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ue,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ve,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ge,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Fe,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Ke,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ke=>{ke!=null&&(ge.current[`L${s.lineId}`]=ke)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:S.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(w,{label:{label:i.reimbursementType,width:z},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(w,{label:{label:i.distanceInMiles,width:z},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.merchant,width:z},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.transactionDate,width:z},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(w,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:x({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(w,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),S.length!==1&&S.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),S.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ye,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:K.h6Regular.cssObject,decimalStyles:K.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ye,{}):null,t.jsx(xi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),Y===!0&&G(!1)},children:t.jsx(Kt,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&Y?t.jsx(Ft,{onClickAway:()=>G(!1),children:t.jsxs(Si,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:Se,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:je,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(wi,{onClick:()=>G(!Y),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Vt,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??we,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:xt,threadUnResolve:wt},onThreadClick:(s,n)=>zt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const V=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:V.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -184,7 +184,7 @@ import{y as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
184
184
  background-color: ${e=>e.theme.colors.grey3};
185
185
  min-height: 1px;
186
186
  max-height: 1px;
187
- `,zi=r(Ht)`
187
+ `,zi=r(Gt)`
188
188
  cursor: pointer;
189
189
  width: ${a.sp4};
190
190
  height: ${a.sp4};
@@ -250,11 +250,11 @@ import{y as At,d3 as Mt,X as Rt,u as Pt,aV as Bt,C as m,M as Ze,l as ie,fK as Nt
250
250
  `,Ni=r.div`
251
251
  margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
252
252
  margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
253
- `,He=r.div`
253
+ `,Ge=r.div`
254
254
  margin-bottom: ${e=>l.bottomMargin.valuePx(e.windowSize)};
255
255
  margin-left: ${e=>l.leftMargin.valuePx(e.windowSize)};
256
256
  margin-right: ${e=>l.rightMargin.valuePx(e.windowSize)};
257
- `,Ge=r.div`
257
+ `,He=r.div`
258
258
  display: flex;
259
259
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
260
260
  align-items: ${e=>e.windowSize==="small"?"unset":"center"};
@@ -1,21 +1,21 @@
1
- import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as g,i as m,o as r,Z as xe,c0 as he,a9 as F,m as ue,C as ge,g as j,c2 as we,aa as je,av as be,q as fe}from"./index-CChR0tlr.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-rC3PQdjG-B_4Eh-Cw.js";import{f as ke,C as N}from"./play-icon-19dLaWkG-DVrAniBi.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",W="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
1
+ import{V as me,u as z,X as v,a5 as de,l as D,M as K,j as e,Y as c,aW as pe,K as g,i as m,o as s,Z as xe,c0 as he,a9 as F,m as ue,C as ge,g as j,c2 as we,aa as je,av as be,q as fe}from"./index-DTlzo6Yx.js";import{b as f,n as t,k as $e}from"./vendor-CnQcJ2Lu.js";import{x as ye}from"./MeetingCalenderPopup-BhC8pSjM-Cnn0jkdk.js";import{f as ke,C as N}from"./play-icon-BDRoJBSV-DFuHei9M.js";import{M as C}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const O="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",W="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",Se={midContainerMarginBottom:new ge(fe[5],44)},ze=t.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
5
5
  flex-direction: column;
6
6
  background-color: ${i=>i.theme.colors.grey4};
7
7
  `,ve=t.div`
8
- padding: ${i=>i.windowSize==="small"?`${r.sp0} ${r.sp3}`:`${r.sp0} ${r.sp8}`};
8
+ padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
9
9
  text-align: center;
10
10
  `,Ce=t(he)`
11
11
  max-width: 648px;
12
12
  margin: auto;
13
- padding: ${r.sp7} ${r.sp0};
13
+ padding: ${s.sp7} ${s.sp0};
14
14
  color: ${i=>i.theme.colors.primary};
15
15
  `,Te=t(xe)`
16
16
  max-width: 600px;
17
17
  margin: auto;
18
- padding: ${r.sp5} ${r.sp0};
18
+ padding: ${s.sp5} ${s.sp0};
19
19
  color: ${i=>i.theme.colors.primary};
20
20
  `,X=t.div`
21
21
  display: flex;
@@ -23,7 +23,7 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
23
23
  align-items: center;
24
24
  justify-content: center;
25
25
  margin-bottom: ${i=>Se.midContainerMarginBottom.valuePx(i.windowSize)};
26
- `,Pe=t.div``,Z=t.div`
26
+ `,Pe=t.div``,V=t.div`
27
27
  display: flex;
28
28
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
29
29
  align-items: center;
@@ -49,8 +49,8 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
49
49
  transform: scale(100%)
50
50
  }
51
51
  `,G=t.div`
52
- width: ${r.sp9};
53
- height: ${r.sp9};
52
+ width: ${s.sp9};
53
+ height: ${s.sp9};
54
54
  background: ${i=>i.theme.colors.playButtonBackGroundColor};
55
55
  display: flex;
56
56
  align-items: center;
@@ -69,19 +69,19 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
69
69
  justify-content: center;
70
70
  align-items: center;
71
71
  `,H=t.div`
72
- margin-left: ${i=>i.windowSize==="small"?r.sp0:r.sp6};
73
- margin-bottom: ${i=>i.windowSize==="small"?r.sp4:r.sp0};
72
+ margin-left: ${i=>i.windowSize==="small"?s.sp0:s.sp6};
73
+ margin-bottom: ${i=>i.windowSize==="small"?s.sp4:s.sp0};
74
74
  background: ${i=>i.theme.colors.grey3};
75
75
  border-radius: 12px;
76
76
  border: ${i=>`1px solid ${i.theme.colors.grey3}`};
77
77
  padding: 15px;
78
78
  `,d=t.div`
79
- border-radius: ${r.sp12};
79
+ border-radius: ${s.sp12};
80
80
  border: ${i=>`1px solid ${i.theme.colors.grey2}`};
81
- padding: ${i=>i.windowSize==="small"?`${r.sp2} ${r.sp4} ${r.sp2} ${r.sp0}`:`${r.sp3} ${r.sp5} ${r.sp3} ${r.sp0}`};
81
+ padding: ${i=>i.windowSize==="small"?`${s.sp2} ${s.sp4} ${s.sp2} ${s.sp0}`:`${s.sp3} ${s.sp5} ${s.sp3} ${s.sp0}`};
82
82
  background: ${i=>i.theme.colors.grey5};
83
83
  position: relative;
84
- margin-bottom: ${r.sp3};
84
+ margin-bottom: ${s.sp3};
85
85
  display: flex;
86
86
  align-items: center;
87
87
  text-align: start;
@@ -95,9 +95,9 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
95
95
  `,S=t(we)`
96
96
  color: ${i=>i.theme.colors.champion};
97
97
  `,p=t.div``,x=t.div`
98
- padding-left: ${r.sp3};
99
- `,E=t(F)`
100
- margin: ${i=>i.windowSize==="small"?r.sp1:`auto ${r.sp5}`};
98
+ padding-left: ${s.sp3};
99
+ `,Z=t(F)`
100
+ margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
101
101
  color: ${i=>i.theme.colors.grey1};
102
102
  `,J=t(C)`
103
103
  color: ${j.graphColor16Dark};
@@ -105,8 +105,8 @@ import{y as me,u as z,X as v,a5 as de,l as D,M as V,j as e,Y as c,aW as pe,K as
105
105
  color: ${j.graphColor09Dark};
106
106
  `,_=t(C)`
107
107
  color: ${j.success};
108
- `,K=t(ue)`
109
- margin: ${r.sp3} auto;
108
+ `,E=t(ue)`
109
+ margin: ${s.sp3} auto;
110
110
  max-width: 772px;
111
111
  color: ${i=>i.theme.colors.hero};
112
- `,s=V.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=V.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(Y,{windowSize:o,children:[e.jsx(G,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(q,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.simplestText.bold}),e.jsx(k,{children:s.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.aiPoweredText.bold}),e.jsx(k,{children:s.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:s.multiLevelApprovalText.bold}),e.jsx(k,{children:s.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.simplestText.bold}),e.jsx($,{children:s.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.aiPoweredText.bold}),e.jsx($,{children:s.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:s.multiLevelApprovalText.bold}),e.jsx($,{children:s.multiLevelApprovalText.regular})]})]})]}),e.jsxs(Y,{windowSize:o,children:[e.jsx(G,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},We=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:se,onBackClick:re,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,I]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?s.employeeAcceptPromoText:s.employeePendingPromoText:s.promoText;f.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:s.title,backgroundColor:le.colors.grey4,onBackClick:re,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:s.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:s.orText}),e.jsx(g,{variant:"primary",label:s.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:se,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(K,{children:[s.terms.createTerms1,e.jsx(m,{href:s.terms.tosUrl,linkText:s.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),s.terms.terms2,e.jsx(m,{href:s.terms.privacyPolicyUrl,linkText:s.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),s.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(Z,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:s.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(E,{windowSize:l,children:s.orText}),e.jsx(g,{variant:"primary",label:s.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(K,{children:[s.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,s.terms.terms3]})]})})]})]})};export{We as default};
112
+ `,r=K.getLocalizedStrings().spendManagement.reimbursement.reimbursementPromo,n=K.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(Y,{windowSize:o,children:[e.jsx(G,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(q,{windowSize:o,children:[e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.simplestText.bold}),e.jsx(k,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.aiPoweredText.bold}),e.jsx(k,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(S,{children:r.multiLevelApprovalText.bold}),e.jsx(k,{children:r.multiLevelApprovalText.regular})]})]})]})]})},Be=({onImageClick:i})=>{const h=z(),o=v();return e.jsxs(X,{windowSize:o,children:[e.jsxs(q,{windowSize:o,children:[e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(J,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.simplestText.bold}),e.jsx($,{children:r.simplestText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(Q,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx($,{children:r.aiPoweredText.regular})]})]}),e.jsxs(d,{windowSize:o,style:{width:"376px"},children:[e.jsx(p,{children:e.jsx(_,{})}),e.jsxs(x,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx($,{children:r.multiLevelApprovalText.regular})]})]})]}),e.jsxs(Y,{windowSize:o,children:[e.jsx(G,{onClick:i,children:e.jsx(N,{})}),e.jsx(H,{windowSize:o,children:h.mode==="dark"?e.jsx(w,{src:W,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(w,{src:O,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})},We=({reimbursementSetupView:i,userReimbursementInfo:h,meetingUrl:o,videoUrl:ee,analytics:a,onSetupButtonClick:ie,onCreateNewRemiButtonClick:re,onBackClick:se,onSetupReimbursementSuccess:T,onClickMenuIcon:te})=>{const P=me(),[oe,R]=f.useState(!1),[ne,I]=f.useState(!1),le=z(),l=v(),{remiTermsDetails:u}=i,B=de(u?.fetchStatus.fetchState),ae=D.hasReimbursementAdminLevelAccess(P.loggedInUserRoleMap),b=D.hasReimbursementAccess(P.loggedInUserRoleMap)&&!ae,ce=!!h?.isReimbursementTOSAccepted,U=!!i.companyRemiInfo?.isReimbursementEnabled,A=b?U?r.employeeAcceptPromoText:r.employeePendingPromoText:r.promoText;f.useEffect(()=>{B==="In-Progress"&&u?.fetchStatus.fetchState==="Completed"&&T?.()},[B,T,u?.fetchStatus]);const M=()=>{a?.trackReimbursementPromoVideo(),R(!0)},L=()=>{a?.trackReimbursementPromoScheduleDemo(),I(!0)};return e.jsxs(ze,{children:[oe===!0?e.jsx(ke,{onCancelClick:()=>{R(!1)},videoUrl:ee,"data-testid":c("remi-promo-page-video-popup")}):null,ne===!0?e.jsx(ye,{onCancelClick:()=>{I(!1)},meetingUrl:o,"data-testid":c("remi-promo-page-meeting-popup")}):null,e.jsx(pe,{title:r.title,backgroundColor:le.colors.grey4,onBackClick:se,showBackButton:!b,showMenuIcon:l==="small"||l==="medium-compact",onClickMenuIcon:te,source:"ReimbursementPromoPage"}),e.jsxs(ve,{windowSize:l,children:[l==="small"?e.jsx(Te,{children:A}):e.jsx(Ce,{children:A}),l==="small"?e.jsx(Ie,{onImageClick:M}):e.jsx(Be,{onImageClick:M}),e.jsx(Pe,{children:b?e.jsx(e.Fragment,{children:U&&!ce?e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.createNewReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:re,"data-testid":c("reimbursement-promo-page-create-new-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.createTerms1,e.jsx(m,{href:r.terms.tosUrl,linkText:r.terms.zeniAgreement,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),r.terms.terms2,e.jsx(m,{href:r.terms.privacyPolicyUrl,linkText:r.terms.privacyPolicy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),r.terms.terms3]})]}):null}):e.jsxs(e.Fragment,{children:[e.jsxs(V,{windowSize:l,children:[e.jsx(g,{variant:"secondary",label:r.scheduleDemoButton,onClick:L,style:{width:216},"data-testid":c("reimbursement-promo-page-schedule-demo-button")}),e.jsx(Z,{windowSize:l,children:r.orText}),e.jsx(g,{variant:"primary",label:r.setupReimbursementButton,loading:u?.fetchStatus.fetchState==="In-Progress",onClick:ie,style:{width:216},"data-testid":c("reimbursement-promo-page-setup-reimbursement-button")})]}),e.jsxs(E,{children:[r.terms.setupTerms1,e.jsx(m,{href:n.consentUrl,linkText:n.consent}),n.term2,e.jsx(m,{href:n.depositUrl,linkText:n.depositTerms}),n.term3,e.jsx(m,{href:n.privacyPolicyUrl,linkText:n.privacy,onZeniLinkClick:()=>(a?.trackReimbursementPrivacyPolicy(),!0)}),n.term4,e.jsx(m,{href:n.tosUrl,linkText:n.tos,onZeniLinkClick:()=>(a?.trackReimbursementAgreement(),!0)}),n.term5,r.terms.terms3]})]})})]})]})};export{We as default};