@zeniai/web-cockpit-ui 1.15.26-dev → 1.15.27-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 (280) hide show
  1. package/dist/assets/{ACHDetailsPage-CxpLuJpQ-oljmG-aN.js → ACHDetailsPage-49jTvZnX-Be-zaLi0.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-BtDuOBey-B5mBQCVW.js → AIPerformancePage-DJea2aE9-B9iO1fyz.js} +1 -1
  3. package/dist/assets/AccountInfoPage-Dv1rJn72-BUHG0zde.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-BLF92_vF-CW7wtofP.js → AccountInfoPageContent-zf4BRg29-DZX6BB3M.js} +7 -7
  5. package/dist/assets/{AccountLockedInfoModal-AsMkXu1I-CUepwrH5.js → AccountLockedInfoModal-CxoC-scs-DZJuQo5m.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CkaBrm5K-KV-fem_5.js → AccountReconDetailsDrawerPage-DI40FQGK-9O64pVIg.js} +1 -1
  7. package/dist/assets/{AccountRow-aEmcYP8T-NzxiJ7E0.js → AccountRow-CxEUX108-Ctuhzest.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-C0At5pn8-BVyntxD9.js → AccountsPromoCardStack-ugkcP4hS-Bj_Nb7Iz.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CbjThbsA-DCBhdPbu.js → AddAddressForCardDrawer-KZ-LVrwR-BRcI_JTS.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CMJwUbgf-CbZx4F8y.js → AddToWalletPage-CmBtO-Jx-CFwvepkh.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-B_BSfude-DZk6eQ7D.js → AgingReportsPage-BgZqIoFH-CBXVGn8J.js} +1 -1
  12. package/dist/assets/{AllUserItems-CGlWa60t-Bsvj0Bul.js → AllUserItems-CMkg4gXl-Dbiuf_va.js} +3 -3
  13. package/dist/assets/{ApAgingDetailPage-DT3vkmLG-hWexPQ-R.js → ApAgingDetailPage-CIc4rs2--CTxo3gfJ.js} +1 -1
  14. package/dist/assets/{AppBasePage-CDy7wPlv-BdtLe6Er.js → AppBasePage-Ch3JOqQA-CkD3FaNp.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-CEsXm_i6-DvQRPFBq.js → AppDrawerContent-DK3tTd88-Ebl_NVYT.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-CB2_4-2f-DqEewSSN.js → ApprovalRulesSettingsPage-8myNAB_M-Bfi0yOAc.js} +1 -1
  17. package/dist/assets/{ArAgingChart-qxhWsIQb-BR0MyGhc.js → ArAgingChart-D8yl6Fco-iPMSgvYP.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-BbzQryp_-si9TyFWf.js → ArAgingDetailPage-DMPLqLKl-D3301L0t.js} +4 -4
  19. package/dist/assets/{AttachmentView-duTVxc9g-Cx51cWLo.js → AttachmentView-Cxyodtel-B24U0bgX.js} +1 -1
  20. package/dist/assets/{BankAccountSection-CAwAf9xK-dEu3iigm.js → BankAccountSection-DGuhn7CN-DmUf2oBe.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CaDnP9_--B_s5lRpF.js → BankAccountWarningSection-l79_AN7P-wzRxiGEn.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CDV7O8cl-CKVB9msh.js → BankConnectionsSettingsPage-CkF3K8e8-C4TR4rEL.js} +1 -1
  23. package/dist/assets/{BillDetailPage-DJxh2CIc-BDq5xtCx.js → BillDetailPage-CaAXVwe3-C9NFzEPg.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-B2ZPbqtr-DoqAcsu7.js → BillPayApprovalRuleDetailPage-CFiMiJVw-BuCRs1eu.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-MM7v8ZMx-BqexuGBp.js → BillPayApprovalRulesPage-qpF8Wy4I-B3HFhggf.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-JK-VOx4W-CHt5RuWY.js → BillPayPromoPage-CNUoM-3L-1wklXGZ-.js} +7 -7
  27. package/dist/assets/{BillPaySetUpPage-h0uoCWMl-B3vp9xYH.js → BillPaySetUpPage-D_hRCBF5-Imf9v1rc.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-gJG9OxD6-sAZcxvhc.js → BillingSettingsPage-BfvQsRnJ-VinZfITV.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CPPDFsZt-D7n_HeTo.js → BillsBulkReviewDrawerPage-BRVd0a8c-DFmDsImO.js} +1 -1
  30. package/dist/assets/{BoxItem-CYe_gTmA-3TpRGAgq.js → BoxItem-COPJh7Lh-BtEwjrhv.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Dos8Bnvb-tV078-eh.js → BusinessVerificationPage-CdRHA3h2-CIWKUgi1.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-CFDhtij8-Dsv6kEZQ.js → CardNumberSubText-Md18DQb7-Ci7Q_wrC.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-BBGGzKh7-DUHJlZVl.js → CashbackDetailPage-CfB0mGdX-DgwWmp2K.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BQhago53-wjHuLhkC.js → ChargeCardDetailPage-ByOcHh0H-DEou_IlL.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-B0E-C3RH-B7k2t4T5.js → ChargeCardListPage-9aL08yGW-Ba0oB6VC.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-ByGv0xWl-DMSCDnKA.js → ChargeCardListTable-CbqF_9f3-C6X1RqBh.js} +16 -16
  37. package/dist/assets/{ChargeCardPaymentHistoryPage-LCY9rFqO-BkZDtpLS.js → ChargeCardPaymentHistoryPage-Dp_vLjiJ-C_QznI13.js} +1 -1
  38. package/dist/assets/ChargeCardPromoPage-8Oz0DmQv-CtVY_-8P.js +222 -0
  39. package/dist/assets/{ChargeCardSetupPage-BHv2VOdc-7YAt9Um1.js → ChargeCardSetupPage-DYOCe46h-e0p7QaI6.js} +1 -1
  40. package/dist/assets/{ChargeCardStatementsPage-UpRXyPTS-DMihpC1F.js → ChargeCardStatementsPage-BLws2jOd-DH79p6d7.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-0zbTQ3Fa-BLYoChOi.js → CheckDepositDrawerPage-Bc3a4vVO-QMFCIXbb.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-DlYIKSlQ-CcB96aJz.js → CollapsableReportTable-4-6Wne7j-Bn8DnqeK.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-Ck0xqZ0d-BRXSA5bv.js → CompanyOfficerDetailsSection-C_S5WXms-iJZMGPb2.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-DeVPuuje-pYw0P8-e.js → CompanyPassportCard-DPwqwt8k-UccZMyh-.js} +2 -2
  45. package/dist/assets/{CompanyPassportPage-F_GUET9a-DyWAWfST.js → CompanyPassportPage-DDjpq5T1-zONxBEPm.js} +13 -13
  46. package/dist/assets/{CompleteProfile-Y6HwKtpz-CAD13Y73.js → CompleteProfile-C6o_Ez-L-Do1B6QH5.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-BGE3Okwr-BH3P6Vot.js → ConfettiBurst-DNR3qv8X-ptw_T_Cq.js} +1 -1
  48. package/dist/assets/{ConstrainedInnerElement-BeIpAPjB-BElBEfq9.js → ConstrainedInnerElement-BeIpAPjB-DchKqY-F.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-BlZe6gmh-CQZW25xI.js → CreateOrEditVendorPage-Bcj3U0s_-5vJHklRM.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-flPmyCaF-BN_zrabq.js → CreditCardPaymentDrawerPage-CI3GD2-u-DH6MMFER.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-RiKAivD8-Men9-Qs8.js → CurrencySelectField-98tevzzy-BlqO4MuW.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-B7dLMk4g-9XWjuxWa.js → CustomerOnboardingActivationPage-BSsdFKhb-BMSgiMMy.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-DgiK94cf-CHSTlWE8.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-AWsst0XH-Dm9ock3U.js → CustomerOnboardingDetailPageSkeleton-D5gblIdv-CFqfFpT0.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-Bqid4-rH-1Q4j5GPR.js → CustomerOnboardingNoStepsPage-DCt6wtfH-Cjj8y-RZ.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-B5LrMzZS-C9Fs1CgW.js → CustomerOnboardingPage-_HuMZOrd-CaMRm4tt.js} +4 -4
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DqgoBLWp-CqOyrhHJ.js → CustomerOnboardingProductSuitePage-DcX7v8VV-DCl6Er8S.js} +3 -3
  58. package/dist/assets/{Dashboard-D0KlujCx-DnjbaQQd.js → Dashboard-C12cMR4f-BJHxNm8C.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-bxKyMsG7-D9LgF6Vc.js → DashboardReportPage-C8FygWL_-zsIsDvlx.js} +1 -1
  60. package/dist/assets/{DashboardSidebarBackgroundAnimation-Ch0OiH1g-8bPW9HsA.js → DashboardSidebarBackgroundAnimation-eTAs_vdL-CSWEzD2n.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionItem-BdZVCAx--B5mbkfQv.js → DepositAccTransactionItem-BuwWbrWB-LoOAd3VM.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionListPage-LU0QMdSV-BPGsYfzN.js → DepositAccTransactionListPage-C1XXM6Qy-C72sFA4v.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-CFt5GgZ1-DPIozVv0.js → DomesticWireDetailsPage-t6W8wYH8-BW3aYQzE.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-CH_bA3On-JFXgpsko.js → DownloadOverlay-CJYnXgCn-odTawGXc.js} +1 -1
  65. package/dist/assets/{DrawerPage-Cpdp-IFb-6O8ALZwh.js → DrawerPage-isFPi2CS-BP0DVAOi.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-BYnuNojX-COJTJTYl.js → EditPeoplePage-4fN2aCBr-BHmm7eYD.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-DnyyPZ26-CW_m0PAT.js → EditReimbursementDetailPage-CVMvR_xa-Y5W6LDDw.js} +1 -1
  68. package/dist/assets/EntityDetailPage-C8dRi0hQ-ChhHQBUx.js +18 -0
  69. package/dist/assets/{EntitySummarySection-BFpgAYAM-CKlhnXLV.js → EntitySummarySection-BXo9RrQK-BuIKOVzl.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-YjOVm_Bw-BDJuPgHE.js → ExpenseAutomationOverviewPage-DPfeujDA-5Pkl4JAF.js} +59 -59
  71. package/dist/assets/ExpenseAutomationPage-CWEo8JL8-DDq4rvWb.js +1700 -0
  72. package/dist/assets/{ExpressPayPage-CKqPEfbR-pk0o4BxB.js → ExpressPayPage-Dlku9oMT-sidjttl1.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-Cs1Y3nP0-BgQT4DqF.js → FeaturePreviewPage-qJmxWW10-BCL41LPf.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-BCyL8Jdr-CPpGgHn-.js → FollowStepsSection-DxAp4i9T-Cs3p7RFB.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-CBQFcVHd-XH4CFBRM.js → GlobalReviewListPage-Cadf7AIC-BB24FYDU.js} +1 -1
  76. package/dist/assets/{InformationCardStack-nFMetrAy-CMfT3sbg.js → InformationCardStack-BZhYP37l-Dd2otSYf.js} +1 -1
  77. package/dist/assets/{InsightsCardStack-CEMeGJXy-DkdJ-vVc.js → InsightsCardStack-CPZtVqq5-BUF_fSK4.js} +1 -1
  78. package/dist/assets/{InsightsSection-BYiN2xB7-Tq3IZNKc.js → InsightsSection-0ekovQH4-BlPNJh_U.js} +2 -2
  79. package/dist/assets/{IntegrationsSettingsPage-BQ7g3a3K-BdOaL4VS.js → IntegrationsSettingsPage-CNis_Wk3-DA1OiLg5.js} +2 -2
  80. package/dist/assets/{InternationalWireSwiftDetailsPage-BHRYsZgm-DSuBLSD4.js → InternationalWireSwiftDetailsPage-8g16Kgfi-B71tbLSL.js} +1 -1
  81. package/dist/assets/{InternationalWireVerificationPage-tJbVtzQP-CQvYGebF.js → InternationalWireVerificationPage-ofzwcymr-CT3lnfto.js} +1 -1
  82. package/dist/assets/{InviteFormPage-BVXte8w8-MDAVTXGi.js → InviteFormPage-pQDs7n3f-Dvolqiav.js} +1 -1
  83. package/dist/assets/{InvitePageListView-DFPyLLrA-CONqmQCs.js → InvitePageListView-DJYwE5Il-BdRMo6ep.js} +1 -1
  84. package/dist/assets/{InvitePeoplePage-B-uxjkke-6b_Qz0Yf.js → InvitePeoplePage-CgSGdi3i-BzFWBUb-.js} +1 -1
  85. package/dist/assets/{InvoiceUploadSection-B9q7nIs0-DhF51Ukp.js → InvoiceUploadSection-BEp8eQB4-DHRScRES.js} +1 -1
  86. package/dist/assets/{IssueChargeCardPage-BuLj1bOl-DtlAMUV4.js → IssueChargeCardPage-DX3kJ72T--bI6SGG9.js} +1 -1
  87. package/dist/assets/{LabeledAddressValue-D2t8ti-C-Z0RI74Eh.js → LabeledAddressValue-DWDFf_hN-e4LanhXy.js} +1 -1
  88. package/dist/assets/{LabeledAddressValueField-DMcor_I8-C6G1J4Y2.js → LabeledAddressValueField-Ckm80g0_-fddiRWcN.js} +1 -1
  89. package/dist/assets/{LabeledControlledCheckBoxField-B6w2HGJK-6LsZxWHa.js → LabeledControlledCheckBoxField-Dhta-oad-BOgGTnpX.js} +1 -1
  90. package/dist/assets/{LabeledCreatableSingleSelectField-DHNAX5Pu-BPIIBKMF.js → LabeledCreatableSingleSelectField-CWhimq6W-CiffZWxa.js} +1 -1
  91. package/dist/assets/{LabeledDocumentField-Bx1u7vv_-DaqPO373.js → LabeledDocumentField-z2O1tykl-BOR0XPyM.js} +1 -1
  92. package/dist/assets/{LabeledDropDownFormattedTextField-BBS4da2b-Pp7kOChU.js → LabeledDropDownFormattedTextField-BZu90SFF-CT4k7JQd.js} +1 -1
  93. package/dist/assets/{LabeledText-zjKn4Cw--WpJNibWz.js → LabeledText-DlIRkA7r-DGwEr03s.js} +1 -1
  94. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CIofqRT6-l_A9LTk7.js → LabeledUserSingleSelectWithSubtitlesField-CXwZdQ0K-DDygkuei.js} +3 -3
  95. package/dist/assets/{LabeledZeniRolesDropDownField-DiBtAWQ3-_N52HAlB.js → LabeledZeniRolesDropDownField-CWui0vqF-DJaOZiml.js} +1 -1
  96. package/dist/assets/{LinkJETransactionPage-D66bzDh_-B4JreFf6.js → LinkJETransactionPage-DJfFhIWc-DH9uk_Nk.js} +1 -1
  97. package/dist/assets/{LockCardPage-B1g2TZWL-hWz0sEAN.js → LockCardPage-Cv9rUAY7-DKakaJGE.js} +6 -6
  98. package/dist/assets/{LowBalancePopup-DbtHeVY--8cU4w1E0.js → LowBalancePopup-DnRpH2rk-CPocaNr6.js} +1 -1
  99. package/dist/assets/MagicLinkACHDetailsPage-CdmfROQK-B3EIdmd3.js +1 -0
  100. package/dist/assets/MagicLinkDomesticWireDetailsPage-BqqCZBUT-3K5d9lKn.js +1 -0
  101. package/dist/assets/MagicLinkInternationalWireDetailsPage-QDfBddvz-DxlDIcb0.js +1 -0
  102. package/dist/assets/{MagicLinkSuccessPage-BkxuITX--B7psstiC.js → MagicLinkSuccessPage-ABpq3GEM-347FQa8F.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-CqkZ9wOf-BR_t9OGm.js → MagicLinkTitleSection-ygghGjqi-CPCSmIlY.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DRFGCM2W-D_ajBet8.js → MailingDetailsSection-DtuTgXeV-BAt57tta.js} +1 -1
  105. package/dist/assets/{MyBankConnectionsSettingsPage-CE2ZqHBJ-DRRK16jW.js → MyBankConnectionsSettingsPage-BRy7gQIK-D0ljHEmg.js} +1 -1
  106. package/dist/assets/{MyPendingActivationChargeCardListPage-BffxXDZg-DDMywOmd.js → MyPendingActivationChargeCardListPage-eCLt21RY-DdeT-VxA.js} +1 -1
  107. package/dist/assets/{MyProfileSettingsPage-DrsAlesY-CW5UQDbf.js → MyProfileSettingsPage-C-GlfSxD-BPv3bj5w.js} +5 -5
  108. package/dist/assets/{NavBarWithPicker-C4VfP_Kw-BlN6D07W.js → NavBarWithPicker-MP4pdS6O-ETw04dfI.js} +1 -1
  109. package/dist/assets/{NavigationArrow-DCCxx6H7-HhnIS8HH.js → NavigationArrow-CxS8-9O0-BQImrbmZ.js} +1 -1
  110. package/dist/assets/{NavigationDots-tWCw6Bpk-Mo0z1mhF.js → NavigationDots--7KEcIuu-eftMXpdw.js} +1 -1
  111. package/dist/assets/{NewGlobalMerchantPage-UIA8zAjd-D_Ilslhf.js → NewGlobalMerchantPage-wYBwn2dL-D2xZN2Wq.js} +1 -1
  112. package/dist/assets/{NoDataChart-Bvetk9za-Dz6Kgiua.js → NoDataChart-Bd0aKX8D-BMtoTVvu.js} +1 -1
  113. package/dist/assets/{NoDataTable-9xF1_3XS-gmK0ApJv.js → NoDataTable-Bjbt7lt9-QawSofKO.js} +1 -1
  114. package/dist/assets/{NotFoundPage-CdH-3upl-BWvfv-me.js → NotFoundPage-CxAhFmy2-D61A-JG3.js} +7 -7
  115. package/dist/assets/{NotificationSettingsPage-DP2gGIz1-CAx-Ob95.js → NotificationSettingsPage-BwTc94Y4-DxMem3GE.js} +1 -1
  116. package/dist/assets/{NotificationsListConfig-DG-DH2Aj-B1EWk1B7.js → NotificationsListConfig-f-Y-UtEy-BzHeGbqt.js} +1 -1
  117. package/dist/assets/{NotificationsPage-CgFMmR2X-DW2MYafR.js → NotificationsPage-Cds6qhVt-Dyww7PRK.js} +1 -1
  118. package/dist/assets/{OpExByVendorPage-eUvIAWzt-J9dFs64l.js → OpExByVendorPage-CF6Q-SV2-DWalefYD.js} +1 -1
  119. package/dist/assets/{OverlayContainerPage-D4QU0p4o-CRh-4TRn.js → OverlayContainerPage-D4QU0p4o-DiYJgmmr.js} +1 -1
  120. package/dist/assets/{PandLWithForecastPage-8S06Nyi5-Bs1OiKUY.js → PandLWithForecastPage-DwWcx5eK-szNL9FCt.js} +2 -2
  121. package/dist/assets/{PaymentAccountSetupBillingAddressSection-DQtrANhI-CgW6kWBO.js → PaymentAccountSetupBillingAddressSection-DIP_uznB-B7DNBV4H.js} +1 -1
  122. package/dist/assets/{PeoplePage-D1BLHtO0-Cm2cmSqy.js → PeoplePage-BgP7kTw9-CG9DTLLQ.js} +1 -1
  123. package/dist/assets/{Preview-CyX-vurX.js → Preview-CyY8fFSj.js} +1 -1
  124. package/dist/assets/{ProductsCarousel-BKSXWnFR-BT4vvSaJ.js → ProductsCarousel-CJlGSrBH-C82GY9tH.js} +1 -1
  125. package/dist/assets/{PromoBaseCards-BYT9nEJT-1c2PW57m.js → PromoBaseCards-fx9bhHkF-5GD0MDQm.js} +1 -1
  126. package/dist/assets/{QBOConnectionDialog-C2-omQMZ-CW3-Jgl1.js → QBOConnectionDialog-CGAr0mXC-CrSLQG4V.js} +1 -1
  127. package/dist/assets/{QBOSetupSection-lgv5wVlg-Db43UmDc.js → QBOSetupSection-D-fnn99E-yQD39UVj.js} +7 -7
  128. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CbJViS3x-DEQyVs-F.js → ReimbursementApprovalRuleDetailPage-DvhdOKpF-CHqGgBzD.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRulesPage-BuNt-Bmb-qkoyA-iD.js → ReimbursementApprovalRulesPage-BB4c1_YZ-B3-dzOHa.js} +1 -1
  130. package/dist/assets/{ReimbursementDetailPage-CK3-Jqkd-ComGCWG4.js → ReimbursementDetailPage-DpWhzOF9-Dixn1uCw.js} +1 -1
  131. package/dist/assets/{ReimbursementPromoPage-fptOAJna-UPQyz9k9.js → ReimbursementPromoPage-CYS1ZeFL-DbUZbWTa.js} +8 -8
  132. package/dist/assets/{ReimbursementSetUpPage-CidrpT2g-C4LYSo0t.js → ReimbursementSetUpPage-CoOFmpfw-CzqYPddc.js} +1 -1
  133. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Cy_Hediw-DbKZBLTq.js → ReimbursementsBulkReviewDrawerPage-DAYEgH4V-CKgr6iyS.js} +1 -1
  134. package/dist/assets/{ReloadCard-C81rGzOp-DY4k84ea.js → ReloadCard-clq1KPzy-DLLVDS4G.js} +1 -1
  135. package/dist/assets/{ReportTableViewSelector-neRSjrhV-C6WBlOcq.js → ReportTableViewSelector-CU3PZ-xy-CDmAbwqP.js} +1 -1
  136. package/dist/assets/{ReportsPage-BhzQVaer-B4A4M4e5.js → ReportsPage-C5QPXAa--D9Rm-qp8.js} +5 -5
  137. package/dist/assets/{RevenueChart-x7uTbFlm-CNwMod8g.js → RevenueChart-BM8cNGoZ-OoJdgTQW.js} +1 -1
  138. package/dist/assets/{ReviewDetailsPage-jXZCylzg-BIFUDhZH.js → ReviewDetailsPage-Dp29TV8A-pDKCfw94.js} +2 -2
  139. package/dist/assets/{ReviewOverlay-nlm2HnGw-9bQU05T1.js → ReviewOverlay-OXnAkRJ_-Di_D_VlI.js} +1 -1
  140. package/dist/assets/{RoleWithToolTip-C29QOzxS-BIz3hnmq.js → RoleWithToolTip-BCeMfqCC-DiZyrWD_.js} +1 -1
  141. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CkPzofLN-BgCHEx2z.js → ScheduleDetailsFixedAssetsPage-BUWOvDMW-DaI6ZQoZ.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsPage-BSZefKOh-6HOYgX85.js → ScheduleDetailsPage-F2KQ46TD-VVV77yxd.js} +1 -1
  143. package/dist/assets/{ScheduleSequenceTable-BW5M7Zfq-Cc7Psi6L.js → ScheduleSequenceTable-c-8N2OvE-DWSKrTJR.js} +1 -1
  144. package/dist/assets/{ScreenRoutes-DOxgrmyz.js → ScreenRoutes-BYoqwzEO.js} +1 -1
  145. package/dist/assets/{SetUpAccountSection-C703iFL6-DWHc95vH.js → SetUpAccountSection-CPw8BhAT-Bu28TndH.js} +1 -1
  146. package/dist/assets/{SignIn-D9K5FklU-C-Fq_guN.js → SignIn-DT4-gKMD-DgVi8USa.js} +6 -6
  147. package/dist/assets/{SignInScreen-pGoo9woj.js → SignInScreen-CdADJVAt.js} +1 -1
  148. package/dist/assets/{SpendManagementListViewPage-CBNtC74m-DqpxdGQ6.js → SpendManagementListViewPage-YoHK4LrJ-DYhZa44h.js} +3 -3
  149. package/dist/assets/{SpendManagementPerTabPage-D_sa7WRd-CzMD5xEZ.js → SpendManagementPerTabPage-CEJxlQwu-D8XVtvOY.js} +1 -1
  150. package/dist/assets/{SpendManagementSection-DpZUTV6m-Dyv3RP83.js → SpendManagementSection-Dbk_Ojop-DcKtjVjR.js} +1 -1
  151. package/dist/assets/{StatementItem-DvdSsb8I-4NJSevH0.js → StatementItem-DO9WpE-R-Do-IIiY-.js} +5 -5
  152. package/dist/assets/StatementsPage-Cf8pwDhO-RC289M0h.js +58 -0
  153. package/dist/assets/{StatusSwitcher-hKYgwNLC-CE1foddz.js → StatusSwitcher-B523Fhna-CVWspTKV.js} +1 -1
  154. package/dist/assets/{SubTabSwitcher-aeDd9xiF-D4uOjs0t.js → SubTabSwitcher-Dgwgj3Si-U0zspkd_.js} +1 -1
  155. package/dist/assets/SummaryCard-CGteKBHk-27q94esm.js +1 -0
  156. package/dist/assets/{TaskManagementPage-D2Ooq8DR-DrMY4gdr.js → TaskManagementPage-CIQeYwEY-C7-23Lr5.js} +1 -1
  157. package/dist/assets/{TimeRangeSwitcher-DEqlZxa6-BNFFHAst.js → TimeRangeSwitcher-8lNpLdVr-Dj19rYPc.js} +11 -11
  158. package/dist/assets/{TimeframeSwitcher-BppC6giF-D-wC9bQx.js → TimeframeSwitcher-B-l9fJ1Q-ByHm5vUq.js} +1 -1
  159. package/dist/assets/{TimeframeSwitcherWithToggle-CbX9ElMN-Txpnr2g5.js → TimeframeSwitcherWithToggle-3yKIUhvE-DaSH_yQW.js} +2 -2
  160. package/dist/assets/{TopExCard-Cy6tPVSx-B-keVDu8.js → TopExCard-C-CBza7t-C8HWdf71.js} +1 -1
  161. package/dist/assets/{TopExDetailPage-Rtrcdkcp-BJDfbujg.js → TopExDetailPage-Dx_w2Wmt-By36tBTS.js} +8 -8
  162. package/dist/assets/{TransactionActivityLogPage-DbwSsjPJ-BIwIVqy-.js → TransactionActivityLogPage-CA6FGjPI-DoUnK6pL.js} +1 -1
  163. package/dist/assets/{TransactionDetailPage-D-vXAAB7-Bzb02Sjl.js → TransactionDetailPage-CpNGUBqP-gfLrfFlK.js} +1 -1
  164. package/dist/assets/{TransactionList-BruCNjQg-CPy3bOrg.js → TransactionList-CvRmT2Lq-C1JZRVpn.js} +1 -1
  165. package/dist/assets/{TransactionListBig-bp7q3prH-B3o9La4k.js → TransactionListBig-v8qd1Ec7-hwFVnuVq.js} +1 -1
  166. package/dist/assets/{TransactionListPage-ZfJsaVb8--vXsSJCl.js → TransactionListPage-C23zWqxy-DgePPgum.js} +1 -1
  167. package/dist/assets/{TransactionVendorDetailPage-CldkuO2--QReUEWYz.js → TransactionVendorDetailPage-vpDqNBSu-BIkJjCOi.js} +1 -1
  168. package/dist/assets/{TransferDrawerPage-DswS6KZf-BpK3RBCC.js → TransferDrawerPage-5FY_zDCE-DJ5J1SOB.js} +1 -1
  169. package/dist/assets/{TreasuryOverviewPage-DWo7iRpO-gYNjYUSH.js → TreasuryOverviewPage-DDjaj1jW-B4JtoLhv.js} +1 -1
  170. package/dist/assets/{TreasuryPromoPage-DQxCF3-4-BI9m1Cpo.js → TreasuryPromoPage-D3y0Te0d-DmBRPB0W.js} +1 -1
  171. package/dist/assets/TreasuryStatementsPage-BF_EZUjg-suQxt6u_.js +58 -0
  172. package/dist/assets/{TreasuryTaxLetterPage-DH3su_rX-Dyk_wpPB.js → TreasuryTaxLetterPage-C1nYfVbO-eUqGz6CJ.js} +2 -2
  173. package/dist/assets/{TrendChart-BMHDaOeh-DUFeSEwp.js → TrendChart-DwYxYNR7-JcI7qpjF.js} +1 -1
  174. package/dist/assets/{TrendWithTransactions-DDLrmIrt-D7YkaYJE.js → TrendWithTransactions-BJnpKKqL-DKCgJJvT.js} +1 -1
  175. package/dist/assets/{UncategorizedAccountsMappingPage-3SW8Gj0Z-DxcmP_9M.js → UncategorizedAccountsMappingPage-CxlG2JUW-Cij2klA0.js} +5 -5
  176. package/dist/assets/{UnitIntegrationPage-DPMy8dXP-Ds2V7iqZ.js → UnitIntegrationPage-DaIJxSo2-GGpI7ByY.js} +1 -1
  177. package/dist/assets/{UploadAdditionalDocumentOverlay-BHpT2al--Bh-cR8rL.js → UploadAdditionalDocumentOverlay-Bw9ymrDY-BTVIu0dz.js} +1 -1
  178. package/dist/assets/{Vendor2FAPopup-C6gEOhUv-DnLG0jax.js → Vendor2FAPopup-DxlOTzWL-DAG_NkfZ.js} +1 -1
  179. package/dist/assets/VendorACHDetailsPage-CQ6OiO4V-vWpnVdE1.js +1 -0
  180. package/dist/assets/{VendorDetailPage-BC1FhaQA-BTYI8FHa.js → VendorDetailPage-BGrtc6EE-DmQ5F0In.js} +1 -1
  181. package/dist/assets/VendorDomesticWireDetailsPage-D5yME16K-CGPyvaCT.js +1 -0
  182. package/dist/assets/{VendorFiling1099EditablePage-DYyPOA8D-SaXokDu7.js → VendorFiling1099EditablePage-A5wcCVBF-DUjQTYJL.js} +1 -1
  183. package/dist/assets/{VendorFirstReviewPage-Cpmk7rDk-CLDuk2Z1.js → VendorFirstReviewPage-Dr6MMvIq-LfXi6VDf.js} +1 -1
  184. package/dist/assets/{VendorInternationalWireDetailsPage-CWAWq6kq-BqWv0FEj.js → VendorInternationalWireDetailsPage-BJUaxg9g-C6pvbY6G.js} +1 -1
  185. package/dist/assets/VendorInternationalWireSwiftDetailsPage-v2icyO6w-6aTsJwry.js +1 -0
  186. package/dist/assets/{VendorsAccountsSection-CGQ35Mhp-CZRiYNTG.js → VendorsAccountsSection-B9OpiDDc-Ck5imuYH.js} +1 -1
  187. package/dist/assets/{VerifyDevice-CfMJW1Vh-CQyEdsek.js → VerifyDevice-CViWQbOn-CG6KWpvG.js} +7 -7
  188. package/dist/assets/{VideoPlayer-BNBpjXJk-S1NV6cBn.js → VideoPlayer-D5QP-myQ-CVNLOpWk.js} +2 -2
  189. package/dist/assets/{VideoPopup-BF6lmB7l-C8AjwQYx.js → VideoPopup-_4nnxGFK-rc_W8uy0.js} +2 -2
  190. package/dist/assets/{WarningsDrawerPage-Crj70lnR-CqPc_yNz.js → WarningsDrawerPage-D8X9a6pX-DcE35uzS.js} +1 -1
  191. package/dist/assets/{ZeniAccountDetailPage-CaA6m3tQ-BxjiYTPx.js → ZeniAccountDetailPage-B2gRhBJz-BpnCGmCc.js} +1 -1
  192. package/dist/assets/{ZeniAccountListViewPage-x_51gDs1-BURzAUSX.js → ZeniAccountListViewPage-Dc4IWyQw-6oEyCUyL.js} +1 -1
  193. package/dist/assets/{ZeniAccountNavBarPieces-Csr24dri-Dtq04dNH.js → ZeniAccountNavBarPieces-CYTd-7fg-D7gLlXGG.js} +1 -1
  194. package/dist/assets/{ZeniAccountPromoPage-lxKBk2r5-B3car8p6.js → ZeniAccountPromoPage-B5rTE2aZ-DtGW6mZ_.js} +1 -1
  195. package/dist/assets/{ZeniAccountSetupPage-DUI4-2Zw-CqTcY3yC.js → ZeniAccountSetupPage-BlS6FEcT-D8fD5QNH.js} +1 -1
  196. package/dist/assets/{ZeniCopyright-DxEZ4DiK-Bx5L4V4v.js → ZeniCopyright-DbOXr6hr-D49zDt7K.js} +1 -1
  197. package/dist/assets/{ZeniTransferAmountSlider-4Nq4Sm9J-CWNMmcE5.js → ZeniTransferAmountSlider-DMdKnrKk-BOekYkfn.js} +1 -1
  198. package/dist/assets/{add-to-wallet-DgdBD8_G-Ckn7-tS3.js → add-to-wallet-DgdBD8_G-Z21-4-a3.js} +1 -1
  199. package/dist/assets/{analytics-DgE91yP9.js → analytics-Dd9GkS_R.js} +1 -1
  200. package/dist/assets/{analyticsHelper-CL-t3Y2i-DqLgDKAm.js → analyticsHelper-BLLOc8oW-Bb5BI_Zu.js} +1 -1
  201. package/dist/assets/{analyticsHelper-qCgSbR3t.js → analyticsHelper-Cn36jH2S.js} +1 -1
  202. package/dist/assets/{arrow-south-east-round-PEovUgvH-6_ok8u4n.js → arrow-south-east-round-PEovUgvH-K7zlCGlW.js} +1 -1
  203. package/dist/assets/{auto-transfer-rule-mbafm5D3-DaMjzKK3.js → auto-transfer-rule-mbafm5D3-rBHUDSkc.js} +1 -1
  204. package/dist/assets/{chartTypes-B3501CSI-Eia1dEGg.js → chartTypes-zuOlWPZo-CqRIct--.js} +1 -1
  205. package/dist/assets/{commonDimensions-YcBBlmYP-HRUAmifl.js → commonDimensions-aMGDpjmW-UhXAGxHS.js} +1 -1
  206. package/dist/assets/{constants-DU2Tv8MD.js → constants-BydUCFaZ.js} +1 -1
  207. package/dist/assets/{core-CEu4PzGb.js → core-DjXOmtSJ.js} +1 -1
  208. package/dist/assets/{dash.all.min-wN4tXsVF.js → dash.all.min-CWcs0-Ft.js} +1 -1
  209. package/dist/assets/{detailCommon-C19MYPnq-B5eEk_1Z.js → detailCommon-CdZh0YNF-Bty6HpPL.js} +2 -2
  210. package/dist/assets/{downloadPdf-DPAqxw6u-DccTm81d.js → downloadPdf-BnXVGESU-CGO5_V0v.js} +1 -1
  211. package/dist/assets/{empty-CarmpCiV.js → empty-Be_kj3Mu.js} +1 -1
  212. package/dist/assets/{empty-SBaJLmT7.js → empty-BpWqyf7V.js} +1 -1
  213. package/dist/assets/{epic-jB8ji6P2.js → epic-B6XzQXM_.js} +1 -1
  214. package/dist/assets/{gift-box-Cmt9OgIZ-Cfao5pzw.js → gift-box-Cmt9OgIZ-DJPtxuMD.js} +1 -1
  215. package/dist/assets/{graphic-no-data-l-DU4J8fDt-CtMgv3E2.js → graphic-no-data-l-DU4J8fDt-znOHf3Hs.js} +1 -1
  216. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CxhhGXfI.js → graphic-no-data-net-burn-l-CzmycA0m-53oymvWB.js} +1 -1
  217. package/dist/assets/{handshake-BPg58FML-Cr0KvGET.js → handshake-BPg58FML-ttNYOOdS.js} +1 -1
  218. package/dist/assets/{index-qEET5oej.js → index-B0Fm_ZMY.js} +1 -1
  219. package/dist/assets/{index-CM4tXRl_.js → index-BsyBnYxZ.js} +1 -1
  220. package/dist/assets/{index-DotN2qpo.js → index-COyPtNQ2.js} +1 -1
  221. package/dist/assets/{index-C65pc_ms.js → index-DhICZ-la.js} +1 -1
  222. package/dist/assets/{index-GSKpJ8ET.js → index-Dm-b67Hf.js} +6 -6
  223. package/dist/assets/{index-DdSqYqAO.js → index-SgTym3_u.js} +1 -1
  224. package/dist/assets/{index-CTIRcS5n.js → index-w81TKwF8.js} +1 -1
  225. package/dist/assets/{lexical-CnqcqOEB.js → lexical-C3TbZeLl.js} +1 -1
  226. package/dist/assets/{liveblocks-D1OOExFG.js → liveblocks-EGukjQZF.js} +1 -1
  227. package/dist/assets/{lottie-fNTw06NH.js → lottie-DiLnfF8e.js} +1 -1
  228. package/dist/assets/mapLoadingInProgressToTreeNode-B0oj9Ot5-CWtpcdPC.js +1 -0
  229. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BDWD3x8r-CFpEHrc_.js → mapSectionWithAcOnlyToTreeNode-rtn-dPyU-DWwT8Nhv.js} +1 -1
  230. package/dist/assets/mapSpacerToTreeNode-8mFwNdh5-CeSJa54a.js +1 -0
  231. package/dist/assets/mapTimeframeBalancesToTreeNode-BkHI2m3e-DSk1PCnB.js +1 -0
  232. package/dist/assets/mapTimeframeBalancesToTreeNode-bQ2VDSub-CJiyKqIU.js +1 -0
  233. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CcMctgAq-lqSBZOT1.js +1 -0
  234. package/dist/assets/{mui-DenpH-hx.js → mui-BLkKBV85.js} +1 -1
  235. package/dist/assets/{page-detail-CWX5S47F-CMu9po0A.js → page-detail-CWX5S47F-D6GzdE4M.js} +1 -1
  236. package/dist/assets/{panelSelectedMixin-CzfD5-Zs-Z09J1JBQ.js → panelSelectedMixin-CzfD5-Zs-CBMeGjo8.js} +1 -1
  237. package/dist/assets/{radio-default-CiSgisfh--A7TRB5H.js → radio-default-CiSgisfh-B552CYET.js} +1 -1
  238. package/dist/assets/{react-BbEkWrBm.js → react-4oUCwWHz.js} +1 -1
  239. package/dist/assets/{react-BNXAqjdV.js → react-BCL5SMXn.js} +1 -1
  240. package/dist/assets/{react-CX4zcxjw.js → react-BDnWTul0.js} +1 -1
  241. package/dist/assets/{react-BGO_hhif.js → react-CXrmdcVg.js} +1 -1
  242. package/dist/assets/{react-BbsHWhNi.js → react-ChBDOzx3.js} +2 -2
  243. package/dist/assets/{react-D97zLppZ.js → react-CkV5VFp3.js} +1 -1
  244. package/dist/assets/{react-DvuAhc__.js → react-DiNjY5yl.js} +1 -1
  245. package/dist/assets/{react-B5LP5NK7.js → react-FSAp6Eni.js} +1 -1
  246. package/dist/assets/{recharts-9NtTDQfo.js → recharts-B8tzuQ8V.js} +1 -1
  247. package/dist/assets/{sentry-BZBky1_g.js → sentry-C2Rgx3zV.js} +1 -1
  248. package/dist/assets/{shield-DOlUxcFf-DnxNebOP.js → shield-DOlUxcFf-BI7xxvqa.js} +1 -1
  249. package/dist/assets/toCOABalancesWithID-DUpgxtrc-n-6zkqkw.js +1 -0
  250. package/dist/assets/{toChartData-DzatRnt8-Cq2-M4CL.js → toChartData-BNPIbcXQ-DT2tu_Ad.js} +1 -1
  251. package/dist/assets/{uploadAttachment-Bq8dk-Sm-DirS4o1A.js → uploadAttachment-4MEQNz0J-C1Mi8_qq.js} +1 -1
  252. package/dist/assets/{uploadReceipts-Dge0cNF1-BKdcUL2b.js → uploadReceipts-Dge0cNF1-C7ahzxC1.js} +1 -1
  253. package/dist/assets/{url-0W_uXmZ-.js → url-DdNhcJXF.js} +1 -1
  254. package/dist/assets/{url-Z1gMB4SW.js → url-i42p6QIP.js} +1 -1
  255. package/dist/assets/{useLongPress-GCK2COYQ-B8bxkfF-.js → useLongPress-GCK2COYQ-Cz3dEUgW.js} +1 -1
  256. package/dist/assets/{usp-line-BBd1wKwW-BPsPtX_C.js → usp-line-BBd1wKwW-DBnWZzCO.js} +1 -1
  257. package/dist/assets/{utils-CHibiken.js → utils-CQTOz44B.js} +1 -1
  258. package/dist/assets/{zeni-epic-state-BKgIzPpM.js → zeni-epic-state-TdgpFmku.js} +3 -3
  259. package/dist/index.html +1 -1
  260. package/package.json +2 -2
  261. package/dist/assets/AccountInfoPage-DkpBGfrR-BAuNBIod.js +0 -18
  262. package/dist/assets/ChargeCardPromoPage-CKEnOseD-C5Oe_CBA.js +0 -222
  263. package/dist/assets/CustomerOnboardingContainerPage-BHPDhC3d-CAVfCCXg.js +0 -1
  264. package/dist/assets/EntityDetailPage-DSfZZ1JW-NbMT0IAK.js +0 -18
  265. package/dist/assets/ExpenseAutomationPage-DlhH-R-e-DCW88pdW.js +0 -1700
  266. package/dist/assets/MagicLinkACHDetailsPage-X1pXkZYT-7knh_ltw.js +0 -1
  267. package/dist/assets/MagicLinkDomesticWireDetailsPage-BDl8k_bB-ESO2QI-z.js +0 -1
  268. package/dist/assets/MagicLinkInternationalWireDetailsPage-Q4lIsHtG-J3sKHPD3.js +0 -1
  269. package/dist/assets/StatementsPage-73jGj5P2-DfWSq1-t.js +0 -58
  270. package/dist/assets/SummaryCard-CK8Gxbiu-DemkEVCq.js +0 -1
  271. package/dist/assets/TreasuryStatementsPage-CYkPtmaT-BgyV-fq7.js +0 -58
  272. package/dist/assets/VendorACHDetailsPage-LNCcubjL-BnzYtLeS.js +0 -1
  273. package/dist/assets/VendorDomesticWireDetailsPage-CLudahOt-DWedRRGC.js +0 -1
  274. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CUtums8t-Cnhhvl1i.js +0 -1
  275. package/dist/assets/mapLoadingInProgressToTreeNode-D2u9MDI--Bj-YdG55.js +0 -1
  276. package/dist/assets/mapSpacerToTreeNode-Blr3egSm-C65_6eW3.js +0 -1
  277. package/dist/assets/mapTimeframeBalancesToTreeNode-3Hd8QHr2-D-fvMaDb.js +0 -1
  278. package/dist/assets/mapTimeframeBalancesToTreeNode-D-LTfKnD-D-V0iqTB.js +0 -1
  279. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CffU-RPP-Cn_Z85da.js +0 -1
  280. package/dist/assets/toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js +0 -1
