@zeniai/web-app-ui 4.14.29-qa → 4.14.30-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 (386) hide show
  1. package/dist/assets/ACHDetailsPage-CQdbfxHV-BW88pIYa.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BCxF5hNI-BDzZyTRY.js → AIPerformancePage-jyNXVGMj-Bs4Wcfnt.js} +13 -13
  3. package/dist/assets/AccountInfoPage-CiPtog_o-B4btRIXv.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-Bj0kaRHv-CjMeZGo_.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-CKODwo_y-HgxyLYI4.js → AccountLockedInfoModal-EbQpyRJx-DeA2eRRt.js} +3 -3
  6. package/dist/assets/{AccountReconDetailsDrawerPage-B2m7w0mL-C2NTxb1j.js → AccountReconDetailsDrawerPage-CK1QV13E-BSUxm7rf.js} +3 -3
  7. package/dist/assets/{AccountRow-G9Hw9KCo-BilRGfLi.js → AccountRow-B3Sz6a-V-GlNhkavB.js} +7 -7
  8. package/dist/assets/{AccountsPromoCardStack-C1-hQWvB-BXfUO0-K.js → AccountsPromoCardStack-DJtz56-u-D5uyYQuY.js} +6 -6
  9. package/dist/assets/AddAddressForCardDrawer-BDtxj9h6-Xx-rQDHp.js +6 -0
  10. package/dist/assets/{AddToWalletPage-BLdfTvYw-CAAAw7wK.js → AddToWalletPage-Czepun8f-MGSdB8OM.js} +4 -4
  11. package/dist/assets/{AddressRoutes-BG1MAbCa.js → AddressRoutes-CmvRhhab.js} +1 -1
  12. package/dist/assets/{AddressScreen-DPQ2dZD-.js → AddressScreen-Cb00RwYZ.js} +2 -2
  13. package/dist/assets/{AgingReportsPage-C6aasTzQ-CXKuu64F.js → AgingReportsPage-DzAVDq_i-BP-WG6Wy.js} +5 -5
  14. package/dist/assets/{AiCfoScreen-Uh7XawvO.js → AiCfoScreen-CZVtCrsQ.js} +2 -2
  15. package/dist/assets/{AllUserItems-CjeF5SWi-Xj_esGub.js → AllUserItems-BEoRQT-v-9OnCgvS-.js} +4 -4
  16. package/dist/assets/{ApAgingDetailPage-BWtvu1dO-B5eTLGtl.js → ApAgingDetailPage-55JdoIHh-kk28-9yG.js} +8 -8
  17. package/dist/assets/{AppBasePage-MKRsDpmx-HZd0I1c2.js → AppBasePage-CLye29uw-B08L49eb.js} +2 -2
  18. package/dist/assets/{AppDrawerContent-DN2hf6ff-D92ap2jb.js → AppDrawerContent-CDawrmfz-DqagnYqP.js} +6 -6
  19. package/dist/assets/{ApprovalRulesSettingsPage-0XbPzs2a-CNXOi7RW.js → ApprovalRulesSettingsPage-BHUZdWCO-tMTnXaFd.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DSx_E9ZM-T13taZCd.js → ArAgingChart-DeL9nNI7-Bj8y0fT6.js} +2 -2
  21. package/dist/assets/{ArAgingDetailPage-C8h1id5v-Bp0xLr7O.js → ArAgingDetailPage-CuG65EQs-CXt16x8B.js} +3 -3
  22. package/dist/assets/{AttachmentView-CqKnI6Xt-6J0SUJNW.js → AttachmentView-C5anq6-B-BkQi2I92.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-CSaW4oJh-DO_Gw_jb.js → BalancesInsightWithToolTip-1PK_fwhP-BOcx7wZs.js} +6 -6
  24. package/dist/assets/{BankAccountSection-Dhp7GLZA-ZzlevD89.js → BankAccountSection-BUJoSOk8-BG4ByPDH.js} +2 -2
  25. package/dist/assets/BankAccountWarningSection-BQaoV2yQ-BLOJsai8.js +51 -0
  26. package/dist/assets/{BankConnectionsSettingsPage-CDPUFu2k-C0HHnCKS.js → BankConnectionsSettingsPage-DRDS5xzS-CGYqJS-4.js} +14 -14
  27. package/dist/assets/{BillDetailPage-BWBGE0pg-UL8bGSCB.js → BillDetailPage-CtVVaqTN-BwEQZwAf.js} +4 -4
  28. package/dist/assets/{BillPayApprovalRoutes-DW58vDW2.js → BillPayApprovalRoutes-DwRul1Fq.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-B_XoB7xi-s54xFqBk.js → BillPayApprovalRuleDetailPage-6GHCsDkX-ClsaXk5H.js} +4 -4
  30. package/dist/assets/{BillPayApprovalRulesPage-5okdFn01-idvpD0Th.js → BillPayApprovalRulesPage-QKjq-qVP-DTJcefrH.js} +6 -6
  31. package/dist/assets/{BillPayPromoPage-GoR4wxn7-BX9oM76g.js → BillPayPromoPage-_n9uoXTN-DW34nsnh.js} +1 -1
  32. package/dist/assets/{BillPayRoutes-BtkTxM8s.js → BillPayRoutes-D22Q6pQL.js} +8 -8
  33. package/dist/assets/{BillPaySetUpPage-CKWIFJ92-CabNOcHO.js → BillPaySetUpPage-DNYX24VA-DLV9gKNt.js} +6 -6
  34. package/dist/assets/{BillingSettingsPage-AjSQYumd-Bn1f-Gb_.js → BillingSettingsPage-Btv3yiNs-M_OusRvc.js} +6 -6
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DsNKfhkT-BYVxk_pZ.js → BillsBulkReviewDrawerPage-BiLLeGke-Bs5f4SMl.js} +1 -1
  36. package/dist/assets/{BoxItem-BWNurtfc-1wVBC0eH.js → BoxItem-Dqp4SNlI-EUjyx5Zm.js} +1 -1
  37. package/dist/assets/BusinessVerificationPage-_8Wg_S5G-ChiNdD4I.js +138 -0
  38. package/dist/assets/{BusinessVerificationPageScreen-DwaqRId9.js → BusinessVerificationPageScreen-B_00ICvM.js} +2 -2
  39. package/dist/assets/{BusyIndication-H_iNZOWd-YzpZR-Jd.js → BusyIndication-BZLVwIo8-6s8wSi7T.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-BAWc12F9-BTTDwvPi.js → CardNumberSubText-12zyW5qQ-c22fv1fM.js} +8 -8
  41. package/dist/assets/{CashbackDetailPage-BhCHvGxj-C7faepag.js → CashbackDetailPage-B8-TDuv8-Dd6aEuJQ.js} +11 -11
  42. package/dist/assets/{ChargeCardDetailPage-D9-V0pjZ-CcMIYVjT.js → ChargeCardDetailPage-Bdz5L2ko-CaBbXfBZ.js} +44 -44
  43. package/dist/assets/{ChargeCardListPage-CZFi8l0_-CbzOxmGD.js → ChargeCardListPage-EuJ1VXck-BU5r2hWM.js} +19 -19
  44. package/dist/assets/{ChargeCardListTable-DiJUp9-c-D2uWClgA.js → ChargeCardListTable-SgjwYd8W-EVdaCbR4.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-CW9gtO0w-DcClor1f.js → ChargeCardPaymentHistoryPage-BC2DkmZT--xdPwk1t.js} +1 -1
  46. package/dist/assets/{ChargeCardPromoPage-CiZDV925-CSYRAMGO.js → ChargeCardPromoPage-C-z0xtuN-qFHF_adM.js} +6 -6
  47. package/dist/assets/{ChargeCardRoutes-D4cX-FOc.js → ChargeCardRoutes-DV8TKacG.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-C5jXY5P--BL7I_Hqd.js → ChargeCardSetupPage-ByLoLZE_-DIekUpHc.js} +2 -2
  49. package/dist/assets/{ChargeCardStatementsPage-CetLgQ8l-gLsbR91J.js → ChargeCardStatementsPage-C4XdqPO1-BSM3bO35.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-BYfqgSGk-ZwbVVf4M.js → CheckDepositDrawerPage-D5X61CKc-CyEf-jUu.js} +8 -8
  51. package/dist/assets/{CollapsableReportTable-BhbPzkAB-CdpUmH6m.js → CollapsableReportTable-D7zD4-h0-CdsTnLhf.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-CMcuDe-X-C7bIWPwr.js → CompanyOfficerDetailsSection-w86_5FXJ-CDmgqN3N.js} +93 -93
  53. package/dist/assets/{CompanyPassportCard-DImW2Dm8-C3ddeebY.js → CompanyPassportCard-tpE1lXug-CLl-IbcU.js} +9 -9
  54. package/dist/assets/{CompanyPassportPage-DT2W9QE1-BV_asMoO.js → CompanyPassportPage-bND99CJN-D7hjvVvQ.js} +23 -23
  55. package/dist/assets/{CompanyPassportScreen-lvxlxXBe.js → CompanyPassportScreen-DR-zdvAJ.js} +1 -1
  56. package/dist/assets/{CompleteProfile-BOabRQRQ-hZLQMnnP.js → CompleteProfile-B5W07hcs-mOeGRg8M.js} +1 -1
  57. package/dist/assets/ConfettiBurst-C0DFgWJj-DC0n_rE6.js +1 -0
  58. package/dist/assets/{ConnectionAuthScreen-B2gMiO2X.js → ConnectionAuthScreen-D4VaoAIy.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-CBRgyWeU.js → ConstrainedInnerElement-CgdnMeoA-bMF_z_bc.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-D86akQ-H-DjyhHlg2.js → CreateOrEditVendorPage-CrQh8JCh-BX5wTD-m.js} +6 -6
  61. package/dist/assets/{CreditCardPaymentDrawerPage-MS34Pxyw-CThaYeKC.js → CreditCardPaymentDrawerPage-BoVmLCHh-Blea7AvV.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-BsuzTGXR-BO0M4dmd.js → CurrencySelectField-D2azwi1T-CSrQI1j0.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-BP-GIrmI-BTYtJVUo.js → CustomerOnboardingActivationPage-DxuEGe6X-BPuiwcIL.js} +5 -5
  64. package/dist/assets/CustomerOnboardingAuthScreen-DLH-rYdF.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CeH0I7wN.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CISAUodZ-YRtutnxA.js → CustomerOnboardingDetailPageSkeleton-DRGKainD-Y7JaILNu.js} +7 -7
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-DgMQ5prq-C6rBmtzt.js → CustomerOnboardingNoStepsPage-C--jDBQq-BgvTeh9S.js} +10 -10
  68. package/dist/assets/{CustomerOnboardingPage-QvCZDMFw-XwRQSzz7.js → CustomerOnboardingPage-BXZSl2im-DDrc-wX_.js} +6 -6
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-Bt1cV23--BjduPIcK.js → CustomerOnboardingProductSuitePage-BJmYX0kI-C3qX-GBN.js} +1 -1
  70. package/dist/assets/{CustomerOnboardingRoutes-E20XO7Zj.js → CustomerOnboardingRoutes-DqfIHwc7.js} +4 -4
  71. package/dist/assets/{Dashboard-DdAePVSx-C-9TkoS2.js → Dashboard-yhqyXPbZ-CPcltsfF.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-ccn0JYfk-D8ynj735.js → DashboardReportPage-BG4StCjY-CzFGaujV.js} +8 -8
  73. package/dist/assets/{DashboardRoutes-DcFVHsLz.js → DashboardRoutes-Bawz4pw0.js} +3 -3
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-DsWKmIXY-BuOmk2Nk.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-wwRnuj8j.js → DefaultTenantHome-B10KVon4.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-BijpyBiZ-CW9mmver.js → DepositAccTransactionItem-5ZEPnNxa-3AfijWCl.js} +6 -6
  77. package/dist/assets/DepositAccTransactionListPage-BR8d0Kun-DVyGTLJU.js +66 -0
  78. package/dist/assets/{DomesticWireDetailScreen-OB8K6kLY.js → DomesticWireDetailScreen-CMEoUywc.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-B10Vx6K5-BUhuFnZV.js → DomesticWireDetailsPage-wGIWvhgQ-CmjPpsLr.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-BiIbEvq6-ZKYIT7SI.js → DownloadOverlay-SLvxfa6B-CQ7BxjF9.js} +16 -16
  81. package/dist/assets/{DrawerPage-4aE01eRo-CAh9Gn2F.js → DrawerPage-CFdTV10k-BenpSUGv.js} +4 -4
  82. package/dist/assets/{DrawerScreen-BUsyYGIw.js → DrawerScreen-B7BWNi51.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-BWjOJqch-joGMUHM8.js → EditPeoplePage-C-Y62PJ0-BgijqRCf.js} +7 -7
  84. package/dist/assets/{EditReimbursementDetailPage-Dcw8QlH6-BgKR9UgF.js → EditReimbursementDetailPage-BYpXof8e-CdyZTm2g.js} +14 -14
  85. package/dist/assets/{EntityDetailPage-DseDMalq-Cyl2DMlD.js → EntityDetailPage-CgDHg6g5-B_vQblwz.js} +2 -2
  86. package/dist/assets/{EntityDetailRoutes-DRKZJLlI.js → EntityDetailRoutes-nFrPna9t.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-D1o-WKT9-D_I5HHZG.js → EntitySummarySection-B2uG3-Zh-DoF2hAYB.js} +4 -4
  88. package/dist/assets/{ExpenseAutomationOverviewPage-BIGlSzsy-GCvxlf1m.js → ExpenseAutomationOverviewPage-CrtNuarm-C8tGkYQU.js} +7 -7
  89. package/dist/assets/{ExpenseAutomationPage-BUARFwSx-DJgzLEID.js → ExpenseAutomationPage-CWPnIMSu-BUnHNcGe.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-DOhwxALP.js → ExpenseAutomationRoutes-DxRmXEnL.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-BKpxo5VW-DRp_Q9MN.js → ExpressPayPage-CsI_DUc6-BKAOKKa9.js} +8 -8
  92. package/dist/assets/{FeaturePreviewPage-CfqYjofS-BCTiv77_.js → FeaturePreviewPage-B67a68N9-BPSn99tM.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-B3zHyjp6.js → FeaturePreviewScreen-D_cOMPjM.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-CJzIGe2N-DY6b--XC.js → FollowStepsSection-CgjzMm02-DPMc3VYJ.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-B4qWm75N-Cgt5bIxt.js → GlobalReviewListPage-CIfK-0rd-F3X4MQ4k.js} +5 -5
  96. package/dist/assets/{InformationCardStack-BXWxFJnm-DTjwcinQ.js → InformationCardStack-qKld10kr-IVC5wYc5.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-iUppdWya-CvDrIPQZ.js → InsightsCardStack-Bbh77o6f-Dr_8r9pW.js} +8 -8
  98. package/dist/assets/InsightsSection-DgfCOO4F-rd7xZxVI.js +27 -0
  99. package/dist/assets/{IntegrationsSettingsPage-DthkTtT9-C74bs234.js → IntegrationsSettingsPage-BRQFeOLt-2BecY83T.js} +2 -2
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-hYeFGjj4-DcAN91eT.js → InternationalWireSwiftDetailsPage-DPemNncS-Datvi8oR.js} +4 -4
  101. package/dist/assets/{InternationalWireVerificationPage-0TZuCAzZ-CQe_0UUB.js → InternationalWireVerificationPage-BOxXfIY5-D1lMmBlP.js} +3 -3
  102. package/dist/assets/{InviteFormPage-BC1PH63r-BIGwjJ9U.js → InviteFormPage-BbbPCdh--Cb0-_CQ6.js} +1 -1
  103. package/dist/assets/{InvitePageListView-BJDfCvno-gIJzhxwL.js → InvitePageListView-DqfrAulo-BtCqgsIl.js} +13 -13
  104. package/dist/assets/{InvitePeoplePage-Bl-WUfXO-DUMLWy1B.js → InvitePeoplePage-CgTpZp4M-CYe0nmg8.js} +3 -3
  105. package/dist/assets/{InvoiceUploadSection-BgVvYytR-BlXN9F3c.js → InvoiceUploadSection-DZOzTShz-BFwyUvOT.js} +1 -1
  106. package/dist/assets/{IssueChargeCardPage-0JEZpfCu-DM9vLveb.js → IssueChargeCardPage-x6dLcd-P-D7R8buXv.js} +17 -17
  107. package/dist/assets/{LabeledAddressValue-BCsadhSu-BSeojys7.js → LabeledAddressValue-CY4Fn72d-VdKSkT_l.js} +1 -1
  108. package/dist/assets/LabeledAddressValueField-D47ofJFV-CGqdgTnp.js +45 -0
  109. package/dist/assets/{LabeledControlledCheckBoxField-Do7rlK6F-Dcj3JGIB.js → LabeledControlledCheckBoxField-C_c8Rs-i-Cz1fNsx_.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-BHwXHYPO-D63Slqo_.js → LabeledCountryMultiSelectField-vRw9drBe-Bw1loTny.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-gMUp1tXY-0qVfYVsB.js → LabeledCreatableSingleSelectField-CdF97ljM-DTrzefeb.js} +3 -3
  112. package/dist/assets/{LabeledDocumentField-DxUq-7nr-Dvr8lzpZ.js → LabeledDocumentField-Dn25Ru1C-CLM-i9xW.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-D51ly333-DpjwTxSj.js → LabeledDropDownFormattedTextField-C2sZjA-q-Bkuc_5w_.js} +6 -6
  114. package/dist/assets/{LabeledEmailInputField-Cd9p7Kj0-CVG4vWEu.js → LabeledEmailInputField-DzAdekQn-BkQ7kdJx.js} +3 -3
  115. package/dist/assets/{LabeledNameField-364jsrFK-CQqPpY2S.js → LabeledNameField-Dxx0xwMv-DBRkdNqp.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-B3pMIEfZ-BxU2XuLw.js → LabeledSingleSelectField-EO8TA_z_-C26qdLJU.js} +6 -6
  117. package/dist/assets/{LabeledText-uFTi1qOo-DmgySby9.js → LabeledText-Bo7B-LrF-DECCi3EJ.js} +2 -2
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-XD6D3r0Y-BIqpPDdk.js → LabeledUserSingleSelectWithSubtitlesField-DD11_Map-ZtH1v-68.js} +8 -8
  119. package/dist/assets/{LabeledZeniRolesDropDownField-CbJ3OtWK-BYvsDYJv.js → LabeledZeniRolesDropDownField-BJ99uBt1-DGvakh0f.js} +18 -18
  120. package/dist/assets/{LinkJETransactionPage-B5M6Ojt--CjodvhlH.js → LinkJETransactionPage-BiDoUKQW-xgKDBdnj.js} +9 -9
  121. package/dist/assets/{LockCardPage-DN2dvQA9-Ow-fz21n.js → LockCardPage-B1QOSByp-BfsUhZIZ.js} +25 -25
  122. package/dist/assets/{LowBalancePopup-CXTWwEyb-CglMcP4R.js → LowBalancePopup-Bl_PaIUx-yOClgIGf.js} +2 -2
  123. package/dist/assets/MagicLinkACHDetailsPage-l76_Y3sO-DBz5GRKZ.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-D_z_Q-jz-DriIOIxl.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-D276lsq_-ColrMYZA.js +1 -0
  126. package/dist/assets/MagicLinkRoutes-B-WHuq25.js +72 -0
  127. package/dist/assets/{MagicLinkSignInScreen-D5zthsYs.js → MagicLinkSignInScreen-BBwmXYDm.js} +1 -1
  128. package/dist/assets/MagicLinkSuccessPage-CuL-7CWN-C2vVBJ4S.js +31 -0
  129. package/dist/assets/{MagicLinkTitleSection-BnzImXCX-D-Ps836u.js → MagicLinkTitleSection-RYhrN820-BbeWYlVu.js} +10 -10
  130. package/dist/assets/{MailingDetailsSection-aNMVpaF0-BDPAoAmw.js → MailingDetailsSection-D9_I-DTk-Cdb1WRS_.js} +1 -1
  131. package/dist/assets/{MobileAppDrawer-nB2AvhYg.js → MobileAppDrawer-CTcTm5tx.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-C_jqM-Ix-DkOTATII.js → MoreMenuButton-5MZl4h9B-BympoCwa.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CdW-lOqB-BuW8By7Z.js → MyBankConnectionsSettingsPage-CBw6kNsm-DlddyW1w.js} +4 -4
  134. package/dist/assets/MyPendingActivationChargeCardListPage-BC4YjZtP-DfpXnRCt.js +6 -0
  135. package/dist/assets/{MyProfileSettingsPage-ZmPfSk3b-CoiObIlF.js → MyProfileSettingsPage-DZ5M2BUN-CQ7zk2gg.js} +4 -4
  136. package/dist/assets/{NavBarWithPicker-BYosIzfk-QcmG5LM_.js → NavBarWithPicker-C6FiaLu5-BVvTIBUE.js} +5 -5
  137. package/dist/assets/{NavigationArrow-CMLkPq47-RkoQ7OLd.js → NavigationArrow-BnAgR0wH-BYYktF7B.js} +1 -1
  138. package/dist/assets/{NavigationDots-maxhYltq-CrrpYdd0.js → NavigationDots-WUDG_g8M-CSwlLBTM.js} +3 -3
  139. package/dist/assets/{NewGlobalMerchantPage-BkDFFysB-B2YvDT6v.js → NewGlobalMerchantPage-gAsCusVw-CA6lhup4.js} +1 -1
  140. package/dist/assets/{NoDataChart-CKqR_T30-j8ruDKAU.js → NoDataChart-BBYUjdKn-CaszePO0.js} +3 -3
  141. package/dist/assets/{NoDataTable-BQLSA76V-Z0rSzjO1.js → NoDataTable-D3750d25-CC_2gGkK.js} +1 -1
  142. package/dist/assets/{NotFoundPage-rtS33FV3-DQRB4A0h.js → NotFoundPage-C4D8Rn9E--AJk-xer.js} +6 -6
  143. package/dist/assets/{NotFoundScreen-BZyQ7N3h.js → NotFoundScreen-SRDW4_mE.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-DHwdNZv_.js → NotificationRoutes-BSrkx0LD.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-JJ5a6f1u-DkWIvNeO.js → NotificationSettingsPage-CD-t91ia-DJoX_UtT.js} +4 -4
  146. package/dist/assets/NotificationsListConfig-C7JSE-eQ-DyT-ZhYk.js +1 -0
  147. package/dist/assets/{NotificationsPage-9vgLoVxJ-DquGHhpL.js → NotificationsPage-Be1v8niA-BlgDo9nE.js} +14 -14
  148. package/dist/assets/{OpExByVendorPage-Dy7Ll1zE-BHmSV3QW.js → OpExByVendorPage-D1f1lQbs-BnyzfFJz.js} +7 -7
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-CXSGJlk6.js → OverlayContainerPage-BG9y5C0t-DTorHW75.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-D-V3dD71-BFdw0OK9.js → PandLWithForecastPage-DIYb7BWp-B3vKwRhN.js} +11 -11
  151. package/dist/assets/{PandLWithForecastRoutes-BDTc6BXB.js → PandLWithForecastRoutes-CsL0r0I3.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-B_4cMrVT-De6jntkt.js → PaymentAccountSetupBillingAddressSection-tGkjxbjY-CHrQD7Oe.js} +6 -6
  153. package/dist/assets/{PeoplePage-B9bxxtaC-DVI-Bxvs.js → PeoplePage-xwAOX4Jk-BnzId5aB.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-C9qvG-Pm.js → PeopleRoutes-D-yY-A49.js} +3 -3
  155. package/dist/assets/PerformanceRoutes-DUxeAB_T.js +1 -0
  156. package/dist/assets/{Preview-C63MOKlS.js → Preview-k4ohm46R.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-BnezAuLA-D870mTyw.js → ProductsCarousel-OHbYasaa-Bps9QCYO.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-B5vRjrOp-CQBPv6Li.js → PromoBaseCards-B_0dccCZ-BeKRkhdX.js} +3 -3
  159. package/dist/assets/{QBOConnectionDialog-mVAyONiQ-CvqA8075.js → QBOConnectionDialog-5ItNvdCA-D1LNYclF.js} +13 -13
  160. package/dist/assets/{QBOConnectionScreen-CXrs5Ixj.js → QBOConnectionScreen-BDwso3KZ.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-Co4tc3sO-CTfIKjz1.js → QBOSetupSection-CHZgQppe-Fu_QXCEh.js} +14 -14
  162. package/dist/assets/ReferralListScreen-DPkRtA1r.js +5 -0
  163. package/dist/assets/{ReimbursementApprovalRoutes-D2Z5UbaN.js → ReimbursementApprovalRoutes-DyX9YlA9.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-t48xfVQ_-CD8euRFQ.js → ReimbursementApprovalRuleDetailPage-CqZT111l-Th1QLQg3.js} +5 -5
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-D5GyC7T8.js → ReimbursementApprovalRuleDetailScreen-BR6Wdj2J.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BuOE0xKm-Dgnps96a.js → ReimbursementApprovalRulesPage-BzTe2nqd-DFHyb7gY.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-oD88KyGk-fKnCy2kA.js → ReimbursementDetailPage-DM650uCR-BZojPp4W.js} +7 -7
  168. package/dist/assets/{ReimbursementPromoPage-DC6vQNFr-D_UtsBrr.js → ReimbursementPromoPage-CitTg9s4-C6Ht-4dW.js} +7 -7
  169. package/dist/assets/{ReimbursementRoutes-IQsmlcCo.js → ReimbursementRoutes-C4Yz_jbS.js} +3 -3
  170. package/dist/assets/{ReimbursementSetUpPage-ClkPQCRt-TDU6L3Hh.js → ReimbursementSetUpPage-qphyaCoX-CvNz9jXQ.js} +5 -5
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DiWW85PW-4yt4cIZg.js → ReimbursementsBulkReviewDrawerPage-CCJvQKip-BQLPbz53.js} +1 -1
  172. package/dist/assets/{ReloadCard-DcyZqZO5-Cx4kSgDZ.js → ReloadCard-DMNbI6QE-C1j_tgy-.js} +4 -4
  173. package/dist/assets/{ReportTableViewSelector-Be_385i6-BoF2puWu.js → ReportTableViewSelector-CUG4hVI9-Bjuyu4DH.js} +5 -5
  174. package/dist/assets/{ReportsPage-Dp_uEJ2H-BVzHzuJW.js → ReportsPage-nuM-ub1p-CKOT47VZ.js} +8 -8
  175. package/dist/assets/{ReportsRoutes-DNVh4Zq3.js → ReportsRoutes-DohAZqsL.js} +1 -1
  176. package/dist/assets/{RevenueChart-B-iMe_PD-qYuzBRWA.js → RevenueChart-BL5Wb2UT-JQVA4c7e.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage--0ZUpEVp-QpDfYpwf.js → ReviewDetailsPage-CUolLJ6s-I5bNk9-1.js} +21 -21
  178. package/dist/assets/{ReviewOverlay-D_JI48L0-BZc7iU8Z.js → ReviewOverlay-A1OYNSqG-DCeKL3J7.js} +6 -6
  179. package/dist/assets/RewardsRoutes-BjB7FD9l.js +1 -0
  180. package/dist/assets/{RoleWithToolTip-Bqdsc31P-CEo-Vqy5.js → RoleWithToolTip-VOllzDDB-BXr_ucO6.js} +2 -2
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-vFbciuuA-D8R98pra.js → ScheduleDetailsFixedAssetsPage-By3U1RYU-Dut2stb8.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-BUxgvyKT-4gfjZarF.js → ScheduleDetailsPage-ButJHPUw-XhuUVDsI.js} +3 -3
  183. package/dist/assets/ScheduleSequenceTable-Dv831gVJ-OIQZXWKl.js +326 -0
  184. package/dist/assets/{ScreenRoutes-Dehj5d2R.js → ScreenRoutes-B6WQ9uqs.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-Bk3RGJCY-Bm0kDwNM.js → SetUpAccountSection-BcNG0nDh-C2x0keC_.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-DK8cjp4e.js → SettingsRoutes-U8aLQkxi.js} +5 -5
  187. package/dist/assets/{SetupPagesScreen-DAHxCusL.js → SetupPagesScreen-KLzrKq5d.js} +1 -1
  188. package/dist/assets/{SignIn-DbvYG8OW-GkUkBoPB.js → SignIn-D80UITQm-CVsAto0V.js} +22 -22
  189. package/dist/assets/{SignInScreen-vzDqilPw.js → SignInScreen-g1CD9jiJ.js} +1 -1
  190. package/dist/assets/SignOutScreen-Cclrjb6Y.js +9 -0
  191. package/dist/assets/{SpendManagementListViewPage-CSGYJyZu-CHLWxGnv.js → SpendManagementListViewPage-DSG6Son_-3Woa8ZKL.js} +6 -6
  192. package/dist/assets/{SpendManagementPerTabPage-DuGeuTYQ-Bnf08sS-.js → SpendManagementPerTabPage-DiSu0RS1-Dj2U_5YO.js} +13 -13
  193. package/dist/assets/{SpendManagementSection-CZ_i360S-DJoDSBgX.js → SpendManagementSection-BXU3RGG8-BwEQ7fN8.js} +12 -12
  194. package/dist/assets/StatementItem-B1M65xN--D_j2q7nS.js +31 -0
  195. package/dist/assets/{StatementsPage-BMFYpAPA-CVHHtLBu.js → StatementsPage-Ck1xzA0w-CdWUN6DK.js} +2 -2
  196. package/dist/assets/{StatusSwitcher-CDnarHSf-DDxt9cRn.js → StatusSwitcher-_Cs3CzJl-D1XlTHt5.js} +6 -6
  197. package/dist/assets/{SubTabSwitcher-DhIXVTVI-C-FMRKa6.js → SubTabSwitcher-D3ltE_yc-Ry1ed6uf.js} +3 -3
  198. package/dist/assets/SuccessAnimation-RuQd1S4B-C9QgxngQ.js +13 -0
  199. package/dist/assets/SummaryCard-buadhnmc-COTvxgGf.js +1 -0
  200. package/dist/assets/{TaskDetailPage-rWt-QUEv-B4eDDsje.js → TaskDetailPage-CJKga1vr-ciDskCCR.js} +1 -1
  201. package/dist/assets/{TaskListScreen-CSw93xhx.js → TaskListScreen-ksTObC06.js} +2 -2
  202. package/dist/assets/{TaskManagementPage-D3YvKWVJ-CISxMHl7.js → TaskManagementPage-BMwMSG1j-D-VvypFm.js} +27 -27
  203. package/dist/assets/TaskRoutes-C_cjp_9o.js +9 -0
  204. package/dist/assets/{TimeRangeSwitcher-CFJrPhfZ-B9dX58Bl.js → TimeRangeSwitcher-B1Wx03tG-Br6TSwpo.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcher-DS6zgSjT-CWk5lheO.js → TimeframeSwitcher-Dmtsdwi9-Ce3iuH6w.js} +6 -6
  206. package/dist/assets/{TimeframeSwitcherWithToggle-Did8-Dj7-BeDPAkDD.js → TimeframeSwitcherWithToggle-P5CfgTUd-DXOPf3Bj.js} +3 -3
  207. package/dist/assets/{TopExCard-ByF-svYM-CeHmKjZr.js → TopExCard-DQkr9Xhh-CEMSG53J.js} +3 -3
  208. package/dist/assets/{TopExDetailPage-ABVezwCx-C0DDZmei.js → TopExDetailPage-5Di6WUfV-hilBOr7-.js} +9 -9
  209. package/dist/assets/{TransactionActivityLogPage-B8ytNODX-BJQxN8XR.js → TransactionActivityLogPage-R9LoW4DL-C_Mhlr8m.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-CunkyIXB-CgTOb-81.js → TransactionDetailPage-B-blHtkn-CbeGtCIa.js} +34 -34
  211. package/dist/assets/{TransactionDetailRoutes-vPW4Cy7h.js → TransactionDetailRoutes-CG9Ya3UI.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-ChHjrjIW.js → TransactionDetailScreen-DG1rRYuu.js} +1 -1
  213. package/dist/assets/{TransactionList-CEPVnfZD-TcZJCCiC.js → TransactionList-FQvTXSzy-oI0UZGJM.js} +13 -13
  214. package/dist/assets/{TransactionListBig-BYFv0irc-C_9tN-iq.js → TransactionListBig-CNDw7zRw-DTLpPxaS.js} +6 -6
  215. package/dist/assets/TransactionListPage-BkZLtwmQ-DzH0F7Wk.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-AsiPvomy.js → TransactionListRoutes-BbWNwfVS.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-DYvgQFQS-CHf7_t-i.js → TransactionVendorDetailPage-Ch2UUF1f-DGdjSa3g.js} +3 -3
  218. package/dist/assets/{TransferDrawerPage-gDUiIE-g-Dq_9lrcC.js → TransferDrawerPage-C1Ly_xKj-DX3atlS9.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-DXIqVBWp-vTDjed-b.js → TreasuryOverviewPage-Zt5w8zfp-CedvlZd9.js} +21 -21
  220. package/dist/assets/{TreasuryPromoPage-oERSujnm-Duub099a.js → TreasuryPromoPage-BsP73kf7-etf9xlFS.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-Cw9xE3HA.js → TreasuryRoutes-CuQ3uJ15.js} +1 -1
  222. package/dist/assets/{TreasuryStatementsPage-GWCCDPvf-BxdVAf_2.js → TreasuryStatementsPage-DhXESeOi-uJElEPeD.js} +4 -4
  223. package/dist/assets/{TreasuryTaxLetterPage-pTRWyNYH-C_7jq7mI.js → TreasuryTaxLetterPage-tHkQvX2V-pYxXn6xj.js} +4 -4
  224. package/dist/assets/{TrendChart-B2oLQN05-BKkpm1IB.js → TrendChart-B7Pox_TQ-7BkibFBY.js} +4 -4
  225. package/dist/assets/{TrendWithTransactions-Bx63fv0P-BpBq0DjX.js → TrendWithTransactions-DP1jZL1i-2bOe0VtV.js} +6 -6
  226. package/dist/assets/{UncategorizedAccountsMappingPage-D_QwlpkW-AksGUSjn.js → UncategorizedAccountsMappingPage-4mHyt2P6-BwcucbSK.js} +7 -7
  227. package/dist/assets/{UnitIntegrationPage-EeIQyR4L-BkgVpnWk.js → UnitIntegrationPage-BymmWe1G-DFsBuiFb.js} +3 -3
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-B8_7dtgO-BAzvdZXs.js → UploadAdditionalDocumentOverlay-DUO2ZoU--ozi0LNFT.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-DwTNfggI-DuCG60KE.js → Vendor2FAPopup-8kpMx5RI-CGazITGN.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-BODHiiUQ-DmAQiimf.js +1 -0
  231. package/dist/assets/{VendorDetailPage-k42A_Pv1-ZE6DsZ2U.js → VendorDetailPage-C-JJfR0u-DCJ_f7dN.js} +12 -12
  232. package/dist/assets/VendorDomesticWireDetailsPage-CVfEcUFJ-8ddL7pEj.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-BUuhWv_U-K4_6q7mU.js → VendorFiling1099EditablePage-B4vFgSwb-DDTykyPn.js} +6 -6
  234. package/dist/assets/{VendorFirstReviewPage-bN7DO44j-BxefcVJp.js → VendorFirstReviewPage-CUwdrbjH-DPvTVvHI.js} +7 -7
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DjkOrgs7-Cg0U0LdX.js → VendorInternationalWireDetailsPage-BzP1zqhw-CAXXQP5N.js} +4 -4
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CYv9JR1l.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-D-7K4aZA-CRXRh27D.js → VendorsAccountsSection-Drue-Lvz-DQRReXtk.js} +4 -4
  238. package/dist/assets/{VendorsRoutes-CIpXKlmm.js → VendorsRoutes-Buw6G1yr.js} +1 -1
  239. package/dist/assets/{VerifyDevice-VPfuXUzH-1HX1IVYe.js → VerifyDevice-B_NNzkjT-BkggAu3P.js} +9 -9
  240. package/dist/assets/VideoPlayer-Bc4tAd79-Crbsq9LQ.js +77 -0
  241. package/dist/assets/VideoPopup-BYo5bzpU-BthyvsgQ.js +31 -0
  242. package/dist/assets/WiseConfirmationScreen-CEIT9jMF.js +12 -0
  243. package/dist/assets/{ZeniAccountDetailPage-CJrpkcjr-HirlEWmr.js → ZeniAccountDetailPage-BW6G2voE-DBU5fQds.js} +19 -19
  244. package/dist/assets/{ZeniAccountListViewPage-DvJI3LGF-nY-vtULB.js → ZeniAccountListViewPage-gNszI2XV-BLZmP_oZ.js} +30 -30
  245. package/dist/assets/{ZeniAccountNavBarPieces-UCydmVe7-UXTm50TX.js → ZeniAccountNavBarPieces-BP1IxZ18-ABeEpX-y.js} +1 -1
  246. package/dist/assets/{ZeniAccountPromoPage-DiGsabvm-rZyGLme8.js → ZeniAccountPromoPage-LsZxIdX9-D62PvtLZ.js} +5 -5
  247. package/dist/assets/{ZeniAccountRoutes-BPd28Sqn.js → ZeniAccountRoutes-Bp_1In61.js} +5 -5
  248. package/dist/assets/{ZeniAccountSetupPage-hVmIT6tO-g_Hva4KO.js → ZeniAccountSetupPage-BExQA9Cz-D04LOVK1.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-C-wBGJv0.js → ZeniAccountStatementScreen-6LzJoR1o.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-C2LxBTZ4-0_TRwNg0.js → ZeniAvatar-5wP6sb3W-CKgtWCng.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-BTIaEGE9-El7BZp0U.js → ZeniCopyright-CMjFbDBQ-So_Gi_8l.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-9JxwH7J5-CrNSUw6y.js → ZeniDatePicker-C_YQpGe--CXBBhIwN.js} +4 -4
  253. package/dist/assets/{ZeniTransferAmountSlider-BlEFrC-Z-BisIQd6x.js → ZeniTransferAmountSlider-CIu35Xz9-BCHS6-b-.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-CZHlLVR_.js → accountMappingHelper-Ctd7yuH3.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-BgQLRlhS.js → add-to-wallet-DgdBD8_G-q_ZatOIu.js} +1 -1
  256. package/dist/assets/{analytics-CDQ7tGpV.js → analytics-Ci5SIN4_.js} +1 -1
  257. package/dist/assets/{analyticsHelper-C4p8ugAl.js → analyticsHelper-CBcY8lmv.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CYp9h-KW-Cdl9mD6Z.js → analyticsHelper-CG-L3dO7-WIHh4rd-.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CvfiHTRY.js → arrow-south-east-round-PEovUgvH-BXAmISmi.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-8rMpx5do.js → auto-transfer-rule-mbafm5D3-Qtr813uy.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-BdKWS97a.js → avatar-Dz7aEm3d-lVrrjTFE.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-ydWr7ZOI.js → bank-letter-BOcVjN6J-a5lcVCZG.js} +1 -1
  263. package/dist/assets/{calculateSize-DecSvt-d-BXgf6S37.js → calculateSize-CAxK0dN_-6AyeRPo8.js} +1 -1
  264. package/dist/assets/{chartTypes-D2s_Hwo9-BrmnDHT7.js → chartTypes-_AEkJ5Cg-CVupoc41.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-CjcyjUt4.js → clock-CJkylEKt-CBVPxBka.js} +1 -1
  266. package/dist/assets/common-B74Sb4iG-Ba1Dna3Q.js +1 -0
  267. package/dist/assets/{commonDimensions-u85vL09f-Dok7ubZx.js → commonDimensions-_Dpm4Anv-BHT-EeW2.js} +1 -1
  268. package/dist/assets/{commonTypes-DKKiPW4t-GTA9duos.js → commonTypes-C64XobC6-BTobasZR.js} +1 -1
  269. package/dist/assets/{core-B0nKoasK.js → core-oEkj6b51.js} +1 -1
  270. package/dist/assets/{dash.all.min-CXMi5GlA.js → dash.all.min-DZu0W7MW.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-CHDtTf3Z.js → decodeURIComponentSafe-AFO0vA4L.js} +1 -1
  272. package/dist/assets/{dnd-NNN-4w0O.js → dnd-DwLm2ZWc.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-CQw1tD8J.js → dollar-round-D18u7nlm-BxzwYsJa.js} +1 -1
  274. package/dist/assets/{downloadPdf-CnXPMbwm-BeGNFIUF.js → downloadPdf-BAZhe2iR-C4ju3Lqh.js} +1 -1
  275. package/dist/assets/{empty-DA-JSLu3.js → empty-CpgB6ACX.js} +1 -1
  276. package/dist/assets/{empty-CVZTZ-q9.js → empty-fwRWXj2G.js} +1 -1
  277. package/dist/assets/{epic-D0yDPv8O.js → epic-qeTSmk29.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-DAakc3sS.js → filter-cZIFUNvj-Cn5LR_-W.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-DXFDKgoB.js → getLocaleForTenant-DZi5Q22y.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-C6pLHK0s.js → gift-box-Cmt9OgIZ-CByaMYJG.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-Dn4I-rOX.js → graphic-no-data-l-DU4J8fDt-bzI3_a8w.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DO0fHtUP.js → graphic-no-data-net-burn-l-CzmycA0m-CaA33M1d.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-C47iPdmd.js → handshake-BPg58FML-BxWewJRH.js} +1 -1
  284. package/dist/assets/{helper-C7sZs2qJ-DizQxyzI.js → helper-D3UIpXq7-DCH1HBMI.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-BOSMM7uX.js → hyperlink-DQyCeXx2-Dt5l5kWs.js} +1 -1
  286. package/dist/assets/{index-CEBFS-eA.js → index-B5c5iTId.js} +1 -1
  287. package/dist/assets/{index-DrsMeyfs.js → index-BE_133so.js} +1 -1
  288. package/dist/assets/{index-DGfOhpD2.js → index-BHAcVHeH.js} +643 -641
  289. package/dist/assets/{index-CQJQXzZY.js → index-CjBlNHKF.js} +1 -1
  290. package/dist/assets/{index-BIjZljJR.js → index-Cpbn6-TN.js} +1 -1
  291. package/dist/assets/{index-zhMcpxMF.js → index-DRNExedw.js} +1 -1
  292. package/dist/assets/{lexical-Fl-AogKa.js → lexical-BLFyyXBr.js} +1 -1
  293. package/dist/assets/{liveblocks-DskTqGyX.js → liveblocks-Ia5FU_Xu.js} +1 -1
  294. package/dist/assets/{lottie-BzV8yd9z.js → lottie-DEK510sX.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-C_DjhqLk-Ct7OsbEi.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Okgefznu-141Bcx45.js → mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B_J7hTEH.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Dq4CasLR-BKZfs44u.js +1 -0
  298. package/dist/assets/mapTimeframeBalancesToTreeNode--FHVcIix-D7muHBWz.js +1 -0
  299. package/dist/assets/{mapTimeframeBalancesToTreeNode-sCX2cRnL-BGdAqCMz.js → mapTimeframeBalancesToTreeNode-BP0iF3Of-BZXMdjjY.js} +1 -1
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-ww9DgKFP-DI4Dtrg_.js → mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-DMQQGP6s.js} +1 -1
  301. package/dist/assets/{media-player-eLGyvMHZ.js → media-player-uto_Jl5G.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-rv31fLm6.js → money-2cg1MuG4-BmcWx6In.js} +1 -1
  303. package/dist/assets/{mui-40xepic5.js → mui-Cni6P-fz.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-BrbO3gtI.js → page-detail-CWX5S47F-B9qcUnuN.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-bNTaLAow.js → page-summary-D7_VQHwN-ZSqDN0WI.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-DgahycaC.js → panelSelectedMixin-Cddsb26L-BCo5ICo2.js} +1 -1
  307. package/dist/assets/{pathToGoBack-D0UTUGlT.js → pathToGoBack-BpMzEQ5A.js} +1 -1
  308. package/dist/assets/{pdf-A8jRKyoC.js → pdf-CTJ16aEe.js} +3 -3
  309. package/dist/assets/{pdf-lib-mQnebn-k.js → pdf-lib-BZoHbIry.js} +1 -1
  310. package/dist/assets/{plaid-cfgjTkr8.js → plaid-B2vW8NaN.js} +1 -1
  311. package/dist/assets/{pusher-1O2fsDZq.js → pusher-DFtcQaPW.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-Cy5-Jl8l.js → radio-default-CiSgisfh--JwnmKdf.js} +1 -1
  313. package/dist/assets/{react-BEctO-ia.js → react-B0u9lmTz.js} +1 -1
  314. package/dist/assets/{react-D8s_m7Vn.js → react-BxE_BeY2.js} +1 -1
  315. package/dist/assets/{react-QF7HiPHo.js → react-C70tWLg5.js} +1 -1
  316. package/dist/assets/{react-CidUU4N9.js → react-Cohr3oKl.js} +1 -1
  317. package/dist/assets/{react-DcRcFJEU.js → react-DKkpOD3_.js} +3 -3
  318. package/dist/assets/{react-C6o6ScF5.js → react-DZ1_qQub.js} +1 -1
  319. package/dist/assets/{react-BEcUyG01.js → react-cn6O__9s.js} +1 -1
  320. package/dist/assets/{react-CQm7lU_-.js → react-jjkPSe6Z.js} +1 -1
  321. package/dist/assets/{recharts-Bbdho9Pi.js → recharts-LlOU9oLm.js} +1 -1
  322. package/dist/assets/{routePaths-BLeuVRxM.js → routePaths-WWdcktge.js} +1 -1
  323. package/dist/assets/{sentry-COYnhuxW.js → sentry-CY6wsJT-.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-wVomU2ew.js → shield-DOlUxcFf-CGZqPLdL.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-BruIkKZj.js → spend-limit-D6SyboD4-DAZsY_K2.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-CuxwOBs0-D4IOrabU.js +1 -0
  327. package/dist/assets/{toChartData-DrYGpr_j--iS187kT.js → toChartData-BODe4y2V-CHAJ4Jnp.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-C-J0dsgn.js → transaction-placeholder-CpOwZAMG-B7lzeBRq.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-Chu3klyO.js → undo-b_3XZ5CX-okXLDguZ.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-BGatCFPm.js → unlock-BPWn2I5L-BcwMx3a4.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-GfUJ6f_w.js → upload-reimbursement-receipt-O2N8vcO7-BLqHMVJK.js} +1 -1
  332. package/dist/assets/{uploadAttachment-DPYv4udq-CAr5uueF.js → uploadAttachment-Dbumcc_g-LXlwbhth.js} +5 -5
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-n8jIX4W3.js → uploadReceipts-CIgkuVpu-FU2oOS1s.js} +1 -1
  334. package/dist/assets/{url-XCmE-JaB.js → url-B5kkbwRv.js} +1 -1
  335. package/dist/assets/{url-C27bOf0k.js → url-Cv3aJ--T.js} +1 -1
  336. package/dist/assets/{useDeviceId-UXlBHXyB.js → useDeviceId-BWAR3Wtl.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-CTgopLFd.js → useInitialThreadRequest-DTIHWJqF.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-CqE4OIEm.js → useLongPress-GCK2COYQ-BX_5sahW.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-vz296XX2.js → usp-line-BBd1wKwW-CuU9mWQv.js} +1 -1
  340. package/dist/assets/{utils-DMEPgX6w.js → utils-ChLimP28.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-CeydZjZz.js → withTransactionSidePanel-X05Jc0ej.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-DCforPdM.js → zeni-epic-state-cFF_NqwA.js} +3 -3
  343. package/dist/assets/{zeni-icon-only-BkUYNged.js → zeni-icon-only-jOM3nMPU.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +2 -2
  346. package/dist/assets/ACHDetailsPage-DdI8Zlpr-CU5r-YKb.js +0 -21
  347. package/dist/assets/AccountInfoPage-D_PrQwlp-D0A6PrU_.js +0 -18
  348. package/dist/assets/AccountInfoPageContent-jLGn4-UA-kIJ8s7Ew.js +0 -149
  349. package/dist/assets/AddAddressForCardDrawer-Dd-0o1b--Buw-PM8c.js +0 -6
  350. package/dist/assets/BankAccountWarningSection-C_OfdR1O-DqmpDK5M.js +0 -51
  351. package/dist/assets/BusinessVerificationPage-DN88j0Rn-tyggZhAW.js +0 -138
  352. package/dist/assets/ConfettiBurst-Ix0vYpu--V0qDTo2i.js +0 -1
  353. package/dist/assets/CustomerOnboardingAuthScreen-HNUHcgaZ.js +0 -1
  354. package/dist/assets/CustomerOnboardingContainerPage-D4BMPshV-BzHwYekK.js +0 -1
  355. package/dist/assets/DashboardSidebarBackgroundAnimation-DPDd6e7b-D-b2dmJD.js +0 -12
  356. package/dist/assets/DepositAccTransactionListPage-DOuU7gGT-DQxZX56m.js +0 -66
  357. package/dist/assets/InsightsSection-CPg_uo3H-sqHV4Jbt.js +0 -27
  358. package/dist/assets/LabeledAddressValueField-D-AO8-Me-RVHqH4BW.js +0 -45
  359. package/dist/assets/MagicLinkACHDetailsPage-6iW79Hsc-B7gORwLD.js +0 -1
  360. package/dist/assets/MagicLinkDomesticWireDetailsPage-KPRoVnEc-zKiUFewj.js +0 -1
  361. package/dist/assets/MagicLinkInternationalWireDetailsPage-DjB2bi8k-T09uYnar.js +0 -1
  362. package/dist/assets/MagicLinkRoutes-L3uSUo92.js +0 -72
  363. package/dist/assets/MagicLinkSuccessPage-JRpuY47p-BJQ8JJMy.js +0 -31
  364. package/dist/assets/MyPendingActivationChargeCardListPage-DKvDUyn7-nlJboSN5.js +0 -6
  365. package/dist/assets/NotificationsListConfig-CWWrsRBB-DP_qJFN2.js +0 -1
  366. package/dist/assets/PerformanceRoutes-DANbUDFx.js +0 -1
  367. package/dist/assets/ReferralListScreen-DT2pRRPd.js +0 -5
  368. package/dist/assets/RewardsRoutes-CREYcycm.js +0 -1
  369. package/dist/assets/ScheduleSequenceTable-CPf50z9S-CEdOUEQo.js +0 -324
  370. package/dist/assets/SignOutScreen-C3YaFG0k.js +0 -9
  371. package/dist/assets/StatementItem-CDx2knrL-dHkYeLFR.js +0 -31
  372. package/dist/assets/SuccessAnimation-C-AHWH-M-CjU-MXUl.js +0 -13
  373. package/dist/assets/SummaryCard-4S9PQQ5W-CVgFdJR5.js +0 -1
  374. package/dist/assets/TaskRoutes-C0KjnkWn.js +0 -9
  375. package/dist/assets/TransactionListPage-CEVs8CRQ-QOKs_8cL.js +0 -35
  376. package/dist/assets/VendorACHDetailsPage-KDUuJi9g-BUZn0dFZ.js +0 -1
  377. package/dist/assets/VendorDomesticWireDetailsPage-Dotx5CDo-vU-waasU.js +0 -1
  378. package/dist/assets/VendorInternationalWireSwiftDetailsPage-BRtCcxHm-DZLoEOh0.js +0 -1
  379. package/dist/assets/VideoPlayer-2MQyZqi6-5nZYmejT.js +0 -77
  380. package/dist/assets/VideoPopup-ZFwt4A81-Dd9BK3DZ.js +0 -31
  381. package/dist/assets/WiseConfirmationScreen-DTEzHq7k.js +0 -12
  382. package/dist/assets/common-BGuhvMjF-tZRLj5XI.js +0 -1
  383. package/dist/assets/mapLoadingInProgressToTreeNode-CG-v5g2M-nbDI__7a.js +0 -1
  384. package/dist/assets/mapSpacerToTreeNode-Cehw-jOG-51sSC6Cr.js +0 -1
  385. package/dist/assets/mapTimeframeBalancesToTreeNode-yMo9FeMO-0qqS0Teo.js +0 -1
  386. package/dist/assets/toCOABalancesWithID-DinJUeg4-BB91BzEv.js +0 -1
@@ -1,11 +1,11 @@
1
- import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as he,aL as ge,E as xe,aM as Ee,o as a,aN as ye,t as f,ap as h}from"./index-DGfOhpD2.js";import{a as o,b as Ce}from"./sentry-COYnhuxW.js";import{n as l}from"./mui-40xepic5.js";import{bm as we}from"./zeni-epic-state-DCforPdM.js";import{v as Ae}from"./DashboardSidebarBackgroundAnimation-DPDd6e7b-D-b2dmJD.js";import"./pdf-A8jRKyoC.js";import"./core-B0nKoasK.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.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]="707cd39c-d3f5-4efc-80d2-2cdf2e1067e4",e._sentryDebugIdIdentifier="sentry-dbid-707cd39c-d3f5-4efc-80d2-2cdf2e1067e4")}catch{}})();const ke=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomNewYear",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(ve,{children:n.jsx(h,{style:{display:"flex",width:"70px",height:"140px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),ve=l.div`
1
+ import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as he,aK as fe,aL as ge,E as xe,aM as Ee,o as a,aN as ye,v as h,ap as f}from"./index-BHAcVHeH.js";import{a as o,b as Ce}from"./sentry-CY6wsJT-.js";import{n as l}from"./mui-Cni6P-fz.js";import{bm as we}from"./zeni-epic-state-cFF_NqwA.js";import{v as Ae}from"./DashboardSidebarBackgroundAnimation-DsWKmIXY-BuOmk2Nk.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="5c157eb0-7d4c-47ea-964f-5e3496b40941",e._sentryDebugIdIdentifier="sentry-dbid-5c157eb0-7d4c-47ea-964f-5e3496b40941")}catch{}})();const ke=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomNewYear",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Se,{children:n.jsx(f,{style:{display:"flex",width:"70px",height:"140px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Se=l.div`
2
2
  position: absolute;
3
3
  z-index: 0;
4
4
  bottom: -${a.sp3};
5
5
  display: flex;
6
6
  height: auto;
7
7
  right: ${a.sp0};
8
- `,je=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomChristmas",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Se,{children:n.jsx(h,{style:{display:"flex",width:"240px",height:"98px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Se=l.div`
8
+ `,ve=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomChristmas",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(je,{children:n.jsx(f,{style:{display:"flex",width:"240px",height:"98px"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),je=l.div`
9
9
  position: absolute;
10
10
  z-index: 0;
11
11
  bottom: ${a.sp0};
@@ -13,7 +13,7 @@ import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as
13
13
  height: auto;
14
14
  right: ${a.sp0};
15
15
  width: 100%;
16
- `,De=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomHalloween",e),[t,r]=o.useState(null);return i!=null&&t==null&&!s&&r(i),e&&t!=null?n.jsx($e,{children:n.jsx(h,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),$e=l.div`
16
+ `,De=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomHalloween",e),[t,r]=o.useState(null);return i!=null&&t==null&&!s&&r(i),e&&t!=null?n.jsx($e,{children:n.jsx(f,{style:{display:"flex",width:"60px",height:"60px",marginLeft:"20%",marginTop:"10%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),$e=l.div`
17
17
  position: absolute;
18
18
  z-index: 0;
19
19
  width: 100%;
@@ -25,14 +25,14 @@ import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as
25
25
  background-repeat: no-repeat;
26
26
  background-position-y: bottom;
27
27
  left: 0;
28
- `,Te=o.memo(function({animationEnabled:e=!1}){const[i,s]=f("DashboardSidebarBottomThanksgiving",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Ie,{children:n.jsx(h,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Ie=l.div`
28
+ `,Te=o.memo(function({animationEnabled:e=!1}){const[i,s]=h("DashboardSidebarBottomThanksgiving",e),[t,r]=o.useState(null);return o.useEffect(()=>{i!=null&&!s&&r(i)},[i,s]),e&&t!=null?n.jsx(Ie,{children:n.jsx(f,{style:{display:"flex",width:"100px",height:"100px",marginLeft:"45%"},animationData:t,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})}):null}),Ie=l.div`
29
29
  position: absolute;
30
30
  z-index: 0;
31
31
  bottom: ${a.sp0};
32
32
  display: flex;
33
33
  height: auto;
34
34
  right: ${a.sp0};
35
- `,Me=o.memo(function({christmasAnimationEnabled:e=!1,halloweenAnimationEnabled:i=!1,newYearAnimationEnabled:s=!1,thanksGivingAnimationEnabled:t=!1}){return i?n.jsx(De,{animationEnabled:i}):t?n.jsx(Te,{animationEnabled:t}):e?n.jsx(je,{animationEnabled:e}):s?n.jsx(ke,{animationEnabled:s}):null}),Fe=l.div`
35
+ `,Me=o.memo(function({christmasAnimationEnabled:e=!1,halloweenAnimationEnabled:i=!1,newYearAnimationEnabled:s=!1,thanksGivingAnimationEnabled:t=!1}){return i?n.jsx(De,{animationEnabled:i}):t?n.jsx(Te,{animationEnabled:t}):e?n.jsx(ve,{animationEnabled:e}):s?n.jsx(ke,{animationEnabled:s}):null}),Fe=l.div`
36
36
  display: flex;
37
37
  flex: 1 1 auto;
38
38
  flex-direction: column;
@@ -89,4 +89,4 @@ import{_ as ce,aE as pe,aF as ue,aG as p,aH as me,V as n,aI as be,aJ as fe,aK as
89
89
  height: ${a.sp4};
90
90
  align-items: center;
91
91
  justify-content: center;
92
- `;function Xe({currentTenantId:e,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,isChargeCardEnabled:T,rewardsConfiguration:I,selectedMenu:M,isTenantDropdownDisabled:F,isSettings:u=!1,isAiCfo:V=!1,isOnDashboard:P,isAiCfoAccessEnabled:Y,isNotificationsTabVisible:z,isSettingsFeatureEnabled:y,signedInUser:g,aiCfoView:R,currentTenant:C,christmasAnimationEnabled:x=!1,halloweenAnimationEnabled:w=!1,newYearAnimationEnabled:A=!1,thanksGivingAnimationEnabled:k=!1,notificationCountDetails:m,isExpenseAutomationEnabledForUser:B,isTaskManagerAccessEnabled:N,treasuryYieldPercentage:U,onNotificationIconClick:_,handleLogOutClick:L,handleMenuChange:G,onZeniLogoClick:H,handlePopupClose:O,handleBackClick:v,handleCockpitClick:K,handleMyProfileClick:j,handleReferralsClick:Z,handleTenantSelect:J,onDeleteChatSession:W,updateCurrentChatSessionId:q}){const[d,Q]=o.useState(u&&y),E=Ce.useRef("noAnimation"),S=we(g),X=ce(),{useFeatureGate:c,useDynamicConfig:ee}=pe(),{configValue:D}=ee(ue.expenseAutomationEnablementZeniUsers),ne=Array.isArray(D?.expenseAutomationEnabledCompanies)?D.expenseAutomationEnabledCompanies:[],{isFeatureEnabled:ie}=c(p.isReimbursementCommentingEnabled),{isFeatureEnabled:ae}=c(p.isBillPayCommentingEnabled),{isFeatureEnabled:te}=c(p.isExpenseAutomationEnabledV2),{isFeatureEnabled:se}=c(p.isTreasuryCommentingEnabled),{isFeatureEnabled:oe}=c(p.isCheckingCommentingEnabled),le=me();o.useEffect(()=>{u!==d&&Q(u)},[u,d]);const b=m?.fetchStatus.fetchState==="Not-Started"||m?.fetchStatus.fetchState==="In-Progress",re=E.current,de=S||(ie||ae||te||se||oe)&&!X.loggedInUserRole.includes("investor_or_banker");return n.jsxs(Fe,{isOnDashboard:P,children:[n.jsxs(Ve,{children:[n.jsx(be,{onClick:H,halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A}),n.jsx(fe,{currentTenantId:e??"",tenants:i,isDisabled:F,isZeniUser:S,expenseAutomationEnabledCompanies:ne,onTenantSelect:J})]}),n.jsx(Pe,{children:n.jsx(he,{className:re,signedInUser:g,selectedMenu:M,currentTenant:C,isVendorsTabVisible:s,rewardsConfiguration:I,isSetting:d,isAiCfo:V,isAiCfoAccessEnabled:Y,aiCfoView:R,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,treasuryYieldPercentage:U,isChargeCardEnabled:T,isNotificationsTabVisible:z,isPerformanceEnabledForUser:le,isExpenseAutomationEnabledForUser:B,isTaskManagerAccessEnabled:N,onSelectionChanged:G,onDeleteChatSession:W,updateCurrentChatSessionId:q,onBackClick:()=>{E.current="slide-in-left-to-right",d&&v&&v()},onPopupClose:O})}),n.jsx(Ae,{christmasAnimationEnabled:x}),n.jsxs(Ye,{children:[n.jsx(ge,{signedInUser:g,onLogOutClick:L,onMyProfileClick:()=>{E.current="slide-in-right-to-left",j&&j()},onReferralsClick:Z,onCockpitClick:K,currentTenant:C,isSettingsFeatureEnabled:y}),de?n.jsx(xe,{controller:m!=null,children:n.jsxs(ze,{isDisabled:b,onClick:b?void 0:_,"data-testid":"notification-icon",children:[n.jsx(Ee,{count:b?void 0:m?.count,type:"important",isLoading:b,style:{left:"12px"}}),n.jsx(Re,{})]})}):null]}),n.jsx(Me,{halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A})]},d.toString())}export{Xe as default};
92
+ `;function Xe({currentTenantId:e,tenants:i,isVendorsTabVisible:s,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,isChargeCardEnabled:T,rewardsConfiguration:I,selectedMenu:M,isTenantDropdownDisabled:F,isSettings:u=!1,isAiCfo:V=!1,isOnDashboard:P,isAiCfoAccessEnabled:Y,isNotificationsTabVisible:z,isSettingsFeatureEnabled:y,signedInUser:g,aiCfoView:R,currentTenant:C,christmasAnimationEnabled:x=!1,halloweenAnimationEnabled:w=!1,newYearAnimationEnabled:A=!1,thanksGivingAnimationEnabled:k=!1,notificationCountDetails:m,isExpenseAutomationEnabledForUser:B,isTaskManagerAccessEnabled:N,treasuryYieldPercentage:U,onNotificationIconClick:_,handleLogOutClick:L,handleMenuChange:G,onZeniLogoClick:H,handlePopupClose:O,handleBackClick:S,handleCockpitClick:K,handleMyProfileClick:v,handleReferralsClick:Z,handleTenantSelect:J,onDeleteChatSession:W,updateCurrentChatSessionId:q}){const[d,Q]=o.useState(u&&y),E=Ce.useRef("noAnimation"),j=we(g),X=ce(),{useFeatureGate:c,useDynamicConfig:ee}=pe(),{configValue:D}=ee(ue.expenseAutomationEnablementZeniUsers),ne=Array.isArray(D?.expenseAutomationEnabledCompanies)?D.expenseAutomationEnabledCompanies:[],{isFeatureEnabled:ie}=c(p.isReimbursementCommentingEnabled),{isFeatureEnabled:ae}=c(p.isBillPayCommentingEnabled),{isFeatureEnabled:te}=c(p.isExpenseAutomationEnabledV2),{isFeatureEnabled:se}=c(p.isTreasuryCommentingEnabled),{isFeatureEnabled:oe}=c(p.isCheckingCommentingEnabled),le=me();o.useEffect(()=>{u!==d&&Q(u)},[u,d]);const b=m?.fetchStatus.fetchState==="Not-Started"||m?.fetchStatus.fetchState==="In-Progress",re=E.current,de=j||(ie||ae||te||se||oe)&&!X.loggedInUserRole.includes("investor_or_banker");return n.jsxs(Fe,{isOnDashboard:P,children:[n.jsxs(Ve,{children:[n.jsx(be,{onClick:H,halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A}),n.jsx(he,{currentTenantId:e??"",tenants:i,isDisabled:F,isZeniUser:j,expenseAutomationEnabledCompanies:ne,onTenantSelect:J})]}),n.jsx(Pe,{children:n.jsx(fe,{className:re,signedInUser:g,selectedMenu:M,currentTenant:C,isVendorsTabVisible:s,rewardsConfiguration:I,isSetting:d,isAiCfo:V,isAiCfoAccessEnabled:Y,aiCfoView:R,isZeniAccountEnabled:t,isTreasuryEnabled:r,isTreasuryPopupVisible:$,treasuryYieldPercentage:U,isChargeCardEnabled:T,isNotificationsTabVisible:z,isPerformanceEnabledForUser:le,isExpenseAutomationEnabledForUser:B,isTaskManagerAccessEnabled:N,onSelectionChanged:G,onDeleteChatSession:W,updateCurrentChatSessionId:q,onBackClick:()=>{E.current="slide-in-left-to-right",d&&S&&S()},onPopupClose:O})}),n.jsx(Ae,{christmasAnimationEnabled:x}),n.jsxs(Ye,{children:[n.jsx(ge,{signedInUser:g,onLogOutClick:L,onMyProfileClick:()=>{E.current="slide-in-right-to-left",v&&v()},onReferralsClick:Z,onCockpitClick:K,currentTenant:C,isSettingsFeatureEnabled:y}),de?n.jsx(xe,{controller:m!=null,children:n.jsxs(ze,{isDisabled:b,onClick:b?void 0:_,"data-testid":"notification-icon",children:[n.jsx(Ee,{count:b?void 0:m?.count,type:"important",isLoading:b,style:{left:"12px"}}),n.jsx(Re,{})]})}):null]}),n.jsx(Me,{halloweenAnimationEnabled:w,thanksGivingAnimationEnabled:k,christmasAnimationEnabled:x,newYearAnimationEnabled:A})]},d.toString())}export{Xe as default};
@@ -1,4 +1,4 @@
1
- import{y as U,e as F,_ as V,O as p,ad as y,V as t,a_ as E,L as G,eZ as b,d4 as S,x as d,o as k,H as J,w as j,k as i}from"./index-DGfOhpD2.js";import{n as l}from"./mui-40xepic5.js";import{FZ as N,F_ as Z}from"./zeni-epic-state-DCforPdM.js";import"./sentry-COYnhuxW.js";import"./pdf-A8jRKyoC.js";import"./core-B0nKoasK.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.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]="17d36a02-c565-4f47-8904-a36ffb9b9989",e._sentryDebugIdIdentifier="sentry-dbid-17d36a02-c565-4f47-8904-a36ffb9b9989")}catch{}})();const a={sectionRowGap:new d(i[4],i[8],i[8]),lastSectionPaddingBottom:new d(i[7],i[10],i[10]),iconWidthHeight:new d(20,i[4]),subtitleSectionWidth:new d(343,580,1200)},me=({billpayApprovalView:e,remiApproverView:n,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:T})=>{const r=U(),o=F(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:z}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=n,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,x=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:_}=B,{reimbursementSetup:L}=M,{setUp:s}=A,W=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new y(r.colors.brandColorJadeLight):new y(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=Z(c,u.loggedInUserRoleMap);return t.jsxs(q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:P}),t.jsx(K,{windowSize:o,children:W?t.jsx(Q,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(Y,{windowSize:o,children:t.jsx(ee,{windowSize:o,children:w.infoText.approvalRules})}),t.jsxs(X,{windowSize:o,children:[D===!0&&t.jsx(b,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:_.approvalSubTitle,header:x.bills,icon:{element:t.jsx(S,{width:a.iconWidthHeight.valuePx(o),height:a.iconWidthHeight.valuePx(o)}),color:v},onClick:I,status:m.length>0?z:void 0}),H===!0&&t.jsx(b,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:x.reimbursements,icon:{element:t.jsx(S,{height:a.iconWidthHeight.valuePx(o)}),color:v},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(o)},onClick:T,status:f.length>0?C:void 0})]})]})})]})},O=l.div`
1
+ import{y as U,e as F,_ as V,O as p,ad as y,V as t,a_ as E,L as G,eZ as b,d4 as S,x as d,o as k,H as J,w as j,m as i}from"./index-BHAcVHeH.js";import{n as l}from"./mui-Cni6P-fz.js";import{FZ as N,F_ as Z}from"./zeni-epic-state-cFF_NqwA.js";import"./sentry-CY6wsJT-.js";import"./pdf-CTJ16aEe.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.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]="7d54f4eb-b792-4029-ad8f-f2a34a86132a",e._sentryDebugIdIdentifier="sentry-dbid-7d54f4eb-b792-4029-ad8f-f2a34a86132a")}catch{}})();const a={sectionRowGap:new d(i[4],i[8],i[8]),lastSectionPaddingBottom:new d(i[7],i[10],i[10]),iconWidthHeight:new d(20,i[4]),subtitleSectionWidth:new d(343,580,1200)},me=({billpayApprovalView:e,remiApproverView:n,currentTenant:c,onBackClick:R,onClickMenuIcon:P,onSetupApprovalRulesBillPaySectionClick:I,onSetupApprovalRulesRemiSectionClick:T})=>{const r=U(),o=F(),u=V(),{fetchState:g,allApprovalRules:m,approvalRulesStatus:z}=e,{fetchState:h,allApprovalRules:f,approvalRulesStatus:C}=n,{commonSetUp:A,spendManagement:$}=p.getLocalizedStrings(),w=p.getLocalizedStrings().common.settings,x=p.getLocalizedStrings().common.headers,{billPay:B,reimbursement:M}=$,{billPaySetup:_}=B,{reimbursementSetup:L}=M,{setUp:s}=A,W=g==="In-Progress"||h==="In-Progress"||g==="Not-Started"||h==="Not-Started",v=r.mode==="light"?new y(r.colors.brandColorJadeLight):new y(r.colors.brandColorJadeDark),D=N(c,u.loggedInUserRoleMap),H=Z(c,u.loggedInUserRoleMap);return t.jsxs(q,{children:[t.jsx(E,{source:"ApprovalRulesSettingsPage",title:w.title.approvalRules,backgroundColor:r.colors.grey4,style:{zIndex:3},onBackClick:R,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:P}),t.jsx(K,{windowSize:o,children:W?t.jsx(Q,{children:t.jsx(G,{size:"ExtraLarge",start:!0})}):t.jsxs(O,{children:[t.jsx(Y,{windowSize:o,children:t.jsx(ee,{windowSize:o,children:w.infoText.approvalRules})}),t.jsxs(X,{windowSize:o,children:[D===!0&&t.jsx(b,{title:m.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:_.approvalSubTitle,header:x.bills,icon:{element:t.jsx(S,{width:a.iconWidthHeight.valuePx(o),height:a.iconWidthHeight.valuePx(o)}),color:v},onClick:I,status:m.length>0?z:void 0}),H===!0&&t.jsx(b,{title:f.length>0?s.approvalTitle:s.createApprovalTitle,subTitle:L.approvalSubTitle,header:x.reimbursements,icon:{element:t.jsx(S,{height:a.iconWidthHeight.valuePx(o)}),color:v},style:{paddingBottom:a.lastSectionPaddingBottom.valuePx(o)},onClick:T,status:f.length>0?C:void 0})]})]})})]})},O=l.div`
2
2
  width: 100%;
3
3
  margin: auto;
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{V as u,O as x,cA as w,y as P,an as K,k as v,w as S,ag as N,cB as T,cC as I,d as y,o as j,l as Y}from"./index-DGfOhpD2.js";import{a as k,b as H}from"./sentry-COYnhuxW.js";import{n as C}from"./mui-40xepic5.js";import{l as L,_ as R,h as W,m as q,u as D}from"./chartTypes-D2s_Hwo9-BrmnDHT7.js";import{cj as B,FK as O}from"./zeni-epic-state-DCforPdM.js";import{S as A,E as V,X as _,Y as F,F as G,K as M}from"./recharts-Bbdho9Pi.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]="1240869e-ab13-41f5-a957-5c2ba6ca0397",e._sentryDebugIdIdentifier="sentry-dbid-1240869e-ab13-41f5-a957-5c2ba6ca0397")}catch{}})();const J=C.div`
1
+ import{V as u,O as x,cA as w,y as P,an as K,m as v,w as S,ag as N,cB as T,cC as I,f as y,o as j,l as Y}from"./index-BHAcVHeH.js";import{a as k,b as J}from"./sentry-CY6wsJT-.js";import{n as C}from"./mui-Cni6P-fz.js";import{l as L,_ as R,h as W,m as q,u as D}from"./chartTypes-_AEkJ5Cg-CVupoc41.js";import{cj as B,FK as O}from"./zeni-epic-state-cFF_NqwA.js";import{S as A,E as V,X as _,Y as F,F as G,K as M}from"./recharts-LlOU9oLm.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]="5a5eb422-022f-4fbe-8645-ee6a26829de0",e._sentryDebugIdIdentifier="sentry-dbid-5a5eb422-022f-4fbe-8645-ee6a26829de0")}catch{}})();const H=C.div`
2
2
  display: flex;
3
3
  `,Q=C.div`
4
4
  flex: display;
@@ -15,7 +15,7 @@ import{V as u,O as x,cA as w,y as P,an as K,k as v,w as S,ag as N,cB as T,cC as
15
15
  width: 100%;
16
16
  height: 1px;
17
17
  background-color: ${y.neutralGrey3Dark};
18
- `,Z=({barLabelsWithValues:e})=>u.jsx(J,{children:u.jsxs(Q,{children:[u.jsx($,{color:e[0].color,children:`${e[0].barName}: ${D(e[0].actual)}`}),u.jsx(U,{}),u.jsx($,{children:`${x.getLocalizedStrings().chartCard.total}: ${D(e[1].actual)}`})]})}),X=H.memo(e=>{const s=(({active:o,payload:a,barName:r})=>{const c=[];if(a!=null&&o===!0){const l=a.filter(h=>h.name==r)[0],n=l.payload,d=l.color,t=r!=null&&n.record[r]!=null?n.record[r].amount:void 0,i={amount:0,currencyCode:"",currencySymbol:""};let m;for(m in n.record){const h=n.record[m].amount;i.amount+=n.record[m].amount?.amount??0,i.currencyCode=h!=null?h.currencyCode:i.currencyCode,i.currencySymbol=h!=null?h.currencySymbol:i.currencySymbol}const p=q(r);c.push({barName:p,actual:t,color:d}),c.push({barName:x.getLocalizedStrings().chartCard.total,actual:i,color:y.brandColorPearl})}return c})({...e});return s.length===0?null:u.jsx(Z,{barLabelsWithValues:s})});function E(e){const s=[];for(const o in e)s.push(o);return s.sort((o,a)=>(e[a].amount?.amount??0)-(e[o].amount?.amount??0)),s}const ee=e=>{const s=e.agingPeriods.map(a=>x.getLocalizedStrings().reports.aging.duration[a]),o=[];return{recordByDurations:e.agingPeriods.map(a=>{const r={};e.agingBalances.forEach(n=>{const d=L(n.vendor?.name??"",a);r[d]={amount:n.apAgingBalances.find(t=>t.period===a)?.balance}});const c=x.getLocalizedStrings().reports.aging.duration[a];if(Object.keys(r).length>5){const n=function(h){const g=T(h,(f,b)=>[f.amount?.amount??0,b]);return g.sort((f,b)=>b[0]-f[0]),g.slice(0,4).reduce((f,b)=>({...f,[b[1]]:!0}),{})}(r),d=w(r,(h,g)=>n[g]===!0),t=w(r,(h,g)=>n[g]!==!0),i=Object.keys(t).reduce((h,g)=>h+(t[g].amount?.amount??0),0),m=Object.keys(t)[0];d[L("Other",a)]={...t[m],amount:{amount:i,currencyCode:t[m].amount?.currencyCode??B.currencyCode,currencySymbol:t[m].amount?.currencySymbol??B.currencySymbol}};const p=E(d);return o.push(...p),{label:c,record:d}}const l=E(r);return o.push(...l),{label:c,record:r}}),durationLabels:s,orderedKeys:Array.from(o)}},te=C.div`
18
+ `,Z=({barLabelsWithValues:e})=>u.jsx(H,{children:u.jsxs(Q,{children:[u.jsx($,{color:e[0].color,children:`${e[0].barName}: ${D(e[0].actual)}`}),u.jsx(U,{}),u.jsx($,{children:`${x.getLocalizedStrings().chartCard.total}: ${D(e[1].actual)}`})]})}),X=J.memo(e=>{const s=(({active:o,payload:a,barName:r})=>{const c=[];if(a!=null&&o===!0){const l=a.filter(h=>h.name==r)[0],n=l.payload,d=l.color,t=r!=null&&n.record[r]!=null?n.record[r].amount:void 0,i={amount:0,currencyCode:"",currencySymbol:""};let m;for(m in n.record){const h=n.record[m].amount;i.amount+=n.record[m].amount?.amount??0,i.currencyCode=h!=null?h.currencyCode:i.currencyCode,i.currencySymbol=h!=null?h.currencySymbol:i.currencySymbol}const p=q(r);c.push({barName:p,actual:t,color:d}),c.push({barName:x.getLocalizedStrings().chartCard.total,actual:i,color:y.brandColorPearl})}return c})({...e});return s.length===0?null:u.jsx(Z,{barLabelsWithValues:s})});function E(e){const s=[];for(const o in e)s.push(o);return s.sort((o,a)=>(e[a].amount?.amount??0)-(e[o].amount?.amount??0)),s}const ee=e=>{const s=e.agingPeriods.map(a=>x.getLocalizedStrings().reports.aging.duration[a]),o=[];return{recordByDurations:e.agingPeriods.map(a=>{const r={};e.agingBalances.forEach(n=>{const d=L(n.vendor?.name??"",a);r[d]={amount:n.apAgingBalances.find(t=>t.period===a)?.balance}});const c=x.getLocalizedStrings().reports.aging.duration[a];if(Object.keys(r).length>5){const n=function(h){const g=T(h,(f,b)=>[f.amount?.amount??0,b]);return g.sort((f,b)=>b[0]-f[0]),g.slice(0,4).reduce((f,b)=>({...f,[b[1]]:!0}),{})}(r),d=w(r,(h,g)=>n[g]===!0),t=w(r,(h,g)=>n[g]!==!0),i=Object.keys(t).reduce((h,g)=>h+(t[g].amount?.amount??0),0),m=Object.keys(t)[0];d[L("Other",a)]={...t[m],amount:{amount:i,currencyCode:t[m].amount?.currencyCode??B.currencyCode,currencySymbol:t[m].amount?.currencySymbol??B.currencySymbol}};const p=E(d);return o.push(...p),{label:c,record:d}}const l=E(r);return o.push(...l),{label:c,record:r}}),durationLabels:s,orderedKeys:Array.from(o)}},te=C.div`
19
19
  width: ${e=>e.width}px;
20
20
  height: ${e=>e.height}px;
21
21
  `,re=({active:e,payload:s,mouseOverBarName:o})=>s?.find(a=>a.name===o)!=null&&o!=null&&e===!0?u.jsx(X,{active:e,payload:s,barName:o}):null;function pe({report:e,width:s,height:o,isDetailPage:a}){const r=k.useRef(!1),[c,l]=k.useState(void 0);k.useEffect(()=>{r.current=!0},[]);const n=ee(e),d=(t,i)=>u.jsx(M,{name:t,animationDuration:i?500:void 0,style:{cursor:"pointer"},dataKey:m=>{const p=m.record;return(p[t]?.amount!=null?p[t].amount:void 0)?.amount??0},stackId:"a",fill:ae(t,n),onMouseEnter:()=>{c!==t&&l(t)},onMouseLeave:()=>{c!=null&&l(void 0)}},t);return n==null?null:u.jsx(oe,{chartData:n,barElements:(()=>{const t=[];return n?.orderedKeys.forEach(i=>{const m=a===!0&&!r.current;t.push(d(i,m))}),t})(),width:s,height:o,isDetailPage:a===!0,customToolTipContent:u.jsx(re,{mouseOverBarName:c})})}const oe=({chartData:e,barElements:s,customToolTipContent:o,width:a,height:r,isDetailPage:c})=>{const l=P(),n=R(e);return u.jsx(te,{width:a,height:r,children:u.jsx(K,{children:({height:d,width:t})=>u.jsxs(A,{width:t,height:d,stackOffset:"sign",data:e.recordByDurations,barCategoryGap:"25%",maxBarSize:c?v[8]:v[3],margin:{top:5,right:20,left:0,bottom:5},style:{display:"flex",flex:"1 1 auto"},children:[u.jsx(V,{horizontal:!0,vertical:!1,strokeWidth:.5,stroke:l.colors.grey3}),u.jsx(_,{dataKey:i=>i.label,type:"category",axisLine:{stroke:l.colors.grey3,strokeWidth:.5},tickLine:!1,tick:{color:l.colors.hero,...S.extraSmallRegular.cssObject}}),u.jsx(F,{type:"number",axisLine:!1,tickLine:!1,tick:{color:l.colors.hero,...S.extraSmallRegular.cssObject},tickFormatter:i=>N("0,0.[00]a",i,n)}),u.jsx(G,{wrapperStyle:{zIndex:2},cursor:!1,content:o,allowEscapeViewBox:{x:!1,y:!0}}),s]})})})};function ae(e,s){const o=W(e),a=x.getLocalizedStrings().reports.aging.duration[o],r=s?.recordByDurations.find(c=>c.label===a)?.record;if(r?.[e]!=null){const c=r[e].amount?.amount??0;let l=1;switch(I(r,n=>{(n.amount?.amount??0)>c&&l++}),l){case 1:return y.graphColor24;case 2:return y.graphColor33;case 3:return y.graphColor18;case 4:return y.graphColor12;default:return y.graphColor01}}return y.graphColor01}function z(e){const s=[];for(const o in e)s.push(o);return s.sort((o,a)=>(e[a].amount?.amount??0)-(e[o].amount?.amount??0)),s}const ne=e=>{const s=e.agingPeriods.map(a=>x.getLocalizedStrings().reports.aging.duration[a]),o=[];return{recordByDurations:e.agingPeriods.map(a=>{const r={};e.agingBalances.forEach(n=>{const d=L(n.customer?.name??"",a),t=n.arAgingBalances.find(i=>i.period===a);r[d]={amount:n.children.length>0?t?.totalBalance:t?.balance}});const c=x.getLocalizedStrings().reports.aging.duration[a];if(Object.keys(r).length>5){const n=function(h){const g=T(h,(f,b)=>[f.amount?.amount??0,b]);return g.sort((f,b)=>b[0]-f[0]),g.slice(0,4).reduce((f,b)=>({...f,[b[1]]:!0}),{})}(r),d=w(r,(h,g)=>n[g]===!0),t=w(r,(h,g)=>n[g]!==!0),i=Object.keys(t).reduce((h,g)=>h+(t[g].amount?.amount??0),0),m=Object.keys(t)[0];d[L("Other",a)]={...t[m],amount:{amount:i,currencyCode:t[m].amount?.currencyCode??O.currencyCode,currencySymbol:t[m].amount?.currencySymbol??O.currencySymbol}};const p=z(d);return o.push(...p),{label:c,record:d}}const l=z(r);return o.push(...l),{label:c,record:r}}),durationLabels:s,orderedKeys:Array.from(o)}},se=C.div`
@@ -1,16 +1,16 @@
1
- import{y as G,e as Q,V as o,bd as W,aZ as X,bN as ee,a_ as oe,O as C,o as T,ab as te,x as A,a$ as re,bJ as ae,bK as ne,bL as ie,k as u}from"./index-DGfOhpD2.js";import{a as D}from"./sentry-COYnhuxW.js";import{n as a}from"./mui-40xepic5.js";import{m as se}from"./BusyIndication-H_iNZOWd-YzpZR-Jd.js";import{L as le,D as de}from"./EntitySummarySection-D1o-WKT9-D_I5HHZG.js";import"./pdf-A8jRKyoC.js";import"./zeni-epic-state-DCforPdM.js";import"./core-B0nKoasK.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.js";import"./agingReportHelper-ovKP-qSS-CbeRQDiP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d5bad37b-684e-421e-9b62-7759a5d71a9b",e._sentryDebugIdIdentifier="sentry-dbid-d5bad37b-684e-421e-9b62-7759a5d71a9b")}catch{}})();const b={wrapperContainerMarginTop:new A(u[4],u[0]),wrapperContaineHorizontalrMargin:new A(u[0],u[8])},{common:ce,reports:{common:me,aging:{agingDetail:ge}},dateFormat:N}=C.getLocalizedStrings();function Fe(e){const l=G(),d=Q(),{arAgingDetail:t,downloadParams:y,reportDate:n,analytics:c,onReload:O,onBackClick:F,onColumnSortConfigChanged:_,updateDownloadStateHandler:f,onTransactionClick:Y,sidePanelIsOpen:E,sidePanelIsFullView:L,panelContent:R}=e,{authParams:S,downloadEndPoint:k,timezone:I}=y,{fetchState:m,invoices:v,arAgingDetailUIState:P,customer:r,totalBalances:B}=t,{sortKey:h,sortOrder:w,downloadState:g}=P,[$,j]=D.useState(!1),H=D.useCallback((i,p)=>{t.customer!=null&&c.trackArAgingDetailReportSortChange(i,p,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name),_(i,p)},[t.customer,_,c,n]);if(D.useEffect(()=>{$&&g!=="In-Progress"&&(j(!1),f("In-Progress"),async function(){const i={companyName:y.companyName,sortKey:h,sortOrder:w,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:r?.id??"",timezone:I,reportDate:n};await async function(p,J,V){const U=`${p}?query=${encodeURIComponent(JSON.stringify(pe(V)))}`,z=C.getLocalizedStrings(),M=z.reports.aging.arAging.arAging,x=z.download;try{const s=await ae({urlEndPoint:U,authParams:J,fileType:"excel"});if(s.ok){const q=ne(s.headers,x.defaultFileName),Z=await s.arrayBuffer();ie(Z,q)}else console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${s.statusText}`)}catch(s){console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${JSON.stringify(s)}`)}}(k,S,i),f("Completed"),t.customer!=null&&c.trackApAgingDetailReportDownload(h,w,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name)}())},[S,k,y.companyName,g,$,n,h,w,I,f,r?.id,t.customer,c]),m==="Error")return o.jsxs(ye,{children:[o.jsx(fe,{onClick:O,children:o.jsx(W,{})}),o.jsx(he,{children:me.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(se,{fetchState:m});const K=o.jsx(re,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:g==="In-Progress"}],onDownloadClick:async i=>{if(i==="excel"){if(g==="In-Progress")return void console.log("Download is already in progress!");j(!0)}}}}});return o.jsx(X,{isOpen:E??!1,isFullView:L??!1,panelContent:R,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(oe,{title:ce.strings.empty,backgroundColor:l.colors.grey5,onBackClick:F,rightSideComponent:K,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(de,{totalBalances:B,entityName:r?.name??"",entityLogo:r?.logo,reportId:"accounts_receivable_aging",reportDate:n})]}),listContent:o.jsx(we,{children:o.jsx(xe,{windowSize:d,children:o.jsx(De,{windowSize:d,children:v.length===0||r==null?o.jsx(ee,{message:ge.noDataText}):o.jsx(ue,{windowSize:d,children:o.jsx(le,{uiState:P,invoices:v,entityName:r.name,entityLogo:r.logo,onColumnSortConfigChanged:H,onTransactionClick:Y})})})})})})}function pe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:C.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const ue=a.div`
1
+ import{y as G,e as Q,V as o,bd as W,aZ as X,bN as ee,a_ as oe,O as C,o as T,ab as te,x as A,a$ as re,bJ as ae,bK as ne,bL as ie,m as u}from"./index-BHAcVHeH.js";import{a as D}from"./sentry-CY6wsJT-.js";import{n as a}from"./mui-Cni6P-fz.js";import{m as se}from"./BusyIndication-BZLVwIo8-6s8wSi7T.js";import{L as le,D as de}from"./EntitySummarySection-B2uG3-Zh-DoF2hAYB.js";import"./pdf-CTJ16aEe.js";import"./zeni-epic-state-cFF_NqwA.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";import"./agingReportHelper-ovKP-qSS-CbeRQDiP.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="d59524d5-847d-4f0a-abcf-ab0ef2d169dc",e._sentryDebugIdIdentifier="sentry-dbid-d59524d5-847d-4f0a-abcf-ab0ef2d169dc")}catch{}})();const b={wrapperContainerMarginTop:new A(u[4],u[0]),wrapperContaineHorizontalrMargin:new A(u[0],u[8])},{common:ce,reports:{common:me,aging:{agingDetail:ge}},dateFormat:N}=C.getLocalizedStrings();function Fe(e){const l=G(),d=Q(),{arAgingDetail:t,downloadParams:f,reportDate:n,analytics:c,onReload:O,onBackClick:F,onColumnSortConfigChanged:_,updateDownloadStateHandler:y,onTransactionClick:Y,sidePanelIsOpen:E,sidePanelIsFullView:L,panelContent:R}=e,{authParams:S,downloadEndPoint:I,timezone:k}=f,{fetchState:m,invoices:v,arAgingDetailUIState:P,customer:r,totalBalances:B}=t,{sortKey:h,sortOrder:w,downloadState:g}=P,[$,j]=D.useState(!1),H=D.useCallback((i,p)=>{t.customer!=null&&c.trackArAgingDetailReportSortChange(i,p,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name),_(i,p)},[t.customer,_,c,n]);if(D.useEffect(()=>{$&&g!=="In-Progress"&&(j(!1),y("In-Progress"),async function(){const i={companyName:f.companyName,sortKey:h,sortOrder:w,statementFileType:"excel",reportId:"accounts_receivable_aging",entityId:r?.id??"",timezone:k,reportDate:n};await async function(p,J,V){const U=`${p}?query=${encodeURIComponent(JSON.stringify(pe(V)))}`,z=C.getLocalizedStrings(),M=z.reports.aging.arAging.arAging,x=z.download;try{const s=await ae({urlEndPoint:U,authParams:J,fileType:"excel"});if(s.ok){const q=ne(s.headers,x.defaultFileName),Z=await s.arrayBuffer();ie(Z,q)}else console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${s.statusText}`)}catch(s){console.error(`${x.errorMessages.fileDownloadError.replace("__feature__",M)} ${JSON.stringify(s)}`)}}(I,S,i),y("Completed"),t.customer!=null&&c.trackApAgingDetailReportDownload(h,w,n.format(N.analytics.YYYYDashMMDashDDFormat),t.customer.id,t.customer.name)}())},[S,I,f.companyName,g,$,n,h,w,k,y,r?.id,t.customer,c]),m==="Error")return o.jsxs(fe,{children:[o.jsx(ye,{onClick:O,children:o.jsx(W,{})}),o.jsx(he,{children:me.failed})]});if(m==="In-Progress"||m==="Not-Started")return o.jsx(se,{fetchState:m});const K=o.jsx(re,{downloadReportOptions:{type:"simple_menu",downloadMenu:{simpleMenuItems:[{type:"excel",isDisabled:!1,isDownloading:g==="In-Progress"}],onDownloadClick:async i=>{if(i==="excel"){if(g==="In-Progress")return void console.log("Download is already in progress!");j(!0)}}}}});return o.jsx(X,{isOpen:E??!1,isFullView:L??!1,panelContent:R,headerContent:o.jsxs(o.Fragment,{children:[o.jsx(oe,{title:ce.strings.empty,backgroundColor:l.colors.grey5,onBackClick:F,rightSideComponent:K,downloadPresent:!0,source:"ArAgingDetailPage"}),o.jsx(de,{totalBalances:B,entityName:r?.name??"",entityLogo:r?.logo,reportId:"accounts_receivable_aging",reportDate:n})]}),listContent:o.jsx(we,{children:o.jsx(xe,{windowSize:d,children:o.jsx(De,{windowSize:d,children:v.length===0||r==null?o.jsx(ee,{message:ge.noDataText}):o.jsx(ue,{windowSize:d,children:o.jsx(le,{uiState:P,invoices:v,entityName:r.name,entityLogo:r.logo,onColumnSortConfigChanged:H,onTransactionClick:Y})})})})})})}function pe(e){return{statement_file_type:e.statementFileType,report_id:e.reportId,company_name:e.companyName,locale_id:C.getAppLocaleID(),sort_key:e.sortKey,sort_order:e.sortOrder,entity_id:e.entityId,report_date:e.reportDate,timezone:e.timezone}}const ue=a.div`
2
2
  height: 100%;
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  max-width: 99.9%;
6
- `,ye=a.div`
6
+ `,fe=a.div`
7
7
  display: flex;
8
8
  width: 100%;
9
9
  height: calc(100% - 60px);
10
10
  flex-direction: column;
11
11
  justify-content: center;
12
12
  align-items: center;
13
- `,fe=a.div`
13
+ `,ye=a.div`
14
14
  height: 96px;
15
15
  width: 96px;
16
16
  background: ${e=>e.theme.colors.background};
@@ -1,4 +1,4 @@
1
- import{e as b,O as w,y as U,V as l,f_ as B,fX as j,fY as V,bn as _,P as C,eU as R,o as a,at as O,f$ as S,d as k,cp as M}from"./index-DGfOhpD2.js";import{a as e}from"./sentry-COYnhuxW.js";import{n as r}from"./mui-40xepic5.js";import"./pdf-A8jRKyoC.js";import"./zeni-epic-state-DCforPdM.js";import"./core-B0nKoasK.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./plaid-cfgjTkr8.js";import"./utils-DMEPgX6w.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="9ea11a7b-dfc2-4f59-8a24-a1351731fcb0",t._sentryDebugIdIdentifier="sentry-dbid-9ea11a7b-dfc2-4f59-8a24-a1351731fcb0")}catch{}})();const $=r.div`
1
+ import{e as b,O as w,y as U,V as l,f_ as B,fX as j,fY as V,bn as _,b as C,eU as R,o as a,at as O,f$ as S,f as k,cp as M}from"./index-BHAcVHeH.js";import{a as e}from"./sentry-CY6wsJT-.js";import{n as r}from"./mui-Cni6P-fz.js";import"./pdf-CTJ16aEe.js";import"./zeni-epic-state-cFF_NqwA.js";import"./core-oEkj6b51.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./plaid-B2vW8NaN.js";import"./utils-ChLimP28.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="01decc6a-c3f9-4030-8b82-26cdd767c5a0",t._sentryDebugIdIdentifier="sentry-dbid-01decc6a-c3f9-4030-8b82-26cdd767c5a0")}catch{}})();const $=r.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  box-sizing: border-box;
@@ -1,14 +1,14 @@
1
- import{e as $,V as i,P as p,j as g,bk as x,o as e,aQ as y,b6 as b,x as c,l as j,k as h}from"./index-DGfOhpD2.js";import{a as S}from"./sentry-COYnhuxW.js";import{n as s,c as z}from"./mui-40xepic5.js";import{J as v}from"./CollapsableReportTable-BhbPzkAB-CdpUmH6m.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="d92f6d88-0003-471c-b65f-5a8733e541be",o._sentryDebugIdIdentifier="sentry-dbid-d92f6d88-0003-471c-b65f-5a8733e541be")}catch{}})();const w={tooltipLeftPosition:new c(h[0],-156),tooltipTopPosition:new c(h[3],h[4]),tooltipWidth:new c(300,350)},m=z`
1
+ import{e as $,V as i,b as p,k as g,bk as x,o as e,aQ as y,b6 as b,x as c,l as S,m as h}from"./index-BHAcVHeH.js";import{a as j}from"./sentry-CY6wsJT-.js";import{n as s,c as z}from"./mui-Cni6P-fz.js";import{J as v}from"./CollapsableReportTable-D7zD4-h0-CdsTnLhf.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new o.Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="829157ad-b15e-4e45-a85f-44a36fb92a1e",o._sentryDebugIdIdentifier="sentry-dbid-829157ad-b15e-4e45-a85f-44a36fb92a1e")}catch{}})();const w={tooltipLeftPosition:new c(h[0],-156),tooltipTopPosition:new c(h[3],h[4]),tooltipWidth:new c(300,350)},m=z`
2
2
  position: relative;
