@zeniai/web-app-ui 4.14.35-next → 4.14.35-prod

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 (347) hide show
  1. package/dist/assets/{ACHDetailsPage-B5qIuZya-BIuRDGqE.js → ACHDetailsPage-B5qIuZya-87Wdu3Vn.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BHB45mP--CdiJF-L1.js → AIPerformancePage-BHB45mP--BdIYeahP.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Cd5xYT1g-CsL4ceIj.js → AccountInfoPage-Cd5xYT1g-D763Qyvc.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-CJ7ycVIK-Dnz42YfF.js → AccountInfoPageContent-CJ7ycVIK-CKUMLopI.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-Dox7IuAX-BpZbPOQz.js → AccountLockedInfoModal-Dox7IuAX-uUxMt3Am.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-Bqty08m0-C0vGDzkJ.js → AccountReconDetailsDrawerPage-Bqty08m0-Dizqg_js.js} +1 -1
  7. package/dist/assets/{AccountRow-D1cjRJJD-C8PUWTdF.js → AccountRow-D1cjRJJD-BdE3iF8x.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-Bs3naJHM-DYMmkkcK.js → AccountsPromoCardStack-Bs3naJHM-DhTAmuRe.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DZkBMJfp-fRN288lA.js → AddAddressForCardDrawer-DZkBMJfp-BK7N-00_.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CyRfqVDB-BWSFlvzO.js → AddToWalletPage-CyRfqVDB-CQxgltFN.js} +1 -1
  11. package/dist/assets/{AddressRoutes-C_q-9_62.js → AddressRoutes-Ccs3FPgT.js} +1 -1
  12. package/dist/assets/{AddressScreen-q6X2LJkq.js → AddressScreen-D3wmm55j.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-xBFff3BM-BUoWBW_Y.js → AgingReportsPage-xBFff3BM-DGZQQSO7.js} +1 -1
  14. package/dist/assets/{AiCfoScreen-CjgeQNVJ.js → AiCfoScreen-CpZJ-7Tu.js} +1 -1
  15. package/dist/assets/{AllUserItems-BJf6WPDo-CHVB4i8A.js → AllUserItems-BJf6WPDo-DhoR1vda.js} +1 -1
  16. package/dist/assets/{ApAgingDetailPage-CjBrPyi8-C5AuZu1C.js → ApAgingDetailPage-CjBrPyi8-CoBfxnfG.js} +1 -1
  17. package/dist/assets/{AppBasePage-CqDm-hnV-DqUDfXL_.js → AppBasePage-CqDm-hnV-9XmhwuoJ.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-CVVWj66i-H8Zv8lBB.js → AppDrawerContent-CVVWj66i-BEu4Tzl6.js} +1 -1
  19. package/dist/assets/{ApprovalRulesSettingsPage-Cckd2uVA-DeRWJAYx.js → ApprovalRulesSettingsPage-Cckd2uVA-DBcZwsJh.js} +1 -1
  20. package/dist/assets/{ArAgingChart-CBsqOd-4-CyjYWAFr.js → ArAgingChart-CBsqOd-4-CSu0CsiU.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-i7JObt60-CjUHN5eR.js → ArAgingDetailPage-i7JObt60-BYZy_lYv.js} +1 -1
  22. package/dist/assets/{AttachmentView-CzC4skJ3-DyETG696.js → AttachmentView-CzC4skJ3-DuNGTr_v.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-B6umvmgL-Cv06ZgJU.js → BalancesInsightWithToolTip-B6umvmgL-lU55R1pB.js} +1 -1
  24. package/dist/assets/{BankAccountSection-Di4sF52j-tMmbl1rp.js → BankAccountSection-Di4sF52j-DVHeEsO8.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-Cled-2cR-tg2oPWKo.js → BankAccountWarningSection-Cled-2cR-IDWXJwst.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-Ccnzq7st-CMLccpCd.js → BankConnectionsSettingsPage-Ccnzq7st-DVzjJWv3.js} +1 -1
  27. package/dist/assets/{BillDetailPage-XXOwBfO1-pmj89kEW.js → BillDetailPage-XXOwBfO1-B_qyoshY.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-jn_lL90F.js → BillPayApprovalRoutes-UIWSSsHT.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-DFZ0csaT-CHegouqx.js → BillPayApprovalRuleDetailPage-DFZ0csaT-DG_T6RsJ.js} +1 -1
  30. package/dist/assets/{BillPayApprovalRulesPage-COCypDcS-SP6Ap0C9.js → BillPayApprovalRulesPage-COCypDcS-DX1ILSCP.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-DOE2YIqC-CSl5ivDV.js → BillPayPromoPage-DOE2YIqC-Bq0l3_vz.js} +1 -1
  32. package/dist/assets/{BillPayRoutes-BfiQplNH.js → BillPayRoutes-DD-JwCMW.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-BCJbZDsV-B9fZpm8c.js → BillPaySetUpPage-BCJbZDsV-Bzv1e0px.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-iImtlEmO-DmAWEx2I.js → BillingSettingsPage-iImtlEmO-CvHkOH2a.js} +1 -1
  35. package/dist/assets/{BillsBulkReviewDrawerPage-B11GWM_0-DP9ahFss.js → BillsBulkReviewDrawerPage-B11GWM_0-clKT_yYm.js} +1 -1
  36. package/dist/assets/{BoxItem-Bxa1M4QU-D0J-fial.js → BoxItem-Bxa1M4QU-Du00vi-o.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-DSuJFoW1-C6crvVuN.js → BusinessVerificationPage-DSuJFoW1-BFV8oVxm.js} +1 -1
  38. package/dist/assets/{BusinessVerificationPageScreen-D8j6xARh.js → BusinessVerificationPageScreen-zr101K58.js} +1 -1
  39. package/dist/assets/{BusyIndication-9zDqSKBP-DqhiAN3R.js → BusyIndication-9zDqSKBP-9t4cVWUp.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-_ZZbaz_k-BMn-W8uM.js → CardNumberSubText-_ZZbaz_k-BMJxFwd_.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-DAZXitLt-Cmi7981u.js → CashbackDetailPage-DAZXitLt-Be6S5svg.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-B1VIpASk-DInsIJ6C.js → ChargeCardDetailPage-B1VIpASk-qKsUbWVm.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-BOBepN-x-BzpgnZCy.js → ChargeCardListPage-BOBepN-x-GM578OUP.js} +1 -1
  44. package/dist/assets/{ChargeCardListTable-YznzSsJo-B0GWNZXs.js → ChargeCardListTable-YznzSsJo-CtRcLDn8.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage--jOwsMla-CgdIDpQe.js → ChargeCardPaymentHistoryPage--jOwsMla-BI5A12QH.js} +1 -1
  46. package/dist/assets/{ChargeCardPromoPage-DIfakIOK-CCv86SP9.js → ChargeCardPromoPage-DIfakIOK-9hZS6y39.js} +1 -1
  47. package/dist/assets/{ChargeCardRoutes-BwqGnQLD.js → ChargeCardRoutes-CSoZhr0V.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-0bpVkeJs-BbuEfFpc.js → ChargeCardSetupPage-0bpVkeJs--Y2UM3vS.js} +1 -1
  49. package/dist/assets/{ChargeCardStatementsPage-ChWyQlw6-C9k3sUIQ.js → ChargeCardStatementsPage-ChWyQlw6-Dneiy-kv.js} +1 -1
  50. package/dist/assets/{CheckDepositDrawerPage-BS7hnyZn-y7RoF_w4.js → CheckDepositDrawerPage-BS7hnyZn-Bd0AMQYn.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-DNfFkAts-CRt1YpUw.js → CollapsableReportTable-DNfFkAts-CUxrmyNG.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-CrOIN4IW-C0LHfmel.js → CompanyOfficerDetailsSection-CrOIN4IW-BY_HZ_Iv.js} +1 -1
  53. package/dist/assets/{CompanyPassportCard-CkzYFTrp-B9eaudVD.js → CompanyPassportCard-CkzYFTrp-C_UcFpRm.js} +1 -1
  54. package/dist/assets/{CompanyPassportPage-FE6yli6h-BbMnwSzZ.js → CompanyPassportPage-FE6yli6h-Dxl1bcoN.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-BlIC8nGb.js → CompanyPassportScreen-DBr6vmxP.js} +1 -1
  56. package/dist/assets/{CompleteProfile-Cb8i1XgZ-Cq1OcO0w.js → CompleteProfile-Cb8i1XgZ-D9bq4Uae.js} +1 -1
  57. package/dist/assets/{ConfettiBurst-BZCXEGYA-DIt5MHuh.js → ConfettiBurst-BZCXEGYA-DbOv_sxh.js} +1 -1
  58. package/dist/assets/{ConnectionAuthScreen-DqTCtHql.js → ConnectionAuthScreen-DZd3VxZY.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-CmmW5dI5.js → ConstrainedInnerElement-CgdnMeoA-CbPq896u.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CzpSgxbO-CwPOTP7C.js → CreateOrEditVendorPage-CzpSgxbO-BOwYtqVs.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-c_q0MsSO-BoH_dAVB.js → CreditCardPaymentDrawerPage-c_q0MsSO-BgTQ080r.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-BAh7SHrG-DHtvgLMm.js → CurrencySelectField-BAh7SHrG-DdvYnDaV.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-f3Aa6E5r-BsfYDK19.js → CustomerOnboardingActivationPage-f3Aa6E5r-BXOhuc8q.js} +1 -1
  64. package/dist/assets/CustomerOnboardingAuthScreen-B1bd9dsj.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-2qU_yNXn.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DYuiWn8s-DY3UuBbK.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-BFb9Fi6q.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-Bh_F0-oC-LVeoEjZN.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-DLQX_3JZ.js} +1 -1
  68. package/dist/assets/{CustomerOnboardingPage-B9hSO88_-BGt-cTuK.js → CustomerOnboardingPage-B9hSO88_-DRsL0Lkd.js} +1 -1
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-CG0HKCpQ-Bij7UqzG.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-6ZJCtlPB.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-nNFDxs8S.js → CustomerOnboardingRoutes-BAXbMfnG.js} +1 -1
  71. package/dist/assets/{Dashboard-BJ_oIHab-CRQ768Be.js → Dashboard-BJ_oIHab-CzppdrfI.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-BemzMw2e-0P8PqPMh.js → DashboardReportPage-BemzMw2e-CIHD17uo.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-DALS4OZT.js → DashboardRoutes-DbKYeD6W.js} +1 -1
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-BtA5oEGG-CHBp25QC.js → DashboardSidebarBackgroundAnimation-BtA5oEGG-CJbp3sEl.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-B6XdMr_T.js → DefaultTenantHome-C8vFMm5p.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-CyFi1P_L-PGx5WqpW.js → DepositAccTransactionItem-CyFi1P_L-BCcxmkt2.js} +1 -1
  77. package/dist/assets/{DepositAccTransactionListPage-DvBRRUdZ-Dwe1k_P6.js → DepositAccTransactionListPage-DvBRRUdZ-J7et1hpP.js} +1 -1
  78. package/dist/assets/{DomesticWireDetailScreen-CQg3PAm2.js → DomesticWireDetailScreen-Cul1gA8b.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-DCDo3aHI-DFefoYqT.js → DomesticWireDetailsPage-DCDo3aHI-HC7kBah-.js} +1 -1
  80. package/dist/assets/{DownloadOverlay-D_lL1sPW-Gfwh-v3U.js → DownloadOverlay-D_lL1sPW-DOkU5hlK.js} +1 -1
  81. package/dist/assets/{DrawerPage-DesxXhZk-CSZPOuXf.js → DrawerPage-DesxXhZk-bh8UKuOO.js} +1 -1
  82. package/dist/assets/{DrawerScreen-DxcRwPPj.js → DrawerScreen-DhllwMd9.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-QvPy_Six-D0PpKsdn.js → EditPeoplePage-QvPy_Six-n79i1nrs.js} +1 -1
  84. package/dist/assets/{EditReimbursementDetailPage-C0ZDkboO-BtHqytZP.js → EditReimbursementDetailPage-C0ZDkboO-BclnolnW.js} +1 -1
  85. package/dist/assets/{EntityDetailPage-l7nXIsyF-CkZoHf_c.js → EntityDetailPage-l7nXIsyF-DuAZNnhi.js} +1 -1
  86. package/dist/assets/{EntityDetailRoutes-DHvWcVZM.js → EntityDetailRoutes-B_Cb-iUY.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-BwX0a4JL-CRyXtv36.js → EntitySummarySection-BwX0a4JL-DWyi-lkf.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-EdyHjbff-BYCQ61VZ.js → ExpenseAutomationOverviewPage-EdyHjbff-DmP7eQm5.js} +1 -1
  89. package/dist/assets/{ExpenseAutomationPage-DA22Qofw-ADD8htoH.js → ExpenseAutomationPage-DA22Qofw-CG5EBV_I.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-Bwo3l6rr.js → ExpenseAutomationRoutes-BpXObA3F.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-EMP6inpX-r7Le1EQI.js → ExpressPayPage-EMP6inpX-4WwEzVm7.js} +1 -1
  92. package/dist/assets/{FeaturePreviewPage-SYJm-3aR-5r57sKxN.js → FeaturePreviewPage-SYJm-3aR-CAe_AvQ_.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-BvoMMHrR.js → FeaturePreviewScreen-T_BtTTOm.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-BxESVqJD-Cfv_3OlA.js → FollowStepsSection-BxESVqJD-CPOfOs-2.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-D5_ACa-q-gYhP0BxG.js → GlobalReviewListPage-D5_ACa-q-C1RHJAt_.js} +1 -1
  96. package/dist/assets/{InformationCardStack-B_qQUEYD-DMTeE12G.js → InformationCardStack-B_qQUEYD-5ChUHV_B.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-BsQzoVzj-zMuYmGM6.js → InsightsCardStack-BsQzoVzj-DR9GooAs.js} +1 -1
  98. package/dist/assets/{InsightsSection-B6CNlTNH-D7yOc9HU.js → InsightsSection-B6CNlTNH-CxTrjAli.js} +1 -1
  99. package/dist/assets/{IntegrationsSettingsPage-DP6fAccq-D8JbMPQ0.js → IntegrationsSettingsPage-DP6fAccq-DE_L5Sqc.js} +1 -1
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-VdG7bDZi-TvC6kA2n.js → InternationalWireSwiftDetailsPage-VdG7bDZi-540GEZbp.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-COC6lZml-rsBkb9CF.js → InternationalWireVerificationPage-COC6lZml-D4HW9Bm7.js} +1 -1
  102. package/dist/assets/{InviteFormPage-DN02jRy5-KTg724iN.js → InviteFormPage-DN02jRy5-BfLLbR3z.js} +1 -1
  103. package/dist/assets/{InvitePageListView-CP4K9tJi-DmCYYfRg.js → InvitePageListView-CP4K9tJi-5pVXaxY0.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-VTM6kM1u-BodcFn2j.js → InvitePeoplePage-VTM6kM1u-BHWBEt_b.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-it-ZYl1N-BjrsaM1_.js → InvoiceUploadSection-it-ZYl1N--UvpGfb0.js} +1 -1
  106. package/dist/assets/{IssueChargeCardPage-CVfuvGey-lsM9dGu0.js → IssueChargeCardPage-CVfuvGey-B2XRCClw.js} +1 -1
  107. package/dist/assets/{LabeledAddressValue-DDrQcHIE-BYXgDWpJ.js → LabeledAddressValue-DDrQcHIE-D6zubChV.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-BgWwd5Gw-CSQ6OzMg.js → LabeledAddressValueField-BgWwd5Gw-X7xSKqD_.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-CcPO1k23-oIbSTLkG.js → LabeledControlledCheckBoxField-CcPO1k23-BWN6aXuG.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-BYYjzwUG-D8p7V8TS.js → LabeledCountryMultiSelectField-BYYjzwUG-BVI6zR8f.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CISYMojq-CKfZ7pr7.js → LabeledCreatableSingleSelectField-CISYMojq-DSalrWgP.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-C_bcFxdY-zFfcoFTP.js → LabeledDocumentField-C_bcFxdY-DFBxx_FY.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-ScGGCap8-BHX-K7ZX.js → LabeledDropDownFormattedTextField-ScGGCap8-Bs7HZSAW.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-BppuWRbl-BIUNuM_Y.js → LabeledEmailInputField-BppuWRbl-Cv2eSWYW.js} +1 -1
  115. package/dist/assets/{LabeledNameField-mxSNQk3k-Bx8pFTYv.js → LabeledNameField-mxSNQk3k-BePXnKIp.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-C6ctNzkA-BU3EiY7P.js → LabeledSingleSelectField-C6ctNzkA-JhYp0IfJ.js} +1 -1
  117. package/dist/assets/{LabeledText-C8Y7EOsX-BXDU6dRq.js → LabeledText-C8Y7EOsX-Dmu1KyEb.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-DTC8ETHe.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-CVRnER3W.js} +1 -1
  119. package/dist/assets/{LabeledZeniRolesDropDownField-BZtreVpj-BS1LNuQ-.js → LabeledZeniRolesDropDownField-BZtreVpj-DVH_WO48.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-CKq4oiX9-C5HsoBZ0.js → LinkJETransactionPage-CKq4oiX9-BaDfdPSv.js} +1 -1
  121. package/dist/assets/{LockCardPage-CZENNby7-UOOrs2le.js → LockCardPage-CZENNby7-BD08uNmC.js} +1 -1
  122. package/dist/assets/{LowBalancePopup-1727S1ri-C-K-4vpK.js → LowBalancePopup-1727S1ri-B87S31yh.js} +1 -1
  123. package/dist/assets/{MagicLinkACHDetailsPage-BSOlSfNu-BttZvzmk.js → MagicLinkACHDetailsPage-BSOlSfNu-Dt0XKvRL.js} +1 -1
  124. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D1DTPo0E-DjY71wpL.js → MagicLinkDomesticWireDetailsPage-D1DTPo0E-B6PaNuqE.js} +1 -1
  125. package/dist/assets/{MagicLinkInternationalWireDetailsPage-D_wo_2nm-B7rdUdYO.js → MagicLinkInternationalWireDetailsPage-D_wo_2nm-xxPpWmmQ.js} +1 -1
  126. package/dist/assets/{MagicLinkRoutes-klGTo6_a.js → MagicLinkRoutes-C3i-s06h.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-825ryF1-.js → MagicLinkSignInScreen-CtR41hr5.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-QMkZgQLG-2reSvlIE.js → MagicLinkSuccessPage-QMkZgQLG-s8YBkEXQ.js} +1 -1
  129. package/dist/assets/{MagicLinkTitleSection-CARU1oLQ-DySqrS1G.js → MagicLinkTitleSection-CARU1oLQ-C33EAuas.js} +1 -1
  130. package/dist/assets/{MailingDetailsSection-ByOPaJ05-yIzRcTOW.js → MailingDetailsSection-ByOPaJ05-B9FPpo09.js} +1 -1
  131. package/dist/assets/{MobileAppDrawer-D5Za8CIX.js → MobileAppDrawer-CYfAM9Mw.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-BsBKwXvk-CRjBeOMP.js → MoreMenuButton-BsBKwXvk-DHBQkdln.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-BdgIIhL1-D-_wplqQ.js → MyBankConnectionsSettingsPage-BdgIIhL1-BPykpz5y.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-CX38bDdq--3q4r6TL.js → MyPendingActivationChargeCardListPage-CX38bDdq-DSUf2vT1.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-DYu0Fx6I-C4ZZ5mCO.js → MyProfileSettingsPage-DYu0Fx6I-1drgYdxQ.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-CGGEvLwe-BBPd8y30.js → NavBarWithPicker-CGGEvLwe-MqQ8iCf4.js} +1 -1
  137. package/dist/assets/{NavigationArrow-CTNkKUtV-DI_bFVBn.js → NavigationArrow-CTNkKUtV-Yl4xu108.js} +1 -1
  138. package/dist/assets/{NavigationDots-Dvce3gHt-DAj81KV8.js → NavigationDots-Dvce3gHt-C7tC--sE.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-D_f7z47T-DteLGe2v.js → NewGlobalMerchantPage-D_f7z47T-BQD0ZGak.js} +1 -1
  140. package/dist/assets/{NoDataChart-CrKeqWSr-CWCGqBcO.js → NoDataChart-CrKeqWSr-BPXvlZWX.js} +1 -1
  141. package/dist/assets/{NoDataTable-4vPXmPYF-DiiMylPx.js → NoDataTable-4vPXmPYF-DWZxUYIB.js} +1 -1
  142. package/dist/assets/{NotFoundPage-BLWPU1wU-BwHUKWG1.js → NotFoundPage-BLWPU1wU-C7Ncwm4o.js} +1 -1
  143. package/dist/assets/{NotFoundScreen-DGEyldIM.js → NotFoundScreen-DOVxG4zz.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-D5u_QeSd.js → NotificationRoutes-C9ieyJ8k.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-CDiDLX3A-B66Z4X7P.js → NotificationSettingsPage-CDiDLX3A-Bz_D4b-V.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-B5pDa4cJ-CRzaaqx-.js → NotificationsListConfig-B5pDa4cJ-D-LHk2Q0.js} +1 -1
  147. package/dist/assets/{NotificationsPage-Ccl7Dny1-OTEuBDNq.js → NotificationsPage-Ccl7Dny1-tUs5en2X.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-spd-nKV4-DwYHrKLp.js → OpExByVendorPage-spd-nKV4-ByxsaIoY.js} +1 -1
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-DZYRUTfb.js → OverlayContainerPage-BG9y5C0t-U_msHcyh.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-TSoe4Z7F-C0lO0xOj.js → PandLWithForecastPage-TSoe4Z7F-Dxt-hrDj.js} +1 -1
  151. package/dist/assets/{PandLWithForecastRoutes-BJB7AcOB.js → PandLWithForecastRoutes-DzAt2VYp.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-9ma8SpIa-D1q0wO5y.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-DHVmTXZY.js} +1 -1
  153. package/dist/assets/{PeoplePage-b5_I0qOw-IxFOpmXf.js → PeoplePage-b5_I0qOw-B1LejvXe.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-CCkuJTXx.js → PeopleRoutes-DlekbCRO.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-BP0EpHsY.js → PerformanceRoutes-DHDv5Sgu.js} +1 -1
  156. package/dist/assets/{Preview-DA7xWqem.js → Preview-BjJ7O1sk.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-C3M0ocdF-SFIeVS9H.js → ProductsCarousel-C3M0ocdF-CLcC80yn.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-BOGJI2ws-Bd5L3YzB.js → PromoBaseCards-BOGJI2ws-CjW4jRXO.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-CmpnnuzP-XCWw1T7e.js → QBOConnectionDialog-CmpnnuzP-uF9XG6je.js} +1 -1
  160. package/dist/assets/{QBOConnectionScreen-DyiJ4JcR.js → QBOConnectionScreen-CHATiKae.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-DjnN9dgv-CGeaN3MF.js → QBOSetupSection-DjnN9dgv-t22_2ZYb.js} +1 -1
  162. package/dist/assets/{ReferralListScreen-Bkzznsdb.js → ReferralListScreen-D0Qeeka4.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-D73sxTZT.js → ReimbursementApprovalRoutes-DQ4DhPnk.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D5NXjrO9-RTXhOFXX.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-CWOYUPpB.js} +1 -1
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-C9KvQwlb.js → ReimbursementApprovalRuleDetailScreen-CM8NKREM.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BsCTIqUJ-y9iIyVcM.js → ReimbursementApprovalRulesPage-BsCTIqUJ-C4QA3bIg.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-BbyxE2uL-CjU2ZRW2.js → ReimbursementDetailPage-BbyxE2uL-DDxSupzL.js} +1 -1
  168. package/dist/assets/{ReimbursementPromoPage-CyEgwqcf-BiXwmlKl.js → ReimbursementPromoPage-CyEgwqcf-DZSdpKpd.js} +1 -1
  169. package/dist/assets/{ReimbursementRoutes-CorhAVOU.js → ReimbursementRoutes-BNmcGbMb.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-RETPkEQd-n4-kRF3Y.js → ReimbursementSetUpPage-RETPkEQd-BSfM62t6.js} +1 -1
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DnmYl0FM-CN381Qoq.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-DVlMblVO.js} +1 -1
  172. package/dist/assets/{ReloadCard-Bdoo0XiI-BNm210MB.js → ReloadCard-Bdoo0XiI-9pQ6UVc1.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-Bc1K7mU_-Cy1BUrpx.js → ReportTableViewSelector-Bc1K7mU_-gXJJUSis.js} +1 -1
  174. package/dist/assets/{ReportsPage-BOTHMLWh-D_-dXEBY.js → ReportsPage-BOTHMLWh-BvsXS8KN.js} +1 -1
  175. package/dist/assets/{ReportsRoutes-D_LkjKwz.js → ReportsRoutes-CwUxs5b6.js} +1 -1
  176. package/dist/assets/{RevenueChart-DvyZ3aO7-BjoJQRxN.js → RevenueChart-DvyZ3aO7-B9ChYULL.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage-BIMg1n2e-CE9WaiK4.js → ReviewDetailsPage-BIMg1n2e-FEaUVtNb.js} +1 -1
  178. package/dist/assets/{ReviewOverlay-CxwoiOLC-B6NT77pC.js → ReviewOverlay-CxwoiOLC-CCAU2STn.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-ButYppoj.js → RewardsRoutes-D92Io9n1.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-Ct3_VuDM-DkEEDwR-.js → RoleWithToolTip-Ct3_VuDM-Cf0axDO6.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DiL5Dozk-DBiyLnZa.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-Bfi3yYiV.js} +1 -1
  182. package/dist/assets/{ScheduleDetailsPage-5FWpLRtd-DgH3FQ8n.js → ScheduleDetailsPage-5FWpLRtd-CUwPz525.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-R3-PsXES-KZ9zYu75.js → ScheduleSequenceTable-R3-PsXES-5BgF0mPo.js} +1 -1
  184. package/dist/assets/{ScreenRoutes-EzM6Ydd3.js → ScreenRoutes-ChKoG0ON.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-CctbMmoK-DwjJ4BtJ.js → SetUpAccountSection-CctbMmoK-BnyRcOnA.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-lh5vJ2OM.js → SettingsRoutes-DRqBxtpE.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-CukmySbN.js → SetupPagesScreen-BqfVkx2P.js} +1 -1
  188. package/dist/assets/{SignIn-CmgmnRm4-DeaLljBV.js → SignIn-CmgmnRm4-DFMcLfwX.js} +1 -1
  189. package/dist/assets/{SignInScreen-DjoZN01f.js → SignInScreen-DH_pbSqH.js} +1 -1
  190. package/dist/assets/{SignOutScreen-CFmU8CDy.js → SignOutScreen-Dno5l8Lg.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-CFUxCqkU-DMTuDWWy.js → SpendManagementListViewPage-CFUxCqkU-J9ATHqo5.js} +3 -3
  192. package/dist/assets/{SpendManagementPerTabPage-C-kqNTci-DiLv13YG.js → SpendManagementPerTabPage-C-kqNTci-VDy4U7Fo.js} +1 -1
  193. package/dist/assets/{SpendManagementSection-CIz4nE_w-jXzilgM5.js → SpendManagementSection-CIz4nE_w-DAna-1JL.js} +1 -1
  194. package/dist/assets/{StatementItem-vVtoBN2w-DVgkdNDz.js → StatementItem-vVtoBN2w-w_5ZfVLc.js} +1 -1
  195. package/dist/assets/{StatementsPage-As5WOnMR-BfTMWiRj.js → StatementsPage-As5WOnMR-CEfdxc4m.js} +1 -1
  196. package/dist/assets/{StatusSwitcher-Bv-ozN6U-CgcpvjW-.js → StatusSwitcher-Bv-ozN6U-DoZiCLb7.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-D7QeM6nb-BELJXk0-.js → SubTabSwitcher-D7QeM6nb-CfY08u6h.js} +1 -1
  198. package/dist/assets/{SuccessAnimation-hijccO_0-UZ7dm-9w.js → SuccessAnimation-hijccO_0-BXi2HO03.js} +1 -1
  199. package/dist/assets/{SummaryCard-C2qoTsAY-Dz9k02Eh.js → SummaryCard-C2qoTsAY-0SCAXQGr.js} +1 -1
  200. package/dist/assets/{TaskDetailPage-QMk4DTDK-Cs17FA2j.js → TaskDetailPage-QMk4DTDK-BR6kbyWR.js} +1 -1
  201. package/dist/assets/{TaskListScreen-CkfRpdj8.js → TaskListScreen-mqYgryHQ.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-BJwp32Ph-CAO7CWbo.js → TaskManagementPage-BJwp32Ph-DBKoA6AC.js} +1 -1
  203. package/dist/assets/{TaskRoutes-CcB-Q1zz.js → TaskRoutes-BMkpTf1o.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-D00bDDhP-b1dqxIeB.js → TimeRangeSwitcher-D00bDDhP-1mlxeaFc.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcher-DA99HdHt-C3Ujx8M-.js → TimeframeSwitcher-DA99HdHt-CrtHfDZp.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-DyggDIQj-B_YzsezY.js → TimeframeSwitcherWithToggle-DyggDIQj-CHaX8emE.js} +1 -1
  207. package/dist/assets/{TopExCard-Z1WabZ8c-zJcPxoJa.js → TopExCard-Z1WabZ8c-tziOw6vi.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-CzHG4f9E-CZKu_hb8.js → TopExDetailPage-CzHG4f9E-Dx0qRe8n.js} +1 -1
  209. package/dist/assets/{TransactionActivityLogPage-CGKnjNfU-iVhAyVkn.js → TransactionActivityLogPage-CGKnjNfU-BAwRPyZq.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-1-mLOWSz-ie5urORO.js → TransactionDetailPage-1-mLOWSz-q5DHD8vz.js} +1 -1
  211. package/dist/assets/{TransactionDetailRoutes-C5jgxPON.js → TransactionDetailRoutes-DCcj_QaR.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-DvcKecE2.js → TransactionDetailScreen-Ctm336US.js} +1 -1
  213. package/dist/assets/{TransactionList-BB-xoIGm-YJbrjnEY.js → TransactionList-BB-xoIGm-CbFPe10H.js} +1 -1
  214. package/dist/assets/{TransactionListBig-C5Sf5Xh--CRJPqIxU.js → TransactionListBig-C5Sf5Xh--BLokVYd8.js} +1 -1
  215. package/dist/assets/{TransactionListPage-Cj7h1Ros-BAS0ZQP4.js → TransactionListPage-Cj7h1Ros-Yma_Yj44.js} +1 -1
  216. package/dist/assets/{TransactionListRoutes-DBB1bltM.js → TransactionListRoutes-B-4EVTzq.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-SsrSOk3O-BzjiNCrH.js → TransactionVendorDetailPage-SsrSOk3O-DJak24pB.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-BvKZ7vHF-CUzOXKi1.js → TransferDrawerPage-BvKZ7vHF-MTsuTWb5.js} +1 -1
  219. package/dist/assets/{TreasuryOverviewPage-DwvjMR4_-C5WtCTwF.js → TreasuryOverviewPage-DwvjMR4_-CDiSPOKr.js} +1 -1
  220. package/dist/assets/{TreasuryPromoPage-CtTFvSQW-CyA0L_cp.js → TreasuryPromoPage-CtTFvSQW-DJ1GjBPL.js} +1 -1
  221. package/dist/assets/{TreasuryRoutes-B7tar3cp.js → TreasuryRoutes-CdKpKyqq.js} +1 -1
  222. package/dist/assets/{TreasuryStatementsPage-Catz8shX-DvEtKvI_.js → TreasuryStatementsPage-Catz8shX-CnnTtymV.js} +1 -1
  223. package/dist/assets/{TreasuryTaxLetterPage-D8hzCL5o-CohSb0PE.js → TreasuryTaxLetterPage-D8hzCL5o-C0VOVcU6.js} +1 -1
  224. package/dist/assets/{TrendChart-Bnp4Pcdf-DCChqqGN.js → TrendChart-Bnp4Pcdf-SZKHN0GU.js} +1 -1
  225. package/dist/assets/{TrendWithTransactions-3D1FvM8G-D7Q5CpQR.js → TrendWithTransactions-3D1FvM8G-Cg_o5A0H.js} +1 -1
  226. package/dist/assets/{UncategorizedAccountsMappingPage-DbyY-dYB-CgK9m6hH.js → UncategorizedAccountsMappingPage-DbyY-dYB-B2fWmH31.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-CTzme1te-BCEDVEN2.js → UnitIntegrationPage-CTzme1te-pEu5vNzn.js} +1 -1
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-Wl4Spdpn-BODbkPHU.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-V2EGBlJF.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-D0zYKkIv-DyWWDryQ.js → Vendor2FAPopup-D0zYKkIv-CHyHr4rl.js} +1 -1
  230. package/dist/assets/{VendorACHDetailsPage-YYX9aQdw-DQuZG9gT.js → VendorACHDetailsPage-YYX9aQdw-uNnx3T-D.js} +1 -1
  231. package/dist/assets/{VendorDetailPage-Br9wIOnI-DP6KP6Ut.js → VendorDetailPage-Br9wIOnI-TtYKWO-7.js} +1 -1
  232. package/dist/assets/{VendorDomesticWireDetailsPage-BpPgQRHI-B-GCojoe.js → VendorDomesticWireDetailsPage-BpPgQRHI-DuYV6q0p.js} +1 -1
  233. package/dist/assets/{VendorFiling1099EditablePage-himC7iD3-ClxIgwRL.js → VendorFiling1099EditablePage-himC7iD3-CAU1ePfq.js} +1 -1
  234. package/dist/assets/{VendorFirstReviewPage-BbknTCBD-RovDaIDG.js → VendorFirstReviewPage-BbknTCBD-BMuoya7m.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-CS595Xgc-ERuJR75i.js → VendorInternationalWireDetailsPage-CS595Xgc-5-nS8GMI.js} +1 -1
  236. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-yhTjWXvw-fCMVA3J1.js → VendorInternationalWireSwiftDetailsPage-yhTjWXvw-N84csmRk.js} +1 -1
  237. package/dist/assets/{VendorsAccountsSection-CgSJu8wq-BQS4fhZH.js → VendorsAccountsSection-CgSJu8wq-B-6STrW9.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-DcygMIZA.js → VendorsRoutes-bXsYyOK6.js} +1 -1
  239. package/dist/assets/{VerifyDevice-Dvf0JsNN-CB8BcwMO.js → VerifyDevice-Dvf0JsNN-94SCla0o.js} +1 -1
  240. package/dist/assets/{VideoPlayer-VAzOGCDL-wDuMRrNt.js → VideoPlayer-VAzOGCDL-Gj554Pzr.js} +1 -1
  241. package/dist/assets/{VideoPopup-BqvZ-XIh-CcupyBnf.js → VideoPopup-BqvZ-XIh-BNEOF87i.js} +1 -1
  242. package/dist/assets/{WiseConfirmationScreen-vXn0bv1e.js → WiseConfirmationScreen-BlvPhWtt.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-GcwTJdB8-BH1p5Exo.js → ZeniAccountDetailPage-GcwTJdB8-k3MpvD3h.js} +1 -1
  244. package/dist/assets/{ZeniAccountListViewPage-CdwO0Duy-chh0GNPr.js → ZeniAccountListViewPage-CdwO0Duy-Dgq1iwVA.js} +1 -1
  245. package/dist/assets/{ZeniAccountNavBarPieces-BrSIfL36-C8M5a-Xl.js → ZeniAccountNavBarPieces-BrSIfL36-CO__0U_1.js} +1 -1
  246. package/dist/assets/{ZeniAccountPromoPage-JrcedQYB-C9OxetFj.js → ZeniAccountPromoPage-JrcedQYB-Bg6zqKkh.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-BzEN8rYp.js → ZeniAccountRoutes-DmQ36-U1.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-TKBfbgzJ-SmuqHJrQ.js → ZeniAccountSetupPage-TKBfbgzJ-pUeIEkNR.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-DNnNKmyq.js → ZeniAccountStatementScreen-CKcr5fe4.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-Bzhq25CU-BxvzIJer.js → ZeniAvatar-Bzhq25CU-C2bD0hCf.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-DglqrTpl-CP7BZGoe.js → ZeniCopyright-DglqrTpl-CuSiev8E.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-BHXPxPnI-BI0pX8OM.js → ZeniDatePicker-BHXPxPnI-CMWZ6uB_.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-BcaZZuAw-u6ZS6yfX.js → ZeniTransferAmountSlider-BcaZZuAw-CumWTq_t.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-BjmwXnMU.js → accountMappingHelper-BjH4piH5.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-XHgsfW1I.js → add-to-wallet-DgdBD8_G-tcxpIUf6.js} +1 -1
  256. package/dist/assets/{analytics-BmL_Mqn9.js → analytics-CxExYOQN.js} +1 -1
  257. package/dist/assets/{analyticsHelper-BtjSH59c.js → analyticsHelper-Bdr21wig.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CAYdbjhS-BnnKI2y0.js → analyticsHelper-CAYdbjhS-BnriMIKx.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-BdWzIcGx.js → arrow-south-east-round-PEovUgvH-D9eZjC4F.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-BAdtTROp.js → auto-transfer-rule-mbafm5D3-z35I1d4Z.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-MxMPiump.js → avatar-Dz7aEm3d-BJFW_gi9.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-rIPdgfrX.js → bank-letter-BOcVjN6J-DG6tnMPR.js} +1 -1
  263. package/dist/assets/{calculateSize-B2w5JPEU-B2193rmC.js → calculateSize-B2w5JPEU-DirCjmcI.js} +1 -1
  264. package/dist/assets/{chartTypes-CD3vrBsI-FkvIOOpd.js → chartTypes-CD3vrBsI-BZMuLEVT.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-ERYnohhO.js → clock-CJkylEKt-DBRbYbDM.js} +1 -1
  266. package/dist/assets/{common-BpxEACHl-C27avmxt.js → common-BpxEACHl-Buzd-sJA.js} +1 -1
  267. package/dist/assets/{commonDimensions-Oz1tdAcx-CfFEyvRP.js → commonDimensions-Oz1tdAcx-D3vjaJvc.js} +1 -1
  268. package/dist/assets/{commonTypes-5tEXwrX4-vaDEJyz_.js → commonTypes-5tEXwrX4-wrBzjunM.js} +1 -1
  269. package/dist/assets/{core-DuAc0oH1.js → core-Cd4LmmhG.js} +1 -1
  270. package/dist/assets/{dash.all.min-BzamULic.js → dash.all.min-BwVV-Fhd.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-BqKl1gNh.js → decodeURIComponentSafe-Bnf24opg.js} +1 -1
  272. package/dist/assets/{dnd-C4MpAW48.js → dnd-CAuW2Onh.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-BE7BByQ1.js → dollar-round-D18u7nlm-Bgjzafb1.js} +1 -1
  274. package/dist/assets/{downloadPdf-Dsuxeias-Cexusisr.js → downloadPdf-Dsuxeias-L1V5Ax68.js} +1 -1
  275. package/dist/assets/{empty-YHOSZjbJ.js → empty-C4-Zh70_.js} +1 -1
  276. package/dist/assets/{empty-C78V83Pd.js → empty-D2kWk7G0.js} +1 -1
  277. package/dist/assets/{epic-CXPZHXyZ.js → epic-B4lLDVkd.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-COBOGQ-F.js → filter-cZIFUNvj-UT3bl1R9.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-BvZsYiJJ.js → getLocaleForTenant-Bn_9x6pb.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-BjYV9BWl.js → gift-box-Cmt9OgIZ-xVRd_5bu.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-B33QXo27.js → graphic-no-data-l-DU4J8fDt-DPD83Lsr.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-lURz_iBc.js → graphic-no-data-net-burn-l-CzmycA0m-qJDLonEJ.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-PXK0cnyp.js → handshake-BPg58FML-BKdvF1x2.js} +1 -1
  284. package/dist/assets/{helper-Ckm10Uko-Cc4naTj-.js → helper-Ckm10Uko-CYRllgeW.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-Cu6UNYTo.js → hyperlink-DQyCeXx2-BaJrtvtu.js} +1 -1
  286. package/dist/assets/{index-GCvrHOxC.js → index-B4R3U21S.js} +1 -1
  287. package/dist/assets/{index-BpucRcXX.js → index-CSDJR0WY.js} +1 -1
  288. package/dist/assets/{index-Dcgkc5Uw.js → index-DH1028wG.js} +1 -1
  289. package/dist/assets/{index-Bi4ZzIhY.js → index-DJu_W448.js} +1 -1
  290. package/dist/assets/{index-Cb3Lx8nN.js → index-Dil8JkVI.js} +1 -1
  291. package/dist/assets/{index-BBHMk1WY.js → index-Djco7rZW.js} +6 -6
  292. package/dist/assets/{lexical-C-PBbg8f.js → lexical-0UdB2D6j.js} +1 -1
  293. package/dist/assets/{liveblocks-Bpp30XUG.js → liveblocks-IsOzz8u-.js} +1 -1
  294. package/dist/assets/{lottie-gxzZnsHo.js → lottie-D3b06MuY.js} +1 -1
  295. package/dist/assets/{mapLoadingInProgressToTreeNode-jcHEi-mv-Byx1Srtx.js → mapLoadingInProgressToTreeNode-jcHEi-mv-CB7uCtY5.js} +1 -1
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Cgyt68f3-CH-BVZKz.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-pTitDfos.js} +1 -1
  297. package/dist/assets/{mapSpacerToTreeNode-XgUp1xUb-CzikBZEb.js → mapSpacerToTreeNode-XgUp1xUb-Cw4z2kHv.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-Bre8FfBF-BCdK4cAS.js → mapTimeframeBalancesToTreeNode-Bre8FfBF-Dp06n9g6.js} +1 -1
  299. package/dist/assets/{mapTimeframeBalancesToTreeNode-DOyCX6ij-Df6749Xj.js → mapTimeframeBalancesToTreeNode-DOyCX6ij-6k7MqZhE.js} +1 -1
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-D1Xb-9er.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-lmI_kU2C.js} +1 -1
  301. package/dist/assets/{media-player-CWWFLNbp.js → media-player-CmMjgVLj.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-DWYsTA72.js → money-2cg1MuG4-S7Hyh6G5.js} +1 -1
  303. package/dist/assets/{mui-dGxW217w.js → mui-Xyv5fYYp.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-BWn2WsT0.js → page-detail-CWX5S47F-DGhy77XG.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-4LeFKTgY.js → page-summary-D7_VQHwN-CTvBuwro.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-C9S2YMFT.js → panelSelectedMixin-Cddsb26L-KaZtuqEM.js} +1 -1
  307. package/dist/assets/{pathToGoBack-DwmMyQdy.js → pathToGoBack-CCCMgbLR.js} +1 -1
  308. package/dist/assets/{pdf-DjWcNDdq.js → pdf-BCMUg4JF.js} +3 -3
  309. package/dist/assets/{pdf-lib-CB_AtnKr.js → pdf-lib-COfDmyeW.js} +1 -1
  310. package/dist/assets/{plaid-LGb0iu_7.js → plaid-C49TlIE8.js} +1 -1
  311. package/dist/assets/{pusher-loHOXAjv.js → pusher-DxiBhdF2.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-DhEizgYr.js → radio-default-CiSgisfh-BZQ2G5gA.js} +1 -1
  313. package/dist/assets/{react-B5CCxyo8.js → react-7FfCeBSU.js} +1 -1
  314. package/dist/assets/{react-Dvfu-jiD.js → react-BPhBszYn.js} +3 -3
  315. package/dist/assets/{react-DlnoroXE.js → react-BdRvxYlI.js} +1 -1
  316. package/dist/assets/{react-DonvuThB.js → react-BrhrhOid.js} +1 -1
  317. package/dist/assets/{react-CIp0Yw0U.js → react-CGtQZRg8.js} +1 -1
  318. package/dist/assets/{react-zRFF7aUz.js → react-CvsoPUpv.js} +1 -1
  319. package/dist/assets/{react-BFrkFTnv.js → react-DWguzYqh.js} +1 -1
  320. package/dist/assets/{react-NMWrA8Xh.js → react-DqghA0uT.js} +1 -1
  321. package/dist/assets/{recharts-CNVQrnca.js → recharts-CwRU7bDL.js} +1 -1
  322. package/dist/assets/{routePaths-D4MJQpeF.js → routePaths-BKDf21Fs.js} +1 -1
  323. package/dist/assets/{sentry-BHW-o2_3.js → sentry-CEBEW6Zv.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-CmaA04GF.js → shield-DOlUxcFf-CN5gdmRw.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-MYaa6js9.js → spend-limit-D6SyboD4-Bn5NEHPU.js} +1 -1
  326. package/dist/assets/{toCOABalancesWithID-aLNB35t7-hl6knpCK.js → toCOABalancesWithID-aLNB35t7-D-R0UrAf.js} +1 -1
  327. package/dist/assets/{toChartData-DUL6vnzJ-Bfkqesey.js → toChartData-DUL6vnzJ-CB0d1jE1.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-BxMvgbSM.js → transaction-placeholder-CpOwZAMG-Cm13WfkG.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-zHeOXoYp.js → undo-b_3XZ5CX-KXR9cWDD.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-CM_x1_IF.js → unlock-BPWn2I5L-BsNNzlL3.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-CsOkkjaO.js → upload-reimbursement-receipt-O2N8vcO7-B07hVCFS.js} +1 -1
  332. package/dist/assets/{uploadAttachment-Ck4wivBR-Cq4Hbbxz.js → uploadAttachment-Ck4wivBR-yBAKB8AC.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-BsH_IJrm.js → uploadReceipts-CIgkuVpu-NJY_9LJT.js} +1 -1
  334. package/dist/assets/{url-9ygz9Slk.js → url-4GCCVJ8T.js} +1 -1
  335. package/dist/assets/{url-B9FYGPSg.js → url-NmPSZVeC.js} +1 -1
  336. package/dist/assets/{useDeviceId-DejDIbww.js → useDeviceId-ChcGCEaq.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-B7i_KMco.js → useInitialThreadRequest-BQElYMHu.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-BldzqPkV.js → useLongPress-GCK2COYQ-dPgjUCNK.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-bSCjhzHC.js → usp-line-BBd1wKwW-B1nhdCck.js} +1 -1
  340. package/dist/assets/{utils-BAYl7YTg.js → utils-PmQt3_O8.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-uSCjZtP0.js → withTransactionSidePanel-BtZz7sjy.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-DhC3A3VG.js → zeni-epic-state-Ddwqsd5-.js} +3 -3
  343. package/dist/assets/{zeni-icon-only-qq9leULW.js → zeni-icon-only-CORvK0Ur.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +1 -1
  346. package/dist/assets/CustomerOnboardingAuthScreen-BocH-qEp.js +0 -1
  347. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-CC6TjluW.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bo as De,be as ii,fS as N,O as ni,m as s,u as li,bx as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bq as _t,cv as bi,fV as xi,C as Zt,z as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-BBHMk1WY.js";import{a as p}from"./sentry-BHW-o2_3.js";import{n}from"./mui-dGxW217w.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-DhC3A3VG.js";import{o as Ci,t as Pi}from"./LowBalancePopup-1727S1ri-C-K-4vpK.js";import"./pdf-DjWcNDdq.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="492dab8c-1978-4036-b95d-c2350251da5f",e._sentryDebugIdIdentifier="sentry-dbid-492dab8c-1978-4036-b95d-c2350251da5f")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