@@ -1,4 +1,4 @@
1
- import{J as A,F as k,V as o,T as q,aQ as L,aS as W,o as a,y as f,c as _,N as J,d5 as G,a9 as Q,cG as U,ac as K,u as r,hf as M,hg as F,hh as B,e as X,cJ as Y,gN as P,hi as Z,b8 as ee,hm as oe,hn as te}from"./index-GSKpJ8ET.js";import{a as I}from"./sentry-BZBky1_g.js";import{n as c}from"./mui-DenpH-hx.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./zeni-epic-state-BKgIzPpM.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c55f04a4-874f-44a7-accb-fab96d989cef",e._sentryDebugIdIdentifier="sentry-dbid-c55f04a4-874f-44a7-accb-fab96d989cef")}catch{}})();const O=(e,n)=>`${e}.${n}`,z={labelWidth:new f(120,145,160),controlWidth:new f(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:h,selectedOwnerId:t,selectedVendorName:g,allAccounts:p,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:m,classHierarchyList:x})=>{const i=A(),y=X(),$=z.labelWidth.value(i),j=z.controlWidth.value(i),V=s=>p.filter(D=>D.accountId===s)[0]?.coaId??"",l=s=>C.filter(D=>D.classId===s)[0]?.accountingClassNumber??"",b=s=>{const D=p.find(R=>R.accountId===s)?.accountName;return[oe,te].includes(D??"")};return o.jsxs(se,{"data-testid":L("vendor-details-section",v),children:[o.jsx(re,{children:d.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:d.vendorDetails.vendorName,width:$},text:{type:"text",name:O(v,"vendorName"),placeholder:d.placeholders.vendor,defaultValue:g,autoComplete:"off",options:{required:!0}},isSaveError:n,showAdditionalInfoLabel:!1,additionalInfoLabel:d.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(P,{isLoading:!1,label:{label:d.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorCategory"),placeholder:d.placeholders.category,valueToInfo:s=>V(s),defaultValue:{selectedOption:e,allOptions:F(m)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:b,zIndexOnFocus:!0,additionalLabelInfo:d.vendorDetails.vendorCategoryAdditionText}),o.jsx(P,{isLoading:!1,label:{label:d.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorClass"),placeholder:d.placeholders.class,valueToInfo:s=>l(s),defaultValue:{selectedOption:h,allOptions:M(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:d.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:O(v,"vendorOwner"),placeholder:d.placeholders.owner,defaultValue:{allOptions:B(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=c.div`
1
+ import{J as A,F as k,V as o,T as q,aQ as L,aS as W,o as a,y as f,c as _,N as J,d5 as G,a9 as Q,cG as U,ac as K,u as r,hf as M,hg as F,hh as B,e as X,cJ as Y,gN as P,hi as Z,b8 as ee,hm as oe,hn as te}from"./index-Dm-b67Hf.js";import{a as I}from"./sentry-C2Rgx3zV.js";import{n as c}from"./mui-BLkKBV85.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c55f04a4-874f-44a7-accb-fab96d989cef",e._sentryDebugIdIdentifier="sentry-dbid-c55f04a4-874f-44a7-accb-fab96d989cef")}catch{}})();const O=(e,n)=>`${e}.${n}`,z={labelWidth:new f(120,145,160),controlWidth:new f(110,145,160)},ae=k.getLocalizedStrings().transactionDetail.vendorDetails,d=ae.vendorCreation,ne=({selectedAccountId:e,isSaveError:n,selectedClassId:h,selectedOwnerId:t,selectedVendorName:g,allAccounts:p,allClasses:C,allOwners:S,sectionId:v,isDisabled:u,accountsHierarchyList:m,classHierarchyList:x})=>{const i=A(),y=X(),$=z.labelWidth.value(i),j=z.controlWidth.value(i),V=s=>p.filter(D=>D.accountId===s)[0]?.coaId??"",l=s=>C.filter(D=>D.classId===s)[0]?.accountingClassNumber??"",b=s=>{const D=p.find(R=>R.accountId===s)?.accountName;return[oe,te].includes(D??"")};return o.jsxs(se,{"data-testid":L("vendor-details-section",v),children:[o.jsx(re,{children:d.vendorDetails.title}),o.jsxs(le,{children:[o.jsx(Y,{label:{label:d.vendorDetails.vendorName,width:$},text:{type:"text",name:O(v,"vendorName"),placeholder:d.placeholders.vendor,defaultValue:g,autoComplete:"off",options:{required:!0}},isSaveError:n,showAdditionalInfoLabel:!1,additionalInfoLabel:d.vendorAlreadyExistsErrorMsg,style:{width:"auto"}}),o.jsx(ie,{}),o.jsx(P,{isLoading:!1,label:{label:d.vendorDetails.vendorCategory,width:$},groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorCategory"),placeholder:d.placeholders.category,valueToInfo:s=>V(s),defaultValue:{selectedOption:e,allOptions:F(m)},style:{width:"auto"},registerOptions:{required:!1}},style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u,disableCurrentOption:b,zIndexOnFocus:!0,additionalLabelInfo:d.vendorDetails.vendorCategoryAdditionText}),o.jsx(P,{isLoading:!1,label:{label:d.vendorDetails.vendorClass,width:$},zIndexOnFocus:!0,groupedSingleSelectField:{shouldShowChevronIcon:!1,name:O(v,"vendorClass"),placeholder:d.placeholders.class,valueToInfo:s=>l(s),defaultValue:{selectedOption:h,allOptions:M(x)},registerOptions:{required:!1},style:{width:"auto"}},additionalLabelInfo:d.vendorDetails.vendorClassAdditionText,style:{borderBottom:`1px solid ${y.colors.grey3}`},isDisabled:u}),S!=null?o.jsx(Z,{label:{label:d.vendorDetails.vendorOwner,width:$},userSingleSelectField:{name:O(v,"vendorOwner"),placeholder:d.placeholders.owner,defaultValue:{allOptions:B(S),selectedOption:t},registerOptions:{required:!1},style:{width:"auto"},menuPlacement:"top"},isDisabled:u,style:{justifyContent:"space-between"},controlWidth:j}):null]})]})},se=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  padding-top: ${a.sp3};
@@ -1,4 +1,4 @@
1
- import{V as t,J as ue,aQ as A,hv as lt,aO as U,i as ve,hE as ct,T as Ye,aS as $e,o as a,F as E,y as c,c as Ne,d as dt,ba as ut,aq as ft,R as be,ai as De,al as fe,aR as ce,fB as pt,a9 as Xe,cG as mt,aZ as ht,aP as gt,p as J,ac as qe,fF as ke,fG as Ae,gd as wt,bU as ye,g7 as xt,hF as $t,u as o,fp as bt,cj as Ue,c1 as Dt,f1 as yt,bL as Tt,am as Ge,fS as Ct,dw as St,c3 as Je,gY as vt,gZ as kt}from"./index-GSKpJ8ET.js";import{a as u}from"./sentry-BZBky1_g.js";import{n}from"./mui-DenpH-hx.js";import{bL as At}from"./zeni-epic-state-BKgIzPpM.js";import{v as Pt}from"./ZeniTransferAmountSlider-4Nq4Sm9J-CWNMmcE5.js";import{r as Lt}from"./AccountInfoPageContent-BLF92_vF-CW7wtofP.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";import"./downloadPdf-DPAqxw6u-DccTm81d.js";import"./commonDimensions-YcBBlmYP-HRUAmifl.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]="1d6f9eda-6475-4b70-9f77-f483b78859ee",e._sentryDebugIdIdentifier="sentry-dbid-1d6f9eda-6475-4b70-9f77-f483b78859ee")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=E.getLocalizedStrings(),Ze="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",He="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ke=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:B,setTotalBalance:M,onSaveChangesToLocalStore:Z,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:H,onReviewClick:K}){const i=ue(),R=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&H?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const F={...h},le={amount:{amount:F[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===F[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===F[k].transferTo.selectedOption)};Z(le)}};u.useEffect(()=>{const s=P.watch((h,{name:F})=>{if(F!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:F})=>{F!=null&&h!=null&&mt(()=>at(F,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Bt,{children:t.jsxs(It,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Et,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:J.heroLight}})})]})}):null,t.jsx(Yt,{children:U("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ke(He),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ze),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Ut,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:B,setTotalBalance:M})]}):null,t.jsxs(Gt,{windowSize:i,children:[t.jsx(Ht,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${U("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Zt,{windowSize:i}),t.jsx(Kt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${U("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Be,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Be,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ze]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Ft(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Ft=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Bt=n.div`
1
+ import{V as t,J as ue,aQ as A,hv as lt,aO as U,i as ve,hE as ct,T as Ye,aS as $e,o as a,F as E,y as c,c as Ne,d as dt,ba as ut,aq as ft,R as be,ai as De,al as fe,aR as ce,fB as pt,a9 as Xe,cG as mt,aZ as ht,aP as gt,p as J,ac as qe,fF as ke,fG as Ae,gd as wt,bU as ye,g7 as xt,hF as $t,u as o,fp as bt,cj as Ue,c1 as Dt,f1 as yt,bL as Tt,am as Ge,fS as Ct,dw as St,c3 as Je,gY as vt,gZ as kt}from"./index-Dm-b67Hf.js";import{a as u}from"./sentry-C2Rgx3zV.js";import{n}from"./mui-BLkKBV85.js";import{bL as At}from"./zeni-epic-state-TdgpFmku.js";import{v as Pt}from"./ZeniTransferAmountSlider-DMdKnrKk-BOekYkfn.js";import{r as Lt}from"./AccountInfoPageContent-zf4BRg29-DZX6BB3M.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./downloadPdf-BnXVGESU-CGO5_V0v.js";import"./commonDimensions-aMGDpjmW-UhXAGxHS.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]="830ae923-8297-44e4-8a0e-e35233defacc",e._sentryDebugIdIdentifier="sentry-dbid-830ae923-8297-44e4-8a0e-e35233defacc")}catch{}})();const{common:de,spendManagement:{zeniAccounts:{zeniAccountList:D}}}=E.getLocalizedStrings(),Ze="amount",jt="transferTo",Pe="transferFrom",k="transferDetails",He="transferDetailPage",ge=(e,r)=>`${e}.${r}`,Ke=e=>`${e}_form`,p={largeLabelWidth:new c(120,120,160),rowContentPaddingLeft:new c(o[3],o[4]),labeleMarginLeft:new c(o[0],o[0]),labelMarginRight:new c(o[3],o[3]),labeleMarginBottom:new c(o[2],o[0]),labeledFieldPaddingLeft:new c(o[3],o[0]),labeledFieldPaddingRight:new c(o[3],o[2]),labeledFieldPaddingTop:new c(o[3],o[3]),labeledFieldPaddingBottom:new c(o[3],o[2]),infoLabelPaddingRight:new c(o[0],o[3]),infoLabelMarginTop:new c(o[1],o[0]),controllerWrapperFlex:new c(1,o[0])};function zt({plaidConnectionDetails:e,transferDetails:r,zeniAccountsConfigDetail:g,isCalculatorOpen:$,showAnnualYieldEarned:y,transferAmount:w,yieldEarned:d,totalBalance:f,maxInsuredAmount:l,setIsCalculatorOpen:T,setShowAnnualYieldEarned:C,setTransferAmount:S,setYieldEarned:B,setTotalBalance:M,onSaveChangesToLocalStore:Z,onBackClick:I,onEstablishConnectionClick:O,fireTrackTransferBetweenAccountsFormClicked:_,onFetchLinkTokenClick:H,onReviewClick:K}){const i=ue(),R=p.largeLabelWidth.value(i),[V,j]=u.useState(!1),m=e.link_account_no_microdeposit,[v,W]=u.useState(m.linkToken??null),[x,z]=u.useState(!1),[Y,N]=u.useState(!1),Q=r.transferMoneyPartiesFetchState,oe=ce(Q),X=r.transferDetailLocalData.transferFrom?.id,ee=r.transferDetailLocalData.transferTo?.id,ie=ce(X),Te=ce(ee),pe=r.transferMoneyParties.map(s=>s.id),me=ce(pe),Qe=u.useCallback(s=>{O?.(s),I(),N(!1),z(!1)},[I,O]),et=u.useCallback((s,h)=>{s!=null&&console.log("Plaid Connection Error",s,h)},[]),{open:q,ready:te}=pt({token:v,onSuccess:Qe,onExit:et}),se=u.useCallback(s=>{s.preventDefault(),s.stopPropagation(),te?q():z(!0)},[q,te]),P=Xe({mode:"all",reValidateMode:"onBlur",defaultValues:u.useMemo(()=>Le(r,se),[r])});u.useEffect(()=>{m.fetchStatus.fetchState==="Completed"&&m.linkToken!=null&&m.linkToken!==v&&W(m.linkToken)},[m.fetchStatus.fetchState,m.linkToken,v]),u.useEffect(()=>{m.linkToken===v&&m.fetchStatus.fetchState==="Completed"&&te&&N(!0)},[te,v,m.fetchStatus,m.linkToken,m.fetchStatus.fetchState]),u.useEffect(()=>{Y&&x&&q()},[Y,q,x]),u.useEffect(()=>{(At(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&H?.("link_account_no_microdeposit")},[]),u.useEffect(()=>{const s=me!=null&&JSON.stringify(me)!==JSON.stringify(pe);(oe==="In-Progress"&&Q==="Completed"||ie!==X||Te!==ee||s)&&P.reset(Le(r,()=>q()))},[te,v,m.fetchStatus.fetchState,oe,Q,ie,Te,ee,X,me,pe,P,r,q]);const{isValid:tt}=P.formState,at=async(s,h)=>{if(s!=null){const F={...h},le={amount:{amount:F[k].amount??0,currencyCode:"USD",currencySymbol:"$"},transferFrom:r.transferMoneyParties.find(ae=>ae.id===F[k].transferFrom.selectedOption),transferTo:r.transferMoneyParties.find(ae=>ae.id===F[k].transferTo.selectedOption)};Z(le)}};u.useEffect(()=>{const s=P.watch((h,{name:F})=>{if(F!=null&&h!=null){const le=h[k]?.amount??0,ae=h[k]?.transferFrom,ot=h[k]?.transferTo,it=r.transferMoneyParties.find(he=>he.id===ae?.selectedOption),st=r.transferMoneyParties.find(he=>he.id===ot?.selectedOption);it?.accType==="paymentAccount"&&st?.accType==="depositAccount"&&le!==0?(T(!0),C(!0)):C(!1),S(le)}});return()=>{s.unsubscribe()}},[P,r.transferMoneyParties]),u.useEffect(()=>{const s=P.watch((h,{name:F})=>{F!=null&&h!=null&&mt(()=>at(F,h))});return()=>{s.unsubscribe()}}),u.useEffect(()=>{r.reviewTransferDetail.error!=null?j(!0):j(!1)},[r.reviewTransferDetail.error]);const nt=P.handleSubmit(()=>{tt&&(_("Review","Amount Details"),K())});u.useEffect(()=>{r.transferDetailLocalData.transferTo?.accType==="depositAccount"&&r.transferDetailLocalData.transferTo.accountBalance?.available?.amount===0&&r.transferDetailLocalData.transferFrom?.id==null&&P.setValue(`${k}.${Pe}`,{selectedOption:r.primaryPaymentAccount?.paymentAccountId,allOptions:ne(r,!0,se,!0,!0)})},[r.transferDetailLocalData.transferTo?.id]);const Ce=g.zeniAccountsConfigDetail.depositProductConfig.depositProducts,Se=Ce[Ce.length-1].annualPercentageYield.toString(),rt=ht(gt(l),l,de.currency.currencySymbol).toUpperCase();return t.jsx(t.Fragment,{children:m.fetchStatus.fetchState==="Completed"?t.jsxs(t.Fragment,{children:[V?t.jsx(Bt,{children:t.jsxs(It,{children:[t.jsxs(Rt,{children:[t.jsx(Ot,{}),t.jsxs(_t,{children:[t.jsx(Vt,{children:r.reviewTransferDetail.error?.title}),t.jsx(Wt,{children:r.reviewTransferDetail.error?.message})]})]}),t.jsx(Et,{children:t.jsx(na,{"data-testid":A("amount-details-error-close"),onClick:()=>{_("Cross","Amount Details"),j(!1)},style:{width:a.sp3,height:a.sp3,color:J.heroLight}})})]})}):null,t.jsx(Yt,{children:U("0,0.[00]",r.transferDetailLocalData.amount)}),t.jsx(qe,{...P,children:t.jsxs(Mt,{id:Ke(He),onSubmit:nt,children:[t.jsxs(ta,{children:[t.jsx(Ie,{size:i,children:t.jsx(je,{label:{label:de.labels.transferFrom,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferFromError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,Pe),placeholder:D.transferDrawer.transferFromPlaceholder,style:{position:"relative"},capitalizeOptions:!0,valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferFrom?.id,allOptions:ne(r,!0,se,!0,!0)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})}),t.jsx(Me,{}),t.jsx(Ie,{size:i,children:t.jsx(aa,{size:i,children:t.jsx(je,{label:{label:de.labels.transferTo,width:R,style:{marginLeft:p.labeleMarginLeft.valuePx(i),marginBottom:p.labeleMarginBottom.valuePx(i),marginRight:p.labelMarginRight.valuePx(i)}},errorInfoLabel:D.transferDrawer.transferToError,style:{paddingTop:p.labeledFieldPaddingTop.valuePx(i),paddingBottom:p.labeledFieldPaddingBottom.valuePx(i),paddingLeft:p.labeledFieldPaddingLeft.valuePx(i),paddingRight:p.labeledFieldPaddingRight.valuePx(i),border:"none",width:"100%",outline:"none",padding:0,display:i==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:i==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(i),marginTop:p.infoLabelMarginTop.valuePx(i)},singleSelectPickerField:{name:ge(k,jt),placeholder:D.transferDrawer.transferToPlaceholder,capitalizeOptions:!0,style:{position:"relative"},valueToLogo:(s,h)=>Ae(r.transferMoneyParties,s,h),valueToSubLabels:(s,h)=>ke(r.transferMoneyParties,s,h,!1),defaultValue:{selectedOption:r.transferDetailLocalData.transferTo?.id,allOptions:ne(r,!1,se)},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(Me,{}),t.jsx(wt,{showAdditionalInfoLabel:!1,label:{label:de.labels.amount,width:R},additionalInfoLabel:D.transferDrawer.amountError,formattedTextField:{type:"number",name:ge(k,Ze),defaultValue:r.transferDetailLocalData.amount.amount===0?void 0:r.transferDetailLocalData.amount.amount,placeholder:D.transferDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}})]}),t.jsxs(Ut,{children:[$?t.jsxs(Nt,{children:[t.jsx(Xt,{children:D.transferDrawer.calculator.heading.replace("__rate__",Se).replace("__amount__",rt)}),t.jsx(Pt,{minStep:.01,currentAccountBalance:r.transferDetailLocalData.transferTo?.accountBalance?.available?.amount??0,transferAmount:w,zeniAccountsConfigDetail:g,setYieldEarned:B,setTotalBalance:M})]}):null,t.jsxs(Gt,{windowSize:i,children:[t.jsx(Ht,{windowSize:i,children:y?t.jsxs(t.Fragment,{children:[t.jsxs(Jt,{children:[t.jsx(ze,{children:`${D.transferDrawer.calculator.footerText.annualYieldEarned} ${U("0,0",{amount:d,currencySymbol:"$"})}`}),t.jsx(ye,{variant:"small-description",display:"flex",data:D.transferDrawer.calculator.footerText.annualYieldEarnedTooltipText,placement:i==="small"?"bottom":"right",children:t.jsx(qt,{})})]}),t.jsx(Zt,{windowSize:i}),t.jsx(Kt,{children:`${D.transferDrawer.calculator.footerText.forTotalBalance} ${U("0,0",{amount:f,currencySymbol:"$"})}`})]}):t.jsx(ze,{children:D.transferDrawer.calculator.footerText.earnUptoText.replace("__rate__",Se)})}),$?t.jsxs(Be,{windowSize:i,onClick:()=>T(!1),"data-testid":A("calculator-footer-close"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.hide}),t.jsx(Qt,{className:"calculatorFooterArrowIcon"})]}):t.jsxs(Be,{windowSize:i,onClick:()=>T(!0),"data-testid":A("calculator-footer-show"),children:[t.jsx(Fe,{className:"calculatorFooterLeftText",children:D.transferDrawer.calculator.footerText.showYieldCalculator}),t.jsx(ea,{className:"calculatorFooterArrowIcon"})]})]})]})]})})]}):t.jsx(Ye,{size:"Standard",start:!0,style:{display:"flex",justifyContent:"center",alignItems:"center",height:"calc(100vh - 500px)"}})})}const ne=(e,r,g,$=!1,y=!1)=>{const w=e.transferMoneyParties.map(d=>{const f={label:d.label,value:d.id};return $&&(r?f.isDisabled=d.id===e?.transferDetailLocalData?.transferTo?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferTo?.accType==="paymentAccount":f.isDisabled=d.id===e.transferDetailLocalData.transferFrom?.id||d.accType==="paymentAccount"&&e.transferDetailLocalData.transferFrom?.accType==="paymentAccount"),f});if(y){const d={label:D.transferDrawer.selectAddAccount,value:"",type:"button",onClick:g};w.push(d)}return w},Le=(e,r)=>({transferDetails:{[Ze]:e.transferDetailLocalData.amount.amount===0?void 0:e.transferDetailLocalData.amount.amount,transferFrom:{allOptions:ne(e,!0,r,!0,!0),selectedOption:e.transferDetailLocalData.transferFrom?.id!=null?e.transferDetailLocalData.transferFrom?.id:Ft(e)},transferTo:{allOptions:ne(e,!1,r,!0,!1),selectedOption:e.transferDetailLocalData.transferTo?.id}}}),Ft=e=>e.transferDetailLocalData.transferTo?.accType==="depositAccount"&&e.transferDetailLocalData.transferTo?.accountBalance?.available?.amount===0?e.primaryPaymentAccount?.paymentAccountId:void 0,Bt=n.div`
2
2
  margin-top: ${a.sp3};
3
3
  display: flex;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{J as C,e as M,a8 as Fe,ce as Ke,V as t,aO as V,bU as ae,bD as Ve,b as ie,aQ as W,T as We,o as i,ai as k,F as L,p as w,bL as Ee,y,fi as X,N as I,u as p,b5 as ne,bP as Le,aU as Me,aw as Ue,fV as Ge,h2 as _e,i as Je,al as A,b0 as Xe,jr as Qe,k3 as qe,bh as Ze,eP as et,da as tt,fS as it,k_ as ot,j0 as Ae,j1 as Oe,cu as rt,iT as at,iU as nt,k$ as st,ke as lt,am as E,bS as dt,cA as le,i$ as ct,cD as ht}from"./index-GSKpJ8ET.js";import{a as f,P as pt}from"./sentry-BZBky1_g.js";import{n as o,c as de}from"./mui-DenpH-hx.js";import{bL as U,c4 as xt}from"./zeni-epic-state-BKgIzPpM.js";import{s as gt}from"./commonDimensions-YcBBlmYP-HRUAmifl.js";import{g as ce}from"./BoxItem-CYe_gTmA-3TpRGAgq.js";import{o as mt}from"./shield-DOlUxcFf-DnxNebOP.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-9NtTDQfo.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.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]="dfa1807c-eb7c-42ac-ae2d-bc226d1d1f18",e._sentryDebugIdIdentifier="sentry-dbid-dfa1807c-eb7c-42ac-ae2d-bc226d1d1f18")}catch{}})();const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,yt={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},ft={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[yt,ft,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new y(p[0],p[4]),headerLastColumnRightPadding:new y(p[3],p[11]),headerLastColumnBottomPadding:new y(p[0],p[4]),headerLastColumnLeftPadding:new y(p[3],p[11]),headerHeight:new y(Ae,Oe),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(le,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(le,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const jt=pt.memo($t),bt=o.div`
1
+ import{J as C,e as M,a8 as Fe,ce as Ke,V as t,aO as V,bU as ae,bD as Ve,b as ie,aQ as W,T as We,o as i,ai as k,F as L,p as w,bL as Ee,y,fi as X,N as I,u as p,b5 as ne,bP as Le,aU as Me,aw as Ue,fV as Ge,h2 as _e,i as Je,al as A,b0 as Xe,jr as Qe,k3 as qe,bh as Ze,eP as et,da as tt,fS as it,k_ as ot,j0 as Ae,j1 as Oe,cu as rt,iT as at,iU as nt,k$ as st,ke as lt,am as E,bS as dt,cA as le,i$ as ct,cD as ht}from"./index-Dm-b67Hf.js";import{a as f,P as pt}from"./sentry-C2Rgx3zV.js";import{n as o,c as de}from"./mui-BLkKBV85.js";import{bL as U,c4 as xt}from"./zeni-epic-state-TdgpFmku.js";import{s as gt}from"./commonDimensions-aMGDpjmW-UhXAGxHS.js";import{g as ce}from"./BoxItem-COPJh7Lh-BtEwjrhv.js";import{o as mt}from"./shield-DOlUxcFf-BI7xxvqa.js";import{U as he,F as pe,X as xe,Y as ge,G as me,J as ut}from"./recharts-B8tzuQ8V.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.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]="0217dc7e-f7b6-4e4f-b154-1b220cb7aacd",e._sentryDebugIdIdentifier="sentry-dbid-0217dc7e-f7b6-4e4f-b154-1b220cb7aacd")}catch{}})();const se=L.getLocalizedStrings().spendManagement.treasury.overviewPage.header,yt={key:"description",value:se.trasnactionTitle,sortOrder:"ascending",width:new y(120,250,400,400,500)},ft={key:"date",value:se.paymentDate,sortOrder:"ascending",width:new y(100,120,200,250,300)},wt={key:"amount",value:se.amount,sortOrder:"ascending",width:new y(80,100,150,180,200)},oe=()=>[yt,ft,wt],S={containerPaddingLeft:i.sp4,containerPaddingRight:i.sp4,containerPaddingTop:i.sp3,containerPaddingBottom:i.sp3,headerLastColumnTopPadding:new y(p[0],p[4]),headerLastColumnRightPadding:new y(p[3],p[11]),headerLastColumnBottomPadding:new y(p[0],p[4]),headerLastColumnLeftPadding:new y(p[3],p[11]),headerHeight:new y(Ae,Oe),sortIconSize:new y(p[2],p[2]),headerPaddingTop:new y(p[0],2)};function $t({companyNameSticky:e,sortConfig:r,onColumnSortConfigChanged:n}){const h=M(),l=C(),[a,u]=f.useState(oe());f.useEffect(()=>{const c=[...a];for(const s of c)s.key===r.sortKey?s.sortOrder=r.sortOrder:s.sortOrder="ascending";u(c)},[r.sortKey,r.sortOrder]);const d=(c,s)=>{let m=s;r.sortKey===c&&(m=s==="ascending"?"descending":"ascending"),n(c,m)},g=a.find(c=>c.key===r.sortKey)??a[0],x=c=>a.find(s=>s.key===c)?.value??"",$=a.map(c=>c.key),j=L.getLocalizedStrings().spendManagement.chargeCard.cardList;return l==="small"?t.jsxs(St,{windowSize:l,children:[t.jsxs(zt,{children:[t.jsx(Dt,{children:t.jsx(Pt,{})}),t.jsx(dt,{title:j.sortBy,placeholder:j.sortBy,pickerValues:$,valueToLabel:x,selectedValue:r.sortKey,onPickerSelectionChanged:c=>{d(c,"ascending")},optionTextStyle:ie.extraSmallRegular,titleTextStyle:ie.extraSmallRegular,titleColor:h.colors.primary,selectedOptionColor:h.colors.hero,optionBackgroundColor:h.colors.grey5,downChevronVisible:!1,backgroundColor:h.colors.grey4})]}),t.jsxs(Mt,{onClick:()=>d(g.key,g.sortOrder),"data-testid":W("mobile-cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:g.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:g,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===g.key,children:t.jsx(le,{})})})]})]}):t.jsx(bt,{windowSize:l,children:t.jsx(vt,{children:a.map(c=>c.width.value(l)!==0&&t.jsxs(kt,{companyNameSticky:e,sortDataValue:r.sortKey,actualDataValue:c.key,wrapperWidth:c.width,windowSize:l,children:[t.jsxs(Lt,{onClick:()=>d(c.key,c.sortOrder),"data-testid":W("cards-list-sort-clicked",r.sortKey),children:[t.jsx(E,{children:c.value}),t.jsx(ue,{windowSize:l,sortDataValue:r.sortKey,headerdata:c,children:t.jsx(ye,{windowSize:l,isSelected:r.sortKey===c.key,children:t.jsx(le,{})})})]}),t.jsx(Tt,{sortDataValue:r.sortKey,windowSize:l,isVisible:r.sortKey===c.key&&c.key!=="date",children:t.jsx(Ct,{onClick:()=>d("date","ascending"),"data-testid":W("cards-list-sort-cancel",r.sortKey)})})]},c.key))})})}const jt=pt.memo($t),bt=o.div`
2
2
  top: ${i.sp0};
3
3
  left: ${i.sp0};
4
4
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{e as ce,J as V,aw as $e,a8 as fe,aR as ye,V as r,bD as be,fu as ke,b5 as je,o as i,jr as Se,bU as ze,ai as k,i as J,aQ as Z,F as A,N as $,aq as F,p as a,y as z,al as R,da as ve,bW as Le,d as Pe,am as Me,fc as Be,u as h,dQ as Ee,bg as Ie,R as Te,c as De,b as ee,d5 as We}from"./index-GSKpJ8ET.js";import{a as s,P as _e}from"./sentry-BZBky1_g.js";import{n as t}from"./mui-DenpH-hx.js";import{GB as Re}from"./zeni-epic-state-BKgIzPpM.js";import{I as He,N as Ne}from"./VideoPlayer-BNBpjXJk-S1NV6cBn.js";import{r as Ge}from"./auto-transfer-rule-mbafm5D3-DaMjzKK3.js";import{o as Ve}from"./shield-DOlUxcFf-DnxNebOP.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="ea28d561-3df9-4f04-8e82-f0f146c4211b",e._sentryDebugIdIdentifier="sentry-dbid-ea28d561-3df9-4f04-8e82-f0f146c4211b")}catch{}})();const Ae=({isOpen:e,onClose:g})=>{const d=V(),C=A.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Fe,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(N,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(te,{children:p},w))}),r.jsx(N,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Ke,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Qe,{children:p.links.map((u,b)=>r.jsx(Je,{children:u.link!==""?r.jsx(ie,{href:u.link,target:"_blank",rel:"noopener noreferrer",children:u.text}):u.text},b))}):r.jsx(ie,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:i.sp2},children:C.agreementDrawer.confirmTitle}),r.jsx(N,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(te,{children:p},w))})]})]})})},Fe=t.div`
1
+ import{e as ce,J as V,aw as $e,a8 as fe,aR as ye,V as r,bD as be,fu as ke,b5 as je,o as i,jr as Se,bU as ze,ai as k,i as J,aQ as Z,F as A,N as $,aq as F,p as a,y as z,al as R,da as ve,bW as Le,d as Pe,am as Me,fc as Be,u as h,dQ as Ee,bg as Ie,R as Te,c as De,b as ee,d5 as We}from"./index-Dm-b67Hf.js";import{a as s,P as _e}from"./sentry-C2Rgx3zV.js";import{n as t}from"./mui-BLkKBV85.js";import{GB as Re}from"./zeni-epic-state-TdgpFmku.js";import{I as He,N as Ne}from"./VideoPlayer-D5QP-myQ-CVNLOpWk.js";import{r as Ge}from"./auto-transfer-rule-mbafm5D3-rBHUDSkc.js";import{o as Ve}from"./shield-DOlUxcFf-BI7xxvqa.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="4d254bcf-3adc-4dcc-a623-d9d9a22cea4b",e._sentryDebugIdIdentifier="sentry-dbid-4d254bcf-3adc-4dcc-a623-d9d9a22cea4b")}catch{}})();const Ae=({isOpen:e,onClose:g})=>{const d=V(),C=A.getLocalizedStrings().spendManagement.treasury.promoPage;return r.jsx(Be,{anchor:"right",slotProps:{paper:{sx:{width:d==="small"||d==="medium-compact"?"100%":"60%",boxShadow:"none"}}},open:e,onClose:g,style:{backgroundColor:a.drawerBackground},transitionDuration:250,children:r.jsxs(Fe,{windowSize:d,children:[r.jsx(Oe,{children:r.jsx(Ye,{onClick:g})}),r.jsxs(qe,{children:[r.jsx(Ue,{windowSize:d,children:C.agreementDrawer.title}),r.jsx(re,{children:C.agreementDrawer.intro}),r.jsx(N,{children:C.agreementDrawer.introBullets.map((p,w)=>r.jsx(te,{children:p},w))}),r.jsx(N,{children:C.agreementDrawer.documents.map((p,w)=>r.jsx(Ke,{children:p.hasMultipleLinks===!0&&p.links?r.jsx(Qe,{children:p.links.map((u,b)=>r.jsx(Je,{children:u.link!==""?r.jsx(ie,{href:u.link,target:"_blank",rel:"noopener noreferrer",children:u.text}):u.text},b))}):r.jsx(ie,{href:p.link,target:"_blank",rel:"noopener noreferrer",children:p.text})},w))}),r.jsx(re,{style:{marginTop:i.sp2},children:C.agreementDrawer.confirmTitle}),r.jsx(N,{children:C.agreementDrawer.confirmBullets.map((p,w)=>r.jsx(te,{children:p},w))})]})]})})},Fe=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: 100%;
@@ -0,0 +1,58 @@
1
+ import{e as j,J as v,V as t,bD as I,b4 as z,o as r,F as C,p as m,cu as D,y as P,u as p,al as T}from"./index-Dm-b67Hf.js";import{a as h}from"./sentry-C2Rgx3zV.js";import{n as o}from"./mui-BLkKBV85.js";import{$ as E}from"./BoxItem-COPJh7Lh-BtEwjrhv.js";import{o as B}from"./commonDimensions-aMGDpjmW-UhXAGxHS.js";import{O as M}from"./StatementItem-DO9WpE-R-Do-IIiY-.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./downloadPdf-BnXVGESU-CGO5_V0v.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="995ffffe-0434-4855-b664-2adc92006967",e._sentryDebugIdIdentifier="sentry-dbid-995ffffe-0434-4855-b664-2adc92006967")}catch{}})();const f=C.getLocalizedStrings().spendManagement.treasury.statements,u={listItemMargin:new P(p[3],p[8])},re=({currentTenantCompanyName:e,authParams:n,downloadEndPoint:c,statementListView:s,onBackClick:w})=>{const g=j(),i=v(),x=h.createRef(),y=h.useRef(),k=s.statements.length===0,$=()=>B.transactionItemHeightResponsive.value(i),S=({index:a,style:l})=>{const d=s.statements[a];return k===!1?t.jsx(b,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(M,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:n,downloadEndPoint:c,documentType:"treasuryStatement",boxType:E(a,s.statements.length)},d.id)}):t.jsx(R,{style:{...l},children:t.jsx(_,{children:t.jsx(b,{windowSize:i,children:t.jsx(N,{children:f.noStatements})})})})};return t.jsxs(L,{children:[t.jsx(I,{title:f.title,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(z,{children:({height:a,width:l})=>t.jsx(H,{ref:x,height:a,width:l,innerRef:y,itemKey:d=>d,itemCount:s.statements.length,itemSize:$,initialScrollOffset:0,children:S})})})]})},R=o.div``,b=o.div`
2
+ margin: ${e=>`${r.sp0} ${u.listItemMargin.valuePx(e.windowSize)}`};
3
+ &:hover {
4
+ position: relative;
5
+ z-index: 2;
6
+ }
7
+ `,_=o.div`
8
+ display: flex;
9
+ height: 100%;
10
+ flex: 1 1 auto;
11
+ flex-direction: row;
12
+ justify-content: center;
13
+ align-items: flex-end;
14
+ `,L=o.div`
15
+ display: flex;
16
+ height: 100%;
17
+ flex-direction: column;
18
+ width: 100%;
19
+ padding-bottom: ${r.sp7};
20
+ `,N=o(T)`
21
+ display: flex;
22
+ color: ${e=>e.theme.colors.grey2};
23
+ `,V=o.div`
24
+ display: flex;
25
+ flex-direction: column;
26
+ width: 100%;
27
+ height: 100%;
28
+ margin-top: ${e=>e.windowSize==="small"?r.sp3:r.sp6};
29
+ `,H=o(D)`
30
+ scrollbar-width: thin;
31
+ scrollbar-color: transparent transparent;
32
+ &::-webkit-scrollbar {
33
+ width: ${r.sp2};
34
+ height: ${r.sp0};
35
+ background-color: transparent;
36
+ }
37
+ &::-webkit-scrollbar-track {
38
+ box-shadow: inset 0 0 2px ${m.scrollbarBoxShadow};
39
+ -webkit-box-shadow: inset 0 0 2px ${m.scrollbarBoxShadow};
40
+ background-color: transparent;
41
+ }
42
+ &::-webkit-scrollbar-thumb {
43
+ background-color: transparent;
44
+ }
45
+
46
+ &:hover {
47
+ scrollbar-color: ${e=>e.theme.colors.grey1} transparent;
48
+ &::-webkit-scrollbar {
49
+ width: ${r.sp2};
50
+ height: ${r.sp0};
51
+ background-color: transparent;
52
+ }
53
+ &::-webkit-scrollbar-thumb {
54
+ background-color: ${e=>e.theme.colors.grey1};
55
+ border-radius: 2px;
56
+ }
57
+ }
58
+ `;export{re as default};
@@ -1,5 +1,5 @@
1
- import{e as v,J as S,V as t,bD as L,b4 as I,o as r,F as z,p,cu as T,y as C,u as h,al as D}from"./index-GSKpJ8ET.js";import{a as m}from"./sentry-BZBky1_g.js";import{n as o}from"./mui-DenpH-hx.js";import{$ as P}from"./BoxItem-CYe_gTmA-3TpRGAgq.js";import{o as E}from"./commonDimensions-YcBBlmYP-HRUAmifl.js";import{O as B}from"./StatementItem-DvdSsb8I-4NJSevH0.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./zeni-epic-state-BKgIzPpM.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";import"./downloadPdf-DPAqxw6u-DccTm81d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="f460df9f-3ebc-42ba-a8ab-feecd857e376",e._sentryDebugIdIdentifier="sentry-dbid-f460df9f-3ebc-42ba-a8ab-feecd857e376")}catch{}})();const b=z.getLocalizedStrings().spendManagement.treasury.taxLetter,x={listItemMargin:new C(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:u})=>{const w=v(),i=S(),g=m.createRef(),y=m.useRef(),k=n.taxLetters.length===0,$=()=>E.transactionItemHeightResponsive.value(i),j=({index:s,style:l})=>{const d=n.taxLetters[s];return k===!1?t.jsx(f,{windowSize:i,style:{...l,width:`calc(100% - 2*${x.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:P(s,n.taxLetters.length)},d.id)}):t.jsx(M,{style:{...l},children:t.jsx(R,{children:t.jsx(f,{windowSize:i,children:t.jsx(N,{children:b.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:b.title,backgroundColor:w.colors.grey4,style:{zIndex:3},onBackClick:u,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:g,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:$,initialScrollOffset:0,children:j})})})]})},M=o.div``,f=o.div`
2
- margin: ${e=>`${r.sp0} ${x.listItemMargin.valuePx(e.windowSize)}`};
1
+ import{e as v,J as S,V as t,bD as L,b4 as I,o as r,F as z,p,cu as T,y as C,u as h,al as D}from"./index-Dm-b67Hf.js";import{a as b}from"./sentry-C2Rgx3zV.js";import{n as o}from"./mui-BLkKBV85.js";import{$ as P}from"./BoxItem-COPJh7Lh-BtEwjrhv.js";import{o as E}from"./commonDimensions-aMGDpjmW-UhXAGxHS.js";import{O as B}from"./StatementItem-DO9WpE-R-Do-IIiY-.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./downloadPdf-BnXVGESU-CGO5_V0v.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d5bb23b5-bcd5-436f-8035-7e36e394e9de",e._sentryDebugIdIdentifier="sentry-dbid-d5bb23b5-bcd5-436f-8035-7e36e394e9de")}catch{}})();const m=z.getLocalizedStrings().spendManagement.treasury.taxLetter,u={listItemMargin:new C(h[3],h[8])},re=({currentTenantCompanyName:e,authParams:a,downloadEndPoint:c,taxLetterListView:n,onBackClick:w})=>{const f=v(),i=S(),g=b.createRef(),y=b.useRef(),k=n.taxLetters.length===0,$=()=>E.transactionItemHeightResponsive.value(i),j=({index:s,style:l})=>{const d=n.taxLetters[s];return k===!1?t.jsx(x,{windowSize:i,style:{...l,width:`calc(100% - 2*${u.listItemMargin.valuePx(i)})`},children:t.jsx(B,{currentTenantCompanyName:e,accountLast4:"",data:d,authParams:a,downloadEndPoint:c,documentType:"taxLetter",boxType:P(s,n.taxLetters.length)},d.id)}):t.jsx(M,{style:{...l},children:t.jsx(R,{children:t.jsx(x,{windowSize:i,children:t.jsx(N,{children:m.noTaxLetter})})})})};return t.jsxs(_,{children:[t.jsx(L,{title:m.title,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:w,source:"treasury"}),t.jsx(V,{windowSize:i,children:t.jsx(I,{children:({height:s,width:l})=>t.jsx(H,{ref:g,height:s,width:l,innerRef:y,itemKey:d=>d,itemCount:n.taxLetters.length,itemSize:$,initialScrollOffset:0,children:j})})})]})},M=o.div``,x=o.div`
2
+ margin: ${e=>`${r.sp0} ${u.listItemMargin.valuePx(e.windowSize)}`};
3
3
  &:hover {
4
4
  position: relative;
5
5
  z-index: 2;
@@ -1,4 +1,4 @@
1
- import{F as $,V as n,e as P,b4 as _,b as j,aZ as A,aQ as Y,o as L,p as I,al as R}from"./index-GSKpJ8ET.js";import{a as v,P as z}from"./sentry-BZBky1_g.js";import{Fb as m}from"./zeni-epic-state-BKgIzPpM.js";import{d as B,g as T,p as D,u as O}from"./chartTypes-B3501CSI-Eia1dEGg.js";import{n as k}from"./mui-DenpH-hx.js";import{o as q}from"./toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js";import{V as K}from"./toChartData-DzatRnt8-Cq2-M4CL.js";import{H as V,I as G,X as N,Y as Q,J as W,R as X,K as Z}from"./recharts-9NtTDQfo.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b8958aa6-9429-4ab0-988a-aae6485847be",e._sentryDebugIdIdentifier="sentry-dbid-b8958aa6-9429-4ab0-988a-aae6485847be")}catch{}})();const H=k.div`
1
+ import{F as $,V as n,e as P,b4 as _,b as j,aZ as A,aQ as Y,o as L,p as I,al as R}from"./index-Dm-b67Hf.js";import{a as v,P as z}from"./sentry-C2Rgx3zV.js";import{Fb as m}from"./zeni-epic-state-TdgpFmku.js";import{d as B,g as T,p as D,u as O}from"./chartTypes-zuOlWPZo-CqRIct--.js";import{n as k}from"./mui-BLkKBV85.js";import{o as q}from"./toCOABalancesWithID-DUpgxtrc-n-6zkqkw.js";import{V as K}from"./toChartData-BNPIbcXQ-DT2tu_Ad.js";import{H as V,I as G,X as N,Y as Q,J as W,R as X,K as Z}from"./recharts-B8tzuQ8V.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a222edde-b765-4d53-a82b-d408bf5c2dfb",e._sentryDebugIdIdentifier="sentry-dbid-a222edde-b765-4d53-a82b-d408bf5c2dfb")}catch{}})();const H=k.div`
2
2
  display: flex;
