@zeniai/web-cockpit-ui 1.15.46-dev → 1.15.47-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/dist/assets/{ACHDetailsPage-D87WwXK_-CBHF5jjP.js → ACHDetailsPage-qOWGYckl-DjJAccbn.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DNhHi_BA-DVKmGARz.js → AIPerformancePage-DJBLMHvs-iLI9KDLf.js} +18 -18
  3. package/dist/assets/AccountInfoPage-BulzquHY-COb5jSNJ.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-WRX3aOoA-BND3wWTU.js → AccountInfoPageContent-C0dKzQoF-BOCBaroQ.js} +12 -12
  5. package/dist/assets/{AccountLockedInfoModal-hM0l2JoS-BM4SnK9N.js → AccountLockedInfoModal-Cy1ahm9k-BxoMcyLt.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D6AdnAnF-BP-45utn.js → AccountReconDetailsDrawerPage-DQdf3Wk4-CbpITftp.js} +1 -1
  7. package/dist/assets/{AccountRow-kn3U0JbW-CqKCifJj.js → AccountRow-D1Jqgk7o-DewC0XFv.js} +15 -15
  8. package/dist/assets/{AccountsPromoCardStack-D5XHZwyh-DkX-4Lp4.js → AccountsPromoCardStack-Vwu9llOu-CnOXSXsq.js} +1 -1
  9. package/dist/assets/AddAddressForCardDrawer-DK5lnDS9-Ctbcl8_3.js +6 -0
  10. package/dist/assets/{AddToWalletPage-D7DeS_0t-DEAoUKiM.js → AddToWalletPage-C6oLCkE7-C3vtPZC0.js} +3 -3
  11. package/dist/assets/{AgingReportsPage-bssKBslp-BzwEfw-z.js → AgingReportsPage-DAe2E6ey-BAsTv0B2.js} +1 -1
  12. package/dist/assets/{AllUserItems-DodKPXrb-CcYwQFSA.js → AllUserItems-6sLrlL8E-DpxFsjkv.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-NVrKyHd2-Bw462lTM.js → ApAgingDetailPage-4SahVbGx-ZM0Bqd_F.js} +3 -3
  14. package/dist/assets/{AppBasePage-8vs83psd-DYOlChcn.js → AppBasePage-CtA9oCF7-D92abhWD.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-D_del0Ko-C7wcXF5_.js → AppDrawerContent-BBkCJjf8-BybjdyD6.js} +2 -2
  16. package/dist/assets/{ApprovalRulesSettingsPage-GZSj0TP5-DNVzaP3v.js → ApprovalRulesSettingsPage-XgvVBRfh-DhsteiN3.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DPWhkZ92-C-OV2nhV.js → ArAgingChart-zTqy57EG-Dm-WcY4b.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-60QCPZos-BlpsMiLT.js → ArAgingDetailPage-DohpExH8-CLRbt3qX.js} +1 -1
  19. package/dist/assets/{AttachmentView-CbtcWV-6-CFsaig-u.js → AttachmentView-DAEi6O2i-CRQnb5l5.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CNsbo5NW-D5-9rntY.js → BankAccountSection-I-uZ-Yd2-0VZeMO0Z.js} +13 -13
  21. package/dist/assets/{BankAccountWarningSection-DNsentDt-DXrUqr4R.js → BankAccountWarningSection-BR28A3L4-D_D37qnN.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-CLotTlUf-Cr8Fvyc2.js → BankConnectionsSettingsPage-D8V4bq-1-wYDIpQQB.js} +9 -9
  23. package/dist/assets/{BillDetailPage-Cg3qZdsc-Bu00bZom.js → BillDetailPage-BxfrpUM5-DDyFcvs1.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-DbA9lF8v-D3H9v0x8.js → BillPayApprovalRuleDetailPage-fsIdZfeP-CA1hTToh.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-D5H-E5f4-Cy9lWX0_.js → BillPayApprovalRulesPage-CawYbj9Y-C8NzV5so.js} +10 -10
  26. package/dist/assets/{BillPayPromoPage-x2Q3c9G9-CVZuA77d.js → BillPayPromoPage-DmRx1E8m-Busj2ugi.js} +6 -6
  27. package/dist/assets/{BillPaySetUpPage-CwRy-Uno-xx3edT5K.js → BillPaySetUpPage-BiMDn7ZO-Bk6vBQAJ.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-D7PgDMId-BnPPtdGW.js → BillingSettingsPage-Co8Gw-go-BVCxX7gI.js} +8 -8
  29. package/dist/assets/{BillsBulkReviewDrawerPage-DStkOLXt-BhfIlk7A.js → BillsBulkReviewDrawerPage-CfqxLPzs-BaPIvRkm.js} +1 -1
  30. package/dist/assets/{BoxItem-djG6IQ4o-2WZ3HHBU.js → BoxItem-mA2l070e-DKIWhdy7.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-fTHIGXBy-a0eiadoT.js → BusinessVerificationPage-iHBNaf7w-DrLXb-Iq.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BNT6moWK-CsPKCw8x.js → CardNumberSubText-H4wtwe6R-CVi7j9Nt.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-G5wL_XNp-CJEFraK5.js → CashbackDetailPage-Bo_bsGqF-ButLTwgN.js} +5 -5
  34. package/dist/assets/{ChargeCardDetailPage-CSPeag3v-BP9bsRfj.js → ChargeCardDetailPage-DKWkYV7Z-CddIMjKt.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-BqN-1uhQ-rbpM72ul.js → ChargeCardListPage-Dfa_PX3G-CgibIpQD.js} +5 -5
  36. package/dist/assets/{ChargeCardListTable-Bii0Wthf-T5JYYMDA.js → ChargeCardListTable-GyVhj7uY-DDdTqmU3.js} +1 -1
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-jnLm7dsX-BCjpKu7L.js → ChargeCardPaymentHistoryPage-7dGO_5iu-lPBFnLZd.js} +1 -1
  38. package/dist/assets/ChargeCardPromoPage-CdWji5S5-BrnExXgk.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-CORgMz4D-B3XpYA3g.js → ChargeCardSetupPage-vwbBIYjC-BAacWjKb.js} +3 -3
  40. package/dist/assets/{ChargeCardStatementsPage-CyFh62V3-CVApFNSe.js → ChargeCardStatementsPage-wAqoDc2D-BFeCByOF.js} +2 -2
  41. package/dist/assets/{CheckDepositDrawerPage-4OsC9vnS-C8KgAtNZ.js → CheckDepositDrawerPage-C3wR53BH-B78xbDtI.js} +4 -4
  42. package/dist/assets/{CollapsableReportTable-BBZQoM0P-CNldMsB_.js → CollapsableReportTable-D2dtXfS_-BdWkgbsB.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-BxcbL0xy-CPql_B00.js → CompanyOfficerDetailsSection-C1yoAdZ6-B9_PbeF5.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DZkmzhcF-DdwaCSTK.js → CompanyPassportCard-BZ_FCAKT-Cwwjpb-3.js} +3 -3
  45. package/dist/assets/{CompanyPassportPage-FbqUpLTv-C5g27TMH.js → CompanyPassportPage-Cq6S4mp6-UdzUDRuj.js} +24 -24
  46. package/dist/assets/{CompleteProfile-CHAiqldO-Bdzud2Sl.js → CompleteProfile-CBT17ax6-DYIsbIsy.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-D44X4kyc-CoZYKMrw.js → ConfettiBurst-DgE_527a-D7rXkSFC.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-Cf0vGOip.js → ConstrainedInnerElement-BeIpAPjB-BmJp_gGJ.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-DDLhdHIQ-DkYXq-0b.js → CreateOrEditVendorPage-ClqI4j2U-BHL0P8Te.js} +6 -6
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Cqp3cX11-Ch0fJLe_.js → CreditCardPaymentDrawerPage-CtM4-nS0-BKJTmcZU.js} +6 -6
  51. package/dist/assets/{CurrencySelectField-BsReHqXI-Cpmmr7ON.js → CurrencySelectField-CP7MSQnS-BpXGyUMj.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-COSoNwiL-XcudDVcs.js → CustomerOnboardingActivationPage-DejhV7FX-8Rok_hOE.js} +3 -3
  53. package/dist/assets/CustomerOnboardingContainerPage-B1gZ-xOx-BCHT9pOT.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CkVIT-8v-D6-I3CVi.js → CustomerOnboardingDetailPageSkeleton-DTd8-dHU-BMw7YnFS.js} +6 -6
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-g9MUens3-BHwD_Moa.js → CustomerOnboardingNoStepsPage-DW7kpMxd-lyLq4A0Q.js} +2 -2
  56. package/dist/assets/{CustomerOnboardingPage-BMwDeAmg-Dk5C_vBC.js → CustomerOnboardingPage-LCVn__U7-BhQ2ekET.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-cfTmZUUq-DFjdDHbL.js → CustomerOnboardingProductSuitePage-CniahiZc-DWeQdDUe.js} +10 -10
  58. package/dist/assets/{Dashboard-CIMGd6vk-C9Y8AV96.js → Dashboard-CnwoksS9-Cj6x2TqP.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-C4vCCh_n-BRXPWSt1.js → DashboardReportPage-qKhiq9te-FT01lDlD.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-DAlY419Q-DP9sfj2H.js → DashboardSidebarBackgroundAnimation-CHpFVLim-B5TP9TTq.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-BerAtS0--BKjebtYX.js → DepositAccTransactionItem-CIY2jU_O-CNSGbCvC.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-CZ1vmnPr-B4TVnkzE.js → DepositAccTransactionListPage-DfhVFXvq-B738llu8.js} +3 -3
  63. package/dist/assets/{DomesticWireDetailsPage-E4qLX6pw-Bw3PSNwc.js → DomesticWireDetailsPage-DSdkrnnn-5AqQiSCx.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-Boa6Fcbv-D-65-zcn.js → DownloadOverlay-DLbD0wMn-DFyBDJuM.js} +1 -1
  65. package/dist/assets/{DrawerPage-Cb-dsS3c-DReTV4LX.js → DrawerPage-CCZXoj1F-DCS5WSNv.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-CndPSw44-DxRcWXPA.js → EditPeoplePage-CDUEfjvF-CJoR5dq4.js} +4 -4
  67. package/dist/assets/{EditReimbursementDetailPage-wT1IlD4U-Va_HPFVw.js → EditReimbursementDetailPage-BopPLndD-Dub2o4ld.js} +1 -1
  68. package/dist/assets/EntityDetailPage-C8mC_pOt-DoBBFGRj.js +18 -0
  69. package/dist/assets/{EntitySummarySection-BOEYtn_o-CPte8tJh.js → EntitySummarySection-BVG0N8QO-B29acNJ9.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-DXZjyYrU-ShMVKnR0.js → ExpenseAutomationOverviewPage-DDTNyUiN-C6hbKIHH.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-B8ptcdZd-BOgjzwCH.js → ExpenseAutomationPage-DG1EbsCZ-Cpa7UC9R.js} +73 -73
  72. package/dist/assets/{ExpressPayPage-DitysgOF-CIeBsr4O.js → ExpressPayPage-DBxaDfRz-CvEgT1Dz.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-G9whxotT-BiSE24Wc.js → FeaturePreviewPage-ezX4YJ8n-DZlh_My6.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BERdmvvn-UqgRbJ9-.js → FollowStepsSection-BCWwwk1I-Dr0Igucn.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-DXH3le_Z-jpZIGute.js → GlobalReviewListPage-C1Tf-wcw-PWdcxabv.js} +1 -1
  76. package/dist/assets/{InformationCardStack-CXqr6wgh-ChZD3ssd.js → InformationCardStack-Czrqxdi_-DFscx6Un.js} +2 -2
  77. package/dist/assets/{InsightsCardStack-DHmkYfCM-wxboA7g4.js → InsightsCardStack-B50r1AKc-Fu1xeA5s.js} +5 -5
  78. package/dist/assets/{InsightsSection-o1r7-jTU-BEvpe3bJ.js → InsightsSection-BJeBGbPg-Bqi1LIqW.js} +5 -5
  79. package/dist/assets/{IntegrationsSettingsPage-BngX4y9j-DAbz7zwm.js → IntegrationsSettingsPage-BMSATQJz-pQzp159S.js} +2 -2
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-B6OWKscw-Ami9wVCG.js → InternationalWireSwiftDetailsPage-OirC9N1X-BxespejQ.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-D-h205ua-C2Fi9WeW.js → InternationalWireVerificationPage-CqRSwMQj-e_Ufmweg.js} +3 -3
  82. package/dist/assets/{InviteFormPage-Cpx6GKXE-BjzkKS1U.js → InviteFormPage-DlqcSLWX-NYU1sZxR.js} +1 -1
  83. package/dist/assets/{InvitePageListView-R9GI99rG-Lu6_t1J3.js → InvitePageListView--BKiq1KG-ChG4UMr4.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-nhoOZCwu-CevGBmSS.js → InvitePeoplePage-i3nljXL1-BmSEgqup.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-IRD6N1t0-e8npmlKC.js → InvoiceUploadSection-BTcYpKEd-Di1o68Bp.js} +4 -4
  86. package/dist/assets/{IssueChargeCardPage-ztNdugMI-ni4X5-nS.js → IssueChargeCardPage-kFsPFGzp-XYgLhons.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-CTGbS3xZ-BV3lWB3L.js → LabeledAddressValue-COZsPbp0-DczoqRAG.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-BPAdd5QC-DJSlRcrD.js → LabeledAddressValueField-ig7qAURp-BZ_M96P1.js} +8 -8
  89. package/dist/assets/LabeledControlledCheckBoxField-BL_01jee-D2U3D5J4.js +16 -0
  90. package/dist/assets/{LabeledCountryMultiSelectField-BQNPVmeO-w6euYfRf.js → LabeledCountryMultiSelectField-H4Sug2-M-CL-o7tf1.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BaooQYnP-CHclcBym.js → LabeledCreatableSingleSelectField-DWEYfaTn-33WE7LED.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-13QPp-85-BBjOcC33.js → LabeledDocumentField-heF_7XXJ-Bpbc_iNk.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-BY230oMD-CrAT0eng.js → LabeledDropDownFormattedTextField-C3Vxy6UO-D0-FCpWt.js} +1 -1
  94. package/dist/assets/{LabeledText-DNr87c0J-DsOX7s5A.js → LabeledText-wJQ0djD--Dnw-us69.js} +4 -4
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-C5jC6DTy-D9w1YJzr.js → LabeledUserSingleSelectWithSubtitlesField-Cd04mYwQ-B8JTmQUc.js} +4 -4
  96. package/dist/assets/{LabeledZeniRolesDropDownField-cBcF5EGS-BkGlWFfU.js → LabeledZeniRolesDropDownField-5M654Yu--Ciiad84H.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-KzSZJjAE-D1T5_exi.js → LinkJETransactionPage-DwNoJ7YB-DNfE-nTn.js} +1 -1
  98. package/dist/assets/{LockCardPage-_gavDDon-Blle7NDi.js → LockCardPage-L5EAfQK5-CrxGoWXN.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-DLIUSW0S-B-zpTP7v.js → LowBalancePopup-CIN_PWxf-CcAZgcPw.js} +1 -1
  100. package/dist/assets/MagicLinkACHDetailsPage-DGLKqo6T-DNpDGuyV.js +1 -0
  101. package/dist/assets/MagicLinkDomesticWireDetailsPage-Cvp9N2Q2-CSBjjhkO.js +1 -0
  102. package/dist/assets/MagicLinkInternationalWireDetailsPage-CB_rrPUd-Dl0YcL-A.js +1 -0
  103. package/dist/assets/{MagicLinkSuccessPage-C_-bPKst-D0jsLGP2.js → MagicLinkSuccessPage-Da-ZSMMO-DzPXDbZC.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-CL4kaSh4-CQQBDKMG.js → MagicLinkTitleSection-B33mBOG9-35QrlIpm.js} +1 -1
  105. package/dist/assets/MailingDetailsSection-qtLrrSYF-CTuCvSpe.js +21 -0
  106. package/dist/assets/{MyBankConnectionsSettingsPage-BRZy0odC-BOBb3itW.js → MyBankConnectionsSettingsPage-Br6kJVpd-CbTGDrzB.js} +1 -1
  107. package/dist/assets/{MyPendingActivationChargeCardListPage-CpKTrDUb-CccCbcXy.js → MyPendingActivationChargeCardListPage-DkhJVWBZ-Bfy4AAuw.js} +1 -1
  108. package/dist/assets/{MyProfileSettingsPage-BblMMN2f-ckIUFFkd.js → MyProfileSettingsPage-CSY7ZEU4-BWI8MuR_.js} +1 -1
  109. package/dist/assets/{NavBarWithPicker-DqS6nFbq-DgwLutRx.js → NavBarWithPicker-Csqyzu5C-DIH1ugF7.js} +5 -5
  110. package/dist/assets/{NavigationArrow-DIFM2upZ-Dnb7czTw.js → NavigationArrow-2B-EgvgC-BK9qtbBJ.js} +1 -1
  111. package/dist/assets/{NavigationDots-Db1I_vts-Bg46VZRN.js → NavigationDots-BrWdpJ3R-DuPdXi3_.js} +4 -4
  112. package/dist/assets/{NewGlobalMerchantPage-CC8HJjFw-HIuSKnJN.js → NewGlobalMerchantPage-BSX2ajAh-B0IxS0GP.js} +1 -1
  113. package/dist/assets/{NoDataChart-BpVOzQOW-DKnao5o4.js → NoDataChart-CggIXqiK-C19sXnTb.js} +1 -1
  114. package/dist/assets/{NoDataTable-BfkONzLU--qJ2Vge1.js → NoDataTable-CX24L0oK-DtsfPk0l.js} +1 -1
  115. package/dist/assets/{NotFoundPage-DOlS4ELp-8diqNBZH.js → NotFoundPage-Brtxr86A-Bnm1jjAT.js} +7 -7
  116. package/dist/assets/{NotificationSettingsPage-BdWAxlcA-FUERqOBl.js → NotificationSettingsPage-BV3iZaL6-CCJncOdH.js} +1 -1
  117. package/dist/assets/{NotificationsListConfig-DEVHMfQH-Dgi-054y.js → NotificationsListConfig-DWL6JqJ8-BmoQcL7E.js} +1 -1
  118. package/dist/assets/{NotificationsPage-DpnFQdLV-CIDAlFuB.js → NotificationsPage-CMVuwCT_-BEJSVcvU.js} +1 -1
  119. package/dist/assets/{OpExByVendorPage-CQxchyEe-CO-1QL4H.js → OpExByVendorPage-CbcnZ2ea-Di7lgu5r.js} +4 -4
  120. package/dist/assets/{OverlayContainerPage-D4QU0p4o-B4ZkmBb9.js → OverlayContainerPage-D4QU0p4o-BsMR9Xyx.js} +1 -1
  121. package/dist/assets/{PandLWithForecastPage-B3RkfhSi-Dsp_T8tg.js → PandLWithForecastPage-BrBPv1Bg-Du_wsqJx.js} +2 -2
  122. package/dist/assets/{PaymentAccountSetupBillingAddressSection-6eOH3fw_-DdzzCUgo.js → PaymentAccountSetupBillingAddressSection-Bvo4Jnoy-D8BlefcU.js} +7 -7
  123. package/dist/assets/{PeoplePage-koDszqCP-CWui0d4h.js → PeoplePage-BruWpkMP-BXfRWFlI.js} +1 -1
  124. package/dist/assets/{Preview-yyD_tsB_.js → Preview-CngKNrtz.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-DLd90FFJ-BgsIDisq.js → ProductsCarousel-CYHholgU-BXEP4AT5.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-QcN1Q7jq-J94-Tlmy.js → PromoBaseCards-CT84iiQE-BQw_xgzZ.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-CdkgNo4F-DpPxxrHx.js → QBOConnectionDialog-D3ymRiGZ-Ci8f_0BR.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-DqsDS8kk-DVOL9KAa.js → QBOSetupSection-DWIulUc2-DlIiV7jG.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-5hcvF_79--V70BOOS.js → ReimbursementApprovalRuleDetailPage-p0TDyMiG-CZeD0AHX.js} +2 -2
  130. package/dist/assets/{ReimbursementApprovalRulesPage-D2S6QByB-BzvCV9yX.js → ReimbursementApprovalRulesPage-B_EfFwpz-_OWCEpKq.js} +9 -9
  131. package/dist/assets/{ReimbursementDetailPage-DUzei4Rg-9uRBue4P.js → ReimbursementDetailPage-CK_qij-l-D-oREEKY.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-GXdDXSVY-DHkphGMK.js → ReimbursementPromoPage-DCiu630p-D5gOb-J0.js} +1 -1
  133. package/dist/assets/{ReimbursementSetUpPage-CNWWhLUf-CNnBxBJq.js → ReimbursementSetUpPage-BbtZutE2-DuU_ZUl9.js} +5 -5
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-C-1xyI7u-Bz3-f1Cr.js → ReimbursementsBulkReviewDrawerPage-CyLz0tNA-CsTtoUoK.js} +1 -1
  135. package/dist/assets/{ReloadCard-CKhoNNOP-CkJThvIh.js → ReloadCard-CU39OBXS-B7fXlVdj.js} +6 -6
  136. package/dist/assets/{ReportTableViewSelector-BOX3zhPs-DuwxGH5U.js → ReportTableViewSelector-YjVuyNWv-DzbC_6W1.js} +26 -26
  137. package/dist/assets/{ReportsPage-CnYVgGpw-C9lM7ze2.js → ReportsPage-gqc75ljk-7NT5JGPF.js} +1 -1
  138. package/dist/assets/{RevenueChart-BXDE5rdI-C91Sl-p2.js → RevenueChart-CtFVmX84-uni5BcG_.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-Dsh7uv3t-BTN4xADy.js → ReviewDetailsPage-Kew5uZCA-Mv30WXv0.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-BL4VJPxb-D6vjuRhs.js → ReviewOverlay-f-2s-XBM-D-MuCoTz.js} +17 -17
  141. package/dist/assets/RoleWithToolTip-Cw9gD3N5-ConmKNG4.js +22 -0
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Tx2QB7zA-BWh0cJz3.js → ScheduleDetailsFixedAssetsPage-DjjYlUtf-D-MjZ88W.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-2-cPD7pl-BswK6aMa.js → ScheduleDetailsPage-BzJS3UZ5-DmfXVQSd.js} +3 -3
  144. package/dist/assets/{ScheduleSequenceTable-CffdpR_k-C5zU_dG9.js → ScheduleSequenceTable-CVDT5FaP-B8HlWODo.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-BdAMCIyo.js → ScreenRoutes-BOS_ZMWh.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-Tadm9fSr-BLYLZVyR.js → SetUpAccountSection-6NXF_yfU-BamPpzSM.js} +1 -1
  147. package/dist/assets/{SignIn-CycvPOGI-yT6O4yeb.js → SignIn-C81zFae4-Dea-gjSZ.js} +7 -7
  148. package/dist/assets/{SignInScreen-DxWsWFRM.js → SignInScreen-m5WxZ3Sy.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-BPxaXJqk-DXMLFfi6.js → SpendManagementListViewPage-BXVWjBXG-BD6dR01P.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-CalVz_KS-CFkJlE5z.js → SpendManagementPerTabPage-BpguVSB_-Lttm8QGO.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-CP-KDJ9X-Dxdtv7cA.js → SpendManagementSection-DOQIJFeZ-ivgPfXva.js} +1 -1
  152. package/dist/assets/{StatementItem-BAgGJRW5-h7PpQoEN.js → StatementItem-Pie3qV6--QBqzedQj.js} +5 -5
  153. package/dist/assets/{StatementsPage-048VbBNB-CIAI8-Iv.js → StatementsPage-BgsnClLk-8ec-Me8v.js} +1 -1
  154. package/dist/assets/{StatusSwitcher-DNe-TFW4-DzQawzTp.js → StatusSwitcher-CmZuoA5C-CAazKXUL.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-CWofxHNl-pctfLicv.js → SubTabSwitcher-DnAcWm4k-BiidkdTF.js} +1 -1
  156. package/dist/assets/SummaryCard-DiwOZob1-BzF2DJC-.js +1 -0
  157. package/dist/assets/{TaskManagementPage-sIeRkoyx-CqhyR_rs.js → TaskManagementPage-Bf7M2Lb4-4_bmrGgs.js} +7 -7
  158. package/dist/assets/{TimeRangeSwitcher-CYfi7lfO-C8IVJ8KX.js → TimeRangeSwitcher-BnA1fDfm-DKZWrMD_.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcher-B9NumYID-CA44AiEF.js → TimeframeSwitcher-B-jhZqzy-C0mIaCAr.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcherWithToggle-DJL42rcY-4fJfrmHh.js → TimeframeSwitcherWithToggle-uBvB9Y4U-DEm424X-.js} +2 -2
  161. package/dist/assets/{TopExCard-GHdLZwGT-BhuLE57u.js → TopExCard-8Ddo4t8T-CqjPXnoc.js} +2 -2
  162. package/dist/assets/{TopExDetailPage-CIlBZ2oX-BaF6_sM0.js → TopExDetailPage-B6xtk1Bx-Dvdbf_Im.js} +8 -8
  163. package/dist/assets/{TransactionActivityLogPage-C2Jr7QHc-SAiLB9JP.js → TransactionActivityLogPage-DD1J0Vka-DWx7bBrg.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-RfrmUngB-Dci0je89.js → TransactionDetailPage-B5jASgT3-CgTo1hvB.js} +1 -1
  165. package/dist/assets/TransactionList-C4_0d8Yi-D_b8rDHf.js +153 -0
  166. package/dist/assets/{TransactionListBig-D-kOZVLs-B-ad9ErK.js → TransactionListBig-hJjsZlZZ-BQM8cKJz.js} +1 -1
  167. package/dist/assets/{TransactionListPage-BRF55dM4-DYeZNtak.js → TransactionListPage-BzIAUEs8-MKD80iuh.js} +2 -2
  168. package/dist/assets/{TransactionVendorDetailPage-Bsk6E8Zm-7lohsHvf.js → TransactionVendorDetailPage-DGcg2hX5-BY5R8KAA.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-CPUqGXjs-Cm1krXS2.js → TransferDrawerPage-CqMRBO0T-DRSuLibB.js} +12 -12
  170. package/dist/assets/{TreasuryOverviewPage-DfYRAHE1-CizOCyjr.js → TreasuryOverviewPage-DkwHC8f4-Bn0V9kOv.js} +15 -15
  171. package/dist/assets/{TreasuryPromoPage-F1X4qcwd-BHd14a_i.js → TreasuryPromoPage-DSF3PsLc-CzfjJZli.js} +8 -8
  172. package/dist/assets/{TreasuryStatementsPage-CGbvRTgR-Dmch4a9K.js → TreasuryStatementsPage-Dw1TLve3-B04-8PQ3.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-BMDJFFj--CncIwwwI.js → TreasuryTaxLetterPage-DVLliaXS-BaPntd_i.js} +1 -1
  174. package/dist/assets/{TrendChart-DQwanU50-BV-_y5G5.js → TrendChart-DjYTskVA-gHskLbo_.js} +5 -5
  175. package/dist/assets/{TrendWithTransactions-Iz0QVdZP-CDHQCqNH.js → TrendWithTransactions-hxM7e0EM-DQsX5Fpa.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-DDBZnuaT-D87xZWEc.js → UncategorizedAccountsMappingPage-CZLuQw-9-BWV6B4bF.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-6gZ_g7Zz-DL7Eef_0.js → UnitIntegrationPage-DRwdsemz--LS2beFi.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-CcTFuMyK-D2kgY2Ed.js → UploadAdditionalDocumentOverlay-N-_Kdezc-3iy-UCwO.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-DnG7s1Ks-D9O6BUwp.js → Vendor2FAPopup-CvMY6aLD-DqZVC04g.js} +1 -1
  180. package/dist/assets/VendorACHDetailsPage-Dj1SW5L_-CF6jGaAx.js +1 -0
  181. package/dist/assets/{VendorDetailPage-D7zN9Vtl-BBAI0eRq.js → VendorDetailPage-Ck-kEx6Y-DlVLyDuR.js} +1 -1
  182. package/dist/assets/VendorDomesticWireDetailsPage-LJc1Pntx-BkWcT3Mq.js +1 -0
  183. package/dist/assets/{VendorFiling1099EditablePage-Rslpct1I-cPFmgRgW.js → VendorFiling1099EditablePage-BMAc4Y0L-swSK5unq.js} +4 -4
  184. package/dist/assets/{VendorFirstReviewPage-CGye9HoK-D-UUNB_d.js → VendorFirstReviewPage-Cv0DMrBa-D-qTdl-e.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage--CSkHPFy-DdqJlqoM.js → VendorInternationalWireDetailsPage-Bp-fiJYj-kdX1GwW6.js} +8 -8
  186. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CG6w1RiA-mOhQd5bG.js +1 -0
  187. package/dist/assets/{VendorsAccountsSection-ziR6oNlY-CZuH9lY0.js → VendorsAccountsSection-C5L3gr2G-B_pD6zSq.js} +1 -1
  188. package/dist/assets/{VerifyDevice-C-zisSaI-L64KEJ3l.js → VerifyDevice-CkbL9enV-JKJb0VZk.js} +9 -9
  189. package/dist/assets/{VideoPlayer-CQQljSJC-Ckm25ZkZ.js → VideoPlayer-zSNzleMo-B3Hzh9ni.js} +2 -2
  190. package/dist/assets/{VideoPopup-BgqoT4JJ-BIfkB45X.js → VideoPopup-BTjM2GvI-CfrQhQ9p.js} +4 -4
  191. package/dist/assets/{WarningsDrawerPage-D5OicOK4-BvVf8AIm.js → WarningsDrawerPage-C_3XLtV5-DXtwxZOZ.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-C_lM66OT-G87IDGZW.js → ZeniAccountDetailPage-BlqcQ5a_-C6V_463T.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-CQvrxw6f-CqVpV0PW.js → ZeniAccountListViewPage-_jeL_k5F-BYvSnCDl.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-8VXHXUPK-CX9FAlJO.js → ZeniAccountNavBarPieces-BeWOH_VI-D3WeJkvf.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-Cr-MnJVm-tTwQCBew.js → ZeniAccountPromoPage-BUDBWd8m-CIMCfIY6.js} +12 -12
  196. package/dist/assets/{ZeniAccountSetupPage-Bpqw-wqp-BvxvHEo0.js → ZeniAccountSetupPage-BD0OhX5Z-CotZyeZ5.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-Hh9chHJi-RwVTsccT.js → ZeniCopyright-DPQzZYUR-KHcq5VOQ.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-sf0kghb5-n3R2asqM.js → ZeniTransferAmountSlider-BM8wKUEY-DlBYyOPL.js} +7 -7
  199. package/dist/assets/{add-to-wallet-DgdBD8_G-Db5fod9i.js → add-to-wallet-DgdBD8_G-D4tNYjqP.js} +1 -1
  200. package/dist/assets/{analytics-CQziHS33.js → analytics-BTo2lvc5.js} +1 -1
  201. package/dist/assets/{analyticsHelper-DQHFgahw-Cp99KaIG.js → analyticsHelper-BOam8HWk-DTVMIEqW.js} +1 -1
  202. package/dist/assets/{analyticsHelper-OLJ9to1y.js → analyticsHelper-BeNcAjzu.js} +1 -1
  203. package/dist/assets/{arrow-south-east-round-PEovUgvH-Cxk5-yTi.js → arrow-south-east-round-PEovUgvH-BpAbcXNu.js} +1 -1
  204. package/dist/assets/{auto-transfer-rule-mbafm5D3-CNtOqhU-.js → auto-transfer-rule-mbafm5D3-DUd0RNlG.js} +1 -1
  205. package/dist/assets/{chartTypes-B53kfwdO-BhCsc3sU.js → chartTypes-DWf4SAOE-BXMQEiqd.js} +1 -1
  206. package/dist/assets/{commonDimensions-Om-6fiMl-CN-97Hnw.js → commonDimensions-BgUllk7Z-mJRWeU7K.js} +1 -1
  207. package/dist/assets/{commonTypes-DXJEXDhr-CsYzRDog.js → commonTypes-B6f3YP8V-CbYlRzb2.js} +1 -1
  208. package/dist/assets/{constants-Dg8hvPMb.js → constants-CfG3jptV.js} +1 -1
  209. package/dist/assets/{core-BPh6D8v5.js → core-CDOHNO2G.js} +1 -1
  210. package/dist/assets/{dash.all.min-Cz3Fm_5M.js → dash.all.min-C7dNtldN.js} +1 -1
  211. package/dist/assets/{detailCommon-ufPAtMvc-DhnVaCE8.js → detailCommon-ceDAo_fs-K8aKPC4G.js} +6 -6
  212. package/dist/assets/{downloadPdf-sghpXX-r-hphDTF7O.js → downloadPdf-CKymFYOO-BOWpMv5t.js} +1 -1
  213. package/dist/assets/{empty-DbW3pZ4D.js → empty-EVjF_gMV.js} +1 -1
  214. package/dist/assets/{empty-CwSMnfMr.js → empty-hw3sN7vf.js} +1 -1
  215. package/dist/assets/{epic-Chew0UQN.js → epic-CaPascl_.js} +1 -1
  216. package/dist/assets/{gift-box-Cmt9OgIZ--Zu0Eh-z.js → gift-box-Cmt9OgIZ-C8C7NLZp.js} +1 -1
  217. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CIZ3GcrY.js → graphic-no-data-l-DU4J8fDt-DrMXjgQT.js} +1 -1
  218. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-B95c8T1V.js → graphic-no-data-net-burn-l-CzmycA0m-Bc0Qno8i.js} +1 -1
  219. package/dist/assets/{handshake-BPg58FML-Dbohbn58.js → handshake-BPg58FML-1LlZ_i0d.js} +1 -1
  220. package/dist/assets/{helper-BBJS-iD4-DcHpxRaM.js → helper-C1Mwnd6M-CNavDJqc.js} +1 -1
  221. package/dist/assets/{index-DrZJrwI9.js → index-B6ONklHc.js} +1 -1
  222. package/dist/assets/{index-Dzi9AcqX.js → index-Bp4xtOn5.js} +1 -1
  223. package/dist/assets/{index-CZZQCAd2.js → index-CGTxoCJp.js} +7 -7
  224. package/dist/assets/{index-C8B9pQsQ.js → index-DE_CqoFx.js} +1 -1
  225. package/dist/assets/{index-Bvx6EJi7.js → index-DHoIuE2i.js} +1 -1
  226. package/dist/assets/{index-Di5sPRAu.js → index-DyMFy4lV.js} +1 -1
  227. package/dist/assets/{index-dJzBovkm.js → index-MbFkHHWb.js} +1 -1
  228. package/dist/assets/{lexical-CO_PvSmH.js → lexical-BeF2ZgkW.js} +1 -1
  229. package/dist/assets/{liveblocks-DYmELrdC.js → liveblocks-Dn-9djA8.js} +1 -1
  230. package/dist/assets/{lottie-BRpRA-Un.js → lottie-BYfhMHcn.js} +1 -1
  231. package/dist/assets/mapLoadingInProgressToTreeNode-9nfc1Ewm-CsweZHn5.js +1 -0
  232. package/dist/assets/mapSectionWithAcOnlyToTreeNode-Bi6hurdk-xVLnW0yh.js +1 -0
  233. package/dist/assets/mapSpacerToTreeNode-CHRtVS3Z-DLe2zU1L.js +1 -0
  234. package/dist/assets/mapTimeframeBalancesToTreeNode-B9QHM6dt-Be8Q8L2y.js +1 -0
  235. package/dist/assets/{mapTimeframeBalancesToTreeNode-fbKpuzss-DR9K1lqX.js → mapTimeframeBalancesToTreeNode-EhyCSWUM-BVeTsmlg.js} +1 -1
  236. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DB6zUXCA-CmA6qGT1.js +1 -0
  237. package/dist/assets/{mui-1V4DDk1u.js → mui-CD7xFf2d.js} +1 -1
  238. package/dist/assets/{page-detail-CWX5S47F-B4o0uLRm.js → page-detail-CWX5S47F-CEsHow4e.js} +1 -1
  239. package/dist/assets/{panelSelectedMixin-Cddsb26L-DCdVDlSE.js → panelSelectedMixin-Cddsb26L-ChVQUbpx.js} +1 -1
  240. package/dist/assets/{radio-default-CiSgisfh-DveETCoH.js → radio-default-CiSgisfh-CmFHLU8c.js} +1 -1
  241. package/dist/assets/{react-DAYLTVXK.js → react-B6PWZDXX.js} +1 -1
  242. package/dist/assets/{react-CwXZyl3z.js → react-BLzPWySR.js} +1 -1
  243. package/dist/assets/{react-CTTbIL85.js → react-BVvI-Vbl.js} +1 -1
  244. package/dist/assets/{react-BGRZeN4_.js → react-CRe95M2Y.js} +2 -2
  245. package/dist/assets/{react-BfMx9RWN.js → react-Cxxg-6rQ.js} +1 -1
  246. package/dist/assets/{react-DvMoib_r.js → react-DJKM9DI1.js} +1 -1
  247. package/dist/assets/{react-BhKvphZC.js → react-Dc3Fbg1h.js} +1 -1
  248. package/dist/assets/{react-DrvHBxOA.js → react-DtCoLsdE.js} +1 -1
  249. package/dist/assets/{recharts-W_ILlOEk.js → recharts-CeYsUNdm.js} +1 -1
  250. package/dist/assets/{sentry-KKNtqb_g.js → sentry-CuNQ_GI9.js} +1 -1
  251. package/dist/assets/{shield-DOlUxcFf-DYMhAzvU.js → shield-DOlUxcFf-BIELJ6pj.js} +1 -1
  252. package/dist/assets/toCOABalancesWithID-BHpR5IjE-BC__zjt5.js +1 -0
  253. package/dist/assets/{toChartData-DJeOVqss-Ckap6Mgt.js → toChartData-wLoMfnuk-B5A976Ge.js} +1 -1
  254. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-DHlUSExT.js → upload-reimbursement-receipt-O2N8vcO7-wGaBLxcB.js} +1 -1
  255. package/dist/assets/{uploadAttachment-BjSr5jfA-5o3rK0wU.js → uploadAttachment-DiB8ywoD-CoooZKCI.js} +4 -4
  256. package/dist/assets/{uploadReceipts-Dge0cNF1-BxDjc4Mk.js → uploadReceipts-Dge0cNF1-DYfDjXeu.js} +1 -1
  257. package/dist/assets/{url-BOcnt56d.js → url-CLDcbK8W.js} +1 -1
  258. package/dist/assets/{url-DpR8Zh5r.js → url-DvLmNXM-.js} +1 -1
  259. package/dist/assets/{useLongPress-GCK2COYQ-BWV9Umwr.js → useLongPress-GCK2COYQ-D_m3f9kb.js} +1 -1
  260. package/dist/assets/{usp-line-BBd1wKwW-DkxZf2LY.js → usp-line-BBd1wKwW-BHWavx9j.js} +1 -1
  261. package/dist/assets/{utils-DuPmVt2f.js → utils-i_tuliLj.js} +1 -1
  262. package/dist/assets/{zeni-epic-state-BIDncbwZ.js → zeni-epic-state-BJYsNVul.js} +3 -3
  263. package/dist/index.html +1 -1
  264. package/package.json +2 -2
  265. package/dist/assets/AccountInfoPage-rFTZmOvo-DL0RDmZu.js +0 -18
  266. package/dist/assets/AddAddressForCardDrawer-BmEFIMt4-CVY0gF8P.js +0 -6
  267. package/dist/assets/ChargeCardPromoPage-CR7Jo6Il-OQWmOWWv.js +0 -222
  268. package/dist/assets/CustomerOnboardingContainerPage-DD9nA6Bu-Bp08bFX-.js +0 -1
  269. package/dist/assets/EntityDetailPage-BdsjHAh4-D2cQRotr.js +0 -18
  270. package/dist/assets/LabeledControlledCheckBoxField-DlQqluVv-BVJ5kTmb.js +0 -16
  271. package/dist/assets/MagicLinkACHDetailsPage-D9dtxxoU-CUE02Q_7.js +0 -1
  272. package/dist/assets/MagicLinkDomesticWireDetailsPage-BakTLi7l-DD27DPrq.js +0 -1
  273. package/dist/assets/MagicLinkInternationalWireDetailsPage-BeRb8gxx-DwqfWI26.js +0 -1
  274. package/dist/assets/MailingDetailsSection-DXKO0Y-W-Ds1E0EkO.js +0 -21
  275. package/dist/assets/RoleWithToolTip-BIBVAADS-DMOgVdZw.js +0 -22
  276. package/dist/assets/SummaryCard-63rY1JXk-BoPHME_4.js +0 -1
  277. package/dist/assets/TransactionList-4mJl7knT-DqG87PM9.js +0 -153
  278. package/dist/assets/VendorACHDetailsPage-CF8jFtK9-Bo23tOjB.js +0 -1
  279. package/dist/assets/VendorDomesticWireDetailsPage-BeqW1jo4-D9Dx30c9.js +0 -1
  280. package/dist/assets/VendorInternationalWireSwiftDetailsPage-z04tKP7M-CcKSJMfU.js +0 -1
  281. package/dist/assets/mapLoadingInProgressToTreeNode-Wii9H08B-DMwkFEgt.js +0 -1
  282. package/dist/assets/mapSectionWithAcOnlyToTreeNode-9zuQ7sNi-Wfqd9hcz.js +0 -1
  283. package/dist/assets/mapSpacerToTreeNode-BAzbdSwd-DpMVDymh.js +0 -1
  284. package/dist/assets/mapTimeframeBalancesToTreeNode-CtMEj9WJ-CRNATqeg.js +0 -1
  285. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-DIE9gcY0-BMQnsLW7.js +0 -1
  286. package/dist/assets/toCOABalancesWithID-shajGRBP-BsWBm72Q.js +0 -1