1
+ import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bo as De,be as ii,fS as N,O as ni,m as s,u as li,bx as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bq as _t,cv as bi,fV as xi,C as Zt,z as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-Djco7rZW.js";import{a as p}from"./sentry-CEBEW6Zv.js";import{n}from"./mui-Xyv5fYYp.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-Ddwqsd5-.js";import{o as Ci,t as Pi}from"./LowBalancePopup-1727S1ri-B87S31yh.js";import"./pdf-BCMUg4JF.js";import"./core-Cd4LmmhG.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="492dab8c-1978-4036-b95d-c2350251da5f",e._sentryDebugIdIdentifier="sentry-dbid-492dab8c-1978-4036-b95d-c2350251da5f")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
2
  ${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Ki,{children:Ia})}),d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(xi,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Qa(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:Ja(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(hn,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ei,{onAttachmentClick:Fe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ti,{amount:ga,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:ea,onSaveRealTimeApprovals:ta},historicActivities:e.billHistory.activities}),t.jsx(mn,{})]}),e.transactionDetails?.vendor==null||he||e.transactionDetails.isDeleted?null:t.jsx(ai,{separatorStyle:{marginRight:i.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?a.buttons.reject:a.buttons.rejectBill,isLoading:Ve==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ge("rejected"),K!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ei(U,rt),isLoading:Ve==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{K!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ui,{children:t.jsxs(Hi,{windowSize:l,children:[!H&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-container"),children:[Z!=="processing"&&lt?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.deleteRecurringTitle:a.deleteBillTitle,description:P?a.recurringBill.deleteRecurringAlertText:a.deleteAlertDescription,primaryButtonText:a.delete,secondaryButtonText:a.cancel}),G(!0)},"data-testid":g("delete-bill-action-item"),children:a.buttons.deleteBill}):null,Z!=="processing"||P?null:t.jsx(W,{onClick:()=>{ae({title:a.cancelBillTitle,description:a.cancelAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-bill-action-item"),children:a.buttons.cancel}),Z==="processing"&&ot?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.cancelAndDeleteRecurringTitle:a.cancelAndDeleteBillTitle,description:P?a.recurringBill.cancelAndDeleteRecurringAlertText:a.cancelAndDeleteAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-and-delete-bill-action-item"),children:a.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(W,{onClick:()=>{He(!0),st()},"data-testid":g("mark-as-paid-action-item"),children:a.paymentOutsideZeni.markAsPaid}):null]})}):null,Ze?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),aa()},"data-testid":g("retry-bill-action-item"),children:a.buttons.retry}):null,Te?t.jsx(W,{onClick:()=>{z.trackRefundClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ae({title:a.zeniAssist.refundTitle,description:a.zeniAssist.refundDescription,primaryButtonText:a.zeniAssist.proceed,secondaryButtonText:a.cancel}),pe(!0)},"data-testid":g("refund-bill-action-item"),children:a.buttons.refund}):null]})}):null,t.jsxs(qi,{windowSize:l,children:[$a===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:ve?a.zeniAssist.tooltip:a.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":g("other-actions-icon-container"),children:ve?t.jsx(xa,{}):t.jsx(Gi,{})})}):null,H||fe!==!0?null:t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Ni,placement:"top",children:t.jsx(Yi,{onClick:et,"data-testid":g("edit-bill-icon-container"),children:t.jsx(Xi,{})})}),!H&&ka===!0&&Sa?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Mi,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":g("more-details-icon-container"),children:t.jsx(Vi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(ii,{isDrawerOpen:ra,allowComposer:!0,drawerTitle:Li,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Ca,onThreadClick:sa,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${i.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ee.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Bn=e=>{const b=Ot(),h=e.billDetails.transactionDetails?.id,E=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!E||_==null||h==null)return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Ba,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Fi=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Si(),"date")===!0?{value:Pe.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[h].color,bgColor:N[h].bgColor,borderColor:N[h].borderColor}},Oi=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(bn,{windowSize:e,children:[t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.accountNumber}),t.jsx(Nt,{children:b.withdrawFrom!=null?Et(b.withdrawFrom,e):c})]}),t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.amount}),t.jsx(Nt,{children:h!=null?Ce("0,0[.]00",h):S})]})]})},Ei=(e,b)=>e?a.paymentOutsideZeni.markAsPaid:b?a.buttons.approve:a.buttons.approveBill,_i=e=>{const b=e.paymentMode,h=a.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const E=a.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${zi} ${E}`},Zi=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:i.sp5,marginBottom:i.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const E=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:i.sp2,marginBottom:i.sp3},title:`${Kt.lowBalanceIn.replace("__account__",E)}`,description:h.replace("Low balance! ","")})}return null},Ki=n.div``,Wi=n.div``,Ui=n.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1 +1 @@