3
3
  `,J=k.div`
4
4
  flex: display;
@@ -1,4 +1,4 @@
1
- import{J as H,V as i,T as L,o as r,F,b4 as E,aQ as T,y as c,b8 as I,R as V,u as a,al as A,c as q}from"./index-GSKpJ8ET.js";import{a as k}from"./sentry-BZBky1_g.js";import{n}from"./mui-DenpH-hx.js";import K from"./TrendChart-BMHDaOeh-DUFeSEwp.js";import{C as Q}from"./NoDataChart-Bvetk9za-Dz6Kgiua.js";import{F as W}from"./InsightsSection-BYiN2xB7-Tq3IZNKc.js";import{T as J}from"./TransactionList-BruCNjQg-CPy3bOrg.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0bf7dd27-9ebb-4694-b348-473c05fcf02c",e._sentryDebugIdIdentifier="sentry-dbid-0bf7dd27-9ebb-4694-b348-473c05fcf02c")}catch{}})();const Z=n.div`
1
+ import{J as H,V as i,T as L,o as r,F,b4 as E,aQ as T,y as c,b8 as I,R as V,u as a,al as A,c as q}from"./index-Dm-b67Hf.js";import{a as k}from"./sentry-C2Rgx3zV.js";import{n}from"./mui-BLkKBV85.js";import K from"./TrendChart-DwYxYNR7-JcI7qpjF.js";import{C as Q}from"./NoDataChart-Bd0aKX8D-BMtoTVvu.js";import{F as W}from"./InsightsSection-0ekovQH4-BlPNJh_U.js";import{T as J}from"./TransactionList-CvRmT2Lq-C1JZRVpn.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8cfb8fc9-1e28-42cb-8ffd-99a3e5b51921",e._sentryDebugIdIdentifier="sentry-dbid-8cfb8fc9-1e28-42cb-8ffd-99a3e5b51921")}catch{}})();const Z=n.div`
2
2
  display: inline-block;