3
- `,k=s.div`
3
+ `,T=s.div`
4
4
  color: ${o=>o.theme.colors.primary};
5
5
  ${o=>o.windowSize==="small"?m:null}
6
- `,P=s(x)``,T=s.div`
6
+ `,k=s(x)``,D=s.div`
7
7
  display: inline-block;
8
8
  padding-left: ${e.sp2};
9
9
  vertical-align: middle;
10
10
  ${o=>o.windowSize!=="small"?m:null}
11
- `,D=s(y)`
11
+ `,P=s(y)`
12
12
  padding-left: ${e.sp3};
13
13
  `,I=s(b)`
14
14
  width: ${e.sp4};
@@ -33,6 +33,6 @@ import{e as $,V as i,P as p,j as g,bk as x,o as e,aQ as y,b6 as b,x as c,l as j,
33
33
  left: ${o=>w.tooltipLeftPosition.valuePx(o.windowSize)};
34
34
  width: ${o=>w.tooltipWidth.valuePx(o.windowSize)};
35
35
  top: calc(100% + ${o=>w.tooltipTopPosition.valuePx(o.windowSize)});
36
- `,L=s(j)`
36
+ `,L=s(S)`
37
37
  color: ${o=>o.theme.colors.hero};
38
- `,O=o=>{const{infotipDescription:t,windowSize:n,isToolTipOpen:l}=o;return l===!1?null:i.jsx(C,{windowSize:n,children:i.jsx(L,{children:t})})};function J({balance:o,dateText:t,showInfotip:n,infotipDescription:l}){const d=$(),[f,a]=S.useState(!1),u=()=>f?i.jsx(_,{onClick:()=>{a(r=>!r)}}):i.jsx(I,{onClick:()=>{a(r=>!r)}});return i.jsxs(k,{windowSize:d,"data-testid":p("balances-insight"),children:[i.jsx(P,{"data-testid":p("balances-insight","amount"),children:v(o)}),i.jsx(D,{"data-testid":p("balances-insight","date"),children:t}),n===!0?i.jsx(g,{onClickAway:()=>a(!1),children:i.jsxs(T,{windowSize:d,children:[i.jsx(u,{}),i.jsx(O,{isToolTipOpen:f,infotipDescription:l,windowSize:d})]})}):null]})}export{J as H};
38
+ `,O=o=>{const{infotipDescription:t,windowSize:n,isToolTipOpen:l}=o;return l===!1?null:i.jsx(C,{windowSize:n,children:i.jsx(L,{children:t})})};function J({balance:o,dateText:t,showInfotip:n,infotipDescription:l}){const a=$(),[f,d]=j.useState(!1),u=()=>f?i.jsx(_,{onClick:()=>{d(r=>!r)}}):i.jsx(I,{onClick:()=>{d(r=>!r)}});return i.jsxs(T,{windowSize:a,"data-testid":p("balances-insight"),children:[i.jsx(k,{"data-testid":p("balances-insight","amount"),children:v(o)}),i.jsx(P,{"data-testid":p("balances-insight","date"),children:t}),n===!0?i.jsx(g,{onClickAway:()=>d(!1),children:i.jsxs(D,{windowSize:a,children:[i.jsx(u,{}),i.jsx(O,{isToolTipOpen:f,infotipDescription:l,windowSize:a})]})}):null]})}export{J as H};
@@ -1,4 +1,4 @@
1
- import{e as R,cc as M,a7 as A,dX as B,O as S,x as n,V as t,cd as f,cf as w,c6 as T,al as L,o as g,eq as D,es as V,P as z,k as a,L as q,l as H}from"./index-DGfOhpD2.js";import{a as C}from"./sentry-COYnhuxW.js";import{n as u}from"./mui-40xepic5.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]="1c222615-395d-44bb-b108-afa56d09d7cf",e._sentryDebugIdIdentifier="sentry-dbid-1c222615-395d-44bb-b108-afa56d09d7cf")}catch{}})();const W=u.div`
1
+ import{e as R,cc as P,a7 as A,dX as B,O as S,x as n,V as t,cd as f,cf as w,c6 as T,al as L,o as g,eq as D,es as V,b as z,m as a,L as q,l as H}from"./index-BHAcVHeH.js";import{a as C}from"./sentry-CY6wsJT-.js";import{n as u}from"./mui-Cni6P-fz.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]="63a198e2-9748-4032-ad45-168c770aa5b4",e._sentryDebugIdIdentifier="sentry-dbid-63a198e2-9748-4032-ad45-168c770aa5b4")}catch{}})();const W=u.div`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  align-items: center;
4
4
  justify-content: flex-end;
@@ -37,7 +37,7 @@ import{e as R,cc as M,a7 as A,dX as B,O as S,x as n,V as t,cd as f,cf as w,c6 as
37
37
  border-bottom-left-radius: inherit;
38
38
  border-bottom-right-radius: inherit;
39
39
  }
40
- `,b={largeLabelWidth:new n(120,140,220),paddingTopBottom:new n(a[2],a[2]),labelHeight:new n(a[6],a[6]),labelMarginLeft:new n(a[3],a[4]),labelMarginRight:new n(a[3],a[4]),labelMarginTop:new n(a[2],a[2]),controlHeight:new n(a[6],a[6])},Z=({sectionId:e,bankAccountToCreate:i,isDisabled:o,fetchBankNameByRoutingStatus:s,style:h})=>{const m=R(),{getValues:I,setValue:N,formState:{errors:P}}=M(),v=A(s.fetchState),k=A(i?.bankRoutingNumber),$=B(P,d(e,"bankName"));C.useEffect(()=>{(v==="In-Progress"||k!=null&&k!==i?.bankRoutingNumber)&&s.fetchState==="Completed"&&i?.bankName!=null&&N(d(e,"bankName"),i?.bankName,{shouldValidate:$})},[v,k,$,s.fetchState,e,i?.bankName,i?.bankRoutingNumber,N]);const j=s.fetchState==="Completed"||s.fetchState==="Error"?o:"disabled",y=S.getLocalizedStrings().spendManagement.billPay.vendorCreation,{achDetails:l}=y,c=b.largeLabelWidth.value(m);return t.jsx(G,{style:h,"data-testid":z("bank-account-section",e),children:t.jsxs(X,{children:[t.jsx(f,{label:{label:l.bankRoutingNumber,width:c},text:{type:"text",name:d(e,"bankRoutingNumber"),placeholder:w(l.bankRoutingNumber),defaultValue:i?.bankRoutingNumber,options:{required:!0,pattern:/^\d{9}$/}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidRoutingNumber}),t.jsx(x,{}),s.fetchState==="In-Progress"?t.jsx(F,{label:{label:l.bankName,width:c},loader:{placeholder:l.fetchingBankName},style:{width:"auto"}}):t.jsx(f,{label:{label:l.bankName,width:c},text:{type:"text",name:d(e,"bankName"),placeholder:w(l.bankName),defaultValue:i?.bankName,options:{required:!0}},isDisabled:j,style:{width:"auto",opacity:j==="disabled"?.32:1},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidBankName}),t.jsx(x,{}),t.jsxs(J,{size:m,children:[t.jsx(T,{label:y.achDetails.accountTypeLabel,htmlFor:d(e,"bankAccountType"),style:{marginLeft:b.labelMarginLeft.value(m),marginRight:b.labelMarginRight.value(m),width:c}}),t.jsxs(K,{labelWidth:c,size:m,children:[t.jsx(L,{label:{label:y.achDetails.checkingAccountTypeLabel},style:{paddingRight:`${g.sp4}`,width:"auto"},radioField:{name:d(e,"bankAccountType"),id:"checking",value:"checking",registerOptions:{required:!0}}}),t.jsx(L,{label:{label:y.achDetails.savingsAccountTypeLabel},style:{width:"auto"},radioField:{name:d(e,"bankAccountType"),id:"savings",value:"savings",registerOptions:{required:!0}}})]})]}),t.jsx(x,{}),t.jsx(f,{label:{label:l.bankAccountNumber,width:c},text:{type:"text",name:d(e,"bankAccountNumber"),placeholder:w(l.bankAccountNumber),defaultValue:i?.bankAccountNumber,options:{required:!0,validate:p=>p==null||V.accountNumber(p).isValid,pattern:D}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidAccountNumber}),t.jsx(x,{}),t.jsx(f,{label:{label:l.confirmedBankAccountNumber,width:c},text:{type:"text",name:d(e,"confirmedBankAccountNumber"),placeholder:l.confirmedBankAccountNumberPlaceholder,defaultValue:i?.confirmedBankAccountNumber,options:{required:!0,pattern:D,validate:p=>p!=null&&I(`${e}.bankAccountNumber`)===p}},disableCopyPaste:!0,isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.accountNumberDontMatch}),t.jsx(x,{}),t.jsx(f,{label:{label:l.accountNickName,width:c},text:{type:"text",name:d(e,"bankAccountName"),placeholder:w(l.accountNickName),defaultValue:i?.bankAccountName,options:{required:!1}},isDisabled:o,style:{width:"auto"}})]})})},d=(e,i)=>`${e}.${i}`,G=u.div`
40
+ `,b={largeLabelWidth:new n(120,140,220),paddingTopBottom:new n(a[2],a[2]),labelHeight:new n(a[6],a[6]),labelMarginLeft:new n(a[3],a[4]),labelMarginRight:new n(a[3],a[4]),labelMarginTop:new n(a[2],a[2]),controlHeight:new n(a[6],a[6])},Z=({sectionId:e,bankAccountToCreate:i,isDisabled:o,fetchBankNameByRoutingStatus:s,style:h})=>{const m=R(),{getValues:I,setValue:N,formState:{errors:M}}=P(),v=A(s.fetchState),k=A(i?.bankRoutingNumber),$=B(M,d(e,"bankName"));C.useEffect(()=>{(v==="In-Progress"||k!=null&&k!==i?.bankRoutingNumber)&&s.fetchState==="Completed"&&i?.bankName!=null&&N(d(e,"bankName"),i?.bankName,{shouldValidate:$})},[v,k,$,s.fetchState,e,i?.bankName,i?.bankRoutingNumber,N]);const j=s.fetchState==="Completed"||s.fetchState==="Error"?o:"disabled",y=S.getLocalizedStrings().spendManagement.billPay.vendorCreation,{achDetails:l}=y,c=b.largeLabelWidth.value(m);return t.jsx(G,{style:h,"data-testid":z("bank-account-section",e),children:t.jsxs(X,{children:[t.jsx(f,{label:{label:l.bankRoutingNumber,width:c},text:{type:"text",name:d(e,"bankRoutingNumber"),placeholder:w(l.bankRoutingNumber),defaultValue:i?.bankRoutingNumber,options:{required:!0,pattern:/^\d{9}$/}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidRoutingNumber}),t.jsx(x,{}),s.fetchState==="In-Progress"?t.jsx(F,{label:{label:l.bankName,width:c},loader:{placeholder:l.fetchingBankName},style:{width:"auto"}}):t.jsx(f,{label:{label:l.bankName,width:c},text:{type:"text",name:d(e,"bankName"),placeholder:w(l.bankName),defaultValue:i?.bankName,options:{required:!0}},isDisabled:j,style:{width:"auto",opacity:j==="disabled"?.32:1},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidBankName}),t.jsx(x,{}),t.jsxs(J,{size:m,children:[t.jsx(T,{label:y.achDetails.accountTypeLabel,htmlFor:d(e,"bankAccountType"),style:{marginLeft:b.labelMarginLeft.value(m),marginRight:b.labelMarginRight.value(m),width:c}}),t.jsxs(K,{labelWidth:c,size:m,children:[t.jsx(L,{label:{label:y.achDetails.checkingAccountTypeLabel},style:{paddingRight:`${g.sp4}`,width:"auto"},radioField:{name:d(e,"bankAccountType"),id:"checking",value:"checking",registerOptions:{required:!0}}}),t.jsx(L,{label:{label:y.achDetails.savingsAccountTypeLabel},style:{width:"auto"},radioField:{name:d(e,"bankAccountType"),id:"savings",value:"savings",registerOptions:{required:!0}}})]})]}),t.jsx(x,{}),t.jsx(f,{label:{label:l.bankAccountNumber,width:c},text:{type:"text",name:d(e,"bankAccountNumber"),placeholder:w(l.bankAccountNumber),defaultValue:i?.bankAccountNumber,options:{required:!0,validate:p=>p==null||V.accountNumber(p).isValid,pattern:D}},isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.invalidAccountNumber}),t.jsx(x,{}),t.jsx(f,{label:{label:l.confirmedBankAccountNumber,width:c},text:{type:"text",name:d(e,"confirmedBankAccountNumber"),placeholder:l.confirmedBankAccountNumberPlaceholder,defaultValue:i?.confirmedBankAccountNumber,options:{required:!0,pattern:D,validate:p=>p!=null&&I(`${e}.bankAccountNumber`)===p}},disableCopyPaste:!0,isDisabled:o,style:{width:"auto"},showAdditionalInfoLabel:!1,additionalInfoLabel:l.accountNumberDontMatch}),t.jsx(x,{}),t.jsx(f,{label:{label:l.accountNickName,width:c},text:{type:"text",name:d(e,"bankAccountName"),placeholder:w(l.accountNickName),defaultValue:i?.bankAccountName,options:{required:!1}},isDisabled:o,style:{width:"auto"}})]})})},d=(e,i)=>`${e}.${i}`,G=u.div`
41
41
  display: flex;
42
42
  flex-direction: column;
43
43
  `,X=u.div`
@@ -0,0 +1,51 @@
1
+ import{e as w,V as n,b as f,bn as $,o as e,x as t,bw as b,d as x,M as y,O as k,f as l,er as v,l as z,m as o}from"./index-BHAcVHeH.js";import{n as a}from"./mui-Cni6P-fz.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new i.Error().stack;r&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[r]="9329f424-d427-4f88-bf26-7ce2453fd99f",i._sentryDebugIdIdentifier="sentry-dbid-9329f424-d427-4f88-bf26-7ce2453fd99f")}catch{}})();const{common:{navBar:{back:j}}}=k.getLocalizedStrings(),d={navBarContainerPadding:new t(10,o[3]),customTitleMarginBottom:new t(o[0],o[3]),customTitleMarginLeft:new t(o[3],o[6]),customTitleMarginRight:new t(o[5],o[8])},P={formTitle:new x("h6Medium","h5Medium")},R=({header:i,isDirty:r,isMagicLink:g,onBackClick:m,setShowConfirmationPopup:p})=>{const s=w();return n.jsxs(n.Fragment,{children:[s==="small"?n.jsxs(C,{windowSize:s,children:[g?null:n.jsx(h,{onClick:()=>r?p?.(!0):m?.(),"data-testid":f("bank-account-page-back-click-mobile")}),n.jsx(u,{windowSize:s,children:i})]}):n.jsx(S,{children:g?null:n.jsx($,{title:j,enterDelay:600,placement:"bottom",children:n.jsx(h,{onClick:()=>r?p?.(!0):m?.(),"data-testid":f("bank-account-page-back-click")})})}),s!=="small"?n.jsx(u,{windowSize:s,children:i}):null]})},u=a(y)`
2
+ ${i=>`${P.formTitle.style(i.windowSize)}`};
3
+ color: ${i=>i.theme.colors.primary};
4
+ margin-bottom: ${i=>d.customTitleMarginBottom.valuePx(i.windowSize)};
5
+ margin-top: ${e.sp3};
6
+ margin-left: ${i=>d.customTitleMarginLeft.valuePx(i.windowSize)};
7
+ margin-right: ${i=>d.customTitleMarginRight.valuePx(i.windowSize)};
8
+ `,h=a(b)`
9
+ cursor: pointer;
10
+ color: ${i=>i.theme.colors.hero};
11
+ width: 20px;
12
+ height: 20px;
13
+ &:hover {
14
+ color: ${i=>i.theme.colors.primary};
15
+ }
16
+ `,S=a.div`
17
+ margin: ${e.sp3} ${e.sp8} ${e.sp3} ${e.sp6};
18
+ `,C=a.div`
19
+ display: flex;
20
+ align-items: center;
21
+ position: absolute;
22
+ top: ${e.sp0};
23
+ padding-top: ${i=>d.navBarContainerPadding.valuePx(i.windowSize)};
24
+ padding-bottom: ${i=>d.navBarContainerPadding.valuePx(i.windowSize)};
25
+ padding-right: ${e.sp5};
26
+ padding-left: ${e.sp0};
27
+ z-index: 2;
28
+ background-color: ${i=>i.theme.colors.grey4};
29
+ `,c={marginBottom:new t(o[5],o[3]),marginRight:new t(o[3],o[8]),marginLeft:new t(o[3],o[6])},_=({warningText:i})=>{const r=w();return n.jsxs(T,{size:r,children:[n.jsx(M,{children:n.jsx(B,{})}),n.jsx(D,{children:i})]})},T=a.div`
30
+ display: flex;
31
+ background-color: ${l.alertLight};
32
+ border: 1px solid ${l.brandColorGoldDark};
33
+ border-radius: ${e.sp2};
34
+ color: ${l.alertDark};
35
+ margin-bottom: ${i=>c.marginBottom.valuePx(i.size)};
36
+ padding: ${e.sp3} ${e.sp4} ${e.sp3} ${e.sp4};
37
+ margin-right: ${i=>c.marginRight.valuePx(i.size)};
38
+ margin-left: ${i=>c.marginLeft.valuePx(i.size)};
39
+ `,D=a(z)`
40
+ display: flex;
41
+ flex-grow: 1;
42
+ color: ${l.brandColorGoldDark};
43
+ `,M=a.div`
44
+ display: flex;
45
+ align-items: center;
46
+ margin-right: ${e.sp2};
47
+ `,B=a(v)`
48
+ width: ${e.sp4};
49
+ height: ${e.sp4};
50
+ color: ${l.brandColorGoldDark};
51
+ `;export{_ as A,R as W};
@@ -1,21 +1,21 @@
1
- import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H as Ze,l as M,L as se,bN as Ke,A as et,bn as tt,k,at as nt,w as Ue,N as it,h as Ce,cc as ot,a7 as G,ad as he,dX as at,aU as Me,f3 as ze,f4 as ct,f5 as Ve,bt as Ie,f6 as lt,f7 as st,f8 as me,f9 as fe,fa as je,a5 as ge,bG as we,P as rt,b6 as dt,dc as He,d as K,C as F,fb as ut,fc as pt,fd as ht,aD as mt,fe as ft}from"./index-DGfOhpD2.js";import{a as r}from"./sentry-COYnhuxW.js";import{n}from"./mui-40xepic5.js";import{r as Te}from"./core-B0nKoasK.js";import{u as _e}from"./plaid-cfgjTkr8.js";import{cg as gt,ch as ee,bG as Le}from"./zeni-epic-state-DCforPdM.js";import{a as wt}from"./SetUpAccountSection-Bk3RGJCY-Bm0kDwNM.js";import"./pdf-A8jRKyoC.js";import"./lottie-BzV8yd9z.js";import"./liveblocks-DskTqGyX.js";import"./recharts-Bbdho9Pi.js";import"./dnd-NNN-4w0O.js";import"./analytics-CDQ7tGpV.js";import"./utils-DMEPgX6w.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="dca6fdf2-2e1f-4c14-8f82-83031034206f",e._sentryDebugIdIdentifier="sentry-dbid-dca6fdf2-2e1f-4c14-8f82-83031034206f")}catch{}})();const{settings:{bankConnectionHeader:ae}}=re.getLocalizedStrings().common,V=[{value:ae.productType,width:new _(100,19)},{value:ae.primaryAccount,width:new _(100,36)},{value:ae.linkAccount,width:new _(100,22)},{value:ae.status,width:new _(12,12)},{value:ae.balance,width:new _(12,13)}],{common:{settings:Oe,strings:{hyphen:ye}},commonSetUp:{setUp:Ee}}=re.getLocalizedStrings(),z={containerPadding:new _(k[3],k[4]),containerRightPadding:new _(k[3],k[8]),iconContainerMaxWidthHeight:new _(k[6],k[7]),iconWidthHeight:new _(20,k[4]),iconPadding:new _(k[1],12),productTypeContainerMarginBottom:new _(k[3],k[0]),linkAccountContainerMarginTop:new _(k[3],k[0]),productTypeIconSize:new _(k[3],k[4])},St=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Bt,{windowSize:d,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Rt,{windowSize:d,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(Dt,{windowSize:d,children:t.jsx(Me,{})});case"zeni_treasury":return t.jsx(Wt,{windowSize:d,children:t.jsx(pt,{})});default:return t.jsx(Nt,{windowSize:d,children:t.jsx(ut,{})})}},xt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:B,onUpdatePaymentAccountStatus:j,onEstablishConnectionClick:T,onEstablishConnectionSuccess:R})=>{const C=xe(),c=Ae(),m=Ce().analytics,{trigger:w,formState:{errors:D}}=ot(),{plaidConnectionDetails:N,allFundingAccounts:o,primaryFundingAccount:a,productType:s}=d,u=N.link_account,p=N.update_account,[v,W]=r.useState(void 0),[$,S]=r.useState(!1),b=v==="update_account"?p:u,[A,q]=r.useState(b.linkToken??null),[O,P]=r.useState(!1),h=u.fetchStatus.fetchState==="In-Progress"||u.updateStatus.fetchState==="In-Progress";let f,E,l,g=!1;a!=null&&(a.accType==="depositAccount"?f={code:"verified",name:"Verified"}:(f=a.providerVerificationStatus,E=a?.institutionDetails,l=f?.code,g=a?.isLoginRequired??!1));const U=G(u.updateStatus.fetchState),X=G(p.updateStatus.fetchState),I=G(p.fetchStatus.fetchState),J=C.mode==="light"?new he(C.colors.brandColorJadeLight):new he(C.colors.brandColorJadeDark),Q=r.useCallback((x,Y)=>{m.trackConnectBankSuccess(s,"Settings");const Pe=Y.accounts.find(Ge=>Ge.id===a?.providerAccountId)??Y.accounts[0];a?.id==null||v!=="update_account"||Pe?.verification_status==null||g?T(x,y(s),s):j(Pe?.verification_status,a.id,"update_account",y(s),s),W(void 0),P(!1)},[m,s,a?.id,a?.providerAccountId,v,g,j,T]),te=r.useCallback((x,Y)=>{x!=null&&(m.trackConnectBankFailure(s,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&a?.id!=null&&j("verification_failed",a.id,"update_account",y(s),s),console.log("Plaid Connection Error",x,Y)),W(void 0),P(!1)},[m,s,a?.id,j]),{open:ne,ready:ie}=_e({token:A,onSuccess:Q,onExit:te});r.useEffect(()=>{(U==="In-Progress"&&u.updateStatus.fetchState==="Completed"||X==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(gt(l??"")||(B("link_account",y(s)),R(y(s),s)))},[u.updateStatus.fetchState,R,B,a?.providerVerificationStatus?.code,a?.id,U,X,p.updateStatus.fetchState,l,s]),r.useEffect(()=>{(ee(l??"")||l==="verification_failed")&&!O&&v!=null&&b.linkToken===A&&b.fetchStatus.fetchState==="Completed"&&ie&&P(!0)},[ie,A,b.fetchStatus.fetchState,b.linkToken,l,v,O]);const L=be("bankConnectionsSettingsPage","primaryAccountSection"),Z=at(D,L);r.useEffect(()=>{b.fetchStatus.fetchState==="Completed"&&b.linkToken!=null&&b.linkToken!==A&&q(b.linkToken)},[b.fetchStatus.fetchState,b.linkToken,A]),r.useEffect(()=>{O&&ne()},[O,ne]),r.useEffect(()=>{!a?.zeniAccountId&&!Z&&w(L)},[a?.id]),r.useEffect(()=>{(l==null||l==="verification_failed"||l==="verification_expired"||ee(l))&&(Le(new Date().toISOString()).isAfter(u.expiration)||u.linkToken==null)&&B("link_account",y(s))},[]);const oe=`${a?.accountSubType?.name!=null?a?.accountSubType?.name.substring(0,1).toUpperCase().concat(a?.accountSubType?.name.substring(1)):""} ${a?.maskedAccountNumber??""}`.trim(),de=E?.zeniInstitutionId.toLowerCase()==="chase",qe=o.findIndex(x=>x.id===a?.id),Je={element:t.jsx(Me,{width:z.iconWidthHeight.valuePx(c)}),color:J};return t.jsxs(yt,{windowSize:c,children:[$===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:H,action:{onBackClick:()=>S(!1)}}),document.body):null,t.jsxs(vt,{windowSize:c,wrapperWidth:V[0].width,children:[t.jsx(kt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx(St,{productType:s,windowSize:c})}),t.jsx(bt,{children:Oe.productNameByType[s]})]}),t.jsx($t,{windowSize:c,wrapperWidth:V[1].width,children:t.jsxs(_t,{windowSize:c,children:[a!=null&&c!=="small"?t.jsx(Tt,{isDisabled:g,children:ct(Je,c,C.mode==="dark",a,qe,!1)}):null,t.jsxs(Pt,{windowSize:c,className:"fundingAccount",children:[t.jsx(Ve,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:k[4],fontWeight:Ie.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Ie.medium},name:be(s,"primaryAccountSection"),placeholder:Ee.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,Y)=>st(o,x,Y),valueToSubLabels:(x,Y)=>lt(o,x,Y,!1),defaultValue:{selectedOption:a?.id,allOptions:o.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:h?"disabled":void 0,showLoadingIcon:h,onClickCreateOption:()=>{m.trackConnectBank(s,"Settings"),W("link_account"),u.linkToken==null||Le(new Date().toISOString()).isAfter(u.expiration)?B("link_account",y(s)):A!==u.linkToken?q(u.linkToken):O?ne():P(!0)}}),t.jsxs(At,{isDisabled:g,children:[oe?t.jsxs(t.Fragment,{children:[t.jsx(Ct,{children:oe}),c!=="small"&&(l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||g||de)?t.jsx(jt,{}):null]}):null,c==="small"&&f!=null?t.jsx(me,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:f.name,textColor:fe(f.code)}):null,l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||g||de?t.jsx(je,{productType:s,isUpdateLinkClicked:v==="update_account",isLoginRequired:g,isPendingVerification:l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:I,prevUpdateState:X},onUpdateLinkTokenClick:()=>{m.trackConnectBankGetBalance(s,"Settings"),W("update_account"),B("update_account",y(s),a?.id)},onChaseInfoClick:()=>{S(!0)}}):null]})]}),c==="small"?t.jsxs(Lt,{children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:ge("0,0[.]00",a?.accountBalance?.available)}):t.jsx(ve,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Et,{windowSize:c,isDisabled:g,wrapperWidth:V[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",s),className:"qboLinkAcc",children:[c==="small"?t.jsx(zt,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Ft,{isDisabled:g?"disabled":void 0,name:be(s,"bankAccountSection"),placeholder:Ee.zeniCashAccountPlaceholder,defaultValue:{selectedOption:a?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Ot,{windowSize:c,wrapperWidth:V[3].width,children:f!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:f.name,textColor:fe(f.code)}):t.jsx(ve,{children:ye})}):null,c!=="small"?t.jsxs(It,{windowSize:c,wrapperWidth:V[4].width,children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:ge("0,0[.]00",a?.accountBalance?.available)}):t.jsx(ve,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},yt=n.div`
1
+ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H as Ze,l as M,L as se,bN as Ke,A as et,bn as tt,m as k,at as nt,w as Ue,d as it,h as Ce,cc as ot,a7 as J,ad as he,dX as at,aU as Me,f3 as ze,f4 as ct,f5 as Ve,bt as Ie,f6 as lt,f7 as st,f8 as me,f9 as ge,fa as je,a5 as fe,bG as we,b as rt,b6 as dt,dc as He,f as K,C as F,fb as ut,fc as pt,fd as ht,aD as mt,fe as gt}from"./index-BHAcVHeH.js";import{a as r}from"./sentry-CY6wsJT-.js";import{n}from"./mui-Cni6P-fz.js";import{r as Te}from"./core-oEkj6b51.js";import{u as _e}from"./plaid-B2vW8NaN.js";import{cg as ft,ch as ee,bG as Le}from"./zeni-epic-state-cFF_NqwA.js";import{a as wt}from"./SetUpAccountSection-BcNG0nDh-C2x0keC_.js";import"./pdf-CTJ16aEe.js";import"./lottie-DEK510sX.js";import"./liveblocks-Ia5FU_Xu.js";import"./recharts-LlOU9oLm.js";import"./dnd-DwLm2ZWc.js";import"./analytics-Ci5SIN4_.js";import"./utils-ChLimP28.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="10d8a18c-fcea-4ccd-a636-2cc1c1079bc1",e._sentryDebugIdIdentifier="sentry-dbid-10d8a18c-fcea-4ccd-a636-2cc1c1079bc1")}catch{}})();const{settings:{bankConnectionHeader:ae}}=re.getLocalizedStrings().common,V=[{value:ae.productType,width:new _(100,19)},{value:ae.primaryAccount,width:new _(100,36)},{value:ae.linkAccount,width:new _(100,22)},{value:ae.status,width:new _(12,12)},{value:ae.balance,width:new _(12,13)}],{common:{settings:Oe,strings:{hyphen:ye}},commonSetUp:{setUp:Ee}}=re.getLocalizedStrings(),z={containerPadding:new _(k[3],k[4]),containerRightPadding:new _(k[3],k[8]),iconContainerMaxWidthHeight:new _(k[6],k[7]),iconWidthHeight:new _(20,k[4]),iconPadding:new _(k[1],12),productTypeContainerMarginBottom:new _(k[3],k[0]),linkAccountContainerMarginTop:new _(k[3],k[0]),productTypeIconSize:new _(k[3],k[4])},St=({productType:e,windowSize:d})=>{switch(e){case"bill_pay":return t.jsx(Bt,{windowSize:d,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Rt,{windowSize:d,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(Dt,{windowSize:d,children:t.jsx(Me,{})});case"zeni_treasury":return t.jsx(Wt,{windowSize:d,children:t.jsx(pt,{})});default:return t.jsx(Nt,{windowSize:d,children:t.jsx(ut,{})})}},xt=({allBankAccounts:e,setupView:d,connectedAccountProvider:H,onFetchLinkTokenClick:B,onUpdatePaymentAccountStatus:j,onEstablishConnectionClick:T,onEstablishConnectionSuccess:R})=>{const C=xe(),c=Ae(),m=Ce().analytics,{trigger:w,formState:{errors:D}}=ot(),{plaidConnectionDetails:N,allFundingAccounts:o,primaryFundingAccount:a,productType:s}=d,u=N.link_account,p=N.update_account,[b,W]=r.useState(void 0),[$,S]=r.useState(!1),v=b==="update_account"?p:u,[A,q]=r.useState(v.linkToken??null),[O,P]=r.useState(!1),h=u.fetchStatus.fetchState==="In-Progress"||u.updateStatus.fetchState==="In-Progress";let g,E,l,f=!1;a!=null&&(a.accType==="depositAccount"?g={code:"verified",name:"Verified"}:(g=a.providerVerificationStatus,E=a?.institutionDetails,l=g?.code,f=a?.isLoginRequired??!1));const U=J(u.updateStatus.fetchState),X=J(p.updateStatus.fetchState),I=J(p.fetchStatus.fetchState),G=C.mode==="light"?new he(C.colors.brandColorJadeLight):new he(C.colors.brandColorJadeDark),Q=r.useCallback((x,Y)=>{m.trackConnectBankSuccess(s,"Settings");const Pe=Y.accounts.find(Je=>Je.id===a?.providerAccountId)??Y.accounts[0];a?.id==null||b!=="update_account"||Pe?.verification_status==null||f?T(x,y(s),s):j(Pe?.verification_status,a.id,"update_account",y(s),s),W(void 0),P(!1)},[m,s,a?.id,a?.providerAccountId,b,f,j,T]),te=r.useCallback((x,Y)=>{x!=null&&(m.trackConnectBankFailure(s,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&a?.id!=null&&j("verification_failed",a.id,"update_account",y(s),s),console.log("Plaid Connection Error",x,Y)),W(void 0),P(!1)},[m,s,a?.id,j]),{open:ne,ready:ie}=_e({token:A,onSuccess:Q,onExit:te});r.useEffect(()=>{(U==="In-Progress"&&u.updateStatus.fetchState==="Completed"||X==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ft(l??"")||(B("link_account",y(s)),R(y(s),s)))},[u.updateStatus.fetchState,R,B,a?.providerVerificationStatus?.code,a?.id,U,X,p.updateStatus.fetchState,l,s]),r.useEffect(()=>{(ee(l??"")||l==="verification_failed")&&!O&&b!=null&&v.linkToken===A&&v.fetchStatus.fetchState==="Completed"&&ie&&P(!0)},[ie,A,v.fetchStatus.fetchState,v.linkToken,l,b,O]);const L=ve("bankConnectionsSettingsPage","primaryAccountSection"),Z=at(D,L);r.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==A&&q(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,A]),r.useEffect(()=>{O&&ne()},[O,ne]),r.useEffect(()=>{!a?.zeniAccountId&&!Z&&w(L)},[a?.id]),r.useEffect(()=>{(l==null||l==="verification_failed"||l==="verification_expired"||ee(l))&&(Le(new Date().toISOString()).isAfter(u.expiration)||u.linkToken==null)&&B("link_account",y(s))},[]);const oe=`${a?.accountSubType?.name!=null?a?.accountSubType?.name.substring(0,1).toUpperCase().concat(a?.accountSubType?.name.substring(1)):""} ${a?.maskedAccountNumber??""}`.trim(),de=E?.zeniInstitutionId.toLowerCase()==="chase",qe=o.findIndex(x=>x.id===a?.id),Ge={element:t.jsx(Me,{width:z.iconWidthHeight.valuePx(c)}),color:G};return t.jsxs(yt,{windowSize:c,children:[$===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:H,action:{onBackClick:()=>S(!1)}}),document.body):null,t.jsxs(bt,{windowSize:c,wrapperWidth:V[0].width,children:[t.jsx(kt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx(St,{productType:s,windowSize:c})}),t.jsx(vt,{children:Oe.productNameByType[s]})]}),t.jsx($t,{windowSize:c,wrapperWidth:V[1].width,children:t.jsxs(_t,{windowSize:c,children:[a!=null&&c!=="small"?t.jsx(Tt,{isDisabled:f,children:ct(Ge,c,C.mode==="dark",a,qe,!1)}):null,t.jsxs(Pt,{windowSize:c,className:"fundingAccount",children:[t.jsx(Ve,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:k[4],fontWeight:Ie.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Ie.medium},name:ve(s,"primaryAccountSection"),placeholder:Ee.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,Y)=>st(o,x,Y),valueToSubLabels:(x,Y)=>lt(o,x,Y,!1),defaultValue:{selectedOption:a?.id,allOptions:o.map(x=>({label:x.label,value:x.id,isRecommended:x.accType==="depositAccount"}))},textAlignment:"left",showDownChevronIcon:!0,showTickIcon:!1,isOptionRemovable:!1,registerOptions:{required:!1},showCreateOption:!0,showEmptyState:!1,isDisabled:h?"disabled":void 0,showLoadingIcon:h,onClickCreateOption:()=>{m.trackConnectBank(s,"Settings"),W("link_account"),u.linkToken==null||Le(new Date().toISOString()).isAfter(u.expiration)?B("link_account",y(s)):A!==u.linkToken?q(u.linkToken):O?ne():P(!0)}}),t.jsxs(At,{isDisabled:f,children:[oe?t.jsxs(t.Fragment,{children:[t.jsx(Ct,{children:oe}),c!=="small"&&(l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de)?t.jsx(jt,{}):null]}):null,c==="small"&&g!=null?t.jsx(me,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:g.name,textColor:ge(g.code)}):null,l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification"||f||de?t.jsx(je,{productType:s,isUpdateLinkClicked:b==="update_account",isLoginRequired:f,isPendingVerification:l!=="verification_failed"&&a?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:I,prevUpdateState:X},onUpdateLinkTokenClick:()=>{m.trackConnectBankGetBalance(s,"Settings"),W("update_account"),B("update_account",y(s),a?.id)},onChaseInfoClick:()=>{S(!0)}}):null]})]}),c==="small"?t.jsxs(Lt,{children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(be,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Et,{windowSize:c,isDisabled:f,wrapperWidth:V[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",s),className:"qboLinkAcc",children:[c==="small"?t.jsx(zt,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Ft,{isDisabled:f?"disabled":void 0,name:ve(s,"bankAccountSection"),placeholder:Ee.zeniCashAccountPlaceholder,defaultValue:{selectedOption:a?.zeniAccountId??"",allOptions:e.map(x=>({label:x.accountName,value:x.accountId}))},controlProperty:{highlightOnHover:!0},isOptionRemovable:!1,textAlignment:"left",registerOptions:{required:!1},style:{width:c==="small"?"calc(100% - 135px)":"100%",marginLeft:c==="small"?i.sp0:`-${i.sp3}`}})]}),c!=="small"?t.jsx(Ot,{windowSize:c,wrapperWidth:V[3].width,children:g!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:g.name,textColor:ge(g.code)}):t.jsx(be,{children:ye})}):null,c!=="small"?t.jsxs(It,{windowSize:c,wrapperWidth:V[4].width,children:[a?.accountBalance?.available?t.jsx(Fe,{className:"balanceLabel",children:fe("0,0[.]00",a?.accountBalance?.available)}):t.jsx(be,{children:ye}),a?.accountBalance?.lastRefreshTime?t.jsx(Be,{className:"balanceLabel",children:we(a?.accountBalance?.lastRefreshTime)}):a?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},yt=n.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
4
4
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
5
5
  padding: ${e=>z.containerPadding.valuePx(e.windowSize)};
6
6
  padding-right: ${e=>z.containerRightPadding.valuePx(e.windowSize)};
7
- `,ve=n.div`
7
+ `,be=n.div`
8
8
  color: ${e=>e.theme.colors.hero};
9
9
  display: flex;
10
10
  align-items: flex-end;
11
11
  justify-content: flex-end;
12
- `,vt=n.div`
12
+ `,bt=n.div`
13
13
  display: flex;
14
14
  align-items: center;
15
15
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
16
16
  margin-bottom: ${e=>z.productTypeContainerMarginBottom.valuePx(e.windowSize)};
17
17
  padding-right: ${i.sp3};
18
- `,bt=n(M)`
18
+ `,vt=n(M)`
19
19
  white-space: nowrap;
20
20
  overflow: hidden;
21
21
  text-overflow: ellipsis;
@@ -146,18 +146,18 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
146
146
  width: 100%;
147
147
  height: 100%;
148
148
  }
149
- `,be=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:ke,strings:{empty:Ut,hyphen:Mt}}}=re.getLocalizedStrings(),ue={paymentAccountIconSize:new _(k[6],k[7])},Vt=()=>null,Ht=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ae(),D=Ce().analytics,[N,o]=r.useState(!1),[a,s]=r.useState(!1),u=e.plaidConnectionDetails.link_account,p=e.plaidConnectionDetails.update_account,[v,W]=r.useState(void 0),$=v==="update_account"?p:u,[S,b]=r.useState($.linkToken??null),[A,q]=r.useState(!1),O=G(u.updateStatus.fetchState),P=G(p.updateStatus.fetchState),h=G(p.fetchStatus.fetchState),f=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,l="other_connection",g=f?.code,U=r.useCallback((L,Z)=>{D.trackConnectBankSuccess(l,"Settings");const oe=Z.accounts.find(de=>de.id===e.providerAccountId)??Z.accounts[0];e.paymentAccountId==null||v!=="update_account"||oe?.verification_status==null||E?R(L,y(l),l):c(oe?.verification_status,e.paymentAccountId,"update_account",y(l),l),W(void 0),q(!1)},[D,l,e.paymentAccountId,e.providerAccountId,v,E,c,R]),X=r.useCallback((L,Z)=>{L!=null&&(D.trackConnectBankFailure(l,L.error_code+" "+L.error_message,"Settings"),L.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(l),l),console.log("Plaid Connection Error",L,Z)),W(void 0),q(!1)},[D,l,e.paymentAccountId,c]),{open:I,ready:J}=_e({token:S,onSuccess:U,onExit:X});r.useEffect(()=>{$.fetchStatus.fetchState==="Completed"&&$.linkToken!=null&&$.linkToken!==S&&b($.linkToken)},[$.fetchStatus.fetchState,$.linkToken,S]),r.useEffect(()=>{A&&I()},[A,I]),r.useEffect(()=>{(O==="In-Progress"&&u.updateStatus.fetchState==="Completed"||P==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ee(g??"")||(T("link_account",y(l)),C(y(l),l)))},[u.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,O,P,p.updateStatus.fetchState,g,l]),r.useEffect(()=>{(ee(g??"")||g==="verification_failed")&&!A&&v!=null&&$.linkToken===S&&$.fetchStatus.fetchState==="Completed"&&J&&q(!0)},[J,S,$.fetchStatus.fetchState,$.linkToken,g,v,A]);const Q=m.mode==="light"?new he(m.colors.brandColorJadeLight):new he(m.colors.brandColorJadeDark),te={element:t.jsx(on,{windowSize:w,children:t.jsx(ft,{})}),color:Q},ne=d.find(L=>L.accountId===e.zeniAccountId),ie=()=>{o(L=>!L)};return t.jsxs(qt,{onMouseEnter:ie,onMouseLeave:ie,children:[a===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>s(!1)}}),document.body):null,t.jsxs(Jt,{windowSize:w,wrapperWidth:V[0].width,children:[t.jsx(Gt,{children:ke.otherAccount.title}),t.jsx(Yt,{children:ke.otherAccount.subTitle})]}),t.jsxs(Xt,{windowSize:w,wrapperWidth:V[1].width,children:[wt(te,w,m.mode==="dark",e,!0),t.jsxs(an,{children:[t.jsx(cn,{children:t.jsx(dn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(ln,{windowSize:w,children:[t.jsxs(un,{children:[t.jsx(sn,{children:e.accountSubType?.name}),t.jsx(rn,{children:e.maskedAccountNumber}),E&&t.jsx(pn,{})]}),E&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:v==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:h,prevUpdateState:P},onUpdateLinkTokenClick:()=>{D.trackConnectBankGetBalance(l,"Settings"),W("update_account"),T("update_account",y(l),e.paymentAccountId)},onChaseInfoClick:()=>{s(!0)}})]})]})]}),t.jsx(Qt,{windowSize:w,wrapperWidth:V[2].width,children:ne?.accountName??Ut}),t.jsx(Zt,{windowSize:w,wrapperWidth:V[3].width,children:f!=null?t.jsx(me,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:f.name,textColor:fe(f.code)}):Mt}),t.jsxs(Kt,{windowSize:w,wrapperWidth:V[4].width,children:[t.jsx(en,{className:"balanceLabel",isRemoveHovered:N,children:ge("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(tn,{className:"balanceLabel",isRemoveHovered:N,children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,N&&t.jsx(nn,{children:t.jsx(He,{moreIconType:"plain",options:[{label:ke.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:m.colors.grey5,width:"162px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${K.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:K.important,":hover":{color:K.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:L=>{L==="remove"&&j(e.paymentAccountId)},valueToIcon:Vt})})]})]})},qt=n.div`
149
+ `,ve=(e,d)=>`${e}.${d}`,y=e=>{switch(e){case"zeni_accounts":return"account_setup";case"bill_pay":return"bill_pay_setup";case"charge_cards":return"charge_card_setup";case"reimbursement":return"reimbursement_setup";case"zeni_treasury":return"treasury_setup";case"other_connection":return"other_connection_setup"}},{common:{settings:ke,strings:{empty:Ut,hyphen:Mt}}}=re.getLocalizedStrings(),ue={paymentAccountIconSize:new _(k[6],k[7])},Vt=()=>null,Ht=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ae(),D=Ce().analytics,[N,o]=r.useState(!1),[a,s]=r.useState(!1),u=e.plaidConnectionDetails.link_account,p=e.plaidConnectionDetails.update_account,[b,W]=r.useState(void 0),$=b==="update_account"?p:u,[S,v]=r.useState($.linkToken??null),[A,q]=r.useState(!1),O=J(u.updateStatus.fetchState),P=J(p.updateStatus.fetchState),h=J(p.fetchStatus.fetchState),g=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,l="other_connection",f=g?.code,U=r.useCallback((L,Z)=>{D.trackConnectBankSuccess(l,"Settings");const oe=Z.accounts.find(de=>de.id===e.providerAccountId)??Z.accounts[0];e.paymentAccountId==null||b!=="update_account"||oe?.verification_status==null||E?R(L,y(l),l):c(oe?.verification_status,e.paymentAccountId,"update_account",y(l),l),W(void 0),q(!1)},[D,l,e.paymentAccountId,e.providerAccountId,b,E,c,R]),X=r.useCallback((L,Z)=>{L!=null&&(D.trackConnectBankFailure(l,L.error_code+" "+L.error_message,"Settings"),L.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(l),l),console.log("Plaid Connection Error",L,Z)),W(void 0),q(!1)},[D,l,e.paymentAccountId,c]),{open:I,ready:G}=_e({token:S,onSuccess:U,onExit:X});r.useEffect(()=>{$.fetchStatus.fetchState==="Completed"&&$.linkToken!=null&&$.linkToken!==S&&v($.linkToken)},[$.fetchStatus.fetchState,$.linkToken,S]),r.useEffect(()=>{A&&I()},[A,I]),r.useEffect(()=>{(O==="In-Progress"&&u.updateStatus.fetchState==="Completed"||P==="In-Progress"&&p.updateStatus.fetchState==="Completed")&&(ee(f??"")||(T("link_account",y(l)),C(y(l),l)))},[u.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,O,P,p.updateStatus.fetchState,f,l]),r.useEffect(()=>{(ee(f??"")||f==="verification_failed")&&!A&&b!=null&&$.linkToken===S&&$.fetchStatus.fetchState==="Completed"&&G&&q(!0)},[G,S,$.fetchStatus.fetchState,$.linkToken,f,b,A]);const Q=m.mode==="light"?new he(m.colors.brandColorJadeLight):new he(m.colors.brandColorJadeDark),te={element:t.jsx(on,{windowSize:w,children:t.jsx(gt,{})}),color:Q},ne=d.find(L=>L.accountId===e.zeniAccountId),ie=()=>{o(L=>!L)};return t.jsxs(qt,{onMouseEnter:ie,onMouseLeave:ie,children:[a===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>s(!1)}}),document.body):null,t.jsxs(Gt,{windowSize:w,wrapperWidth:V[0].width,children:[t.jsx(Jt,{children:ke.otherAccount.title}),t.jsx(Yt,{children:ke.otherAccount.subTitle})]}),t.jsxs(Xt,{windowSize:w,wrapperWidth:V[1].width,children:[wt(te,w,m.mode==="dark",e,!0),t.jsxs(an,{children:[t.jsx(cn,{children:t.jsx(dn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(ln,{windowSize:w,children:[t.jsxs(un,{children:[t.jsx(sn,{children:e.accountSubType?.name}),t.jsx(rn,{children:e.maskedAccountNumber}),E&&t.jsx(pn,{})]}),E&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:b==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:p.fetchStatus,updateStatus:p.updateStatus,linkFetchStatus:u.fetchStatus,linkUpdateStatus:u.updateStatus,prevFetchState:h,prevUpdateState:P},onUpdateLinkTokenClick:()=>{D.trackConnectBankGetBalance(l,"Settings"),W("update_account"),T("update_account",y(l),e.paymentAccountId)},onChaseInfoClick:()=>{s(!0)}})]})]})]}),t.jsx(Qt,{windowSize:w,wrapperWidth:V[2].width,children:ne?.accountName??Ut}),t.jsx(Zt,{windowSize:w,wrapperWidth:V[3].width,children:g!=null?t.jsx(me,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:g.name,textColor:ge(g.code)}):Mt}),t.jsxs(Kt,{windowSize:w,wrapperWidth:V[4].width,children:[t.jsx(en,{className:"balanceLabel",isRemoveHovered:N,children:fe("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(tn,{className:"balanceLabel",isRemoveHovered:N,children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,N&&t.jsx(nn,{children:t.jsx(He,{moreIconType:"plain",options:[{label:ke.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:m.colors.grey5,width:"162px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${K.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:K.important,":hover":{color:K.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:L=>{L==="remove"&&j(e.paymentAccountId)},valueToIcon:Vt})})]})]})},qt=n.div`
150
150
  display: flex;
151
151
  padding: ${i.sp4};
152
152
  padding-right: ${i.sp8};
153
153
  position: relative;
154
- `,Jt=n.div`
154
+ `,Gt=n.div`
155
155
  display: flex;
156
156
  align-items: center;
157
157
  flex-direction: column;
158
158
  align-items: flex-start;
159
159
  width: ${e=>e.wrapperWidth.valuePercentage(e.windowSize)};
160
- `,Gt=n(M)`
160
+ `,Jt=n(M)`
161
161
  color: ${e=>e.theme.colors.grey1};
162
162
  display: flex;
163
163
  align-items: center;
@@ -230,7 +230,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
230
230
  height: ${i.sp1};
231
231
  cursor: inherit;
232
232
  background-color: ${e=>e.theme.colors.grey1};
233
- `,{common:{settings:pe,strings:{empty:hn}}}=re.getLocalizedStrings(),mn=()=>null,fn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ce().analytics,[D,N]=r.useState(!1),o=e.plaidConnectionDetails.link_account,a=e.plaidConnectionDetails.update_account,[s,u]=r.useState(void 0),p=s==="update_account"?a:o,[v,W]=r.useState(p.linkToken??null),[$,S]=r.useState(!1),b=G(o.updateStatus.fetchState),A=G(a.updateStatus.fetchState),q=G(a.fetchStatus.fetchState),O=e?.providerVerificationStatus,P=e?.isLoginRequired??!1,h="other_connection",f=O?.code,E=r.useCallback((I,J)=>{w.trackConnectBankSuccess(h,"Settings");const Q=J.accounts.find(te=>te.id===e.providerAccountId)??J.accounts[0];e.paymentAccountId==null||s!=="update_account"||Q?.verification_status==null||P?R(I,y(h),h):c(Q?.verification_status,e.paymentAccountId,"update_account",y(h),h),u(void 0),S(!1)},[w,h,e.paymentAccountId,e.providerAccountId,s,P,c,R]),l=r.useCallback((I,J)=>{I!=null&&(w.trackConnectBankFailure(h,I.error_code+" "+I.error_message,"Settings"),I.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(h),h),console.log("Plaid Connection Error",I,J)),u(void 0),S(!1)},[w,h,e.paymentAccountId,c]),{open:g,ready:U}=_e({token:v,onSuccess:E,onExit:l});r.useEffect(()=>{p.fetchStatus.fetchState==="Completed"&&p.linkToken!=null&&p.linkToken!==v&&W(p.linkToken)},[p.fetchStatus.fetchState,p.linkToken,v]),r.useEffect(()=>{$&&g()},[$,g]),r.useEffect(()=>{(b==="In-Progress"&&o.updateStatus.fetchState==="Completed"||A==="In-Progress"&&a.updateStatus.fetchState==="Completed")&&(ee(f??"")||(T("link_account",y(h)),C(y(h),h)))},[o.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,b,A,a.updateStatus.fetchState,f,h]),r.useEffect(()=>{(ee(f??"")||f==="verification_failed")&&!$&&s!=null&&p.linkToken===v&&p.fetchStatus.fetchState==="Completed"&&U&&S(!0)},[U,v,p.fetchStatus.fetchState,p.linkToken,f,s,$]);const X=d.find(I=>I.accountId===e.zeniAccountId);return t.jsxs(gn,{children:[D===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>N(!1)}}),document.body):null,t.jsxs(wn,{children:[t.jsx(Sn,{children:`${pe.otherAccount.title} ${pe.otherAccount.subTitleSmall}`}),t.jsx(He,{moreIconType:"plain",options:[{label:pe.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${K.boxShadowElevation}`}),option:()=>({color:m.colors.important,":hover":{color:m.colors.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:I=>{I==="remove"&&j(e.paymentAccountId)},valueToIcon:mn})]}),t.jsxs(xn,{children:[t.jsxs(zn,{children:[t.jsx(jn,{children:t.jsx(Pn,{children:e.institutionDetails.institutionName})}),t.jsxs(In,{children:[t.jsx(Tn,{children:e.accountSubType?.name}),t.jsx(_n,{children:e.maskedAccountNumber}),t.jsx(kn,{children:O!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:O.name,textColor:fe(O.code)}):null}),P&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:s==="update_account",isLoginRequired:P,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:a.fetchStatus,updateStatus:a.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:q,prevUpdateState:A},onUpdateLinkTokenClick:()=>{w.trackConnectBankGetBalance(h,"Settings"),u("update_account"),T("update_account",y(h),e.paymentAccountId)},onChaseInfoClick:()=>{N(!0)}})]})]}),t.jsxs($n,{children:[t.jsx(An,{className:"balanceLabel",children:ge("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(Cn,{className:"balanceLabel",children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(yn,{children:[t.jsx(vn,{children:pe.bankConnectionHeader.linkAccount}),t.jsx(bn,{children:X?.accountName??hn})]})]})},gn=n.div`
233
+ `,{common:{settings:pe,strings:{empty:hn}}}=re.getLocalizedStrings(),mn=()=>null,gn=({paymentAccount:e,bankAccountList:d,balanceFetchStatus:H,connectedAccountProvider:B,onRemoveConnection:j,onFetchLinkTokenClick:T,onEstablishConnectionClick:R,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const m=xe(),w=Ce().analytics,[D,N]=r.useState(!1),o=e.plaidConnectionDetails.link_account,a=e.plaidConnectionDetails.update_account,[s,u]=r.useState(void 0),p=s==="update_account"?a:o,[b,W]=r.useState(p.linkToken??null),[$,S]=r.useState(!1),v=J(o.updateStatus.fetchState),A=J(a.updateStatus.fetchState),q=J(a.fetchStatus.fetchState),O=e?.providerVerificationStatus,P=e?.isLoginRequired??!1,h="other_connection",g=O?.code,E=r.useCallback((I,G)=>{w.trackConnectBankSuccess(h,"Settings");const Q=G.accounts.find(te=>te.id===e.providerAccountId)??G.accounts[0];e.paymentAccountId==null||s!=="update_account"||Q?.verification_status==null||P?R(I,y(h),h):c(Q?.verification_status,e.paymentAccountId,"update_account",y(h),h),u(void 0),S(!1)},[w,h,e.paymentAccountId,e.providerAccountId,s,P,c,R]),l=r.useCallback((I,G)=>{I!=null&&(w.trackConnectBankFailure(h,I.error_code+" "+I.error_message,"Settings"),I.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(h),h),console.log("Plaid Connection Error",I,G)),u(void 0),S(!1)},[w,h,e.paymentAccountId,c]),{open:f,ready:U}=_e({token:b,onSuccess:E,onExit:l});r.useEffect(()=>{p.fetchStatus.fetchState==="Completed"&&p.linkToken!=null&&p.linkToken!==b&&W(p.linkToken)},[p.fetchStatus.fetchState,p.linkToken,b]),r.useEffect(()=>{$&&f()},[$,f]),r.useEffect(()=>{(v==="In-Progress"&&o.updateStatus.fetchState==="Completed"||A==="In-Progress"&&a.updateStatus.fetchState==="Completed")&&(ee(g??"")||(T("link_account",y(h)),C(y(h),h)))},[o.updateStatus.fetchState,C,T,e?.providerVerificationStatus?.code,e?.paymentAccountId,v,A,a.updateStatus.fetchState,g,h]),r.useEffect(()=>{(ee(g??"")||g==="verification_failed")&&!$&&s!=null&&p.linkToken===b&&p.fetchStatus.fetchState==="Completed"&&U&&S(!0)},[U,b,p.fetchStatus.fetchState,p.linkToken,g,s,$]);const X=d.find(I=>I.accountId===e.zeniAccountId);return t.jsxs(fn,{children:[D===!0?Te.createPortal(t.jsx(ze,{connectedAccountProvider:B,action:{onBackClick:()=>N(!1)}}),document.body):null,t.jsxs(wn,{children:[t.jsx(Sn,{children:`${pe.otherAccount.title} ${pe.otherAccount.subTitleSmall}`}),t.jsx(He,{moreIconType:"plain",options:[{label:pe.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:m.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${m.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${K.boxShadowElevation}`}),option:()=>({color:m.colors.important,":hover":{color:m.colors.important,backgroundColor:m.colors.background}})},menuPlacement:"bottom",onOptionSelection:I=>{I==="remove"&&j(e.paymentAccountId)},valueToIcon:mn})]}),t.jsxs(xn,{children:[t.jsxs(zn,{children:[t.jsx(jn,{children:t.jsx(Pn,{children:e.institutionDetails.institutionName})}),t.jsxs(In,{children:[t.jsx(Tn,{children:e.accountSubType?.name}),t.jsx(_n,{children:e.maskedAccountNumber}),t.jsx(kn,{children:O!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:O.name,textColor:ge(O.code)}):null}),P&&t.jsx(je,{productType:"other_connection",isUpdateLinkClicked:s==="update_account",isLoginRequired:P,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:a.fetchStatus,updateStatus:a.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:q,prevUpdateState:A},onUpdateLinkTokenClick:()=>{w.trackConnectBankGetBalance(h,"Settings"),u("update_account"),T("update_account",y(h),e.paymentAccountId)},onChaseInfoClick:()=>{N(!0)}})]})]}),t.jsxs($n,{children:[t.jsx(An,{className:"balanceLabel",children:fe("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(Cn,{className:"balanceLabel",children:we(e.balances?.lastRefreshTime)}):H?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(yn,{children:[t.jsx(bn,{children:pe.bankConnectionHeader.linkAccount}),t.jsx(vn,{children:X?.accountName??hn})]})]})},fn=n.div`
234
234
  display: flex;
235
235
  flex-direction: column;
236
236
  padding: ${i.sp3};
@@ -254,10 +254,10 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
254
254
  `,yn=n.div`
255
255
  display: flex;
256
256
  align-items: center;
257
- `,vn=n(F)`
257
+ `,bn=n(F)`
258
258
  color: ${e=>e.theme.colors.grey1};
259
259
  margin-right: ${i.sp2};
260
- `,bn=n(F)`
260
+ `,vn=n(F)`
261
261
  color: ${e=>e.theme.colors.hero};
262
262
  `,kn=n(M)`
263
263
  display: flex;
@@ -291,7 +291,7 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
291
291
  align-items: center;
292
292
  flex-wrap: wrap;
293
293
  gap: ${i.sp2};
294
- `,{settings:{bankConnectionListHeader:$e,title:Ln,infoText:On}}=re.getLocalizedStrings().common,Se={pageContentPadding:new _(k[4],k[8]),subtitleSectionWidth:new _(343,580,1200),subTitleBottomMargin:new _(k[0],k[5])},En={qboLinkAcc:new it("smallRegular","standardRegular")},ce="bankAccountSection",le="primaryAccountSection",Fn="bill_pay",Bn="reimbursement",Rn="zeni_accounts",Dn="charge_cards",Nn="zeni_treasury",Re=e=>t.jsx(Mn,{children:V.map(d=>t.jsx(Vn,{actualDataValue:d.value,wrapperWidth:d.width,windowSize:e,children:t.jsx(Hn,{children:d.value})},d.value))}),fi=({bankSetupView:e,connectedAccountProvider:d,onBackClick:H,onUpdateAccountClick:B,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:m,onUpdatePrimaryFundingAccount:w,onRemoveConnection:D})=>{const N=xe(),o=Ae(),{allFundingAccounts:a,primaryConnection:s}=e,u=Ye({mode:"all",reValidateMode:"onChange",defaultValues:We(e),values:We(e)}),p=u.handleSubmit(S=>{});r.useEffect(()=>{const S=u.watch((b,{name:A})=>{A!=null&&b!=null&&Xe(()=>(async(q,O)=>{const P=q.split("."),h=P[0],f=P[1],E=s.find(l=>l.productType===h);if(h!=null&&f!=null){const l=O[h][f];if(f==="primaryAccountSection"){const g=a.find(U=>U.id===l.selectedOption)?.accType;l.selectedOption!=null&&g!=null&&w(l.selectedOption,y(h),g)}else if(f==="bankAccountSection"&&E!=null&&E.primaryFundingAccount!=null&&l.selectedOption!=null){const g=E.primaryFundingAccount?.id,U=E.primaryFundingAccount?.accType;g!=null&&U!=null&&B(l.selectedOption,g,h,y(h),U)}}})(A,b))});return()=>{S.unsubscribe()}});const v=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",W=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,$=o==="small"?fn:Ht;return t.jsxs(Un,{children:[t.jsx(Qe,{source:"BankConnectionsSettingsPage",title:Ln.bankConnections,backgroundColor:N.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:m}),t.jsxs(Jn,{windowSize:o,children:[t.jsx(Xn,{windowSize:o,children:t.jsx(Qn,{windowSize:o,children:On.bankConnections})}),v?t.jsx(Gn,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):W?t.jsx(Ke,{message:"No bank connections added."}):t.jsxs(Wn,{windowSize:o,children:[t.jsx(Ne,{children:$e.primary}),o!=="small"?Re(o):null,t.jsx(et,{...u,children:t.jsx("form",{id:ei("bankConnectionsSettingsPage"),onSubmit:p,children:t.jsx(Yn,{windowSize:o,children:e.primaryConnection.map(S=>S!=null?t.jsx(De,{windowSize:o,children:t.jsx(xt,{allBankAccounts:e.allBankAccounts,setupView:S,connectedAccountProvider:d,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},S.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(qn,{children:[t.jsx(Ne,{children:$e.other}),t.jsx(Zn,{children:t.jsx(tt,{display:"flex",placement:"right",maxWidth:"340px",title:$e.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(Kn,{})})})]}):null,o!=="small"&&e.otherPaymentAccounts.length>0?Re(o):null,e.otherPaymentAccounts.map(S=>{const b=a.find(A=>A.id===S.paymentAccountId)?.balanceFetchStatus;return t.jsx(De,{windowSize:o,children:t.jsx($,{paymentAccount:S,bankAccountList:e.allBankAccounts,balanceFetchStatus:b,connectedAccountProvider:d,onRemoveConnection:D,onFetchLinkTokenClick:j,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:T,onEstablishConnectionSuccess:c})},S.paymentAccountId)})]})]})]})},Wn=n.div`
294
+ `,{settings:{bankConnectionListHeader:$e,title:Ln,infoText:On}}=re.getLocalizedStrings().common,Se={pageContentPadding:new _(k[4],k[8]),subtitleSectionWidth:new _(343,580,1200),subTitleBottomMargin:new _(k[0],k[5])},En={qboLinkAcc:new it("smallRegular","standardRegular")},ce="bankAccountSection",le="primaryAccountSection",Fn="bill_pay",Bn="reimbursement",Rn="zeni_accounts",Dn="charge_cards",Nn="zeni_treasury",Re=e=>t.jsx(Mn,{children:V.map(d=>t.jsx(Vn,{actualDataValue:d.value,wrapperWidth:d.width,windowSize:e,children:t.jsx(Hn,{children:d.value})},d.value))}),gi=({bankSetupView:e,connectedAccountProvider:d,onBackClick:H,onUpdateAccountClick:B,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:m,onUpdatePrimaryFundingAccount:w,onRemoveConnection:D})=>{const N=xe(),o=Ae(),{allFundingAccounts:a,primaryConnection:s}=e,u=Ye({mode:"all",reValidateMode:"onChange",defaultValues:We(e),values:We(e)}),p=u.handleSubmit(S=>{});r.useEffect(()=>{const S=u.watch((v,{name:A})=>{A!=null&&v!=null&&Xe(()=>(async(q,O)=>{const P=q.split("."),h=P[0],g=P[1],E=s.find(l=>l.productType===h);if(h!=null&&g!=null){const l=O[h][g];if(g==="primaryAccountSection"){const f=a.find(U=>U.id===l.selectedOption)?.accType;l.selectedOption!=null&&f!=null&&w(l.selectedOption,y(h),f)}else if(g==="bankAccountSection"&&E!=null&&E.primaryFundingAccount!=null&&l.selectedOption!=null){const f=E.primaryFundingAccount?.id,U=E.primaryFundingAccount?.accType;f!=null&&U!=null&&B(l.selectedOption,f,h,y(h),U)}}})(A,v))});return()=>{S.unsubscribe()}});const b=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",W=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,$=o==="small"?gn:Ht;return t.jsxs(Un,{children:[t.jsx(Qe,{source:"BankConnectionsSettingsPage",title:Ln.bankConnections,backgroundColor:N.colors.grey4,style:{zIndex:3},onBackClick:H,showBackButton:!1,showMenuIcon:o==="medium-compact"||o==="small",onClickMenuIcon:m}),t.jsxs(Gn,{windowSize:o,children:[t.jsx(Xn,{windowSize:o,children:t.jsx(Qn,{windowSize:o,children:On.bankConnections})}),b?t.jsx(Jn,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):W?t.jsx(Ke,{message:"No bank connections added."}):t.jsxs(Wn,{windowSize:o,children:[t.jsx(Ne,{children:$e.primary}),o!=="small"?Re(o):null,t.jsx(et,{...u,children:t.jsx("form",{id:ei("bankConnectionsSettingsPage"),onSubmit:p,children:t.jsx(Yn,{windowSize:o,children:e.primaryConnection.map(S=>S!=null?t.jsx(De,{windowSize:o,children:t.jsx(xt,{allBankAccounts:e.allBankAccounts,setupView:S,connectedAccountProvider:d,onFetchLinkTokenClick:j,onUpdatePaymentAccountStatus:T,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},S.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(qn,{children:[t.jsx(Ne,{children:$e.other}),t.jsx(Zn,{children:t.jsx(tt,{display:"flex",placement:"right",maxWidth:"340px",title:$e.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(Kn,{})})})]}):null,o!=="small"&&e.otherPaymentAccounts.length>0?Re(o):null,e.otherPaymentAccounts.map(S=>{const v=a.find(A=>A.id===S.paymentAccountId)?.balanceFetchStatus;return t.jsx(De,{windowSize:o,children:t.jsx($,{paymentAccount:S,bankAccountList:e.allBankAccounts,balanceFetchStatus:v,connectedAccountProvider:d,onRemoveConnection:D,onFetchLinkTokenClick:j,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:T,onEstablishConnectionSuccess:c})},S.paymentAccountId)})]})]})]})},Wn=n.div`
295
295
  display: flex;
296
296
  flex-direction: column;
297
297
  width: 100%;
@@ -377,14 +377,14 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
377
377
  color: ${e=>e.theme.colors.primary};
378
378
  }
379
379
  }
380
- `,Jn=n.div`
380
+ `,Gn=n.div`
381
381
  display: flex;
382
382
  justify-content: flex-start;
383
383
  height: 100%;
384
384
  overflow-y: auto;
385
385
  flex-direction: column;
386
386
  align-items: center;
387
- `,Gn=n.div`
387
+ `,Jn=n.div`
388
388
  display: flex;
389
389
  width: 100%;
390
390
  height: calc(100vh - 110px);
@@ -422,4 +422,4 @@ import{y as xe,e as Ae,T as Ye,c8 as Xe,V as t,a_ as Qe,o as i,O as re,x as _,H
422
422
  width: ${i.sp3};
423
423
  height: ${i.sp3};
424
424
  color: ${e=>e.theme.colors.hero};
425
- `,We=e=>{const{primaryConnection:d,allBankAccounts:H,allFundingAccounts:B}=e,j=H.map(o=>({label:o.accountName,value:o.accountId})),T=B.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"})),R=d.find(o=>o.productType==="bill_pay"),C=d.find(o=>o.productType==="reimbursement"),c=d.find(o=>o.productType==="zeni_accounts"),m=d.find(o=>o.productType==="charge_cards"),w=d.find(o=>o.productType==="zeni_treasury"),D=c?.allFundingAccounts.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))??[],N=w?.allFundingAccounts.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="paymentAccount"}))??[];return{[Fn]:{[ce]:{selectedOption:R?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:R?.primaryFundingAccount?.id,allOptions:T}},[Bn]:{[ce]:{selectedOption:C?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:C?.primaryFundingAccount?.id,allOptions:T}},[Rn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:D}},[Nn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:N}},[Dn]:{[ce]:{selectedOption:m?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:m?.primaryFundingAccount?.id,allOptions:T}}}},ei=e=>`${e}_form`;export{fi as default,ei as formUniqueName};
425
+ `,We=e=>{const{primaryConnection:d,allBankAccounts:H,allFundingAccounts:B}=e,j=H.map(o=>({label:o.accountName,value:o.accountId})),T=B.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"})),R=d.find(o=>o.productType==="bill_pay"),C=d.find(o=>o.productType==="reimbursement"),c=d.find(o=>o.productType==="zeni_accounts"),m=d.find(o=>o.productType==="charge_cards"),w=d.find(o=>o.productType==="zeni_treasury"),D=c?.allFundingAccounts.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))??[],N=w?.allFundingAccounts.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="paymentAccount"}))??[];return{[Fn]:{[ce]:{selectedOption:R?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:R?.primaryFundingAccount?.id,allOptions:T}},[Bn]:{[ce]:{selectedOption:C?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:C?.primaryFundingAccount?.id,allOptions:T}},[Rn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:D}},[Nn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:N}},[Dn]:{[ce]:{selectedOption:m?.primaryFundingAccount?.zeniAccountId,allOptions:j},[le]:{selectedOption:m?.primaryFundingAccount?.id,allOptions:T}}}},ei=e=>`${e}_form`;export{gi as default,ei as formUniqueName};