1
- import{j as l}from"./pdf-DjWcNDdq.js";import{a as y}from"./sentry-BHW-o2_3.js";import{j,h as U,i as B,u as v,N as O,k as T,l as $,R as L,m as h}from"./core-DuAc0oH1.js";import{ct as N,L9 as A,KR as b,tU as I,tO as F,tS as w,tH as K,KT as W,tK as q,tW as H,tV as C}from"./zeni-epic-state-DhC3A3VG.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-BBHMk1WY.js";import"./mui-dGxW217w.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-C9KvQwlb.js";import M from"./NotFoundScreen-DGEyldIM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="27cf8ee3-8798-4b17-acaf-d0339ea7a0da",e._sentryDebugIdIdentifier="sentry-dbid-27cf8ee3-8798-4b17-acaf-d0339ea7a0da")}catch{}})();const R="bill-approval-rule-update",X=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(Q(z)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(O,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=f.actors.selectedNonUsers.map(S=>{const E=!!J(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(x);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(H())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=$(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(L,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
1
+ import{j as l}from"./pdf-BCMUg4JF.js";import{a as y}from"./sentry-CEBEW6Zv.js";import{j,h as U,i as B,u as v,N as O,k as T,l as $,R as L,m as h}from"./core-Cd4LmmhG.js";import{ct as N,L9 as A,KR as b,tU as I,tO as F,tS as w,tH as K,KT as W,tK as q,tW as H,tV as C}from"./zeni-epic-state-Ddwqsd5-.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-Djco7rZW.js";import"./mui-Xyv5fYYp.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-CM8NKREM.js";import M from"./NotFoundScreen-DOVxG4zz.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="27cf8ee3-8798-4b17-acaf-d0339ea7a0da",e._sentryDebugIdIdentifier="sentry-dbid-27cf8ee3-8798-4b17-acaf-d0339ea7a0da")}catch{}})();const R="bill-approval-rule-update",X=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(Q(z)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(O,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=f.actors.selectedNonUsers.map(S=>{const E=!!J(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(x);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(H())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=$(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(L,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
@@ -1,4 +1,4 @@
1
- import{x as F,m as D,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-BBHMk1WY.js";import{a as L}from"./sentry-BHW-o2_3.js";import{n as b}from"./mui-dGxW217w.js";import{b as Z,f as ee,o as R,l as T}from"./FollowStepsSection-BxESVqJD-Cfv_3OlA.js";import"./pdf-DjWcNDdq.js";import"./zeni-epic-state-DhC3A3VG.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="03478771-0ff1-437b-84a0-854cf50796e7",e._sentryDebugIdIdentifier="sentry-dbid-03478771-0ff1-437b-84a0-854cf50796e7")}catch{}})();const $="billPayApprovalRuleDetailPage",C="lowerBound",k="upperBound",I="steps",h="applyToExistingBills",le={footerPadding:new F(D[2],D[2])};function Se({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:U}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return L.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=X(m);H(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j($),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:U===1/0?Number.MAX_SAFE_INTEGER-1:U-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j($),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:o.jsx(Y,{name:h,mode:"always_on",checkBoxes:[{value:h,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[h]:n?[]:[h],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[k]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:T},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=b.div`
1
+ import{x as F,m as D,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-Djco7rZW.js";import{a as L}from"./sentry-CEBEW6Zv.js";import{n as b}from"./mui-Xyv5fYYp.js";import{b as Z,f as ee,o as R,l as T}from"./FollowStepsSection-BxESVqJD-CPOfOs-2.js";import"./pdf-BCMUg4JF.js";import"./zeni-epic-state-Ddwqsd5-.js";import"./core-Cd4LmmhG.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="03478771-0ff1-437b-84a0-854cf50796e7",e._sentryDebugIdIdentifier="sentry-dbid-03478771-0ff1-437b-84a0-854cf50796e7")}catch{}})();const $="billPayApprovalRuleDetailPage",C="lowerBound",k="upperBound",I="steps",h="applyToExistingBills",le={footerPadding:new F(D[2],D[2])};function Se({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:U}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return L.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=X(m);H(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j($),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:U===1/0?Number.MAX_SAFE_INTEGER-1:U-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j($),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:o.jsx(Y,{name:h,mode:"always_on",checkBoxes:[{value:h,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[h]:n?[]:[h],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[k]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:T},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=b.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bo as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-BBHMk1WY.js";import{n as t}from"./mui-dGxW217w.js";import{a as Z}from"./sentry-BHW-o2_3.js";import"./pdf-DjWcNDdq.js";import"./zeni-epic-state-DhC3A3VG.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c617441c-cef6-4cc1-a1e4-57dc865d266c",e._sentryDebugIdIdentifier="sentry-dbid-c617441c-cef6-4cc1-a1e4-57dc865d266c")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,_)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,E)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${E}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},_))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
1
+ import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bo as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-Djco7rZW.js";import{n as t}from"./mui-Xyv5fYYp.js";import{a as Z}from"./sentry-CEBEW6Zv.js";import"./pdf-BCMUg4JF.js";import"./zeni-epic-state-Ddwqsd5-.js";import"./core-Cd4LmmhG.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c617441c-cef6-4cc1-a1e4-57dc865d266c",e._sentryDebugIdIdentifier="sentry-dbid-c617441c-cef6-4cc1-a1e4-57dc865d266c")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,_)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,E)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${E}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},_))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.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{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as $,bM as re,ac as te,au as ne,m as ae}from"./index-BBHMk1WY.js";import{a as g}from"./sentry-BHW-o2_3.js";import{n as s}from"./mui-dGxW217w.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-DhC3A3VG.js";import{C as me}from"./VideoPopup-BqvZ-XIh-CcupyBnf.js";import{M as b}from"./usp-line-BBd1wKwW-bSCjhzHC.js";import"./pdf-DjWcNDdq.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";import"./VideoPlayer-VAzOGCDL-wDuMRrNt.js";import"./media-player-CWWFLNbp.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="991c5505-2251-4844-81bf-c91cdd82e38b",i._sentryDebugIdIdentifier="sentry-dbid-991c5505-2251-4844-81bf-c91cdd82e38b")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
1
+ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as $,bM as re,ac as te,au as ne,m as ae}from"./index-Djco7rZW.js";import{a as g}from"./sentry-CEBEW6Zv.js";import{n as s}from"./mui-Xyv5fYYp.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-Ddwqsd5-.js";import{C as me}from"./VideoPopup-BqvZ-XIh-BNEOF87i.js";import{M as b}from"./usp-line-BBd1wKwW-B1nhdCck.js";import"./pdf-BCMUg4JF.js";import"./core-Cd4LmmhG.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";import"./VideoPlayer-VAzOGCDL-Gj554Pzr.js";import"./media-player-CmMjgVLj.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="991c5505-2251-4844-81bf-c91cdd82e38b",i._sentryDebugIdIdentifier="sentry-dbid-991c5505-2251-4844-81bf-c91cdd82e38b")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{j as a}from"./pdf-DjWcNDdq.js";import{j as Q,i as se,h as q,l as ee,u as k,N as X,k as J,g as Kt,R as zt,m as y}from"./core-DuAc0oH1.js";import{ct as O,Kr as Ve,bt as rt,Dr as Zt,bn as ct,FX as de,Ks as dt,tc as ut,um as Pe,tL as Ht,bm as xe,Kt as Wt,Ku as qt,bE as Jt,Kv as Yt,Kw as pt,Kx as mt,uY as $e,tr as we,Ky as Xt,t0 as He,Kz as Qt,y9 as ea,t4 as ta,ta as bt,KA as Be,KB as Le,KC as aa,KD as na,uq as Ue,KE as ia,un as ht,uD as oa,KF as gt,u7 as We,uc as la,KG as sa,KH as ce,KI as St,KJ as yt,KK as ft,dp as ra,tw as Fe,FY as vt,KL as ca,eg as da,KM as ua,KN as pa,cA as It,cy as kt,KO as _e,KP as ma,KQ as ba,I9 as Ge,KR as ha,Ia as ne,Ib as Me,KS as ga,KT as Sa,KU as ya,ue as qe,ub as fa,KV as va,KW as Ia,KX as ka,tZ as wa,KY as Ba,KZ as Ca,K_ as Aa,F5 as wt,bM as Bt,gW as xa,c4 as Da,bs as Ct,FW as At,sB as Ea,K$ as Ta,xY as ja,y2 as Pa,pc as Fa,uo as Ra,v3 as Va,h7 as Se,L0 as $a,L1 as xt,hB as La,h1 as Dt,hm as Et,hl as Je,bG as pe,bX as Ua,L2 as _a,L3 as ye,fI as Ga,L4 as Ye,L5 as Ma,fM as Na,g5 as Oa,vh as Ka,L6 as za,hu as Za,v7 as Ha,L7 as Xe,vb as Wa,vg as qa,vd as Ja,v5 as Ya,L8 as Tt,tl as Xa,L9 as Qa,La as en,dj as tn,di as an,dh as nn,ha as on,hs as Qe,hD as ln,mK as sn,hj as rn,v9 as cn,fS as dn,hI as un,Lb as pn,fK as mn,mB as bn,Lc as hn,u3 as gn,G5 as Sn,F4 as yn,Hb as fn,bO as vn,bN as In,bK as kn,bL as wn}from"./zeni-epic-state-DhC3A3VG.js";import{y as ie,js as V,_ as fe,aE as oe,aG as g,aF as Ce,jQ as Y,o as w,bk as De,jz as T,l2 as Bn,jM as z,k4 as Ne,jO as E,e as ve,N as jt,kn as Cn,O as Oe,jT as Ee,f as Pt,kH as An,x as Ft,kv as Rt,l3 as xn,k2 as Dn,J as Vt,k9 as En,l4 as Tn,l5 as jn,l6 as Pn,l7 as Fn,l8 as Rn,l9 as Vn,la as $n,lb as Ln,k_ as Un,lc as _n,ld as Gn,kc as Mn}from"./index-BBHMk1WY.js";import{n as $,S as Nn}from"./mui-dGxW217w.js";import{A as et}from"./AddressScreen-q6X2LJkq.js";import{g as le,a as Te,i as $t,V as Ke,b as ze,c as On,v as Kn,d as zn,A as me,D as be}from"./DomesticWireDetailScreen-CQg3PAm2.js";import{a as v}from"./sentry-BHW-o2_3.js";import{u as Lt}from"./useInitialThreadRequest-B7i_KMco.js";import Ae from"./NotFoundScreen-DGEyldIM.js";import{S as Zn}from"./zeni-icon-only-qq9leULW.js";import{D as Hn}from"./DrawerScreen-DxcRwPPj.js";import{M as Ut}from"./MobileAppDrawer-D5Za8CIX.js";import{F as _t}from"./FeaturePreviewScreen-BvoMMHrR.js";import{S as je}from"./SetupPagesScreen-CukmySbN.js";import{B as Wn}from"./BillPayApprovalRoutes-jn_lL90F.js";import{FallBackRoute as qn}from"./ScreenRoutes-EzM6Ydd3.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";import"./analyticsHelper-BtjSH59c.js";import"./routePaths-D4MJQpeF.js";import"./BusinessVerificationPageScreen-D8j6xARh.js";import"./ReimbursementApprovalRuleDetailScreen-C9KvQwlb.js";import"./getLocaleForTenant-BvZsYiJJ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1",e._sentryDebugIdIdentifier="sentry-dbid-33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1")}catch{}})();const Jn=J(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=xe(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:h}=Wt(i.billActivities,qt(t.currentTenant),o);d=S,p=h}const m=Jt(t.currentTenant?.userRole??[]),b=i.transactionDetails!=null&&Yt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:b,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=E(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(bt(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Qt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(He(i,l.type,"")):e(He(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=E(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Xt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Yn(){const e=Q(),t=se(),i=q(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Lt(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[b,S]=v.useState(!1),[h,f]=v.useState(!1),[x,D]=v.useState(!1),{useFeatureGate:I,useDynamicConfig:U}=oe(),{isFeatureEnabled:F}=I(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=I(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=I(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=U(Ce.zeniAssistConfig),Z=Zt(l),A=ct(l.userRole),K=m&&de(u?.loggedInUserRoleMap),_=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:H}=I(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:W}=I(g.billPaySetupShowInternationalPaymentByWise);if(v.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&Z===!1?D(!1):D(s.billActivities[0]?.isRealTimeApprovalEnabled&&(A||K||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,A,K,l.isZeni,Z,r]),v.useEffect(()=>{o!=null&&t(dt(o))},[o]),v.useEffect(()=>{b||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,_,!1)))},[b,s,o,t]),v.useEffect(()=>{h||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,_,W,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Ht()))},[h,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(X,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(Y,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(De,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(Jn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:x,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:H,hasZeniAssistAccess:_,isDetectInsufficientFundsEnabled:R})]})}const he=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Xn={containerWidth:new Ft(100,58)},Qn=J(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(Ue(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(ht(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(An);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=q().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=ve(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:b}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:h}=d(Ce.zeniAssistConfig),f=h.user_ids!=null&&l?.userId!=null&&h.user_ids.includes(l?.userId),x=k(L=>O(L)).companyName,[D,I]=v.useState(!1),[U,F]=v.useState(!1),[G,R]=v.useState(!1),[B,Z]=v.useState(),A=k(L=>Le(L,p,b,i));let K=A.fetchState,_=A.file,H=A.showAutofill;const W=k(L=>Ve(L,i??""));c===!1&&(K=W.fetchState,_=W.transactionDetails?.attachments?.[0],H=!1);const M=()=>{u.toggle()},te=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;v.useEffect(()=>{K==="Not-Started"&&(c&&U?F(!1):!c&&D&&I(!1))},[i]),v.useEffect(()=>{D||i==null||c||(I(!0),t(ut(i,m,f,!1)),U||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!U&&(F(!0),t(Pe(!1,m,f,S,i)))},[D,U,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(Ue(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(K==="Error"||W.fetchState==="Error")return a.jsx(Ae,{});if(K!="Completed")return a.jsx(Y,{fetchState:K,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const L=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:he.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:he.overwriteDescription}),primaryButtonText:he.buttons.yes,secondaryButtonText:he.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:H}),a.jsx(oi,{showAutofill:H,children:x})]})]}):null,a.jsx(Qn,{billId:i,file:_,showAutofill:H,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,W,A),setShowConfirmationPopup:R,setPayload:Z,showActionButtons:ti(c,A),isInitialEdit:!!A.isInitialEdit,billStage:L}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${he.recurringBill.recurringCycle}
1
+ import{j as a}from"./pdf-BCMUg4JF.js";import{j as Q,i as se,h as q,l as ee,u as k,N as X,k as J,g as Kt,R as zt,m as y}from"./core-Cd4LmmhG.js";import{ct as O,Kr as Ve,bt as rt,Dr as Zt,bn as ct,FX as de,Ks as dt,tc as ut,um as Pe,tL as Ht,bm as xe,Kt as Wt,Ku as qt,bE as Jt,Kv as Yt,Kw as pt,Kx as mt,uY as $e,tr as we,Ky as Xt,t0 as He,Kz as Qt,y9 as ea,t4 as ta,ta as bt,KA as Be,KB as Le,KC as aa,KD as na,uq as Ue,KE as ia,un as ht,uD as oa,KF as gt,u7 as We,uc as la,KG as sa,KH as ce,KI as St,KJ as yt,KK as ft,dp as ra,tw as Fe,FY as vt,KL as ca,eg as da,KM as ua,KN as pa,cA as It,cy as kt,KO as _e,KP as ma,KQ as ba,I9 as Ge,KR as ha,Ia as ne,Ib as Me,KS as ga,KT as Sa,KU as ya,ue as qe,ub as fa,KV as va,KW as Ia,KX as ka,tZ as wa,KY as Ba,KZ as Ca,K_ as Aa,F5 as wt,bM as Bt,gW as xa,c4 as Da,bs as Ct,FW as At,sB as Ea,K$ as Ta,xY as ja,y2 as Pa,pc as Fa,uo as Ra,v3 as Va,h7 as Se,L0 as $a,L1 as xt,hB as La,h1 as Dt,hm as Et,hl as Je,bG as pe,bX as Ua,L2 as _a,L3 as ye,fI as Ga,L4 as Ye,L5 as Ma,fM as Na,g5 as Oa,vh as Ka,L6 as za,hu as Za,v7 as Ha,L7 as Xe,vb as Wa,vg as qa,vd as Ja,v5 as Ya,L8 as Tt,tl as Xa,L9 as Qa,La as en,dj as tn,di as an,dh as nn,ha as on,hs as Qe,hD as ln,mK as sn,hj as rn,v9 as cn,fS as dn,hI as un,Lb as pn,fK as mn,mB as bn,Lc as hn,u3 as gn,G5 as Sn,F4 as yn,Hb as fn,bO as vn,bN as In,bK as kn,bL as wn}from"./zeni-epic-state-Ddwqsd5-.js";import{y as ie,js as V,_ as fe,aE as oe,aG as g,aF as Ce,jQ as Y,o as w,bk as De,jz as T,l2 as Bn,jM as z,k4 as Ne,jO as E,e as ve,N as jt,kn as Cn,O as Oe,jT as Ee,f as Pt,kH as An,x as Ft,kv as Rt,l3 as xn,k2 as Dn,J as Vt,k9 as En,l4 as Tn,l5 as jn,l6 as Pn,l7 as Fn,l8 as Rn,l9 as Vn,la as $n,lb as Ln,k_ as Un,lc as _n,ld as Gn,kc as Mn}from"./index-Djco7rZW.js";import{n as $,S as Nn}from"./mui-Xyv5fYYp.js";import{A as et}from"./AddressScreen-D3wmm55j.js";import{g as le,a as Te,i as $t,V as Ke,b as ze,c as On,v as Kn,d as zn,A as me,D as be}from"./DomesticWireDetailScreen-Cul1gA8b.js";import{a as v}from"./sentry-CEBEW6Zv.js";import{u as Lt}from"./useInitialThreadRequest-BQElYMHu.js";import Ae from"./NotFoundScreen-DOVxG4zz.js";import{S as Zn}from"./zeni-icon-only-CORvK0Ur.js";import{D as Hn}from"./DrawerScreen-DhllwMd9.js";import{M as Ut}from"./MobileAppDrawer-CYfAM9Mw.js";import{F as _t}from"./FeaturePreviewScreen-T_BtTTOm.js";import{S as je}from"./SetupPagesScreen-BqfVkx2P.js";import{B as Wn}from"./BillPayApprovalRoutes-UIWSSsHT.js";import{FallBackRoute as qn}from"./ScreenRoutes-ChKoG0ON.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";import"./analyticsHelper-Bdr21wig.js";import"./routePaths-BKDf21Fs.js";import"./BusinessVerificationPageScreen-zr101K58.js";import"./ReimbursementApprovalRuleDetailScreen-CM8NKREM.js";import"./getLocaleForTenant-Bn_9x6pb.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1",e._sentryDebugIdIdentifier="sentry-dbid-33b0adb1-ce5c-4b90-b17e-6dc3a6a8e5c1")}catch{}})();const Jn=J(function(e,t){const i=Ve(e,t.billId),o=V.getSignedInUser(),c=e.tenantState.currentTenantId,r={userId:o?.userId??"",sessionId:o?.zeniSessionId??"",tenantId:c??""},u=z(t.location.state?.pathnameStackToGoBack);let l=!0;u.poppedPathname?.includes("bills")===!0&&(l=!1);let s=`${i.createdBy?.firstName??"Zeni"} ${i.createdBy?.lastName??""}`;const n=xe(o);n||!i.createdBy?.email?.includes("zeni.ai")||(s="Zeni");let d=!1,p=!1;if(i?.billActivities.length>0){const{isApprovalorRejectBtnVisible:S,isMarkAsPaidBtnVisible:h}=Wt(i.billActivities,qt(t.currentTenant),o);d=S,p=h}const m=Jt(t.currentTenant?.userRole??[]),b=i.transactionDetails!=null&&Yt(i.transactionDetails,m,o);return{billDetails:i,createdBy:s,authParams:r,transactionAttachmentEndpoint:`${Ne}/transaction_attachment`,signedInUser:o,showBackButton:l,isAdmin:m,isRealTimeApprovalEnabled:t.isRealTimeApprovalEnabled,showApproveRejectBtns:d,showMarkAsPaidButtonToApprover:p,hasZeniAssistAccess:t.hasZeniAssistAccess,analytics:T,showMarkAsPaidButtonToCreator:b,isZeniUser:n}},function(e,t){const{billId:i,currentTenant:o,location:c,navigate:r}=t,{tenantEmailDomain:u}=o;return{redirectToBillsScreen:()=>{const l=le(u),s=E(c.state?.pathnameStackToGoBack,c.pathname);r(l,{state:{pathnameStackToGoBack:s}})},redirectToEditableBillScreen:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}})},discardBillDetailsFromLocalStore:()=>{e(Be({}))},deleteBill:l=>{T.trackBillPayDeleteBill(i,l),e(bt(i))},cancelAndDeleteBill:(l,s)=>{s===!0?T.trackBillPayCancelAndDeleteBill(i,l):T.trackBillPayCancelBill(i),e(ta(i,s))},onSaveRealTimeApprovals:l=>{e(ea(i,"bill_pay",l))},updateEditRealTimeApproverClicked:l=>{e(Qt({isEdit:l,entityId:i,entityType:"bill_pay"}))},approveOrRejectBill:l=>{l.type==="approved"?e(He(i,l.type,"")):e(He(i,l.type,l.description??""))},retryOrRefundBill:l=>{l.type==="retry"?e(we(i,"retry")):e(we(i,"refund"))},onAddNewRule:()=>{r("../../bills/approval-rules")},onAttachmentClick:(l,s)=>{const n=Te(u,l,s),d=E(c.state?.pathnameStackToGoBack,c.pathname);r(n,{state:{pathnameStackToGoBack:d}})},onBackClick:()=>{const l=z(t.location.state?.pathnameStackToGoBack),s=l.poppedPathname??le(u);r(s,{state:{pathnameStackToGoBack:l.newStack}})},onRetryPaymentClick:()=>{const l=E(c.state?.pathnameStackToGoBack,c.pathname);r("./edit",{state:{pathnameStackToGoBack:l}}),e(Xt({billId:t.billId}))},onRefundPaymentClick:()=>{e(we(t.billId,"refund"))},saveBillDetails:(l,s,n)=>{l&&e(mt({data:n,billId:i})),e($e(l?"paid":"pending_approval",l,s,i))},discardOutsideZeniPaymentData:()=>{e(pt({billId:i}))}}})(Bn);function Yn(){const e=Q(),t=se(),i=q(),{billId:o}=ee(),c=ie(),r=V.getSignedInUser(),u=fe(),l=k(M=>O(M)),s=k(M=>Ve(M,o??"")),n=s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1,d=Lt(l?.companyId,{clearParams:s.fetchState==="Completed"&&!n}),p=l?.userRole!=null&&rt(l?.userRole),m=l?.company==null||l.company.featuresActivationInfo?.isBillPayFeatureEnabled&&!p,[b,S]=v.useState(!1),[h,f]=v.useState(!1),[x,D]=v.useState(!1),{useFeatureGate:I,useDynamicConfig:U}=oe(),{isFeatureEnabled:F}=I(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:G}=I(g.isBillPayCommentingEnabled),{isFeatureEnabled:R}=I(g.isBillPayDetectInsufficientFundsEnabled),{configValue:B}=U(Ce.zeniAssistConfig),Z=Zt(l),A=ct(l.userRole),K=m&&de(u?.loggedInUserRoleMap),_=B.user_ids!=null&&r?.userId!=null&&B.user_ids.includes(r?.userId),{isFeatureEnabled:H}=I(g.isInternationalPaymentShaVsOurFeatureEnabled),{isFeatureEnabled:W}=I(g.billPaySetupShowInternationalPaymentByWise);if(v.useEffect(()=>{F&&s.transactionDetails?.isDeleted===!0||l.isZeni===!0&&r?.userEmailDomain==="zeni.ai"&&Z===!1?D(!1):D(s.billActivities[0]?.isRealTimeApprovalEnabled&&(A||K||s.allApprovers.find(M=>M.user.userId===r?.userId)!=null||s.transactionDetails?.lastUpdatedByUserId===r?.userId))},[s.billActivities[0]?.isRealTimeApprovalEnabled,s.allApprovers,s.transactionDetails?.lastUpdatedByUserId,A,K,l.isZeni,Z,r]),v.useEffect(()=>{o!=null&&t(dt(o))},[o]),v.useEffect(()=>{b||s.fetchState=="Completed"||s.fetchState=="In-Progress"||(S(!0),t(ut(o??"",F,_,!1)))},[b,s,o,t]),v.useEffect(()=>{h||s.fetchState!="Completed"||s.transactionDetails?.billPayInfo.stage.code=="paid"||(f(!0),t(Pe(!1,F,_,W,o)),s.billActivities[0]?.isRealTimeApprovalEnabled===!0&&t(Ht()))},[h,s,o,t]),r==null)throw Error("Can't access address page without signing in...");return s.transactionDetails?.billPayInfo.stage.code==="draft"&&s.transactionDetails.isDeleted===!1?a.jsx(X,{to:`./edit${i.search}`}):s.deleteStatus.fetchState==="In-Progress"||s.cancelAndDeleteStatus.fetchState==="In-Progress"||s.cancelStatus.fetchState==="In-Progress"?a.jsx(Y,{fetchState:s.deleteStatus.fetchState,style:{boxShadow:`0px 2px ${w.sp1} ${c.colors.dropShadowNormal}`}}):a.jsxs(a.Fragment,{children:[a.jsx(De,{analytics:T,onLoad:M=>(te=>{o!=null&&te.trackBillPayBillDetails(o,s.isRecurring)})(M)}),a.jsx(Jn,{initialOpenThreadRequest:d??void 0,isShowDeletedBillsEnabled:F,location:i,navigate:e,isBillPayCommentingEnabled:G,isRealTimeApprovalEnabled:x,currentTenant:l,billId:o??"",isInternationalPaymentShaVsOurEnabled:H,hasZeniAssistAccess:_,isDetectInsufficientFundsEnabled:R})]})}const he=Oe.getLocalizedStrings().spendManagement.billPay.billDetails,Xn={containerWidth:new Ft(100,58)},Qn=J(function(e,t){const i=V.getSignedInUser(),o=e.tenantState.currentTenantId,c={userId:i?.userId??"",sessionId:i?.zeniSessionId??"",tenantId:o??""},r=t.showActionButtons,u=r&&t.file==null;return{uploadInvoiceEndPoint:`${Rt.communicationAgentMicroServiceBaseUrl}`,authParams:c,billId:t.billId,file:t.file,showAutofill:t.showAutofill,analytics:T,entityId:t.billId,showTitlebarIcon:r,showTitlebar:r&&t?.file!=null,uploadStatus:t.uploadStatus,shouldNotShowAttachment:u}},function(e,t){const i=V.getSignedInUser();return{onInvoiceUpload:o=>{o!=null&&(t.file!=null||t.billId!=null||t.isInitialEdit?(t.setPayload(o),t.setShowConfirmationPopup(!0)):e(Ue(o,t.isVendorRecommendationEnabled,t.billId)))},updateInvoiceUploadFetchState:o=>{e(oa({fetchState:{fetchState:o,error:void 0},billId:t.billId}))},onSkipAutofill:o=>{T?.trackBillPaySkipAutofill(),e(ht(o))},onDeleteClick:()=>{e(ia({billId:t.billId})),T?.trackInvoiceActionClick(t.billStage??"","delete",i?.userEmail??"",null)}}})(An);function C({appContent:e}){const t=se(),{billId:i}=ee(),o=q().pathname,c=o.includes("bill/new")||o.includes("/edit"),r=ve(),u=jt(),l=V.getSignedInUser(),s=ie(),{useFeatureGate:n,useDynamicConfig:d}=oe(),{isFeatureEnabled:p}=n(g.isVendorRecommendationFeatureEnabled),{isFeatureEnabled:m}=n(g.isShowDeletedBillsFeatureEnabled),{isFeatureEnabled:b}=n(g.isDepositAccountsFeatureEnabled),{isFeatureEnabled:S}=n(g.billPaySetupShowInternationalPaymentByWise),{configValue:h}=d(Ce.zeniAssistConfig),f=h.user_ids!=null&&l?.userId!=null&&h.user_ids.includes(l?.userId),x=k(L=>O(L)).companyName,[D,I]=v.useState(!1),[U,F]=v.useState(!1),[G,R]=v.useState(!1),[B,Z]=v.useState(),A=k(L=>Le(L,p,b,i));let K=A.fetchState,_=A.file,H=A.showAutofill;const W=k(L=>Ve(L,i??""));c===!1&&(K=W.fetchState,_=W.transactionDetails?.attachments?.[0],H=!1);const M=()=>{u.toggle()},te=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;v.useEffect(()=>{K==="Not-Started"&&(c&&U?F(!1):!c&&D&&I(!1))},[i]),v.useEffect(()=>{D||i==null||c||(I(!0),t(ut(i,m,f,!1)),U||(F(!0),t(Pe(!1,m,f,S,i)))),c&&!U&&(F(!0),t(Pe(!1,m,f,S,i)))},[D,U,c,i,t]);const ue={onOkClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","yes"),t(na({replaceBillData:!0,billId:i})),t(Ue(B,p,i))},onCancelClick:()=>{if(R(!1),!B)return;const L=_!=null?"replace":"upload";T?.trackInvoiceActionClick(te??"",L,l?.userEmail??"","no"),t(aa({file:B,billId:i}))}};if(l==null)throw Error("Can't access address page without signing in...");if(K==="Error"||W.fetchState==="Error")return a.jsx(Ae,{});if(K!="Completed")return a.jsx(Y,{fetchState:K,style:{backgroundColor:s.colors.grey5,boxShadow:`0px 2px ${w.sp1} ${s.colors.dropShadowNormal}`}});{const L=A.billPayInfo!=null&&A.billPayInfo.stage.code==="pending_approval"?A.billPayInfo.billStatus.code:A.billStage;return a.jsxs(di,{windowSize:r,children:[G?a.jsx(Cn,{titleComponent:a.jsx(pi,{children:he.overwriteTitle}),descriptionComponent:a.jsx(mi,{children:he.overwriteDescription}),primaryButtonText:he.buttons.yes,secondaryButtonText:he.buttons.no,action:ue,isEditPopup:!0}):null,r!=="small"?a.jsxs(ni,{children:[a.jsx(ci,{onClick:M}),a.jsxs(ai,{showContent:l?.userEmailDomain==="zeni.ai",children:[a.jsx(ii,{showAutofill:H}),a.jsx(oi,{showAutofill:H,children:x})]})]}):null,a.jsx(Qn,{billId:i,file:_,showAutofill:H,uploadStatus:A.uploadStatus,isVendorRecommendationEnabled:p,attachmentTitle:ei(c,W,A),setShowConfirmationPopup:R,setPayload:Z,showActionButtons:ti(c,A),isInitialEdit:!!A.isInitialEdit,billStage:L}),a.jsx(ui,{windowSize:r,children:e})]})}}function ei(e,t,i){let o,c;return e?(o=i.recurringConfig?.currentInstance,c=i.recurringConfig?.totalPaymentCycles):(o=t.transactionDetails?.recurringBillInstance,c=t.recurringBillConfigDetail?.totalPaymentCycles),t?.isRecurring===!0?a.jsxs(li,{children:[a.jsx(si,{children:`${he.recurringBill.recurringCycle}
2
2
  ${o}/${c}`}),a.jsx(ri,{})]}):void 0}function ti(e,t){const i=t.billActivities?.[0],o=t.billStage==="pending_approval"&&i?.areApprovalsSerialized===!0&&i?.currentPendingStepIndex===0;return e&&(t.billStage==="draft"||o)}const ai=$.div`
3
3
  display: ${e=>e.showContent?"flex":"none"};
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as Oe,e as Ue,a7 as V,T as Re,c8 as $e,O as ze,ad as Y,V as t,eI as He,f as Le,b as qe,x as u,a_ as Ne,L as Me,A as Je,eZ as R,de as Ze,e_ as Ge,aU as Ke,d4 as Qe,bo as Xe,e$ as Ye,a9 as et,o as z,f0 as tt,m as o,l as it,b6 as nt}from"./index-BBHMk1WY.js";import{a as m}from"./sentry-BHW-o2_3.js";import{n as y}from"./mui-dGxW217w.js";import{cg as ot}from"./zeni-epic-state-DhC3A3VG.js";import{g as at}from"./UploadAdditionalDocumentOverlay-Wl4Spdpn-BODbkPHU.js";import"./pdf-DjWcNDdq.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="a7ee60d6-f130-4127-91e4-a0f45cff2fd2",e._sentryDebugIdIdentifier="sentry-dbid-a7ee60d6-f130-4127-91e4-a0f45cff2fd2")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",Tt=({billPaySetupView:e,isDisabled:p,billpayApprovalView:x,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:b,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:de,onSetupApprovalRulesSectionClick:re,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:fe,onUpdatePrimaryFundingAccount:he,onUpdateAccountClick:ge,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:ye,onEnableBillPayClick:be,onEnableBillPaySuccess:H,onClickMenuIcon:Se,onInternationPaymentSetUpClick:we,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke,onSignUpClick:Ae})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),L=m.useRef(null),{fetchState:f,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,_=E.link_account.updateStatus,W=E.update_account.updateStatus,j=V(f),M=V(w.fetchState),J=V(_.fetchState),Z=V(W.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>$(e),[e]),values:$(e)});m.useEffect(()=>{!k&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&S(!0),k&&j==="In-Progress"&&f==="Completed"&&S(!1)},[l,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||J==="In-Progress"&&_.fetchState==="Completed"||Z==="In-Progress"&&W.fetchState==="Completed")&&P.reset($(e))},[j,f,P,e,J,_.fetchState,Z,W.fetchState]);const Ve=P.handleSubmit(G=>{b.trackEnableBillPay(),be()});m.useEffect(()=>{const G=P.watch((K,{name:Q})=>{Q!=null&&K!=null&&$e(()=>(async(X,De)=>{const c=De[F];if(X.includes(F)){if(X.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&he(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(U=>U.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&b.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(Q,K))});return()=>{G.unsubscribe()}}),m.useEffect(()=>{M==="In-Progress"&&w.fetchState==="Completed"&&H()},[H,M,w.fetchState]);const{commonSetUp:Fe,spendManagement:Ee}=ze.getLocalizedStrings(),{setUp:r}=Fe,{billPaySetup:a}=Ee.billPay,D=A?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||ot(d?.providerVerificationStatus?.code??"")),O=A?.isBillPayEnabled===!0,_e=D?r.setupVerifiedSubTitle:a.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(C.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":qe("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:w,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,companyOfficer:l,onClose:()=>S(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke})}),t.jsx(Ne,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:L,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(dt,{windowSize:i,children:_e}),We?t.jsx(ut,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Je,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Ve,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(R,{onClick:()=>{k||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?de?.():S(!0)},title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:je,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ie,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:E,allBankAccounts:Ie,sectionId:F,isDisabled:p,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:ye,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:b,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:Ae,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(R,{title:I.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:a.approvalSubTitle,header:I.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:re,status:I.length>0?Be:void 0})]})})}),s===!0?t.jsx(R,{title:T?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&b.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!O&&I.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:w.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!O,meetingUrl:v,analytics:b,productType:"bill_pay"})]})},lt=y.div``,ct=y.div`
1
+ import{y as Oe,e as Ue,a7 as V,T as Re,c8 as $e,O as ze,ad as Y,V as t,eI as He,f as Le,b as qe,x as u,a_ as Ne,L as Me,A as Je,eZ as R,de as Ze,e_ as Ge,aU as Ke,d4 as Qe,bo as Xe,e$ as Ye,a9 as et,o as z,f0 as tt,m as o,l as it,b6 as nt}from"./index-Djco7rZW.js";import{a as m}from"./sentry-CEBEW6Zv.js";import{n as y}from"./mui-Xyv5fYYp.js";import{cg as ot}from"./zeni-epic-state-Ddwqsd5-.js";import{g as at}from"./UploadAdditionalDocumentOverlay-Wl4Spdpn-V2EGBlJF.js";import"./pdf-BCMUg4JF.js";import"./core-Cd4LmmhG.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},p=new e.Error().stack;p&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[p]="a7ee60d6-f130-4127-91e4-a0f45cff2fd2",e._sentryDebugIdIdentifier="sentry-dbid-a7ee60d6-f130-4127-91e4-a0f45cff2fd2")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,o[5],o[5]),sectionRowGap:new u(o[5],o[9],o[9]),lastSectionPaddingBottom:new u(o[7],o[10],o[10]),iconWidthHeight:new u(20,o[4]),subTitlePaddingTop:new u(12,o[3]),subTitlePaddingBottom:new u(o[3],o[3]),overlayWidth:new u(100,100,59)},ee="billPaySetUpPage",F="billPayAccount",Tt=({billPaySetupView:e,isDisabled:p,billpayApprovalView:x,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ie,isAccountsEnabled:ne,isLocalCurrencyEnabled:oe,analytics:b,filesEndPoint:ae,authParams:le,accountsPromoConfig:ce,onBackClick:se,onBusinessVerificationSectionClick:de,onSetupApprovalRulesSectionClick:re,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onEstablishConnectionSuccess:fe,onUpdatePrimaryFundingAccount:he,onUpdateAccountClick:ge,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:ye,onEnableBillPayClick:be,onEnableBillPaySuccess:H,onClickMenuIcon:Se,onInternationPaymentSetUpClick:we,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke,onSignUpClick:Ae})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),L=m.useRef(null),{fetchState:f,updateStatus:w,accountUpdateStatus:Te,plaidConnectionDetails:E,allBankAccounts:Ie,companyBillPayInfo:A,isRefreshingViewInBackground:je,selectedCompanyOfficer:l,primaryFundingAccount:d,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:N,allApprovalRules:I,approvalRulesStatus:Be}=x,_=E.link_account.updateStatus,W=E.update_account.updateStatus,j=V(f),M=V(w.fetchState),J=V(_.fetchState),Z=V(W.fetchState),P=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>$(e),[e]),values:$(e)});m.useEffect(()=>{!k&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&S(!0),k&&j==="In-Progress"&&f==="Completed"&&S(!1)},[l,f,j]),m.useEffect(()=>{(j==="In-Progress"&&f==="Completed"||J==="In-Progress"&&_.fetchState==="Completed"||Z==="In-Progress"&&W.fetchState==="Completed")&&P.reset($(e))},[j,f,P,e,J,_.fetchState,Z,W.fetchState]);const Ve=P.handleSubmit(G=>{b.trackEnableBillPay(),be()});m.useEffect(()=>{const G=P.watch((K,{name:Q})=>{Q!=null&&K!=null&&$e(()=>(async(X,De)=>{const c=De[F];if(X.includes(F)){if(X.includes("fundingAccount")){if(c.fundingAccount.selectedOption!=null&&d?.id!=c.fundingAccount.selectedOption){const g=q.find(U=>U.id===c.fundingAccount.selectedOption);g!=null&&he(c.fundingAccount.selectedOption,g.accType)}}else if(c.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=c.account.selectedOption){const g=c.account.allOptions.find(U=>U.value===c.account.selectedOption);g!=null&&typeof g.label=="string"&&b.trackConnectBankLink(g.value,g.label,"bill_pay"),ge(c.account.selectedOption,d.id,d.accType)}}})(Q,K))});return()=>{G.unsubscribe()}}),m.useEffect(()=>{M==="In-Progress"&&w.fetchState==="Completed"&&H()},[H,M,w.fetchState]);const{commonSetUp:Fe,spendManagement:Ee}=ze.getLocalizedStrings(),{setUp:r}=Fe,{billPaySetup:a}=Ee.billPay,D=A?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||ot(d?.providerVerificationStatus?.code??"")),O=A?.isBillPayEnabled===!0,_e=D?r.setupVerifiedSubTitle:a.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||N==="In-Progress"||N==="Not-Started",B=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(C.colors.brandColorJadeDark);return t.jsxs(ct,{ref:L,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,"data-testid":qe("bill-pay-setup-drawer"),children:t.jsx(at,{authParams:le,filesEndPoint:ae,updateStatus:w,onEditFileName:Pe,onDeleteFile:xe,updateFilesEntity:ve,companyOfficer:l,onClose:()=>S(!1),onCompanyOfficerUpdated:Ce,onSendForVerificationClick:ke})}),t.jsx(Ne,{title:a.setupTitle,style:{zIndex:3},onBackClick:se,showMenuIcon:!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:Se,scrollableContent:L,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(dt,{windowSize:i,children:_e}),We?t.jsx(ut,{children:t.jsx(Me,{size:"ExtraLarge",start:!0})}):t.jsxs(lt,{children:[t.jsx(Je,{...P,children:t.jsx("form",{id:te(ee),onSubmit:Ve,children:t.jsxs(pt,{windowSize:i,children:[t.jsx(R,{onClick:()=>{k||l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!l.areAdditionalDocumentsRequestedForVerification||l.areAdditionalDocumentsSubmittedForVerification||l.userVerificationStatus?.code!=="require_info"?de?.():S(!0)},title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:je,isActiveWhileLoading:!0}),t.jsx(Ge,{connectedAccountProvider:ie,primaryFundingAccount:d,allFundingAccounts:q,plaidConnectionDetails:E,allBankAccounts:Ie,sectionId:F,isDisabled:p,onFetchLinkTokenClick:ue,onEstablishConnectionClick:pe,onUpdatePaymentAccountStatus:me,onUpdatePaymentAccountLoginStatus:ye,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:b,productType:"bill_pay",isAccountsEnabled:ne,onSignUpClick:Ae,pageName:"Bill Pay Setup",accountsPromoConfig:ce}),t.jsx(R,{title:I.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:a.approvalSubTitle,header:I.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:re,status:I.length>0?Be:void 0})]})})}),s===!0?t.jsx(R,{title:T?a.enableInternationalWireTitle:a.internationWireTitle,subTitle:a.internationalWireSubTitle2,header:a.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&b.trackEnableIntlWire(oe),we?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Xe,{title:h.code==="verification_pending"?a.tooltipTexts.pendingInternationalVerificationText:a.tooltipTexts.internationalVerificationFailed,children:t.jsx(st,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),D&&!O&&I.length>0?t.jsx(et,{formId:te(ee),primaryBtn:{label:a.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:w.fetchState==="In-Progress"||Te.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:a.terms,cancelBtn:{label:""},style:{padding:`12px ${z.sp3}`}}):null,t.jsx(tt,{isFooterRendered:D&&!O,meetingUrl:v,analytics:b,productType:"bill_pay"})]})},lt=y.div``,ct=y.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{y as Ce,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L as je,A as ke,aU as $e,c9 as Te,a9 as Be,o as a,ha as De,eu as Ve,ev as Ee,m as P,l as Le,gh as ze,f as Oe,d as _e}from"./index-BBHMk1WY.js";import{a as F}from"./sentry-BHW-o2_3.js";import{n as d}from"./mui-dGxW217w.js";import{F as Me,o as H,t as Re}from"./PaymentAccountSetupBillingAddressSection-9ma8SpIa-D1q0wO5y.js";import{F as Ue}from"./SetUpAccountSection-CctbMmoK-DwjJ4BtJ.js";import"./pdf-DjWcNDdq.js";import"./zeni-epic-state-DhC3A3VG.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-5tEXwrX4-vaDEJyz_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ebee6661-96d1-4c34-97d2-4809b980f5f3",e._sentryDebugIdIdentifier="sentry-dbid-ebee6661-96d1-4c34-97d2-4809b980f5f3")}catch{}})();const u={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},We={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:r,onClickMenuIcon:I,uiState:G,stripeKey:J,googleAPIKey:Q,companyId:X,onUpdateAccountClick:Y,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:de,handleResetCardPaymentErrorStatuses:re,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,B=h?.providerVerificationStatus,he=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",g=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:N(i),values:N(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(R=>{le(X)}),D=i.subscriptionBillingAddressSaveStatus;F.useEffect(()=>{const R=g.watch((U,{name:W})=>{W!=null&&U!=null&&Ie(()=>(async(b,s)=>{const A=s[x];if(b.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(b.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=Ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(c={...c,country:j})}else b===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else b.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&Y(A.account.selectedOption,h.paymentAccountId)})(W,U))});return()=>{R.unsubscribe()}});const V=f.mode==="light"?new k(f.colors.brandColorJadeLight):new k(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;L&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(Fe,{windowSize:o,children:[t.jsx(Ke,{windowSize:o,children:Se}),he?t.jsx(Ne,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Xe,{children:t.jsx("form",{id:q(K),onSubmit:ge,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ue,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:r,onFetchLinkTokenClick:Z,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:de,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ge(o,l.headers.billingAddress,me,Q,r)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:q(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Re,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:re,stripeKey:J,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},Fe=d.div`
1
+ import{y as Ce,e as Pe,T as xe,c8 as Ie,ad as k,O as Ae,V as t,x as C,a_ as ve,L as je,A as ke,aU as $e,c9 as Te,a9 as Be,o as a,ha as De,eu as Ve,ev as Ee,m as P,l as Le,gh as ze,f as Oe,d as _e}from"./index-Djco7rZW.js";import{a as F}from"./sentry-CEBEW6Zv.js";import{n as d}from"./mui-Xyv5fYYp.js";import{F as Me,o as H,t as Re}from"./PaymentAccountSetupBillingAddressSection-9ma8SpIa-DHVmTXZY.js";import{F as Ue}from"./SetUpAccountSection-CctbMmoK-BnyRcOnA.js";import"./pdf-BCMUg4JF.js";import"./zeni-epic-state-Ddwqsd5-.js";import"./core-Cd4LmmhG.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";import"./stripe-DMRn4zHo.js";import"./commonTypes-5tEXwrX4-wrBzjunM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new e.Error().stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="ebee6661-96d1-4c34-97d2-4809b980f5f3",e._sentryDebugIdIdentifier="sentry-dbid-ebee6661-96d1-4c34-97d2-4809b980f5f3")}catch{}})();const u={titleWidth:new C(343,580,726,826),setupDetailsRowGap:new C(12,P[5],P[5]),iconWidthHeight:new C(20,P[4]),subTitlePaddingTop:new C(12,P[3])},We={title:new _e("standardSemiBold","largeSemiBold")},K="billingSetupPage",x="payAccountSectionId",n="subscriptionBillingAddressSectionId",gt=({analytics:e,billingSetupView:i,connectedAccountProvider:p,isDisabled:r,onClickMenuIcon:I,uiState:G,stripeKey:J,googleAPIKey:Q,companyId:X,onUpdateAccountClick:Y,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionClick:ne,onEstablishConnectionSuccess:ie,handleCreateCardSetupIntent:oe,handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleAddCardPaymentSource:se,resetCardPaymentViewState:de,handleResetCardPaymentErrorStatuses:re,onBillingAddressSave:le,onAddressEditHandler:ce})=>{const f=Ce(),o=Pe(),{setupView:{paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,accountFetchStatus:T},cardPaymentView:m}=i,me=i.subscriptionBillingAddress,B=h?.providerVerificationStatus,he=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",g=xe({mode:"onSubmit",reValidateMode:"onChange",defaultValues:N(i),values:N(i),resetOptions:{keepDirtyValues:!0}}),ge=g.handleSubmit(R=>{le(X)}),D=i.subscriptionBillingAddressSaveStatus;F.useEffect(()=>{const R=g.watch((U,{name:W})=>{W!=null&&U!=null&&Ie(()=>(async(b,s)=>{const A=s[x];if(b.includes(n)&&s[n]!=null){const v=g.getValues(`${n}`).country;let c=s[n];if(b.includes(`${n}.street`)&&s[n].street!=null){const{addressValue:S}=s[n].street,j=Ve(S?.country);c={street:s[n].street??l.strings.empty,city:S?.locality??l.strings.empty,state:S?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:S?.countryCode??l.strings.empty,postalCode:S?.postalCode??l.strings.empty,secondaryInfo:s[n].secondaryInfo,suite:s[n].suite},v.selectedOption!==j.selectedOption&&(c={...c,country:j})}else b===`${n}.country`&&v.selectedOption!=null&&(c={...c,countryCode:Ee(v.selectedOption)});c!=null&&ce(c)}else b.includes(x)&&A.account.selectedOption!=null&&h?.paymentAccountId!=null&&h.zeniAccountId!==A.account.selectedOption&&Y(A.account.selectedOption,h.paymentAccountId)})(W,U))});return()=>{R.unsubscribe()}});const V=f.mode==="light"?new k(f.colors.brandColorJadeLight):new k(f.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:ye,card_payment_method:y}},common:l,billingSetupPage:E}=Ae.getLocalizedStrings(),Se=E.section.subTitle,{text:fe,subText:we}=ye,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,w=Me(y.header,y.titleText,y.protectedCardNo,m);let _;L&&(_={header:w.header,title:w.title,subtitle:w.subtitle,status:w.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:H(z).iconURL,width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o),alt:H(z).name}),color:new k(V)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,be]=F.useState(!1);return t.jsxs(He,{children:[t.jsx(ve,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:f.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:I}),t.jsxs(Fe,{windowSize:o,children:[t.jsx(Ke,{windowSize:o,children:Se}),he?t.jsx(Ne,{children:t.jsx(je,{size:"ExtraLarge",start:!0})}):t.jsx(ke,{...g,children:t.jsx(Xe,{children:t.jsx("form",{id:q(K),onSubmit:ge,children:t.jsxs(qe,{windowSize:o,children:[t.jsx(Ue,{connectedAccountProvider:p,paymentAccount:h,plaidConnectionDetails:ue,allBankAccounts:pe,header:y.header,sectionTitle:y.header,defaultSectionTitle:fe,defaultSectionSubTitle:we,sectionId:x,isDisabled:r,onFetchLinkTokenClick:Z,onEstablishConnectionClick:ne,onUpdatePaymentAccountStatus:ee,onUpdatePaymentAccountLoginStatus:te,onEstablishConnectionSuccess:ie,isError:B?.code==="require_info"||B?.code==="failed",icon:{element:t.jsx($e,{width:u.iconWidthHeight.valuePx(o),height:u.iconWidthHeight.valuePx(o)}),color:V},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:_,cardPaymentView:m,resetCardPaymentViewState:de,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ge(o,l.headers.billingAddress,me,Q,r)]})})})}),Te(g.formState.dirtyFields)?t.jsx(Be,{formId:q(K),style:{width:o==="small"?"auto":"100%",paddingTop:a.sp2,paddingBottom:a.sp2,height:a.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:a.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Re,{handleConfirmCardSetupIntent:ae,updateCardPaymentModalState:$,handleCreateCardSetupIntent:oe,handleAddCardPaymentSource:se,cardPaymentView:m,isCardPaymentOpen:G.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:re,stripeKey:J,cardSetupInProgress:M,setCardSetupInProgress:be})]})},N=e=>{const{paymentAccount:i,allBankAccounts:p}=e.setupView;return{[x]:{account:{selectedOption:i?.zeniAccountId,allOptions:p.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:De(n,e.subscriptionBillingAddress)[n]}},Fe=d.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{V as v,bR as U,bS as L,bT as V,iT as M,ag as W,O as q}from"./index-BBHMk1WY.js";import{a as f}from"./sentry-BHW-o2_3.js";import{GJ as z}from"./zeni-epic-state-DhC3A3VG.js";import{u as G}from"./ReviewOverlay-CxwoiOLC-B6NT77pC.js";import"./pdf-DjWcNDdq.js";import"./core-DuAc0oH1.js";import"./mui-dGxW217w.js";import"./recharts-CNVQrnca.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="92eba330-fbaa-4b3f-ba65-f28b08f3218a",e._sentryDebugIdIdentifier="sentry-dbid-92eba330-fbaa-4b3f-ba65-f28b08f3218a")}catch{}})();const{common:s,spendManagement:{billPay:x}}=q.getLocalizedStrings(),l=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:o,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,b]=f.useState(B(e,u)),[d,k]=f.useState(u),[T,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{b(p=>p.map((S,O)=>(clearInterval(I),O===T?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),T===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(B(e,!1)),()=>{clearInterval(I)}),[n.length,T,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,J(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:A,description:F}=K(m,h,R,d),P=e.fetchState==="Completed"&&h===0,N={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:()=>{r.trackBillPayBulkSubmit(i,g,_),o(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},$={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:()=>{const{title:p,description:S}=H(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(U,{titleComponent:v.jsx(V,{children:y.title}),descriptionComponent:v.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(G,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:P}})]})},B=(e,r)=>{const o=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:W("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&z(t.reviewErrors[0].reviewErrorCode),subTitle:Q(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?l.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!r||o,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},J=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=M([...o,t.isRecurring?"recurring":"one-time"])}),o},H=e=>{const{this_:r,these:o,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:l.popUps.reject.title.replace("<_payment_>",l.payments),description:l.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:l.popUps.reject.title.replace("<_payment_>",l.payment),description:l.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},K=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=o>1;let b="",d="";return e!=="Completed"||t?(b=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(b=l.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:l.bill).replace("<_has_>",n?m:c),d=r===0?l.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):`${r}/${o} ${l.reviewPage.billsReviewed.description.replace("<_bill_>",o>1?i:a).replace("<_is_>",w?g:_)}`),{title:b,description:d}},Q=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${l.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,J as getBillsUniqueType};
1
+ import{V as v,bR as U,bS as L,bT as V,iT as M,ag as W,O as q}from"./index-Djco7rZW.js";import{a as f}from"./sentry-CEBEW6Zv.js";import{GJ as z}from"./zeni-epic-state-Ddwqsd5-.js";import{u as G}from"./ReviewOverlay-CxwoiOLC-CCAU2STn.js";import"./pdf-BCMUg4JF.js";import"./core-Cd4LmmhG.js";import"./mui-Xyv5fYYp.js";import"./recharts-CwRU7bDL.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="92eba330-fbaa-4b3f-ba65-f28b08f3218a",e._sentryDebugIdIdentifier="sentry-dbid-92eba330-fbaa-4b3f-ba65-f28b08f3218a")}catch{}})();const{common:s,spendManagement:{billPay:x}}=q.getLocalizedStrings(),l=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:o,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[n,b]=f.useState(B(e,u)),[d,k]=f.useState(u),[T,E]=f.useState(0),[y,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{b(p=>p.map((S,O)=>(clearInterval(I),O===T?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(p=>p+1)},1e3)),T===n.length&&d&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&b(B(e,!1)),()=>{clearInterval(I)}),[n.length,T,d,e.fetchState,u,e]);const R=n.length,h=n.filter(p=>p.reviewStatus.code!=="error").length,D={onOkClick:p=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,J(e)),o("reject",p)},onCancelClick:()=>{w(!1)}},{title:A,description:F}=K(m,h,R,d),P=e.fetchState==="Completed"&&h===0,N={label:P?s.texts.close:i==="send_for_approval"?s.footer.submit:s.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:()=>{r.trackBillPayBulkSubmit(i,g,_),o(i)},style:i==="send_for_approval"?{minWidth:"92px"}:{}},$={label:i==="send_for_approval"?s.texts.goBack:s.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:()=>{const{title:p,description:S}=H(h);j({type:"reject",title:p,description:S,primaryButtonText:s.texts.confirm,secondaryButtonText:s.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},style:i==="approve"?{minWidth:"92px"}:{}};return v.jsxs(v.Fragment,{children:[C?v.jsx(U,{titleComponent:v.jsx(V,{children:y.title}),descriptionComponent:v.jsx(L,{children:y.description}),primaryButtonText:y.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:y.secondaryButtonText,action:D,isNotesIncluded:!0,isEditPopup:!0}):null,v.jsx(G,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&h===0},reviewItems:n,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!d,footerProps:{primaryButton:N,cancelButton:$,hideCancel:P}})]})},B=(e,r)=>{const o=e.fetchState==="In-Progress";return e.billsForReview.map(t=>({id:t.transactionId,leftSideText:{title:t.vendorName?t.vendorName:x.billDetails.newBillTitle,subTitle:`${x.billDetails.invoiceNo} ${t.invoiceNumber?t.invoiceNumber:s.strings.hyphen}`},rightSideText:{title:W("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&z(t.reviewErrors[0].reviewErrorCode),subTitle:Q(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?l.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:!!r||o,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},J=e=>{const r=e.billsForReview;let o=[];return r.forEach(t=>{o=M([...o,t.isRecurring?"recurring":"one-time"])}),o},H=e=>{const{this_:r,these:o,bill:t,bills:c,payment:m,payments:a}=s.texts;return e>1?{title:l.popUps.reject.title.replace("<_payment_>",l.payments),description:l.popUps.reject.description.replaceAll("<_this_>",o).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:l.popUps.reject.title.replace("<_payment_>",l.payment),description:l.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},K=(e,r,o,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=s.texts,w=r>1,n=o>1;let b="",d="";return e!=="Completed"||t?(b=l.reviewPage.billsReviewing.title.replace("<_bill_>",n?i:a),d=l.reviewPage.billsReviewing.description.replace("<_bill_>",n?i:a)):(b=l.reviewPage.billsReviewed.title.replace("<_bill_>",n?x.bulkActions.bills:l.bill).replace("<_has_>",n?m:c),d=r===0?l.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",n?i:a).replace("<_do_>",n?u:C):`${r}/${o} ${l.reviewPage.billsReviewed.description.replace("<_bill_>",o>1?i:a).replace("<_is_>",w?g:_)}`),{title:b,description:d}},Q=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${s.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${s.strings.colon} ${l.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,J as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{e as n,V as s,b,o as e}from"./index-BBHMk1WY.js";import{n as a}from"./mui-dGxW217w.js";import{o as l}from"./commonDimensions-Oz1tdAcx-CfFEyvRP.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="dd67dc56-1b38-45c7-ab42-258140b956e9",o._sentryDebugIdIdentifier="sentry-dbid-dd67dc56-1b38-45c7-ab42-258140b956e9")}catch{}})();const f=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=n();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.div`
1
+ import{e as n,V as s,b,o as e}from"./index-Djco7rZW.js";import{n as a}from"./mui-Xyv5fYYp.js";import{o as l}from"./commonDimensions-Oz1tdAcx-D3vjaJvc.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="dd67dc56-1b38-45c7-ab42-258140b956e9",o._sentryDebugIdIdentifier="sentry-dbid-dd67dc56-1b38-45c7-ab42-258140b956e9")}catch{}})();const f=(o,r)=>r===1?"roundedBox":o===0?"topRoundedBox":o===r-1?"bottomRoundedBox":"box";function g({content:o,boxType:r,isDisabled:d=!1,isNotClickable:t=!1}){const i=n();switch(r??"roundedBox"){case"topRoundedBox":return s.jsx(h,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",r),children:o});case"bottomRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(p,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const p=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{y as rt,e as lt,a7 as Te,V as t,c as Q,T as ct,cl as dt,B as pt,c8 as ut,ag as Ie,a6 as Ne,fB as mt,a as ft,a_ as yt,b as ht,c9 as gt,bR as xt,bS as St,bT as wt,L as bt,A as Ct,a9 as Dt,o as c,x as L,H as Le,O as _e,fC as Ot,f1 as $e,eu as vt,c2 as Tt,a8 as It,l as Ae,d as Nt,M as $t,m as N}from"./index-BBHMk1WY.js";import{a as _}from"./sentry-BHW-o2_3.js";import{n as d}from"./mui-dGxW217w.js";import{F6 as kt,bQ as J,FE as jt,FD as Ft,FF as Vt}from"./zeni-epic-state-DhC3A3VG.js";import{r as Pt,z as Lt}from"./CompanyOfficerDetailsSection-CrOIN4IW-C0LHfmel.js";import"./pdf-DjWcNDdq.js";import"./core-DuAc0oH1.js";import"./lottie-gxzZnsHo.js";import"./liveblocks-Bpp30XUG.js";import"./recharts-CNVQrnca.js";import"./dnd-C4MpAW48.js";import"./analytics-BmL_Mqn9.js";import"./plaid-LGb0iu_7.js";import"./utils-BAYl7YTg.js";import"./helper-Ckm10Uko-Cc4naTj-.js";import"./LabeledAddressValueField-BgWwd5Gw-CSQ6OzMg.js";import"./LabeledCountryMultiSelectField-BYYjzwUG-D8p7V8TS.js";import"./LabeledCreatableSingleSelectField-CISYMojq-CKfZ7pr7.js";import"./LabeledDocumentField-C_bcFxdY-zFfcoFTP.js";import"./LabeledNameField-mxSNQk3k-Bx8pFTYv.js";import"./commonTypes-5tEXwrX4-vaDEJyz_.js";import"./avatar-Dz7aEm3d-MxMPiump.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="c8039152-bf2e-4374-966a-bcbbaa8b7102",e._sentryDebugIdIdentifier="sentry-dbid-c8039152-bf2e-4374-966a-bcbbaa8b7102")}catch{}})();const w={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,N[3]),subTitlePaddingBottom:new L(N[3],N[3]),verificationDetailsRowGap:new L(12,N[5],N[5]),termsPaddingLeftRight:new L(N[0],N[3])},_t={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",O="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Fe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:b,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:k,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:K=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Qe=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Je=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(Q,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(Q,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(Q,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(Q,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,T=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${T<0?1:T+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${v}.${T}.phone`,{type:"custom"});const n=dt(Object.values(D).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);kt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=D[I],g=r?.email,F=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,P=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?J(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,ve=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&F!=null&&P!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&De!=null&&Oe!=null&&ve!=null&&S?.trackBusinessVerificationSend({email:g,birthday:F.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:P,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:De,lastName:Oe,email:ve},h,s?"Settings":void 0)})(),Me?.(I),K===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(v)&&Xe?.(g[v])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=Te(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${O}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const F=r?.fileIds??[];u.getValues(`${v}.${g}.fileIds`).forEach(l=>{F.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(Ne(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(Ne(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&C===!0?Bt:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(ke),onSubmit:at,children:[x&&C===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Qt,{children:t.jsxs(Jt,{children:[t.jsx(Pe,{}),ye&&t.jsx(Pe,{}),t.jsx(Kt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Pt,{companyOfficerData:D,allNationalityCountries:b,allOfficers:ae??[],sectionId:v,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:k,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Lt,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":k,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(Dt,{formId:Ve(ke),primaryBtn:{label:C?Fe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Fe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)B();else{const n=D[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email??"",P=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!P?((!l?.firstName||!l?.lastName)&&u.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),F=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email,P=y?.email;if(V){if(!P)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&F&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?J(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Ke,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:b?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Ft]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[v]:Object.values(E).map((f,k)=>{const s=f,x=Ot(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${k+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:vt(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&k===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Ve=e=>`${e}_form`,Rt=d.div`
1
+ import{y as rt,e as lt,a7 as Te,V as t,c as Q,T as ct,cl as dt,B as pt,c8 as ut,ag as Ie,a6 as Ne,fB as mt,a as ft,a_ as yt,b as ht,c9 as gt,bR as xt,bS as St,bT as wt,L as bt,A as Ct,a9 as Dt,o as c,x as L,H as Le,O as _e,fC as Ot,f1 as $e,eu as vt,c2 as Tt,a8 as It,l as Ae,d as Nt,M as $t,m as N}from"./index-Djco7rZW.js";import{a as _}from"./sentry-CEBEW6Zv.js";import{n as d}from"./mui-Xyv5fYYp.js";import{F6 as kt,bQ as J,FE as jt,FD as Ft,FF as Vt}from"./zeni-epic-state-Ddwqsd5-.js";import{r as Pt,z as Lt}from"./CompanyOfficerDetailsSection-CrOIN4IW-BY_HZ_Iv.js";import"./pdf-BCMUg4JF.js";import"./core-Cd4LmmhG.js";import"./lottie-D3b06MuY.js";import"./liveblocks-IsOzz8u-.js";import"./recharts-CwRU7bDL.js";import"./dnd-CAuW2Onh.js";import"./analytics-CxExYOQN.js";import"./plaid-C49TlIE8.js";import"./utils-PmQt3_O8.js";import"./helper-Ckm10Uko-CYRllgeW.js";import"./LabeledAddressValueField-BgWwd5Gw-X7xSKqD_.js";import"./LabeledCountryMultiSelectField-BYYjzwUG-BVI6zR8f.js";import"./LabeledCreatableSingleSelectField-CISYMojq-DSalrWgP.js";import"./LabeledDocumentField-C_bcFxdY-DFBxx_FY.js";import"./LabeledNameField-mxSNQk3k-BePXnKIp.js";import"./commonTypes-5tEXwrX4-wrBzjunM.js";import"./avatar-Dz7aEm3d-BJFW_gi9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="c8039152-bf2e-4374-966a-bcbbaa8b7102",e._sentryDebugIdIdentifier="sentry-dbid-c8039152-bf2e-4374-966a-bcbbaa8b7102")}catch{}})();const w={width:new L(343,580,726),titleWidth:new L(343,580,726,826),subTitlePaddingTop:new L(12,N[3]),subTitlePaddingBottom:new L(N[3],N[3]),verificationDetailsRowGap:new L(12,N[5],N[5]),termsPaddingLeftRight:new L(N[0],N[3])},_t={stepTitle:new Nt("h6Regular","h5Regular")},ke="businessVerificationPage",O="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:At,currency:je,footer:Fe,strings:{empty:Bt}}}=_e.getLocalizedStrings(),Ta=({businessVerificationDetails:e,allNationalityCountries:b,verficationDetailsFetchState:$,isRefreshingViewInBackground:R,filesEndPoint:a,authParams:E,productType:h,allIndustries:A,companyTitles:U,maxInsuredAmount:f,isDisabled:k,isSettings:s=!1,isOverlay:x=!1,analytics:S,isStepInProgress:C=!1,isTreasuryTransferInitiated:K=!1,transferDetails:M,onOverlayClose:oe,onAddressClick:re,onRegisteredAddressClick:ze,onBackClick:B,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,onSendForVerificationClick:Me,onEditFileName:le,onCompanyDetailsChanged:We,updateFilesEntity:ce,onDeleteFile:de,onDeleteFileList:Ze,onCompanyOfficerUpdated:Xe,saveNewAddressInLocalStore:pe,onSaveDetailsClick:qe,onClickMenuIcon:Ge,onExecuteTreasuryTransfer:He})=>{const Qe=rt(),p=lt(),{updateStatus:W,companyView:z,companyDetailsLocalData:o,companyOfficerLocalData:D}=e,Je=Te(W.fetchState),Z=z?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=Z==="unit"?t.jsxs(qt,{children:[i.terms.term1,t.jsx(Q,{href:i.terms.consentUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,t.jsx(Q,{href:i.terms.depositUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,t.jsx(Q,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(S?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,t.jsx(Q,{href:i.terms.tosUrl,onZeniLinkClick:()=>(S?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ye,Y]=_.useState(!1),[X,ue]=_.useState("save"),[ee,et]=_.useState(!1),u=ct({mode:"all",reValidateMode:"onChange",defaultValues:zt(e,A,U,b)}),{isValid:tt}=u.formState,q=z?.company.company.companyBillPayInfo,te=z?.company.company.companyTreasuryInfo,j=h==="zeni_treasury"?te?.companyVerificationStatus:q?.companyVerificationStatus,T=Object.values(D).findIndex(n=>n?.isSelectedForVerification===!0),I=`Officer_${T<0?1:T+1}`,at=u.handleSubmit(()=>{if(X!=="verification"&&ue("verification"),Z==="unit"&&D[I]?.isPhoneVerified!==!0)return void u.setError(`${v}.${T}.phone`,{type:"custom"});const n=dt(Object.values(D).map(r=>Object.values(r?.deleteFileStatusById??{}).filter(g=>g!=null))),m=Object.values(o?.deleteFileStatusById??{}).filter(r=>r!=null);kt(n.concat(m)).fetchState!=="In-Progress"&&tt&&((()=>{const r=D[I],g=r?.email,F=r?.birthday?.toString(),l=r?.ownershipInCompany,y=r?.firstName,V=r?.lastName,P=r?.titleAtCompany,G=r?.documentTypeSelectedForVerification,H=r?.phone,he=r?.addressStatus?.addressToCreate,ge=he!=null?J(he):void 0,xe=o?.companyDescription,se=o?.companyLegalName,Se=o?.companyIndustry,we=o?.phone,be=o?.website,Ce=o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0,ne=o?.primaryContactLocalData,De=ne?.firstName,Oe=ne?.lastName,ve=ne?.email;g!=null&&l!=null&&y!=null&&V!=null&&F!=null&&P!=null&&H!=null&&ge!=null&&G!=null&&xe!=null&&se!=null&&we!=null&&be!=null&&Se!=null&&se!=null&&Ce!=null&&De!=null&&Oe!=null&&ve!=null&&S?.trackBusinessVerificationSend({email:g,birthday:F.toString(),companyOwnership:l,firstName:y,lastName:V,companyRole:P,phone:H,formattedAddress:ge,documentTypeForVerification:G},{companyDescription:xe,legalName:se,phone:we,website:be.toString(),industry:Se,formattedAddress:Ce},{firstName:De,lastName:Oe,email:ve},h,s?"Settings":void 0)})(),Me?.(I),K===!0&&He?.())}),it=_.useCallback(pt((n,m)=>{(async(r,g)=>{r.includes(O)?We?.(g[O]):r.includes(v)&&Xe?.(g[v])})(n,m)},300),[]);_.useEffect(()=>{const n=u.watch((m,{name:r})=>{r!=null&&m!=null&&ut(()=>it(r,m))});return()=>{n.unsubscribe()}});const me=Te(e.companyDetailsLocalData?.addressStatus);_.useEffect(()=>{e.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&e.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&me==null&&(pe?.("company_registered_address",e.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${O}.registeredAddress`,e.companyDetailsLocalData?.addressStatus?.addressToCreate))},[e.companyDetailsLocalData?.addressStatus,e.companyDetailsLocalData?.registeredAddressStatus,me,pe,u]);const fe=z?.companyOfficers.slice(0,10).sort((n,m)=>n.user.createTime?.isAfter(m.user.createTime)===!0?1:-1),ae=fe?.map(n=>n.user),st=fe?.map(n=>n.role),nt={onOkClick:()=>{Y(!1),B();const n=[],m=z?.company.company.incInfo.fileIds??[];u.getValues(`${O}.fileIds`).forEach(r=>{m.includes(r)||n.push(r)}),st?.forEach((r,g)=>{const F=r?.fileIds??[];u.getValues(`${v}.${g}.fileIds`).forEach(l=>{F.includes(l)||n.push(l)})}),n.length!==0&&Ze?.(n)},onCancelClick:()=>{Y(!1)}},ot=Ie(Ne(f),f,je.currencySymbol).toUpperCase(),ie=j?.code==="pending_review"||j?.code==="verified",ye=(M?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return h==="zeni_treasury"&&j?.code==="pending_review"&&Je==="In-Progress"&&W.fetchState==="Completed"?t.jsxs(ea,{children:[t.jsxs(ta,{children:[t.jsx(mt,{}),t.jsx(aa,{windowSize:p,children:K===!0?i.submittedTitleWithTransfer:i.submittedTitle}),t.jsx(Yt,{isReadonly:!1,children:K===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Ie(Ne(M?.treasuryTransferMoneyLocalData?.amount?.amount??0),M?.treasuryTransferMoneyLocalData?.amount?.amount??0,je.currencySymbol)).replace("__account__",M?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),t.jsx(ft,{label:i.submittedButton,onClick:()=>{B(),oe?.()},variant:"primary"})]}):t.jsxs(Rt,{isSettings:s,children:[t.jsx(yt,{title:x&&C===!0?Bt:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:ee?1:4},onBackClick:()=>{gt(u.formState.dirtyFields)?Y(!0):B()},showBackButton:!s&&!x,showMenuIcon:!!s&&(p==="medium-compact"||p==="small"),onClickMenuIcon:Ge,rightSideComponent:x?t.jsx(ia,{"data-testid":ht("nav-bar-close-business-verification-overlay"),onClick:()=>{B(),oe?.()}}):null,source:"BusinessVerificationPage"}),Ye===!0?t.jsx(xt,{titleComponent:t.jsx(wt,{children:i.discardTitle}),descriptionComponent:t.jsx(St,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,t.jsxs(Mt,{windowSize:p,children:[(!x||C===!1)&&t.jsx(Ut,{windowSize:p,children:s?At.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?t.jsx(Wt,{children:t.jsx(bt,{size:"ExtraLarge",start:!0})}):t.jsx(Ct,{...u,children:t.jsxs("form",{id:Ve(ke),onSubmit:at,children:[x&&C===!0&&t.jsxs(Et,{children:[t.jsxs(Gt,{windowSize:p,children:[t.jsx(Ht,{windowSize:p,children:ie?i.businessVerificationDetails:ye?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!ie&&t.jsx(Qt,{children:t.jsxs(Jt,{children:[t.jsx(Pe,{}),ye&&t.jsx(Pe,{}),t.jsx(Kt,{})]})})]}),t.jsx(Be,{isReadonly:ie,children:i.verifyBusinessDetailsDescription})]}),t.jsxs(Zt,{children:[t.jsx(Pt,{companyOfficerData:D,allNationalityCountries:b,allOfficers:ae??[],sectionId:v,isRefreshingViewInBackground:R,connectedAccountProvider:Z,productType:"business_verification",updateFilesEntity:ce,onEditFileName:le,onOfficerAddressClick:re,onDeleteFile:de,isDisabled:k,filesEndPoint:a,authParams:E,isPopupOpen:ee,openPopup:et,onGetOtp:Re,onVerifyOtp:Ee,onResendOtp:Ue,companyTitles:U,isForTreasury:h==="zeni_treasury",isOverlay:x}),t.jsx(Lt,{companyDetails:o,businessVerificationProps:{companyVerificationStatus:j,isRefreshingViewInBackground:R},productType:"business_verification",showTreasuryFields:h==="zeni_treasury",hideNewOnboardingFields:q?.companyVerificationStatus?.code==="verified"&&!((o?.countriesOfOperations?.length??0)>0||o?.companySourceOfFunds!=null||o?.transactionVolume!=null||o?.purposeOfAccount!=null||o?.registeredAddressStatus!=null||o?.usNexus!=null),sectionId:O,isDisabled:j?.code==="pending_review"||j?.code==="verified"?"readonly":k,fileProps:{authParams:E,filesEndPoint:a,onEditFileName:le,onDeleteFile:de,updateFilesEntity:ce},onCompanyAddressClick:re,onRegisteredAddressClick:ze,connectedAccountProvider:Z,allIndustries:A,allNationalityCountries:b})]}),h==="zeni_accounts"?t.jsx(Xt,{windowSize:p,children:i.threadText.replace("__amount__",ot)}):null]})})]}),$==="Completed"&&(h==="zeni_treasury"?te?.companyVerificationStatus?.code!=="pending_review"&&te?.companyVerificationStatus?.code!=="verified":q?.businessVerificationStatus?.code!=="pending_review"&&q?.businessVerificationStatus?.code!=="verified")?t.jsx(Dt,{formId:Ve(ke),primaryBtn:{label:C?Fe.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="verification"&&W.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:p==="small"?w.width.valuePx(p):"auto",justifyContent:p==="small"?"space-between":"center"},helperStyle:{width:p==="small"?w.width.valuePx(p):"auto",paddingLeft:w.termsPaddingLeftRight.valuePx(p),paddingRight:w.termsPaddingLeftRight.valuePx(p),textAlign:p==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:C?Fe.back:i.saveDetailsButton,style:{width:p==="small"?"auto":C?"83px":"181px"},isLoading:X==="save"&&W.fetchState==="In-Progress",onClick:()=>{if(C)B();else{const n=D[I],m=o?.primaryContactLocalData;X!=="save"&&ue("save");const r=n?.email??"",g=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email??"",P=!!l?.firstName&&!!l?.lastName,G=y?.email??"",H=!!y?.firstName&&!!y?.lastName;return V&&!P?((!l?.firstName||!l?.lastName)&&u.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):!(G&&!H&&((!y?.firstName||!y?.lastName)&&u.trigger(`${O}.primaryContactName`,{shouldFocus:!0}),1))})(),F=(()=>{const l=D[I],y=o?.primaryContactLocalData,V=l?.email,P=y?.email;if(V){if(!P)return(y?.firstName||y?.lastName)&&u.trigger(`${O}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(l?.firstName||l?.lastName||l?.birthday||l?.nationalityCountryCode||l?.ownershipInCompany||l?.phone||l?.ssn||l?.titleAtCompany||l?.addressStatus?.addressToCreate||l?.fileIds!=null&&l?.fileIds.length>0||ae!=null&&ae?.length>0)return u.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0})();g&&F&&(S?.trackBusinessVerificationSave({email:r,birthday:n?.birthday?.toString(),companyOwnership:n?.ownershipInCompany,firstName:n?.firstName,lastName:n?.lastName,companyRole:n?.titleAtCompany,phone:n?.phone,formattedAddress:n?.addressStatus?.addressToCreate!=null?J(n?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:n?.documentTypeSelectedForVerification},{companyDescription:o?.companyDescription,legalName:o?.companyLegalName,phone:o?.phone,website:o?.website?.toString(),industry:o?.companyIndustry??"",formattedAddress:o?.addressStatus?.addressToCreate!=null?J(o?.addressStatus?.addressToCreate):void 0},{firstName:m?.firstName,lastName:m?.lastName,email:m?.email},h,s?"Settings":void 0),qe?.(I))}}},helperText:Ke,style:{padding:`12px ${c.sp3}`,zIndex:ee?0:4}}):null]})},zt=(e,b,$,R)=>{const{companyDetailsLocalData:a,companyOfficerLocalData:E,companyView:h}=e,A=_e.getLocalizedStrings().companyPassport,U=h?.companyOfficers!=null&&h?.companyOfficers.length>0;return{[O]:{companyDescription:a?.companyDescription??"",ein:a?.companyFiles.find(f=>f.documentType==="tax_ein"),companyId:a?.companyId??"",syncToken:a?.syncToken,companyLegalName:a?.companyLegalName??"",companyWebsite:a?.website?.toString()??"",companyAddress:a?.addressStatus?.addressToCreate,registeredAddress:a?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:a?.companyIndustry,allOptions:b?.map(f=>f.code)},companyPhone:a?.phone??"",companyTaxId:a?.taxIdOrEIN??"",primaryContactName:{firstName:a?.primaryContactLocalData?.firstName??"",lastName:a?.primaryContactLocalData?.lastName??""},primaryContactEmail:a?.primaryContactLocalData?.email??"",primaryContactUserId:a?.primaryContactLocalData?.userId,primaryContactSyncToken:a?.primaryContactLocalData?.syncToken,fileIds:a?.companyFiles.map(f=>f.fileId)??[],certificateOfIncorporation:a?.companyFiles.find(f=>f.documentType==="certificate_of_incorporation"),incDate:a?.incDate?.toDate(),typeOfIncorporation:{selectedOption:a?.typeOfIncorporation,allOptions:A.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:a?.stateOfIncorporation,allOptions:A.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:a?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:a?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:a?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:a?.transactionVolume,allOptions:[...Vt]},transactionVolumeDescription:a?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:a?.purposeOfAccount,allOptions:[...Ft]},purposeOfAccountDescription:a?.purposeOfAccountDescription??"",usNexus:a?.usNexus??"",usNexusTypes:{selectedOptions:a?.usNexusTypes??[],allOptions:[...jt]},regulatedStatus:a?.regulatedStatus??"",regulatedStatusDescription:a?.regulatedStatusDescription??""},[v]:Object.values(E).map((f,k)=>{const s=f,x=Ot(s?.documentTypeSelectedForVerification);return{userId:s?.userId,officerType:s?.officerType??`Officer_${k+1}`,name:{firstName:s?.firstName,lastName:s?.lastName},email:s?.email,fileIds:s?.fileIds??[],dob:s?.birthday?.toDate(),nationalityCountryCode:vt(s?.nationalityCountryCode,R.map(S=>S.countryCode)),ssn:s?.ssn,role:{selectedOption:s?.titleAtCompany,allOptions:$?.map(S=>S.code)},phone:s?.phone??"",ownership:s?.ownershipInCompany,officerAddress:s?.addressStatus?.addressToCreate,selectDocument:{front:$e(!0,s?.userFiles??[],x),back:$e(!1,s?.userFiles??[],x),selectDocumentType:x},isSelectedForVerification:!U&&k===0||(s?.isSelectedForVerification??!1),userVerificationStatus:s?.userVerificationStatus,treasuryUserVerificationStatus:s?.treasuryUserVerificationStatus,syncToken:s?.syncToken,isPhoneVerified:s?.isPhoneVerified,otpChallenge:s?.otpChallenge}})}},Ve=e=>`${e}_form`,Rt=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{j as D}from"./pdf-DjWcNDdq.js";import{a as w}from"./sentry-BHW-o2_3.js";import{j as ae,h as ne,i as se,l as oe,u as V,N as ie,k as re}from"./core-DuAc0oH1.js";import{_ as ce,aE as ue,y as de,aF as le,js as E,bk as pe,jz as j,ki as x,jQ as me,J as z,lk as fe,kv as ye,jO as B,ev as L}from"./index-BBHMk1WY.js";import{KZ as Se,ct as G,oD as ge,Dv as Ie,tZ as he,wI as be,zf as ke,zV as Oe,AO as De,Lk as Te,Ll as Ce,Lm as Ve,Ln as we,Lo as Ae,HS as Ne,Kl as _e,I2 as ve,hr as Fe,dj as xe,di as ze,dh as Ee,mK as je,mB as Be,my as Le,hj as Pe,oM as Re,oK as P,bG as R,oY as M,bJ as Me}from"./zeni-epic-state-DhC3A3VG.js";import{n as Ue}from"./mui-dGxW217w.js";import{c as U}from"./routePaths-D4MJQpeF.js";import{M as Ge}from"./MobileAppDrawer-D5Za8CIX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2328855e-eda9-4613-b57f-5f6d92252646",e._sentryDebugIdIdentifier="sentry-dbid-2328855e-eda9-4613-b57f-5f6d92252646")}catch{}})();const Ke=Ue.div`
1
+ import{j as D}from"./pdf-BCMUg4JF.js";import{a as w}from"./sentry-CEBEW6Zv.js";import{j as ae,h as ne,i as se,l as oe,u as V,N as ie,k as re}from"./core-Cd4LmmhG.js";import{_ as ce,aE as ue,y as de,aF as le,js as E,bk as pe,jz as j,ki as x,jQ as me,J as z,lk as fe,kv as ye,jO as B,ev as L}from"./index-Djco7rZW.js";import{KZ as Se,ct as G,oD as ge,Dv as Ie,tZ as he,wI as be,zf as ke,zV as Oe,AO as De,Lk as Te,Ll as Ce,Lm as Ve,Ln as we,Lo as Ae,HS as Ne,Kl as _e,I2 as ve,hr as Fe,dj as xe,di as ze,dh as Ee,mK as je,mB as Be,my as Le,hj as Pe,oM as Re,oK as P,bG as R,oY as M,bJ as Me}from"./zeni-epic-state-Ddwqsd5-.js";import{n as Ue}from"./mui-Xyv5fYYp.js";import{c as U}from"./routePaths-BKDf21Fs.js";import{M as Ge}from"./MobileAppDrawer-CYfAM9Mw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2328855e-eda9-4613-b57f-5f6d92252646",e._sentryDebugIdIdentifier="sentry-dbid-2328855e-eda9-4613-b57f-5f6d92252646")}catch{}})();const Ke=Ue.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as n,L as r,o as a}from"./index-BBHMk1WY.js";import{n as i}from"./mui-dGxW217w.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b47872d8-7fa2-4095-9a65-64c1aca34f2d",e._sentryDebugIdIdentifier="sentry-dbid-b47872d8-7fa2-4095-9a65-64c1aca34f2d")}catch{}})();const d=i.div`
1
+ import{V as n,L as r,o as a}from"./index-Djco7rZW.js";import{n as i}from"./mui-Xyv5fYYp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b47872d8-7fa2-4095-9a65-64c1aca34f2d",e._sentryDebugIdIdentifier="sentry-dbid-b47872d8-7fa2-4095-9a65-64c1aca34f2d")}catch{}})();const d=i.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  height: 100%;