3
3
  `,G=n.div`
4
4
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{e as ie,J as ce,aw as Ke,aR as en,gI as I,hQ as U,a9 as nn,hR as tn,hS as je,cG as on,V as t,bD as cn,cq as sn,cr as an,cs as ln,ac as dn,hT as rn,T as un,aS as pn,fy as mn,F as H,hU as _e,y as u,al as gn,o as a,cT as ye,aW as q,gN as te,hV as oe,hW as Z,hX as xn,u as r,N as fe,p as Ae,g6 as Ve,ai as $e,bj as hn}from"./index-GSKpJ8ET.js";import{a as Y}from"./sentry-BZBky1_g.js";import{n as s}from"./mui-DenpH-hx.js";import{FY as Te,FC as wn,FD as bn,FZ as yn}from"./zeni-epic-state-BKgIzPpM.js";import{h as fn}from"./VendorsAccountsSection-CGQ35Mhp-CZRiYNTG.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3337626c-33cd-4d55-8ea5-1a94a65e91e7",e._sentryDebugIdIdentifier="sentry-dbid-3337626c-33cd-4d55-8ea5-1a94a65e91e7")}catch{}})();const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new fe("standardMedium","largeMedium")},An=s.div`
1
+ import{e as ie,J as ce,aw as Ke,aR as en,gI as I,hQ as U,a9 as nn,hR as tn,hS as je,cG as on,V as t,bD as cn,cq as sn,cr as an,cs as ln,ac as dn,hT as rn,T as un,aS as pn,fy as mn,F as H,hU as _e,y as u,al as gn,o as a,cT as we,aW as q,gN as te,hV as oe,hW as Z,hX as xn,u as r,N as ye,p as Ae,g6 as Ve,ai as $e,bj as hn}from"./index-Dm-b67Hf.js";import{a as Y}from"./sentry-C2Rgx3zV.js";import{n as s}from"./mui-BLkKBV85.js";import{FY as Te,FC as bn,FD as fn,FZ as wn}from"./zeni-epic-state-TdgpFmku.js";import{h as yn}from"./VendorsAccountsSection-B9OpiDDc-Ck5imuYH.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="df3fc1f2-8740-4df6-a43b-dbe1274ddce1",e._sentryDebugIdIdentifier="sentry-dbid-df3fc1f2-8740-4df6-a43b-dbe1274ddce1")}catch{}})();const C={labelWidth:new u(210,240,260),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},We={title:new ye("standardMedium","largeMedium")},An=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>C.rowGap.valuePx(e.windowSize)};
@@ -65,7 +65,7 @@ import{e as ie,J as ce,aw as Ke,aR as en,gI as I,hQ as U,a9 as nn,hR as tn,hS as
65
65
  background-color: ${e=>e.theme.colors.grey5};
66
66
  border: 1px solid ${e=>e.theme.colors.grey3};
67
67
  border-radius: ${a.sp2};
68
- `,X=(e,n)=>`${e}.${n}`;function kn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),k=o.billPayRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=ye(),v=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:X(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:O},label:{label:o.billPayRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},He={title:new fe("standardMedium","largeMedium")},On=s.div`
68
+ `,X=(e,n)=>`${e}.${n}`;function kn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=C.labelWidth.value(l),z=o.billPayRecommendation!=null?[o.billPayRecommendation]:[],R=I(o.billPayAccountHierarchy,z,"Accounts"),k=o.billPayRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.billsSection.billPayExpenseAccount),$=o.billPayAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedBillPayAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=we(),v=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(An,{windowSize:l,children:[t.jsx(In,{windowSize:l,children:c.billsSection.heading}),t.jsxs($n,{windowSize:l,children:[t.jsxs(Sn,{windowSize:l,children:[t.jsx(vn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Ln,{})}),t.jsxs(Rn,{children:[t.jsx(Cn,{windowSize:l,children:c.billsSection.title}),t.jsx(Pn,{children:c.billsSection.subTitle})]})]}),t.jsx(Mn,{children:t.jsx(zn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.billsSection.bankChargesAndFeesLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.billPayRecommendation!=null,name:X(e,"billPayAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.billPayAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.billPayRecommendation!=null?{tooltipProps:{text:O},label:{label:o.billPayRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:X(e,"isRecommendedBillPayAccountChecked"),defaultChecked:d(X(e,"isRecommendedBillPayAccountChecked"))}}:void 0},X(e,"billPayAccount"))})})]})]})}const P={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},He={title:new ye("standardMedium","largeMedium")},On=s.div`
69
69
  display: flex;
70
70
  flex-direction: column;
71
71
  row-gap: ${e=>P.rowGap.valuePx(e.windowSize)};
@@ -132,7 +132,7 @@ import{e as ie,J as ce,aw as Ke,aR as en,gI as I,hQ as U,a9 as nn,hR as tn,hS as
132
132
  background-color: ${e=>e.theme.colors.grey5};
133
133
  border: 1px solid ${e=>e.theme.colors.grey3};
134
134
  border-radius: ${a.sp2};
135
- `,K=(e,n)=>`${e}.${n}`;function qn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),k=o.reimbursementsRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=ye(),v=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(On,{windowSize:l,children:[t.jsx(Tn,{windowSize:l,children:c.reimbursementsSection.heading}),t.jsxs(En,{windowSize:l,children:[t.jsxs(jn,{windowSize:l,children:[t.jsx(Fn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Vn,{})}),t.jsxs(Dn,{children:[t.jsx(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(_n,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Wn,{children:t.jsx(Hn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:O},label:{label:o.reimbursementsRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new fe("standardMedium","largeMedium")},Nn=s.div`
135
+ `,K=(e,n)=>`${e}.${n}`;function qn({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=P.labelWidth.value(l),z=o.reimbursementsRecommendation!=null?[o.reimbursementsRecommendation]:[],R=I(o.reimbursementsAccountHierarchy,z,"Accounts"),k=o.reimbursementsRecommendation?.account?.reason??"",O=c.tooltip.replace("__based__",k).replace("__account__",c.reimbursementsSection.reimbursementsExpenseAccount),$=o.reimbursementsAccountList.find(h=>h.accountId===o.accountMappingLocalData?.selectedReimbursementsAccountId),S={valueContainer:h=>({...h,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:d}=we(),v=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(On,{windowSize:l,children:[t.jsx(Tn,{windowSize:l,children:c.reimbursementsSection.heading}),t.jsxs(En,{windowSize:l,children:[t.jsxs(jn,{windowSize:l,children:[t.jsx(Fn,{windowSize:l,iconColor:v,isDarkMode:p.mode==="dark",children:t.jsx(Vn,{})}),t.jsxs(Dn,{children:[t.jsx(Bn,{windowSize:l,children:c.reimbursementsSection.title}),t.jsx(_n,{children:c.reimbursementsSection.subTitle})]})]}),t.jsx(Wn,{children:t.jsx(Hn,{windowSize:l,children:t.jsx(te,{isZeniRecommendsLabel:!0,isLoading:!1,label:{label:c.reimbursementsSection.mileageLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.reimbursementsRecommendation!=null,name:K(e,"reimbursementsAccount"),placeholder:c.placeholder.accountPlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:h=>oe(h,o.reimbursementsAccountList),defaultValue:{selectedOption:$?.qboId,allOptions:R},style:{border:`1px solid ${p.colors.grey3}`},customStyleConfig:S,registerOptions:{required:!1},menuPortal:n},style:{border:`1px solid ${p.colors.grey3}`,borderRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.reimbursementsRecommendation!=null?{tooltipProps:{text:O},label:{label:o.reimbursementsRecommendation?.account?.accountName??H.getLocalizedStrings().common.strings.empty},checkBoxField:{name:K(e,"isRecommendedReimbursementsAccountChecked"),defaultChecked:d(K(e,"isRecommendedReimbursementsAccountChecked"))}}:void 0},K(e,"reimbursementsAccount"))})})]})]})}const L={labelWidth:new u(120,145,160),sectionWidth:new u(343,580,726),iconContainerMaxWidthHeight:new u(r[6],r[7]),iconContainerMarginRight:new u(12,r[3]),iconPadding:new u(10,12),rowGap:new u(r[2],r[3]),elementsMarginLeftRight:new u(r[3],r[4])},qe={title:new ye("standardMedium","largeMedium")},Nn=s.div`
136
136
  display: flex;
137
137
  flex-direction: column;
138
138
  row-gap: ${e=>L.rowGap.valuePx(e.windowSize)};
@@ -199,7 +199,7 @@ import{e as ie,J as ce,aw as Ke,aR as en,gI as I,hQ as U,a9 as nn,hR as tn,hS as
199
199
  background-color: ${e=>e.theme.colors.grey5};
200
200
  border: 1px solid ${e=>e.theme.colors.grey3};
201
201
  border-radius: ${a.sp2};
202
- `,D=(e,n)=>`${e}.${n}`;function tt({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),k=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],O=I(o.expenseAccountHierarchy,k),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),d=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",d).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(f=>f.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:f=>({...f,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=ye(),V=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:V,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>oe(f,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:R},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:f=>oe(f,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:O},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const J={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,r[5],r[5]),sectionsRowGap:new u(12,r[7],r[7]),subTitlePaddingTop:new u(12,r[3]),subTitlePaddingBottom:new u(r[3],r[3])},{common:m,uncategorizedAccountsMapping:_}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",W="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
202
+ `,D=(e,n)=>`${e}.${n}`;function tt({sectionId:e,containerRef:n,accountMappingView:o}){const l=ce(),p=ie(),c=H.getLocalizedStrings().uncategorizedAccountsMapping,M=L.labelWidth.value(l),z=o.incomeRecommendation!=null?[o.incomeRecommendation]:[],R=I(o.incomeAccountHierachy,z),k=o.expenseRecommendation!=null?[o.expenseRecommendation]:[],O=I(o.expenseAccountHierarchy,k),$=o.incomeRecommendation?.account?.reason??"",S=c.tooltip.replace("__based__",$).replace("__account__",c.uncategorizedSection.incomeAccount),d=o.expenseRecommendation?.account?.reason??"",v=c.tooltip.replace("__based__",d).replace("__account__",c.uncategorizedSection.expenseAccount),h=o.incomeAccountList.find(y=>y.accountId===o.accountMappingLocalData?.selectedIncomeAccountId),E=o.expenseAccountList.find(y=>y.accountId===o.accountMappingLocalData?.selectedExpenseAccountId),F={valueContainer:y=>({...y,padding:`2px ${a.sp3}`,overflow:"unset"}),singleValue:()=>({margin:0})},{getValues:B}=we(),V=p.mode==="light"?new q(p.colors.brandColorJadeLight):new q(p.colors.brandColorJadeDark);return t.jsxs(Nn,{windowSize:l,children:[t.jsx(Jn,{windowSize:l,children:c.uncategorizedSection.heading}),t.jsxs(Gn,{windowSize:l,children:[t.jsxs(Un,{windowSize:l,children:[t.jsx(Zn,{windowSize:l,iconColor:V,isDarkMode:p.mode==="dark",children:t.jsx(Kn,{})}),t.jsxs(Qn,{children:[t.jsx(Yn,{windowSize:l,children:c.uncategorizedSection.title}),t.jsx(Xn,{children:c.uncategorizedSection.subTitle})]})]}),t.jsx(et,{children:t.jsxs(nt,{windowSize:l,children:[t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.incomeLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.incomeRecommendation!=null,name:D(e,"incomeAccount"),placeholder:c.placeholder.incomePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:y=>oe(y,o.incomeAccountList),defaultValue:{selectedOption:h?.qboId,allOptions:R},style:{width:"100%"},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.incomeRecommendation!=null?{tooltipProps:{text:S},label:{label:o.incomeRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedIncomeAccountChecked"),defaultChecked:B(D(e,"isRecommendedIncomeAccountChecked"))}}:void 0},D(e,"incomeAccount")),t.jsx(te,{isLoading:!1,label:{label:c.uncategorizedSection.expenseLabel,width:M},groupedSingleSelectField:{shouldShowChevronIcon:o.expenseRecommendation!=null,name:D(e,"expenseAccount"),placeholder:c.placeholder.expensePlaceholder,noOptionsMessage:{line1:c.noOptions.noAccountsFound,line2:c.noOptions.establishQBO},valueToId:y=>oe(y,o.expenseAccountList),defaultValue:{selectedOption:E?.qboId,allOptions:O},style:{borderBottom:`1px solid ${p.colors.grey3}`},customStyleConfig:F,registerOptions:{required:!1},menuPortal:n},disableCurrentOption:()=>!1,style:{borderBottom:`1px solid ${p.colors.grey3}`,borderBottomLeftRadius:"inherit",borderBottomRightRadius:"inherit"},fullWidthSelect:!0,recommendationCheckboxField:o.expenseRecommendation!=null?{tooltipProps:{text:v},label:{label:o.expenseRecommendation.account?.accountName??""},checkBoxField:{name:D(e,"isRecommendedExpenseAccountChecked"),defaultChecked:B(D(e,"isRecommendedExpenseAccountChecked"))}}:void 0},D(e,"expenseAccount"))]})})]})]})}const J={titleWidth:new u(343,580,826,1048),setupDetailsRowGap:new u(12,r[5],r[5]),sectionsRowGap:new u(12,r[7],r[7]),subTitlePaddingTop:new u(12,r[3]),subTitlePaddingBottom:new u(r[3],r[3])},{common:m,uncategorizedAccountsMapping:_}=H.getLocalizedStrings(),De="uncategorizedAccountsMappingPage",W="uncategorizedAccountSection",x="filing1099Section",ee="billsAccountSection",ne="reimbursementsAccountSection",Ne="vendorsAccountSection",ot=s.div`
203
203
  display: flex;
204
204
  height: 100vh;
205
205
  width: 100%;
@@ -241,4 +241,4 @@ import{e as ie,J as ce,aw as Ke,aR as en,gI as I,hQ as U,a9 as nn,hR as tn,hS as
241
241
  padding-top: ${e=>J.subTitlePaddingTop.valuePx(e.windowSize)};
242
242
  padding-bottom: ${e=>J.subTitlePaddingBottom.valuePx(e.windowSize)};
243
243
  text-align: ${e=>e.windowSize==="small"?"initial":"center"};
244
- `;function ft({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:k}){const O=ie(),$=ce(),S=Ke(),[d,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:V,reimbursementsRecommendation:f,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=B!=null?[B]:[],ue=V!=null?[V]:[],pe=f!=null?[f]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),we=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,_.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,_.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,_.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,_.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,_.filing1099Section.allBoxes),be={int:Ge,misc:Ue,nec:Je},b=nn({mode:"all",defaultValues:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,he,we,Se,Ie,Re,ve,Ce,Pe,Le,be)}),Qe=b.handleSubmit(w=>{const A=w[x].bankAccount.selectedOptions.length,g=w[x].expenseCategory1099.length,y=A===0&&g===1&&tn(w[x].expenseCategory1099[0]),j=w[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!y){const ze=Q.accountId?.selectedOption,ke=Q.expenseType?.selectedOption,Oe=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(b.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(b.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(b.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(b.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(w[x].expenseCategory1099[0])||A>0&&g===1&&je(w[x].expenseCategory1099[0])||y)&&z(w)}),Ze=async(w,A)=>{if(w.includes("isRecommendedIncomeAccountChecked")){const g=A[W].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;b.setValue(`${W}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(w.includes("isRecommendedExpenseAccountChecked")){const g=A[W].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;b.setValue(`${W}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(w.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;b.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(w.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;b.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:we},{shouldValidate:!0})}if(w.includes("filing1099Section.expenseCategory1099")){const g=w.split(".").find(y=>!isNaN(Number(y)));if(g!==void 0){const y=parseInt(g,10),j=A[x].expenseCategory1099[y];j.accountId?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.accountId`),j.expenseType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.expenseType`),j.type1099?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.type1099`),j.boxType?.selectedOption!=null&&b.clearErrors(`${x}.expenseCategory1099.${y}.boxType`)}}if(w.includes("type1099")){const g=w?.split(".")?.find(y=>!isNaN(Number(y)));if(g!=null){const y=parseInt(g,10),j=A[x].expenseCategory1099[y].type1099?.selectedOption;b.setValue(`${x}.expenseCategory1099.${y}.boxType`,{selectedOption:m.strings.empty,allOptions:_e(j??m.strings.empty,be)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.useEffect(()=>{const w=b.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{w.unsubscribe()}});const Me=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||xn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),R?.(),b.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:_.title,onBackClick:R,backgroundColor:O.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:k,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:_.subTitle}),Ye===!1?t.jsx(dn,{...b,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:W,containerRef:E.current,accountMappingView:n}):null,wn(e,S.loggedInUserRoleMap)?t.jsx(kn,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(qn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(fn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&yn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(pn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(mn,{isFooterRendered:Me(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=d?.selectedIncomeAccountId===v?.account?.accountId,V=d?.selectedExpenseAccountId===h?.account?.accountId,f=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===F?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:k},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:O},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:_e(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[W]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:V},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:f},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{ft as default};
244
+ `;function yt({currentTenant:e,accountMappingView:n,isFiling1099FeatureEnabled:o,isAccruedExpensesFeatureEnabled:l,meetingUrl:p,isSettings:c=!1,onAccountMappingChange:M,onSaveClick:z,onBackClick:R,onClickMenuIcon:k}){const O=ie(),$=ce(),S=Ke(),[d,v]=Y.useState(!1),h=en(n.saveState.fetchState),E=Y.useRef(null),{incomeRecommendation:F,expenseRecommendation:B,billPayRecommendation:V,reimbursementsRecommendation:y,prepaidExpensesRecommendation:se,fixedAssetsRecommendation:ae,accruedExpensesRecommendation:le}=n,de=F!=null?[F]:[],re=B!=null?[B]:[],ue=V!=null?[V]:[],pe=y!=null?[y]:[],me=se,ge=ae,xe=le,i=I(n.incomeAccountHierachy,de,"Accounts"),N=I(n.expenseAccountHierarchy,re,"Accounts"),he=I(n.billPayAccountHierarchy,ue,"Accounts"),be=I(n.reimbursementsAccountHierarchy,pe,"Accounts"),Se=I(n.prepaidExpensesAccountHierarchy,me,"Accounts"),Ie=I(n.fixedAssetsAccountHierarchy,ge,"Accounts"),Re=I(n.accruedExpensesAccountHierarchy,xe,"Accounts"),ve=I(n.bankAccounts1099FilingAccountHierarchy,[],"Accounts"),Ce=I(n.expenseAccounts1099FilingAccountHierarchy,[],"Categories"),Pe=U(n.expenseTypeList,_.filing1099Section.allExpenseTypes),Le=U(n.expense1099TypeList,_.filing1099Section.all1099Types),Ge=U(n.boxTypesList.int,_.filing1099Section.allBoxes),Ue=U(n.boxTypesList.misc,_.filing1099Section.allBoxes),Je=U(n.boxTypesList.nec,_.filing1099Section.allBoxes),fe={int:Ge,misc:Ue,nec:Je},f=nn({mode:"all",defaultValues:Be(n,i,N,he,be,Se,Ie,Re,ve,Ce,Pe,Le,fe),resetOptions:{keepDirtyValues:!0},values:Be(n,i,N,he,be,Se,Ie,Re,ve,Ce,Pe,Le,fe)}),Qe=f.handleSubmit(b=>{const A=b[x].bankAccount.selectedOptions.length,g=b[x].expenseCategory1099.length,w=A===0&&g===1&&tn(b[x].expenseCategory1099[0]),j=b[x].expenseCategory1099,G=[];j.forEach((Q,T)=>{if(!w){const ze=Q.accountId?.selectedOption,ke=Q.expenseType?.selectedOption,Oe=Q.type1099?.selectedOption,Ee=Q.boxType?.selectedOption;(ze==null||ze==="")&&(f.setError(`${x}.expenseCategory1099.${T}.accountId`,{type:"manual",message:"Account ID is required."}),G.push(`${T}.accountId`)),(ke==null||ke==="")&&(f.setError(`${x}.expenseCategory1099.${T}.expenseType`,{type:"manual",message:"Expense Type is required."}),G.push(`${T}.expenseType`)),(Oe==null||Oe==="")&&(f.setError(`${x}.expenseCategory1099.${T}.type1099`,{type:"manual",message:"Type 1099 is required."}),G.push(`${T}.type1099`)),(Ee==null||Ee==="")&&(f.setError(`${x}.expenseCategory1099.${T}.boxType`,{type:"manual",message:"Box Type is required."}),G.push(`${T}.boxType`))}}),G.length===0&&(A>0&&g>1&&je(b[x].expenseCategory1099[0])||A>0&&g===1&&je(b[x].expenseCategory1099[0])||w)&&z(b)}),Ze=async(b,A)=>{if(b.includes("isRecommendedIncomeAccountChecked")){const g=A[W].isRecommendedIncomeAccountChecked===!0?n.incomeRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousIncomeAccount?.qboId;f.setValue(`${W}.incomeAccount`,{selectedOption:g,allOptions:i},{shouldValidate:!0})}if(b.includes("isRecommendedExpenseAccountChecked")){const g=A[W].isRecommendedExpenseAccountChecked===!0?n.expenseRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousExpenseAccount?.qboId;f.setValue(`${W}.expenseAccount`,{selectedOption:g,allOptions:N},{shouldValidate:!0})}if(b.includes("isRecommendedBillPayAccountChecked")){const g=A[ee].isRecommendedBillPayAccountChecked===!0?n.billPayRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousBillPayAccount?.qboId;f.setValue(`${ee}.billPayAccount`,{selectedOption:g,allOptions:he},{shouldValidate:!0})}if(b.includes("isRecommendedReimbursementsAccountChecked")){const g=A[ne].isRecommendedReimbursementsAccountChecked===!0?n.reimbursementsRecommendation?.account?.qboId??m.strings.empty:n.accountMappingLocalData?.previousReimbursementsAccount?.qboId;f.setValue(`${ne}.reimbursementsAccount`,{selectedOption:g,allOptions:be},{shouldValidate:!0})}if(b.includes("filing1099Section.expenseCategory1099")){const g=b.split(".").find(w=>!isNaN(Number(w)));if(g!==void 0){const w=parseInt(g,10),j=A[x].expenseCategory1099[w];j.accountId?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.accountId`),j.expenseType?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.expenseType`),j.type1099?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.type1099`),j.boxType?.selectedOption!=null&&f.clearErrors(`${x}.expenseCategory1099.${w}.boxType`)}}if(b.includes("type1099")){const g=b?.split(".")?.find(w=>!isNaN(Number(w)));if(g!=null){const w=parseInt(g,10),j=A[x].expenseCategory1099[w].type1099?.selectedOption;f.setValue(`${x}.expenseCategory1099.${w}.boxType`,{selectedOption:m.strings.empty,allOptions:_e(j??m.strings.empty,fe)},{shouldValidate:!0})}}M(A)};Y.useEffect(()=>{h==="In-Progress"&&n.saveState.fetchState==="Completed"&&R?.()},[h,n.saveState.fetchState,R]),Y.useEffect(()=>{const b=f.watch((A,{name:g})=>{g!=null&&A!=null&&on(()=>Ze(g,A))});return()=>{b.unsubscribe()}});const Me=()=>n.fetchState==="Completed"&&(n.accountMappingLocalData?.selectedExpenseAccountId!==n.accountMappingLocalData?.previousExpenseAccount?.accountId||n.accountMappingLocalData?.selectedIncomeAccountId!==n.accountMappingLocalData?.previousIncomeAccount?.accountId||n.accountMappingLocalData?.selectedBillPayAccountId!==n.accountMappingLocalData?.previousBillPayAccount?.accountId||n.accountMappingLocalData?.selectedReimbursementsAccountId!==n.accountMappingLocalData?.previousReimbursementsAccount?.accountId||Z(n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds,n.accountMappingLocalData?.previousPrepaidExpensesAccount)||Z(n.accountMappingLocalData?.selectedFixedAssetsAccountIds,n.accountMappingLocalData?.previousFixedAssetsAccount)||Z(n.accountMappingLocalData?.selectedAccruedExpensesAccountIds,n.accountMappingLocalData?.previousAccruedExpensesAccount)||Z(n.accountMappingLocalData?.selectedBankAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousBankAccounts1099FilingAccount)||xn(n.accountMappingLocalData?.selectedExpenseAccounts1099FilingAccountIds,n.accountMappingLocalData?.previousExpenseAccounts1099FilingAccount)),Ye=n.fetchState!=="Completed",Xe={onOkClick:()=>{v(!1),R?.(),f.reset()},onCancelClick:()=>{v(!1)}};return t.jsxs(ot,{ref:E,children:[t.jsx(cn,{title:c?m.settings.title.accounting:_.title,onBackClick:R,backgroundColor:O.colors.grey4,showBackButton:!c,showMenuIcon:c?$==="medium-compact"||$==="small":!1,onClickMenuIcon:k,source:"UncategorizedAccountsMappingPage"}),d===!0?t.jsx(sn,{titleComponent:t.jsx(ln,{children:m.confirmationPopup.discardTitle}),descriptionComponent:t.jsx(an,{children:m.confirmationPopup.discardDescription}),primaryButtonText:m.confirmationPopup.discard,secondaryButtonText:m.confirmationPopup.cancel,action:Xe,proceedButtonVariant:"danger"}):null,t.jsxs(it,{windowSize:$,children:[t.jsx(at,{windowSize:$,children:_.subTitle}),Ye===!1?t.jsx(dn,{...f,children:t.jsx("form",{id:Fe(De),onSubmit:Qe,children:t.jsxs(ct,{windowSize:$,children:[Te(S.loggedInUserRole??[])?t.jsx(tt,{sectionId:W,containerRef:E.current,accountMappingView:n}):null,bn(e,S.loggedInUserRoleMap)?t.jsx(kn,{sectionId:ee,containerRef:E.current,accountMappingView:n}):null,fn(e,S.loggedInUserRoleMap)?t.jsx(qn,{sectionId:ne,containerRef:E.current,accountMappingView:n}):null,Te(S.loggedInUserRole??[])?t.jsx(yn,{sectionId:Ne,vendorAccountMappingSection:{accruedExpensesAccountHierarchy:n.accruedExpensesAccountHierarchy,accruedExpensesAccountList:n.accruedExpensesAccountList,accruedExpensesRecommendations:n.accruedExpensesRecommendation,fixedAssetsAccountHierarchy:n.fixedAssetsAccountHierarchy,fixedAssetsAccountList:n.fixedAssetsAccountList,fixedAssetsRecommendations:n.fixedAssetsRecommendation,prepaidExpensesAccountHierarchy:n.prepaidExpensesAccountHierarchy,prepaidExpensesAccountList:n.prepaidExpensesAccountList,prepaidExpensesRecommendations:n.prepaidExpensesRecommendation,selectedAccruedExpensesAccountIds:n.accountMappingLocalData?.selectedAccruedExpensesAccountIds??[],selectedFixedAssetsAccountIds:n.accountMappingLocalData?.selectedFixedAssetsAccountIds??[],selectedPrepaidExpensesAccountIds:n.accountMappingLocalData?.selectedPrepaidExpensesAccountIds??[]},isAccruedExpensesFeatureEnabled:l}):null,o&&wn(S.loggedInUserRoleMap)?t.jsx(rn,{sectionId:x,accountMappingView:n,containerRef:E.current,isSettingsPage:!0}):null]})})}):t.jsx(st,{children:t.jsx(un,{size:"ExtraLarge",start:!0})})]}),Me()===!0?t.jsx(pn,{formId:Fe(De),primaryBtn:{label:m.footer.save,style:{width:"82px"},isLoading:n.saveState.fetchState==="In-Progress",isDisabled:n.saveState.fetchState==="In-Progress"},cancelBtn:{label:m.footer.cancel,style:{width:"82px"},shouldResetOnCancel:!0,onClick:()=>{v(!0)}}}):null,c?null:t.jsx(mn,{isFooterRendered:Me(),meetingUrl:p})]})}const Fe=e=>`${e}_form`,Be=(e,n,o,l,p,c,M,z,R,k,O,$,S)=>{const{accountMappingLocalData:d,incomeRecommendation:v,expenseRecommendation:h,billPayRecommendation:E,reimbursementsRecommendation:F}=e,B=d?.selectedIncomeAccountId===v?.account?.accountId,V=d?.selectedExpenseAccountId===h?.account?.accountId,y=d?.selectedBillPayAccountId===E?.account?.accountId,se=d?.selectedReimbursementsAccountId===F?.account?.accountId,ae=d?.selectedIncomeAccountId!=null?e.incomeAccountList.find(i=>i.accountId===d.selectedIncomeAccountId):void 0,le=d?.selectedExpenseAccountId!=null?e.expenseAccountList.find(i=>i.accountId===d.selectedExpenseAccountId):void 0,de=d?.selectedBillPayAccountId!=null?e.billPayAccountList.find(i=>i.accountId===d.selectedBillPayAccountId):void 0,re=d?.selectedReimbursementsAccountId!=null?e.reimbursementsAccountList.find(i=>i.accountId===d.selectedReimbursementsAccountId):void 0,ue=d?.selectedPrepaidExpensesAccountIds!=null?e.prepaidExpensesAccountList.filter(i=>d.selectedPrepaidExpensesAccountIds.includes(i.accountId)):[],pe=d?.selectedFixedAssetsAccountIds!=null?e.fixedAssetsAccountList.filter(i=>d.selectedFixedAssetsAccountIds.includes(i.accountId)):[],me=d?.selectedAccruedExpensesAccountIds!=null?e.accruedExpensesAccountList.filter(i=>d.selectedAccruedExpensesAccountIds.includes(i.accountId)):[],ge=d?.selectedBankAccounts1099FilingAccountIds!=null?e.bankAccounts1099FilingAccountList.filter(i=>d.selectedBankAccounts1099FilingAccountIds.includes(i.accountId)):[],xe=d?.selectedExpenseAccounts1099FilingAccountIds!=null?d.selectedExpenseAccounts1099FilingAccountIds.map(i=>({accountId:i.accountId??m.strings.empty,tax1099Config:{expenseType1099:i.expenseType??m.strings.empty,type1099:i.type1099??m.strings.empty,boxType:i.boxType??m.strings.empty}})):[];return{[x]:{bankAccount:{selectedOptions:ge.map(i=>i.qboId).filter(i=>i!=null),allOptions:R},expenseCategory1099:xe.map(i=>({accountId:{selectedOption:e.expenseAccounts1099FilingAccountList.find(N=>N.accountId===i.accountId)?.qboId??m.strings.empty,allOptions:k},expenseType:{selectedOption:i?.tax1099Config?.expenseType1099??m.strings.empty,allOptions:O},type1099:{selectedOption:i?.tax1099Config?.type1099??m.strings.empty,allOptions:$},boxType:{selectedOption:i?.tax1099Config?.boxType??m.strings.empty,allOptions:_e(i?.tax1099Config?.type1099??m.strings.empty,S)}}))},[W]:{incomeAccount:{selectedOption:ae?.qboId,allOptions:n},isRecommendedIncomeAccountChecked:B,expenseAccount:{selectedOption:le?.qboId,allOptions:o},isRecommendedExpenseAccountChecked:V},[ee]:{billPayAccount:{selectedOption:de?.qboId,allOptions:l},isRecommendedBillPayAccountChecked:y},[ne]:{reimbursementsAccount:{selectedOption:re?.qboId,allOptions:p},isRecommendedReimbursementsAccountChecked:se},[Ne]:{prepaidExpensesAccount:{selectedOptions:ue.map(i=>i.qboId).filter(i=>i!=null),allOptions:c},fixedAssetsAccount:{selectedOptions:pe.map(i=>i.qboId).filter(i=>i!=null),allOptions:M},accruedExpensesAccount:{selectedOptions:me.map(i=>i.qboId).filter(i=>i!=null),allOptions:z}}}};export{yt as default};
@@ -1,4 +1,4 @@
1
- import{aR as b,V as t,hZ as _,h_ as W,J as T,F,cq as L,ae as C,cr as U,cs as N,a9 as R,ac as M,cP as H,cL as O,y as g,cM as G,p as z,ao as J,T as K,i as Z,o as i,al as Q,u as D,aq as X,bb as Y}from"./index-GSKpJ8ET.js";import{a as l}from"./sentry-BZBky1_g.js";import{n as f}from"./mui-DenpH-hx.js";import{bL as ee,bh as te}from"./zeni-epic-state-BKgIzPpM.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.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]="67370391-29ca-4696-a671-dc117381ae0c",e._sentryDebugIdIdentifier="sentry-dbid-67370391-29ca-4696-a671-dc117381ae0c")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(D[3],D[2]),width:new g(300,420,420)},ie=f.div`
1
+ import{aR as b,V as t,hZ as _,h_ as W,J as T,F,cq as L,ae as C,cr as U,cs as N,a9 as R,ac as M,cP as H,cL as O,y as g,cM as G,p as z,ao as J,T as K,i as Z,o as i,al as Q,u as D,aq as X,bb as Y}from"./index-Dm-b67Hf.js";import{a as l}from"./sentry-C2Rgx3zV.js";import{n as f}from"./mui-BLkKBV85.js";import{bL as ee,bh as te}from"./zeni-epic-state-TdgpFmku.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.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]="67370391-29ca-4696-a671-dc117381ae0c",e._sentryDebugIdIdentifier="sentry-dbid-67370391-29ca-4696-a671-dc117381ae0c")}catch{}})();const V={labelWidth:new g(152,176,176),smallLabelWidth:new g(92,110,110),paddingBottom:new g(D[3],D[2]),width:new g(300,420,420)},ie=f.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  background-color: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{a9 as k,fz as b,aR as U,J as A,F as M,cG as Q,V as i,ac as W,aQ as q,fA as G,o as a,p as H,cQ as J,aS as K,y as x,c as X,R as Y,bb as Z,ba as ee,u as c}from"./index-GSKpJ8ET.js";import{a as f}from"./sentry-BZBky1_g.js";import{n as o}from"./mui-DenpH-hx.js";import{ER as te}from"./zeni-epic-state-BKgIzPpM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="19989f85-484d-45a7-9e2a-2654ac3110dc",e._sentryDebugIdIdentifier="sentry-dbid-19989f85-484d-45a7-9e2a-2654ac3110dc")}catch{}})();const F={marginRight:new x(c[3],c[8]),marginLeft:new x(c[3],c[8]),height:new x(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function pe(e){const{filesEndPoint:m,authParams:S,companyOfficer:t,updateStatus:p,onClose:$,onEditFileName:I,onDeleteFile:E,updateFilesEntity:v,onSendForVerificationClick:P,onCompanyOfficerUpdated:z}=e,n=k({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[C,w]=f.useState(!1),[T,N]=f.useState(!1),j=U(p.fetchState),D=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},V=Object.values(D??{}).filter(l=>l!=null),B=te(V);f.useEffect(()=>{j==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[j,p,n,t?.additionalFiles]);const r=A(),y=M.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,R=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,L=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),_=async(l,h)=>{const d=h[u].front;l.includes("front")&&d?.fileId!=null?(z?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const l=n.watch((h,{name:d})=>{d!=null&&h!=null&&Q(()=>_(d,h))});return()=>{l.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:L,children:[i.jsxs(re,{size:r,children:[i.jsx(le,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":q("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(oe,{children:i.jsx(se,{children:R})}),i.jsx(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:J,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${H.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:b(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:D,updateFileStatusById:O,filesEndPoint:m,authParams:S,hasError:T,onEditFileName:I,onDeleteFile:E,updateFilesEntity:v,onFileSizeError:l=>N(l),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),C?i.jsx(K,{formId:u,primaryBtn:{label:y.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:p.fetchState==="In-Progress"},cancelBtn:{label:y.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=o(Y)`
1
+ import{a9 as k,fz as b,aR as U,J as A,F as M,cG as Q,V as i,ac as W,aQ as q,fA as G,o as a,p as H,cQ as J,aS as K,y as x,c as X,R as Y,bb as Z,ba as ee,u as c}from"./index-Dm-b67Hf.js";import{a as f}from"./sentry-C2Rgx3zV.js";import{n as o}from"./mui-BLkKBV85.js";import{ER as te}from"./zeni-epic-state-TdgpFmku.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},m=new e.Error().stack;m&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[m]="19989f85-484d-45a7-9e2a-2654ac3110dc",e._sentryDebugIdIdentifier="sentry-dbid-19989f85-484d-45a7-9e2a-2654ac3110dc")}catch{}})();const F={marginRight:new x(c[3],c[8]),marginLeft:new x(c[3],c[8]),height:new x(c[5],62)},u="additionalDocumentsForm",s="ssnCard";function pe(e){const{filesEndPoint:m,authParams:S,companyOfficer:t,updateStatus:p,onClose:$,onEditFileName:I,onDeleteFile:E,updateFilesEntity:v,onSendForVerificationClick:P,onCompanyOfficerUpdated:z}=e,n=k({mode:"all",reValidateMode:"onChange",defaultValues:f.useMemo(()=>({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}}),[t?.additionalFiles])}),[C,w]=f.useState(!1),[T,N]=f.useState(!1),j=U(p.fetchState),D=t?.deleteFileStatusById??{},O=t?.updateFileStatusById??{},V=Object.values(D??{}).filter(l=>l!=null),B=te(V);f.useEffect(()=>{j==="In-Progress"&&p.fetchState==="Completed"&&n.reset({additionalDocumentsForm:{selectDocumentType:s,front:b(!0,t?.additionalFiles??[],s)}})},[j,p,n,t?.additionalFiles]);const r=A(),y=M.getLocalizedStrings().commonSetUp.businessVerification,{additionalDocumentsOverlay:g}=y,R=`${g.officerInfoLabel} ${t?.firstName??""} ${t?.lastName??""}`,L=n.handleSubmit(()=>{B.fetchState!=="In-Progress"&&P?.(t?.officerType??"Officer_1")}),_=async(l,h)=>{const d=h[u].front;l.includes("front")&&d?.fileId!=null?(z?.(t?.officerType??"Officer_1",[d?.fileId]),w(!0)):w(!1)};return f.useEffect(()=>{const l=n.watch((h,{name:d})=>{d!=null&&h!=null&&Q(()=>_(d,h))});return()=>{l.unsubscribe()}}),i.jsx(W,{...n,children:i.jsxs("form",{id:u,onSubmit:L,children:[i.jsxs(re,{size:r,children:[i.jsx(le,{size:r,children:i.jsx(ne,{size:r,onClick:$,"data-testid":q("upload-additional-documents-close",u)})}),i.jsxs(de,{children:[i.jsx(ie,{children:g.title[s]}),i.jsx(ae,{children:g.description[s]})]}),i.jsx(oe,{children:i.jsx(se,{children:R})}),i.jsx(G,{name:u,allFiles:t?.additionalFiles??[],label:{width:276},sizeLimit:J,style:{width:"100%",borderRadius:a.sp2,boxShadow:`${a.sp0} 1px 2px ${a.sp0} ${H.boxShadowElevation}`},isDocumentSelectDisabled:!0,defaultValue:{defaultSelectDocumentType:s,allSelectDocumentType:[s],files:{front:b(!0,t?.additionalFiles??[],s)}},acceptableTypes:["image/jpg","image/jpeg","image/png","image/heic","image/heif"],officerIndex:0,deleteFileStatusById:D,updateFileStatusById:O,filesEndPoint:m,authParams:S,hasError:T,onEditFileName:I,onDeleteFile:E,updateFilesEntity:v,onFileSizeError:l=>N(l),registerOptions:{required:!0},companyOfficerName:{firstName:t?.firstName??"",lastName:t?.lastName??""},showWebCamPopUpCloseIcon:!1})]}),C?i.jsx(K,{formId:u,primaryBtn:{label:y.sendForVerificationButton,style:{width:"auto",minWidth:r==="small"?"auto":"181px"},isLoading:p.fetchState==="In-Progress"},cancelBtn:{label:y.cancel,style:{width:r==="small"?"auto":"181px"},onClick:$},style:{position:"absolute",width:"100%"}}):null]})})}const ie=o(Y)`
2
2
  margin-top: 19px;
3
3
  color: ${e=>e.theme.colors.primary};
4
4
  margin-bottom: ${a.sp2};
@@ -1 +1 @@
1
- import{aR as i,F as w,V as r,hZ as v,h_ as x}from"./index-GSKpJ8ET.js";import{a as o}from"./sentry-BZBky1_g.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./zeni-epic-state-BKgIzPpM.js";import"./mui-DenpH-hx.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.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]="561ed0ff-7bbf-473b-9ba9-d747844c4c55",t._sentryDebugIdIdentifier="sentry-dbid-561ed0ff-7bbf-473b-9ba9-d747844c4c55")}catch{}})();const B=({vendorViewDetails:t,isExpressPayPage:s,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:g,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:b,newVendorState:m}=t,f=Object.assign({},b??m),[V,n]=o.useState(!1),[y,a]=o.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return o.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&a(!0)},[f,e,u]),o.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(n(!1),c())},[e.userVerificationStatus]),o.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),o.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(n(!0),a(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(v,{showHelperText:!s,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:g,onCancelClick:()=>n(!1),onResendOtp:h,onEditButtonClick:()=>{a(!0),n(!1)}}}):y===!0?r.jsx(x,{showHelperText:!s,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:s?O:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{B as default};
1
+ import{aR as i,F as w,V as r,hZ as v,h_ as x}from"./index-Dm-b67Hf.js";import{a as o}from"./sentry-C2Rgx3zV.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./mui-BLkKBV85.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.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]="561ed0ff-7bbf-473b-9ba9-d747844c4c55",t._sentryDebugIdIdentifier="sentry-dbid-561ed0ff-7bbf-473b-9ba9-d747844c4c55")}catch{}})();const B=({vendorViewDetails:t,isExpressPayPage:s,onSaveVendor:c,onGetOtp:S,onResendOtp:h,onVerifyOtp:g,onVerifyOtpSuccess:p})=>{const{loggedInUserVerification:e,editVendorState:b,newVendorState:m}=t,f=Object.assign({},b??m),[V,n]=o.useState(!1),[y,a]=o.useState(e.initiateVerification===!0),u=i(f?.saveStatus?.fetchState),C=i(e.userVerificationStatus.fetchState),d=i(e.otpVerificationStatus?.fetchState),l=i(e.sendOtpStatus.fetchState),O=w.getLocalizedStrings().spendManagement.zeniAccounts.expressPay.phoneNumberPopup;return o.useEffect(()=>{u==="In-Progress"&&f?.saveStatus?.fetchState==="Error"&&e.initiateVerification===!0&&a(!0)},[f,e,u]),o.useEffect(()=>{C==="In-Progress"&&e.userVerificationStatus.fetchState==="Completed"&&(n(!1),c())},[e.userVerificationStatus]),o.useEffect(()=>{d==="In-Progress"&&e.otpVerificationStatus?.fetchState==="Completed"&&p?.(e.userId??"",e.phone??"",e.otpChallenge??"")},[d,e,p]),o.useEffect(()=>{l==="In-Progress"&&e.sendOtpStatus.fetchState==="Completed"&&(n(!0),a(!1))},[l,e.sendOtpStatus.fetchState]),r.jsx(r.Fragment,{children:V===!0?r.jsx(v,{showHelperText:!s,verifyOtpFetchState:e.otpVerificationStatus.fetchState,phoneNumber:e.phone??"",otpChallenge:e.otpChallenge,action:{onVerifyClick:g,onCancelClick:()=>n(!1),onResendOtp:h,onEditButtonClick:()=>{a(!0),n(!1)}}}):y===!0?r.jsx(x,{showHelperText:!s,phoneNumber:e.phone??"",sendOtpFetchState:e.sendOtpStatus.fetchState,description:s?O:void 0,action:{onCancelClick:()=>a(!1),onGetCodeClick:I=>S?.(I)}}):null})};export{B as default};
@@ -0,0 +1 @@
1
+ import{V as f}from"./index-Dm-b67Hf.js";import{a as b}from"./sentry-C2Rgx3zV.js";import{f as m}from"./ACHDetailsPage-49jTvZnX-Be-zaLi0.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./mui-BLkKBV85.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./BankAccountWarningSection-l79_AN7P-wzRxiGEn.js";import"./MagicLinkTitleSection-ygghGjqi-CPCSmIlY.js";import"./BankAccountSection-DGuhn7CN-DmUf2oBe.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="599616e7-b49f-48ee-9b6e-c65650b5d02b",e._sentryDebugIdIdentifier="sentry-dbid-599616e7-b49f-48ee-9b6e-c65650b5d02b")}catch{}})();const I=({vendorViewDetails:e,bankAccountContext:t,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:o,onFetchBankName:s})=>{const{bankAccountCreationState:a,bankNameByRouting:d,bankAccountToCreate:c,fetchBankNameByRoutingStatus:p}=e;return b.useEffect(()=>{(t==="vendor"&&a?.fetchState==="Completed"||e.editVendorState?.saveStatus.fetchState==="Completed"&&t!=="express-pay")&&o()},[a,e.editVendorState?.saveStatus.fetchState,t,o]),f.jsx(m,{bankAccountToCreate:c,bankAccountCreationState:a,bankNameByRouting:d,fetchBankNameByRoutingStatus:p,isDisabled:n,onSaveHandler:i,onACHDetailsUpdated:r,onBackClick:o,onFetchBankName:s})};export{I as default};
@@ -1,4 +1,4 @@
1
- import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as $t,cG as St,V as t,bC as Dt,ac as jt,hd as Tt,he as ye,u as l,cH as Lt,aS as Vt,bD as kt,F as W,hf as Ue,hg as qe,hh as Qe,o,bQ as S,cT as It,gN as $e,hi as Ot,cJ as Pt,cK as Mt,cL as zt,hj as Ft,ge as _t,cR as Nt,hk as Wt,hl as Ht,p as N,b8 as Ye,ai as Ge,dw as Rt,b0 as Bt,hm as At,hn as Et,al as Ut,dv as qt,du as Qt,d3 as Yt,aZ as pe,ho as Gt,cj as Je,hp as Jt,N as Se,a as Ke}from"./index-GSKpJ8ET.js";import{a as $}from"./sentry-BZBky1_g.js";import{n as a,c as Kt}from"./mui-DenpH-hx.js";import{bi as De,FU as Xt,FV as Zt}from"./zeni-epic-state-BKgIzPpM.js";import{k as es}from"./SubTabSwitcher-aeDd9xiF-D4uOjs0t.js";import{T as ts}from"./TransactionList-BruCNjQg-CPy3bOrg.js";import{R as ss}from"./TrendWithTransactions-DDLrmIrt-D7YkaYJE.js";import{o as os,t as as}from"./arrow-south-east-round-PEovUgvH-6_ok8u4n.js";import{C as ns}from"./LabeledAddressValueField-DMcor_I8-C6G1J4Y2.js";import{Y as ls}from"./LabeledDropDownFormattedTextField-BBS4da2b-Pp7kOChU.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";import"./ConstrainedInnerElement-BeIpAPjB-BElBEfq9.js";import"./BoxItem-CYe_gTmA-3TpRGAgq.js";import"./commonDimensions-YcBBlmYP-HRUAmifl.js";import"./panelSelectedMixin-CzfD5-Zs-Z09J1JBQ.js";import"./TrendChart-BMHDaOeh-DUFeSEwp.js";import"./chartTypes-B3501CSI-Eia1dEGg.js";import"./toCOABalancesWithID-D35Fk0m2-dL9iDsOU.js";import"./toChartData-DzatRnt8-Cq2-M4CL.js";import"./NoDataChart-Bvetk9za-Dz6Kgiua.js";import"./InsightsSection-BYiN2xB7-Tq3IZNKc.js";import"./NavigationDots-tWCw6Bpk-Mo0z1mhF.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]="b3cc5478-bf70-4951-8337-d483675725ba",e._sentryDebugIdIdentifier="sentry-dbid-b3cc5478-bf70-4951-8337-d483675725ba")}catch{}})();const is=a.div`
1
+ import{e as Ee,J as ae,y as g,aE as we,cI as ft,a9 as wt,hb as Ce,hc as Ct,aW as $t,cG as St,V as t,bC as Dt,ac as jt,hd as Tt,he as ye,u as l,cH as Lt,aS as Vt,bD as kt,F as W,hf as Ue,hg as qe,hh as Qe,o,bQ as S,cT as It,gN as $e,hi as Ot,cJ as Pt,cK as Mt,cL as zt,hj as Ft,ge as _t,cR as Nt,hk as Wt,hl as Ht,p as N,b8 as Ye,ai as Ge,dw as Rt,b0 as Bt,hm as At,hn as Et,al as Ut,dv as qt,du as Qt,d3 as Yt,aZ as pe,ho as Gt,cj as Je,hp as Jt,N as Se,a as Ke}from"./index-Dm-b67Hf.js";import{a as $}from"./sentry-C2Rgx3zV.js";import{n as a,c as Kt}from"./mui-BLkKBV85.js";import{bi as De,FU as Xt,FV as Zt}from"./zeni-epic-state-TdgpFmku.js";import{k as es}from"./SubTabSwitcher-Dgwgj3Si-U0zspkd_.js";import{T as ts}from"./TransactionList-CvRmT2Lq-C1JZRVpn.js";import{R as ss}from"./TrendWithTransactions-BJnpKKqL-DKCgJJvT.js";import{o as os,t as as}from"./arrow-south-east-round-PEovUgvH-K7zlCGlW.js";import{C as ns}from"./LabeledAddressValueField-Ckm80g0_-fddiRWcN.js";import{Y as ls}from"./LabeledDropDownFormattedTextField-BZu90SFF-CT4k7JQd.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./ConstrainedInnerElement-BeIpAPjB-DchKqY-F.js";import"./BoxItem-COPJh7Lh-BtEwjrhv.js";import"./commonDimensions-aMGDpjmW-UhXAGxHS.js";import"./panelSelectedMixin-CzfD5-Zs-CBMeGjo8.js";import"./TrendChart-DwYxYNR7-JcI7qpjF.js";import"./chartTypes-zuOlWPZo-CqRIct--.js";import"./toCOABalancesWithID-DUpgxtrc-n-6zkqkw.js";import"./toChartData-BNPIbcXQ-DT2tu_Ad.js";import"./NoDataChart-Bd0aKX8D-BMtoTVvu.js";import"./InsightsSection-0ekovQH4-BlPNJh_U.js";import"./NavigationDots--7KEcIuu-eftMXpdw.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]="905c6ee2-ec5e-430a-86ad-d274c2063b19",e._sentryDebugIdIdentifier="sentry-dbid-905c6ee2-ec5e-430a-86ad-d274c2063b19")}catch{}})();const is=a.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  justify-content: center;
@@ -0,0 +1 @@
1
+ import{V as b}from"./index-Dm-b67Hf.js";import{a as k}from"./sentry-C2Rgx3zV.js";import{D as y}from"./DomesticWireDetailsPage-t6W8wYH8-BW3aYQzE.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./mui-BLkKBV85.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./BankAccountSection-DGuhn7CN-DmUf2oBe.js";import"./MagicLinkTitleSection-ygghGjqi-CPCSmIlY.js";import"./BankAccountWarningSection-l79_AN7P-wzRxiGEn.js";import"./MailingDetailsSection-DtuTgXeV-BAt57tta.js";import"./LabeledAddressValueField-Ckm80g0_-fddiRWcN.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="893d33a0-665b-480d-9c02-a15754816cc7",e._sentryDebugIdIdentifier="sentry-dbid-893d33a0-665b-480d-9c02-a15754816cc7")}catch{}})();const j=({vendorViewDetails:e,bankAccountContext:t,isDisabled:r,onSaveHandler:d,onWireDetailsUpdated:s,onBackClick:o,onFetchBankName:i,onAddressClick:c})=>{const{bankAccountCreationState:n,editVendorState:p,newVendorState:m,bankNameByRouting:u,bankAccountToCreate:l,fetchBankNameByRoutingStatus:f}=e,a=Object.assign({},p??m);return k.useEffect(()=>{(t==="vendor"&&n?.fetchState==="Completed"||a?.saveStatus?.fetchState==="Completed"&&t!=="express-pay")&&o()},[n,a?.saveStatus?.fetchState,o,t]),b.jsx(y,{bankAccountToCreate:l,bankAccountCreationState:n,bankNameByRouting:u,addressToEdit:a?.vendorNewAddressStatus?.addressToCreate,mailingAddress:a?.vendorAddress,addressType:"vendor_address",fetchBankNameByRoutingStatus:f,isDisabled:r,onSaveHandler:d,onWireDetailsUpdated:s,onBackClick:o,onAddressClick:c,onFetchBankName:i})};export{j as default};
@@ -1,4 +1,4 @@
1
- import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as qe,cJ as C,o as s,cN as Oe,hj as We,ge as Re,cR as Me,hk as He,hl as Ke,cZ as Qe,aS as Ue,F as ne,e_ as Q,hq as de,c$ as _e,e$ as Ge,u as c,c as Ze,bQ as I,cE as Je,hr as Ye,p as F,q as Xe,cj as et,al as ce,eL as tt,hs as st,ht as lt,hu as M,f0 as it}from"./index-GSKpJ8ET.js";import{a as x}from"./sentry-BZBky1_g.js";import{n as o}from"./mui-DenpH-hx.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-BBS4da2b-Pp7kOChU.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./zeni-epic-state-BKgIzPpM.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.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]="ebe7c6ae-cf51-49f8-9b9c-359920f82d0f",e._sentryDebugIdIdentifier="sentry-dbid-ebe7c6ae-cf51-49f8-9b9c-359920f82d0f")}catch{}})();const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function ot(e){const{loadingState:i}=e;return t.jsx(at,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function at({googleAPIKey:e,addressToEdit:i,sectionId:a,isDisabled:g,style:O}){const E=ae(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:g,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(a,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:g,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(a,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:g,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:g,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(a,"country"),placeholder:u.address.countryPlaceholder,defaultValue:Q(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(a,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=o.div`
1
+ import{J as ae,e as ze,a9 as Ae,cG as ke,y as w,V as t,bD as Be,aQ as Ee,ac as qe,cJ as C,o as s,cN as Oe,hj as We,ge as Re,cR as Me,hk as He,hl as Ke,cZ as Qe,aS as Ue,F as ne,e_ as Q,hq as de,c$ as _e,e$ as Ge,u as c,c as Ze,bQ as I,cE as Je,hr as Ye,p as F,q as Xe,cj as et,al as ce,eL as tt,hs as st,ht as lt,hu as M,f0 as it}from"./index-Dm-b67Hf.js";import{a as x}from"./sentry-C2Rgx3zV.js";import{n as o}from"./mui-BLkKBV85.js";import{Y as rt}from"./LabeledDropDownFormattedTextField-BZu90SFF-CT4k7JQd.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.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]="70b5bd7c-4cd3-4e0d-ab36-995f37b08461",e._sentryDebugIdIdentifier="sentry-dbid-70b5bd7c-4cd3-4e0d-ab36-995f37b08461")}catch{}})();const te={largeLabelWidth:new w(160,210,230),paddingBottom:new w(c[3],c[2])},j=(e,i)=>`${e}.${i}`;function ot(e){const{loadingState:i}=e;return t.jsx(at,{...e,isDisabled:e.isDisabled||i==="In-Progress"?"disabled":void 0})}function at({googleAPIKey:e,addressToEdit:i,sectionId:a,isDisabled:g,style:O}){const E=ae(),u=ne.getLocalizedStrings().companyPassport,p=te.largeLabelWidth.value(E);return t.jsxs(t.Fragment,{children:[t.jsx(se,{type:"hidden",value:"noAutoFill"}),t.jsx(nt,{style:O,children:t.jsxs(dt,{children:[t.jsx(st,{isDisabled:g,label:{label:u.address.street,width:p,showBullet:!0},addressField:{name:j(a,"street"),defaultValue:{addressString:i?.street[0]??"",addressValue:i!=null?de(i):void 0},placeholder:M(u.address.street),registerOptions:{required:!0,validate:v=>v!=null?!!v.addressString:!1},autoComplete:"new-password",googleAPIKey:e,addressFormatter:lt},style:{border:"none",width:"100%",outline:"none"}}),t.jsx(C,{isDisabled:g,label:{label:u.address.suite,width:p,showBullet:!0},style:{wordBreak:"break-word",width:"100%",outline:"none"},text:{type:"text",name:j(a,"suite"),defaultValue:i?.street[1],placeholder:u.address.suitePlaceholder,autoComplete:"new-password"}}),t.jsx(C,{isDisabled:g,label:{label:u.address.city,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"city"),defaultValue:i?.city,placeholder:M(u.address.city),autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.state,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"state"),defaultValue:i?.state,placeholder:M(u.address.state),autoComplete:"new-password",options:{required:!0}}}),t.jsx(se,{readOnly:!0,value:"noAutoFill"}),t.jsx(it,{isDisabled:g,label:{label:u.address.country,width:p,showBullet:!0},style:{width:"100%",outline:"none"},countrySelectField:{name:j(a,"country"),placeholder:u.address.countryPlaceholder,defaultValue:Q(i?.country),registerOptions:{validate:v=>!!(v!=null&&v.selectedOption)}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.zipCode,width:p,showBullet:!0},style:{width:"100%",outline:"none"},text:{type:"text",name:j(a,"postalCode"),defaultValue:i?.postalCode,placeholder:u.address.zipCodePlaceHolder,autoComplete:"new-password",options:{required:!0}}}),t.jsx(C,{isDisabled:g,label:{label:u.address.secondaryInfo,width:p,showBullet:!0},style:{paddingBottom:te.paddingBottom.valuePx(E),width:"100%",outline:"none"},text:{type:"text",name:j(a,"secondaryInfo"),defaultValue:i?.street[2],placeholder:u.address.secondaryInfoPlaceholder,autoComplete:"new-password"}})]})})]})}const nt=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  margin-left: ${s.sp3};
@@ -1,4 +1,4 @@
1
- import{J as ae,aw as Nn,e as mn,a9 as et,i9 as Te,cG as nt,ay as On,ia as re,ib as ve,ic as fe,id as be,ie as me,V as n,i4 as tt,ac as ot,bD as it,aa as rt,cq as st,cr as at,cs as lt,bW as dt,bP as ct,aQ as J,cn as mt,b4 as pt,dq as ut,cu as ht,T as gt,F as je,y as w,x as Ne,o as t,aV as In,al as De,aU as wt,u as c,ai as Re,cA as xt,dv as Pn,bQ as Pe,bi as Tn,cD as vt,c0 as ft,dI as bt,bb as Je,bu as pn,p as B,h as zn,h1 as $t,dl as wn,d3 as rn,ig as sn,ao as St,bU as Be,dS as yt,eA as xn,bL as jt,dx as Rt,i as vn,cx as Vt,ih as Ct,ii as kt,cT as Mt,c$ as Nt,d0 as Ot,eF as It,am as Dn,ij as Pt,bJ as se,ik as fn,gP as Tt,at as zt,as as Dt,dw as _t,b as _n,N as Lt,l as Ft,aX as dn}from"./index-GSKpJ8ET.js";import{a as f}from"./sentry-BZBky1_g.js";import{n as o,c as cn}from"./mui-DenpH-hx.js";import{gu as At,G0 as Bt}from"./zeni-epic-state-BKgIzPpM.js";import{r as Et}from"./core-CEu4PzGb.js";import"./liveblocks-D1OOExFG.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.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]="d7e82bbd-ac93-423f-a291-659ec16f9e0d",e._sentryDebugIdIdentifier="sentry-dbid-d7e82bbd-ac93-423f-a291-659ec16f9e0d")}catch{}})();const Ln=({steps:e})=>{const s=ae();return n.jsx(Wt,{windowSize:s,children:e.map((m,d)=>n.jsxs(Ut,{children:[n.jsx(Gt,{children:d!==e.length-1?d+1:n.jsx(Qt,{})}),n.jsx(Ht,{children:m}),d<e.length-1?n.jsx(qt,{}):null]},`step_${d}`))})},Ut=o.div`
1
+ import{J as ae,aw as Nn,e as mn,a9 as et,i9 as Te,cG as nt,ay as On,ia as re,ib as ve,ic as fe,id as be,ie as me,V as n,i4 as tt,ac as ot,bD as it,aa as rt,cq as st,cr as at,cs as lt,bW as dt,bP as ct,aQ as J,cn as mt,b4 as pt,dq as ut,cu as ht,T as gt,F as je,y as w,x as Ne,o as t,aV as In,al as De,aU as wt,u as c,ai as Re,cA as xt,dv as Pn,bQ as Pe,bi as Tn,cD as vt,c0 as ft,dI as bt,bb as Je,bu as pn,p as B,h as zn,h1 as $t,dl as wn,d3 as rn,ig as sn,ao as St,bU as Be,dS as yt,eA as xn,bL as jt,dx as Rt,i as vn,cx as Vt,ih as Ct,ii as kt,cT as Mt,c$ as Nt,d0 as Ot,eF as It,am as Dn,ij as Pt,bJ as se,ik as fn,gP as Tt,at as zt,as as Dt,dw as _t,b as _n,N as Lt,l as Ft,aX as dn}from"./index-Dm-b67Hf.js";import{a as f}from"./sentry-C2Rgx3zV.js";import{n as o,c as cn}from"./mui-BLkKBV85.js";import{gu as At,G0 as Bt}from"./zeni-epic-state-TdgpFmku.js";import{r as Et}from"./core-DjXOmtSJ.js";import"./liveblocks-EGukjQZF.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.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]="d7e82bbd-ac93-423f-a291-659ec16f9e0d",e._sentryDebugIdIdentifier="sentry-dbid-d7e82bbd-ac93-423f-a291-659ec16f9e0d")}catch{}})();const Ln=({steps:e})=>{const s=ae();return n.jsx(Wt,{windowSize:s,children:e.map((m,d)=>n.jsxs(Ut,{children:[n.jsx(Gt,{children:d!==e.length-1?d+1:n.jsx(Qt,{})}),n.jsx(Ht,{children:m}),d<e.length-1?n.jsx(qt,{}):null]},`step_${d}`))})},Ut=o.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac as ve,aS as we,y as p,e_ as le,e$ as Ce,o as y,ba as $e,cT as oe,e as ne,f0 as De,f1 as Z,cZ as G,b2 as H,cJ as Te,es as je,u as a,c$ as ke,aQ as Se,p as V,N as Oe,T as Fe,bU as Ae,ai as Le,bL as Ie}from"./index-GSKpJ8ET.js";import{a as R}from"./sentry-BZBky1_g.js";import{n as g}from"./mui-DenpH-hx.js";import{bi as K}from"./zeni-epic-state-BKgIzPpM.js";import{W as We,A as ze}from"./BankAccountWarningSection-CaDnP9_--B_s5lRpF.js";import{T as Re}from"./MailingDetailsSection-DRFGCM2W-D_ajBet8.js";import{S as Pe}from"./CurrencySelectField-RiKAivD8-Men9-Qs8.js";import"./liveblocks-D1OOExFG.js";import"./core-CEu4PzGb.js";import"./recharts-9NtTDQfo.js";import"./lottie-fNTw06NH.js";import"./analytics-DgE91yP9.js";import"./lexical-CnqcqOEB.js";import"./utils-CHibiken.js";import"./LabeledAddressValueField-DMcor_I8-C6G1J4Y2.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]="08a89f4b-843e-47c5-b059-7a4841d3d204",e._sentryDebugIdIdentifier="sentry-dbid-08a89f4b-843e-47c5-b059-7a4841d3d204")}catch{}})();const F={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function _e({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:T,showAdditionalInfoLabel:S=!0}){const C=J(),{formState:{errors:b}}=oe(),$=ne(),D=ke(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(S&&T||D){let c=null;return o===!0&&S&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(qe,{children:t.jsx(Ue,{})})})),t.jsxs(Ne,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,T]})}};return t.jsxs(Ee,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":Se("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:F.labelMarginLeft.value(C),marginRight:F.labelMarginRight.value(C),marginTop:F.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Me,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:F.controlHeight.value(C)}}),D?t.jsx(Be,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const Ee=g.div`
1
+ import{V as t,J,a9 as he,F as U,cG as ye,aE as ge,cq as be,cr as fe,cs as xe,ac as ve,aS as we,y as p,e_ as le,e$ as Ce,o as y,ba as $e,cT as oe,e as ne,f0 as De,f1 as Z,cZ as G,b2 as H,cJ as Te,es as je,u as a,c$ as ke,aQ as Se,p as V,N as Oe,T as Fe,bU as Ae,ai as Le,bL as Ie}from"./index-Dm-b67Hf.js";import{a as R}from"./sentry-C2Rgx3zV.js";import{n as g}from"./mui-BLkKBV85.js";import{bi as K}from"./zeni-epic-state-TdgpFmku.js";import{W as We,A as ze}from"./BankAccountWarningSection-l79_AN7P-wzRxiGEn.js";import{T as Re}from"./MailingDetailsSection-DtuTgXeV-BAt57tta.js";import{S as Pe}from"./CurrencySelectField-98tevzzy-BlqO4MuW.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./LabeledAddressValueField-Ckm80g0_-fddiRWcN.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]="bd4a0868-d47e-4891-9d34-e139dcc47d20",e._sentryDebugIdIdentifier="sentry-dbid-bd4a0868-d47e-4891-9d34-e139dcc47d20")}catch{}})();const F={width:new p(343,580,726),height:new p(a[6],a[6]),controlHeight:new p(a[6],a[6]),paddingTopBottom:new p(a[2],a[2]),marginRight:new p(a[2],a[2]),labelMarginLeft:new p(a[3],a[4]),labelMarginRight:new p(a[3],a[4]),labelMarginTop:new p(a[2],a[2])},ae={infoLabel:new Oe("extraSmallRegular","smallRegular")};function _e({isDisabled:e,label:i,currencySelectField:l,style:f,errorInfoLabel:u,isAdditionalInfoLabelLoading:n=!1,showAdditionalLabelTooltip:o=!1,additionalLabelTooltip:w,additionalInfoLabel:T,showAdditionalInfoLabel:S=!0}){const C=J(),{formState:{errors:b}}=oe(),$=ne(),D=ke(b,l.name),m=()=>{if(n===!0)return t.jsx(He,{children:t.jsx(Fe,{size:"Small",start:!0})});if(S&&T||D){let c=null;return o===!0&&S&&w&&(c=t.jsx(Ae,{placement:C==="small"?"bottom":"right",maxWidth:"364px",title:t.jsx(Ve,{children:w}),children:t.jsx(qe,{children:t.jsx(Ue,{})})})),t.jsxs(Ne,{size:C,isError:D,hasToolTip:o,isDisabled:e!=null,children:[c,T]})}};return t.jsxs(Ee,{size:C,style:f,isDisabled:e!=null,isError:D,"data-testid":Se("labeled-currency-field",l.name),children:[t.jsx(G,{isDisabled:e,label:i.label,htmlFor:l.name,style:{marginLeft:F.labelMarginLeft.value(C),marginRight:F.labelMarginRight.value(C),marginTop:F.labelMarginTop.value(C),width:i.width??"auto",color:e==="disabled"?$.colors.grey2:$.colors.hero}}),t.jsxs(Me,{labelWidth:i.width,children:[t.jsx(Pe,{...l,isDisabled:e,style:{display:"flex",flexGrow:1,height:F.controlHeight.value(C)}}),D?t.jsx(Be,{windowSize:C,hasError:D,children:u}):null,m()]})]})}const Ee=g.div`
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  align-items: flex-start;
@@ -0,0 +1 @@
1
+ import{V as S}from"./index-Dm-b67Hf.js";import{a as k}from"./sentry-C2Rgx3zV.js";import{f as b}from"./InternationalWireSwiftDetailsPage-8g16Kgfi-B71tbLSL.js";import"./liveblocks-EGukjQZF.js";import"./core-DjXOmtSJ.js";import"./recharts-B8tzuQ8V.js";import"./zeni-epic-state-TdgpFmku.js";import"./mui-BLkKBV85.js";import"./lottie-DiLnfF8e.js";import"./analytics-Dd9GkS_R.js";import"./lexical-C3TbZeLl.js";import"./utils-CQTOz44B.js";import"./BankAccountWarningSection-l79_AN7P-wzRxiGEn.js";import"./MailingDetailsSection-DtuTgXeV-BAt57tta.js";import"./LabeledAddressValueField-Ckm80g0_-fddiRWcN.js";import"./MagicLinkTitleSection-ygghGjqi-CPCSmIlY.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="dfe6a4f7-ac99-4f4f-960e-04877e6b37cc",e._sentryDebugIdIdentifier="sentry-dbid-dfe6a4f7-ac99-4f4f-960e-04877e6b37cc")}catch{}})();const F=({vendorViewDetails:e,bankAccountContext:t,isDisabled:r,onSaveHandler:d,onBankDetailsUpdated:i,onBackClick:n,onFetchBankNameBySwift:s,onAddressClick:f})=>{const{internationalBankAccountCreateStatus:o,internationalBankAccountToCreate:c,editVendorState:m,newVendorState:l,bankNameBySwift:p,fetchBankNameBySwiftStatus:u}=e,a={...m??l};return k.useEffect(()=>{(t==="vendor"&&o.fetchState==="Completed"||a?.saveStatus?.fetchState==="Completed")&&n()},[o,a?.saveStatus?.fetchState,n,t]),S.jsx(b,{bankAccountToCreate:c,bankAccountCreationState:o,bankNameBySwift:p,addressToEdit:a?.vendorNewAddressStatus?.addressToCreate,mailingAddress:a?.vendorAddress,addressType:"vendor_address",fetchBankNameBySwiftStatus:u,isDisabled:r,onSaveHandler:d,onBankDetailsUpdated:i,onBackClick:n,onAddressClick:f,onFetchBankNameBySwift:s})};export{F as default};
@@ -1,4 +1,4 @@
1
- import{J as ie,e as oe,F as te,y as c,gI as w,aW as T,V as i,hY as g,o as r,hV as f,N as ne,p as re,dC as de,ai as se,u as a}from"./index-GSKpJ8ET.js";import{n as s}from"./mui-DenpH-hx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="529e12bc-759c-4b53-ac36-87180de0f9cf",e._sentryDebugIdIdentifier="sentry-dbid-529e12bc-759c-4b53-ac36-87180de0f9cf")}catch{}})();const d={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:r.sp6},k={title:new ne("standardMedium","largeMedium")},le=s.div`
1
+ import{J as ie,e as oe,F as te,y as c,gI as w,aW as T,V as i,hY as g,o as r,hV as f,N as ne,p as re,dC as de,ai as se,u as a}from"./index-Dm-b67Hf.js";import{n as s}from"./mui-BLkKBV85.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new e.Error().stack;u&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[u]="529e12bc-759c-4b53-ac36-87180de0f9cf",e._sentryDebugIdIdentifier="sentry-dbid-529e12bc-759c-4b53-ac36-87180de0f9cf")}catch{}})();const d={labelWidth:new c(270,340,350),sectionWidth:new c(343,580,726),iconContainerMaxWidthHeight:new c(a[6],a[7]),iconContainerMarginRight:new c(12,a[3]),iconPadding:new c(10,12),rowGap:new c(a[2],a[3]),elementsMarginLeftRight:new c(a[3],a[4]),controlWidth:r.sp6},k={title:new ne("standardMedium","largeMedium")},le=s.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  row-gap: ${e=>d.rowGap.valuePx(e.windowSize)};