@zeniai/web-app-ui 4.14.30-qa → 4.14.31-qa

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 (372) hide show
  1. package/dist/assets/{ACHDetailsPage-CQdbfxHV-CVfdxX3S.js → ACHDetailsPage-CFhoboVe-DcRe2nTt.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-jyNXVGMj-Df3oatFx.js → AIPerformancePage-DB-fTWME-DYZeuOnD.js} +1 -1
  3. package/dist/assets/AccountInfoPage-pEEhPqOb-B-Hd8VtG.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-eYEsv7ac-DDYvpmDy.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-EbQpyRJx-CBjiURZ4.js → AccountLockedInfoModal-jYWr_8TD-DcOOzUkE.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CK1QV13E-DZmItK8g.js → AccountReconDetailsDrawerPage-3Q0EPYhL-27wJMTjD.js} +2 -2
  7. package/dist/assets/{AccountRow-B3Sz6a-V-CTAgoDt8.js → AccountRow-CdgvnPG8-BR1hQ4Zy.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DJtz56-u-DZZMgyeG.js → AccountsPromoCardStack-DHo59LLN-ChbxyMzd.js} +13 -13
  9. package/dist/assets/{AddAddressForCardDrawer-BDtxj9h6-CGRCP-Ov.js → AddAddressForCardDrawer-BzO1FXUa-kLdLeGkd.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-Czepun8f-BSrXEfN0.js → AddToWalletPage-BfXFbHjk-CYPGe181.js} +1 -1
  11. package/dist/assets/{AddressRoutes-TFWvRoK1.js → AddressRoutes-XcDMlDlS.js} +1 -1
  12. package/dist/assets/{AddressScreen-TV5gX_gl.js → AddressScreen-DPPx0MfK.js} +1 -1
  13. package/dist/assets/{AgingReportsPage-DzAVDq_i-ym_LOlxy.js → AgingReportsPage-C1hFq4KH-DN--gN3O.js} +8 -8
  14. package/dist/assets/{AiCfoScreen-D6K-vpzr.js → AiCfoScreen-30SW2q3w.js} +1 -1
  15. package/dist/assets/{AllUserItems-BEoRQT-v-B0L7dc_f.js → AllUserItems-B6pnKByY-DyP7v-cA.js} +5 -5
  16. package/dist/assets/{ApAgingDetailPage-55JdoIHh-DrarMtyY.js → ApAgingDetailPage-CxLVGnpY-BYGcfd1t.js} +8 -8
  17. package/dist/assets/{AppBasePage-CLye29uw-XKxIMpL1.js → AppBasePage-DiVxF606-AXI0aqhJ.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-CDawrmfz-CIsX5yBE.js → AppDrawerContent-B_EWsf8O-CMysKcTU.js} +5 -5
  19. package/dist/assets/{ApprovalRulesSettingsPage-BHUZdWCO-Dwb34rZQ.js → ApprovalRulesSettingsPage-HHjDp_NQ-jrLhlHCF.js} +1 -1
  20. package/dist/assets/{ArAgingChart-DeL9nNI7-jiARVqmw.js → ArAgingChart-Ba4A-i2N-PODxdvyn.js} +4 -4
  21. package/dist/assets/{ArAgingDetailPage-CuG65EQs-DJsQVyGf.js → ArAgingDetailPage-prgcvsS4-BsTAVwTa.js} +1 -1
  22. package/dist/assets/{AttachmentView-C5anq6-B-B0oKrwit.js → AttachmentView-SsWJw4A8-RJr9hQhO.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-1PK_fwhP-DTycoTBO.js → BalancesInsightWithToolTip-DE6gDjGA-e_65zoZY.js} +4 -4
  24. package/dist/assets/{BankAccountSection-BUJoSOk8-CktP5_6B.js → BankAccountSection-B4jmT0lb-zwPodZbw.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-BQaoV2yQ-D2dPrb3a.js → BankAccountWarningSection-Bz2itMx0-BfZtVATK.js} +1 -1
  26. package/dist/assets/{BankConnectionsSettingsPage-DRDS5xzS-sJm12Xpi.js → BankConnectionsSettingsPage-BcVk7bTt-C3Wp_iZl.js} +9 -9
  27. package/dist/assets/{BillDetailPage-CtVVaqTN-Cs2maBN6.js → BillDetailPage-Dkqmi4H1-C6mDNSc2.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-BcknH4As.js → BillPayApprovalRoutes-CaSA1uSR.js} +1 -1
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-6GHCsDkX-BhEokdj1.js → BillPayApprovalRuleDetailPage-Blxlv3pa-BYAGbgwQ.js} +4 -4
  30. package/dist/assets/{BillPayApprovalRulesPage-QKjq-qVP-bPrJjJ_n.js → BillPayApprovalRulesPage-B_QwggJS-BveqhBul.js} +1 -1
  31. package/dist/assets/{BillPayPromoPage-_n9uoXTN-C-ItO23h.js → BillPayPromoPage-Bx2AXpWe-BrIbmhut.js} +11 -11
  32. package/dist/assets/{BillPayRoutes-CrujOQ7A.js → BillPayRoutes-CMdKHc5T.js} +1 -1
  33. package/dist/assets/{BillPaySetUpPage-DNYX24VA-xlmRW4oi.js → BillPaySetUpPage-CM7_DkHC-Bt5CjJNs.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-Btv3yiNs-8WC50UDB.js → BillingSettingsPage-DM0OIfxa-CKHUmPAw.js} +3 -3
  35. package/dist/assets/{BillsBulkReviewDrawerPage-BiLLeGke-JyRoZ7s-.js → BillsBulkReviewDrawerPage-C3xmQ7wz-Cf_j4N1J.js} +1 -1
  36. package/dist/assets/{BoxItem-Dqp4SNlI-CnJYfmyU.js → BoxItem-CvCo0wr6-BAtsmvg4.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-_8Wg_S5G-CBDfKOCi.js → BusinessVerificationPage-BAZmkR4a-BbYTLnZH.js} +3 -3
  38. package/dist/assets/{BusinessVerificationPageScreen-BSkh5puj.js → BusinessVerificationPageScreen-DVGxc_kT.js} +1 -1
  39. package/dist/assets/{BusyIndication-BZLVwIo8-D7x09Syx.js → BusyIndication-Cp8KWKB2-paVspSd6.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-12zyW5qQ-CZArd4_p.js → CardNumberSubText-DHtSIcZZ-CJNkVpEB.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-B8-TDuv8-BtBdmaco.js → CashbackDetailPage-CNS1FA6b-DNPbsy8R.js} +1 -1
  42. package/dist/assets/{ChargeCardDetailPage-Bdz5L2ko-B9HW8VJu.js → ChargeCardDetailPage-C4NeG7IM-Bqzrs3Tx.js} +1 -1
  43. package/dist/assets/{ChargeCardListPage-EuJ1VXck-C9ILrDfC.js → ChargeCardListPage-DNYiWaEf-D4WPR4qJ.js} +6 -6
  44. package/dist/assets/{ChargeCardListTable-SgjwYd8W-D2X3nHhv.js → ChargeCardListTable-DdnyzdFf-BLIVQeNK.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-BC2DkmZT-z-BJ1TRl.js → ChargeCardPaymentHistoryPage-CXlqzaUt-nlgSDdhG.js} +10 -10
  46. package/dist/assets/ChargeCardPromoPage-D4canPX9-CjFFR5oK.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-DtXgeUrQ.js → ChargeCardRoutes-DipRg107.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-ByLoLZE_-D5yhBe12.js → ChargeCardSetupPage-BtikPFOq-Ci06zFqY.js} +2 -2
  49. package/dist/assets/{ChargeCardStatementsPage-C4XdqPO1-B4JvhC1B.js → ChargeCardStatementsPage-RepWBbvJ-qZhzfjJs.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-D5X61CKc-DCVEIWOd.js → CheckDepositDrawerPage-BCqg3irO-CU861UMl.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-D7zD4-h0-CXEJdn3k.js → CollapsableReportTable-gy7Ue_fk-Cp0GdxMJ.js} +2 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-w86_5FXJ-BVS8U2VI.js → CompanyOfficerDetailsSection-BsCx7q-g-Bqu05vNe.js} +11 -11
  53. package/dist/assets/{CompanyPassportCard-tpE1lXug-aG1e_v_p.js → CompanyPassportCard-BbUWOs1U-CQapOMzG.js} +6 -6
  54. package/dist/assets/{CompanyPassportPage-bND99CJN-51EM3BS8.js → CompanyPassportPage-BnP2oA1U-DG-ray3n.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-DNHzvh3T.js → CompanyPassportScreen-Bsk4iSLd.js} +1 -1
  56. package/dist/assets/{CompleteProfile-B5W07hcs-BYS2Cw7x.js → CompleteProfile-TiRsm2Fm-Dmw9B9gd.js} +1 -1
  57. package/dist/assets/ConfettiBurst-D7J36hZf-DAmXS8qh.js +1 -0
  58. package/dist/assets/{ConnectionAuthScreen-C1ACdx6M.js → ConnectionAuthScreen-CdbJnza-.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-C96GWvku.js → ConstrainedInnerElement-CgdnMeoA-CpoLys2G.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-CrQh8JCh-CdARK_ay.js → CreateOrEditVendorPage-Dihzr1D5-Df0a--du.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-BoVmLCHh-ClmStU3s.js → CreditCardPaymentDrawerPage-CZGzDuxC-CG7xBUFZ.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-D2azwi1T-Yce6ywvM.js → CurrencySelectField-BTAmIqPa-BOvsicp3.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-DxuEGe6X-DOVYYini.js → CustomerOnboardingActivationPage-MVI7kqIh-B52EVUog.js} +3 -3
  64. package/dist/assets/CustomerOnboardingAuthScreen-DO7d0gIb.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--CSEqEIM8.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DRGKainD-DRHsfYAC.js → CustomerOnboardingDetailPageSkeleton-CaI_0pCb-Dx2c__Yb.js} +8 -8
  67. package/dist/assets/CustomerOnboardingNoStepsPage-CO_c2COV-CcNi7DUF.js +66 -0
  68. package/dist/assets/{CustomerOnboardingPage-BXZSl2im-CdR09mXQ.js → CustomerOnboardingPage-BF0vuYaJ-CpeT13Rn.js} +16 -16
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-BJmYX0kI-DgmtQLkO.js → CustomerOnboardingProductSuitePage-BGFdLX1i-C7qSBsYV.js} +3 -3
  70. package/dist/assets/{CustomerOnboardingRoutes-BNk50EBa.js → CustomerOnboardingRoutes-BqTX1iyW.js} +1 -1
  71. package/dist/assets/{Dashboard-yhqyXPbZ-DD3l1FY2.js → Dashboard-Qjedd4r--DdmcDs7e.js} +26 -26
  72. package/dist/assets/{DashboardReportPage-BG4StCjY-BqArxOAD.js → DashboardReportPage-Deith_ON-BYNIuWwI.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-sZ-hP0Lz.js → DashboardRoutes-C3tqy16Q.js} +1 -1
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-C7DfUDio-CXRw7JSP.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-BZ1C0pHF.js → DefaultTenantHome-DTL7QcJH.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-5ZEPnNxa-5QBvNOk0.js → DepositAccTransactionItem-7kYotKov-C07q_etT.js} +7 -7
  77. package/dist/assets/{DepositAccTransactionListPage-BR8d0Kun-DoTQr_rp.js → DepositAccTransactionListPage-Bop4Uj5w-DYSx2RBP.js} +3 -3
  78. package/dist/assets/{DomesticWireDetailScreen-H_WuL4rG.js → DomesticWireDetailScreen-D_BfoPLh.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-wGIWvhgQ-uEZDY48j.js → DomesticWireDetailsPage-_TyXsqEx-jkwnoEUE.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-SLvxfa6B-BbI1muq1.js → DownloadOverlay-Cmd727bN-CUU7ZY9L.js} +14 -14
  81. package/dist/assets/{DrawerPage-CFdTV10k-BDAq-J1m.js → DrawerPage-DmGwfnGp-LTv4sDcy.js} +1 -1
  82. package/dist/assets/{DrawerScreen-DokbcyFi.js → DrawerScreen-DtF71b7B.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-C-Y62PJ0-OR5daMys.js → EditPeoplePage-YyluIC6R-CXdaDa7G.js} +5 -5
  84. package/dist/assets/{EditReimbursementDetailPage-BYpXof8e-DpqR0TKa.js → EditReimbursementDetailPage-DeMid2Ko-Bv-8Xabp.js} +14 -14
  85. package/dist/assets/EntityDetailPage-DPTSSZdS-oHoyHWu0.js +18 -0
  86. package/dist/assets/{EntityDetailRoutes-DPf_I5PV.js → EntityDetailRoutes-DYnivlwX.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-B2uG3-Zh-BNN-XEhG.js → EntitySummarySection-5NbutA8l-CQbl1YIH.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-CrtNuarm-DCl80aVX.js → ExpenseAutomationOverviewPage-CQ_3WluW-CLWld5W7.js} +6 -6
  89. package/dist/assets/{ExpenseAutomationPage-CWPnIMSu-DYb4-i2t.js → ExpenseAutomationPage-VuU4acYd-B7T-Dg4p.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-DUWDjNay.js → ExpenseAutomationRoutes-BlW2sTwn.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-CsI_DUc6-DXAWujAE.js → ExpressPayPage-DhoNmyC2-Bd-YVNzq.js} +10 -10
  92. package/dist/assets/{FeaturePreviewPage-B67a68N9-D61ej93i.js → FeaturePreviewPage-GSwhPxgP-CXXTQoUA.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-Bcvg8Bfv.js → FeaturePreviewScreen-CpHWA-St.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-CgjzMm02-glrhNO5E.js → FollowStepsSection-DaueHRo4-FQso0zsG.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-CIfK-0rd-COml45hA.js → GlobalReviewListPage-DG7_1HOT-_eh0o3Lh.js} +1 -1
  96. package/dist/assets/{InformationCardStack-qKld10kr-0nHm6M6u.js → InformationCardStack-zc-BxR7F-CH328-RF.js} +1 -1
  97. package/dist/assets/{InsightsCardStack-Bbh77o6f-D3KyjkmI.js → InsightsCardStack-DxCA5sFh-Y8l4503l.js} +5 -5
  98. package/dist/assets/{InsightsSection-DgfCOO4F-D4slzBMJ.js → InsightsSection-BdFG3j3R-DjHyJY78.js} +7 -7
  99. package/dist/assets/{IntegrationsSettingsPage-BRQFeOLt-PsXcQlIc.js → IntegrationsSettingsPage-CaiL3kqS-CiO2l-pg.js} +3 -3
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-DPemNncS-DLnjaRZK.js → InternationalWireSwiftDetailsPage-BrQVSzeS-B8g9fXts.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-BOxXfIY5-B_1WnyJ0.js → InternationalWireVerificationPage-NaLnhW9C-Be5m5GNN.js} +10 -10
  102. package/dist/assets/{InviteFormPage-BbbPCdh--NZBdztJE.js → InviteFormPage-fjqv2l7h-CLLSBMJ2.js} +1 -1
  103. package/dist/assets/{InvitePageListView-DqfrAulo-DhRBOiF7.js → InvitePageListView-CQecQhxr-DHxSXSin.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-CgTpZp4M-BUUsiiJF.js → InvitePeoplePage-DAEBuOnk-CNuAu3aA.js} +1 -1
  105. package/dist/assets/{InvoiceUploadSection-DZOzTShz-CcOswv0c.js → InvoiceUploadSection-58l6ePuH-CbCDsLyQ.js} +8 -8
  106. package/dist/assets/{IssueChargeCardPage-x6dLcd-P-w04y_5jk.js → IssueChargeCardPage-Bkxqsgax-B2E0w7s1.js} +8 -8
  107. package/dist/assets/{LabeledAddressValue-CY4Fn72d-eGI6rz6c.js → LabeledAddressValue-CZfFV97h-D0qxrk9o.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-D47ofJFV-vxJBVafU.js → LabeledAddressValueField-D66XOhMx-BL2wLyLH.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-C_c8Rs-i-BHT9Wulx.js → LabeledControlledCheckBoxField-BtnsqE4D-B85xoPON.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-vRw9drBe-B76tRzel.js → LabeledCountryMultiSelectField-kopByxLB-1-3v1UQa.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-CdF97ljM-CAYzF-3Y.js → LabeledCreatableSingleSelectField-B6An-cwq-DFSBA92N.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-Dn25Ru1C-B_WMp98N.js → LabeledDocumentField-D_ZD8JTn-vKeq6vm6.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-C2sZjA-q-Ct_5ILId.js → LabeledDropDownFormattedTextField-CJ7ncCzH-B0WjHFnN.js} +1 -1
  114. package/dist/assets/{LabeledEmailInputField-DzAdekQn-C8rbJEKG.js → LabeledEmailInputField-CSfzMDYO-CWt52Wcv.js} +1 -1
  115. package/dist/assets/{LabeledNameField-Dxx0xwMv-q011DeE8.js → LabeledNameField-DZJXGYR9-BrTXKAba.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-EO8TA_z_-C5J3CIRA.js → LabeledSingleSelectField-D_LoOMiZ-BMpo-aMs.js} +1 -1
  117. package/dist/assets/{LabeledText-Bo7B-LrF-XkdNglCy.js → LabeledText-A1h_ionS-CFl8s8G-.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DD11_Map-Cz77QBp-.js → LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-Q6YssO3g.js} +4 -4
  119. package/dist/assets/{LabeledZeniRolesDropDownField-BJ99uBt1-DRxN007k.js → LabeledZeniRolesDropDownField-DmynBXbJ-B4T-A7Cu.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-BiDoUKQW-DfQfBCux.js → LinkJETransactionPage-D6-fL4a6-tCaqs9Yj.js} +13 -13
  121. package/dist/assets/{LockCardPage-B1QOSByp-DoXf8Ddb.js → LockCardPage-BDlnh_zf-cKP8zIxD.js} +10 -10
  122. package/dist/assets/{LowBalancePopup-Bl_PaIUx-Cz8COji5.js → LowBalancePopup-CBPl_udd-BorudEL4.js} +1 -1
  123. package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-C2vI5jVH.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-BcNOhJgL-mWcNcIhr.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-bsxOE2QI.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-26mPfcBZ.js → MagicLinkRoutes-CcsKjkce.js} +1 -1
  127. package/dist/assets/{MagicLinkSignInScreen-BZrsQ5lk.js → MagicLinkSignInScreen-Dw8ViAP-.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-CuL-7CWN-CPURwwOW.js → MagicLinkSuccessPage-Cl461HWp-01GdAVLj.js} +6 -6
  129. package/dist/assets/{MagicLinkTitleSection-RYhrN820-C7Vcy8B4.js → MagicLinkTitleSection-DoIMYrRv-wUyCV4b7.js} +1 -1
  130. package/dist/assets/MailingDetailsSection-NdwWGQ88-ChhAh-Lq.js +21 -0
  131. package/dist/assets/{MobileAppDrawer-CVmbFUtl.js → MobileAppDrawer-D7V2koAX.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-5MZl4h9B-zFBR8G0C.js → MoreMenuButton-CkkW1atP-CT7ietod.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBw6kNsm-CLFKHbI6.js → MyBankConnectionsSettingsPage-BU6TBzI1-DURfzXrx.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-BC4YjZtP-DazHEsal.js → MyPendingActivationChargeCardListPage-DcunCDU6-CQIAZ-Ax.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-DZ5M2BUN-CgmWIcfU.js → MyProfileSettingsPage-DF7ahyXE-BEXIytCm.js} +1 -1
  136. package/dist/assets/{NavBarWithPicker-C6FiaLu5-CpPmiX85.js → NavBarWithPicker-D2v1fhLS-CGpIi67k.js} +1 -1
  137. package/dist/assets/{NavigationArrow-BnAgR0wH-BHMKW5N7.js → NavigationArrow-CWUL-6kN-CRVEGy5S.js} +1 -1
  138. package/dist/assets/{NavigationDots-WUDG_g8M-DDdWfUW3.js → NavigationDots-c-XSrFzE-Bl0Sm_Ng.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-gAsCusVw-Dq-IWGpb.js → NewGlobalMerchantPage-FGEO68I8-BKtwnvr_.js} +1 -1
  140. package/dist/assets/{NoDataChart-BBYUjdKn-CRdzJbNp.js → NoDataChart-DJhSgtLu-BO4-72hz.js} +1 -1
  141. package/dist/assets/{NoDataTable-D3750d25-DG2oQDdM.js → NoDataTable-BZiwo2qK-CJLZnBQL.js} +1 -1
  142. package/dist/assets/{NotFoundPage-C4D8Rn9E-CwNmDrN1.js → NotFoundPage-BN5unYX8-B80hQ8eO.js} +3 -3
  143. package/dist/assets/{NotFoundScreen-B8XFlejE.js → NotFoundScreen-BBbILNsa.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-N8MRrxNI.js → NotificationRoutes-BH_Amwk1.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-CD-t91ia-m4MxTTW4.js → NotificationSettingsPage-d8kHDj0M-2vIf0BRe.js} +1 -1
  146. package/dist/assets/{NotificationsListConfig-C7JSE-eQ-KxVFUV3z.js → NotificationsListConfig-ThKLok_w-Bx-0LQ4e.js} +1 -1
  147. package/dist/assets/{NotificationsPage-Be1v8niA-VHkbcX-a.js → NotificationsPage-Uvu6XESA-D1y42vLB.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-D1f1lQbs-DLXANeGq.js → OpExByVendorPage-QyqRkD2_-h8x1NnCW.js} +5 -5
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-B0J4P0vh.js → OverlayContainerPage-BG9y5C0t-B8rQHhtN.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-DIYb7BWp-eRZ2xhPy.js → PandLWithForecastPage-DJ2v5qbE-BgEHjFpy.js} +2 -2
  151. package/dist/assets/{PandLWithForecastRoutes-DV3lwMtf.js → PandLWithForecastRoutes-CCN_Dopf.js} +1 -1
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-tGkjxbjY-DHB-KR0X.js → PaymentAccountSetupBillingAddressSection-q5z8XZFC-IYhUlGT-.js} +6 -6
  153. package/dist/assets/{PeoplePage-xwAOX4Jk-cobVcrYv.js → PeoplePage-C5ZdpVyR-DA1lsmrN.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-0VPcCQMG.js → PeopleRoutes-BLNrKR-x.js} +1 -1
  155. package/dist/assets/{PerformanceRoutes-DWL6I_M2.js → PerformanceRoutes-BBydKp8A.js} +1 -1
  156. package/dist/assets/{Preview-k4ohm46R.js → Preview-C2UYzTeJ.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-OHbYasaa-DyO10mDE.js → ProductsCarousel-CXjLTOLy-2QbHSm9u.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-B_0dccCZ-Cll52Aug.js → PromoBaseCards-CN9uZfG4-CB2JkJIv.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-5ItNvdCA-B93tYXoX.js → QBOConnectionDialog-CXSi1Pd9-CSvewQW2.js} +2 -2
  160. package/dist/assets/{QBOConnectionScreen-CIFlgaXj.js → QBOConnectionScreen-tSJfFhQn.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-CHZgQppe-Boi15f5H.js → QBOSetupSection-BrtLMvEP-D5Os1BGx.js} +3 -3
  162. package/dist/assets/{ReferralListScreen-OXcIgRf5.js → ReferralListScreen-CJqU7RxZ.js} +1 -1
  163. package/dist/assets/{ReimbursementApprovalRoutes-CoU_u8MQ.js → ReimbursementApprovalRoutes-BHsHN-u_.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CqZT111l-BQrCKR9A.js → ReimbursementApprovalRuleDetailPage-CS1BQ7pL-_lY11RDq.js} +6 -6
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js → ReimbursementApprovalRuleDetailScreen-Bs2ple33.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-BzTe2nqd-CnRJV-7t.js → ReimbursementApprovalRulesPage-aLRkhkZB-CV07eSYp.js} +1 -1
  167. package/dist/assets/{ReimbursementDetailPage-DM650uCR-CfT7lIQy.js → ReimbursementDetailPage-Dr5BTvEq-DM2tEzQB.js} +7 -7
  168. package/dist/assets/{ReimbursementPromoPage-CitTg9s4-C0IJS9C3.js → ReimbursementPromoPage-C5Z0mVhQ-Dq3UPRZ3.js} +10 -10
  169. package/dist/assets/{ReimbursementRoutes-CexK6hr3.js → ReimbursementRoutes-iv71wb2Z.js} +1 -1
  170. package/dist/assets/{ReimbursementSetUpPage-qphyaCoX-DoGJ3Yjs.js → ReimbursementSetUpPage-CXhOBErm-BnZZWQ1W.js} +5 -5
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CCJvQKip-DJZoHiHh.js → ReimbursementsBulkReviewDrawerPage-CA0n0mau-Bq7X2QJa.js} +1 -1
  172. package/dist/assets/{ReloadCard-DMNbI6QE-C_0_5wQl.js → ReloadCard-Bjp8ygC2-DsEbxw3o.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-CUG4hVI9-BizHpKUG.js → ReportTableViewSelector-DTk1dNWC-QFtHZK4J.js} +5 -5
  174. package/dist/assets/{ReportsPage-nuM-ub1p-B6rPi-ib.js → ReportsPage-DrjOGopt-xwTAFZ82.js} +4 -4
  175. package/dist/assets/{ReportsRoutes-Cp6mze8I.js → ReportsRoutes-BhpH3vEG.js} +1 -1
  176. package/dist/assets/{RevenueChart-BL5Wb2UT-33eDsujQ.js → RevenueChart-CqGvXDr4-BDXPrwnC.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage-CUolLJ6s-D-zhUoA6.js → ReviewDetailsPage-CWBP7FBN-XuXg3BcA.js} +17 -17
  178. package/dist/assets/{ReviewOverlay-A1OYNSqG-9s_1ZdtP.js → ReviewOverlay-Cxkp85Kw-BxuvLEpC.js} +1 -1
  179. package/dist/assets/{RewardsRoutes-BSovi6wQ.js → RewardsRoutes-CGI6v1LD.js} +1 -1
  180. package/dist/assets/{RoleWithToolTip-VOllzDDB-BYsZPBtm.js → RoleWithToolTip-CqLxmtj6-Rnjw9i_g.js} +1 -1
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-By3U1RYU-DKJcrnu_.js → ScheduleDetailsFixedAssetsPage-CYvlB3Nf-DLsNuhIe.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-ButJHPUw-QIDoDzfq.js → ScheduleDetailsPage-CZXJ15tN-DK-Vvm5e.js} +1 -1
  183. package/dist/assets/{ScheduleSequenceTable-Dv831gVJ-DAMs3BZ5.js → ScheduleSequenceTable-DNPID_7F-Bz8d2Fhy.js} +14 -14
  184. package/dist/assets/{ScreenRoutes-Dbhh2QOI.js → ScreenRoutes-B0gKACTz.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-BcNG0nDh-wr_b4Gnf.js → SetUpAccountSection-_WPR-q2V-BVzNpUbf.js} +1 -1
  186. package/dist/assets/{SettingsRoutes-DsoaaeGm.js → SettingsRoutes-BrokioTP.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-C8L8QqMz.js → SetupPagesScreen-BiJM7znn.js} +1 -1
  188. package/dist/assets/{SignIn-D80UITQm-DIIeYnW9.js → SignIn-CDEsZw_T-BhKsIiWi.js} +7 -7
  189. package/dist/assets/{SignInScreen-CWsG4Mxf.js → SignInScreen-CRHQkOWq.js} +1 -1
  190. package/dist/assets/{SignOutScreen-Cs9C3-Pe.js → SignOutScreen-CSmP5G0L.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-DSG6Son_-kr01Gbhc.js → SpendManagementListViewPage-MOCWuROI-DdkFjcW6.js} +8 -8
  192. package/dist/assets/{SpendManagementPerTabPage-DiSu0RS1-DHuUoD95.js → SpendManagementPerTabPage-BeK0SCeE-DPZd4om4.js} +1 -1
  193. package/dist/assets/{SpendManagementSection-BXU3RGG8-BYhx4BvA.js → SpendManagementSection-DZFPfKNi-DT0rYb2P.js} +14 -14
  194. package/dist/assets/StatementItem-DjvU5wiI-DmQsj9gw.js +31 -0
  195. package/dist/assets/{StatementsPage-Ck1xzA0w-ClPKQbtk.js → StatementsPage-DYLp_e7W-CYuAqH_I.js} +1 -1
  196. package/dist/assets/{StatusSwitcher-_Cs3CzJl-Dgp2ChlN.js → StatusSwitcher-jxaonB4S-Cxq2Q9_V.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-D3ltE_yc-CnL7Gxp8.js → SubTabSwitcher-CudjNlsi-D6kvvomf.js} +1 -1
  198. package/dist/assets/SuccessAnimation-DE_x1Zz_-AQ5Y5JIA.js +13 -0
  199. package/dist/assets/SummaryCard-DPOhBmkr-Cv-w5fsm.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CJKga1vr-C9aggkuO.js → TaskDetailPage-CXexRKAY-BOPspi-s.js} +1 -1
  201. package/dist/assets/{TaskListScreen--R6ZRUkx.js → TaskListScreen-B0RVzFet.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-BMwMSG1j-H5G6dYbH.js → TaskManagementPage-CTMoHv0R-BGb6WsaA.js} +28 -28
  203. package/dist/assets/{TaskRoutes-DYzJiY4s.js → TaskRoutes-vmd5uItQ.js} +1 -1
  204. package/dist/assets/{TimeRangeSwitcher-B1Wx03tG-BWIrI-Q6.js → TimeRangeSwitcher-SqY2MHGs-ChpZHeuG.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-Dmtsdwi9-Cw7Bi58F.js → TimeframeSwitcher-BlJ2fuHy-JP2UlRBY.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-P5CfgTUd-Dktx47QV.js → TimeframeSwitcherWithToggle-Dgc1odUH-ChrHPbvN.js} +2 -2
  207. package/dist/assets/{TopExCard-DQkr9Xhh-BRnZbxyD.js → TopExCard-CG8YLsYe-B5wqJJSw.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-5Di6WUfV-BUXw1BOA.js → TopExDetailPage-TvYCbzSP-CTOCVsET.js} +5 -5
  209. package/dist/assets/{TransactionActivityLogPage-R9LoW4DL-D_EoHZ59.js → TransactionActivityLogPage-BL3vEAdU-Bk3OacNa.js} +1 -1
  210. package/dist/assets/{TransactionDetailPage-B-blHtkn-DCMnh0nU.js → TransactionDetailPage-DUouBL0o-DkOa5f2H.js} +32 -32
  211. package/dist/assets/{TransactionDetailRoutes-Ct3Dbt4h.js → TransactionDetailRoutes-D5_-HF2Q.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-BI8wXwWu.js → TransactionDetailScreen-DHwJH1ZP.js} +1 -1
  213. package/dist/assets/{TransactionList-FQvTXSzy-B5IF52jl.js → TransactionList-B16NONME-xM0VK0uD.js} +9 -9
  214. package/dist/assets/{TransactionListBig-CNDw7zRw-TaxjiJ28.js → TransactionListBig-CItPbTRV-BpUwrWyu.js} +1 -1
  215. package/dist/assets/TransactionListPage-DNecYY8M-ptahFcY0.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-B3byuAak.js → TransactionListRoutes-DIJ_fkWS.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-Ch2UUF1f-BrGjAHyI.js → TransactionVendorDetailPage-DpqisXN8-wU2wHv2K.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-C1Ly_xKj-fiBb4oDE.js → TransferDrawerPage-Dsmbswu0-DFQDwnPy.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-Zt5w8zfp-Ch3HnWvf.js → TreasuryOverviewPage-BcRpcYmB-DwdLr4Xt.js} +21 -21
  220. package/dist/assets/{TreasuryPromoPage-BsP73kf7-CL2gh8Up.js → TreasuryPromoPage-DOO_OMRa-uzWYBUzW.js} +14 -14
  221. package/dist/assets/{TreasuryRoutes-CiZ9sTKP.js → TreasuryRoutes-BfRwxvKx.js} +1 -1
  222. package/dist/assets/TreasuryStatementsPage-A_U7bEy5-C1uv8XvN.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-tHkQvX2V-DC4DIUK0.js → TreasuryTaxLetterPage-BsJn-BgX-Dcdm_qTO.js} +3 -3
  224. package/dist/assets/TrendChart-GMMat-NG-BewK0MCc.js +16 -0
  225. package/dist/assets/{TrendWithTransactions-DP1jZL1i-DLC5jL9Q.js → TrendWithTransactions-CrA4opNV-B_vQq65J.js} +7 -7
  226. package/dist/assets/{UncategorizedAccountsMappingPage-4mHyt2P6-CaPpF27u.js → UncategorizedAccountsMappingPage-CrzbFGOi-BDtcuYej.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-BymmWe1G-c3FxOZsw.js → UnitIntegrationPage-XZY6zJa7-D8B46vcm.js} +3 -3
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-DUO2ZoU--C5vn0EeB.js → UploadAdditionalDocumentOverlay-eqwSLigx-kRVMQYF-.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-8kpMx5RI-B6wz9ehO.js → Vendor2FAPopup-BHDivuPB-D7ySxcXF.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-BgbOpk55.js +1 -0
  231. package/dist/assets/{VendorDetailPage-C-JJfR0u-xsJdXYgh.js → VendorDetailPage-DEu-yS8w-BhFmuJot.js} +7 -7
  232. package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-DCXCuX-V.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-B4vFgSwb-BhTGj51T.js → VendorFiling1099EditablePage-C461SzO0-CCIZoPU6.js} +6 -6
  234. package/dist/assets/{VendorFirstReviewPage-CUwdrbjH-C8NXBWTw.js → VendorFirstReviewPage-klbCHS04-UP-04u7X.js} +1 -1
  235. package/dist/assets/{VendorInternationalWireDetailsPage-BzP1zqhw-BApkoCPp.js → VendorInternationalWireDetailsPage-DY0V-VbO-Dl3hBhoD.js} +1 -1
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-h6qnY29-.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-Drue-Lvz-BCNmsP23.js → VendorsAccountsSection-Cqcr-ArD-CzW5lMfP.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-CKhkv2e_.js → VendorsRoutes-DLnvF6hR.js} +1 -1
  239. package/dist/assets/{VerifyDevice-B_NNzkjT-DssvqA1v.js → VerifyDevice-Dhu5iywf-cUES-VE2.js} +9 -9
  240. package/dist/assets/{VideoPlayer-Bc4tAd79-1S5ggZVm.js → VideoPlayer-ZGjx_Hp7-CjY3r1rL.js} +1 -1
  241. package/dist/assets/VideoPopup-R3u0N_if-CaG3EJQq.js +31 -0
  242. package/dist/assets/{WiseConfirmationScreen-DJuJvNzv.js → WiseConfirmationScreen-CT86mZ0i.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-BW6G2voE-DG228Rrt.js → ZeniAccountDetailPage-DQB7sXU9-CZEM5xVV.js} +12 -12
  244. package/dist/assets/{ZeniAccountListViewPage-gNszI2XV-vz3h67sw.js → ZeniAccountListViewPage-BwXKgf6g-FfpOzmd6.js} +1 -1
  245. package/dist/assets/{ZeniAccountNavBarPieces-BP1IxZ18-D8VlWC64.js → ZeniAccountNavBarPieces-CHUTFAWG-v671evv-.js} +4 -4
  246. package/dist/assets/{ZeniAccountPromoPage-LsZxIdX9-BS_EkGM_.js → ZeniAccountPromoPage-BkfJuMNV-CmI6f_1i.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-1i5H0-IW.js → ZeniAccountRoutes-bnzTspvl.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-BExQA9Cz-xecz4xSG.js → ZeniAccountSetupPage-C3drM4Zs-CvpINFn4.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-YmdFA__8.js → ZeniAccountStatementScreen-B5KsFobU.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-5wP6sb3W-CwxwTkTA.js → ZeniAvatar-C38T0-5--BM3XjRcp.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-CMjFbDBQ-Ck2DhCCZ.js → ZeniCopyright-CznSgVJF-BhclYMa4.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-C_YQpGe--B6o5NtIP.js → ZeniDatePicker-Bw9RlgoL-DDQaNsVY.js} +1 -1
  253. package/dist/assets/{ZeniTransferAmountSlider-CIu35Xz9-CbkYbuv-.js → ZeniTransferAmountSlider-C77DEl-C-CYKYiLaT.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-Ctd7yuH3.js → accountMappingHelper-B1SwIfFo.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-q_ZatOIu.js → add-to-wallet-DgdBD8_G-2vbkyqzY.js} +1 -1
  256. package/dist/assets/{analytics-Ci5SIN4_.js → analytics-Qgv3Fhaa.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CG-L3dO7-BuQ3dQan.js → analyticsHelper-Bh8o1v3y-erbhoWbk.js} +1 -1
  258. package/dist/assets/{analyticsHelper-BkUpwFP4.js → analyticsHelper-CsyUSML_.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-BXAmISmi.js → arrow-south-east-round-PEovUgvH-CHgaZ-yo.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-Qtr813uy.js → auto-transfer-rule-mbafm5D3-BdBsn5Ol.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-lVrrjTFE.js → avatar-Dz7aEm3d-CxU8IzEu.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-a5lcVCZG.js → bank-letter-BOcVjN6J-DhC6VHDB.js} +1 -1
  263. package/dist/assets/{calculateSize-CAxK0dN_-CtindZTL.js → calculateSize-QoQyn_Ku-j5kLdf_t.js} +1 -1
  264. package/dist/assets/{chartTypes-_AEkJ5Cg-BoLLmK-7.js → chartTypes-C14YY2Rq-mIXPNQxz.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-CBVPxBka.js → clock-CJkylEKt-BBrb7jeK.js} +1 -1
  266. package/dist/assets/common-Cu5K0AJk-BihNw_Do.js +1 -0
  267. package/dist/assets/{commonDimensions-_Dpm4Anv-JKxakvSV.js → commonDimensions-CVpc-NCw-xOjrok2-.js} +1 -1
  268. package/dist/assets/{commonTypes-C64XobC6-zWzHHgag.js → commonTypes-Ec-PxfpT-DZ1xbinn.js} +1 -1
  269. package/dist/assets/{core-oEkj6b51.js → core-CaikJZHD.js} +1 -1
  270. package/dist/assets/{dash.all.min-DZu0W7MW.js → dash.all.min-CteFsaah.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-AFO0vA4L.js → decodeURIComponentSafe-DcEFJStp.js} +1 -1
  272. package/dist/assets/{dnd-DwLm2ZWc.js → dnd-CzsffKNn.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-BxzwYsJa.js → dollar-round-D18u7nlm-BF4Thvjs.js} +1 -1
  274. package/dist/assets/{downloadPdf-BAZhe2iR-XXbzTfDj.js → downloadPdf-BuPJ6cfr-Cy2ZBk4z.js} +1 -1
  275. package/dist/assets/{empty-fwRWXj2G.js → empty-B5B-FKq1.js} +1 -1
  276. package/dist/assets/{empty-CpgB6ACX.js → empty-CTO6rJhq.js} +1 -1
  277. package/dist/assets/{epic-qeTSmk29.js → epic-DtTDCbBB.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-Cn5LR_-W.js → filter-cZIFUNvj-CWbeOwgA.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-gFC-Rnfp.js → getLocaleForTenant-DLrlmQCo.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CByaMYJG.js → gift-box-Cmt9OgIZ-BfzCBGHZ.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-bzI3_a8w.js → graphic-no-data-l-DU4J8fDt-DEuKmvBU.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CaA33M1d.js → graphic-no-data-net-burn-l-CzmycA0m-CIA_wKU3.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-BxWewJRH.js → handshake-BPg58FML-Z_I5plJl.js} +1 -1
  284. package/dist/assets/{helper-D3UIpXq7-k6HHkxTA.js → helper-AgH8nJln-DNDXfXpF.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-Dt5l5kWs.js → hyperlink-DQyCeXx2-Bwqrw7ES.js} +1 -1
  286. package/dist/assets/{index-Cpbn6-TN.js → index-B7wRNic7.js} +1 -1
  287. package/dist/assets/{index-DRNExedw.js → index-B9eknY8q.js} +1 -1
  288. package/dist/assets/{index-B5c5iTId.js → index-B9myuWEH.js} +1 -1
  289. package/dist/assets/{index-BE_133so.js → index-BL34svil.js} +1 -1
  290. package/dist/assets/{index-CjBlNHKF.js → index-CLf01Vy8.js} +1 -1
  291. package/dist/assets/{index-ByqexAVU.js → index-mhb15COx.js} +2726 -2726
  292. package/dist/assets/{lexical-BLFyyXBr.js → lexical-CXNTSpM4.js} +1 -1
  293. package/dist/assets/{liveblocks-Ia5FU_Xu.js → liveblocks--AdozwCz.js} +1 -1
  294. package/dist/assets/{lottie-DEK510sX.js → lottie-D86WIi_0.js} +1 -1
  295. package/dist/assets/{mapLoadingInProgressToTreeNode-C_DjhqLk-Cbs7Of5h.js → mapLoadingInProgressToTreeNode-DTyQHWMc-BqMSzUiy.js} +1 -1
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BLsSfpaF-B5H-460G.js → mapSectionWithAcOnlyToTreeNode-D7pjBGp6-BMY0vZTn.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-C6nWwAzP.js +1 -0
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode--FHVcIix-DC7cXapm.js → mapTimeframeBalancesToTreeNode-Drhl_lnP-BDA52mbW.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-DrvNkcA6.js +1 -0
  300. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-D45Dn747-CPa7R1do.js → mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-DHD18LN5.js} +1 -1
  301. package/dist/assets/{media-player-uto_Jl5G.js → media-player-OnsEq_AY.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-BmcWx6In.js → money-2cg1MuG4-CfgKOIyt.js} +1 -1
  303. package/dist/assets/{mui-Cni6P-fz.js → mui-G2MlMTlr.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-B9qcUnuN.js → page-detail-CWX5S47F-CWJ8fnGp.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-ZSqDN0WI.js → page-summary-D7_VQHwN-CaK_VLEF.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-BCo5ICo2.js → panelSelectedMixin-Cddsb26L-XfdQwEMM.js} +1 -1
  307. package/dist/assets/{pathToGoBack-BpMzEQ5A.js → pathToGoBack-Dh6AhADv.js} +1 -1
  308. package/dist/assets/{pdf-CTJ16aEe.js → pdf-DwfifS04.js} +3 -3
  309. package/dist/assets/{pdf-lib-BZoHbIry.js → pdf-lib-CuGtb6jg.js} +1 -1
  310. package/dist/assets/{plaid-B2vW8NaN.js → plaid-CcxzSXZd.js} +1 -1
  311. package/dist/assets/{pusher-DFtcQaPW.js → pusher-BNSVRSP_.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh--JwnmKdf.js → radio-default-CiSgisfh-CF7OSKL1.js} +1 -1
  313. package/dist/assets/{react-C70tWLg5.js → react-BEcxr4nX.js} +1 -1
  314. package/dist/assets/{react-cn6O__9s.js → react-BUDcsgZo.js} +1 -1
  315. package/dist/assets/{react-DZ1_qQub.js → react-C0Whd_8a.js} +1 -1
  316. package/dist/assets/{react-B0u9lmTz.js → react-Chqt_ss-.js} +1 -1
  317. package/dist/assets/{react-DKkpOD3_.js → react-Cobj-_wp.js} +3 -3
  318. package/dist/assets/{react-Cohr3oKl.js → react-DOvM9ag3.js} +1 -1
  319. package/dist/assets/{react-BxE_BeY2.js → react-V3TERlfD.js} +1 -1
  320. package/dist/assets/{react-jjkPSe6Z.js → react-WpjiT9jD.js} +1 -1
  321. package/dist/assets/{recharts-LlOU9oLm.js → recharts-3tylCZU1.js} +1 -1
  322. package/dist/assets/{routePaths-BnaAtOOM.js → routePaths-CDVBEe6a.js} +1 -1
  323. package/dist/assets/{sentry-CY6wsJT-.js → sentry-Cm8I7E9J.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-CGZqPLdL.js → shield-DOlUxcFf-tt-dORuJ.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-DAZsY_K2.js → spend-limit-D6SyboD4-d-tIWfnn.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-wh35N3no-2SjovFHm.js +1 -0
  327. package/dist/assets/{toChartData-BODe4y2V-C6JFTy1O.js → toChartData-G5y-N82I-HPFXqzd4.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-B7lzeBRq.js → transaction-placeholder-CpOwZAMG-CXIruzlf.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-okXLDguZ.js → undo-b_3XZ5CX-5VNbpbUY.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-BcwMx3a4.js → unlock-BPWn2I5L-8UNw8MhM.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BLqHMVJK.js → upload-reimbursement-receipt-O2N8vcO7-BhCuFTsT.js} +1 -1
  332. package/dist/assets/{uploadAttachment-Dbumcc_g-Dxdg1PHe.js → uploadAttachment-RbkIBMGO-BHEoxgsX.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-BX0LuAuH.js → uploadReceipts-CIgkuVpu-BPECKX43.js} +1 -1
  334. package/dist/assets/{url-Cv3aJ--T.js → url-BMzuxPwA.js} +1 -1
  335. package/dist/assets/{url-B5kkbwRv.js → url-CvhemPUG.js} +1 -1
  336. package/dist/assets/{useDeviceId-BWAR3Wtl.js → useDeviceId-BzlY8kf5.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-D1CqutXV.js → useInitialThreadRequest-Dldme96o.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-BX_5sahW.js → useLongPress-GCK2COYQ-BgmUYGJ7.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-CuU9mWQv.js → usp-line-BBd1wKwW-BqojtCEK.js} +1 -1
  340. package/dist/assets/{utils-ChLimP28.js → utils-BhOlvYO8.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-BzduT6UI.js → withTransactionSidePanel-DBF40Qih.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-cFF_NqwA.js → zeni-epic-state-lC5X-sam.js} +7 -7
  343. package/dist/assets/{zeni-icon-only-jOM3nMPU.js → zeni-icon-only-DZ6h0uLr.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +3 -3
  346. package/dist/assets/AccountInfoPage-CiPtog_o-DPWdb5xr.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-Bj0kaRHv-B0-iD3mG.js +0 -149
  348. package/dist/assets/ChargeCardPromoPage-C-z0xtuN-Cj9Xh0NF.js +0 -222
  349. package/dist/assets/ConfettiBurst-C0DFgWJj-BGxc90V2.js +0 -1
  350. package/dist/assets/CustomerOnboardingAuthScreen-voIng-Gb.js +0 -1
  351. package/dist/assets/CustomerOnboardingContainerPage-DS0-65s7-CbCO9XOL.js +0 -1
  352. package/dist/assets/CustomerOnboardingNoStepsPage-C--jDBQq-D1RWdf29.js +0 -66
  353. package/dist/assets/DashboardSidebarBackgroundAnimation-DsWKmIXY-BKVS4wpr.js +0 -12
  354. package/dist/assets/EntityDetailPage-CgDHg6g5-DEy7q7j7.js +0 -18
  355. package/dist/assets/MagicLinkACHDetailsPage-l76_Y3sO-BRaxCag1.js +0 -1
  356. package/dist/assets/MagicLinkDomesticWireDetailsPage-D_z_Q-jz-C4Uhpu4B.js +0 -1
  357. package/dist/assets/MagicLinkInternationalWireDetailsPage-D276lsq_-BhCxcHkI.js +0 -1
  358. package/dist/assets/MailingDetailsSection-D9_I-DTk-CH2kzcO6.js +0 -21
  359. package/dist/assets/StatementItem-B1M65xN--GeNfVEEV.js +0 -31
  360. package/dist/assets/SuccessAnimation-RuQd1S4B-Bm3TMOLx.js +0 -13
  361. package/dist/assets/SummaryCard-buadhnmc-D_ubT5UT.js +0 -1
  362. package/dist/assets/TransactionListPage-BkZLtwmQ-DMj8aMnI.js +0 -35
  363. package/dist/assets/TreasuryStatementsPage-DhXESeOi-D1GmDTaA.js +0 -58
  364. package/dist/assets/TrendChart-B7Pox_TQ-CaG-s4IC.js +0 -16
  365. package/dist/assets/VendorACHDetailsPage-BODHiiUQ-CbkmGhf7.js +0 -1
  366. package/dist/assets/VendorDomesticWireDetailsPage-CVfEcUFJ-Bq6iA8BG.js +0 -1
  367. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Dgz0TPoZ-CIw7ERg3.js +0 -1
  368. package/dist/assets/VideoPopup-BYo5bzpU-DUVlPGQp.js +0 -31
  369. package/dist/assets/common-B74Sb4iG-wPHt407r.js +0 -1
  370. package/dist/assets/mapSpacerToTreeNode-Dq4CasLR-Dqbo2uhz.js +0 -1
  371. package/dist/assets/mapTimeframeBalancesToTreeNode-BP0iF3Of-DbCZ7i8N.js +0 -1
  372. package/dist/assets/toCOABalancesWithID-CuxwOBs0-BNfZJE4p.js +0 -1
@@ -1,4 +1,4 @@
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-ByqexAVU.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-wr_b4Gnf.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`
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 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,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 ft}from"./index-mhb15COx.js";import{a as r}from"./sentry-Cm8I7E9J.js";import{n}from"./mui-G2MlMTlr.js";import{r as Te}from"./core-CaikJZHD.js";import{u as _e}from"./plaid-CcxzSXZd.js";import{cg as gt,ch as ee,bG as Le}from"./zeni-epic-state-lC5X-sam.js";import{a as wt}from"./SetUpAccountSection-_WPR-q2V-BVzNpUbf.js";import"./pdf-DwfifS04.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./utils-BhOlvYO8.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]="918afb12-1967-4fcf-8732-de71c3e82828",e._sentryDebugIdIdentifier="sentry-dbid-918afb12-1967-4fcf-8732-de71c3e82828")}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 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||b!=="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,b,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&&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),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(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: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: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: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:b==="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(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: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: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:f!=null?t.jsx(me,{style:{width:"max-content",padding:0},tagTitle:f.name,textColor:fe(f.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:ge("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"};
@@ -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
- `,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`
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=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||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:J}=_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(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&&b!=null&&$.linkToken===S&&$.fetchStatus.fetchState==="Completed"&&J&&q(!0)},[J,S,$.fetchStatus.fetchState,$.linkToken,g,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(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: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: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`
150
150
  display: flex;
151
151
  padding: ${i.sp4};
152
152
  padding-right: ${i.sp8};
153
153
  position: relative;
154
- `,Gt=n.div`
154
+ `,Jt=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
- `,Jt=n(M)`
160
+ `,Gt=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,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`
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,[b,W]=r.useState(p.linkToken??null),[$,S]=r.useState(!1),v=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: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(()=>{$&&g()},[$,g]),r.useEffect(()=>{(v==="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,v,A,a.updateStatus.fetchState,f,h]),r.useEffect(()=>{(ee(f??"")||f==="verification_failed")&&!$&&s!=null&&p.linkToken===b&&p.fetchStatus.fetchState==="Completed"&&U&&S(!0)},[U,b,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(bn,{children:pe.bankConnectionHeader.linkAccount}),t.jsx(vn,{children:X?.accountName??hn})]})]})},gn=n.div`
234
234
  display: flex;
235
235
  flex-direction: column;
236
236
  padding: ${i.sp3};
@@ -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))}),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`
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((v,{name:A})=>{A!=null&&v!=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,v))});return()=>{S.unsubscribe()}});const b=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})}),b?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 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
- `,Gn=n.div`
380
+ `,Jn=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
- `,Jn=n.div`
387
+ `,Gn=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{gi 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{fi as default,ei as formUniqueName};
@@ -1,4 +1,4 @@
1
- import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bn as De,be as ii,fS as N,O as ni,m as s,u as li,bw as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bp as _t,cv as bi,fV as xi,C as Zt,v as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-ByqexAVU.js";import{a as p}from"./sentry-CY6wsJT-.js";import{n}from"./mui-Cni6P-fz.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-cFF_NqwA.js";import{o as Ci,t as Pi}from"./LowBalancePopup-Bl_PaIUx-Cz8COji5.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:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="9f9916b4-4e52-4cce-9b9b-b15096139dfe",e._sentryDebugIdIdentifier="sentry-dbid-9f9916b4-4e52-4cce-9b9b-b15096139dfe")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
1
+ import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bn as De,be as ii,fS as N,O as ni,m as s,u as li,bw as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bp as _t,cv as bi,fV as xi,C as Zt,z as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-mhb15COx.js";import{a as p}from"./sentry-Cm8I7E9J.js";import{n}from"./mui-G2MlMTlr.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-lC5X-sam.js";import{o as Ci,t as Pi}from"./LowBalancePopup-CBPl_udd-BorudEL4.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="caffdb30-eb66-4d18-bde2-ea2db951cee2",e._sentryDebugIdIdentifier="sentry-dbid-caffdb30-eb66-4d18-bde2-ea2db951cee2")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
2
  ${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Ki,{children:Ia})}),d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(xi,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Qa(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:Ja(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(hn,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ei,{onAttachmentClick:Fe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ti,{amount:ga,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:ea,onSaveRealTimeApprovals:ta},historicActivities:e.billHistory.activities}),t.jsx(mn,{})]}),e.transactionDetails?.vendor==null||he||e.transactionDetails.isDeleted?null:t.jsx(ai,{separatorStyle:{marginRight:i.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?a.buttons.reject:a.buttons.rejectBill,isLoading:Ve==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ge("rejected"),K!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ei(U,rt),isLoading:Ve==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{K!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ui,{children:t.jsxs(Hi,{windowSize:l,children:[!H&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-container"),children:[Z!=="processing"&&lt?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.deleteRecurringTitle:a.deleteBillTitle,description:P?a.recurringBill.deleteRecurringAlertText:a.deleteAlertDescription,primaryButtonText:a.delete,secondaryButtonText:a.cancel}),G(!0)},"data-testid":g("delete-bill-action-item"),children:a.buttons.deleteBill}):null,Z!=="processing"||P?null:t.jsx(W,{onClick:()=>{ae({title:a.cancelBillTitle,description:a.cancelAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-bill-action-item"),children:a.buttons.cancel}),Z==="processing"&&ot?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.cancelAndDeleteRecurringTitle:a.cancelAndDeleteBillTitle,description:P?a.recurringBill.cancelAndDeleteRecurringAlertText:a.cancelAndDeleteAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-and-delete-bill-action-item"),children:a.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(W,{onClick:()=>{He(!0),st()},"data-testid":g("mark-as-paid-action-item"),children:a.paymentOutsideZeni.markAsPaid}):null]})}):null,Ze?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),aa()},"data-testid":g("retry-bill-action-item"),children:a.buttons.retry}):null,Te?t.jsx(W,{onClick:()=>{z.trackRefundClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ae({title:a.zeniAssist.refundTitle,description:a.zeniAssist.refundDescription,primaryButtonText:a.zeniAssist.proceed,secondaryButtonText:a.cancel}),pe(!0)},"data-testid":g("refund-bill-action-item"),children:a.buttons.refund}):null]})}):null,t.jsxs(qi,{windowSize:l,children:[$a===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:ve?a.zeniAssist.tooltip:a.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":g("other-actions-icon-container"),children:ve?t.jsx(xa,{}):t.jsx(Gi,{})})}):null,H||fe!==!0?null:t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Ni,placement:"top",children:t.jsx(Yi,{onClick:et,"data-testid":g("edit-bill-icon-container"),children:t.jsx(Xi,{})})}),!H&&ka===!0&&Sa?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Mi,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":g("more-details-icon-container"),children:t.jsx(Vi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(ii,{isDrawerOpen:ra,allowComposer:!0,drawerTitle:Li,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Ca,onThreadClick:sa,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${i.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ee.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Bn=e=>{const b=Ot(),h=e.billDetails.transactionDetails?.id,E=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!E||_==null||h==null)return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Ba,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Fi=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Si(),"date")===!0?{value:Pe.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[h].color,bgColor:N[h].bgColor,borderColor:N[h].borderColor}},Oi=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(bn,{windowSize:e,children:[t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.accountNumber}),t.jsx(Nt,{children:b.withdrawFrom!=null?Et(b.withdrawFrom,e):c})]}),t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.amount}),t.jsx(Nt,{children:h!=null?Ce("0,0[.]00",h):S})]})]})},Ei=(e,b)=>e?a.paymentOutsideZeni.markAsPaid:b?a.buttons.approve:a.buttons.approveBill,_i=e=>{const b=e.paymentMode,h=a.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const E=a.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${zi} ${E}`},Zi=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:i.sp5,marginBottom:i.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const E=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:i.sp2,marginBottom:i.sp3},title:`${Kt.lowBalanceIn.replace("__account__",E)}`,description:h.replace("Low balance! ","")})}return null},Ki=n.div``,Wi=n.div``,Ui=n.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1 +1 @@
