@zeniai/web-cockpit-ui 1.14.58-qa → 1.14.59-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 (229) hide show
  1. package/dist/assets/{ACHDetailsPage-DzIkTxTe-szY0ZmSw.js → ACHDetailsPage-Dh-9B-tS-BKldvbI-.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DcSfABe8-aip8cm7a.js → AIPerformancePage-BXVWoVop-BDz2sJSr.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-DKZf9iEj-BWYLGbNJ.js → AccountInfoPage-DQaAqqov-zqBvvgmh.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-Z1na4dJy-LKHjtXPv.js → AccountInfoPageContent-CpnCTuuB-D1N9AAbn.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-4c3W-zeE-COIlptNP.js → AccountLockedInfoModal-DkfP7Aw7-DxqMYMO2.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C5vlTGj8-DGLOEb2a.js → AccountReconDetailsDrawerPage-D4wc6twC-DYJu-DGm.js} +1 -1
  7. package/dist/assets/{AccountRow-3d9RsrK--CzSmDsqS.js → AccountRow-CrG8EbbJ-C5c4hS7Z.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CebFf63k-MO4-ur9l.js → AccountsPromoCardStack-BJPtx2Pe-BrO3SurU.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CUUW8OmY-WtojkQYs.js → AddAddressForCardDrawer-DdNhdiuv-DR_rGPF5.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-C-7QiNhe-BBaNm0hV.js → AddToWalletPage-DhYdz5U2-CBBekvlG.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-BDNPqEUA-CFmHoT7t.js → AgingReportsPage-D42GrcOf-CoErzTcB.js} +1 -1
  12. package/dist/assets/{AllUserItems-q1-exTg0-C-vzW5ZK.js → AllUserItems-vKh3Mm2X-BwTySL_M.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Biqhlmi5-r_fB2Ah7.js → ApAgingDetailPage-CwPtOern-CdQtrx1v.js} +1 -1
  14. package/dist/assets/{AppBasePage-OcF9VjD2-B4E_fdOu.js → AppBasePage-DOG_AFC0-CUT3wwJW.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-Bvp-m86Z-BCjt1uzD.js → AppDrawerContent-BxOuACFq-BY_Wi0pb.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DoU4XLU1-CtvRd_j4.js → ApprovalRulesSettingsPage-C_Op8xKo-YAo6-Sxl.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Derurnjv-CgEJ1Uyl.js → ArAgingChart-DXEYzHyG-D0PB8GjF.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BANucXvz-BeAFS3t0.js → ArAgingDetailPage-Bc-KHlzV-ucTrDSe4.js} +1 -1
  19. package/dist/assets/{AttachmentView-DmZoR5fC-Cxq55CaJ.js → AttachmentView-D7RHXhJ5-BAAcjA-7.js} +1 -1
  20. package/dist/assets/{BankAccountSection-Cw7uDvEJ-DEZ19vJg.js → BankAccountSection-DC6iSj4R-BsAxAbXu.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-ClNYTjN_-C0GUXdVn.js → BankAccountWarningSection-2lKoI5Zs-Dj_Poz3W.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-B48-v1cX-B87m3vQH.js → BankConnectionsSettingsPage-C8yHSddE-BPyE73uV.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Dz1Us8Hp-CCHNGJZt.js → BillDetailPage-JnsrnTiI-CRxufuo7.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DJhSGn1E-DP-F92v0.js → BillPayApprovalRuleDetailPage-BUZRTI5I-CRkErJ6g.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DZMg0cXF-DtQtvFNa.js → BillPayApprovalRulesPage-CLTcaidy-Bvnb2yJv.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-B0XdQSYS-C3p0-kIy.js → BillPayPromoPage-CkHwMvaQ-CwQAQZgp.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-Ft2KuiQF-CK6xYLj1.js → BillPaySetUpPage-zJq3HkEC-bT_1YYhS.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-uQpN2px5-Yl2Cylds.js → BillingSettingsPage-DQKc4f6L-Bkf9rSRY.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DBtKf5-t-DHZAPQFs.js → BillsBulkReviewDrawerPage-SpuBHxBw-BgFnsCSs.js} +1 -1
  30. package/dist/assets/{BoxItem-DR7ZjTUs-Dij4RmTj.js → BoxItem-Di-YXnG--cmTXxwxj.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-7EvtWjc2-CdOmJRrr.js +138 -0
  32. package/dist/assets/{CardNumberSubText-C1IwXiVs-Dqn3-4zM.js → CardNumberSubText-DzFn3_PZ-C9ZCSTzM.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-uh_slX-Q-CSlnj0Y7.js → CashbackDetailPage-CjQngqJh-CNd0id6g.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DEsNdsI1-BXmIwZAL.js → ChargeCardDetailPage-RIKW8QpG-5zMhrBmS.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-BRErjFyU-DDFTxheC.js → ChargeCardListPage-BLscpHh2-CtC38uJe.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-3b_fwt_f-C0sFK40q.js → ChargeCardListTable-CWs0yRb7-CCfyCYfZ.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-Dn0omfoT-uDoVdr0U.js → ChargeCardPromoPage-DcSxmF13-B--2dn9Z.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-doVAo_Au-DdGCqluH.js → ChargeCardSetupPage-D7KYTRhl-BcT1JXlI.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DGOegtho-BgHIWvXY.js → ChargeCardStatementsPage-Dcp15xx_-BOrgAbrH.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-BlLiJhdJ-DMqoMM0H.js → ChargeCardUtils-CCCxZqkT-61TtCpjk.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-DY7W-VhR-vZ_gPYHY.js → ChaseOverlay-Nom4V5v9-NN79_kIT.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-CDelWBRG-B1k1OmWA.js → CheckDepositDrawerPage-CtWXEXK--BravvnwG.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-BEIzIiuS-DSPsVPW9.js → CollapsableReportTable-CfzLsUMN-BupSz6gn.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-B5JwDvdV-DqnjkUNS.js → CompanyOfficerDetailsSection-CuRcAM-3-BHLJpVyH.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-BcnnhR8L-DtcG5160.js → CompanyPassportCard-D23lD2Qq-ByoYXAJb.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-Cjc8jDSu-B7YHMqiV.js → CompanyPassportPage-tteVIvVs-Dnqp0vpO.js} +1 -1
  47. package/dist/assets/{CompleteProfile-bOwTw1Lh-_7Yxh2zS.js → CompleteProfile-BkpO098y-ORcz2OsL.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-w-1sEoT7-Cc6gVviT.js → ConfettiBurst-xzxQ6c8X-BoCLy-7Y.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-B7_YMeTg-DI5Jb9Bn.js → CreateOrEditVendorPage-fv_bmvfi-CzsLkNiO.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-1CZyhIOU-DMxRxZoh.js → CreditCardPaymentDrawerPage-7fnYwExb-CgcY_sd_.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-zy5jp8oZ-DwH8e2C-.js → CreditCardPaymentPlgSection-DthqKiKn-CaFdyplw.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-DLcojhnq-LEdI6qEo.js → CurrencySelectField-DIdZl5cW-DZ4QIRLF.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-DIwdLnW_-DZpcXe7V.js → CustomerOnboardingActivationPage-JhAaD-FC-CgaXelGg.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BOI3JIGP-D4jiLFc2.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-G6eM-LXh-Do2IIou-.js → CustomerOnboardingDetailPageSkeleton-D__ymliT-CIUKwMvS.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-ZUm80ZnR-DMGMOEZ_.js → CustomerOnboardingNoStepsPage-CVere1yI-Dhi2fPd3.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-ap2hRZbg-Bo_Un-Di.js → CustomerOnboardingPage-WNQCQJ5n-CAH1yTcO.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-JHpQNLLp-BUZQChoL.js → CustomerOnboardingProductSuitePage-CAJfbnLK-BfYQQwIw.js} +1 -1
  59. package/dist/assets/{Dashboard-BGw23hBU-B19g_awj.js → Dashboard-D0UMJmya-BczA5Giq.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DxQfaMpu-DYtlC0eo.js → DashboardReportPage-BCFw6ao6-D3KPXS3h.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-G2W4zpsl-MOmO21T6.js → DashboardSidebarBackgroundAnimation-DHkCvHUA-3uoAq2Nw.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-DMKKoFPE-CF64rSeT.js → DepositAccTransactionItem-d34JxwvA-xP5xNNeO.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-P_jQozTg-3ZOulPIT.js → DepositAccTransactionListPage-D7gDhDY8-CbzNTNTF.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-Cukq5TMS-ERF3exDh.js → DomesticWireDetailsPage-OrNehTKb-ZjH_fRSO.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-0TBZx4M5-ByMEel37.js → DownloadOverlay-DaCUudXP-CVZNoWAL.js} +1 -1
  66. package/dist/assets/{DrawerPage-BCFgiTrx-VKGmyzQW.js → DrawerPage-CmSHpc-z-iSTxaMwa.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-Bz6R4dHg-BTjQQhEC.js → EditPeoplePage-8KV3IPex-Bj4F00HM.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-CpyYBV_p-DLjfVB1T.js → EditReimbursementDetailPage-CeB1Zddt-CX7-LisA.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-B2zcu4ey-B4LA9yJE.js → EntityDetailPage-0gSd2S2a-Bk21CGEs.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-D5aLYTXS-BkfRlv-0.js → EntitySummarySection-CDqJFGbo-C_BhPxVx.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-DOCWbVlk-DmyrxVBN.js → ExpenseAutomationOverviewPage-m3uEsbuA-y6GuNqtY.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-CvRVtFoX-2gIzi6LR.js → ExpenseAutomationPage-41S7xtG5-gBOsYzMM.js} +50 -50
  73. package/dist/assets/{ExpressPayPage-BXf-9l9G-CC7Z3dOp.js → ExpressPayPage-D-7iK8kb-B4NN7Ool.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-LOJ6iaCh-0O88GlZa.js → FeaturePreviewPage-CGX75zlc-Da-yfHhx.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BgJIGSUb-CkoWMlHD.js → FollowStepsSection-SyRYm6Xk-qRHgTOZ1.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-vKPeBn-E-BnywyD3i.js → GlobalReviewListPage-cFCPjHNY-Bu6QwgAj.js} +1 -1
  77. package/dist/assets/{HelpButton-JzcF30dH-DLUx9CMf.js → HelpButton-BaJhgb0U-D2odikp_.js} +1 -1
  78. package/dist/assets/{InformationCardStack-DE_mlx0b-CPdUvJef.js → InformationCardStack-CKwUXzzO-CxZ4zJeR.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-CPmZ9Zr6--vMWhqeE.js → InsightsCardStack-DgbzOi4U-Dvc9XXCQ.js} +1 -1
  80. package/dist/assets/{InsightsSection-mpQV3wZ8-CfoJ1FF7.js → InsightsSection-Baicql5I-Cy9IT7DF.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-CPSSCQzQ-Ds1xikyB.js → IntegrationsSettingsPage-F3YIomsV-MWcDg6Dx.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-D6WfqTKR-BZJpEOTH.js → InternationalWireSwiftDetailsPage-Bk3_uQsM-fzkyRJu7.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-CryJKJXs-D3YrzZOR.js → InternationalWireVerificationPage-e30e4EN3-DosRWfnw.js} +1 -1
  84. package/dist/assets/{InviteFormPage-C7nLoXTU-CKDwjUes.js → InviteFormPage--XxaRUk9-8SgyKEGU.js} +1 -1
  85. package/dist/assets/{InvitePageListView-CtRAy7TX-DRn754w_.js → InvitePageListView-BxqSNNLQ-D2-KFzQG.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-ClFxfSTT-DHxAubtk.js → InvitePeoplePage-DH3kZeNR-JarVlmok.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-DjnuyOSw-BzB_1eSD.js → InvoiceUploadSection-D-8BRSZh-C_cyOMSQ.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-CstjZX3q-CnXQ18Tm.js → IssueChargeCardPage-Cx-mINDz-CHMPey88.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-Brk71Pjr-CbncPSM-.js → LabeledAddressValue-CBCPqHGX-Dr3MadHP.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-CvCb2aoN-BYPcHugY.js → LabeledAddressValueField-CMBF_lk1-CXJsPPo5.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-Gqssp1Ri-BC9ElSs1.js → LabeledControlledCheckBoxField-DaiUqmLm-z5jbKpsi.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-VKo2nKGM-C5nWLniy.js → LabeledCreatableSingleSelectField-DnywMYhK-CuEc_EGD.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-COC_Ej58-B7sKhk_9.js → LabeledDocumentField-M2THEAOY-Dc822rdF.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-r2aCE7Vv-BqBkqEAq.js → LabeledDropDownFormattedTextField-3XtnFSSO-BjRnQvhd.js} +1 -1
  95. package/dist/assets/{LabeledText-VrCpjPlp-f50Lqvph.js → LabeledText-imTCum1u-C4LjRwSo.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CoAdkKTm-XaSCNDrO.js → LabeledUserSingleSelectWithSubtitlesField-DlOa-ACw-D4rNrj__.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-BP7diqSR-CA1Pyi7y.js → LabeledZeniRolesDropDownField-XfcFfufN-DyDyz251.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-WS_VPmbY-C4uBwEZU.js → LinkJETransactionPage-B9eOkkRL-UaAvocit.js} +4 -4
  99. package/dist/assets/{LockCardPage-C0sABFjo-BVlSLk_G.js → LockCardPage-Ct7vGNS4-xE0ij8xJ.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-Cnt8hF5d-CFST9NVY.js → LowBalancePopup-YZDhdF8c-YFnNkRi7.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-DHMQHaja-BzK_yQB7.js → MagicLinkACHDetailsPage-BN-A0Efu-BDE_yHQ4.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-CiLUscCx-C_flYJNw.js → MagicLinkDomesticWireDetailsPage-dzeckdoJ-C14GG0C5.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-X2ADFf0h-CyKhV7wU.js → MagicLinkInternationalWireDetailsPage-CYqXDRUn-wjMDal6c.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-BRHxmUGi-CqKnko0M.js → MagicLinkSuccessPage-DC24iw6B-Dbig4zBi.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-CHy41StU-CODeKCpT.js → MagicLinkTitleSection-BccVjN_n-DUbrRyeh.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-Djpl2M02-Clv4aZLv.js → MailingDetailsSection-BfdZmdwA-GzNbRy1Z.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-qui2SnEi-D13HOxSn.js → MeetingCalenderPopup-YzTE9xU9-DZIf1_Kg.js} +1 -1
  108. package/dist/assets/{Menu-BMPH4-8R-twEftGkH.js → Menu-EG5GC1HM-B-5uM-Tx.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-Mohwcu-e-BIUdfsnE.js → MyBankConnectionsSettingsPage-DvbBOAdm-BPRzynV4.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-DePpW1nZ-6QYpbtTT.js → MyPendingActivationChargeCardListPage-BeNJP6gE-DFEiICFV.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-C--PD-iR-6QZuO8SJ.js → MyProfileSettingsPage-BRxBJZKl-gKdlJU9u.js} +1 -1
  112. package/dist/assets/{NavBarWithPicker-CDrtlEhe-BGmnf0qG.js → NavBarWithPicker-DcoxoePr-DY0E0Sw4.js} +1 -1
  113. package/dist/assets/{NavigationArrow-Ci8e8S3O-D0FrCepx.js → NavigationArrow-B8mAmEJR-C3_D4DIN.js} +1 -1
  114. package/dist/assets/{NavigationDots-CT4KVH38-Cxet2hdJ.js → NavigationDots-DWLQ8EKT-Dn6PHYKg.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-Cih2BVZW-BP_IzGQ-.js → NewGlobalMerchantPage-BB_toJEW-DUyS3CYX.js} +1 -1
  116. package/dist/assets/{NoDataChart-Bb4iomO0-DjYfMx27.js → NoDataChart-BuWkhFal-CMKpuqZD.js} +1 -1
  117. package/dist/assets/{NoDataTable-CGhIXUQS-C71sow7j.js → NoDataTable-BUdL3yV2-BAXiHNpg.js} +1 -1
  118. package/dist/assets/{NotFoundPage-C1yRpH5R-DmahrbCG.js → NotFoundPage-DIKyx0G7-QpsaV-Y3.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-B6niw-yz-BkI-B2wX.js → NotificationSettingsPage-BQKqMo0w-RU_hwiPu.js} +1 -1
  120. package/dist/assets/{NotificationsListConfig-BXhnYFMc-CgGcB0AY.js → NotificationsListConfig-DY24LAfq-CzV20Ii_.js} +1 -1
  121. package/dist/assets/{NotificationsPage-BxD_x5RM-jKKT4lH3.js → NotificationsPage-CcSiCmhM-DzTB0TJ2.js} +1 -1
  122. package/dist/assets/{OpExByVendorPage-DhU6KaAy-DXukgz7n.js → OpExByVendorPage-BOD4I42j-4oUDHO_u.js} +1 -1
  123. package/dist/assets/{OverlayContainerPage-D1XDQqSC-BBBCEdPK.js → OverlayContainerPage-D1XDQqSC-CbO1P_nf.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-a4spNLTC-DqtSMOm0.js → PandLWithForecastPage-DR0hOvcK-BZ8eDuBW.js} +1 -1
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BNP1S38J-B4CSZ3us.js → PaymentAccountSetupBillingAddressSection-aY0Kwk1v-B2LjsYYN.js} +1 -1
  126. package/dist/assets/{PeoplePage-BkflVTQ7-CZkWk1Jc.js → PeoplePage-CgbpQTzF-ytts5urg.js} +1 -1
  127. package/dist/assets/{PortfolioAllocationFormPage-B6dIZdSj-BAxP5Qz4.js → PortfolioAllocationFormPage-DyQS9mGR-k3yBOCSq.js} +29 -29
  128. package/dist/assets/{PortfolioDetails-DgBQTG2N-D9w2PpF1.js → PortfolioDetails-YqgY6irK-B5_kIUnF.js} +1 -1
  129. package/dist/assets/{ProductsCarousel-98LvzRjI-D_Ew5v2e.js → ProductsCarousel-D0vNX0Lg-BIRltpPH.js} +1 -1
  130. package/dist/assets/{PromoBaseCards-8w-GQx13-DtJWY6xl.js → PromoBaseCards-D7B2WP4y-lLUSWcFR.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-Sok8rRG4-BBgIq76h.js → QBOConnectionDialog-BM3Ei-Uy-B7LqspAX.js} +1 -1
  132. package/dist/assets/{QBOSetupSection-BMRMT06i-Bp-caScU.js → QBOSetupSection-C1C9oOYp-CVAP_hlM.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-Cye5Dfay-Y6TTSpt_.js → ReimbursementApprovalRuleDetailPage-2NCQPRtH-CR9C88jV.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-C8C8pUIT-DEe2ZJqQ.js → ReimbursementApprovalRulesPage-D7M5LyNE-dlLzOYWa.js} +1 -1
  135. package/dist/assets/{ReimbursementDetailPage-BkrQE22J-DKvZxT2K.js → ReimbursementDetailPage-CFvkeM65-CSth0LqE.js} +1 -1
  136. package/dist/assets/{ReimbursementPromoPage-qafth1vd-BCvOyXrt.js → ReimbursementPromoPage-BiajhsSb-Baig1ByR.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-CnroOkJk-Cvl76xek.js → ReimbursementSetUpPage--vFw3Coy-BZ_6GPaW.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-2zlPBW1D-Dm47ghET.js → ReimbursementsBulkReviewDrawerPage-40sklAAn-B5qdPWLm.js} +1 -1
  139. package/dist/assets/{ReloadCard-B0LL0bsO-C47dx2C9.js → ReloadCard-DHXj7tDB-CoTLieDN.js} +1 -1
  140. package/dist/assets/{ReportTableViewSelector-CwM38MkL-sHSkOZUs.js → ReportTableViewSelector-BReW2rBY-De5-H-8i.js} +1 -1
  141. package/dist/assets/{ReportsPage-Cyl_WUQz-CtoykTaV.js → ReportsPage-8dRHTbBF-BSX3EPHA.js} +1 -1
  142. package/dist/assets/{RevenueChart-CXxEH9pM-D3g9dhJR.js → RevenueChart-BrJtZTP6-ckjmqhbu.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-C0soI4uR-Bcmmq9xN.js → ReviewDetailsPage-BYKWuqrn-BR43E93Y.js} +1 -1
  144. package/dist/assets/{ReviewOverlay-BKS6IxUd-B4wfg7Gq.js → ReviewOverlay-DejTxf0F-D0BNFHZK.js} +1 -1
  145. package/dist/assets/{RoleWithToolTip-BfLzD5K8-DuzLs0Uw.js → RoleWithToolTip-SDWCAZAR-C5xFKYbN.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-1ULyqeCq-BzlJ6bjV.js → ScheduleDetailsFixedAssetsPage-DmrofLij-wGg0nxY-.js} +1 -1
  147. package/dist/assets/{ScheduleDetailsPage-D-Z-Fi_m-B2de1c09.js → ScheduleDetailsPage-ChMFxnSM-D7lnbvGR.js} +1 -1
  148. package/dist/assets/{ScheduleSequenceTable-DAwNCXh_-BKNkLrcn.js → ScheduleSequenceTable-D8Xld3H6-DxHk09G_.js} +1 -1
  149. package/dist/assets/{ScreenRoutes-BkWojgcY.js → ScreenRoutes-Lk4dQSrW.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-_zsQfBq1-Ixp7eWRa.js → SetUpAccountSection-D3cMHFo9-tGxpQ_Hm.js} +1 -1
  151. package/dist/assets/{SetUpDefaultSection-BHYOBJ7g-ugz5Fdi4.js → SetUpDefaultSection-DAYmX0ZV-wM42lVKW.js} +1 -1
  152. package/dist/assets/{SignIn-BOLyauQa-CSsg1k-k.js → SignIn-44novL5w-Da7_TNTW.js} +1 -1
  153. package/dist/assets/{SignInScreen-wnotOD9V.js → SignInScreen-DD04CaKk.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-zh_Ui5iH-YWp73SwO.js → SpendManagementListViewPage-DSoYdq_m-7NkIVVia.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-Bu4V_wEU-CJZCCT7c.js → SpendManagementPerTabPage-xTIW-X7N-B96IfkCc.js} +1 -1
  156. package/dist/assets/{SpendManagementSection-vhFCT9_L-BgmgsOzT.js → SpendManagementSection-CJlsHGkm-CqhN8V8O.js} +1 -1
  157. package/dist/assets/{SpendMgmtSetupAccountSection-DiiBySox-DEuCmldp.js → SpendMgmtSetupAccountSection-S-3M9Tex-DxNcuUHJ.js} +1 -1
  158. package/dist/assets/{StatementItem-5oh_s6z3-CvMn_6Gz.js → StatementItem-DX6-flmJ-DQRFWSb3.js} +1 -1
  159. package/dist/assets/{StatementsPage-CQqrzaz3-BqgZGPio.js → StatementsPage-DCKr_4XZ-Bsxshbva.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-C1BUhsR_-RxZm1ZuG.js → StatusSwitcher-C6SduIx3-CZMTB5w2.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-DbtPzcHo-C9Q3gR3c.js → SubTabSwitcher-W3Ntabka-CkJnLFDQ.js} +1 -1
  162. package/dist/assets/{SummaryCard-ChBY9-wb-BrnQwF1R.js → SummaryCard-z1Y1Z21L-BvNDOBhc.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-BLvvJOu7-0xGKm0io.js → TaskManagementPage-Dr7_IfHc-AYu_HBiG.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-BKBRRSFm-Cz1Ee_vx.js → TimeRangeSwitcher-CrkB8n_m-UKQ-nTM4.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-BYbWJkqV-D9PNXfI7.js → TimeframeSwitcher-CMpQebr--jb5OdLW-.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-CQ7RqzAP-C0sGzizA.js → TimeframeSwitcherWithToggle-MSmSK_yv-1RIM15xs.js} +1 -1
  167. package/dist/assets/{TopExCard-DlOpHPBt-DLFzs4DQ.js → TopExCard-VQ8z2vI8-CcFX43B0.js} +1 -1
  168. package/dist/assets/{TopExDetailPage-DiRn3jsO-Y2QDGhmR.js → TopExDetailPage-DpnzP9SJ-DfzJMOHT.js} +1 -1
  169. package/dist/assets/TransactionDetailPage-CYUaKiqB-BzE195Mu.js +912 -0
  170. package/dist/assets/{TransactionList-bXlPU8EJ-CJpXRXe5.js → TransactionList-BingIVb_-DtIsd8Hw.js} +1 -1
  171. package/dist/assets/{TransactionListBig-C8XRWb2H-BtpYfolj.js → TransactionListBig-u-0Ia9Ua-K9wDHKU_.js} +1 -1
  172. package/dist/assets/{TransactionListPage-CUX45pNJ-BRuLNSm-.js → TransactionListPage-CYnEa2xe-O-SDZdNu.js} +1 -1
  173. package/dist/assets/{TransactionVendorDetailPage-CN37v29r-BwIXvjQA.js → TransactionVendorDetailPage-BFkUirn2-CeHhiYbe.js} +1 -1
  174. package/dist/assets/{TransferDrawerPage-GsrHKsdt-CTUErw4B.js → TransferDrawerPage-CX9GJ8vi-CEFyGVCx.js} +1 -1
  175. package/dist/assets/{TreasuryOverviewPage-C-yNzG5C-YBn2IUrW.js → TreasuryOverviewPage-C9I-VnRo-DTnaN1Tn.js} +1 -1
  176. package/dist/assets/{TreasuryPromoPage-BENRjIY1-r3JAqrfu.js → TreasuryPromoPage-DUScnOPQ-Dkbv6YRb.js} +1 -1
  177. package/dist/assets/TreasurySetupPage-DzkvNyQm-B3xMK5Hg.js +144 -0
  178. package/dist/assets/{TreasuryStatementsPage-DTCPq8Gp-iWzCT7nf.js → TreasuryStatementsPage-BipG_ii3-Dy6JBSif.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-O433FhAV-C1k6tduP.js → TreasuryTaxLetterPage-DCrdgOsu-DCMVMaW8.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-D_3AEXbX-Cn5Yufcy.js → TreasuryTransferOrReviewPage-DO9VVbX6-DZ53XF10.js} +62 -62
  181. package/dist/assets/{TrendChart-DdACpA7D-CjQnnjyH.js → TrendChart-BpsoQkO0-DB1sMg9j.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-BnHF9LmW-tSH-lIqy.js → TrendWithTransactions-D61X4lVu-B1TFib9_.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-CPwbKmda-DK_YTS86.js → UncategorizedAccountsMappingPage-CGGKjJaZ-D-H5tUAz.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-Du-y-JVz-Dj8kt9Jm.js → UnitIntegrationPage-cQpbU9rB-Cbb-Whyn.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-Pjy5PzIW-CGkZI-1j.js → UploadAdditionalDocumentOverlay-jDJV9q65-D9UMm7kL.js} +1 -1
  186. package/dist/assets/{Vendor2FAPopup-DgjZcTQX-D9W9dZq3.js → Vendor2FAPopup-B3ecYMnd-64QYc3pi.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-DcNKtZ0R-Bi8pbvaS.js → VendorACHDetailsPage-DgHf5ptD-DJ7gUVt7.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-DEEb2gjp-CCMM19HN.js → VendorDetailPage-Bi8U23Yu-CYAI7EU_.js} +1 -1
  189. package/dist/assets/{VendorDomesticWireDetailsPage-y3jp785O-Cn755Yd_.js → VendorDomesticWireDetailsPage-1NJj7GtJ-D3rBN46J.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-BduWVF51-ZFGfV5H2.js → VendorFiling1099EditablePage-BRytcxuo-CZqTJihb.js} +1 -1
  191. package/dist/assets/{VendorFirstReviewPage-B8vqDzGi-DJiwpQ21.js → VendorFirstReviewPage-wW6F5Vyp-CwmSDV52.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-DmJ3Bq2T-koc0rrhz.js → VendorInternationalWireDetailsPage-BvOCNJjZ-C9fzsF24.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Bxy4g8yL-BEOh0GH5.js → VendorInternationalWireSwiftDetailsPage-DfyLskrB-CQ9ndRc7.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-DhleXBjq-ChXEGqE2.js → VendorsAccountsSection-BgZ0EsGs-KDRhKsoW.js} +1 -1
  195. package/dist/assets/{VerifyDevice-BdUpM2Xk-BumcsjMz.js → VerifyDevice-Djjoi0YZ-_3zMjBLM.js} +1 -1
  196. package/dist/assets/{VideoPlayer-Bh9pi5bb-TiF1CvxS.js → VideoPlayer-DGYFB2YS-DUfF6yFC.js} +1 -1
  197. package/dist/assets/{VideoPopup-BmSbL0tQ-DjmLvupK.js → VideoPopup-DJk2FZWR-CM_0HjD0.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-DfPbJNDz-D6Qv89yX.js → WarningsDrawerPage-CD08YNAB-Dx2KFQiH.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-BgJTjD7y-CLcudSUF.js → ZeniAccountDetailPage-BymuJnpr-wd8ZOXRP.js} +1 -1
  200. package/dist/assets/{ZeniAccountListViewPage-BWVLF3FE-bImThYTF.js → ZeniAccountListViewPage-CSf3_-PQ-BIF2NgM3.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-Qs5xZ8ja-Snqvnod-.js → ZeniAccountNavBarPieces-F42ZriYE-DqNJ1jU2.js} +1 -1
  202. package/dist/assets/{ZeniAccountPromoPage-B9FLpxZq-DAjEd67A.js → ZeniAccountPromoPage-VVCQ_UDm-Ct-iLwvJ.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-CvumFc2I-DGe5s0B-.js → ZeniAccountSetupPage-BOwiGnM--Dz_2kMjh.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-2Gm8bvIj-DzzOVwWa.js → ZeniCopyright-DkcWuMgx-RWRqD984.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-3iNLjlk5-BHZ8X84U.js → ZeniTransferAmountSlider-tcmR5JIX-Cd37-VEc.js} +1 -1
  206. package/dist/assets/{analyticsHelper-BjdxHYNU-D0RzuG-N.js → analyticsHelper-DgQ9dYv6-De-krZ12.js} +1 -1
  207. package/dist/assets/{analyticsHelper-Bz2Bv2NU.js → analyticsHelper-JHJDqaL3.js} +1 -1
  208. package/dist/assets/{chartTypes-C55wRbZm-DZYdSC6g.js → chartTypes-BkGKZtjd-9mZz2BPE.js} +1 -1
  209. package/dist/assets/{commonDimensions-kvPZ9uhR-B0JIHYIl.js → commonDimensions-D-rqQGD_-DguqB4oO.js} +1 -1
  210. package/dist/assets/{detailCommon-flEwHQWE-BLWYWFmQ.js → detailCommon-GKfk0vsu-okwQGabL.js} +1 -1
  211. package/dist/assets/{downloadPdf-9PwAfZrf-DIShnr79.js → downloadPdf-De1ILdAb-TsI5sZUf.js} +1 -1
  212. package/dist/assets/{index-JJMBnBNB.js → index-Ci6w3djJ.js} +156 -156
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-D2-Xk-a2-CMsQ-3ZE.js → mapLoadingInProgressToTreeNode-BQLjNvTv-Bsg376BD.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D8mXp6cH-CNK3VSms.js → mapSectionWithAcOnlyToTreeNode-C0VNdd8s-DEUZo2Rp.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-DgTZkD7S-B5si502J.js → mapSpacerToTreeNode-BU36CqfC-Cr9vicKb.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-Dc8D2GxV-D8-XEGh6.js → mapTimeframeBalancesToTreeNode-BVtoixEC-BiHZ5pyZ.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-DacdNIKt-CLQ_K0_1.js → mapTimeframeBalancesToTreeNode-C45lf-nZ-CyNDhoCp.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-ByVkwcZX-Czj_JvYh.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DeErljHZ-B_ZutE8q.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-CHP1NmFV-BEycbicm.js → toCOABalancesWithID-jZvgYCO7-K9Aq1Sm_.js} +1 -1
  220. package/dist/assets/{toChartData-CV-IsjGn-Dk8tQTe6.js → toChartData-XC5K1jEk-BCy0qlOQ.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-73WJKkar-DR4hSDYc.js → treasuryColorHelper-Bn8hh2DU-D0UXXZoq.js} +1 -1
  222. package/dist/assets/{uploadAttachment-Cj3QcGO3-CSfQMSBZ.js → uploadAttachment-CAl_Ockc-C-WoP6Qy.js} +1 -1
  223. package/dist/assets/{uploadReceipts-CQ7whQyJ-Bg8PayZa.js → uploadReceipts-CQ7whQyJ-CcIwDZ8Y.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +3 -3
  226. package/dist/assets/BusinessVerificationPage-Ccqlx-_j-Bv3lOKHi.js +0 -140
  227. package/dist/assets/CustomerOnboardingContainerPage-AGr9ylBU-C-H4DDTq.js +0 -1
  228. package/dist/assets/TransactionDetailPage-CVxiCsG1-sNJ-d0rt.js +0 -912
  229. package/dist/assets/TreasurySetupPage-DmIyCtnW-DIYIFb2p.js +0 -146
@@ -1,15 +1,15 @@
1
- import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K,O as X,H as Z,am as _,u as l,C as ee,b6 as ie,an as D,h as v,ai as te,cw as ne}from"./index-JJMBnBNB.js";import{b as k,n as t}from"./vendor-Bs1fkIUX.js";import{q as oe}from"./PortfolioDetails-DgBQTG2N-D9w2PpF1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./treasuryColorHelper-73WJKkar-DR4hSDYc.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=Q.getLocalizedStrings(),d={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])},re={stepTitle:new X("h6Regular","h5Regular")},Me=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:E,isReadOnly:c,isEditMode:p,isOnSetup:$=!1})=>{const r=H(),[M,q]=k.useState(!1),{fundsData:F,fundAllocationOptions:s,fundAllocationLocalData:a,currentAllocation:w,portfolioAllocationUpdateStatus:N}=E;k.useEffect(()=>{if(p&&w!==null){const o=!S(a.allocation,w);q(o)}},[p,w,a]);const y=o=>{const f=s.find(Y=>Y.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},G=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&G(),e()};return i.jsxs(ae,{children:[i.jsxs(de,{windowSize:r,children:[i.jsx(ce,{windowSize:r,children:i.jsx(U,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(pe,{"data-testid":V("nav-bar-back-portfolio-allocation"),onClick:j})})}),i.jsxs(xe,{windowSize:r,children:[i.jsxs(he,{windowSize:r,children:[i.jsx(ue,{windowSize:r,children:le(c,$,p)}),!c&&!p&&i.jsx(me,{children:i.jsxs(ge,{children:[i.jsx(we,{}),i.jsx(z,{}),i.jsx(z,{})]})})]}),i.jsx(fe,{isReadOnly:c,children:se(c,$,p)}),i.jsx($e,{children:i.jsxs(ye,{windowSize:r,children:[i.jsx(ve,{children:i.jsx(oe,{isInReview:!1,isSetup:!0,fundDetails:F,allocation:a,page:$?"setup portfolio":"edit portfolio"})}),i.jsxs(be,{windowSize:r,children:[i.jsx(je,{children:i.jsx(Se,{onClick:b,isRecommended:c||a.riskScore===0||a.riskLevel==="Conservative",children:x.resetButton})}),r==="small"?i.jsxs(ke,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(P,{windowSize:r,children:[i.jsx(O,{children:a.riskScore}),i.jsx(L,{children:m.strings.slash}),i.jsx(C,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(B,{children:[i.jsx(I,{type:"range",min:"0",max:s.length-1,step:"1",value:a.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(A,{style:{width:`${s.length>1?a.optionIndex/(s.length-1)*(d.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(ze,{children:[i.jsx(T,{children:x.riskLevelLabel}),i.jsx(W,{children:a.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(P,{windowSize:r,children:[i.jsx(O,{children:a.riskScore}),i.jsx(L,{children:m.strings.slash}),i.jsx(C,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(B,{children:[i.jsx(I,{type:"range",min:"0",max:s.length-1,step:"1",value:a.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(A,{style:{width:`${s.length>1?a.optionIndex/(s.length-1)*(d.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{windowSize:r,children:[i.jsx(T,{children:x.riskLevelLabel}),i.jsx(W,{children:a.riskLevel})]})]})]})]})})]})]}),c?null:i.jsx(J,{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&&N.fetchState==="In-Progress",isDisabled:p&&!M}})]})};function le(e,g,h){return e||g&&h?x.title:h?x.editTitle:x.stepTitle}function se(e,g,h){return e||g&&h?x.subtextReadOnly:h?x.subtextEdit:x.subtextSetup}const ae=t.div`
1
+ import{q as U,aC as S,j as i,c5 as Q,F as V,aM as J,y as u,aQ as K,o as n,A as X,O as Z,H as _,am as ee,u as l,C as ie,b6 as te,an as W,h as v,ai as ne,cw as oe}from"./index-Ci6w3djJ.js";import{b as k,n as t}from"./vendor-Bs1fkIUX.js";import{q as re}from"./PortfolioDetails-YqgY6irK-B5_kIUnF.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./treasuryColorHelper-Bn8hh2DU-D0UXXZoq.js";const{spendManagement:{treasury:{portfolioAllocation:x}},common:m}=V.getLocalizedStrings(),d={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])},le={stepTitle:new Z("h6Regular","h5Regular")},Me=({onBackClick:e,onNextClick:g,onUpdateFundAllocation:h,treasurySetupView:E,isReadOnly:c,isEditMode:p,isOnSetup:$=!1,skipTransferStep:q})=>{const r=U(),[M,F]=k.useState(!1),{fundsData:G,fundAllocationOptions:s,fundAllocationLocalData:a,currentAllocation:w,portfolioAllocationUpdateStatus:N}=E;k.useEffect(()=>{if(p&&w!==null){const o=!S(a.allocation,w);F(o)}},[p,w,a]);const y=o=>{const f=s.find(H=>H.optionIndex===o);f&&h(f)},b=()=>{y(s.findIndex(o=>o.riskScore===0||o.riskLevel==="Conservative"))},Y=()=>{let o;w!=null&&(o=s.find(f=>S(f.allocation,w))),o!=null?h(o):b()},j=()=>{p&&Y(),e()};return i.jsxs(de,{children:[i.jsxs(ce,{windowSize:r,children:[i.jsx(pe,{windowSize:r,children:i.jsx(Q,{title:m.navBar.back,enterTouchDelay:600,placement:"bottom",children:i.jsx(xe,{"data-testid":J("nav-bar-back-portfolio-allocation"),onClick:j})})}),i.jsxs(he,{windowSize:r,children:[i.jsxs(ue,{windowSize:r,children:[i.jsx(me,{windowSize:r,children:se(c,$,p)}),!c&&!p&&i.jsx(ge,{children:i.jsxs(we,{children:[i.jsx(fe,{}),i.jsx(z,{}),q!==!0&&i.jsx(z,{})]})})]}),i.jsx($e,{isReadOnly:c,children:ae(c,$,p)}),i.jsx(ye,{children:i.jsxs(ve,{windowSize:r,children:[i.jsx(be,{children:i.jsx(re,{isInReview:!1,isSetup:!0,fundDetails:G,allocation:a,page:$?"setup portfolio":"edit portfolio"})}),i.jsxs(je,{windowSize:r,children:[i.jsx(Se,{children:i.jsx(ke,{onClick:b,isRecommended:c||a.riskScore===0||a.riskLevel==="Conservative",children:x.resetButton})}),r==="small"?i.jsxs(ze,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(P,{windowSize:r,children:[i.jsx(O,{children:a.riskScore}),i.jsx(L,{children:m.strings.slash}),i.jsx(C,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(B,{children:[i.jsx(I,{type:"range",min:"0",max:s.length-1,step:"1",value:a.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(A,{style:{width:`${s.length>1?a.optionIndex/(s.length-1)*(d.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Re,{children:[i.jsx(T,{children:x.riskLevelLabel}),i.jsx(D,{children:a.riskLevel})]})]}):i.jsxs(i.Fragment,{children:[i.jsxs(R,{windowSize:r,children:[i.jsxs(P,{windowSize:r,children:[i.jsx(O,{children:a.riskScore}),i.jsx(L,{children:m.strings.slash}),i.jsx(C,{children:s.length>0?Math.max(...s.map(o=>o.riskScore)):0})]}),i.jsxs(B,{children:[i.jsx(I,{type:"range",min:"0",max:s.length-1,step:"1",value:a.optionIndex,onChange:o=>y(Number(o.target.value)),disabled:c,isReadOnly:c,windowSize:r}),i.jsx(A,{style:{width:`${s.length>1?a.optionIndex/(s.length-1)*(d.sliderWidth.value(r)-12):0}px`}})]})]}),i.jsxs(Pe,{windowSize:r,children:[i.jsx(T,{children:x.riskLevelLabel}),i.jsx(D,{children:a.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&&N.fetchState==="In-Progress",isDisabled:p&&!M}})]})};function se(e,g,h){return e||g&&h?x.title:h?x.editTitle:x.stepTitle}function ae(e,g,h){return e||g&&h?x.subtextReadOnly:h?x.subtextEdit:x.subtextSetup}const de=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  height: 100%;
5
5
  background-color: ${e=>e.theme.colors.grey4};
6
- `,de=t.div`
6
+ `,ce=t.div`
7
7
  height: auto;
8
8
  padding-left: ${e=>`${d.containerPaddingLeft.valuePx(e.windowSize)}`};
9
9
  padding-right: ${e=>`${d.containerPaddingRight.valuePx(e.windowSize)}`};
10
10
  flex: 1;
11
11
  overflow-y: auto;
12
- `,ce=t.div`
12
+ `,pe=t.div`
13
13
  display: flex;
14
14
  flex-direction: row;
15
15
  justify-content: flex-end;
@@ -18,7 +18,7 @@ import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K
18
18
  top: ${n.sp0};
19
19
  padding: ${e=>`${d.navBarContainerPaddingYaxis.valuePx(e.windowSize)} ${n.sp0}`};
20
20
  z-index: 2;
21
- `,pe=t(K)`
21
+ `,xe=t(X)`
22
22
  cursor: pointer;
23
23
  color: ${e=>e.theme.colors.hero};
24
24
  width: ${n.sp4};
@@ -27,7 +27,7 @@ import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K
27
27
  &:hover {
28
28
  color: ${e=>e.theme.colors.primary};
29
29
  }
30
- `,xe=t.div`
30
+ `,he=t.div`
31
31
  display: flex;
32
32
  flex-direction: column;
33
33
  align-items: center;
@@ -37,39 +37,39 @@ import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K
37
37
  ${e=>e.windowSize==="small"&&`
38
38
  margin-bottom: ${n.sp5};
39
39
  `}
40
- `,he=t.div`
40
+ `,ue=t.div`
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  gap: ${n.sp3};
44
44
  width: 100%;
45
- `,ue=t(Z)`
46
- ${e=>`${re.stepTitle.style(e.windowSize)}`};
45
+ `,me=t(_)`
46
+ ${e=>`${le.stepTitle.style(e.windowSize)}`};
47
47
  color: ${e=>e.theme.colors.primary};
48
48
  text-align: left;
49
- `,me=t.div`
49
+ `,ge=t.div`
50
50
  display: flex;
51
51
  align-items: center;
52
- `,ge=t.div`
52
+ `,we=t.div`
53
53
  display: flex;
54
54
  width: 100%;
55
55
  gap: ${n.sp3};
56
- `,we=t.div`
57
- width: 33.33%;
56
+ `,fe=t.div`
57
+ flex: 1;
58
58
  height: 2px;
59
59
  background-color: ${e=>e.theme.colors.primary};
60
60
  border-radius: ${n.sp2};
61
61
  `,z=t.div`
62
- width: 33.33%;
62
+ flex: 1;
63
63
  height: 2px;
64
64
  background-color: ${e=>e.theme.colors.grey2};
65
65
  border-radius: ${n.sp2};
66
- `,fe=t(_)`
66
+ `,$e=t(ee)`
67
67
  color: ${e=>e.theme.colors.hero};
68
68
  text-align: left;
69
69
  max-width: ${d.titleWidth.valuePx("medium-regular")}px;
70
70
  width: 100%;
71
71
  margin-top: ${e=>e.isReadOnly===!0?"-8px":"0"};
72
- `,$e=t.div`
72
+ `,ye=t.div`
73
73
  background: ${e=>e.theme.colors.grey5};
74
74
  border: 1px solid ${e=>e.theme.colors.grey3};
75
75
  border-radius: ${d.cardBorderRadius}px;
@@ -78,14 +78,14 @@ import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K
78
78
  max-width: ${d.titleWidth.valuePx("medium-regular")}px;
79
79
  display: flex;
80
80
  flex-direction: column;
81
- `,ye=t.div`
81
+ `,ve=t.div`
82
82
  padding: ${e=>d.cardPadding.valuePx(e.windowSize)};
83
83
  display: flex;
84
84
  flex-direction: column;
85
- `,ve=t.div`
85
+ `,be=t.div`
86
86
  display: flex;
87
87
  flex-direction: column;
88
- `,be=t.div`
88
+ `,je=t.div`
89
89
  display: flex;
90
90
  justify-content: space-between;
91
91
  align-items: center;
@@ -95,16 +95,16 @@ import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K
95
95
  gap: ${n.sp3};
96
96
  align-items: stretch;
97
97
  `}
98
- `,je=t.div`
98
+ `,Se=t.div`
99
99
  display: flex;
100
100
  flex-direction: column;
101
101
  width: 245px;
102
- `,Se=t.button`
102
+ `,ke=t.button`
103
103
  background: none;
104
104
  border: none;
105
105
  cursor: ${e=>e.isRecommended?"default":"pointer"};
106
106
  color: ${e=>e.isRecommended?e.theme.colors.grey2:e.theme.colors.hero};
107
- ${ee.smallRegular.css};
107
+ ${ie.smallRegular.css};
108
108
  text-align: left;
109
109
  padding: ${n.sp0};
110
110
  text-decoration: underline;
@@ -130,11 +130,11 @@ import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K
130
130
  ${e=>e.windowSize==="small"&&`
131
131
  width: auto;
132
132
  `}
133
- `,O=t(ie)`
133
+ `,O=t(te)`
134
134
  color: ${e=>e.theme.colors.primary};
135
- `,C=t(D)`
135
+ `,C=t(W)`
136
136
  color: ${e=>e.theme.colors.primary};
137
- `,L=t(D)`
137
+ `,L=t(W)`
138
138
  color: ${e=>e.theme.colors.primary};
139
139
  `,B=t.div`
140
140
  display: flex;
@@ -179,29 +179,29 @@ import{q as H,aC as S,j as i,c5 as U,F as Q,aM as V,y as u,aQ as J,o as n,A as K
179
179
  position: absolute;
180
180
  height: 2px;
181
181
  background-color: ${v.success};
182
- `,ke=t.div`
182
+ `,ze=t.div`
183
183
  display: flex;
184
184
  flex-direction: row;
185
185
  align-items: flex-start;
186
186
  gap: ${n.sp3};
187
- `,ze=t.div`
187
+ `,Re=t.div`
188
188
  display: flex;
189
189
  flex-direction: column;
190
190
  align-items: flex-end;
191
191
  width: auto;
192
192
  padding-right: ${n.sp0};
193
193
  box-sizing: border-box;
194
- `,Re=t.div`
194
+ `,Pe=t.div`
195
195
  display: flex;
196
196
  flex-direction: column;
197
197
  align-items: ${e=>e.windowSize==="small"?"flex-start":"flex-end"};
198
198
  width: 129px;
199
199
  padding-right: ${e=>d.riskLevelInfoPaddingRight.valuePx(e.windowSize)};
200
200
  box-sizing: border-box;
201
- `,T=t(te)`
201
+ `,T=t(ne)`
202
202
  color: ${e=>e.theme.colors.hero};
203
203
  text-align: right;
204
- `,W=t(ne)`
204
+ `,D=t(oe)`
205
205
  color: ${e=>e.theme.colors.hero};
206
206
  text-align: right;
207
207
  `;export{Me as default};
@@ -1,4 +1,4 @@
1
- import{j as e,F as V,o as n,jh as X,am as Q,a9 as G,c as H,q as J,aN as B,y as L,c5 as f,h as I,cw as _,ai as N,dM as Z,a$ as ee,b6 as ie,bP as se,bX as ne,an as le,dr as oe,u as te}from"./index-JJMBnBNB.js";import{n as s,b as re}from"./vendor-Bs1fkIUX.js";import{l as ae}from"./treasuryColorHelper-73WJKkar-DR4hSDYc.js";const{common:r,spendManagement:{treasury:o},dateFormat:de}=V.getLocalizedStrings(),w={portfolioYieldMarginTop:new L(-4,te[0]),sliderWidth:new L(143,177)},Le=({isInReview:i,isSetup:l,fundDetails:m,allocation:d,amount:h,fundAllocations:v,page:j})=>{const a=ce(m);return e.jsxs(he,{children:[!l&&e.jsx(me,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${o.portfolioAllocation.title}`}),a.map(($,x)=>{const A=v?.find(g=>g.fundCode===m[x].fundCode)?.amount;return e.jsx(pe,{portfolio:$,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:l,isLast:x===a.length-1,amount:h,currentAllocationAmount:A,page:j},m[x]?.fundCode||x)})]})},ce=i=>i.map(l=>[{label:o.promoPage.liquidity,value:l.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:X(l.fundSize,l.currencyCode)},{label:o.promoPage.maturity,value:`${l.maturity} ${r.timeStrings.days}`},{label:o.promoPage.expenseRatio,value:`${l.expenseRatio}${o.promoPage.expenseRatioSuffix}`},{label:o.promoPage.riskRating,value:l.riskRating||r.strings.hyphen},{label:o.promoPage.composition,value:Array.isArray(l.compositions)&&l.compositions.length>0?`${l.compositions[0].investedIn} ${l.compositions[0].percentage}${r.strings.percentage}`:r.strings.hyphen,tag:Array.isArray(l.compositions)&&l.compositions.length>1?`+${l.compositions.length-1}`:void 0,compositions:l.compositions??[]}]),pe=({portfolio:i,fund:l,fundIndex:m,allocationPercentage:d,isInReview:h,isSetup:v,isLast:j,amount:a,currentAllocationAmount:$,page:x})=>{const A=G().analytics,g=H(),t=J(),b=$?$.amount:a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,K]=re.useState(!1),u=ae(m,g),S=()=>{p||A.trackTreasuryProspectusClick(l.fundName,l.fundCode,x),K(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{children:e.jsxs(ue,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(fe,{windowSize:t,children:[e.jsxs(ye,{isInReview:h,windowSize:t,children:[e.jsx(we,{children:l.fundCode}),e.jsx(ve,{color:u.fundNameColor,children:`${l.fundCompanyName} ${l.fundName}`})]}),t!=="small"&&e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:h?e.jsxs(F,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(O,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs($e,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(F,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,style:{marginRight:n.sp3},children:[l.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(Te,{children:v?e.jsxs(Ae,{children:[e.jsxs(Re,{children:[e.jsxs(We,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}),e.jsxs(z,{onClick:S,style:{marginBottom:n.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}):h?e.jsxs(Ye,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(O,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(z,{onClick:S,style:{margin:`${n.sp2} ${n.sp0}`,...j?{marginBottom:n.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}):e.jsxs(Ie,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(Se,{children:[e.jsx(k,{children:l.description}),e.jsx(be,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Ce,{windowSize:t,children:[e.jsx(k,{children:r.strings.dividerDot}),e.jsx(k,{style:{minWidth:"140px"},children:c.label}),e.jsxs(k,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:g.colors.primary,borderBottom:`1px solid ${g.colors.grey3}`,width:"100%",padding:`${n.sp1} ${n.sp0}`,display:"flex",flexDirection:"row",alignItems:"center",gap:n.sp2},children:[c.value,!!c.tag&&c.label===o.promoPage.composition&&e.jsx(f,{variant:"list-description",data:{title:r.strings.empty,items:Array.isArray(c.compositions)&&c.compositions.length>0?c.compositions.map(q=>({text:`${r.strings.dividerDot} ${q.investedIn}`,amount:`${q.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${n.sp3}`},children:e.jsx(De,{children:c.tag})})]})]},c.label))}),e.jsxs(Pe,{onClick:()=>window.open(l.url,"_blank"),children:[e.jsx(je,{children:`${o.promoPage.asOf} ${l.asOfDate.format(de.visual.MMMDCommaYYYYformat)}`}),e.jsx(ze,{})]})]}),(!j||v)&&e.jsx(ke,{style:{width:"100%",marginBottom:n.sp3}})]})},xe=s.div`
1
+ import{j as e,F as V,o as n,jh as X,am as Q,a9 as G,c as H,q as J,aN as B,y as L,c5 as f,h as I,cw as _,ai as N,dM as Z,a$ as ee,b6 as ie,bP as se,bX as ne,an as le,dr as oe,u as te}from"./index-Ci6w3djJ.js";import{n as s,b as re}from"./vendor-Bs1fkIUX.js";import{l as ae}from"./treasuryColorHelper-Bn8hh2DU-D0UXXZoq.js";const{common:r,spendManagement:{treasury:o},dateFormat:de}=V.getLocalizedStrings(),w={portfolioYieldMarginTop:new L(-4,te[0]),sliderWidth:new L(143,177)},Le=({isInReview:i,isSetup:l,fundDetails:m,allocation:d,amount:h,fundAllocations:v,page:j})=>{const a=ce(m);return e.jsxs(he,{children:[!l&&e.jsx(me,{style:{alignSelf:"flex-start",padding:`${n.sp2} ${n.sp0}`},children:`${o.portfolioAllocation.title}`}),a.map(($,x)=>{const A=v?.find(g=>g.fundCode===m[x].fundCode)?.amount;return e.jsx(pe,{portfolio:$,fund:m[x],fundIndex:x,allocationPercentage:d.allocation?.[m[x].fundCode]||0,isInReview:i,isSetup:l,isLast:x===a.length-1,amount:h,currentAllocationAmount:A,page:j},m[x]?.fundCode||x)})]})},ce=i=>i.map(l=>[{label:o.promoPage.liquidity,value:l.liquidityTimeline||r.strings.hyphen},{label:o.promoPage.fundSize,value:X(l.fundSize,l.currencyCode)},{label:o.promoPage.maturity,value:`${l.maturity} ${r.timeStrings.days}`},{label:o.promoPage.expenseRatio,value:`${l.expenseRatio}${o.promoPage.expenseRatioSuffix}`},{label:o.promoPage.riskRating,value:l.riskRating||r.strings.hyphen},{label:o.promoPage.composition,value:Array.isArray(l.compositions)&&l.compositions.length>0?`${l.compositions[0].investedIn} ${l.compositions[0].percentage}${r.strings.percentage}`:r.strings.hyphen,tag:Array.isArray(l.compositions)&&l.compositions.length>1?`+${l.compositions.length-1}`:void 0,compositions:l.compositions??[]}]),pe=({portfolio:i,fund:l,fundIndex:m,allocationPercentage:d,isInReview:h,isSetup:v,isLast:j,amount:a,currentAllocationAmount:$,page:x})=>{const A=G().analytics,g=H(),t=J(),b=$?$.amount:a!=null&&a.amount>0&&d>0?a.amount*d/100:void 0,[p,K]=re.useState(!1),u=ae(m,g),S=()=>{p||A.trackTreasuryProspectusClick(l.fundName,l.fundCode,x),K(c=>!c)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{children:e.jsxs(ue,{windowSize:t,children:[e.jsxs(ge,{windowSize:t,children:[e.jsxs(fe,{windowSize:t,children:[e.jsxs(ye,{isInReview:h,windowSize:t,children:[e.jsx(we,{children:l.fundCode}),e.jsx(ve,{color:u.fundNameColor,children:`${l.fundCompanyName} ${l.fundName}`})]}),t!=="small"&&e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),t!=="small"&&e.jsx(e.Fragment,{children:h?e.jsxs(F,{style:{alignItems:"flex-start"},children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(O,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty})]}):e.jsxs($e,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]})}),t!=="small"&&e.jsxs(F,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{minWidth:"496px",padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,style:{marginRight:n.sp3},children:[l.yield,r.strings.percentage]})]})]}),t==="small"&&e.jsx(Te,{children:v?e.jsxs(Ae,{children:[e.jsxs(Re,{children:[e.jsxs(We,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]})]}),e.jsxs(Me,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}),e.jsxs(z,{onClick:S,style:{marginBottom:n.sp2},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}):h?e.jsxs(Ye,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsx(O,{children:b!=null?B("0,0.[00]",{amount:b,currencyCode:a?.currencyCode!=null&&a.currencyCode!==""?a.currencyCode:"USD",currencySymbol:a?.currencySymbol!=null&&a.currencySymbol!==""?a.currencySymbol:"$"}):r.strings.empty}),e.jsxs(z,{onClick:S,style:{margin:`${n.sp2} ${n.sp0}`,...j?{marginBottom:n.sp0}:{}},children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]}):e.jsxs(Ie,{children:[e.jsxs(U,{children:[e.jsxs(y,{windowSize:t,children:[d,r.strings.percentage]}),e.jsxs(R,{children:[e.jsx(M,{type:"range",min:0,max:100,step:1,value:d,readOnly:!0,windowSize:t}),e.jsx(W,{color:u.fundNameColor,style:{width:`calc(${w.sliderWidth.value(t)}/100*${d}px)`,zIndex:1}})]}),e.jsxs(z,{onClick:S,children:[p?o.transferDrawer.calculator.footerText.hide:o.overviewPage.fundTile.viewDetails,p?e.jsx(T,{}):e.jsx(P,{})]})]}),e.jsxs(E,{children:[e.jsxs(D,{children:[o.overviewPage.sevenDayYield,e.jsx(f,{data:o.overviewPage.fundTile.sevenDayYieldTooltip,variant:"small-description",placement:"bottom-end",style:{padding:`12px ${n.sp3}`},enterDelay:300,children:e.jsx(Y,{})})]}),e.jsxs(C,{windowSize:t,children:[l.yield,r.strings.percentage]})]})]})})]},i[0].label)}),p&&e.jsxs(Se,{children:[e.jsx(k,{children:l.description}),e.jsx(be,{style:{marginLeft:n.sp3},children:i.map(c=>e.jsxs(Ce,{windowSize:t,children:[e.jsx(k,{children:r.strings.dividerDot}),e.jsx(k,{style:{minWidth:"140px"},children:c.label}),e.jsxs(k,{style:{color:c.label===o.promoPage.fundSize?u.fundNameColor:g.colors.primary,borderBottom:`1px solid ${g.colors.grey3}`,width:"100%",padding:`${n.sp1} ${n.sp0}`,display:"flex",flexDirection:"row",alignItems:"center",gap:n.sp2},children:[c.value,!!c.tag&&c.label===o.promoPage.composition&&e.jsx(f,{variant:"list-description",data:{title:r.strings.empty,items:Array.isArray(c.compositions)&&c.compositions.length>0?c.compositions.map(q=>({text:`${r.strings.dividerDot} ${q.investedIn}`,amount:`${q.percentage}${r.strings.percentage}`})):[]},placement:"bottom-end",style:{minWidth:"312px",padding:`12px ${n.sp3}`},children:e.jsx(De,{children:c.tag})})]})]},c.label))}),e.jsxs(Pe,{onClick:()=>window.open(l.url,"_blank"),children:[e.jsx(je,{children:`${o.promoPage.asOf} ${l.asOfDate.format(de.visual.MMMDCommaYYYYformat)}`}),e.jsx(ze,{})]})]}),(!j||v)&&e.jsx(ke,{style:{width:"100%",marginBottom:n.sp3}})]})},xe=s.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  gap: ${n.sp2};
@@ -1,4 +1,4 @@
1
- import{F as O,j as t,a9 as U,o as l,cg as A,a$ as N,u as q,dq as G,ar as H,am as _,dr as J,h as y}from"./index-JJMBnBNB.js";import{b as $,n as i}from"./vendor-Bs1fkIUX.js";const u=O.getLocalizedStrings(),w={large:{labelComp:G,title:H,subtitle:_,seeMoreLink:_}},Y={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=Y.large,K=i.div`
1
+ import{F as O,j as t,a9 as U,o as l,cg as A,a$ as N,u as q,dq as G,ar as H,am as _,dr as J,h as y}from"./index-Ci6w3djJ.js";import{b as $,n as i}from"./vendor-Bs1fkIUX.js";const u=O.getLocalizedStrings(),w={large:{labelComp:G,title:H,subtitle:_,seeMoreLink:_}},Y={large:{width:496,height:512,padding:32,svgSize:12,svgContainerHeight:24,gap:8,imageGap:16,borderRadius:16}},o=Y.large,K=i.div`
2
2
  width: ${e=>e.scale*o.width}px;
3
3
  height: ${e=>e.scale*o.height}px;
4
4
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{q as c,j as r,dv as b,dw as v,dx as L,bB as z,y as a,o as e,h as d,O as f,u as l}from"./index-JJMBnBNB.js";import{i,n as p,k as m}from"./vendor-Bs1fkIUX.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
1
+ import{q as c,j as r,dv as b,dw as v,dx as L,bB as z,y as a,o as e,h as d,O as f,u as l}from"./index-Ci6w3djJ.js";import{i,n as p,k as m}from"./vendor-Bs1fkIUX.js";const t={plasticCardMarginLeft:new a(l[6],120),plasticCardMarginTop:new a(12,-9),businessTextRight:new a(l[2],13),businessTextBottom:new a(l[8],81),chargeCardWidth:new a(240,384),chargeCardHeight:new a(153,243),styledLogoWidth:new a(47,76),styledLogoHeight:new a(46,74),styledFullLogoTop:new a(12,28),styledFullLogoRight:new a(l[2],13),styledFullLogoHeight:new a(20,34),styledFullLogoWidth:new a(88,142),chipLogoWidth:new a(31,50),chipLogoHeight:new a(l[4],39),visaLogoWidth:new a(52,84),visaLogoHeight:new a(17,27),visaLogoRight:new a(l[2],13),visaLogoBottom:new a(l[2],13)},u={businessText:new f("extraSmallRegular","largeRegular"),promoBusinessText:new f("tinyLight","tinyLight")},F=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(k,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(D,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(z,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},A=({cardText:o,shouldAnimate:g,showChip:w,forDashboard:s,forListPage:h,cardPromoType:x,style:$})=>{const n=c();return r.jsxs(W,{cardPromoType:x,windowSize:n,shouldAnimate:g,forListPage:h,forDashboard:s,style:$,children:[w&&r.jsx(S,{windowSize:n,forDashboard:s,children:r.jsx(b,{})}),r.jsx(B,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(v,{})}),r.jsx(P,{windowSize:n,forDashboard:s,forListPage:h,children:o}),r.jsx(y,{windowSize:n,forDashboard:s,forListPage:h,children:r.jsx(L,{})})]})},C=m`
2
2
  0%{
3
3
  transform: rotate(12.4deg);
4
4
  translate: ${e.sp0} ${e.sp0};
@@ -1,4 +1,4 @@
1
- import{q as w,F as t,j as n,c4 as j,a as l,y as s,o as i,ar as P,am as y,ag as f,bz as b,f1 as v,u as a}from"./index-JJMBnBNB.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},z=o.div`
1
+ import{q as w,F as t,j as n,c4 as j,a as l,y as s,o as i,ar as P,am as y,ag as f,bz as b,f1 as v,u as a}from"./index-Ci6w3djJ.js";import{n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const r={containerPaddingTop:new s(a[5],a[7]),containerPaddingBottom:new s(a[5],a[5]),containerPaddingLeftRight:new s(a[6],a[11])},z=o.div`
2
2
  border-radius: inherit;
3
3
  max-width: 520px;
4
4
  text-align: center;
@@ -1,4 +1,4 @@
1
- import{q as C,F as u,j as i,a as k,o,y as a,h as d,fJ as E,O as T,ag as W,bz as q,f1 as B,fH as H,aU as w,ai as $,u as t}from"./index-JJMBnBNB.js";import{n as s}from"./vendor-Bs1fkIUX.js";import I from"./QBOConnectionDialog-Sok8rRG4-BBgIq76h.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},A={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=C(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:b,sucessText:z,button:v,errorText:P,requiredText:O}=S;return i.jsxs(F,{windowSize:n,children:[i.jsxs(G,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(_,{}):i.jsx(K,{})}):null,i.jsx(N,{windowSize:n,children:b})]}),i.jsxs(Q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(M,{children:[i.jsx(R,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(J,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:O})}):null]}),i.jsx(I,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(H,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},F=s.div`
1
+ import{q as C,F as u,j as i,a as k,o,y as a,h as d,fJ as E,O as T,ag as W,bz as q,f1 as B,fH as H,aU as w,ai as $,u as t}from"./index-Ci6w3djJ.js";import{n as s}from"./vendor-Bs1fkIUX.js";import I from"./QBOConnectionDialog-BM3Ei-Uy-B7LqspAX.js";const r={containerPadding:new a(t[3],t[4]),sectionWidth:new a(343,580,726),topElementsRowGap:new a(t[3],t[0]),arrowIconWidthHeight:new a(t[3],t[4])},A={title:new T("standardMedium","largeMedium")},ee=({isAdmin:e,hasError:c=!1,isValid:l,saveConnectionState:p,isQBOPopupOpen:y,companyName:f,updateQBOPopupState:h,handleOnConnectClick:j})=>{const n=C(),{qbo_connection:S}=u.getLocalizedStrings().customerOnboardingPage.sections,{title:b,sucessText:z,button:v,errorText:P,requiredText:O}=S;return i.jsxs(F,{windowSize:n,children:[i.jsxs(G,{windowSize:n,children:[n==="small"?i.jsx(V,{children:l?i.jsx(_,{}):i.jsx(K,{})}):null,i.jsx(N,{windowSize:n,children:b})]}),i.jsxs(Q,{windowSize:n,children:[i.jsxs(D,{windowSize:n,children:[i.jsxs(M,{children:[i.jsx(R,{}),i.jsx(L,{windowSize:n}),i.jsx(U,{})]}),l?n!=="small"?i.jsx(m,{}):null:i.jsx(k,{variant:"primary",size:n!=="small"?"standard":"xs-small",label:v.connect,style:{width:"fit-content"},onClick:()=>h(!0),loading:p==="In-Progress"})]}),l?i.jsxs(i.Fragment,{children:[i.jsx(J,{children:z}),n==="small"?i.jsx(m,{}):null]}):null,p==="Error"?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:P})}):null,c&&!l?i.jsx(x,{children:i.jsx(g,{windowSize:n,children:O})}):null]}),i.jsx(I,{isAdmin:e,isGoBackAllowed:!0,isQBOPopupOpen:y,companyName:f,saveConnectionState:p,handleOnConnectClick:j,handleGoBack:()=>h(!1)})]})},m=()=>{const{tags:e}=u.getLocalizedStrings().customerOnboardingPage,{connected:c}=e;return i.jsx(H,{style:{width:"max-content",padding:0,marginTop:o.sp2},tagTitle:c,textColor:{color:new w(d.successDark),borderColor:new w(d.successDark)}})},F=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as O,u as U,c as M,q as W,F as $,aa as G,aP as J,j as s,aJ as Q,cS as X,bF as H,ad as K,aQ as Y,o as f}from"./index-JJMBnBNB.js";import{b as D,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-BgJIGSUb-CkoWMlHD.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const L="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:F,onSaveRuleSuccess:A}){const E=M(),S=W(),a=$.getLocalizedStrings().commonSetUp.approval,I=$.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=J(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 q=g.handleSubmit(()=>{F()}),V=async(i,p)=>{b(p)};return D.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:C(L),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max: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(L),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent: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{y as O,u as U,c as M,q as W,F as $,aa as G,aP as J,j as s,aJ as Q,cS as X,bF as H,ad as K,aQ as Y,o as f}from"./index-Ci6w3djJ.js";import{b as D,n as h}from"./vendor-Bs1fkIUX.js";import{b as Z,f as ee,l as j,o as B}from"./FollowStepsSection-SyRYm6Xk-qRHgTOZ1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const L="reimbursementApprovalRuleDetailPage",T="lowerBound",k="upperBound",y="steps",te={footerPadding:new O(U[2],U[3])};function ye({localData:e,approvalUpdateActionType:r,isLowerBoundDisabled:t=!1,isUpperBoundDisabled:l=!0,hideUpperBoundField:o=!1,onBackClick:d,onApprovalRuleDataUpdated:b,onResetClick:N,onSaveRuleClick:F,onSaveRuleSuccess:A}){const E=M(),S=W(),a=$.getLocalizedStrings().commonSetUp.approval,I=$.getLocalizedStrings().spendManagement.reimbursement.reimbursementApproval,x=ae(e,r==="approval_create"&&!t),g=G({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.remiSetupApproverViewUpdateData?.updateStatus,w=J(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 q=g.handleSubmit(()=>{F()}),V=async(i,p)=>{b(p)};return D.useEffect(()=>{const i=g.watch((p,{name:R})=>{if(R!=null&&p!=null){const z=Q(p);X(()=>V(R,z))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),s.jsxs(se,{children:[s.jsx(H,{title:r==="approval_create"?a.newApproval:a.editApproval,backgroundColor:E.colors.grey4,style:{zIndex:4},onBackClick:()=>{d()},source:"ReimbursementApprovalRuleDetailPage"}),s.jsx(ne,{children:s.jsx(K,{...g,children:s.jsx("form",{id:C(L),onSubmit:q,children:s.jsxs(ie,{children:[s.jsx(Z,{label:{label:o?I.amountPerRemiGreaterLabel:I.amountPerRemiLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max: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(L),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:N},containerStyle:{justifyContent: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{c as M,q as B,F as y,j as o,bF as E,m as H,aM as S,o as t,y as r,am as L,aN as z,cD as F,cE as G,cF as U,dd as q,u as l,b8 as O,O as P,b7 as V,h as j,da as K,bx as _,C as Y}from"./index-JJMBnBNB.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),a=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(I,{windowSize:a,children:[n.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(F,{titleComponent:o.jsx(U,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(G,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},Q=i.div`
1
+ import{c as M,q as B,F as y,j as o,bF as E,m as H,aM as S,o as t,y as r,am as L,aN as z,cD as F,cE as G,cF as U,dd as q,u as l,b8 as O,O as P,b7 as V,h as j,da as K,bx as _,C as Y}from"./index-Ci6w3djJ.js";import{n as i,b as Z}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(l[0],-4)},A={stepper:new P("smallRegular","standardRegular"),amount:new P("standardRegular","largeRegular")},J=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:x,onEditRuleClick:v,onDeleteRuleClick:b})=>{const[g,d]=Z.useState(!1),a=B(),{range:c}=x.criteria[0],{steps:w,approvalRuleId:m}=x,n=y.getLocalizedStrings().commonSetUp.approval,$=()=>{d(!0)},W={onOkClick:()=>{d(!1),b?.(m)},onCancelClick:()=>{d(!1)}};return o.jsxs(Q,{windowSize:a,isLastSection:f,"data-testid":S("approval-rule-section",m),children:[o.jsxs(X,{windowSize:a,children:[o.jsxs(ne,{children:[o.jsxs(I,{windowSize:a,children:[n.from," ",z("0,0",c.min)]}),o.jsxs(ee,{children:[o.jsx(k,{}),o.jsx(oe,{}),o.jsx(k,{})]}),c.max==null?o.jsx(ce,{}):o.jsx(I,{windowSize:a,children:z("0,0",{...c.min,amount:c.max.amount})})]}),o.jsxs(ae,{className:"icons",children:[e?o.jsx(pe,{onClick:$}):null,o.jsx(de,{onClick:()=>{v(m)},"data-testid":S("edit-approval-rule",m)})]})]}),o.jsx(te,{windowSize:a,children:o.jsx(ie,{isSingleStep:w.length===1,windowSize:a,children:w.map((h,N)=>o.jsxs(re,{isSingleStep:w.length===1,className:"stepperItem",windowSize:a,children:[h.action==="require_approval"?o.jsx(le,{children:n.requireText}):o.jsx(se,{children:n.notifyText}),h.nonUserActors.filter(p=>p.subType!=null).map((p,D)=>o.jsxs(R,{children:[o.jsx(T,{children:p.subType!=null?n.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},`${p.subType}_${D}`)),h.actors.map(p=>o.jsxs(R,{children:[o.jsxs(T,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(C,{className:"operator",children:h.operator}):null]},p.userId))]},N))})}),g?o.jsx(F,{titleComponent:o.jsx(U,{children:n.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(G,{children:n.deleteApprovalRuleDesc}),primaryButtonText:n.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:n.cancelBtnText,action:W}):null]})},Q=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as At,a9 as Mt,q as Rt,c as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as Nt,gt as Lt,gu as Ot,j as t,cD as ke,cE as Ae,cF as Me,aM as y,bF as Re,bs as _t,dN as Wt,gv as Et,gG as Pe,o as a,gw as Be,fu as b,fw as w,gz as x,aN as Ne,ft as Le,C as F,gB as Oe,aQ as Ft,ap as Kt,gC as Ut,gD as ae,bB as Vt,gE as Gt,A as Yt,O as Ht,H as qt,am as et,b8 as tt,h as K,an as Jt,c7 as Qt,ai as Xt,gV as Zt,gR as ei,u as c,cw as ti,d8 as ii}from"./index-JJMBnBNB.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ai}from"./liveblocks-8ht9CoL5.js";import ri from"./InvoiceUploadSection-DjnuyOSw-BzB_1eSD.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-DmZoR5fC-Cxq55CaJ.js";import"./uploadReceipts-CQ7whQyJ-Bg8PayZa.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},Se=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),je()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Si,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(ji,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
1
+ import{ax as At,a9 as Mt,q as Rt,c as Pt,cr as Bt,y as m,F as Ze,l as ie,gr as Nt,gt as Lt,gu as Ot,j as t,cD as ke,cE as Ae,cF as Me,aM as y,bF as Re,bs as _t,dN as Wt,gv as Et,gG as Pe,o as a,gw as Be,fu as b,fw as w,gz as x,aN as Ne,ft as Le,C as F,gB as Oe,aQ as Ft,ap as Kt,gC as Ut,gD as ae,bB as Vt,gE as Gt,A as Yt,O as Ht,H as qt,am as et,b8 as tt,h as K,an as Jt,c7 as Qt,ai as Xt,gV as Zt,gR as ei,u as c,cw as ti,d8 as ii}from"./index-Ci6w3djJ.js";import{b as p,n as r}from"./vendor-Bs1fkIUX.js";import{_ as ai}from"./liveblocks-8ht9CoL5.js";import ri from"./InvoiceUploadSection-D-8BRSZh-C_cyOMSQ.js";import{r as oi,h as f,u as ni}from"./types-DyvtCprH-BcZYcgaq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";import"./AttachmentView-D7RHXhJ5-BAAcjA-7.js";import"./uploadReceipts-CQ7whQyJ-CcIwDZ8Y.js";const l={labelWidth:new m(120,160,160),largeLabelWidth:new m(150,235,235),rightMargin:new m(c[3],c[8]),leftMargin:new m(c[3],c[6]),invoiceRightMargin:new m(c[3],c[6]),invoiceLeftMargin:new m(c[3],c[8]),topMargin:new m(c[3],0),bottomMargin:new m(c[4],27),activityBottomMargin:new m(96,0),totalBottomMargin:new m(c[5],c[3]),formBottomMargin:new m(c[5],c[3]),navBarHeight:new m(44,62),closeMarginTop:new m(0,0),rightSectionWidth:new m(100,58),leftSectionWidth:new m(100,42),footerButtonWidth:new m(120,165),right:new m(c[3],c[0]),actionsContainerRight:new m(c[0],c[6]),otherActionsContainerBottom:new m(58,44),duplicateBannerWrapperMarginTop:new m(c[5],c[3]),duplicateBannerWrapperMarginRight:new m(c[3],c[8]),duplicateBannerWrapperMarginBottom:new m(c[5],c[3]),duplicateBannerWrapperMarginLeft:new m(c[3],c[6])},li={formTitle:new Ht("h6Regular","h5Regular")},ia=({remiDetails:e,uploadInvoiceEndPoint:U,authParams:it,isAdmin:oe,signedInUser:ne,showApproveRejectBtns:le,isRealTimeApprovalEnabled:se,isReimbursementCommentingEnabled:u,isShowDeletedReimbursementEnabled:de,isSignedInUserReimbursementCreator:at,updateEditRealTimeApproverClicked:ce,onSaveRealTimeApprovals:me,redirectToReimbursementListScreen:V,redirectToEditableReimbursementScreen:rt,onDuplicateLineClick:ot,approveOrRejectRemi:pe,deleteReimbursement:nt,cancelAndDeleteReport:ue,handleZeniLogoClick:lt,onAddNewRule:he})=>{const d=At(),st=Mt().analytics,o=Rt(),ye=Pt(),[dt,z]=p.useState(!1),[G,Y]=p.useState(!1),[ct,H]=p.useState(!1),[q,J]=p.useState("approved"),P=p.useRef(null),[S,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[C,mt]=p.useState(null),[pt,B]=p.useState(!1),h=`dashboard_${d.currentTenant?.companyId}`,ge=p.useRef({}),be=s=>{const n=ge.current[s];n!=null&&setTimeout(()=>ni(n,P.current),100)};p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed")&&V()},[e,V]),p.useEffect(()=>{const s=window.location.hash;if(s&&s.startsWith("#L")){const n=s.substring(1);be(n)}},[]);const ut=()=>{V()};Bt({componentName:"reimbursement.details"});const ht={onOkClick:()=>{z(!1),S.primaryButtonText===i.buttons.delete?nt?.():S.title===i.cancelReportTitle?ue?.():S.title===i.cancelAndDeleteReportTitle&&ue?.(!0)},onCancelClick:()=>{z(!1)}},I=l.labelWidth.value(o),k=l.largeLabelWidth.value(o),we=Ze.getLocalizedStrings(),{common:{texts:{comments:yt},strings:{empty:xe}},collaboration:{threads:{placeholder:{addANewComment:gt,replyAComment:bt},tooltip:{resolveComment:wt,unResolveComment:xt}}},dateFormat:fe}=we,{reimbursementDetail:i,bulkActions:N}=we.spendManagement.reimbursement,X=e.remiDetails?.reportTitle,j=e.remiDetails?.lines??[],L=e.remiDetails?.reimbursementInfo.stage,O=e.remiDetails?.reimbursementInfo.billStatus,_=e.remiDetails?.reimbursementInfo.billPaymentStatus,$e=L?.code==="paid",ft=$e?L:O?.code=="approved"&&_?.code?_:O,$=si(e.remiDetails),A=O?.code=="approved"&&_?.code?_:O,W=e.remiDetails?.isDeleted??!1,ve=e.remiDetails?.amount,Te=e.remiDetails?.amount.amount??0,je=()=>{Q({title:e.remiDetails?.reimbursementInfo.stage.code==="draft"?i.deleteDraftTitle:i.deleteReportTitle,description:i.deleteAlertDescription,primaryButtonText:i.buttons.delete,secondaryButtonText:i.buttons.cancel}),z(!0)},$t=()=>{Q({title:i.cancelReportTitle,description:i.cancelAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},vt=()=>{Q({title:i.cancelAndDeleteReportTitle,description:i.cancelAndDeleteAlertDescription,primaryButtonText:i.buttons.yes,secondaryButtonText:i.buttons.no}),z(!0)},Se=()=>{rt()},Tt={onOkClick:s=>{H(!1),pe({reimbursementId:e.remiDetails?.id??"",type:"rejected",description:s})},onCancelClick:()=>{H(!1)}},jt=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?Se():(J("approved"),pe({reimbursementId:e.remiDetails?.id??"",type:"approved"}))},St=()=>{e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?(J("delete"),je()):(J("rejected"),H(!0))},It=e.remiDetails?.reimbursementInfo.paymentDate!=null?ie.zeniDate(ie.getNextNthWorkingDay(e.remiDetails.reimbursementInfo.paymentDate.toDate(),[0,6],e.achSameDayMaxDays).toDateString()):void 0,Z=e.remiDetails?.reimbursementInfo.expectedDepositDate??It,Ie=e.remiDetails?.reimbursementInfo.billStatus.code==="pending_approval"&&at,Dt=e.remiDetails?.reimbursementInfo.billStatus.code!=="rejected"&&e.remiDetails?.reimbursementInfo.billPaymentStatus.code!=="paid",ee=ft?.code,Ct=oi(e.duplicateLineByLineId),De=e.duplicateReimbursementStatus.fetchState==="Completed"&&Ct>0,{requestToOpenThread:te,setRequestToOpenThread:Ce,setOpenThread:E}=p.useContext(Nt),{threads:M,isLoading:D}=Lt({application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id,isGlobalComment:!1},"both",!1),zt=p.useMemo(()=>M.filter(s=>s.resolved===!1&&!s.id.includes(Ot)),[M]).length,kt=p.useCallback((s,n)=>{E(n),B(!1)},[E,B]);p.useEffect(()=>{te?.threadId!=null&&M.length>0&&!D&&(E(te.threadId),Ce(null))},[te,M,D,E,Ce]);const g={application:"dashboard",companyId:d.currentTenant?.companyId,tab:"reimbursement",entityId:e.remiDetails?.id},R=ie.isBulkProcessing(e.remiDetails?.bulkProcessingDetail?.type);return t.jsxs(Bi,{windowSize:o,ref:P,children:[dt?t.jsx(ke,{titleComponent:t.jsx(Me,{children:S.title}),descriptionComponent:t.jsx(Ae,{children:S.description}),primaryButtonText:S.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:S.secondaryButtonText,action:ht}):null,ct?t.jsx(ke,{titleComponent:t.jsx(Me,{children:`${i.rejectRemiTitlePrefix} ${e.remiDetails?.reportTitle??""} by ${e.createdBy?.firstName??""} ${e.createdBy?.lastName??""}`}),descriptionComponent:t.jsx(Ae,{children:i.rejectRemiDescription}),primaryButtonText:i.buttons.send,secondaryButtonText:i.buttons.cancel,action:Tt,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:i.rejectRejectReasonPlaceholder}):null,t.jsxs(Ci,{windowSize:o,"data-testid":y("reimbursement-detail-page-nav-bar-container"),children:[o!=="small"?t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-left"),style:{width:"42%"},title:"",leftSideComponent:t.jsx(zi,{onClick:()=>lt?.(),"data-testid":y("remi-detail-page-nav-bar-zeni-logo")}),enableTitleOnScroll:!1,backgroundColor:ye.colors.background,keepBackgroundOnScroll:!0,scrollableContent:P,source:"ReimbursementDetailPage"}):null,o!=="small"?t.jsx(Si,{}):null,t.jsx(Re,{"data-testid":y("reimbursement-detail-page-nav-bar-right"),title:X??xe,leftSideComponent:t.jsx(t.Fragment,{}),style:{width:o!=="small"?"58%":"100%"},rightSideComponent:t.jsxs(Ai,{children:[u?t.jsxs(Mi,{isDisabled:D,onClick:D?()=>null:s=>{s.preventDefault(),s.stopPropagation(),mt({roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityType:"reimbursement.details",entityId:e.remiDetails?.id??""}),B(!0),st.trackCommentActivity("reimbursement","clicked",d.currentTenant?.companyName??"",d.controllersList.controllers.map(n=>Wt(n)),void 0,void 0,"page icon")},"data-testid":y("remi-comments-section"),children:[t.jsx(_t,{count:D?void 0:zt,isLoading:D,style:{left:"12px"}}),t.jsx(Ri,{})]}):null,t.jsx(Pi,{size:o,onClick:()=>ut(),"data-testid":y("remi-detail-page-close"),children:t.jsx(ki,{})})]}),scrollableContent:P,enableTitleOnScroll:o!=="small",scrollThreshold:64,source:"ReimbursementDetailPage"})]}),t.jsxs(Fi,{children:[o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(He,{windowSize:o,children:t.jsx(qe,{windowsSize:o,children:X})}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`${i.by} ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null,A?.code!=null?o==="small"?t.jsxs(t.Fragment,{children:[t.jsx(Et,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W}),R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp5} ${a.sp3}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null]}):null,j.map((s,n)=>{const v=e.duplicateLineByLineId[s.lineId];return t.jsxs(Xe,{windowSize:o,children:[t.jsx(_i,{windowSize:o,children:t.jsx(Wi,{bottomSeperator:j.length!==1,windowSize:o,children:t.jsx(ri,{showAutofill:!1,uploadInvoiceEndPoint:U,authParams:it,entityId:e.remiDetails?.id,file:s.file,showTitlebar:!0,showTitlebarIcon:!1,pdfTitle:j.length>1?`#${n+1} Receipt`:"Receipt",style:{width:"auto",padding:0,height:j.length-1===n||n===0?760:451},onInvoiceUpload:()=>{console.log("onInvoiceUpload")},noAttachmentText:i.noReceiptAttached,type:"reimbursement"})})}),t.jsxs(Oi,{windowSize:o,children:[n===0&&o!=="small"?t.jsxs(t.Fragment,{children:[t.jsxs(He,{windowSize:o,children:[t.jsx(qe,{windowsSize:o,children:X}),de&&$!=null?t.jsx(Ve,{color:$.color,bgColor:$.bgColor,borderColor:$.borderColor,children:$.value}):null]}),e.createdBy?.userId!=null?t.jsx(Ue,{windowSize:o,children:`By ${e.createdBy.firstName} ${e.createdBy.lastName}`}):null,A?.code!=null?t.jsx(Ye,{windowSize:o,children:t.jsx(Be,{progressSectionObj:A,createDate:e.remiDetails?.createTime,paymentDate:Z,scheduleDate:e.remiDetails?.reimbursementInfo.paymentDate,approvedDate:e.latestApprovedDate,isFrozen:W})}):null,R?t.jsx(Pe,{variant:"warning",style:{margin:`${a.sp3} ${a.sp8} ${a.sp3} ${a.sp6}`},title:N.duplicateWarning.title,description:N.duplicateWarning.description}):De?t.jsxs(_e,{size:o,children:[t.jsx(Ke,{}),t.jsxs(Ee,{children:[t.jsx(We,{children:i.thereSeems}),t.jsx(Fe,{children:i.pleaseFind})]})]}):null]}):null,t.jsxs(hi,{windowSize:o,ref:ze=>{ze!=null&&(ge.current[`L${s.lineId}`]=ze)},children:[o!=="small"?t.jsx(ui,{children:t.jsx(yi,{children:j.length>1?`#${n+1} ${i.reimbursement}`:i.reimbursement})}):null,t.jsxs(gi,{windowSize:o,children:[v?.duplicateLineId!=null?t.jsxs(mi,{children:[i.thisExpenseReview," ",t.jsx(pi,{onClick:()=>{if(v.isDuplicateWithinTransaction&&v.duplicateLineId!=null)return be(`L${v.duplicateLineId}`);v.duplicateTransactionId!=null&&v.duplicateLineId!=null&&ot(v.duplicateTransactionId,v.duplicateLineId)},"data-testid":y("remi-view-duplicate-expense"),children:i.viewOriginalExpense})]}):null,t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:s.type===i.mileageKey?`${n}.mileage.reimbursementType`:`${n}.out_of_pocket.reimbursementType`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("reimbursementType",n,s.type===i.mileageKey?"mileage":"out_of_pocket")}`},style:{borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"},children:t.jsx(x,{label:{label:i.reimbursementType,width:k},text:s.type===i.mileageKey?i.mileage:i.outOfPocket,style:{width:"auto",borderRadius:v?.duplicateLineId==null?`${a.sp2} ${a.sp2} 0 0`:"0 0 0 0"}})}),t.jsx(T,{}),s.type===i.mileageKey?t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"mileage")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.distanceInMiles`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("distanceInMiles",n,"mileage")}`},children:t.jsx(x,{label:{label:i.distanceInMiles,width:k},text:s.distanceMileage.value.toString()??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"mileage")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"mileage")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.mileage.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"mileage")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]}):t.jsxs(t.Fragment,{children:[t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.merchant`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("merchant",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.merchant,width:k},text:s.merchant?.name??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.transactionDate`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("transactionDate",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.transactionDate,width:k},text:s.transactionDate?.format(fe.visual.MMMDCommaYYYYformat)??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.amount`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("amount",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.amount,width:I},text:s.homeCurrencyConversions!=null?Ne("0,0[.]00",s.homeCurrencyConversions):i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.memo`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("memo",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.memo,width:I},text:s.description??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.account`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("account",n,"out_of_pocket")}`},children:t.jsx(x,{label:{label:i.category,width:I},text:s.lineDetail.account?.accountName??i.emptyValue,style:{width:"auto"}})}),t.jsx(T,{}),t.jsx(b,{isThreadAllowed:u,dashboardTabKey:w({type:"details",key:`${n}.out_of_pocket.class`}),roomId:h,companyId:d.currentTenant?.companyId??"",companyName:d.currentTenant?.companyName??"",entityId:e.remiDetails?.id??"",dashboardOptionType:"reimbursement",filterMetaData:{...g,entityType:`reimbursement.details.${f("class",n,"out_of_pocket")}`},style:{borderRadius:`0 0 ${a.sp2} ${a.sp2}`},children:t.jsx(x,{label:{label:i.department,width:I},text:s.lineDetail.class?.className??i.emptyValue,style:{width:"auto",borderRadius:`0 0 ${a.sp2} ${a.sp2}`}})})]})]})]}),j.length!==1&&j.length===n+1&&t.jsxs(Li,{windowSize:o,children:[t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]}),e.remiDetails&&t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,allAccountingClass:e.allAccountingClasses,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me},historicActivities:e.remiHistory.activities})]})]})]},s.lineId)}),j.length===1&&t.jsxs(Xe,{windowSize:o,children:[t.jsx(Ge,{}),t.jsxs(di,{windowSize:o,children:[t.jsx(Ni,{windowSize:o,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(Qe,{children:i.total}),t.jsx(Le,{amount:ve,integerStyles:F.h6Regular.cssObject,decimalStyles:F.standardRegular.cssObject})]})}),e.remiDetails&&t.jsx(ci,{windowSize:o,children:t.jsx(Oe,{amount:Te,activities:e.remiActivities,stage:L?.code??"draft",onAddNewRule:he,entity:"reimbursement",historicActivities:e.remiHistory.activities,realTimeApproval:{allApprovers:e.filteredApprovers,allAccountingClass:e.allAccountingClasses,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode??!1,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,attributeSubTypeToUserIdMapping:e.attributeSubTypeToUserIdMapping,isAdmin:oe,signedInUserId:ne?.userId,showRealTimeApproval:se,entityApprovalId:e.remiActivities[0]?.entityApprovalId??e.remiDetails.entityApprovalId,updateEditMode:ce,onSaveRealTimeApprovals:me}})})]})]}),t.jsx(Ei,{})]}),$e||W===!0?null:t.jsxs(Di,{children:[o!=="small"?t.jsx(Ge,{}):null,t.jsx(wi,{windowSize:o,"data-testid":y("remi-detail-page-footer"),onClick:s=>{s.stopPropagation(),G===!0&&Y(!1)},children:t.jsx(Ft,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,showCancel:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"||le,cancelBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.delete:i.buttons.deleteReport:o==="small"?i.buttons.reject:i.buttons.rejectReport,isLoading:q==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress"||q==="delete"&&e.deleteStatus.fetchState==="In-Progress",onClick:St,style:{width:l.footerButtonWidth.value(o)},reverseSpinnerColor:!1},primaryBtn:{label:e.remiDetails?.reimbursementInfo.billStatus.code==="rejected"?o==="small"?i.buttons.edit:i.buttons.editAndResubmit:o==="small"?i.buttons.approve:i.buttons.approveReport,isLoading:q==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:jt,style:{width:l.footerButtonWidth.value(o)},isDisabled:e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0},rightSideComponent:t.jsx(bi,{children:t.jsxs(Ii,{windowSize:o,children:[!R&&G?t.jsx(Kt,{onClickAway:()=>Y(!1),children:t.jsxs(ji,{windowSize:o,children:[ee!=="processing"?t.jsx(re,{onClick:je,"data-testid":y("remi-delete-action"),children:i.buttons.deleteReport}):null,ee==="processing"?t.jsx(re,{onClick:$t,"data-testid":y("remi-cancel-action"),children:i.buttons.cancel}):null,ee==="processing"?t.jsx(re,{onClick:vt,"data-testid":y("remi-cancel-and-delete-action"),children:i.buttons.cancelAndDelete}):null]})}):null,t.jsxs(Ti,{windowSize:o,children:[!R&&Ie===!0?t.jsx(vi,{onClick:Se,"data-testid":y("remi-edit-button"),children:t.jsx($i,{})}):null,!R&&Dt===!0?t.jsx(fi,{windowSize:o,showEditIcon:Ie,children:t.jsx(xi,{onClick:()=>Y(!G),"data-testid":y("remi-more-actions-button")})}):null]})]})}),style:{minHeight:62}})})]}),u?t.jsx(ai,{id:h,children:t.jsx(Ut,{isDrawerOpen:pt,allowComposer:!0,drawerTitle:yt,threads:M,autoExpand:!0,autoFocus:!1,filter:{application:"dashboard",companyId:C?.companyId??xe,isGlobalComment:!1,tab:"reimbursement"},isLoading:D,threadMetadata:C?{companyName:C.companyName,companyId:C.companyId,entityId:C.entityId,entityType:C.entityType,isGlobalComment:!1,application:"dashboard",tab:"reimbursement",url:window.location.href}:void 0,textOverrides:{composerPlaceholder:gt,replyComposerPlaceholder:bt,threadResolve:wt,threadUnResolve:xt},onThreadClick:(s,n)=>kt(s,n),onCloseAllThreadsDrawer:()=>B(!1),drawerSectionStyle:{width:"400px",backgroundColor:ye.colors.background}})}):null]})},si=e=>{const U=Ze.getLocalizedStrings().spendManagement.billPay.billsByTabs;if(e?.isDeleted===!0)return{value:U.tabsById.deleted,color:ae.deleted.color,bgColor:ae.deleted.bgColor,borderColor:ae.deleted.borderColor,code:"deleted"}},di=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${e=>l.rightSectionWidth.valuePercentage(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as le,c as $,q as k,aP as ae,l as A,F as D,j as e,aM as a,bF as me,a as u,af as m,o as t,ar as ce,L as de,aS as E,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-JJMBnBNB.js";import{b as j,n as s}from"./vendor-Bs1fkIUX.js";import{x as je}from"./MeetingCalenderPopup-qui2SnEi-D13HOxSn.js";import{f as be}from"./VideoPopup-BmSbL0tQ-DjmLvupK.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-Bh9pi5bb-TiF1CvxS.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=s.div`
1
+ import{ax as le,c as $,q as k,aP as ae,l as A,F as D,j as e,aM as a,bF as me,a as u,af as m,o as t,ar as ce,L as de,aS as E,an as pe,y as xe,h as z,cR as he,aT as ue,b9 as ge,u as we}from"./index-Ci6w3djJ.js";import{b as j,n as s}from"./vendor-Bs1fkIUX.js";import{x as je}from"./MeetingCalenderPopup-YzTE9xU9-DZIf1_Kg.js";import{f as be}from"./VideoPopup-DJk2FZWR-CM_0HjD0.js";import{M as v}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-DGYFB2YS-DUfF6yFC.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-light.png",q="https://storage.googleapis.com/zeni-apis.appspot.com/images/reimbursement-promo-dark.png",fe={midContainerMarginBottom:new xe(we[5],44)},ye=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{c as Ee,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,m as Xe,ad as Ye,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,a as rt,aM as $e,O as Pe,bX as st,ai as ct,bx as dt}from"./index-JJMBnBNB.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-JzcF30dH-DLUx9CMf.js";import{K as je}from"./SetUpDefaultSection-BHYOBJ7g-ugz5Fdi4.js";import{f as mt}from"./SpendMgmtSetupAccountSection-DiiBySox-DEuCmldp.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-Pjy5PzIW-CGkZI-1j.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-qui2SnEi-D13HOxSn.js";import"./ChargeCardUtils-BlLiJhdJ-DMqoMM0H.js";import"./CreditCardPaymentPlgSection-zy5jp8oZ-DwH8e2C-.js";import"./ChaseOverlay-DY7W-VhR-vZ_gPYHY.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Te(),D=Ee(),{formState:{errors:Z},trigger:X}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:R,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[S,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Y,ne=S===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
1
+ import{c as Ee,q as Te,aP as N,aa as qe,cS as Ge,F as Ve,l as Je,aU as be,j as t,fn as Ke,h as J,y as r,bF as Ze,m as Xe,ad as Ye,e6 as Qe,bA as et,dY as tt,aQ as it,o as a,u as n,cw as nt,d3 as ot,db as at,fH as ve,fI as ke,gq as lt,a as rt,aM as $e,O as Pe,bX as st,ai as ct,bx as dt}from"./index-Ci6w3djJ.js";import{b as o,n as i}from"./vendor-Bs1fkIUX.js";import{D as ut}from"./HelpButton-BaJhgb0U-D2odikp_.js";import{K as je}from"./SetUpDefaultSection-DAYmX0ZV-wM42lVKW.js";import{f as mt}from"./SpendMgmtSetupAccountSection-S-3M9Tex-DxNcuUHJ.js";import{g as pt}from"./UploadAdditionalDocumentOverlay-jDJV9q65-D9UMm7kL.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-YzTE9xU9-DZIf1_Kg.js";import"./ChargeCardUtils-CCCxZqkT-61TtCpjk.js";import"./CreditCardPaymentPlgSection-DthqKiKn-CaFdyplw.js";import"./ChaseOverlay-Nom4V5v9-NN79_kIT.js";const gt=e=>o.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},o.createElement("path",{d:"M12.7113 3H2.89261C2.39963 3 2 3.39963 2 3.89261V20.8522C2 21.3451 2.39963 21.7448 2.89261 21.7448H12.7113C13.2043 21.7448 13.6039 21.3451 13.6039 20.8522V3.89261C13.6039 3.39963 13.2043 3 12.7113 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M10.4798 13.7113H9.58719C9.3407 13.7113 9.14088 13.9111 9.14088 14.1576V16.8354C9.14088 17.0819 9.3407 17.2817 9.58719 17.2817H10.4798C10.7263 17.2817 10.9261 17.0819 10.9261 16.8354V14.1576C10.9261 13.9111 10.7263 13.7113 10.4798 13.7113Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M21.6374 16.1133C21.6374 16.1961 21.6143 16.2773 21.5708 16.3477C21.5273 16.4182 21.4651 16.4752 21.391 16.5123L19.8522 17.2817V14.6039H21.1911C21.3095 14.6039 21.423 14.6509 21.5067 14.7346C21.5904 14.8183 21.6374 14.9318 21.6374 15.0502V16.1133Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 14.6039V13.265C19.8522 12.5268 22.53 10.1409 22.53 10.1409",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M19.8522 17.2817V19.9596C19.8522 20.433 19.6641 20.8871 19.3293 21.2219C18.9945 21.5567 18.5404 21.7448 18.067 21.7448C17.5935 21.7448 17.1394 21.5567 16.8046 21.2219C16.4698 20.8871 16.2817 20.433 16.2817 19.9596V7.90935C16.2817 7.55424 16.1407 7.21369 15.8896 6.96259C15.6385 6.7115 15.2979 6.57043 14.9428 6.57043H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M2 10.1409H13.6039",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M11.3724 4.78528H4.23154C3.98505 4.78528 3.78523 4.9851 3.78523 5.23158V7.90941C3.78523 8.15589 3.98505 8.35571 4.23154 8.35571H11.3724C11.6189 8.35571 11.8187 8.15589 11.8187 7.90941V5.23158C11.8187 4.9851 11.6189 4.78528 11.3724 4.78528Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("path",{d:"M9.14088 19.0669H10.9261",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),h={sectionWidth:new r(343,580,726),iconContainerMaxWidthHeight:new r(n[6],n[7]),iconContainerMarginRight:new r(12,n[3]),infoLabelPaddingLeft:new r(n[0],n[3]),iconPadding:new r(10,12),iconWidthHeight:new r(20,n[4]),rowGap:new r(n[2],n[3]),containerPadding:new r(n[3],n[4])},ge={title:new Pe("standardSemiBold","largeSemiBold"),infoLabel:new Pe("extraSmallRegular","smallRegular")};function ht({companyMileageConfigInfo:e,mileageDetails:y,analytics:j,style:A,sectionId:$,isActive:d=!0,isDisabled:s,onSaveMileageClick:K}){const l=Te(),D=Ee(),{formState:{errors:Z},trigger:X}=ot(),E=ft($,"mileageAmountInDenomination"),f=at(Z,E),{localData:c,updateStatus:R,mileageStatus:C}=y,U=e?.denominationConversions.amount==null||e.denominationConversions.amount!==c?.mileageAmountInDenomination,{commonSetUp:Y,spendManagement:Q}=Ve.getLocalizedStrings(),{reimbursement:ee}=Q,[S,T]=o.useState(U),[te,H]=o.useState(!1);o.useEffect(()=>{f||X(E)},[]),o.useEffect(()=>{e?.denominationConversions.amount!=null&&e.denominationConversions.amount===c?.mileageAmountInDenomination&&T(!1)},[e?.denominationConversions.amount]),o.useEffect(()=>{S||H(S)},[S]);const{reimbursementSetup:x}=ee,{setUp:ie}=Y,ne=S===!1||R.fetchState==="In-Progress"?"readonly":s,oe=c&&c?.denominationSymbol?`${c?.denominationSymbol} `:"",ae=c&&c?.mileageUnit?c?.mileageUnit:"";return t.jsxs(xt,{windowSize:l,style:A,isActive:d&&s==null,children:[t.jsxs(Pt,{windowSize:l,children:[x.mileageHeader,d===!1?t.jsx(Dt,{children:ie.comingSoon}):null]}),t.jsxs(kt,{windowSize:l,children:[t.jsx(vt,{windowSize:l,isDarkMode:D.mode==="dark",children:t.jsx(gt,{width:h.iconWidthHeight.valuePx(l),height:h.iconWidthHeight.valuePx(l)})}),t.jsxs(wt,{children:[t.jsxs($t,{children:[t.jsxs(jt,{children:[t.jsxs(At,{children:[t.jsx(Ct,{windowSize:l,children:e?.denominationConversions.amount==null?x.mileageAddTitle:x.mileageEditTitle}),t.jsx(St,{children:x.mileageSubTitle})]}),C!=null&&e?.denominationConversions.amount!=null&&l==="small"?t.jsx(ve,{style:{width:"max-content",padding:a.sp0,marginTop:a.sp2},tagTitle:C.name,textColor:ke(C.code)}):null]}),t.jsxs(yt,{children:[C!=null&&e?.denominationConversions.amount!=null&&l!=="small"?t.jsx(ve,{style:{width:"max-content"},tagTitle:C.name,textColor:ke(C.code)}):null,t.jsx(bt,{})]})]}),t.jsxs(Et,{children:[t.jsxs(Tt,{children:[t.jsx(lt,{style:{height:a.sp6,textAlign:"left"},inputStyle:{textAlign:"left",paddingRight:a.sp10,backgroundColor:f?void 0:D.colors.background,color:S||f?void 0:D.colors.grey1},isFieldError:f,type:"number",autoFocus:!1,focus:te,name:E,defaultValue:c?.mileageAmountInDenomination,returnValueType:"floatValue",allowEmptyFormatting:!0,prefix:oe,suffix:` ${x.perText} ${ae}`,decimalScale:1,allowNegative:!1,isNumericString:!1,registerOptions:{min:1,validate:V=>V!=null||s!=null,required:s==null},isDisabled:ne}),t.jsx(It,{children:S?t.jsx(rt,{label:x.save,"data-testid":$e("save-mileage"),onClick:()=>{c?.mileageAmountInDenomination!=null&&U&&!f&&K?.(c.mileageAmountInDenomination)},style:{outline:"none"},size:"small",disabled:s!=null,variant:"light_transparent",reverseSpinnerColor:!1,loading:R.fetchState==="In-Progress"}):t.jsx(Lt,{isDisabled:s,"data-testid":$e("edit-mileage"),onClick:V=>{V.stopPropagation(),T(!0),H(!0),j.trackReimbursementMileageRateEdit()}})})]}),c?.description!=null?t.jsx(Vt,{size:l,hasError:f,children:f&&e?.defaultMileageUnitAmount!=null?x.yourMileage.replace("__defaultMileageUnitAmount__",(e.defaultMileageUnitAmount*100).toString()):c.description}):null]})]})]})]})}const ft=(e,y)=>`${e}.${y}`,xt=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  pointer-events: ${e=>e.isLoading===!0||e.isActive===!1?"none":"initial"};
@@ -1 +1 @@
1
- import{F as M,j as b,cD as V,cE as W,cF as X,k0 as q,aX as z,l as J}from"./index-JJMBnBNB.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as K}from"./ReviewOverlay-BKS6IxUd-B4wfg7Gq.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,G]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const F=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,E=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,J.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:U}=Z(p,S,F,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},O=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:E,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(X,{children:y.title}),descriptionComponent:b.jsx(W,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:O(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
1
+ import{F as M,j as b,cD as V,cE as W,cF as X,k0 as q,aX as z,l as J}from"./index-Ci6w3djJ.js";import{b as f}from"./vendor-Bs1fkIUX.js";import{u as K}from"./ReviewOverlay-DejTxf0F-D0BNFHZK.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{reimbursement:j}}=M.getLocalizedStrings(),o=j.bulkActions;let I;const le=({remisReviewView:e,isAdmin:a,analytics:i,onProceedForBulkActionClick:d,onCloseReviewItem:r,onCloseOverlay:s})=>{const{fetchState:p,bulkSubmissionFetchState:c,bulkOperationTypeSelected:t,currentTab:v,currentSubTab:g}=e,h=!1,[w,l]=f.useState(!1),[m,_]=f.useState(P(e,h,a)),[x,R]=f.useState(h),[B,G]=f.useState(0),[y,A]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(B===m.length&&x&&(R(!1),clearInterval(I)),e.fetchState==="Completed"&&_(P(e,!1,a)),()=>{clearInterval(I)}),[m.length,B,x,e.fetchState,h,e,a]);const F=m.length,S=m.filter(u=>u.reviewStatus.code!=="error").length,E=()=>{const{title:u,description:T}=Y(S);A({type:"reject",title:u,description:T,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),i.trackReimbursementBulkSubmit(t,v,g),l(!0)},$={onOkClick:u=>{l(!1);const T=e.remisForReview.map(k=>k.reimbursement);i.trackReimbursementBulkPopupConfirm(t,v,g,J.getRemiListUniqueType(T.map(k=>k?.reimbursementTypesIncluded??[]))),d("reject",u)},onCancelClick:()=>{l(!1)}},{title:L,description:U}=Z(p,S,F,x),C=e.fetchState==="Completed"&&S===0,D=()=>{i.trackReimbursementBulkSubmit(t,v,g),d(t)},O=()=>{let u=n.footer.approve;return C?u=n.texts.close:t==="send_for_approval"&&(u=n.footer.submit),{label:u,isDisabled:p!=="Completed"||t==="reject"&&c==="In-Progress",isLoading:c==="In-Progress"&&(t==="send_for_approval"||t==="approve"),onClick:C?s:D,style:t==="send_for_approval"?{minWidth:"92px"}:{}}},N={label:t==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:t!=="reject"&&c==="In-Progress",isLoading:t==="reject"&&c==="In-Progress",reverseSpinnerColor:!1,onClick:t==="send_for_approval"?s:E,style:t==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[w?b.jsx(V,{titleComponent:b.jsx(X,{children:y.title}),descriptionComponent:b.jsx(W,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:$,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(K,{title:L,description:{content:U,isError:e.fetchState==="Completed"&&S===0},reviewItems:m,onCloseReviewItem:r,onCloseOverlay:s,showFooter:e.fetchState==="Completed"&&!x,footerProps:{primaryButton:O(),cancelButton:N,hideCancel:C}})]})},P=(e,a,i)=>{const d=e.fetchState==="In-Progress";return e.remisForReview.map(r=>{const s=q(i,r.submittedBy);return{id:r.transactionId,leftSideText:{title:r.reimbursement?.reportTitle!=null?r.reimbursement.reportTitle:j.reimbursementDetail.newReimbursementTitle,subTitle:s!=null?`${n.by} ${s?.firstName} ${s?.lastName}`:n.strings.empty},rightSideText:{title:z("0,0.[00]",r.reimbursement?.amount?.amount,r.reimbursement?.amount?.currencySymbol),showThunderIcon:!1,subTitle:r.reviewInfoMessage??""},reviewStatus:{isLoading:d,code:r.reviewStatus??""}}})},Y=e=>{const{this_:a,these:i,report:d,reports:r,payment:s,payments:p}=n.texts;return e>1?{title:o.popUps.reject.title.replace("__report__",o.reports),description:o.popUps.reject.description.replaceAll("<_this_>",i).replaceAll("<_payment_>",p).replaceAll("__report__",r)}:{title:o.popUps.reject.title.replace("__report__",o.report),description:o.popUps.reject.description.replaceAll("<_this_>",a).replaceAll("<_payment_>",s).replaceAll("__report__",d)}},Z=(e,a,i,d)=>{const{has:r,have:s,report:p,reports:c,are:t,is:v,do_:g,does:h}=n.texts,w=a>1,l=i>1;let m="",_="";return e==="Completed"&&!d?(m=o.reviewPage.reportsReviewed.title.replace("__report__",l?j.bulkActions.reports:o.report).replace("<_has_>",l?s:r),a===0?_=o.reviewPage.reportsReviewed.descriptionError.replace("__report__",l?c:p).replace("<_do_>",l?g:h):_=`${a}/${i} ${o.reviewPage.reportsReviewed.description.replace("__report__",i>1?c:p).replace("<_is_>",w?t:v)}`):(m=o.reviewPage.reportsReviewing.title.replace("__report__",l?c:p),_=o.reviewPage.reportsReviewing.description.replace("__report__",l?c:p)),{title:m,description:_}};export{le as default};
@@ -1,4 +1,4 @@
1
- import{c as h,j as r,aL as a,aM as m,b2 as j,F as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-JJMBnBNB.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
1
+ import{c as h,j as r,aL as a,aM as m,b2 as j,F as C,aR as l,bI as x,ai as g,o as c,b3 as f}from"./index-Ci6w3djJ.js";import{n as s,b as d}from"./vendor-Bs1fkIUX.js";function p({backgroundColor:e,foregroundColor:o,animated:t,width:i,height:n}){return r.jsxs(x,{speed:2,width:i,height:n,viewBox:`0 0 ${i} ${n}`,animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"64",y:"0",rx:"4",ry:"4",width:`${i-128}`,height:"21"}),r.jsx("rect",{x:"24",y:"45",rx:"4",ry:"4",width:`${i-48}`,height:"228"})]})}function w({backgroundColor:e,foregroundColor:o,animated:t}){return r.jsxs(x,{speed:2,width:240,height:98,viewBox:"0 0 240 98",animate:t!=!1,backgroundColor:e,foregroundColor:o,children:[r.jsx("rect",{x:"66",y:"0",rx:"4",ry:"4",width:"108",height:"21"}),r.jsx("rect",{x:"44",y:"77",rx:"4",ry:"4",width:"152",height:"21"}),r.jsx("rect",{x:"0",y:"29",rx:"4",ry:"4",width:"240",height:"40"})]})}const u=s(l)`
2
2
  justify-content: flex-start;
3
3
  `;function z({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx(w,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o})})})}function T({dimension:e,animated:o}){const t=h();return r.jsx(a,{dimension:e,children:r.jsx(u,{children:r.jsx("div",{style:{width:"100%",height:"100%"},children:r.jsx(f,{children:({height:i,width:n})=>r.jsx(p,{backgroundColor:t.colors.grey3,foregroundColor:t.colors.grey4,animated:o,width:n,height:i})})})})})}const y=e=>d.createElement("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("rect",{opacity:.2,width:72,height:72,rx:36,fill:"#97C3B9"}),d.createElement("path",{d:"M46.7755 32.5635L43.8368 36.9716L40.4082 33.0533",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M34.5307 44.8163C32.6902 44.8163 30.8909 44.2705 29.3605 43.248C27.8301 42.2254 26.6374 40.772 25.933 39.0715C25.2286 37.3711 25.0443 35.4999 25.4034 33.6947C25.7625 31.8895 26.6488 30.2313 27.9503 28.9298C29.2518 27.6283 30.91 26.742 32.7152 26.3829C34.5204 26.0238 36.3916 26.2081 38.092 26.9125C39.7925 27.6169 41.2459 28.8096 42.2685 30.34C43.291 31.8704 43.8369 33.6697 43.8369 35.5102V36.9737",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),k=s(l)`
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{c as X,q as ie,cr as me,aa as fe,j as o,ap as ge,F as K,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as Q,bI as je,aU as Se,am as Ie,av as Ne}from"./index-JJMBnBNB.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Oe}from"./CollapsableReportTable-BEIzIiuS-DSPsVPW9.js";const W=K.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Fe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=K.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
1
+ import{c as X,q as ie,cr as me,aa as fe,j as o,ap as ge,F as K,cs as ee,ad as xe,y as O,aQ as be,o as n,ct as ye,cu as we,cv as _e,cw as $e,cx as ve,an as ce,cy as Ce,u as p,ai as ke,aC as Q,bI as je,aU as Se,am as Ie,av as Ne}from"./index-Ci6w3djJ.js";import{b as f,w as de,n as d}from"./vendor-Bs1fkIUX.js";import{R as P,I as Oe}from"./CollapsableReportTable-CfzLsUMN-BupSz6gn.js";const W=K.getLocalizedStrings().dateFormat.analytics.YYYYDashMMDashDDFormat,Pe=e=>({this_period:{start_date:e.thisPeriod.startDate.format(W),end_date:e.thisPeriod.endDate.format(W)},number_of_periods:e.numberOfPeriods,order_by:e.orderBy}),Fe=e=>e!=null?{start_date:e.startDate.format(W),end_date:e.endDate.format(W)}:void 0;function De(e){return{locale_id:e.localeId,show_negative_amount_in_parenthesis:e.showNegativeAmountInParenthesis,filter_accounts_with_nil_balances:e.filterAccountsWithNilBalances,filter_account_groups_with_nil_balances:e.filterAccountGroupsWithNilBalances,include_cover_page:e.includeCoverPage,company_name:e.companyName,statement_file_type:e.statementFileType,statements:e.statements,first_month_of_fy:e.firstMonthOfFY,book_close_date:e.bookCloseDate!=null?e.bookCloseDate.format(W):void 0,timeframe:e.timeframe,additional_balances:e.additionalBalances,format:e.format,balances_filter:Pe(e.balancesFilter),account_view_mode:e.accountViewMode,classes_to_filter_out:e.classesToFilterOut,data_available:Fe(e.dataAvailable),is_zeni_coa_used:e.isZeniCOAUsed}}async function no(e,c,a){const t=K.getLocalizedStrings().downloadReport,r=`${e}?query=${encodeURIComponent(JSON.stringify(De(a)))}`;try{const h=await ye({urlEndPoint:r,authParams:c,fileType:a.statementFileType});if(h.ok){const b=we(h.headers,t.defaultFileName),y=await h.arrayBuffer();_e(y,b)}else console.error(`${t.reportErrorMessage} ${h.statusText}`)}catch(h){console.error(`${t.reportErrorMessage} ${JSON.stringify(h)}`)}}const Be=d.div`
2
2
  padding: 0 ${n.sp3} 0 ${n.sp3};
3
3
  border: 1px solid ${e=>e.theme.colors.primary};
4
4
  background: ${e=>e.theme.colors.grey5};