@@ -1,4 +1,4 @@
1
- import{ay as Ft,V as t,gm as Un,J as Kn,y as Xn,gn as Hn,go as Yn,gp as qn,gq as Gn,cf as Jn,aS as Qn,x as y,fd as pt,fe as ea,o as a,ff as ta,fg as na,fh as aa,aQ as Ce,fi as ia,ac as f,bE as mt,bq as ut,dx as yt,cs as ht,ct as bt,cu as gt,gr as la,gs as oa,gt as ra,gu as sa,fn as $,gv as j,fp as A,fq as k,fm as da,w as ft,p as re,fo as _t,fw as ca,fr as pa,fs as ma,gw as ua,gx as ya,aT as ha,aq as xt,bV as De,gy as ba,gz as L,b as ga,u as s,ai as fa,c4 as xa,gA as wa,d as Ta,gB as va,fx as wt,c as Da,d6 as Ia,ck as $a,gC as Tt,b9 as ja,bb as Aa,h as ka,bX as Wt,d7 as Sa,gD as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gE as za,an as Ma}from"./index-CZZQCAd2.js";import{a as p}from"./sentry-KKNtqb_g.js";import{n as i}from"./mui-1V4DDk1u.js";import{bY as Na,bL as La,bZ as Oa,Gy as Ea,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-BIDncbwZ.js";import{o as Za,t as Va}from"./LowBalancePopup-DLIUSW0S-B-zpTP7v.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.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]="247c2be0-5e69-4fa7-8cbf-0b6b8c7bd95d",e._sentryDebugIdIdentifier="sentry-dbid-247c2be0-5e69-4fa7-8cbf-0b6b8c7bd95d")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Da("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:Xa,common:{noText:C,strings:{empty:c},currency:vt,via:Ha,more:Ya,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:$t,title:{comments:Ga}}}}=ga.getLocalizedStrings(),$e=Xa.visual.MMMDCommaYYYYformat,jt=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Xt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Ht,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Yt,redirectToEditableBillScreen:qt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Oe,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Ee,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Xn(),[on,X]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=Ht?Hn:Yn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},x=Re&&g!=null,{threads:Y,isLoading:P}=qn(),Ve=p.useMemo(()=>g==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[Y,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),H(!1)},[te,H]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,Y,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Xe]=p.useState("approved"),[yn,He]=p.useState(!1),[hn,Ye]=p.useState(!1),[qe,Ge]=p.useState(!1),Je=()=>He(!1),bn=()=>He(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=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),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&q?.code?q:ie,S=Ja(v,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:q?.code!=null&&(ie?.code=="approved"||q.code==="mark_as_paid")?q:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},fn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},xn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{X(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":f("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.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},ge=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],$n=e.transactionDetails?.recipientTotalAmount.amount??0,fe=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),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=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):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx($i,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
1
+ import{ay as Ft,V as t,gm as Un,J as Kn,y as Xn,gn as Hn,go as Yn,gp as qn,gq as Gn,cf as Jn,aS as Qn,x as y,fd as pt,fe as ea,o as a,ff as ta,fg as na,fh as aa,aQ as Ce,fi as ia,ac as f,bE as mt,bq as ut,dx as yt,cs as ht,ct as bt,cu as gt,gr as la,gs as oa,gt as ra,gu as sa,fn as $,gv as j,fp as A,fq as k,fm as da,w as ft,p as re,fo as _t,fw as ca,fr as pa,fs as ma,gw as ua,gx as ya,aT as ha,aq as xt,bV as De,gy as ba,gz as L,b as ga,u as s,ai as fa,c4 as xa,gA as wa,d as Ta,gB as va,fx as wt,c as Da,d6 as Ia,ck as $a,gC as Tt,b9 as ja,bb as Aa,h as ka,bX as Wt,d7 as Sa,gD as Ca,ak as Zt,ax as Pa,b7 as Ba,bv as Ra,gE as za,an as Ma}from"./index-CGTxoCJp.js";import{a as p}from"./sentry-CuNQ_GI9.js";import{n as i}from"./mui-CD7xFf2d.js";import{bY as Na,bL as La,bZ as Oa,Gy as Ea,bX as Fa,bH as _a,bh as Wa}from"./zeni-epic-state-BJYsNVul.js";import{o as Za,t as Va}from"./LowBalancePopup-CIN_PWxf-CcAZgcPw.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.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]="8ba08b30-660b-41a4-a138-288a3fbccb53",e._sentryDebugIdIdentifier="sentry-dbid-8ba08b30-660b-41a4-a138-288a3fbccb53")}catch{}})();const Ua=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ka={formTitle:new Da("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:Xa,common:{noText:C,strings:{empty:c},currency:vt,via:Ha,more:Ya,edit:qa},spendManagement:{billPay:{billDetails:n,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Vt}},collaboration:{threads:{placeholder:It,tooltip:$t,title:{comments:Ga}}}}=ga.getLocalizedStrings(),$e=Xa.visual.MMMDCommaYYYYformat,jt=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:F,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Xt,analytics:M,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Ht,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Yt,redirectToEditableBillScreen:qt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:Gt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Jt,onAttachmentClick:Oe,saveBillDetails:Qt,discardOutsideZeniPaymentData:en,onBackClick:Ee,updateEditRealTimeApproverClicked:tn,onSaveRealTimeApprovals:nn,onRetryPaymentClick:an,onRefundPaymentClick:ln,initialOpenThreadRequest:K})=>{const l=Kn(),o=Ft(),Fe=Xn(),[on,X]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[We,me]=p.useState(!1),[rn,ue]=p.useState(!1),[Ze,Q]=p.useState(!1),g=e.transactionDetails?.id,sn=Ht?Hn:Yn,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(sn);p.useEffect(()=>{K?.threadId!=null&&K?.companyId!=null&&K?.entityType!=null&&ee(K)},[K,ee]);const[dn,H]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:g,isGlobalComment:!1},x=Re&&g!=null,{threads:Y,isLoading:P}=qn(),Ve=p.useMemo(()=>g==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Gn)),[Y,g]).length,D=`dashboard_${o.currentTenant?.companyId}`,cn=p.useCallback((r,u)=>{te(u),H(!1)},[te,H]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!P&&(te(ye.threadId),ee(null))},[ye,Y,P,te,ee]);const Ue=p.useRef(!1),[pn,mn]=p.useState(!1),un=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,mn(!0))});Jn({componentName:"bill.details",enabled:pn});const[N,ne]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ke,Xe]=p.useState("approved"),[yn,He]=p.useState(!1),[hn,Ye]=p.useState(!1),[qe,Ge]=p.useState(!1),Je=()=>He(!1),bn=()=>He(!0),Qe=Qn(e.zeniAssist?.refundStatus.fetchState),ae=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),ae())},[Qe,e.zeniAssist?.refundStatus,ae]);const w=e.transactionDetails?.billPayInfo.stage,ie=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,gn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ie?.code=="approved"&&q?.code?q:ie,S=Ja(v,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?gn:q?.code!=null&&(ie?.code=="approved"||q.code==="mark_as_paid")?q:ie,be=e.transactionDetails?.vendor?.name,B=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&qt(e.transactionDetails?.id??"")},fn=()=>{ne({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),X(!0)},xn=()=>{ne({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},wn=()=>{ne({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),X(!0)},Tn=()=>{M.trackRefundClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ne({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),pe(!0)},vn={onOkClick:()=>{X(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?Ne?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ln())},onCancelClick:()=>{X(!1),pe(!1)}},Dn={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},In=()=>{const[r]=Pa("ZeniAssist");return r!=null?t.jsx(Ba,{"data-testid":f("bill-details-zeni-assist-icon",g),onClick:()=>{me(!We),M.trackZeniAssistClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.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},ge=e.transactionDetails?.lines?.map((r,u)=>{const R=r;return{lineIndex:u,lineId:R.id,account:R.account,class:R.class,amount:R.amount.amount,billable:R.billable,customer:R.customer,lineDescription:R.lineDescription,recipientAmount:R.recipientAmount?.amount}})??[],$n=e.transactionDetails?.recipientTotalAmount.amount??0,fe=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),jn=r=>r==="billable"||r==="has_been_billed"?n.yes:n.no,An=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):"",kn=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${An}`,Sn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ji,{windowSize:l,children:t.jsx($i,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Cn=()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?Sa(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}`},oe=e.transactionDetails?.billPayInfo!=null?Na(e.transactionDetails?.billPayInfo):void 0,Pn=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?La(Oa(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,nt=e.transactionDetails?.billPayInfo.expectedDepositDate??Pn,at=pt(d?.paymentType?.method??"").replace("Same Day",""),Bn=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(ea,{paymentTypeLabel:at,onClick:bn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,Rn=()=>d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ca,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,it=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,xe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&it),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&it),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,zn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Mn=Xt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&zn===!1,ve=we||Te,Nn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,W=v?.code,Ln=!Nn&&(!tt||v?.code==="processing"&&!B),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),G=Ea(e.transactionDetails?.bulkProcessingDetail?.type),E=Fa(e.paymentMethodType?.method),On=!G&&(W!=="processing"&&lt||W==="processing"&&!B||W==="processing"&&ot||h&&E&&Be),En=r=>{M.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Qt(!0,qe,r)},st=()=>{Ye(!0),M.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Fn=()=>{Ge(!0),st()},_n=()=>{en(),Ye(!1),qe&&Ge(!1)},Wn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:g??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,g]),Z=Yt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?ta(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Xe("approved"),Ze===!0&&Q(!1),Z!=null&&M.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"})},Zn=()=>{Xe("rejected"),Z!=null&&M.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)},ct=p.useRef(null);return t.jsxs(mi,{windowSize:l,ref:ct,children:[t.jsx(na,{anchor:"right",open:yn,onClose:Je,transitionDuration:250,"data-testid":f("vendor-email-preview-drawer"),children:t.jsx(aa,{companyName:ia(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format($e)??"",paymentType:at,amount:Ce("0,0.[00]",fe),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(bi,{ref:un.current,windowSize:l,children:[t.jsx(Si,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":f("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Fe.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[x?t.jsxs(Ot,{isDisabled:P,"data-testid":f("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Et,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":f("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Ee,"data-testid":f("bill-detail-nav-bar-small-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":f("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[x?t.jsxs(Ot,{isDisabled:P,"data-testid":f("bill-comment-button"),onClick:P?()=>null:r=>{r.preventDefault(),r.stopPropagation(),H(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:P?void 0:Ve,isLoading:P,style:{left:"12px"}}),t.jsx(Et,{})]}):null,t.jsx(Rt,{onClick:()=>ae(),"data-testid":f("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Ee,"data-testid":f("bill-detail-nav-bar-back-button"),style:{visibility:`${ze?"visible":"hidden"}`},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(gi,{windowSize:l,children:[Ze?t.jsx(Za,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,hn?t.jsx(Va,{onCancel:_n,onProceedForMarkAsPaid:En,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,on||ce?t.jsx(ht,{titleComponent:t.jsx(gt,{children:N.title}),descriptionComponent:t.jsx(bt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:vn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Qa(l,e):null}):null,rn?t.jsx(ht,{titleComponent:t.jsx(gt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:Dn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(xi,{windowSize:l,children:[l!=="small"?t.jsxs(wi,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:a.sp5,width:a.sp5}):null]}):null,F&&S!=null&&S.code==="deleted"?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===Pe.tabsById.overdue?t.jsx(zt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(la,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(oa,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:nt,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,ni(G,e,Z),t.jsx(ra,{sectionId:sa,currentVendorOption:{defaultOptions:[]},billId:g,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Oe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.whatForTitle}),t.jsxs(je,{children:[t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.invoiceNumber,width:I},text:le.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.invoiceDate,width:I},text:le.invoiceDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.billDueDate,width:I},text:le.billDueDate?.format($e)??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.memo,width:I},text:le.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(fi,{windowSize:l,children:t.jsx(ke,{children:n.lineItemsTitle})}),ge.length>0?ge.map((r,u)=>{const R=e?.transactionDetails?.lines?.find(Vn=>Vn.id===r.lineId)?.recipientAmount;return t.jsxs(ui,{children:[ge.length>1?t.jsx(yi,{windowSize:l,children:t.jsx(hi,{windowSize:l,children:`${n.line} # ${u+1}`})}):null,t.jsxs(je,{children:[t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.amount,width:I},text:R!=null?Ce("0,0[.]00",R):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.description,width:I},text:r.lineDescription??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.category,width:I},text:r.account?.accountName??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.class,width:I},text:r.class?.className??C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.billable,width:I},text:r.billable!=null?jn(r.billable):C,style:{width:"auto"}})}),t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.customer,width:I},text:r.customer?.name??C,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(Ti,{windowSize:l,children:[t.jsx(vi,{children:n.total}),t.jsx(Di,{children:fe!=null?t.jsx(da,{amount:fe,integerStyles:ft.h6Medium.cssObject,decimalStyles:ft.standardMedium.cssObject}):C})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:n.paymentDetailsTitle}),t.jsxs(je,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.withdrawFrom,width:I},text:e.withdrawFrom!=null?_t(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:Z!=null&&w?.code==="pending_approval"?Vt.addMoney:Z})}),t.jsx(z,{})]}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(_a)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(ii,{children:ca(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:I},text:E&&e.outsideZeniPaymentInfo!=null?ti(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.paymentTo,width:I},text:d.paymentToBankAccount!=null?kn:d.paymentToPI!=null?d.paymentToPI.displayText:Sn,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:Cn(),additionalInfoLabel:t.jsx(ai,{children:Bn})}),Rn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(z,{}),t.jsx($,{isThreadAllowed:x,entityId:g,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(j,{label:{label:n.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ma(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:pa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(Ai,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ua,{onAttachmentClick:Oe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ya,{amount:$n,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Jt,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:Ut,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:tn,onSaveRealTimeApprovals:nn},historicActivities:e.billHistory.activities}),t.jsx(Ii,{})]}),e.transactionDetails?.vendor!=null&&!he&&!e.transactionDetails.isDeleted?t.jsx(ha,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?n.buttons.reject:n.buttons.rejectBill,isLoading:Ke==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:ei(U,rt),isLoading:Ke==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{Z!=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(li,{children:t.jsxs(pi,{windowSize:l,children:[!G&&_e?t.jsx(xt,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":f("bill-actions-container"),children:[W!=="processing"&&lt?t.jsx(V,{onClick:fn,"data-testid":f("delete-bill-action-item"),children:n.buttons.deleteBill}):null,W==="processing"&&!B?t.jsx(V,{onClick:xn,"data-testid":f("cancel-bill-action-item"),children:n.buttons.cancel}):null,W==="processing"&&ot?t.jsx(V,{onClick:wn,"data-testid":f("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,h&&E&&Be?t.jsx(V,{onClick:Fn,"data-testid":f("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,We?t.jsx(xt,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":f("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(V,{onClick:()=>{M.trackRetryClick(v?.code??"",w?.code??"",O?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),an()},"data-testid":f("retry-bill-action-item"),children:n.buttons.retry}):null,Te?t.jsx(V,{onClick:Tn,"data-testid":f("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(ci,{windowSize:l,children:[Mn===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:ve?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:xe,isIconClickable:ve,"data-testid":f("other-actions-icon-container"),children:ve?t.jsx(In,{}):t.jsx(ri,{})})}):null,!G&&xe===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:qa,placement:"top",children:t.jsx(di,{onClick:et,"data-testid":f("edit-bill-icon-container"),children:t.jsx(si,{})})}):null,!G&&Ln===!0&&On?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ya,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:xe,isIconClickable:!0,"data-testid":f("more-details-icon-container"),children:t.jsx(oi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}}):null]}),x?t.jsx(ba,{isDrawerOpen:dn,allowComposer:!0,drawerTitle:Ga,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:$t.resolveComment,threadUnResolve:$t.unResolveComment},threadMetadata:Wn,onThreadClick:cn,onCloseAllThreadsDrawer:()=>H(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Fe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Wi=e=>{const b=Ft(),h=e.billDetails.transactionDetails?.id,F=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!(F&&_!=null&&h!=null))return t.jsx(jt,{...e});const se=`dashboard_${_}`;return t.jsx(Un,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx(jt,{...e})})},Ja=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Wa(),"date")===!0?{value:Pe.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[h].color,bgColor:L[h].bgColor,borderColor:L[h].borderColor}},Qa=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(ki,{windowSize:e,children:[t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.accountNumber}),t.jsx(Lt,{children:b.withdrawFrom!=null?_t(b.withdrawFrom,e):c})]}),t.jsxs(Mt,{windowSize:e,children:[t.jsx(Nt,{children:n.zeniAssist.amount}),t.jsx(Lt,{children:h!=null?Ce("0,0[.]00",h):C})]})]})},ei=(e,b)=>e?n.paymentOutsideZeni.markAsPaid:b?n.buttons.approve:n.buttons.approveBill,ti=e=>{const b=e.paymentMode,h=n.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const F=n.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${Ha} ${F}`},ni=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const F=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Vt.lowBalanceIn.replace("__account__",F)}`,description:h.replace("Low balance! ","")})}else return null},ai=i.div``,ii=i.div``,li=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- import{x as F,u as L,J as M,b as T,aa as W,aS as G,aM as J,cI as X,V as r,bE as H,ae as K,aT as Q,o as u,gc as Y}from"./index-CZZQCAd2.js";import{a as U}from"./sentry-KKNtqb_g.js";import{n as h}from"./mui-1V4DDk1u.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BERdmvvn-UqgRbJ9-.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./zeni-epic-state-BIDncbwZ.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.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]="2d760b6a-ebda-4601-bc8c-7aa1e5ebfdd9",e._sentryDebugIdIdentifier="sentry-dbid-2d760b6a-ebda-4601-bc8c-7aa1e5ebfdd9")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",m="applyToExistingBills",le={footerPadding:new F(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=T.getLocalizedStrings().commonSetUp.approval,P=T.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:d,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let b=d.length>1?d.length-1:0,v=d.length>0?d[b].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;b=d.findIndex(p=>p.approvalRuleId===i),v=b>0?d[b-1].criteria[0].range.min.amount:0}const O=x.handleSubmit(()=>{N()}),q=async(i,p)=>{s(p)};return U.useEffect(()=>{const i=x.watch((p,{name:$})=>{if($!=null&&p!=null){const z=J(p);X(()=>q($,z))}});return()=>{i.unsubscribe()}}),U.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(H,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(K,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:O,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(de,{}),r.jsx(ee,{sectionId:w,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:V,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&d.length===0?null:r.jsx(Y,{name:m,mode:"always_on",checkBoxes:[{value:m,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:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[m]:n?[]:[m],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]: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((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
1
+ import{x as F,u as L,J as M,b as T,aa as W,aS as G,aM as J,cI as X,V as r,bE as H,ae as K,aT as Q,o as u,gc as Y}from"./index-CGTxoCJp.js";import{a as U}from"./sentry-CuNQ_GI9.js";import{n as h}from"./mui-CD7xFf2d.js";import{b as Z,f as ee,o as _,l as R}from"./FollowStepsSection-BCWwwk1I-Dr0Igucn.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./zeni-epic-state-BJYsNVul.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.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]="03abd9cf-5761-4a32-bee2-529df62f35ae",e._sentryDebugIdIdentifier="sentry-dbid-03abd9cf-5761-4a32-bee2-529df62f35ae")}catch{}})();const j="billPayApprovalRuleDetailPage",C="lowerBound",E="upperBound",w="steps",b="applyToExistingBills",le={footerPadding:new F(L[2],L[2])};function Ae({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:o=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:I}){const S=M(),t=T.getLocalizedStrings().commonSetUp.approval,P=T.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!o),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:V,billPaySetupApproverViewUpdateData:f}=e;let m=p.length>1?p.length-1:0,v=p.length>0?p[m].criteria[0].range.min.amount:0;if(f!=null&&f.type==="approval_update"&&f.data!=null){const{approvalRuleId:i}=f.data;m=p.findIndex(d=>d.approvalRuleId===i),v=m>0?p[m-1].criteria[0].range.min.amount:0}const O=x.handleSubmit(()=>{N()}),q=async(i,d)=>{s(d)};return U.useEffect(()=>{const i=x.watch((d,{name:$})=>{if($!=null&&d!=null){const z=J(d);X(()=>q($,z))}});return()=>{i.unsubscribe()}}),U.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&I()},[B,c?.fetchState,I]),r.jsxs(se,{children:[r.jsx(H,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),r.jsxs(K,{...x,children:[r.jsx(ne,{children:r.jsx("form",{id:k(j),onSubmit:O,children:r.jsxs(ie,{children:[r.jsx(Z,{label:{label:A?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>o?!0:i!=null&&i>v},isDisabled:o,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),r.jsx(pe,{}),r.jsx(ee,{sectionId:w,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:V,stepsInfo:y[w],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),r.jsx(Q,{formId:k(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:r.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,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:S==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(S)},separatorStyle:{marginRight:u.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[w]:te(e.allApprovers.map(o=>o.user),e.filteredApprovers.map(o=>o.user),_(e.allAttributes),_(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[E]: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((o,g)=>({stepIndex:g,stepType:{selectedOption:o.action,allOptions:R},actors:{allUsers:l,selectedUsers:oe(e,o.actors),allNonUsers:s,selectedNonUsers:re(a,o.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],oe=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),re=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),k=e=>`${e}_form`,Ie=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -18,7 +18,7 @@ import{x as F,u as L,J as M,b as T,aa as W,aS as G,aM as J,cI as X,V as r,bE as
18
18
  overflow-y: auto;
19
19
  flex-direction: column;
20
20
  align-items: center;
21
- `,de=h.div`
21
+ `,pe=h.div`
22
22
  display: flex;
23
23
  flex: 1;
24
24
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P,bV as z,cs as O,ct as q,cu as F,d2 as J,u as l,bb as K,c as k,ba as Q,p as j,d1 as X,bv as Y,w as Z}from"./index-CZZQCAd2.js";import{n as o}from"./mui-1V4DDk1u.js";import{a as ee}from"./sentry-KKNtqb_g.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./zeni-epic-state-BIDncbwZ.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.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]="433f9aec-9a4b-43e4-a5ad-5637fd9f8c36",e._sentryDebugIdIdentifier="sentry-dbid-433f9aec-9a4b-43e4-a5ad-5637fd9f8c36")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},U={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,N=()=>{h(!0)},E={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(A,{windowSize:n,children:[a.from," ",P("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(T,{}),t.jsx(le,{}),t.jsx(T,{})]}),m.max==null?t.jsx(he,{}):t.jsx(A,{windowSize:n,children:P("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(R,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(R,{onClick:N,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(L,{children:[t.jsx(I,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(L,{children:[t.jsxs(I,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(O,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):null]})},oe=o.div`
1
+ import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P,bV as z,cs as O,ct as q,cu as F,d2 as J,u as l,bb as K,c as k,ba as Q,p as j,d1 as X,bv as Y,w as Z}from"./index-CGTxoCJp.js";import{n as o}from"./mui-CD7xFf2d.js";import{a as ee}from"./sentry-CuNQ_GI9.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./zeni-epic-state-BJYsNVul.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.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]="38bc6880-c080-4082-8370-dca309228ae0",e._sentryDebugIdIdentifier="sentry-dbid-38bc6880-c080-4082-8370-dca309228ae0")}catch{}})();const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},U={stepper:new k("smallRegular","standardRegular"),amount:new k("standardRegular","largeMedium")},te=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:w=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:g})=>{const[v,h]=ee.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,N=()=>{h(!0)},E={onOkClick:()=>{h(!1),g?.(x)},onCancelClick:()=>{h(!1)}};return t.jsxs(oe,{windowSize:n,isLastSection:w,isUpdatingApprovalRules:d,children:[t.jsxs(ie,{windowSize:n,children:[t.jsxs(ce,{children:[t.jsxs(A,{windowSize:n,children:[a.from," ",P("0,0",m.min)]}),t.jsxs(re,{children:[t.jsx(T,{}),t.jsx(le,{}),t.jsx(T,{})]}),m.max==null?t.jsx(he,{}):t.jsx(A,{windowSize:n,children:P("0,0",{...m.min,amount:m.max.amount})})]}),t.jsxs(ue,{className:"icons",children:[e===!0?d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(I,{onClick:N,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?t.jsx(z,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:t.jsx(D,{children:t.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):t.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(se,{windowSize:n,children:t.jsx(ae,{isSingleStep:$.length===1,windowSize:n,children:$.map((u,H)=>t.jsxs(ne,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[u.action==="require_approval"?t.jsx(pe,{children:a.requireText}):t.jsx(de,{children:a.notifyText}),u.nonUserActors!=null&&u.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>t.jsxs(L,{children:[t.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},`${p.subType}_${_}`)),u.actors.map(p=>t.jsxs(L,{children:[t.jsxs(R,{children:[p.firstName," ",p.lastName]}),u.operator!="is"?t.jsx(B,{className:"operator",children:u.operator}):null]},p.userId))]},H))})}),v?t.jsx(O,{titleComponent:t.jsx(F,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(q,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:E}):null]})},oe=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -132,7 +132,7 @@ import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P
132
132
  color: ${j.alertDark};
133
133
  `,de=o.span`
134
134
  color: ${j.successDark};
135
- `,I=o.span`
135
+ `,R=o.span`
136
136
  color: ${e=>e.theme.colors.primary};
137
137
  `,ce=o.div`
138
138
  display: flex;
@@ -141,7 +141,7 @@ import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P
141
141
  `,ue=o.div`
142
142
  display: flex;
143
143
  gap: ${i.sp5};
144
- `,R=o(X)`
144
+ `,I=o(X)`
145
145
  width: ${i.sp3};
146
146
  height: ${i.sp3};
147
147
  cursor: ${e=>e.$isDisabled===!0?"not-allowed":"pointer"};
@@ -175,7 +175,7 @@ import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P
175
175
  ${e=>`${U.amount.style(e.windowSize)}`};
176
176
  color: ${e=>e.theme.colors.primary};
177
177
  word-break: break-word;
178
- `,f={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Ce=({approvalView:e,onBackClick:d,onEditRuleClick:w,onDeleteRuleClick:c})=>{const y=W(),{fetchState:g,deleteStatus:v}=e,h=S.getLocalizedStrings().commonSetUp.approval,n=S.getLocalizedStrings().spendManagement.billPay.billPayApproval,m=v.fetchState,$=e.listeningToPusherEvent;return t.jsxs(me,{children:[t.jsx(V,{title:h.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{d()},source:"BillPayApprovalRulesPage"}),t.jsxs(xe,{children:[t.jsx(ge,{windowSize:y,children:n.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||m==="In-Progress"?t.jsx(we,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((x,a)=>t.jsx(te,{showDeleteBtn:a!==0,disableButtons:$===!0&&x.approvalRuleId===e.newApprovalRuleId,approvalRule:x,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:w,onDeleteRuleClick:c},x.approvalRuleId)),t.jsxs($e,{windowSize:y,onClick:()=>{w()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(be,{}),t.jsx(fe,{children:h.addApprovalText})]})]}):null]})]})},me=o.div`
178
+ `,y={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},Ce=({approvalView:e,onBackClick:d,onEditRuleClick:w,onDeleteRuleClick:c})=>{const f=W(),{fetchState:g,deleteStatus:v}=e,h=S.getLocalizedStrings().commonSetUp.approval,n=S.getLocalizedStrings().spendManagement.billPay.billPayApproval,m=v.fetchState,$=e.listeningToPusherEvent;return t.jsxs(me,{children:[t.jsx(V,{title:h.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{d()},source:"BillPayApprovalRulesPage"}),t.jsxs(xe,{children:[t.jsx(ge,{windowSize:f,children:n.approvalPageSubTitle}),g==="In-Progress"||g==="Not-Started"||m==="In-Progress"?t.jsx(we,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):g==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((x,a)=>t.jsx(te,{showDeleteBtn:a!==0,disableButtons:$===!0&&x.approvalRuleId===e.newApprovalRuleId,approvalRule:x,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:w,onDeleteRuleClick:c},x.approvalRuleId)),t.jsxs($e,{windowSize:f,onClick:()=>{w()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(be,{}),t.jsx(ye,{children:h.addApprovalText})]})]}):null]})]})},me=o.div`
179
179
  display: flex;
180
180
  min-height: 100%;
181
181
  flex-direction: column;
@@ -201,9 +201,9 @@ import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P
201
201
  color: ${e=>e.theme.colors.hero};
202
202
  display: flex;
203
203
  justify-content: center;
204
- width: ${e=>f.titleWidth.valuePx(e.windowSize)};
205
- padding-top: ${e=>f.subTitlePaddingTop.valuePx(e.windowSize)};
206
- padding-bottom: ${e=>f.subTitlePaddingBottom.valuePx(e.windowSize)};
204
+ width: ${e=>y.titleWidth.valuePx(e.windowSize)};
205
+ padding-top: ${e=>y.subTitlePaddingTop.valuePx(e.windowSize)};
206
+ padding-bottom: ${e=>y.subTitlePaddingBottom.valuePx(e.windowSize)};
207
207
  `,$e=o(M)`
208
208
  cursor: pointer;
209
209
  display: flex;
@@ -211,9 +211,9 @@ import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P
211
211
  justify-content: center;
212
212
  align-items: center;
213
213
  padding: ${i.sp3} ${i.sp4};
214
- gap: ${e=>f.addApprovalGap.valuePx(e.windowSize)};
214
+ gap: ${e=>y.addApprovalGap.valuePx(e.windowSize)};
215
215
 
216
- width: ${e=>f.width.valuePx(e.windowSize)};
216
+ width: ${e=>y.width.valuePx(e.windowSize)};
217
217
  height: ${i.sp8};
218
218
 
219
219
  background: ${e=>e.theme.colors.grey5};
@@ -236,6 +236,6 @@ import{J as W,b as S,V as t,bE as V,L as G,ac as b,x as r,an as M,o as i,aQ as P
236
236
  `,be=o(J)`
237
237
  width: ${i.sp3};
238
238
  height: ${i.sp3};
239
- `,fe=o.div`
239
+ `,ye=o.div`
240
240
  color: ${e=>e.theme.colors.hero};
241
241
  `;export{Ce as default};
@@ -1,4 +1,4 @@
1
- import{ay as F,J as f,aS as Y,V as e,fy as ee,bE as ie,a as C,ac as B,ag as x,b as I,o as s,as as se,e as le,y as M,aV as U,ao as oe,x as te,p as $,cH as re,aW as ae,bc as ne,u as de}from"./index-CZZQCAd2.js";import{a as g}from"./sentry-KKNtqb_g.js";import{n as l}from"./mui-1V4DDk1u.js";import{Gn as ce,bP as pe,Go as xe}from"./zeni-epic-state-BIDncbwZ.js";import{C as me}from"./VideoPopup-BgqoT4JJ-BIfkB45X.js";import{M as S}from"./usp-line-BBd1wKwW-DkxZf2LY.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.js";import"./VideoPlayer-CQQljSJC-Ckm25ZkZ.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="cf11e93e-0c61-4975-a2a5-6751ff745344",i._sentryDebugIdIdentifier="sentry-dbid-cf11e93e-0c61-4975-a2a5-6751ff745344")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=l.div`
1
+ import{ay as F,J as f,aS as Y,V as e,fy as ee,bE as ie,a as C,ac as B,ag as x,b as I,o as s,as as se,e as le,y as M,aV as U,ao as oe,x as te,p as $,cH as re,aW as ae,bc as ne,u as de}from"./index-CGTxoCJp.js";import{a as g}from"./sentry-CuNQ_GI9.js";import{n as l}from"./mui-CD7xFf2d.js";import{Gn as ce,bP as pe,Go as xe}from"./zeni-epic-state-BJYsNVul.js";import{C as me}from"./VideoPopup-BTjM2GvI-CfrQhQ9p.js";import{M as b}from"./usp-line-BBd1wKwW-BHWavx9j.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.js";import"./VideoPlayer-zSNzleMo-B3Hzh9ni.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new i.Error().stack;o&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[o]="9c03a77d-e214-4c76-b4a7-1d5491d72015",i._sentryDebugIdIdentifier="sentry-dbid-9c03a77d-e214-4c76-b4a7-1d5491d72015")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",he={midContainerMarginBottom:new te(de[5],44)},ge=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -63,11 +63,11 @@ import{ay as F,J as f,aS as Y,V as e,fy as ee,bE as ie,a as C,ac as B,ag as x,b
63
63
  color: ${i=>i.theme.colors.champion};
64
64
  `,d=l.div``,c=l.div`
65
65
  padding-left: ${s.sp3};
66
- `,G=l(S)`
66
+ `,G=l(b)`
67
67
  color: ${$.graphColor16Dark};
68
- `,R=l(S)`
68
+ `,R=l(b)`
69
69
  color: ${$.graphColor09Dark};
70
- `,O=l(S)`
70
+ `,O=l(b)`
71
71
  color: ${$.graphColor28Dark};
72
72
  `,fe=l(oe)`
73
73
  margin: ${s.sp3} auto;
@@ -78,7 +78,7 @@ import{ay as F,J as f,aS as Y,V as e,fy as ee,bE as ie,a as C,ac as B,ag as x,b
78
78
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
79
79
  align-items: center;
80
80
  justify-content: center;
81
- `,Se=l(U)`
81
+ `,be=l(U)`
82
82
  margin: ${i=>i.windowSize==="small"?s.sp1:`auto ${s.sp5}`};
83
83
  color: ${i=>i.theme.colors.grey1};
84
- `,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Ee=({billPaySetupView:i,analytics:o,meetingUrl:b,videoUrl:Z,onButtonClick:H,onBackClick:J,onSetupBillPaySuccess:z,onClickMenuIcon:N})=>{const h=F(),a=f(),{billPayTermsDetails:p}=i,[K,Q]=g.useState(!1),[W,k]=g.useState(!1),v=Y(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const X=()=>{o?.trackBillPayPromoScheduleDemo(),k(!0)},q=ce(h.loggedInUserRoleMap),P=pe(h.loggedInUserRoleMap)&&!q,T=P?t.setupNonAccessableUsersPromoText:t.promoText;return e.jsxs(ge,{children:[K===!0?e.jsx(me,{onCancelClick:()=>{Q(!1)},videoUrl:Z}):null,W===!0?e.jsx(ee,{onCancelClick:()=>{k(!1)},meetingUrl:b}):null,e.jsx(ie,{title:t.title,onBackClick:J,showBackButton:!xe(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:N,source:"BillPayPromoPage"}),e.jsxs(ue,{windowSize:a,children:[a==="small"?e.jsx(ye,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(be,{}):e.jsx(ze,{}),P===!1?e.jsxs(je,{children:[e.jsxs($e,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:t.scheduleDemoButton,onClick:X,"data-testid":B("billpay-schedule-demo-button")}),e.jsx(Se,{windowSize:a,children:t.orText}),e.jsx(C,{variant:"primary",label:t.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:H,"data-testid":B("billpay-setup-button")})]}),e.jsxs(fe,{children:[t.terms.terms1,e.jsx(x,{href:r.consentUrl,linkText:r.consent}),r.term2,e.jsx(x,{href:r.depositUrl,linkText:r.depositTerms}),r.term3,e.jsx(x,{href:r.privacyPolicyUrl,onZeniLinkClick:()=>(o?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(x,{href:r.tosUrl,onZeniLinkClick:()=>(o?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,t.terms.terms3]})]}):null]})]})},be=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsx(_,{windowSize:o,children:e.jsx(E,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.fullyManagedText.bold}),e.jsx(y,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(R,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]})]})]})},ze=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsxs(V,{windowSize:o,children:[e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.fullyManagedText.bold}),e.jsx(u,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(R,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.multiLevelApprovalText.bold}),e.jsx(u,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.aiPoweredText.bold}),e.jsx(u,{children:t.aiPoweredText.regular})]})]})]}),e.jsx(_,{windowSize:o,children:e.jsx(E,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Ee as default};
84
+ `,t=I.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=I.getLocalizedStrings().commonSetUp.businessVerification.terms,Ee=({billPaySetupView:i,analytics:o,meetingUrl:S,videoUrl:Z,onButtonClick:H,onBackClick:J,onSetupBillPaySuccess:z,onClickMenuIcon:N})=>{const h=F(),a=f(),{billPayTermsDetails:p}=i,[K,Q]=g.useState(!1),[W,k]=g.useState(!1),v=Y(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const X=()=>{o?.trackBillPayPromoScheduleDemo(),k(!0)},q=ce(h.loggedInUserRoleMap),P=pe(h.loggedInUserRoleMap)&&!q,T=P?t.setupNonAccessableUsersPromoText:t.promoText;return e.jsxs(ge,{children:[K===!0?e.jsx(me,{onCancelClick:()=>{Q(!1)},videoUrl:Z}):null,W===!0?e.jsx(ee,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ie,{title:t.title,onBackClick:J,showBackButton:!xe(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:N,source:"BillPayPromoPage"}),e.jsxs(ue,{windowSize:a,children:[a==="small"?e.jsx(ye,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(Se,{}):e.jsx(ze,{}),P===!1?e.jsxs(je,{children:[e.jsxs($e,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:t.scheduleDemoButton,onClick:X,"data-testid":B("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:a,children:t.orText}),e.jsx(C,{variant:"primary",label:t.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:H,"data-testid":B("billpay-setup-button")})]}),e.jsxs(fe,{children:[t.terms.terms1,e.jsx(x,{href:r.consentUrl,linkText:r.consent}),r.term2,e.jsx(x,{href:r.depositUrl,linkText:r.depositTerms}),r.term3,e.jsx(x,{href:r.privacyPolicyUrl,onZeniLinkClick:()=>(o?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(x,{href:r.tosUrl,onZeniLinkClick:()=>(o?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,t.terms.terms3]})]}):null]})]})},Se=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsx(_,{windowSize:o,children:e.jsx(E,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(V,{windowSize:o,children:[e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.fullyManagedText.bold}),e.jsx(y,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(R,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.multiLevelApprovalText.bold}),e.jsx(y,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(j,{children:t.aiPoweredText.bold}),e.jsx(y,{children:t.aiPoweredText.regular})]})]})]})]})},ze=()=>{const i=M(),o=f();return e.jsxs(L,{windowSize:o,children:[e.jsxs(V,{windowSize:o,children:[e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.fullyManagedText.bold}),e.jsx(u,{children:t.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(R,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.multiLevelApprovalText.bold}),e.jsx(u,{children:t.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:o,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(w,{children:t.aiPoweredText.bold}),e.jsx(u,{children:t.aiPoweredText.regular})]})]})]}),e.jsx(_,{windowSize:o,children:e.jsx(E,{windowSize:o,children:i.mode==="dark"?e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Ee as default};
@@ -1,4 +1,4 @@
1
- import{y as De,J as Oe,aS as F,aa as $e,cI as Re,b as Ue,aX as Z,V as t,fg as Le,p as ze,ac as He,x as u,bE as Me,L as qe,ae as Ne,fz as L,dS as Ge,fA as Je,by as Qe,dI as Ye,bV as Ze,fB as Ke,aT as Xe,o as H,fC as et,u as a,an as tt,bM as it}from"./index-CZZQCAd2.js";import{a as m}from"./sentry-KKNtqb_g.js";import{n as b}from"./mui-1V4DDk1u.js";import{bJ as nt}from"./zeni-epic-state-BIDncbwZ.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-CcTFuMyK-D2kgY2Ed.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.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]="d9a10b7c-eb3b-48cc-ba3a-a8eb622dc64a",e._sentryDebugIdIdentifier="sentry-dbid-d9a10b7c-eb3b-48cc-ba3a-a8eb622dc64a")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},K="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:M,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,B=F(f),J=F(P.fetchState),Q=F(D.fetchState),Y=F(O.fetchState),w=$e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Q==="In-Progress"&&D.fetchState==="Completed"||Y==="In-Progress"&&O.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Q,D.fetchState,Y,O.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,E)=>{const o=E[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((E,{name:o})=>{o!=null&&E!=null&&Re(()=>Be(o,E))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&M()},[M,J,P.fetchState]);const{commonSetUp:je,spendManagement:Ee}=Ue.getLocalizedStrings(),{setUp:r}=je,{billPaySetup:l}=Ee.billPay,$=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),R=T?.isBillPayEnabled===!0,Fe=$?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",j=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(Le,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":He("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Fe}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...w,children:t.jsx("form",{id:X(K),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(L,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(L,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(L,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),$&&!R&&V.length>0?t.jsx(Xe,{formId:X(K),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${H.sp3}`}}):null,t.jsx(et,{isFooterRendered:$&&!R,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
1
+ import{y as De,J as Oe,aS as F,aa as Re,cI as $e,b as Ue,aX as Z,V as t,fg as Le,p as ze,ac as He,x as u,bE as Me,L as qe,ae as Ne,fz as L,dS as Ge,fA as Je,by as Qe,dI as Ye,bV as Ze,fB as Ke,aT as Xe,o as H,fC as et,u as a,an as tt,bM as it}from"./index-CGTxoCJp.js";import{a as m}from"./sentry-CuNQ_GI9.js";import{n as b}from"./mui-CD7xFf2d.js";import{bJ as nt}from"./zeni-epic-state-BJYsNVul.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-N-_Kdezc-3iy-UCwO.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.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]="d1a9738f-5526-4394-a98a-c4b22ce002b7",e._sentryDebugIdIdentifier="sentry-dbid-d1a9738f-5526-4394-a98a-c4b22ce002b7")}catch{}})();const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},K="billPaySetUpPage",W="billPayAccount",Ct=({billPaySetupView:e,isDisabled:p,billpayApprovalView:v,meetingUrl:C,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:fe,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEnableBillPayClick:me,onEnableBillPaySuccess:M,onClickMenuIcon:be,onInternationPaymentSetUpClick:ye,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const k=De(),i=Oe(),[A,S]=m.useState(!1),q=m.useRef(null),{fetchState:f,updateStatus:P,accountUpdateStatus:ke,plaidConnectionDetails:_,allBankAccounts:Ae,companyBillPayInfo:T,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:d,allFundingAccounts:N}=e,h=T?.internationalWireOnboardingStatus,I=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:V,approvalRulesStatus:Ie}=v,D=_.link_account.updateStatus,O=_.update_account.updateStatus,B=F(f),J=F(P.fetchState),Q=F(D.fetchState),Y=F(O.fetchState),w=Re({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),A&&B==="In-Progress"&&f==="Completed"&&S(!1)},[c,f,B]),m.useEffect(()=>{(B==="In-Progress"&&f==="Completed"||Q==="In-Progress"&&D.fetchState==="Completed"||Y==="In-Progress"&&O.fetchState==="Completed")&&w.reset(z(e))},[B,f,w,e,Q,D.fetchState,Y,O.fetchState]);const Ve=w.handleSubmit(x=>{y.trackEnableBillPay(),me()}),Be=async(x,E)=>{const o=E[W];if(x.includes(W)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&d?.id!=o.fundingAccount.selectedOption){const g=N.find(U=>U.id===o.fundingAccount.selectedOption);g!=null&&pe(o.fundingAccount.selectedOption,g.accType)}}else if(o.account.selectedOption!=null&&d?.id!=null&&d?.zeniAccountId!=o.account.selectedOption){const g=o.account.allOptions.find(U=>U.value===o.account.selectedOption);g!=null&&typeof g.label=="string"&&y.trackConnectBankLink(g.value,g.label,"bill_pay"),fe(o.account.selectedOption,d.id,d.accType)}}};m.useEffect(()=>{const x=w.watch((E,{name:o})=>{o!=null&&E!=null&&$e(()=>Be(o,E))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&P.fetchState==="Completed"&&M()},[M,J,P.fetchState]);const{commonSetUp:je,spendManagement:Ee}=Ue.getLocalizedStrings(),{setUp:r}=je,{billPaySetup:l}=Ee.billPay,R=T?.isBusinessVerified===!0&&(d?.accType==="depositAccount"||nt(d?.providerVerificationStatus?.code??"")),$=T?.isBillPayEnabled===!0,Fe=R?r.setupVerifiedSubTitle:l.setupSubTitle,We=f==="In-Progress"||f==="Not-Started"||G==="In-Progress"||G==="Not-Started",j=k.mode==="light"?new Z(k.colors.brandColorJadeLight):new Z(k.colors.brandColorJadeDark),_e=()=>{!A&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?S(!0):ce?.()};return t.jsxs(lt,{ref:q,children:[t.jsx(Le,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:A,onClose:()=>S(!1),style:{backgroundColor:ze.drawerBackground},transitionDuration:250,"data-testid":He("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:P,onEditFileName:Se,onDeleteFile:Pe,updateFilesEntity:we,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!$&&(i==="medium-compact"||i==="small"),onClickMenuIcon:be,scrollableContent:q,backgroundColor:k.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(dt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Fe}),We?t.jsx(rt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ne,{...w,children:t.jsx("form",{id:X(K),onSubmit:Ve,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(L,{onClick:_e,title:r.businessVerificationTitle,subTitle:r.businessVerificationSubTitle,header:r.businessVerificationHeader,icon:{element:t.jsx(Ge,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},status:T?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(Je,{connectedAccountProvider:ee,primaryFundingAccount:d,allFundingAccounts:N,plaidConnectionDetails:_,allBankAccounts:Ae,sectionId:W,isDisabled:p,onFetchLinkTokenClick:de,onEstablishConnectionClick:re,onUpdatePaymentAccountStatus:he,onUpdatePaymentAccountLoginStatus:ge,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Qe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(L,{title:V.length>0?r.approvalTitle:r.createApprovalTitle,subTitle:l.approvalSubTitle,header:V.length>0?r.approvalHeader:r.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:V.length>0?Ie:void 0})]})})}),s===!0?t.jsx(L,{title:I?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:j},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{I&&y.trackEnableIntlWire(ie),ye?.()},status:I?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Ze,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:I}):null]})]}),R&&!$&&V.length>0?t.jsx(Xe,{formId:X(K),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:P.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:p!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${H.sp3}`}}):null,t.jsx(et,{isFooterRendered:R&&!$,meetingUrl:C,analytics:y,productType:"bill_pay"})]})},at=b.div``,lt=b.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{y as Se,J as we,aa as Ce,cI as Pe,aX as k,b as xe,V as t,x as P,bE as Ie,L as Ae,ae as ve,by as je,cJ as ke,aT as $e,o as s,hV as Te,f2 as Ve,f3 as De,u as x,an as Ee,h1 as Be,p as Le,c as Oe}from"./index-CZZQCAd2.js";import{a as H}from"./sentry-KKNtqb_g.js";import{n as r}from"./mui-1V4DDk1u.js";import{M as ze,o as R,t as Me}from"./PaymentAccountSetupBillingAddressSection-6eOH3fw_-DdzzCUgo.js";import{F as _e}from"./SetUpAccountSection-Tadm9fSr-BLYLZVyR.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./zeni-epic-state-BIDncbwZ.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.js";import"./commonTypes-DXJEXDhr-CsYzRDog.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]="a19560b5-c21b-4ff4-a8be-c9c5b2e9e93b",e._sentryDebugIdIdentifier="sentry-dbid-a19560b5-c21b-4ff4-a8be-c9c5b2e9e93b")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},He={title:new Oe("standardSemiBold","largeSemiBold")},W="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:d,onClickMenuIcon:A,uiState:J,stripeKey:K,googleAPIKey:N,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const w=Se(),o=we(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(i),values:F(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(q)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:S}=a[n].street,j=Ve(S?.country);u={street:a[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:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&re(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&G(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const E=w.mode==="light"?new k(w.colors.brandColorJadeLight):new k(w.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:b}},common:l,billingSetupPage:B}=xe.getLocalizedStrings(),ge=B.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,O=h?.cardsList[0]?.brand??"other",z=h?.addCardPaymentSourceStatus.fetchState,C=ze(b.header,b.titleText,b.protectedCardNo,h);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:R(O).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(O).name}),color:new k(E)},showCompletedIcon:!1,isError:z==="Error",isLoading:z==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,be]=H.useState(!1);return t.jsxs(We,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:B.section.title,backgroundColor:w.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{windowSize:o,children:[t.jsx(Fe,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Ge,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:b.header,sectionTitle:b.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,d)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:U(W),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:J.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:be})]})},F=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},Re=r.div`
1
+ import{y as we,J as be,aa as Ce,cI as Pe,aX as k,b as xe,V as t,x as P,bE as Ie,L as Ae,ae as ve,by as je,cJ as ke,aT as $e,o as s,hV as Te,f2 as Ve,f3 as De,u as x,an as Ee,h1 as Be,p as Le,c as Oe}from"./index-CGTxoCJp.js";import{a as H}from"./sentry-CuNQ_GI9.js";import{n as d}from"./mui-CD7xFf2d.js";import{M as ze,o as R,t as Me}from"./PaymentAccountSetupBillingAddressSection-Bvo4Jnoy-D8BlefcU.js";import{F as _e}from"./SetUpAccountSection-6NXF_yfU-BamPpzSM.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./zeni-epic-state-BJYsNVul.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.js";import"./commonTypes-B6f3YP8V-CbYlRzb2.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]="2e628372-af4e-4dd1-879a-35293d4194ad",e._sentryDebugIdIdentifier="sentry-dbid-2e628372-af4e-4dd1-879a-35293d4194ad")}catch{}})();const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,x[5],x[5]),iconWidthHeight:new P(20,x[4]),subTitlePaddingTop:new P(12,x[3])},He={title:new Oe("standardSemiBold","largeSemiBold")},W="billingSetupPage",I="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:i,connectedAccountProvider:m,isDisabled:r,onClickMenuIcon:A,uiState:J,stripeKey:K,googleAPIKey:N,companyId:q,onUpdateAccountClick:G,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:de})=>{const b=we(),o=be(),{setupView:{paymentAccount:y,plaidConnectionDetails:re,allBankAccounts:le,accountFetchStatus:T},cardPaymentView:h}=i,ce=i.subscriptionBillingAddress,V=y?.providerVerificationStatus,ue=T.fetchState==="In-Progress"||T.fetchState==="Not-Started",f=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:F(i),values:F(i),resetOptions:{keepDirtyValues:!0}}),pe=f.handleSubmit(c=>{se(q)}),D=i.subscriptionBillingAddressSaveStatus,me=async(c,a)=>{const g=a[I];if(c.includes(n)&&a[n]!=null){const v=f.getValues(`${n}`).country;let u=a[n];if(c.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:w}=a[n].street,j=Ve(w?.country);u={street:a[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:De(v.selectedOption)});u!=null&&de(u)}else c.includes(I)&&g.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==g.account.selectedOption&&G(g.account.selectedOption,y.paymentAccountId)};H.useEffect(()=>{const c=f.watch((a,{name:g})=>{g!=null&&a!=null&&Pe(()=>me(g,a))});return()=>{c.unsubscribe()}});const E=b.mode==="light"?new k(b.colors.brandColorJadeLight):new k(b.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:S}},common:l,billingSetupPage:B}=xe.getLocalizedStrings(),ge=B.section.subTitle,{text:ye,subText:fe}=he,L=h.cardsList.length>0,O=h?.cardsList[0]?.brand??"other",z=h?.addCardPaymentSourceStatus.fetchState,C=ze(S.header,S.titleText,S.protectedCardNo,h);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:R(O).iconURL,width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o),alt:R(O).name}),color:new k(E)},showCompletedIcon:!1,isError:z==="Error",isLoading:z==="In-Progress",isCompleted:!0,showRightArrow:!1});const[_,Se]=H.useState(!1);return t.jsxs(We,{children:[t.jsx(Ie,{source:"BillingSettingsPage",title:B.section.title,backgroundColor:b.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:A}),t.jsxs(Re,{windowSize:o,children:[t.jsx(Fe,{windowSize:o,children:ge}),ue?t.jsx(Ue,{children:t.jsx(Ae,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...f,children:t.jsx(Ge,{children:t.jsx("form",{id:U(W),onSubmit:pe,children:t.jsxs(Je,{windowSize:o,children:[t.jsx(_e,{connectedAccountProvider:m,paymentAccount:y,plaidConnectionDetails:re,allBankAccounts:le,header:S.header,sectionTitle:S.header,defaultSectionTitle:ye,defaultSectionSubTitle:fe,sectionId:I,isDisabled:r,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:V?.code==="require_info"||V?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(o),height:p.iconWidthHeight.valuePx(o)}),color:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:h,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:_}),Ke(o,l.headers.billingAddress,ce,N,r)]})})})}),ke(f.formState.dirtyFields)?t.jsx($e,{formId:U(W),style:{width:o==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:D?.fetchState==="In-Progress",isDisabled:D?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:h,isCardPaymentOpen:J.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:K,cardSetupInProgress:_,setCardSetupInProgress:Se})]})},F=e=>{const{paymentAccount:i,allBankAccounts:m}=e.setupView;return{[I]:{account:{selectedOption:i?.zeniAccountId,allOptions:m.map(r=>({label:r.accountName,value:r.accountId}))}},[n]:Te(n,e.subscriptionBillingAddress)[n]}},Re=d.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -6,13 +6,13 @@ import{y as Se,J as we,aa as Ce,cI as Pe,aX as k,b as xe,V as t,x as P,bE as Ie,
6
6
  flex-direction: column;
7
7
  align-items: center;
8
8
  row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
9
- `,We=r.div`
9
+ `,We=d.div`
10
10
  display: flex;
11
11
  min-height: 100%;
12
12
  flex-direction: column;
13
13
  width: 100%;
14
14
  background-color: ${e=>e.theme.colors.grey4};
15
- `,Fe=r(Ee)`
15
+ `,Fe=d(Ee)`
16
16
  color: ${e=>e.theme.colors.hero};
17
17
  display: flex;
18
18
  justify-content: center;
@@ -20,7 +20,7 @@ import{y as Se,J as we,aa as Ce,cI as Pe,aX as k,b as xe,V as t,x as P,bE as Ie,
20
20
  padding-top: ${e=>p.subTitlePaddingTop.valuePx(e.windowSize)};
21
21
  padding-bottom: ${s.sp3};
22
22
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
23
- `,Ue=r.div`
23
+ `,Ue=d.div`
24
24
  display: flex;
25
25
  width: 100%;
26
26
  height: calc(100vh - 110px);
@@ -28,17 +28,17 @@ import{y as Se,J as we,aa as Ce,cI as Pe,aX as k,b as xe,V as t,x as P,bE as Ie,
28
28
  justify-content: center;
29
29
  align-items: center;
30
30
  background-color: ${e=>e.theme.colors.grey4};
31
- `,Je=r.div`
31
+ `,Je=d.div`
32
32
  display: flex;
33
33
  flex-direction: column;
34
- `,Ke=(e,i,m,d,A)=>t.jsxs(Ne,{children:[t.jsx(qe,{windowSize:e,isDisabled:A==="disabled",children:i}),t.jsx(Be,{googleAPIKey:d??"",addressToEdit:m,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),Ne=r.div`
34
+ `,Ke=(e,i,m,r,A)=>t.jsxs(Ne,{children:[t.jsx(qe,{windowSize:e,isDisabled:A==="disabled",children:i}),t.jsx(Be,{googleAPIKey:r??"",addressToEdit:m,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),Ne=d.div`
35
35
  margin-top: ${s.sp3};
36
36
  margin-bottom: ${s.sp4};
37
- `,qe=r.div`
37
+ `,qe=d.div`
38
38
  ${e=>`${He.title.style(e.windowSize)}`};
39
39
  margin-bottom: ${s.sp3};
40
40
  margin-top: ${s.sp4};
41
41
  color: ${e=>e.isError===!0?Le.important:e.isDisabled===!0?e.theme.colors.grey1:e.theme.colors.primary};
42
- `,Ge=r.div`
42
+ `,Ge=d.div`
43
43
  flex: 1;
44
44
  `,U=e=>`${e}_form`;export{ct as default,U as uniqueName};
@@ -1 +1 @@
1
- import{V as b,cs as V,ct as M,cu as W,kh as q,a_ as z,b as H}from"./index-CZZQCAd2.js";import{a as f}from"./sentry-KKNtqb_g.js";import{H4 as J}from"./zeni-epic-state-BIDncbwZ.js";import{u as X}from"./ReviewOverlay-BL4VJPxb-D6vjuRhs.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./mui-1V4DDk1u.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.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]="c81f99c6-16c7-40a0-a041-636ad5a9f9cc",e._sentryDebugIdIdentifier="sentry-dbid-c81f99c6-16c7-40a0-a041-636ad5a9f9cc")}catch{}})();const{common:n,spendManagement:{billPay:x}}=H.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[s,v]=f.useState(T(e,u)),[p,k]=f.useState(u),[P,E]=f.useState(0),[h,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[s.length,P,p,e.fetchState,u,e]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(y);j({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},N={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:A,description:F}=G(m,y,R,p),B=e.fetchState==="Completed"&&y===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:B?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:B?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(W,{children:h.title}),descriptionComponent:b.jsx(M,{children:h.description}),primaryButtonText:h.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:h.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,hideCancel:B}})]})},T=(e,r)=>{const l=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:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&J(t.reviewErrors[0].reviewErrorCode),subTitle:K(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=n.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},G=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=n.texts,w=r>1,s=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?x.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
1
+ import{V as b,cs as V,ct as M,cu as W,kh as q,a_ as z,b as H}from"./index-CGTxoCJp.js";import{a as f}from"./sentry-CuNQ_GI9.js";import{H4 as J}from"./zeni-epic-state-BJYsNVul.js";import{u as X}from"./ReviewOverlay-f-2s-XBM-D-MuCoTz.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./mui-CD7xFf2d.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.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]="60edcfa6-0b89-4139-9a3b-66f6417c09c0",e._sentryDebugIdIdentifier="sentry-dbid-60edcfa6-0b89-4139-9a3b-66f6417c09c0")}catch{}})();const{common:n,spendManagement:{billPay:x}}=H.getLocalizedStrings(),o=x.bulkActions;let I;const de=({billsReviewView:e,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:t,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:_}=e,u=i==="review",[C,w]=f.useState(!1),[s,v]=f.useState(T(e,u)),[p,k]=f.useState(u),[P,E]=f.useState(0),[h,j]=f.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});f.useEffect(()=>(u&&(I=setInterval(()=>{v(d=>d.map((S,L)=>(clearInterval(I),L===P?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),E(d=>d+1)},1e3)),P===s.length&&p&&(k(!1),clearInterval(I)),!u&&e.fetchState==="Completed"&&v(T(e,!1)),()=>{clearInterval(I)}),[s.length,P,p,e.fetchState,u,e]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,D=()=>{const{title:d,description:S}=Z(y);j({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,_),w(!0)},N={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,_,Y(e)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:A,description:F}=G(m,y,R,p),B=e.fetchState==="Completed"&&y===0,$=()=>{r.trackBillPayBulkSubmit(i,g,_),l(i)},U={label:B?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:B?c:$,style:i==="send_for_approval"?{minWidth:"92px"}:{}},O={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:D,style:i==="approve"?{minWidth:"92px"}:{}};return b.jsxs(b.Fragment,{children:[C?b.jsx(V,{titleComponent:b.jsx(W,{children:h.title}),descriptionComponent:b.jsx(M,{children:h.description}),primaryButtonText:h.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:h.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,b.jsx(X,{title:A,description:{content:F,isError:e.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:t,onCloseOverlay:c,showFooter:e.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:O,hideCancel:B}})]})},T=(e,r)=>{const l=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:n.strings.hyphen}`},rightSideText:{title:z("0,0.[00]",t.amount?.amount,t.amount?.currencySymbol),showThunderIcon:t.reviewErrors?.length===1&&J(t.reviewErrors[0].reviewErrorCode),subTitle:K(t.reviewStatus==="warning",t.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:t.reviewErrors!=null&&t.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:t.reviewErrors?.length===1&&t.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":t.reviewStatus??""}}))},Y=e=>{const r=e.billsForReview;let l=[];return r.forEach(t=>{l=q([...l,t.isRecurring?"recurring":"one-time"])}),l},Z=e=>{const{this_:r,these:l,bill:t,bills:c,payment:m,payments:a}=n.texts;return e>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",t)}},G=(e,r,l,t)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:_,do_:u,does:C}=n.texts,w=r>1,s=l>1;let v="",p="";return e==="Completed"&&!t?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?x.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:C):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:_)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(e,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return e?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{de as default,Y as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{J as l,V as s,ac as b,o as e}from"./index-CZZQCAd2.js";import{n as a}from"./mui-1V4DDk1u.js";import{o as p}from"./commonDimensions-Om-6fiMl-CN-97Hnw.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]="5451d096-e457-41c5-9aa4-f3715c1f07c8",o._sentryDebugIdIdentifier="sentry-dbid-5451d096-e457-41c5-9aa4-f3715c1f07c8")}catch{}})();const m=(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=l();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(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
1
+ import{J as l,V as s,ac as b,o as e}from"./index-CGTxoCJp.js";import{n as a}from"./mui-CD7xFf2d.js";import{o as p}from"./commonDimensions-BgUllk7Z-mJRWeU7K.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]="0e36b9b4-f11a-486a-95f4-61de5d990283",o._sentryDebugIdIdentifier="sentry-dbid-0e36b9b4-f11a-486a-95f4-61de5d990283")}catch{}})();const m=(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=l();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(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",r),children:o});case"box":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",r),children:o});case"roundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",r),children:o})}}const n=a.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>p.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -1,4 +1,4 @@
1
- import{y as dt,J as ut,aS as ve,V as a,ag as W,aa as pt,cY as mt,aA as ft,cI as yt,a_ as Te,aR as Oe,gf as ht,a as gt,bE as xt,ac as St,cJ as wt,cs as Ct,ct as bt,cu as Dt,L as vt,ae as Tt,aT as Ot,o as l,x as V,ao as je,b as Fe,gg as It,fD as Ie,f2 as Nt,e as $t,d as kt,an as Ae,c as Pt,M as Vt,u as N}from"./index-CZZQCAd2.js";import{a as j}from"./sentry-KKNtqb_g.js";import{n as d}from"./mui-1V4DDk1u.js";import{Fy as jt,bi as Y,G3 as Ft,G2 as At,G4 as _t}from"./zeni-epic-state-BIDncbwZ.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-BxcbL0xy-CPql_B00.js";import"./liveblocks-DYmELrdC.js";import"./core-BPh6D8v5.js";import"./recharts-W_ILlOEk.js";import"./lottie-BRpRA-Un.js";import"./analytics-CQziHS33.js";import"./lexical-CO_PvSmH.js";import"./utils-DuPmVt2f.js";import"./helper-BBJS-iD4-DcHpxRaM.js";import"./LabeledAddressValueField-BPAdd5QC-DJSlRcrD.js";import"./LabeledCountryMultiSelectField-BQNPVmeO-w6euYfRf.js";import"./LabeledCreatableSingleSelectField-BaooQYnP-CHclcBym.js";import"./LabeledDocumentField-13QPp-85-BBjOcC33.js";import"./commonTypes-DXJEXDhr-CsYzRDog.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="7f5f11a5-87de-40b5-9b73-d531a0e5ede8",t._sentryDebugIdIdentifier="sentry-dbid-7f5f11a5-87de-40b5-9b73-d531a0e5ede8")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,N[3]),subTitlePaddingBottom:new V(N[3],N[3]),verificationDetailsRowGap:new V(12,N[5],N[5]),termsPaddingLeftRight:new V(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=Fe.getLocalizedStrings(),Ta=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:s,authParams:B,productType:y,allIndustries:F,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:J=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:se,onCompanyDetailsChanged:Me,updateFilesEntity:ie,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:oe,onSaveDetailsClick:We,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Je})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:C}=t,qe=ve(R.fetchState),M=_?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Qe,Z]=j.useState(!1),[U,re]=j.useState("save"),[q,Xe]=j.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Mt(t,F,z,S)}),{isValid:He}=p.formState,G=_?.company.company.companyBillPayInfo,K=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:G?.companyVerificationStatus,T=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${T<0?1:T+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,b=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,H=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,De=ee?.email;n!=null&&f!=null&&b!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&be!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:De},y,o?"Settings":void 0)},tt=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,b=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):b&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||Q!=null&&Q?.length>0)return p.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},st=p.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${v}.${T}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);jt(e.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(O),J===!0&&Je?.())}),it=async(e,n)=>{e.includes(D)?Me?.(n[D]):e.includes(v)&&Ge?.(n[v])},nt=j.useCallback(ft((e,n)=>{it(e,n)},300),[]);j.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${D}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Q=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),A();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const b=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{b.includes(I)||e.push(I)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{Z(!1)}},lt=Te(Oe(m),m,$e.currencySymbol).toUpperCase(),X=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(sa,{children:[a.jsxs(ia,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:J===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:J===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Te(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(gt,{label:i.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]});const ct=()=>{const e=G?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Ut,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:i.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):A()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Qe===!0?a.jsx(Ct,{titleComponent:a.jsx(Dt,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Wt,{windowSize:u,children:o?Et.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Jt,{children:a.jsx(vt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:st,children:[h&&w===!0&&a.jsxs(Gt,{children:[a.jsxs(Qt,{windowSize:u,children:[a.jsx(Xt,{windowSize:u,children:X?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!X&&a.jsx(Ht,{children:a.jsxs(ea,{children:[a.jsx(Ve,{}),de&&a.jsx(Ve,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:X,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:Q??[],sectionId:v,isRefreshingViewInBackground:L,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:ie,onEditFileName:se,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:s,authParams:B,isPopupOpen:q,openPopup:Xe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:se,onDeleteFile:ne,updateFilesEntity:ie},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:M,allIndustries:F,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:i.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":G?.businessVerificationStatus?.code!=="pending_review"&&G?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:i.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const e=C[O],n=r?.primaryContactLocalData;U!=="save"&&re("save");const c=e?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),We?.(O))}}},helperText:Ke,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Mt=(t,S,$,L)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=t,F=Fe.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:F.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:F.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:[...At]},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:s?.usNexusTypes??[],allOptions:[...Ft]},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[v]:Object.values(B).map((m,k)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${k+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Ut=d.div`
1
+ import{y as dt,J as ut,aS as ve,V as a,ag as W,aa as pt,cY as mt,aA as ft,cI as yt,a_ as Te,aR as Oe,gf as ht,a as gt,bE as xt,ac as St,cJ as wt,cs as Ct,ct as bt,cu as Dt,L as vt,ae as Tt,aT as Ot,o as l,x as V,ao as je,b as Fe,gg as It,fD as Ie,f2 as Nt,e as $t,d as kt,an as Ae,c as Pt,M as Vt,u as N}from"./index-CGTxoCJp.js";import{a as j}from"./sentry-CuNQ_GI9.js";import{n as d}from"./mui-CD7xFf2d.js";import{Fy as jt,bi as Y,G3 as Ft,G2 as At,G4 as _t}from"./zeni-epic-state-BJYsNVul.js";import{r as Lt,z as Bt}from"./CompanyOfficerDetailsSection-C1yoAdZ6-B9_PbeF5.js";import"./liveblocks-Dn-9djA8.js";import"./core-CDOHNO2G.js";import"./recharts-CeYsUNdm.js";import"./lottie-BYfhMHcn.js";import"./analytics-BTo2lvc5.js";import"./lexical-BeF2ZgkW.js";import"./utils-i_tuliLj.js";import"./helper-C1Mwnd6M-CNavDJqc.js";import"./LabeledAddressValueField-ig7qAURp-BZ_M96P1.js";import"./LabeledCountryMultiSelectField-H4Sug2-M-CL-o7tf1.js";import"./LabeledCreatableSingleSelectField-DWEYfaTn-33WE7LED.js";import"./LabeledDocumentField-heF_7XXJ-Bpbc_iNk.js";import"./commonTypes-B6f3YP8V-CbYlRzb2.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},S=new t.Error().stack;S&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[S]="f98717bf-c617-4431-a032-9ae2c3f10f37",t._sentryDebugIdIdentifier="sentry-dbid-f98717bf-c617-4431-a032-9ae2c3f10f37")}catch{}})();const x={width:new V(343,580,726),titleWidth:new V(343,580,726,826),subTitlePaddingTop:new V(12,N[3]),subTitlePaddingBottom:new V(N[3],N[3]),verificationDetailsRowGap:new V(12,N[5],N[5]),termsPaddingLeftRight:new V(N[0],N[3])},zt={stepTitle:new Pt("h6Regular","h5Regular")},Ne="businessVerificationPage",D="companyDetails",v="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Et,currency:$e,footer:ke,strings:{empty:Rt}}}=Fe.getLocalizedStrings(),Ta=({businessVerificationDetails:t,allNationalityCountries:S,verficationDetailsFetchState:$,isRefreshingViewInBackground:L,filesEndPoint:s,authParams:B,productType:y,allIndustries:F,companyTitles:z,maxInsuredAmount:m,isDisabled:k,isSettings:o=!1,isOverlay:h=!1,analytics:g,isStepInProgress:w=!1,isTreasuryTransferInitiated:J=!1,transferDetails:E,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:Le,onBackClick:A,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,onSendForVerificationClick:Re,onEditFileName:se,onCompanyDetailsChanged:Me,updateFilesEntity:ie,onDeleteFile:ne,onDeleteFileList:Ue,onCompanyOfficerUpdated:Ge,saveNewAddressInLocalStore:oe,onSaveDetailsClick:We,onClickMenuIcon:Ye,onExecuteTreasuryTransfer:Je})=>{const Ze=dt(),u=ut(),{updateStatus:R,companyView:_,companyDetailsLocalData:r,companyOfficerLocalData:C}=t,qe=ve(R.fetchState),M=_?.company.company.featuresActivationInfo.connectedAccountProvider,Ke=M==="unit"?a.jsxs(Kt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Qe,Z]=j.useState(!1),[U,re]=j.useState("save"),[q,Xe]=j.useState(!1),p=pt({mode:"all",reValidateMode:"onChange",defaultValues:Mt(t,F,z,S)}),{isValid:He}=p.formState,G=_?.company.company.companyBillPayInfo,K=_?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?K?.companyVerificationStatus:G?.companyVerificationStatus,T=Object.values(C).findIndex(e=>e?.isSelectedForVerification===!0),O=`Officer_${T<0?1:T+1}`,et=()=>{const e=C[O],n=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,b=e?.firstName,I=e?.lastName,ue=e?.titleAtCompany,pe=e?.documentTypeSelectedForVerification,me=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?Y(fe):void 0,he=r?.companyDescription,H=r?.companyLegalName,ge=r?.companyIndustry,xe=r?.phone,Se=r?.website,we=r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0,ee=r?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,De=ee?.email;n!=null&&f!=null&&b!=null&&I!=null&&c!=null&&ue!=null&&me!=null&&ye!=null&&pe!=null&&he!=null&&H!=null&&xe!=null&&Se!=null&&ge!=null&&H!=null&&we!=null&&Ce!=null&&be!=null&&De!=null&&g?.trackBusinessVerificationSend({email:n,birthday:c.toString(),companyOwnership:f,firstName:b,lastName:I,companyRole:ue,phone:me,formattedAddress:ye,documentTypeForVerification:pe},{companyDescription:he,legalName:H,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:De},y,o?"Settings":void 0)},tt=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,b=n?.email??"",I=!!n?.firstName&&!!n?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&p.trigger(`${v}.${T<0?0:T}.name`,{shouldFocus:!0}),!1):b&&!I?((!n?.firstName||!n?.lastName)&&p.trigger(`${D}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=C[O],n=r?.primaryContactLocalData,c=e?.email,f=n?.email;if(c){if(!f)return(n?.firstName||n?.lastName)&&p.trigger(`${D}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||Q!=null&&Q?.length>0)return p.trigger(`${v}.${T<0?0:T}.email`,{shouldFocus:!0}),!1;return!0},st=p.handleSubmit(()=>{if(U!=="verification"&&re("verification"),M==="unit"&&C[O]?.isPhoneVerified!==!0){p.setError(`${v}.${T}.phone`,{type:"custom"});return}const e=mt(Object.values(C).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),n=Object.values(r?.deleteFileStatusById??{}).filter(c=>c!=null);jt(e.concat(n)).fetchState!=="In-Progress"&&He&&(et(),Re?.(O),J===!0&&Je?.())}),it=async(e,n)=>{e.includes(D)?Me?.(n[D]):e.includes(v)&&Ge?.(n[v])},nt=j.useCallback(ft((e,n)=>{it(e,n)},300),[]);j.useEffect(()=>{const e=p.watch((n,{name:c})=>{c!=null&&n!=null&&yt(()=>nt(c,n))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);j.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(oe?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${D}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,oe,p]);const ce=_?.companyOfficers.slice(0,10).sort((e,n)=>e.user.createTime?.isAfter(n.user.createTime)===!0?1:-1),Q=ce?.map(e=>e.user),ot=ce?.map(e=>e.role),rt={onOkClick:()=>{Z(!1),A();const e=[],n=_?.company.company.incInfo.fileIds??[];p.getValues(`${D}.fileIds`).forEach(c=>{n.includes(c)||e.push(c)}),ot?.forEach((c,f)=>{const b=c?.fileIds??[];p.getValues(`${v}.${f}.fileIds`).forEach(I=>{b.includes(I)||e.push(I)})}),e.length!==0&&Ue?.(e)},onCancelClick:()=>{Z(!1)}},lt=Te(Oe(m),m,$e.currencySymbol).toUpperCase(),X=P?.code==="pending_review"||P?.code==="verified",de=(E?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;if(y==="zeni_treasury"&&P?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed")return a.jsxs(sa,{children:[a.jsxs(ia,{children:[a.jsx(ht,{}),a.jsx(na,{windowSize:u,children:J===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(aa,{isReadonly:!1,children:J===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Te(Oe(E?.treasuryTransferMoneyLocalData?.amount?.amount??0),E?.treasuryTransferMoneyLocalData?.amount?.amount??0,$e.currencySymbol)).replace("__account__",E?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(gt,{label:i.submittedButton,onClick:()=>{A(),te?.()},variant:"primary"})]});const ct=()=>{const e=G?.companyVerificationStatus?.code==="verified",n=(r?.countriesOfOperations?.length??0)>0||r?.companySourceOfFunds!=null||r?.transactionVolume!=null||r?.purposeOfAccount!=null||r?.registeredAddressStatus!=null||r?.usNexus!=null;return e===!0&&n===!1};return a.jsxs(Ut,{isSettings:o,children:[a.jsx(xt,{title:h&&w===!0?Rt:i.header,backgroundColor:Ze.colors.grey5,style:{zIndex:q?1:4},onBackClick:()=>{wt(p.formState.dirtyFields)?Z(!0):A()},showBackButton:!o&&!h,showMenuIcon:o?u==="medium-compact"||u==="small":!1,onClickMenuIcon:Ye,rightSideComponent:h?a.jsx(oa,{"data-testid":St("nav-bar-close-business-verification-overlay"),onClick:()=>{A(),te?.()}}):null,source:"BusinessVerificationPage"}),Qe===!0?a.jsx(Ct,{titleComponent:a.jsx(Dt,{children:i.discardTitle}),descriptionComponent:a.jsx(bt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:rt}):null,a.jsxs(Yt,{windowSize:u,children:[(!h||w===!1)&&a.jsx(Wt,{windowSize:u,children:o?Et.infoText.businessVerification:i.title}),$==="In-Progress"||$==="Not-Started"?a.jsx(Jt,{children:a.jsx(vt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...p,children:a.jsxs("form",{id:Pe(Ne),onSubmit:st,children:[h&&w===!0&&a.jsxs(Gt,{children:[a.jsxs(Qt,{windowSize:u,children:[a.jsx(Xt,{windowSize:u,children:X?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!X&&a.jsx(Ht,{children:a.jsxs(ea,{children:[a.jsx(Ve,{}),de&&a.jsx(Ve,{}),a.jsx(ta,{})]})})]}),a.jsx(_e,{isReadonly:X,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Zt,{children:[a.jsx(Lt,{companyOfficerData:C,allNationalityCountries:S,allOfficers:Q??[],sectionId:v,isRefreshingViewInBackground:L,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:ie,onEditFileName:se,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:k,filesEndPoint:s,authParams:B,isPopupOpen:q,openPopup:Xe,onGetOtp:Be,onVerifyOtp:ze,onResendOtp:Ee,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Bt,{companyDetails:r,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:L},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",hideNewOnboardingFields:ct(),sectionId:D,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":k,fileProps:{authParams:B,filesEndPoint:s,onEditFileName:se,onDeleteFile:ne,updateFilesEntity:ie},onCompanyAddressClick:ae,onRegisteredAddressClick:Le,connectedAccountProvider:M,allIndustries:F,allNationalityCountries:S})]}),y==="zeni_accounts"?a.jsx(qt,{windowSize:u,children:i.threadText.replace("__amount__",lt)}):null]})})]}),$==="Completed"&&(y==="zeni_treasury"?K?.companyVerificationStatus?.code!=="pending_review"&&K?.companyVerificationStatus?.code!=="verified":G?.businessVerificationStatus?.code!=="pending_review"&&G?.businessVerificationStatus?.code!=="verified")?a.jsx(Ot,{formId:Pe(Ne),primaryBtn:{label:w?ke.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="verification"&&R.fetchState==="In-Progress",isDisabled:k!=null},containerStyle:{width:u==="small"?x.width.valuePx(u):"auto",justifyContent:u==="small"?"space-between":"center"},helperStyle:{width:u==="small"?x.width.valuePx(u):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(u),paddingRight:x.termsPaddingLeftRight.valuePx(u),textAlign:u==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:w?ke.back:i.saveDetailsButton,style:{width:u==="small"?"auto":w?"83px":"181px"},isLoading:U==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(w)A();else{const e=C[O],n=r?.primaryContactLocalData;U!=="save"&&re("save");const c=e?.email??"",f=tt(),b=at();f&&b&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?Y(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:r?.companyDescription,legalName:r?.companyLegalName,phone:r?.phone,website:r?.website?.toString(),industry:r?.companyIndustry??"",formattedAddress:r?.addressStatus?.addressToCreate!=null?Y(r?.addressStatus?.addressToCreate):void 0},{firstName:n?.firstName,lastName:n?.lastName,email:n?.email},y,o?"Settings":void 0),We?.(O))}}},helperText:Ke,style:{padding:`12px ${l.sp3}`,zIndex:q?0:4}}):null]})},Mt=(t,S,$,L)=>{const{companyDetailsLocalData:s,companyOfficerLocalData:B,companyView:y}=t,F=Fe.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[D]:{companyDescription:s?.companyDescription??"",ein:s?.companyFiles.find(m=>m.documentType==="tax_ein"),companyId:s?.companyId??"",syncToken:s?.syncToken,companyLegalName:s?.companyLegalName??"",companyWebsite:s?.website?.toString()??"",companyAddress:s?.addressStatus?.addressToCreate,registeredAddress:s?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:s?.companyIndustry,allOptions:S?.map(m=>m.code)},companyPhone:s?.phone??"",companyTaxId:s?.taxIdOrEIN??"",primaryContactName:{firstName:s?.primaryContactLocalData?.firstName??"",lastName:s?.primaryContactLocalData?.lastName??""},primaryContactEmail:s?.primaryContactLocalData?.email??"",primaryContactUserId:s?.primaryContactLocalData?.userId,primaryContactSyncToken:s?.primaryContactLocalData?.syncToken,fileIds:s?.companyFiles.map(m=>m.fileId)??[],certificateOfIncorporation:s?.companyFiles.find(m=>m.documentType==="certificate_of_incorporation"),incDate:s?.incDate?.toDate(),typeOfIncorporation:{selectedOption:s?.typeOfIncorporation,allOptions:F.companyIncInfo.allTypesOfIncorporation},stateOfIncorporation:{selectedOption:s?.stateOfIncorporation,allOptions:F.companyIncInfo.allStatesOfIncorporation},sourceOfFunds:{selectedOption:s?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)},companySourceOfFunds:{selectedOption:s?.companySourceOfFunds??"",allOptions:Object.keys(i.companySourceOfFundOptions??{})},companySourceOfFundsDescription:s?.companySourceOfFundsDescription??"",transactionVolume:{selectedOption:s?.transactionVolume,allOptions:[..._t]},transactionVolumeDescription:s?.transactionVolumeDescription??"",purposeOfAccount:{selectedOption:s?.purposeOfAccount,allOptions:[...At]},purposeOfAccountDescription:s?.purposeOfAccountDescription??"",usNexus:s?.usNexus??"",usNexusTypes:{selectedOptions:s?.usNexusTypes??[],allOptions:[...Ft]},regulatedStatus:s?.regulatedStatus??"",regulatedStatusDescription:s?.regulatedStatusDescription??""},[v]:Object.values(B).map((m,k)=>{const o=m,h=It(o?.documentTypeSelectedForVerification);return{userId:o?.userId,officerType:o?.officerType??`Officer_${k+1}`,name:{firstName:o?.firstName,lastName:o?.lastName},email:o?.email,fileIds:o?.fileIds??[],dob:o?.birthday?.toDate(),nationalityCountryCode:Nt(o?.nationalityCountryCode,L.map(g=>g.countryCode)),ssn:o?.ssn,role:{selectedOption:o?.titleAtCompany,allOptions:$?.map(g=>g.code)},phone:o?.phone??"",ownership:o?.ownershipInCompany,officerAddress:o?.addressStatus?.addressToCreate,selectDocument:{front:Ie(!0,o?.userFiles??[],h),back:Ie(!1,o?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&k===0?!0:o?.isSelectedForVerification??!1,userVerificationStatus:o?.userVerificationStatus,treasuryUserVerificationStatus:o?.treasuryUserVerificationStatus,syncToken:o?.syncToken,isPhoneVerified:o?.isPhoneVerified,otpChallenge:o?.otpChallenge}})}},Pe=t=>`${t}_form`,Ut=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{J as m,V as r,b as w,w as y,o as a,c as b,M as x}from"./index-CZZQCAd2.js";import{n as o}from"./mui-1V4DDk1u.js";import{a as c}from"./sentry-KKNtqb_g.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="98aa8d3e-fedb-4c87-96fd-a0eb9ac622d9",e._sentryDebugIdIdentifier="sentry-dbid-98aa8d3e-fedb-4c87-96fd-a0eb9ac622d9")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=w.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
1
+ import{J as m,V as r,b as w,w as y,o as a,c as b,M as x}from"./index-CGTxoCJp.js";import{n as o}from"./mui-CD7xFf2d.js";import{a as c}from"./sentry-CuNQ_GI9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="98aa8d3e-fedb-4c87-96fd-a0eb9ac622d9",e._sentryDebugIdIdentifier="sentry-dbid-98aa8d3e-fedb-4c87-96fd-a0eb9ac622d9")}catch{}})();const $=e=>c.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:p,spendManagement:{chargeCard:t}}=w.getLocalizedStrings(),C={subText:new b("extraSmallRegular","standardRegular")},j=({cardDetail:e,forDetailPage:s,styles:l})=>{const g=m(),h=e.type.code.includes("credit")?t.chargeCardsPromo.credit:t.chargeCardsPromo.debit;let d=e.type.code.includes("physical")?t.cardList.physicalCard:t.cardList.virtualCard;const i=p.strings.space+t.cardDetails.expiryHideOut+p.strings.space+e.accountLast4,f=e.status.code==="request_on_hold"||!s?d:i,n=e.type.code.includes("physical");return r.jsxs(v,{style:l,windowSize:g,forDetailPage:s,className:"cardName",title:`${f}`,children:[h,r.jsx(H,{}),d,n&&!s?r.jsx(u,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!s?null:i,n&&s?r.jsx(u,{}):null]})},v=o(x)`
2
2
  ${e=>e.forDetailPage?{...y.extraSmallRegular.cssObject}:`${C.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;