1
- import{j as l}from"./pdf-CTJ16aEe.js";import{a as y}from"./sentry-CY6wsJT-.js";import{j,h as U,i as B,u as v,N as O,k as T,l as $,R as L,m as h}from"./core-oEkj6b51.js";import{ct as N,L9 as A,KR as b,tU as I,tO as F,tS as w,tH as K,KT as W,tK as q,tW as H,tV as C}from"./zeni-epic-state-cFF_NqwA.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-ByqexAVU.js";import"./mui-Cni6P-fz.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-CPkYjm-o.js";import M from"./NotFoundScreen-B8XFlejE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="27cf8ee3-8798-4b17-acaf-d0339ea7a0da",e._sentryDebugIdIdentifier="sentry-dbid-27cf8ee3-8798-4b17-acaf-d0339ea7a0da")}catch{}})();const R="bill-approval-rule-update",X=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(Q(z)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(O,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=f.actors.selectedNonUsers.map(S=>{const E=!!J(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(x);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(H())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=$(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(L,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
1
+ import{j as l}from"./pdf-DwfifS04.js";import{a as y}from"./sentry-Cm8I7E9J.js";import{j,h as U,i as B,u as v,N as O,k as T,l as $,R as L,m as h}from"./core-CaikJZHD.js";import{ct as N,L9 as A,KR as b,tU as I,tO as F,tS as w,tH as K,KT as W,tK as q,tW as H,tV as C}from"./zeni-epic-state-lC5X-sam.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-mhb15COx.js";import"./mui-G2MlMTlr.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-Bs2ple33.js";import M from"./NotFoundScreen-BBbILNsa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="27cf8ee3-8798-4b17-acaf-d0339ea7a0da",e._sentryDebugIdIdentifier="sentry-dbid-27cf8ee3-8798-4b17-acaf-d0339ea7a0da")}catch{}})();const R="bill-approval-rule-update",X=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(Q(z)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(O,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=f.actors.selectedNonUsers.map(S=>{const E=!!J(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(x);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(H())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=$(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(L,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
@@ -1,24 +1,24 @@
1
- import{x as F,m as U,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-ByqexAVU.js";import{a as L}from"./sentry-CY6wsJT-.js";import{n as b}from"./mui-Cni6P-fz.js";import{b as Z,f as ee,o as R,l as T}from"./FollowStepsSection-CgjzMm02-glrhNO5E.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 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]="4455205b-f099-4dc1-8915-e4003ff5a340",e._sentryDebugIdIdentifier="sentry-dbid-4455205b-f099-4dc1-8915-e4003ff5a340")}catch{}})();const $="billPayApprovalRuleDetailPage",k="lowerBound",C="upperBound",I="steps",h="applyToExistingBills",le={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return L.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=X(m);H(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j($),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j($),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:o.jsx(Y,{name:h,mode:"always_on",checkBoxes:[{value:h,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[h]:n?[]:[h],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[k]:l?void 0:a!=null?a.range.min.amount??0:0,[C]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:T},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=b.div`
1
+ import{x as F,m as D,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-mhb15COx.js";import{a as L}from"./sentry-Cm8I7E9J.js";import{n as h}from"./mui-G2MlMTlr.js";import{b as Z,f as ee,o as R,l as T}from"./FollowStepsSection-DaueHRo4-FQso0zsG.js";import"./pdf-DwfifS04.js";import"./zeni-epic-state-lC5X-sam.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="3880d498-bf27-4599-85a2-05f0bafb313b",e._sentryDebugIdIdentifier="sentry-dbid-3880d498-bf27-4599-85a2-05f0bafb313b")}catch{}})();const $="billPayApprovalRuleDetailPage",C="lowerBound",k="upperBound",I="steps",b="applyToExistingBills",le={footerPadding:new F(D[2],D[2])};function Se({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:U}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return L.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=X(m);H(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j($),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:U===1/0?Number.MAX_SAFE_INTEGER-1:U-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j($),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[k]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:T},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
5
5
  width: 100%;
6
6
  background-color: ${e=>e.theme.colors.grey4};
7
7
  box-shadow: ${e=>`${d.sp0} 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
8
- `,ie=b.div`
8
+ `,ie=h.div`
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  border: 1px solid ${e=>e.theme.colors.grey3};
12
12
  box-shadow: ${e=>`${d.sp0} 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
13
13
  border-radius: ${d.sp2};
14
- `,ne=b.div`
14
+ `,ne=h.div`
15
15
  display: flex;
16
16
  justify-content: flex-start;
17
17
  height: 100%;
18
18
  overflow-y: auto;
19
19
  flex-direction: column;
20
20
  align-items: center;
21
- `,pe=b.div`
21
+ `,pe=h.div`
22
22
  display: flex;
23
23
  flex: 1;
24
24
  background-color: ${e=>e.theme.colors.grey3};
@@ -1,4 +1,4 @@
1
- import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bn as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-ByqexAVU.js";import{n as t}from"./mui-Cni6P-fz.js";import{a as Z}from"./sentry-CY6wsJT-.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 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]="9b13f2fd-6331-4270-9bc8-fe9ca011fde5",e._sentryDebugIdIdentifier="sentry-dbid-9b13f2fd-6331-4270-9bc8-fe9ca011fde5")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,_)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,E)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${E}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},_))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
1
+ import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bn as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-mhb15COx.js";import{n as t}from"./mui-G2MlMTlr.js";import{a as Z}from"./sentry-Cm8I7E9J.js";import"./pdf-DwfifS04.js";import"./zeni-epic-state-lC5X-sam.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.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]="9b13f2fd-6331-4270-9bc8-fe9ca011fde5",e._sentryDebugIdIdentifier="sentry-dbid-9b13f2fd-6331-4270-9bc8-fe9ca011fde5")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,_)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,E)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${E}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},_))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,z as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as b,bM as re,ac as te,au as ne,m as ae}from"./index-ByqexAVU.js";import{a as g}from"./sentry-CY6wsJT-.js";import{n as s}from"./mui-Cni6P-fz.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-cFF_NqwA.js";import{C as me}from"./VideoPopup-BYo5bzpU-DUVlPGQp.js";import{M as $}from"./usp-line-BBd1wKwW-CuU9mWQv.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";import"./VideoPlayer-Bc4tAd79-1S5ggZVm.js";import"./media-player-uto_Jl5G.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="ed7db9c8-fac4-4833-bce0-4eb33949f2c1",i._sentryDebugIdIdentifier="sentry-dbid-ed7db9c8-fac4-4833-bce0-4eb33949f2c1")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
1
+ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as $,bM as re,ac as te,au as ae,m as ne}from"./index-mhb15COx.js";import{a as g}from"./sentry-Cm8I7E9J.js";import{n as s}from"./mui-G2MlMTlr.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-lC5X-sam.js";import{C as me}from"./VideoPopup-R3u0N_if-CaG3EJQq.js";import{M as b}from"./usp-line-BBd1wKwW-BqojtCEK.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./VideoPlayer-ZGjx_Hp7-CjY3r1rL.js";import"./media-player-OnsEq_AY.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="c9e9a588-46ac-408f-9b1a-9093e78ce022",i._sentryDebugIdIdentifier="sentry-dbid-c9e9a588-46ac-408f-9b1a-9093e78ce022")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ne[5],44)},he=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -42,7 +42,7 @@ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,z as m,O as M
42
42
  border-radius: 12px;
43
43
  border: ${i=>`1px solid ${i.theme.colors.grey3}`};
44
44
  padding: 15px;
45
- `,a=s.div`
45
+ `,n=s.div`
46
46
  border-radius: ${o.sp12};
47
47
  border: ${i=>`1px solid ${i.theme.colors.grey2}`};
48
48
  padding: ${i=>i.windowSize==="small"?`${o.sp2} ${o.sp4} ${o.sp2} ${o.sp0}`:`${o.sp3} ${o.sp5} ${o.sp3} ${o.sp0}`};
@@ -53,7 +53,7 @@ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,z as m,O as M
53
53
  align-items: center;
54
54
  text-align: start;
55
55
  box-sizing: border-box;
56
- `,w=s(ne)`
56
+ `,w=s(ae)`
57
57
  color: ${i=>i.theme.colors.champion};
58
58
  `,u=s(te)`
59
59
  color: ${i=>i.theme.colors.champion};
@@ -63,12 +63,12 @@ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,z as m,O as M
63
63
  color: ${i=>i.theme.colors.champion};
64
64
  `,d=s.div``,c=s.div`
65
65
  padding-left: ${o.sp3};
66
- `,E=s($)`
67
- color: ${b.graphColor16Dark};
68
- `,F=s($)`
69
- color: ${b.graphColor09Dark};
70
- `,Y=s($)`
71
- color: ${b.graphColor28Dark};
66
+ `,E=s(b)`
67
+ color: ${$.graphColor16Dark};
68
+ `,F=s(b)`
69
+ color: ${$.graphColor09Dark};
70
+ `,Y=s(b)`
71
+ color: ${$.graphColor28Dark};
72
72
  `,ye=s(se)`
73
73
  margin: ${o.sp3} auto;
74
74
  max-width: 719px;
@@ -78,7 +78,7 @@ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,z as m,O as M
78
78
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
79
79
  align-items: center;
80
80
  justify-content: center;
81
- `,be=s(U)`
81
+ `,$e=s(U)`
82
82
  margin: ${i=>i.windowSize==="small"?o.sp1:`auto ${o.sp5}`};
83
83
  color: ${i=>i.theme.colors.grey1};
84
- `,r=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:l,meetingUrl:S,videoUrl:Z,onButtonClick:H,onBackClick:K,onSetupBillPaySuccess:z,onClickMenuIcon:N})=>{const h=J(),n=f(),{billPayTermsDetails:p}=i,[O,X]=g.useState(!1),[q,k]=g.useState(!1),v=Q(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const G=de(h.loggedInUserRoleMap),P=ce(h.loggedInUserRoleMap)&&!G,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(he,{children:[O===!0?e.jsx(me,{onCancelClick:()=>{X(!1)},videoUrl:Z}):null,q===!0?e.jsx(W,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ee,{title:r.title,onBackClick:K,showBackButton:!pe(h.loggedInUserRoleMap),showMenuIcon:n==="small"||n==="medium-compact",onClickMenuIcon:N,source:"BillPayPromoPage"}),e.jsxs(ge,{windowSize:n,children:[n==="small"?e.jsx(ue,{children:T}):e.jsx(we,{children:T}),n==="small"?e.jsx($e,{}):e.jsx(Se,{}),P===!1?e.jsxs(je,{children:[e.jsxs(fe,{windowSize:n,children:[e.jsx(C,{variant:"secondary",label:r.scheduleDemoButton,onClick:()=>{l?.trackBillPayPromoScheduleDemo(),k(!0)},"data-testid":B("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:n,children:r.orText}),e.jsx(C,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:H,"data-testid":B("billpay-setup-button")})]}),e.jsxs(ye,{children:[r.terms.terms1,e.jsx(m,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(m,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(m,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(l?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(m,{href:t.tosUrl,onZeniLinkClick:()=>(l?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},$e=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:l,children:[e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.fullyManagedText.bold}),e.jsx(j,{children:r.fullyManagedText.regular})]})]}),e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx(j,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx(j,{children:r.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsxs(_,{windowSize:l,children:[e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.fullyManagedText.bold}),e.jsx(w,{children:r.fullyManagedText.regular})]})]}),e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.multiLevelApprovalText.bold}),e.jsx(w,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.aiPoweredText.bold}),e.jsx(w,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Fe as default};
84
+ `,r=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:l,meetingUrl:S,videoUrl:Z,onButtonClick:H,onBackClick:K,onSetupBillPaySuccess:z,onClickMenuIcon:N})=>{const h=J(),a=f(),{billPayTermsDetails:p}=i,[O,X]=g.useState(!1),[q,k]=g.useState(!1),v=Q(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const G=de(h.loggedInUserRoleMap),P=ce(h.loggedInUserRoleMap)&&!G,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(he,{children:[O===!0?e.jsx(me,{onCancelClick:()=>{X(!1)},videoUrl:Z}):null,q===!0?e.jsx(W,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ee,{title:r.title,onBackClick:K,showBackButton:!pe(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:N,source:"BillPayPromoPage"}),e.jsxs(ge,{windowSize:a,children:[a==="small"?e.jsx(ue,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(be,{}):e.jsx(Se,{}),P===!1?e.jsxs(je,{children:[e.jsxs(fe,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:r.scheduleDemoButton,onClick:()=>{l?.trackBillPayPromoScheduleDemo(),k(!0)},"data-testid":B("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:a,children:r.orText}),e.jsx(C,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:H,"data-testid":B("billpay-setup-button")})]}),e.jsxs(ye,{children:[r.terms.terms1,e.jsx(m,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(m,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(m,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(l?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(m,{href:t.tosUrl,onZeniLinkClick:()=>(l?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},be=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:l,children:[e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.fullyManagedText.bold}),e.jsx(j,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx(j,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx(j,{children:r.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsxs(_,{windowSize:l,children:[e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.fullyManagedText.bold}),e.jsx(w,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.multiLevelApprovalText.bold}),e.jsx(w,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.aiPoweredText.bold}),e.jsx(w,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Fe as default};