@zeniai/web-cockpit-ui 1.14.44-qa → 1.14.45-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/assets/{ACHDetailsPage-CmrHphBc-BSc57asr.js → ACHDetailsPage-Dt6biYUe-x9rtHiTM.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-DVLZQQLx-TJL1UOFJ.js → AIPerformancePage-CM9AM70q-CVnEii0f.js} +10 -10
  3. package/dist/assets/{AccountInfoPage-imteGSK1-C7FNjZiy.js → AccountInfoPage-CPF9bJN8-D7BCOq_s.js} +4 -4
  4. package/dist/assets/{AccountInfoPageContent-DIjQnfrv-Bx8ZGbnv.js → AccountInfoPageContent-BpnR6Xwt-DVOag3Ni.js} +19 -19
  5. package/dist/assets/{AccountLockedInfoModal-LYiLlZrv-W5eyNZln.js → AccountLockedInfoModal-ZoEeOTMM-CFpvfMaR.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CSzw7Xdo-BUbqervM.js → AccountReconDetailsDrawerPage-CfQ2mY97-Dg9-ZXo-.js} +1 -1
  7. package/dist/assets/{AccountRow-DnMX1pTV-Dch-yrS1.js → AccountRow-B8_6Pf4a-BXi7G1sU.js} +13 -13
  8. package/dist/assets/{AccountsPromoCardStack-BY9-YdTi-DAKDIFdR.js → AccountsPromoCardStack-BiCUsUG_-CKpOKtGv.js} +11 -11
  9. package/dist/assets/{AddAddressForCardDrawer-BY8rla0d-DwYWRebM.js → AddAddressForCardDrawer-Dqd20TwG-CLEU-fTU.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BND3tkMk-B2Q1vX5B.js → AddToWalletPage-Dztl0YPb-CTUWx1Uw.js} +10 -10
  11. package/dist/assets/{AgingReportsPage-C1HG4wzc-BP7ywoVs.js → AgingReportsPage-B4XxsXj8-qCOhN7V-.js} +14 -14
  12. package/dist/assets/{AllUserItems-rYc34keO-eneNLhbV.js → AllUserItems-B0rWTi3M-q17-8wHB.js} +4 -4
  13. package/dist/assets/{ApAgingDetailPage-CNG6prpn-zUDMXulF.js → ApAgingDetailPage-Y9K0Ueeu-fEOm7-dZ.js} +2 -2
  14. package/dist/assets/{AppBasePage-Dk4672v_-BU3yLG7X.js → AppBasePage-Co9r45oA-_5jrWDUp.js} +3 -3
  15. package/dist/assets/{AppDrawerContent-Y99P1DCR-BotvEcVh.js → AppDrawerContent-BBI2DM1O-BZ9TCfuC.js} +13 -13
  16. package/dist/assets/{ApprovalRulesSettingsPage-CO8-E7dA-D4Ayb7gE.js → ApprovalRulesSettingsPage-DP26gqoH-S91hGwuF.js} +1 -1
  17. package/dist/assets/{ArAgingChart-CsuanjH1-C1MocSZP.js → ArAgingChart-D07CrcX6-Bb-ubg6P.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-D6CHRGxo-CwwmVZk4.js → ArAgingDetailPage-GZw1b2sA-z9jAw9p9.js} +1 -1
  19. package/dist/assets/{AttachmentView-B3p8mkIi-BrJeaiQh.js → AttachmentView-xH7J89rG-DOMjMRfr.js} +6 -6
  20. package/dist/assets/{BankAccountSection--gqsJj6B-Cl0xvfi6.js → BankAccountSection-C74XNBn5-CY0uI2wa.js} +6 -6
  21. package/dist/assets/{BankAccountWarningSection-BM-Bu8CI-NIomJVMY.js → BankAccountWarningSection-DISZecgw-BXaqSDbn.js} +8 -8
  22. package/dist/assets/{BankConnectionsSettingsPage-B_RVLsvX-Bh3jK4p-.js → BankConnectionsSettingsPage-DVfrZI5k-y_eb2M3D.js} +7 -7
  23. package/dist/assets/{BillDetailPage-Bu20m9VL-x6bX1pWj.js → BillDetailPage-BB2dqRCc-DDaLt-vn.js} +5 -5
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CR168utn-D04RgUHd.js → BillPayApprovalRuleDetailPage-DULz7z7T-DY6u14Tx.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DQbLEENj-BXlH5X6q.js → BillPayApprovalRulesPage-BRy0P1G6-VP3zI7Gw.js} +5 -5
  26. package/dist/assets/{BillPayPromoPage-DqUNPVeq-BY__dpe7.js → BillPayPromoPage-CbJdDHD0-DZ-M6IZC.js} +4 -4
  27. package/dist/assets/{BillPaySetUpPage-BO8V-KVh-BVLQO0ZS.js → BillPaySetUpPage-DqnFvCOb-BeutT-e1.js} +2 -2
  28. package/dist/assets/{BillingSettingsPage-clzpJwrI-aUUpavsg.js → BillingSettingsPage-BC-uZXJ5-lq1RYTMm.js} +5 -5
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CFldRiX8-CF_81QlR.js → BillsBulkReviewDrawerPage-GdAORV0l-CHEn6W3_.js} +1 -1
  30. package/dist/assets/{BoxItem-CnpQOIVn-QBDxILBm.js → BoxItem-BVzRQmWm-DnawUpOb.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-DKmaCoDK-BokUPZc8.js → BusinessVerificationPage-Vmjh5B5Q-DyyMw-EQ.js} +6 -6
  32. package/dist/assets/{CardNumberSubText-uaXIushe-mziisRlF.js → CardNumberSubText-Rjo6M8UU-CcXRlHUY.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DrW60zjw-CAOfeHjk.js → CashbackDetailPage-CiSuiJsI-CCZeXshW.js} +16 -16
  34. package/dist/assets/{ChargeCardDetailPage-X1HoUp96-Dq0xewvB.js → ChargeCardDetailPage-RTQvA6Uw-C4pe-icE.js} +41 -41
  35. package/dist/assets/{ChargeCardListPage-_0lUmAxM-FS4GdQcB.js → ChargeCardListPage-ByQZiwkP-DXG0mm5T.js} +15 -15
  36. package/dist/assets/{ChargeCardListTable-mfIUvL0A-BZYAUn-T.js → ChargeCardListTable-BIiwOFhF-DyaZW1I2.js} +13 -13
  37. package/dist/assets/{ChargeCardPromoPage-Bo2JJ5g4-Cbfgp8i_.js → ChargeCardPromoPage-DDs4hLZ8-yzbnAU_m.js} +10 -10
  38. package/dist/assets/{ChargeCardSetupPage-D9IikPGO-DQ37eBAM.js → ChargeCardSetupPage-C5Ay4ZmX-SxGdOPuA.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-Ck3qug5N-PNsbLhik.js → ChargeCardStatementsPage-5htSDEnC-Nw5bKfZm.js} +4 -4
  40. package/dist/assets/{ChargeCardUtils-BEBqV4Ri-CPRRvpNp.js → ChargeCardUtils-D8nxmniw-0B3L7zeg.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-CauClKmi-CmKTvW2Q.js → ChaseOverlay-BsUhQ0Hl-DFaxFI1c.js} +10 -10
  42. package/dist/assets/CheckDepositDrawerPage-CpQke8aO-CtJ3A36H.js +206 -0
  43. package/dist/assets/{CollapsableReportTable-CHthdzdj-DiXbx-o4.js → CollapsableReportTable-s_gsuEBP-C1aC-SHP.js} +85 -85
  44. package/dist/assets/{CompanyOfficerDetailsSection-BEb3_zYO-Dqtv0jSU.js → CompanyOfficerDetailsSection-BgVQxl1Y-CwOozNod.js} +15 -15
  45. package/dist/assets/{CompanyPassportCard-FhjZyorS-BrEmcU5l.js → CompanyPassportCard-BA3ilbJb-BLkylNR4.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-BlhNB8Ah-CKfKsscn.js → CompanyPassportPage-CAsHDLIg-DHWATnhm.js} +21 -21
  47. package/dist/assets/{CompleteProfile-Bk9Oyn1_-DoR6qaZF.js → CompleteProfile-CYCDpreV-BIRl_rEJ.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-DZLI1m4w-Dpj1p9Kd.js → ConfettiBurst-C6h5WEkY-CkKDQczO.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-C3CFRcUl-aaHtvw8x.js → CreateOrEditVendorPage-PQOg943K-BIJqg_Xb.js} +4 -4
  50. package/dist/assets/{CreditCardPaymentDrawerPage-Drl9yZi5-CKvSiGF-.js → CreditCardPaymentDrawerPage-DKW50EM6-DVNOyIoX.js} +10 -10
  51. package/dist/assets/{CreditCardPaymentPlgSection-D-Ptzdeo-BK_hLYo8.js → CreditCardPaymentPlgSection-C5Qn4uPW--juf3I9b.js} +8 -8
  52. package/dist/assets/{CurrencySelectField-CTAalWEI-iuON3W6y.js → CurrencySelectField-CQuKsZt--4BzRH7ns.js} +2 -2
  53. package/dist/assets/{CustomerOnboardingActivationPage-BkPgpEPw-Cxokqqc5.js → CustomerOnboardingActivationPage-DltZPaG9-CuOVbV8z.js} +6 -6
  54. package/dist/assets/CustomerOnboardingContainerPage-BLfK3HuK-D58EIOXR.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DzG4nVbk-DUDJYwqd.js → CustomerOnboardingDetailPageSkeleton-BX1ALiCI-pRGEY_jl.js} +8 -8
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-Czttv30c-CPtfEMDH.js → CustomerOnboardingNoStepsPage-D-_NhEaR-DoNrEgc_.js} +7 -7
  57. package/dist/assets/{CustomerOnboardingPage-CNXBzMG5-DzdSjywh.js → CustomerOnboardingPage-Cxw6ju1Q-iVE3rRJz.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BArjfUBb-DiIVJ-QZ.js → CustomerOnboardingProductSuitePage-B7D59sC_-ClANKKoE.js} +5 -5
  59. package/dist/assets/{Dashboard-DyA5sBz3-CRkt-_C_.js → Dashboard-BNvsGTf3-DfRYC8MF.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-DvUvM8lA-TbzG3eRo.js → DashboardReportPage-CUDj-apD-ts1UyW1y.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-CAa8yETt-DQCrZOMm.js → DashboardSidebarBackgroundAnimation-CqoYqd3k-CpbMxsi5.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-VZZvr2Gl-DJKdJrGG.js → DepositAccTransactionItem-By315-ia-B67a47Nt.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-xt11Y65Z-XwfRqCiv.js → DepositAccTransactionListPage-BmdduHVH-CuW0haDa.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-DmE3TVQk-C-QBeWMe.js → DomesticWireDetailsPage-BycRPXWv-BEmLm9iF.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DBhAvmRv-Cj3ahlAG.js → DownloadOverlay-CD44fdp2-CcGw9J34.js} +12 -12
  66. package/dist/assets/{DrawerPage-BSy9zQ8e-VOTcl_Us.js → DrawerPage-DttoShZY-B4SEX4Vc.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-DyaHesFS-Bus9x57q.js → EditPeoplePage-Cwz1PxMH-D0oC_7he.js} +3 -3
  68. package/dist/assets/{EditReimbursementDetailPage-EEKR__zQ-BoWF0JFB.js → EditReimbursementDetailPage-B8EIR_aw-BLg2ffib.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-BECoxBfR-BiJ_8Jzz.js → EntityDetailPage-BSRVaRvy-DmyuhLfY.js} +3 -3
  70. package/dist/assets/{EntitySummarySection-wzMCZjZE-2-RWnlxw.js → EntitySummarySection-D3_1EeVb-4HGU6F7u.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-MlPZZ_Mz-C8FIABO0.js → ExpenseAutomationOverviewPage-BumVHdQ7-Dr0SJny6.js} +13 -13
  72. package/dist/assets/{ExpenseAutomationPage-mdYWsafr-BLvFXWYb.js → ExpenseAutomationPage-DL86YKcI-D7VmjVTK.js} +55 -55
  73. package/dist/assets/{ExpressPayPage-Dg03hVzu-Bd-Xf2bN.js → ExpressPayPage-B2ZL_U_8-Ct1T6Hqd.js} +7 -7
  74. package/dist/assets/{FeaturePreviewPage-BePsYONK-DM7rJpB4.js → FeaturePreviewPage-abZRtNJ_-DtOlQ1ve.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-BqqrsOIP-DLXO6q5D.js → FollowStepsSection-UY5sAJeD-D9y-FlM_.js} +9 -9
  76. package/dist/assets/{GlobalReviewListPage-BVpHhHli-BA06L24b.js → GlobalReviewListPage-ao32krvU-CyxgvmBU.js} +10 -10
  77. package/dist/assets/{HelpButton-DXDj1Qju-6dCR8Tek.js → HelpButton-Dz3Ra_Sl-C1T3rERY.js} +4 -4
  78. package/dist/assets/{InformationCardStack-CauWOEJQ-DKSteiOb.js → InformationCardStack-CeLIUYk5-Cx3xXrtg.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-C-52awo8-BWPPl14z.js → InsightsCardStack-CabSexOm-CpBekjTt.js} +8 -8
  80. package/dist/assets/{InsightsSection-Bq2ZlQ8--AuQEFpFd.js → InsightsSection-CaYMAnck-vZ6q8Jpt.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-CQCxjOHh-B1T5nZLs.js → IntegrationsSettingsPage-BI7RHtQ2-DWoQgO4y.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-Bi3ERJ96-C62elPax.js → InternationalWireSwiftDetailsPage-iR-F32ot-BUfcTb0n.js} +6 -6
  83. package/dist/assets/{InternationalWireVerificationPage-DhX_OpJ6-DhDVwdIK.js → InternationalWireVerificationPage--IRCwUc5-BK__pdsC.js} +5 -5
  84. package/dist/assets/{InviteFormPage-BJkMxjIE-DGYtt6Bs.js → InviteFormPage-D-YEfvJT-B46eQD-N.js} +8 -8
  85. package/dist/assets/{InvitePageListView-0zD-YAJA-DGIFJ6Lx.js → InvitePageListView-CNvU2ppT-BsPD9T0R.js} +20 -20
  86. package/dist/assets/{InvitePeoplePage-CvQNFpjb-MEqiKB1j.js → InvitePeoplePage-CteRDO3k-CzXdrj66.js} +3 -3
  87. package/dist/assets/{InvoiceUploadSection-BrnUjxIH-BMdRzxGt.js → InvoiceUploadSection-BQXqcLvW-YGmVjGWZ.js} +3 -3
  88. package/dist/assets/{IssueChargeCardPage-agEqgGPg-BMz7PYBf.js → IssueChargeCardPage-BIgcCnpo-PcUOQWwy.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-DphNZz4y-D0KCXzO6.js → LabeledAddressValue-CiDQX1xa-x9cH1NH3.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DBlBlkO_-DoPRS3as.js → LabeledAddressValueField-C5jrFFUs-CwCL74Dg.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-CBRqbUDe-UzdHSUCG.js → LabeledControlledCheckBoxField-jqiHQZso-Y1bdaQMv.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-DOjtbusw-TXDXUD5J.js → LabeledCreatableSingleSelectField-DGZvzuxH-BpSZ7zl7.js} +7 -7
  93. package/dist/assets/{LabeledDocumentField-Bxggz66t-Cn_PeJ5g.js → LabeledDocumentField-hUiqS32j-vbaQx3SD.js} +4 -4
  94. package/dist/assets/{LabeledDropDownFormattedTextField-1dqcE0E4-t0ucdhBH.js → LabeledDropDownFormattedTextField-CZdzpmL1-pUn4RDCV.js} +5 -5
  95. package/dist/assets/{LabeledText-BJFW2h6S-G87zH92R.js → LabeledText-DopMzeZ3-CYS48zTu.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CLzwYw4O-Cs6PJnR2.js → LabeledUserSingleSelectWithSubtitlesField-CkRg249v-BoH-kRZ0.js} +5 -5
  97. package/dist/assets/{LabeledZeniRolesDropDownField-DGsJbILm-CWOq9g0f.js → LabeledZeniRolesDropDownField-CwkMUU9L-CBkGnuEd.js} +11 -11
  98. package/dist/assets/{LinkJETransactionPage-CvdbDO5J-Dcaiimar.js → LinkJETransactionPage-CcnQYwcu-Cpho8XzH.js} +3 -3
  99. package/dist/assets/{LowBalancePopup-BhLxnyK0-C1-HIC13.js → LowBalancePopup-_1OrPez7-DZkbi_Py.js} +2 -2
  100. package/dist/assets/{MagicLinkACHDetailsPage-CcD-_iOV-Cmloa6Sl.js → MagicLinkACHDetailsPage-DXP0qFGK-DoB9MNyO.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-C-YfhiNr-DU52Xxm4.js → MagicLinkDomesticWireDetailsPage-BycJq6br-DGH4aq0c.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DXZBFcUc-DORqbysw.js → MagicLinkInternationalWireDetailsPage-NjVjY4fp-D6XTRyzt.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-OikwemO4-2MjmaIoT.js → MagicLinkSuccessPage-y19ecMSL-Bjh9JkfG.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-CcsVjT5g-m8-ZbWiA.js → MagicLinkTitleSection-CdijIZYn-kUHi3mP3.js} +4 -4
  105. package/dist/assets/{MailingDetailsSection-ClULuPML-c4uvK-xV.js → MailingDetailsSection-Cw-CO-oE-9IZJYTUD.js} +1 -1
  106. package/dist/assets/{MeetingCalenderPopup-DJHrBVXi-YYH5fhwe.js → MeetingCalenderPopup-CQ2sUCtg-BBwyYnnQ.js} +1 -1
  107. package/dist/assets/{Menu-C3EXvt9P-HAcVl0uR.js → Menu-Cz6zGt86-BijWmw2b.js} +3 -3
  108. package/dist/assets/{MyBankConnectionsSettingsPage-Cn-dlR5V-D5W9TQDI.js → MyBankConnectionsSettingsPage-DRmOdZ9_-D1GaIeKu.js} +7 -7
  109. package/dist/assets/{MyPendingActivationChargeCardListPage-B3xeafnf-LCbTSPzT.js → MyPendingActivationChargeCardListPage-CtFUm3NW-ChKpZI-w.js} +1 -1
  110. package/dist/assets/{MyProfileSettingsPage-CcyS0ijJ-CTU0B5fO.js → MyProfileSettingsPage-ejULQTzV-CUdJEZnq.js} +7 -7
  111. package/dist/assets/{NavBarWithPicker-C3MsVwsg-BuAxA6W9.js → NavBarWithPicker-C-QfNv7i-BGeKGKav.js} +3 -3
  112. package/dist/assets/{NavigationArrow-DSMn_azz-Bn7cke7g.js → NavigationArrow-kQmX-M7U-Qn8Td-4a.js} +1 -1
  113. package/dist/assets/{NavigationDots-BiiEFlFj-xZJ5-o7_.js → NavigationDots-nUALE4y--DPaRfQ3k.js} +1 -1
  114. package/dist/assets/{NewGlobalMerchantPage-DJ0zT8Xy-Cj0gRV8r.js → NewGlobalMerchantPage-D1NQ_h-e-CCmfop3O.js} +5 -5
  115. package/dist/assets/{NoDataChart-O6Mg_gf4-BzMtzTAz.js → NoDataChart-BmcrokSp-mktpp4Ge.js} +4 -4
  116. package/dist/assets/{NoDataTable-BgKg_U0s-CmmkF752.js → NoDataTable-BKAiKOOM-BMD8AGW2.js} +1 -1
  117. package/dist/assets/{NotFoundPage-DA6cvlNW-DlMJJWcU.js → NotFoundPage-B-wGvM-5-CoGsI8QE.js} +3 -3
  118. package/dist/assets/{NotificationSettingsPage-BwqCG-6J-DWqf_cVg.js → NotificationSettingsPage-BKQcK-_r-CZ2o6aQV.js} +4 -4
  119. package/dist/assets/{NotificationsListConfig-DqM-Z8oE-CAKzU3R_.js → NotificationsListConfig-C5pyiij--CMy_5rqB.js} +1 -1
  120. package/dist/assets/{NotificationsPage-iYF222-C-DUKthO_-.js → NotificationsPage-kpBbd-do-DQ3PZPcz.js} +13 -13
  121. package/dist/assets/{OpExByVendorPage-BwekpbHo-BjGBd6JN.js → OpExByVendorPage-CWi3CBRt-C5BCEXdz.js} +4 -4
  122. package/dist/assets/{OverlayContainerPage-Bmu909Fo-BQsfSCAm.js → OverlayContainerPage-Bmu909Fo-A-nPKfyl.js} +1 -1
  123. package/dist/assets/{PandLWithForecastPage-B7IxSSMo-BTaoWXQH.js → PandLWithForecastPage-DyWdR8ii-sU4Bj-a8.js} +5 -5
  124. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CJk4EUwr-ABl4cOzL.js → PaymentAccountSetupBillingAddressSection-Cq7pdtPH-CzJADBF9.js} +8 -8
  125. package/dist/assets/{PeoplePage-97Qe6dqr-DdMIC7eB.js → PeoplePage-CPaoZBpL-Dgke3QJy.js} +25 -25
  126. package/dist/assets/{PortfolioAllocationFormPage-Df2lZK30-l0pxfNTg.js → PortfolioAllocationFormPage-DX6o84wl-DSlUdRlT.js} +3 -3
  127. package/dist/assets/{PortfolioDetails-CGVqC5q--CSueTA8J.js → PortfolioDetails-C1iLJHLZ-CesK17A1.js} +1 -1
  128. package/dist/assets/{ProductsCarousel-DqvLLayZ-CS-GjIhF.js → ProductsCarousel-DjFdVKD1-hE-u6a08.js} +1 -1
  129. package/dist/assets/{PromoBaseCards-Bq-mwvkh-p9T1FVNn.js → PromoBaseCards-CizR6Pvp-CqSOUop-.js} +2 -2
  130. package/dist/assets/{QBOConnectionDialog-DWZd5o0q-K6Wt7Neh.js → QBOConnectionDialog-2HqFAb-Q-sQRSSCIF.js} +4 -4
  131. package/dist/assets/{QBOSetupSection-B_V2Y6DW-BLaB9-z0.js → QBOSetupSection-9O9ML9R8-BXn0JWS0.js} +4 -4
  132. package/dist/assets/{ReimbursementApprovalRuleDetailPage-hWUoXT59-Y3oG-ekm.js → ReimbursementApprovalRuleDetailPage-CQOS4wJ2-zxPk7wqx.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRulesPage-C20mPnJH-DBrdoBR7.js → ReimbursementApprovalRulesPage-VuQN7m71-BZUH-GLu.js} +4 -4
  134. package/dist/assets/{ReimbursementDetailPage-DAVdVUp0-DebCxtKg.js → ReimbursementDetailPage-D2pO4hgr-vjcNMRqh.js} +6 -6
  135. package/dist/assets/{ReimbursementPromoPage-TKdLARUD-DsJNpIcv.js → ReimbursementPromoPage-D3p8iwHa-z2IAojJU.js} +9 -9
  136. package/dist/assets/{ReimbursementSetUpPage-CW10ZPs7-CIw76iEF.js → ReimbursementSetUpPage-OR8ECt9X-Bx512tje.js} +4 -4
  137. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-_rgixsBG-BMXQONLy.js → ReimbursementsBulkReviewDrawerPage-DhjfNcO4-DvhEuIE0.js} +1 -1
  138. package/dist/assets/{ReloadCard-Bzt6gIzi-D5O4Gcf_.js → ReloadCard-NvfxlEQu-BnXQfMVk.js} +1 -1
  139. package/dist/assets/{ReportTableViewSelector-CPc3yRAI-BKmgR9zr.js → ReportTableViewSelector-B599qAeN-BwwOFFi3.js} +1 -1
  140. package/dist/assets/{ReportsPage-DIHjl3Xd-DULYM4bB.js → ReportsPage-Bc-rf7lL-BubUWknL.js} +1 -1
  141. package/dist/assets/{RevenueChart-MkoD0EoE-D92CgGXq.js → RevenueChart-BtTx8haN-Ci6KFTHz.js} +12 -12
  142. package/dist/assets/{ReviewDetailsPage-B96vIWt9-BUkzSnt4.js → ReviewDetailsPage-Bm9qlI1L-DnX2Wm0A.js} +5 -5
  143. package/dist/assets/{ReviewOverlay-CKOAcLzJ-BPHtj3ml.js → ReviewOverlay-C90OnldQ-BJwck8Vp.js} +9 -9
  144. package/dist/assets/{RoleWithToolTip-BiydziFE-VYITxPfh.js → RoleWithToolTip-Cav6Dtwi-DQjRjWwX.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Ce2BDLCX-CXENWEZF.js → ScheduleDetailsFixedAssetsPage-BIbtbzlS-Dq-JIBXg.js} +3 -3
  146. package/dist/assets/{ScheduleDetailsPage-ClK-ymjD-DRsYGv0y.js → ScheduleDetailsPage-BSVBoMe5-DfcysezY.js} +3 -3
  147. package/dist/assets/{ScheduleSequenceTable-BOFaTbv5-CCscivOS.js → ScheduleSequenceTable-C9IcAd6X-B0s-FwXu.js} +5 -5
  148. package/dist/assets/{ScreenRoutes-CUUBxQES.js → ScreenRoutes-C_yyAtD4.js} +1 -1
  149. package/dist/assets/{SetUpAccountSection-DPEjJt-s-BxHjDLDI.js → SetUpAccountSection-Daj9lEze-CHRC6PUj.js} +4 -4
  150. package/dist/assets/{SetUpDefaultSection-Br-a1ECs-BuLgUcqJ.js → SetUpDefaultSection-CKg9xvyM-V31Vr9Jm.js} +2 -2
  151. package/dist/assets/{SignIn-B7p2vrI4-CBu4DRgp.js → SignIn-BFm1M4_6-R5KiOJ_3.js} +18 -18
  152. package/dist/assets/{SignInScreen-Dum3srgp.js → SignInScreen-CPbq6PuC.js} +1 -1
  153. package/dist/assets/{SpendManagementListViewPage-Ds1WRCNc-B03dml86.js → SpendManagementListViewPage-D6fZPLMz-Z_0NC1QS.js} +3 -3
  154. package/dist/assets/{SpendManagementPerTabPage-uBi60ESx-Dq7iQQx4.js → SpendManagementPerTabPage-jQjzrKl2-CR9tWVBr.js} +18 -18
  155. package/dist/assets/{SpendManagementSection-CESND8ho-DCrlaUqA.js → SpendManagementSection-BaiWgwp--Dp3HO5CH.js} +5 -5
  156. package/dist/assets/{SpendMgmtSetupAccountSection-CiPoUdg_-CelUMY-y.js → SpendMgmtSetupAccountSection-BUSFBsmA-Wg-n8Wde.js} +7 -7
  157. package/dist/assets/{StatementItem-BSfAH9fl-diu3-gbg.js → StatementItem-BeGyTVOf-Ccqz_NBL.js} +4 -4
  158. package/dist/assets/{StatementsPage-BQ-wkg9f-DMW87IGZ.js → StatementsPage-2uPMvTEy-De7Uac1v.js} +1 -1
  159. package/dist/assets/{StatusSwitcher-CoX1TvcC-B2wGlPZJ.js → StatusSwitcher-CwLbXjIU-CJO3kP8v.js} +1 -1
  160. package/dist/assets/{SubTabSwitcher-C4Kvmep7-DJj8T55V.js → SubTabSwitcher-D3bFqk8P-DL4oUfiQ.js} +1 -1
  161. package/dist/assets/{SummaryCard-Cdh_w38m-yg2TCiEc.js → SummaryCard-BNrQ7g3--CGMMw0Tk.js} +1 -1
  162. package/dist/assets/{TaskManagementPage-CCiARHPO-CeRR-xF8.js → TaskManagementPage-Y58wtgRN-CUHNN86c.js} +15 -15
  163. package/dist/assets/{TimeRangeSwitcher-CMNnx0hW-DfOU0-FY.js → TimeRangeSwitcher-CQd079aU-C6Twt9kC.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcher-BAkn3cys-dF_t-50z.js → TimeframeSwitcher-Du60ffZv-BeSFHMlL.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcherWithToggle-Bp8FBsnD-NXYHSu6I.js → TimeframeSwitcherWithToggle-DPManiX8-CS5OwAMc.js} +1 -1
  166. package/dist/assets/{TopExCard-CH7QX8Xe-Dq7lj8sK.js → TopExCard-sH5ZVrBJ-i2TO4vcJ.js} +2 -2
  167. package/dist/assets/{TopExDetailPage-CJuOpApW-D7FKWD-V.js → TopExDetailPage-DiOHO_q9-BJm1edqQ.js} +11 -11
  168. package/dist/assets/{TransactionDetailPage-280hbOwA-B8cgDD3N.js → TransactionDetailPage-NaMbYUr8-Da3GPc9Y.js} +13 -13
  169. package/dist/assets/{TransactionList-BV18tWaE-BQKRF29H.js → TransactionList-Bsma20IC-CJ7iiCLF.js} +4 -4
  170. package/dist/assets/{TransactionListBig-DmVgWxvf-DHGIWOoC.js → TransactionListBig-BwMUiFzK-_BeDx_E5.js} +10 -10
  171. package/dist/assets/{TransactionListPage-CE61eqZh-vtVmAgv2.js → TransactionListPage-BRKVdJ4P-D3ULhVil.js} +4 -4
  172. package/dist/assets/{TransactionVendorDetailPage-CKRUJzG5-D3thb3cP.js → TransactionVendorDetailPage-DuJ1piCd-Z4okEL-Q.js} +3 -3
  173. package/dist/assets/{TransferDrawerPage-DdIXX8dR-DrExDhl3.js → TransferDrawerPage-PmiYXfAU-BQhQZtnl.js} +15 -15
  174. package/dist/assets/{TreasuryOverviewPage-D9NcFBhg-iy_GLL-M.js → TreasuryOverviewPage-M6fv3b34-CcznAXU3.js} +101 -104
  175. package/dist/assets/{TreasuryPromoPage-BKXMayjO-B4uiGon7.js → TreasuryPromoPage-D48c4Ulh-B2QYQTc4.js} +12 -12
  176. package/dist/assets/{TreasurySetupPage-Bo24F7wL-DuPfGbF_.js → TreasurySetupPage-BPsw-DhK-BqfOjb-x.js} +4 -4
  177. package/dist/assets/{TreasuryStatementsPage-DUKtmwwf-D1_Zhdj-.js → TreasuryStatementsPage-BEun-dwQ-D-vCxxYM.js} +1 -1
  178. package/dist/assets/{TreasuryTaxLetterPage-vqThZpY5-DG75nAAt.js → TreasuryTaxLetterPage-CsQ5biUP-CG-uin7p.js} +1 -1
  179. package/dist/assets/{TreasuryTransferOrReviewPage-1Kqod57a-DA3XAHpW.js → TreasuryTransferOrReviewPage-CxhE8fh7-Cf05TRJh.js} +39 -39
  180. package/dist/assets/{TrendChart-uCE73Vf8-XEufcUTW.js → TrendChart-CkUKN6L9-CYj8AG4h.js} +3 -3
  181. package/dist/assets/{TrendWithTransactions-lNYrtUkf-CsE_Q_OW.js → TrendWithTransactions-4pDf20tw-Bfat4sT9.js} +4 -4
  182. package/dist/assets/{UncategorizedAccountsMappingPage-CbLMkBab-DyTfUg06.js → UncategorizedAccountsMappingPage-DZBy-Goh-5f67nsQo.js} +7 -7
  183. package/dist/assets/{UnitIntegrationPage-DzfchgLS-CZgF7SP-.js → UnitIntegrationPage-DG-KGQDb-BLUtVLjp.js} +2 -2
  184. package/dist/assets/{UploadAdditionalDocumentOverlay-CJwjYpvy-DECImHlx.js → UploadAdditionalDocumentOverlay-DrZAnHqz-c6P-4NDi.js} +1 -1
  185. package/dist/assets/{Vendor2FAPopup-BDatjVhv-DiVAW67d.js → Vendor2FAPopup-CaiUvPMo-By8aU9uB.js} +1 -1
  186. package/dist/assets/{VendorACHDetailsPage-BTo9s38E-DN6GrIjX.js → VendorACHDetailsPage-CHoh0E0P-EqmntQKd.js} +1 -1
  187. package/dist/assets/{VendorDetailPage-DOdRZKwE-DrZ4pQ2p.js → VendorDetailPage-CroHdVMA-C-Wc1kYJ.js} +9 -9
  188. package/dist/assets/{VendorDomesticWireDetailsPage-Ch_HedkY-DDDapGI9.js → VendorDomesticWireDetailsPage-DC17Qom9-C3oEikuC.js} +1 -1
  189. package/dist/assets/{VendorFiling1099EditablePage-ChgTi2cq-osgHnUPX.js → VendorFiling1099EditablePage-Bom6X8Sg-DHjxnakQ.js} +14 -14
  190. package/dist/assets/{VendorFirstReviewPage-C_HBOo29-Cun14S2s.js → VendorFirstReviewPage-6eptnez2-B7div4WL.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireDetailsPage-Ct42LbtQ-DOq8ZA0S.js → VendorInternationalWireDetailsPage-C_CH7xDF-fHUjobrM.js} +9 -9
  192. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CalHOqYH-DlK1SL0S.js → VendorInternationalWireSwiftDetailsPage-BEzPWQbD-DdQpKH5i.js} +1 -1
  193. package/dist/assets/{VendorsAccountsSection-Briqd_pt-BkWk4En6.js → VendorsAccountsSection-Z-ebKmVQ-DbcI_-8-.js} +2 -2
  194. package/dist/assets/{VerifyDevice-DxP4a4YR-hED-bTkI.js → VerifyDevice-76nFunfs-3WPg6QL8.js} +1 -1
  195. package/dist/assets/{VideoPlayer-DqRss8fV-B4rpzoFE.js → VideoPlayer-CV7o-_bq-BWNDFwag.js} +1 -1
  196. package/dist/assets/{VideoPopup-CwEiOVHQ-SE5re7pU.js → VideoPopup-CbaFtkFn-BG3oU3yl.js} +1 -1
  197. package/dist/assets/{WarningsDrawerPage-Cdd0mag5-Bja6dfag.js → WarningsDrawerPage-Bg7iDQqy-BITRncLa.js} +1 -1
  198. package/dist/assets/{ZeniAccountDetailPage-5sn9Wphj-CqKMTn67.js → ZeniAccountDetailPage-DYidbJtT-qtM4JbUS.js} +14 -14
  199. package/dist/assets/{ZeniAccountListViewPage-BLCYWphf-DSieyxJQ.js → ZeniAccountListViewPage-CVkzRUil-DQ8A3VZl.js} +7 -7
  200. package/dist/assets/{ZeniAccountNavBarPieces-Cwo5QtoT-0DDIjO4b.js → ZeniAccountNavBarPieces-DaHGosco-D-yA-Drc.js} +1 -1
  201. package/dist/assets/{ZeniAccountPromoPage-CKQOu6Ab-B0_2BOIj.js → ZeniAccountPromoPage-CXr_ud4S-C9YOWT8M.js} +10 -10
  202. package/dist/assets/{ZeniAccountSetupPage-BW1l7qJf-KyzYMO16.js → ZeniAccountSetupPage-Bqng7laZ-DKzqXw5c.js} +4 -4
  203. package/dist/assets/{ZeniCopyright-B6fSw5kZ-BEYdzvFL.js → ZeniCopyright-1d-n5uOX-ChnFnWfn.js} +1 -1
  204. package/dist/assets/{ZeniTransferAmountSlider-DgkjDK9D-C-vYTTkf.js → ZeniTransferAmountSlider-C63JbsJx-BbpyFTKu.js} +4 -4
  205. package/dist/assets/{analyticsHelper-sMuDd6mq.js → analyticsHelper-Cjbr9XB0.js} +1 -1
  206. package/dist/assets/{analyticsHelper-BIYs-BU5-DiR7zn-J.js → analyticsHelper-I0lsXzXl-DMfD2BoN.js} +1 -1
  207. package/dist/assets/{chartTypes-BFc-FQm9-DH8jC-PX.js → chartTypes-D1Bn4xHa-xYwPwpPb.js} +1 -1
  208. package/dist/assets/{commonDimensions-B_ShoU61-DERccKE1.js → commonDimensions-0W6wokPG-Cd83l0QX.js} +1 -1
  209. package/dist/assets/{detailCommon-CoFrLjgw-DYR8VDfk.js → detailCommon-CtOYz9rQ-C2GqRiaA.js} +6 -6
  210. package/dist/assets/{downloadPdf-yID9qiGz-DQvfiOaT.js → downloadPdf-BZd85Ssn-CFK_x6gO.js} +1 -1
  211. package/dist/assets/{index-BKug3-eP.js → index-0QGih61V.js} +1871 -1871
  212. package/dist/assets/{mapLoadingInProgressToTreeNode-xaG_j34l-BbRC2p3V.js → mapLoadingInProgressToTreeNode-CMYVZuQF-Dz_C0WS4.js} +1 -1
  213. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Cf1Q8iLQ-Dl9HYo3q.js → mapSectionWithAcOnlyToTreeNode-DTb8IvgM-B1dWpiWC.js} +1 -1
  214. package/dist/assets/{mapSpacerToTreeNode-CiLMcagY-B9z3eGZE.js → mapSpacerToTreeNode-B_jfScE8-BZjIqfg0.js} +1 -1
  215. package/dist/assets/{mapTimeframeBalancesToTreeNode-VuMYRsaA-Bkr18cUs.js → mapTimeframeBalancesToTreeNode-BEOhNOy1-DAEXm4ZG.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-BpcCExFt-aaQ9hedR.js → mapTimeframeBalancesToTreeNode-Gxa-yiq_-Dyh-lexC.js} +1 -1
  217. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-Cfz6o8XS-DipjgrJy.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BD4cN4l4-6Aq9xydh.js} +1 -1
  218. package/dist/assets/{toCOABalancesWithID-CL2W-2Ks-BJ5hpOjH.js → toCOABalancesWithID-BVyQC9pt-C2mN3lRp.js} +1 -1
  219. package/dist/assets/{toChartData-CD4rOlNx-CQ_TJxU1.js → toChartData-BRdwPc1X-CHkEigWV.js} +1 -1
  220. package/dist/assets/{treasuryColorHelper-DHqBe6al-lMeWD10s.js → treasuryColorHelper-DrayAnYl-DEH_6Uhe.js} +1 -1
  221. package/dist/assets/{uploadAttachment-Bqf6VI3L-BGJCHQ2n.js → uploadAttachment-Cx3js1c7-BXnz9UFJ.js} +16 -16
  222. package/dist/assets/{uploadReceipts-dxsKhm9I-DS2NFPcM.js → uploadReceipts-dxsKhm9I-DUj1wGX2.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +4 -4
  225. package/dist/assets/CheckDepositDrawerPage-DmszT7bh-1ikOwRZW.js +0 -206
  226. package/dist/assets/CustomerOnboardingContainerPage-BAZbPHa2-AeHBObO9.js +0 -1
@@ -1,11 +1,11 @@
1
- import{e as u,j as o,W as $,bp as w,R as b,o as e,C as n,by as f,X as k,g as v,f as s,eW as j,y as z,q as r}from"./index-BKug3-eP.js";import{n as a}from"./vendor-rkTZJa59.js";const{common:{navBar:{back:y}}}=b.getLocalizedStrings(),l={navBarContainerPadding:new n(10,r[3]),customTitleMarginBottom:new n(r[0],r[3]),customTitleMarginLeft:new n(r[3],r[6]),customTitleMarginRight:new n(r[5],r[8])},C={formTitle:new k("h6Medium","h5Medium")},G=({header:i,isDirty:d,isMagicLink:c,onBackClick:m,setShowConfirmationPopup:p})=>{const t=u();return o.jsxs(o.Fragment,{children:[t==="small"?o.jsxs(S,{windowSize:t,children:[c?null:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click-mobile")}),o.jsx(h,{windowSize:t,children:i})]}):o.jsx(P,{children:c?null:o.jsx(w,{title:y,enterDelay:600,placement:"bottom",children:o.jsx(x,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click")})})}),t!=="small"?o.jsx(h,{windowSize:t,children:i}):null]})},h=a(v)`
1
+ import{e as u,j as o,W as $,bp as w,R as b,o as e,C as n,by as f,X as k,g as v,f as s,eW as j,x as z,q as a}from"./index-0QGih61V.js";import{n as r}from"./vendor-rkTZJa59.js";const{common:{navBar:{back:y}}}=b.getLocalizedStrings(),l={navBarContainerPadding:new n(10,a[3]),customTitleMarginBottom:new n(a[0],a[3]),customTitleMarginLeft:new n(a[3],a[6]),customTitleMarginRight:new n(a[5],a[8])},C={formTitle:new k("h6Medium","h5Medium")},G=({header:i,isDirty:d,isMagicLink:c,onBackClick:m,setShowConfirmationPopup:p})=>{const t=u();return o.jsxs(o.Fragment,{children:[t==="small"?o.jsxs(S,{windowSize:t,children:[c?null:o.jsx(h,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click-mobile")}),o.jsx(x,{windowSize:t,children:i})]}):o.jsx(P,{children:c?null:o.jsx(w,{title:y,enterDelay:600,placement:"bottom",children:o.jsx(h,{onClick:()=>d?p?.(!0):m?.(),"data-testid":$("bank-account-page-back-click")})})}),t!=="small"?o.jsx(x,{windowSize:t,children:i}):null]})},x=r(v)`
2
2
  ${i=>`${C.formTitle.style(i.windowSize)}`};
3
3
  color: ${i=>i.theme.colors.primary};
4
4
  margin-bottom: ${i=>l.customTitleMarginBottom.valuePx(i.windowSize)};
5
5
  margin-top: ${e.sp3};
6
6
  margin-left: ${i=>l.customTitleMarginLeft.valuePx(i.windowSize)};
7
7
  margin-right: ${i=>l.customTitleMarginRight.valuePx(i.windowSize)};
8
- `,x=a(f)`
8
+ `,h=r(f)`
9
9
  cursor: pointer;
10
10
  color: ${i=>i.theme.colors.hero};
11
11
  width: 20px;
@@ -13,9 +13,9 @@ import{e as u,j as o,W as $,bp as w,R as b,o as e,C as n,by as f,X as k,g as v,f
13
13
  &:hover {
14
14
  color: ${i=>i.theme.colors.primary};
15
15
  }
16
- `,P=a.div`
16
+ `,P=r.div`
17
17
  margin: ${e.sp3} ${e.sp8} ${e.sp3} ${e.sp6};
18
- `,S=a.div`
18
+ `,S=r.div`
19
19
  display: flex;
20
20
  align-items: center;
21
21
  position: absolute;
@@ -26,7 +26,7 @@ import{e as u,j as o,W as $,bp as w,R as b,o as e,C as n,by as f,X as k,g as v,f
26
26
  padding-left: ${e.sp0};
27
27
  z-index: 2;
28
28
  background-color: ${i=>i.theme.colors.grey4};
29
- `,g={marginBottom:new n(r[5],r[3]),marginRight:new n(r[3],r[8]),marginLeft:new n(r[3],r[6])},W=({warningText:i})=>{const d=u();return o.jsxs(M,{size:d,children:[o.jsx(T,{children:o.jsx(R,{})}),o.jsx(B,{children:i})]})},M=a.div`
29
+ `,g={marginBottom:new n(a[5],a[3]),marginRight:new n(a[3],a[8]),marginLeft:new n(a[3],a[6])},W=({warningText:i})=>{const d=u();return o.jsxs(M,{size:d,children:[o.jsx(T,{children:o.jsx(R,{})}),o.jsx(B,{children:i})]})},M=r.div`
30
30
  display: flex;
31
31
  background-color: ${s.alertLight};
32
32
  border: 1px solid ${s.brandColorGoldDark};
@@ -36,15 +36,15 @@ import{e as u,j as o,W as $,bp as w,R as b,o as e,C as n,by as f,X as k,g as v,f
36
36
  padding: ${e.sp3} ${e.sp4} ${e.sp3} ${e.sp4};
37
37
  margin-right: ${i=>g.marginRight.valuePx(i.size)};
38
38
  margin-left: ${i=>g.marginLeft.valuePx(i.size)};
39
- `,B=a(z)`
39
+ `,B=r(z)`
40
40
  display: flex;
41
41
  flex-grow: 1;
42
42
  color: ${s.brandColorGoldDark};
43
- `,T=a.div`
43
+ `,T=r.div`
44
44
  display: flex;
45
45
  align-items: center;
46
46
  margin-right: ${e.sp2};
47
- `,R=a(j)`
47
+ `,R=r(j)`
48
48
  width: ${e.sp4};
49
49
  height: ${e.sp4};
50
50
  color: ${s.brandColorGoldDark};
@@ -1,10 +1,10 @@
1
- import{u as ve,e as je,a as Ke,ca as Ye,j as t,aX as Qe,R as re,o as i,m as se,bS as Ze,F as et,bp as tt,C as I,n as nt,y as D,ao as it,v as De,X as ot,b as ze,cn as at,a2 as J,a8 as fe,f2 as Te,l as G,cv as ct,aS as Ne,fa as qe,fb as lt,fc as st,bv as Ee,q as b,f3 as ge,f4 as we,a0 as Se,bK as xe,W as rt,b6 as dt,dL as He,f as ie,w as B,f9 as ut,fn as pt,fo as ht,aC as mt,fp as ft}from"./index-BKug3-eP.js";import{b as r,n}from"./vendor-rkTZJa59.js";import{r as _e}from"./mui-C42whWwM.js";import{M as Pe}from"./ChaseOverlay-CauClKmi-CmKTvW2Q.js";import{a as gt}from"./SetUpAccountSection-DPEjJt-s-BxHjDLDI.js";import{z as wt,B as Ie}from"./SpendMgmtSetupAccountSection-CiPoUdg_-CelUMY-y.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./SetUpDefaultSection-Br-a1ECs-BuLgUcqJ.js";import"./ChargeCardUtils-BEBqV4Ri-CPRRvpNp.js";import"./CreditCardPaymentPlgSection-D-Ptzdeo-BK_hLYo8.js";const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,St={value:de.productType,width:new I(100,19)},xt={value:de.primaryAccount,width:new I(100,36)},yt={value:de.linkAccount,width:new I(100,22)},vt={value:de.status,width:new I(12,12)},bt={value:de.balance,width:new I(12,13)},N=[St,xt,yt,vt,bt],{common:{settings:Oe,strings:{hyphen:be}},commonSetUp:{setUp:Fe}}=re.getLocalizedStrings(),T={containerPadding:new I(b[3],b[4]),containerRightPadding:new I(b[3],b[8]),iconContainerMaxWidthHeight:new I(b[6],b[7]),iconWidthHeight:new I(20,b[4]),iconPadding:new I(b[1],12),productTypeContainerMarginBottom:new I(b[3],b[0]),linkAccountContainerMarginTop:new I(b[3],b[0]),productTypeIconSize:new I(b[3],b[4])},kt="bankConnectionsSettingsPage",$t=({productType:e,windowSize:h})=>{switch(e){case"bill_pay":return t.jsx(Dt,{windowSize:h,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Nt,{windowSize:h,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(qt,{windowSize:h,children:t.jsx(Ne,{})});case"zeni_treasury":return t.jsx(Gt,{windowSize:h,children:t.jsx(pt,{})});case"charge_cards":default:return t.jsx(Ht,{windowSize:h,children:t.jsx(ut,{})})}},Ct=({allBankAccounts:e,setupView:h,connectedAccountProvider:q,onFetchLinkTokenClick:R,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:P,onEstablishConnectionSuccess:M})=>{const C=ve(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:U}}=at(),{plaidConnectionDetails:V,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=h,m=V.link_account,k=V.update_account,[u,A]=r.useState(void 0),[H,v]=r.useState(!1),W=()=>{v(!0)},d=u==="update_account"?k:m,[S,L]=r.useState(d.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let p,E,s,j=!1;o!=null&&(o.accType==="depositAccount"?p={code:"verified",name:"Verified"}:(p=o.providerVerificationStatus,E=o?.institutionDetails,s=p?.code,j=o?.isLoginRequired??!1));const Y=J(m.updateStatus.fetchState),Q=J(k.updateStatus.fetchState),ee=J(k.fetchStatus.fetchState),O=C.mode==="light"?new fe(C.colors.brandColorJadeLight):new fe(C.colors.brandColorJadeDark),X=r.useCallback((x,K)=>{f.trackConnectBankSuccess(l,"Settings");const Le=K.accounts.find(Xe=>Xe.id===o?.providerAccountId)??K.accounts[0];o?.id!=null&&u==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):P(x,y(l),l),A(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,u,j,_,P]),te=r.useCallback((x,K)=>{x!=null&&(f.trackConnectBankFailure(l,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&_("verification_failed",o.id,"update_account",y(l),l),console.log("Plaid Connection Error",x,K)),A(void 0),z(!1)},[f,l,o?.id,_]),{open:Z,ready:ue}=Te({token:S,onSuccess:X,onExit:te});r.useEffect(()=>{(Y==="In-Progress"&&m.updateStatus.fetchState==="Completed"||Q==="In-Progress"&&k.updateStatus.fetchState==="Completed")&&(G.isVerifiedPaymentAccountProviderStatusCode(s??"")||(R("link_account",y(l)),M(y(l),l)))},[m.updateStatus.fetchState,M,R,o?.providerVerificationStatus?.code,o?.id,Y,Q,k.updateStatus.fetchState,s,l]),r.useEffect(()=>{(G.isVerifiedStatusCode(s??"")||s==="verification_failed")&&!$&&u!=null&&d.linkToken===S&&d.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,d.fetchStatus.fetchState,d.linkToken,s,u,$]);const oe=$e(kt,"primaryAccountSection"),F=ct(U,oe);r.useEffect(()=>{d.fetchStatus.fetchState==="Completed"&&d.linkToken!=null&&d.linkToken!==S&&L(d.linkToken)},[d.fetchStatus.fetchState,d.linkToken,S]),r.useEffect(()=>{$&&Z()},[$,Z]),r.useEffect(()=>{!o?.zeniAccountId&&!F&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||G.isVerifiedStatusCode(s))&&(G.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&R("link_account",y(l))},[]);const ne=()=>{f.trackConnectBankGetBalance(l,"Settings"),A("update_account"),R("update_account",y(l),o?.id)},ae=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),pe=E?.zeniInstitutionId.toLowerCase()==="chase",Ge=a.findIndex(x=>x.id===o?.id),Je={element:t.jsx(Ne,{width:T.iconWidthHeight.valuePx(c)}),color:O};return t.jsxs(At,{windowSize:c,children:[H===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:q,action:{onBackClick:()=>v(!1)}}),document.body):null,t.jsxs(jt,{windowSize:c,wrapperWidth:N[0].width,children:[t.jsx(Tt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx($t,{productType:l,windowSize:c})}),t.jsx(zt,{children:Oe.productNameByType[l]})]}),t.jsx(_t,{windowSize:c,wrapperWidth:N[1].width,children:t.jsxs(Ft,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Ot,{isDisabled:j,children:wt(Je,c,C.mode==="dark",o,Ge,!1)}):null,t.jsxs(Bt,{windowSize:c,className:"fundingAccount",children:[t.jsx(qe,{style:{display:c==="small"?"block":"inherit",width:"-webkit-fill-available",color:C.colors.hero},customStyleConfig:{menu:()=>({width:c==="small"?"auto":510})},controlProperty:{controlHeight:b[4],fontWeight:Ee.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Ee.medium},name:$e(l,"primaryAccountSection"),placeholder:Fe.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,K)=>st(a,x,K),valueToSubLabels:(x,K)=>lt(a,x,K,!1),defaultValue:{selectedOption:o?.id,allOptions:a.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:g?"disabled":void 0,showLoadingIcon:g,onClickCreateOption:()=>{f.trackConnectBank(l,"Settings"),A("link_account"),m.linkToken==null||G.zeniDate(new Date().toISOString()).isAfter(m.expiration)?R("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Z():z(!0)}}),t.jsxs(Pt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(It,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Et,{}):null]}):null,c==="small"&&p!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:p.name,textColor:we(p.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Ie,{productType:l,isUpdateLinkClicked:u==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:k.fetchStatus,updateStatus:k.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:ee,prevUpdateState:Q},onUpdateLinkTokenClick:ne,onChaseInfoClick:W}):null]})]}),c==="small"?t.jsxs(Mt,{children:[o?.accountBalance?.available?t.jsx(Be,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:be}),o?.accountBalance?.lastRefreshTime?t.jsx(Re,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Vt,{windowSize:c,isDisabled:j,wrapperWidth:N[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Lt,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Wt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Fe.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.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(Ut,{windowSize:c,wrapperWidth:N[3].width,children:p!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:p.name,textColor:we(p.code)}):t.jsx(ke,{children:be})}):null,c!=="small"?t.jsxs(Rt,{windowSize:c,wrapperWidth:N[4].width,children:[o?.accountBalance?.available?t.jsx(Be,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(ke,{children:be}),o?.accountBalance?.lastRefreshTime?t.jsx(Re,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},At=n.div`
1
+ import{u as ve,e as je,a as Ke,ca as Ye,j as t,aX as Qe,R as re,o as i,m as se,bS as Ze,F as et,bp as tt,C as I,n as nt,x as D,ao as it,v as De,X as ot,b as ze,cn as at,a2 as J,a8 as fe,f2 as Te,l as G,cv as ct,aS as Ne,fa as qe,fb as lt,fc as st,bv as Ee,q as k,f3 as ge,f4 as we,a0 as Se,bK as xe,W as rt,b6 as dt,dL as He,f as ie,w as B,f9 as ut,fn as pt,fo as ht,aC as mt,fp as ft}from"./index-0QGih61V.js";import{b as r,n}from"./vendor-rkTZJa59.js";import{r as _e}from"./mui-C42whWwM.js";import{M as Pe}from"./ChaseOverlay-BsUhQ0Hl-DFaxFI1c.js";import{a as gt}from"./SetUpAccountSection-Daj9lEze-CHRC6PUj.js";import{z as wt,B as Ie}from"./SpendMgmtSetupAccountSection-BUSFBsmA-Wg-n8Wde.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./SetUpDefaultSection-CKg9xvyM-V31Vr9Jm.js";import"./ChargeCardUtils-D8nxmniw-0B3L7zeg.js";import"./CreditCardPaymentPlgSection-C5Qn4uPW--juf3I9b.js";const{settings:{bankConnectionHeader:de}}=re.getLocalizedStrings().common,St={value:de.productType,width:new I(100,19)},xt={value:de.primaryAccount,width:new I(100,36)},yt={value:de.linkAccount,width:new I(100,22)},vt={value:de.status,width:new I(12,12)},kt={value:de.balance,width:new I(12,13)},N=[St,xt,yt,vt,kt],{common:{settings:Oe,strings:{hyphen:ke}},commonSetUp:{setUp:Fe}}=re.getLocalizedStrings(),T={containerPadding:new I(k[3],k[4]),containerRightPadding:new I(k[3],k[8]),iconContainerMaxWidthHeight:new I(k[6],k[7]),iconWidthHeight:new I(20,k[4]),iconPadding:new I(k[1],12),productTypeContainerMarginBottom:new I(k[3],k[0]),linkAccountContainerMarginTop:new I(k[3],k[0]),productTypeIconSize:new I(k[3],k[4])},bt="bankConnectionsSettingsPage",$t=({productType:e,windowSize:h})=>{switch(e){case"bill_pay":return t.jsx(Dt,{windowSize:h,children:t.jsx(mt,{})});case"reimbursement":return t.jsx(Nt,{windowSize:h,children:t.jsx(ht,{})});case"zeni_accounts":return t.jsx(qt,{windowSize:h,children:t.jsx(Ne,{})});case"zeni_treasury":return t.jsx(Gt,{windowSize:h,children:t.jsx(pt,{})});case"charge_cards":default:return t.jsx(Ht,{windowSize:h,children:t.jsx(ut,{})})}},Ct=({allBankAccounts:e,setupView:h,connectedAccountProvider:q,onFetchLinkTokenClick:R,onUpdatePaymentAccountStatus:_,onEstablishConnectionClick:P,onEstablishConnectionSuccess:M})=>{const C=ve(),c=je(),f=ze().analytics,{trigger:w,formState:{errors:U}}=at(),{plaidConnectionDetails:V,allFundingAccounts:a,primaryFundingAccount:o,productType:l}=h,m=V.link_account,b=V.update_account,[u,A]=r.useState(void 0),[H,v]=r.useState(!1),W=()=>{v(!0)},d=u==="update_account"?b:m,[S,L]=r.useState(d.linkToken??null),[$,z]=r.useState(!1),g=m.fetchStatus.fetchState==="In-Progress"||m.updateStatus.fetchState==="In-Progress";let p,E,s,j=!1;o!=null&&(o.accType==="depositAccount"?p={code:"verified",name:"Verified"}:(p=o.providerVerificationStatus,E=o?.institutionDetails,s=p?.code,j=o?.isLoginRequired??!1));const Y=J(m.updateStatus.fetchState),Q=J(b.updateStatus.fetchState),ee=J(b.fetchStatus.fetchState),O=C.mode==="light"?new fe(C.colors.brandColorJadeLight):new fe(C.colors.brandColorJadeDark),X=r.useCallback((x,K)=>{f.trackConnectBankSuccess(l,"Settings");const Le=K.accounts.find(Xe=>Xe.id===o?.providerAccountId)??K.accounts[0];o?.id!=null&&u==="update_account"&&Le?.verification_status!=null&&!j?_(Le?.verification_status,o.id,"update_account",y(l),l):P(x,y(l),l),A(void 0),z(!1)},[f,l,o?.id,o?.providerAccountId,u,j,_,P]),te=r.useCallback((x,K)=>{x!=null&&(f.trackConnectBankFailure(l,x.error_code+" "+x.error_message,"Settings"),x.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&o?.id!=null&&_("verification_failed",o.id,"update_account",y(l),l),console.log("Plaid Connection Error",x,K)),A(void 0),z(!1)},[f,l,o?.id,_]),{open:Z,ready:ue}=Te({token:S,onSuccess:X,onExit:te});r.useEffect(()=>{(Y==="In-Progress"&&m.updateStatus.fetchState==="Completed"||Q==="In-Progress"&&b.updateStatus.fetchState==="Completed")&&(G.isVerifiedPaymentAccountProviderStatusCode(s??"")||(R("link_account",y(l)),M(y(l),l)))},[m.updateStatus.fetchState,M,R,o?.providerVerificationStatus?.code,o?.id,Y,Q,b.updateStatus.fetchState,s,l]),r.useEffect(()=>{(G.isVerifiedStatusCode(s??"")||s==="verification_failed")&&!$&&u!=null&&d.linkToken===S&&d.fetchStatus.fetchState==="Completed"&&ue&&z(!0)},[ue,S,d.fetchStatus.fetchState,d.linkToken,s,u,$]);const oe=$e(bt,"primaryAccountSection"),F=ct(U,oe);r.useEffect(()=>{d.fetchStatus.fetchState==="Completed"&&d.linkToken!=null&&d.linkToken!==S&&L(d.linkToken)},[d.fetchStatus.fetchState,d.linkToken,S]),r.useEffect(()=>{$&&Z()},[$,Z]),r.useEffect(()=>{!o?.zeniAccountId&&!F&&w(oe)},[o?.id]),r.useEffect(()=>{(s==null||s==="verification_failed"||s==="verification_expired"||G.isVerifiedStatusCode(s))&&(G.zeniDate(new Date().toISOString()).isAfter(m.expiration)||m.linkToken==null)&&R("link_account",y(l))},[]);const ne=()=>{f.trackConnectBankGetBalance(l,"Settings"),A("update_account"),R("update_account",y(l),o?.id)},ae=`${o?.accountSubType?.name!=null?o?.accountSubType?.name.substring(0,1).toUpperCase().concat(o?.accountSubType?.name.substring(1)):""} ${o?.maskedAccountNumber??""}`.trim(),pe=E?.zeniInstitutionId.toLowerCase()==="chase",Ge=a.findIndex(x=>x.id===o?.id),Je={element:t.jsx(Ne,{width:T.iconWidthHeight.valuePx(c)}),color:O};return t.jsxs(At,{windowSize:c,children:[H===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:q,action:{onBackClick:()=>v(!1)}}),document.body):null,t.jsxs(jt,{windowSize:c,wrapperWidth:N[0].width,children:[t.jsx(Tt,{windowSize:c,isDarkMode:C.mode==="dark",children:t.jsx($t,{productType:l,windowSize:c})}),t.jsx(zt,{children:Oe.productNameByType[l]})]}),t.jsx(_t,{windowSize:c,wrapperWidth:N[1].width,children:t.jsxs(Ft,{windowSize:c,children:[o!=null&&c!=="small"?t.jsx(Ot,{isDisabled:j,children:wt(Je,c,C.mode==="dark",o,Ge,!1)}):null,t.jsxs(Bt,{windowSize:c,className:"fundingAccount",children:[t.jsx(qe,{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:Ee.medium,highlightOnHover:!1,leftRightMargin:!1,fieldWidth:c==="small"?240:300},customPlaceholder:{color:C.colors.hero,weight:Ee.medium},name:$e(l,"primaryAccountSection"),placeholder:Fe.selectAccountPlaceholder,capitalizeOptions:!0,appendSublabel:!1,showLogoInSingleValue:!1,isClearable:!1,maxMenuHeight:220,valueToLogo:(x,K)=>st(a,x,K),valueToSubLabels:(x,K)=>lt(a,x,K,!1),defaultValue:{selectedOption:o?.id,allOptions:a.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:g?"disabled":void 0,showLoadingIcon:g,onClickCreateOption:()=>{f.trackConnectBank(l,"Settings"),A("link_account"),m.linkToken==null||G.zeniDate(new Date().toISOString()).isAfter(m.expiration)?R("link_account",y(l)):S!==m.linkToken?L(m.linkToken):$?Z():z(!0)}}),t.jsxs(Pt,{isDisabled:j,children:[ae?t.jsxs(t.Fragment,{children:[t.jsx(It,{children:ae}),c!=="small"&&(s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe)?t.jsx(Et,{}):null]}):null,c==="small"&&p!=null?t.jsx(ge,{style:{width:"max-content",padding:i.sp0,marginLeft:i.sp2},tagTitle:p.name,textColor:we(p.code)}):null,s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification"||j||pe?t.jsx(Ie,{productType:l,isUpdateLinkClicked:u==="update_account",isLoginRequired:j,isPendingVerification:s!=="verification_failed"&&o?.providerVerificationStatus?.code==="pending_manual_verification",fetchAndUpdateStatues:{fetchStatus:b.fetchStatus,updateStatus:b.updateStatus,linkFetchStatus:m.fetchStatus,linkUpdateStatus:m.updateStatus,prevFetchState:ee,prevUpdateState:Q},onUpdateLinkTokenClick:ne,onChaseInfoClick:W}):null]})]}),c==="small"?t.jsxs(Mt,{children:[o?.accountBalance?.available?t.jsx(Be,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(be,{children:ke}),o?.accountBalance?.lastRefreshTime?t.jsx(Re,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})}),t.jsxs(Vt,{windowSize:c,isDisabled:j,wrapperWidth:N[2].width,onClick:x=>x.stopPropagation(),"data-testid":rt("bank-account-section",l),className:"qboLinkAcc",children:[c==="small"?t.jsx(Lt,{children:Oe.bankConnectionHeader.linkAccount}):null,t.jsx(Wt,{isDisabled:j?"disabled":void 0,name:$e(l,"bankAccountSection"),placeholder:Fe.zeniCashAccountPlaceholder,defaultValue:{selectedOption:o?.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(Ut,{windowSize:c,wrapperWidth:N[3].width,children:p!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:p.name,textColor:we(p.code)}):t.jsx(be,{children:ke})}):null,c!=="small"?t.jsxs(Rt,{windowSize:c,wrapperWidth:N[4].width,children:[o?.accountBalance?.available?t.jsx(Be,{className:"balanceLabel",children:Se("0,0[.]00",o?.accountBalance?.available)}):t.jsx(be,{children:ke}),o?.accountBalance?.lastRefreshTime?t.jsx(Re,{className:"balanceLabel",children:xe(o?.accountBalance?.lastRefreshTime)}):o?.balanceFetchStatus.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null]}):null]})},At=n.div`
2
2
  display: flex;
3
3
  flex-direction: ${e=>e.windowSize==="small"?"column":"row"};
4
4
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
5
5
  padding: ${e=>T.containerPadding.valuePx(e.windowSize)};
6
6
  padding-right: ${e=>T.containerRightPadding.valuePx(e.windowSize)};
7
- `,ke=n.div`
7
+ `,be=n.div`
8
8
  color: ${e=>e.theme.colors.hero};
9
9
  display: flex;
10
10
  align-items: flex-end;
@@ -146,7 +146,7 @@ import{u as ve,e as je,a as Ke,ca as Ye,j as t,aX as Qe,R as re,o as i,m as se,b
146
146
  width: 100%;
147
147
  height: 100%;
148
148
  }
149
- `,$e=(e,h)=>`${e}.${h}`,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:Ce,strings:{empty:Jt,hyphen:Xt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new I(b[6],b[7])},Kt=()=>null,Yt=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:q,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:M,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=ve(),w=je(),U=ze().analytics,[V,a]=r.useState(!1),[o,l]=r.useState(!1),m=()=>{l(!0)},k=e.plaidConnectionDetails.link_account,u=e.plaidConnectionDetails.update_account,[A,H]=r.useState(void 0),v=A==="update_account"?u:k,[W,d]=r.useState(v.linkToken??null),[S,L]=r.useState(!1),$=J(k.updateStatus.fetchState),z=J(u.updateStatus.fetchState),g=J(u.fetchStatus.fetchState),p=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,s="other_connection",j=p?.code,Y=r.useCallback((F,ne)=>{U.trackConnectBankSuccess(s,"Settings");const ae=ne.accounts.find(pe=>pe.id===e.providerAccountId)??ne.accounts[0];e.paymentAccountId!=null&&A==="update_account"&&ae?.verification_status!=null&&!E?c(ae?.verification_status,e.paymentAccountId,"update_account",y(s),s):M(F,y(s),s),H(void 0),L(!1)},[U,s,e.paymentAccountId,e.providerAccountId,A,E,c,M]),Q=r.useCallback((F,ne)=>{F!=null&&(U.trackConnectBankFailure(s,F.error_code+" "+F.error_message,"Settings"),F.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(s),s),console.log("Plaid Connection Error",F,ne)),H(void 0),L(!1)},[U,s,e.paymentAccountId,c]),{open:ee,ready:O}=Te({token:W,onSuccess:Y,onExit:Q});r.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==W&&d(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,W]),r.useEffect(()=>{S&&ee()},[S,ee]),r.useEffect(()=>{($==="In-Progress"&&k.updateStatus.fetchState==="Completed"||z==="In-Progress"&&u.updateStatus.fetchState==="Completed")&&(G.isVerifiedStatusCode(j??"")||(P("link_account",y(s)),C(y(s),s)))},[k.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,$,z,u.updateStatus.fetchState,j,s]),r.useEffect(()=>{(G.isVerifiedStatusCode(j??"")||j==="verification_failed")&&!S&&A!=null&&v.linkToken===W&&v.fetchStatus.fetchState==="Completed"&&O&&L(!0)},[O,W,v.fetchStatus.fetchState,v.linkToken,j,A,S]);const X=()=>{U.trackConnectBankGetBalance(s,"Settings"),H("update_account"),P("update_account",y(s),e.paymentAccountId)},te=f.mode==="light"?new fe(f.colors.brandColorJadeLight):new fe(f.colors.brandColorJadeDark),Z={element:t.jsx(dn,{windowSize:w,children:t.jsx(ft,{})}),color:te},ue=h.find(F=>F.accountId===e.zeniAccountId),oe=()=>{a(F=>!F)};return t.jsxs(Qt,{onMouseEnter:oe,onMouseLeave:oe,children:[o===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:R,action:{onBackClick:()=>l(!1)}}),document.body):null,t.jsxs(Zt,{windowSize:w,wrapperWidth:N[0].width,children:[t.jsx(en,{children:Ce.otherAccount.title}),t.jsx(tn,{children:Ce.otherAccount.subTitle})]}),t.jsxs(nn,{windowSize:w,wrapperWidth:N[1].width,children:[gt(Z,w,f.mode==="dark",e,!0),t.jsxs(un,{children:[t.jsx(pn,{children:t.jsx(gn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(hn,{windowSize:w,children:[t.jsxs(wn,{children:[t.jsx(mn,{children:e.accountSubType?.name}),t.jsx(fn,{children:e.maskedAccountNumber}),E&&t.jsx(Sn,{})]}),E&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:A==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:u.fetchStatus,updateStatus:u.updateStatus,linkFetchStatus:k.fetchStatus,linkUpdateStatus:k.updateStatus,prevFetchState:g,prevUpdateState:z},onUpdateLinkTokenClick:X,onChaseInfoClick:m})]})]})]}),t.jsx(on,{windowSize:w,wrapperWidth:N[2].width,children:ue?.accountName??Jt}),t.jsx(an,{windowSize:w,wrapperWidth:N[3].width,children:p!=null?t.jsx(ge,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:p.name,textColor:we(p.code)}):Xt}),t.jsxs(cn,{windowSize:w,wrapperWidth:N[4].width,children:[t.jsx(ln,{className:"balanceLabel",isRemoveHovered:V,children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(sn,{className:"balanceLabel",isRemoveHovered:V,children:xe(e.balances?.lastRefreshTime)}):q?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,V&&t.jsx(rn,{children:t.jsx(He,{moreIconType:"plain",options:[{label:Ce.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:f.colors.grey5,width:"162px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ie.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:ie.important,":hover":{color:ie.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:F=>{F==="remove"&&_(e.paymentAccountId)},valueToIcon:Kt})})]})]})},Qt=n.div`
149
+ `,$e=(e,h)=>`${e}.${h}`,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:Ce,strings:{empty:Jt,hyphen:Xt}}}=re.getLocalizedStrings(),he={paymentAccountIconSize:new I(k[6],k[7])},Kt=()=>null,Yt=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:q,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:M,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=ve(),w=je(),U=ze().analytics,[V,a]=r.useState(!1),[o,l]=r.useState(!1),m=()=>{l(!0)},b=e.plaidConnectionDetails.link_account,u=e.plaidConnectionDetails.update_account,[A,H]=r.useState(void 0),v=A==="update_account"?u:b,[W,d]=r.useState(v.linkToken??null),[S,L]=r.useState(!1),$=J(b.updateStatus.fetchState),z=J(u.updateStatus.fetchState),g=J(u.fetchStatus.fetchState),p=e?.providerVerificationStatus,E=e?.isLoginRequired??!1,s="other_connection",j=p?.code,Y=r.useCallback((F,ne)=>{U.trackConnectBankSuccess(s,"Settings");const ae=ne.accounts.find(pe=>pe.id===e.providerAccountId)??ne.accounts[0];e.paymentAccountId!=null&&A==="update_account"&&ae?.verification_status!=null&&!E?c(ae?.verification_status,e.paymentAccountId,"update_account",y(s),s):M(F,y(s),s),H(void 0),L(!1)},[U,s,e.paymentAccountId,e.providerAccountId,A,E,c,M]),Q=r.useCallback((F,ne)=>{F!=null&&(U.trackConnectBankFailure(s,F.error_code+" "+F.error_message,"Settings"),F.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(s),s),console.log("Plaid Connection Error",F,ne)),H(void 0),L(!1)},[U,s,e.paymentAccountId,c]),{open:ee,ready:O}=Te({token:W,onSuccess:Y,onExit:Q});r.useEffect(()=>{v.fetchStatus.fetchState==="Completed"&&v.linkToken!=null&&v.linkToken!==W&&d(v.linkToken)},[v.fetchStatus.fetchState,v.linkToken,W]),r.useEffect(()=>{S&&ee()},[S,ee]),r.useEffect(()=>{($==="In-Progress"&&b.updateStatus.fetchState==="Completed"||z==="In-Progress"&&u.updateStatus.fetchState==="Completed")&&(G.isVerifiedStatusCode(j??"")||(P("link_account",y(s)),C(y(s),s)))},[b.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,$,z,u.updateStatus.fetchState,j,s]),r.useEffect(()=>{(G.isVerifiedStatusCode(j??"")||j==="verification_failed")&&!S&&A!=null&&v.linkToken===W&&v.fetchStatus.fetchState==="Completed"&&O&&L(!0)},[O,W,v.fetchStatus.fetchState,v.linkToken,j,A,S]);const X=()=>{U.trackConnectBankGetBalance(s,"Settings"),H("update_account"),P("update_account",y(s),e.paymentAccountId)},te=f.mode==="light"?new fe(f.colors.brandColorJadeLight):new fe(f.colors.brandColorJadeDark),Z={element:t.jsx(dn,{windowSize:w,children:t.jsx(ft,{})}),color:te},ue=h.find(F=>F.accountId===e.zeniAccountId),oe=()=>{a(F=>!F)};return t.jsxs(Qt,{onMouseEnter:oe,onMouseLeave:oe,children:[o===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:R,action:{onBackClick:()=>l(!1)}}),document.body):null,t.jsxs(Zt,{windowSize:w,wrapperWidth:N[0].width,children:[t.jsx(en,{children:Ce.otherAccount.title}),t.jsx(tn,{children:Ce.otherAccount.subTitle})]}),t.jsxs(nn,{windowSize:w,wrapperWidth:N[1].width,children:[gt(Z,w,f.mode==="dark",e,!0),t.jsxs(un,{children:[t.jsx(pn,{children:t.jsx(gn,{windowSize:w,children:e.institutionDetails.institutionName})}),t.jsxs(hn,{windowSize:w,children:[t.jsxs(wn,{children:[t.jsx(mn,{children:e.accountSubType?.name}),t.jsx(fn,{children:e.maskedAccountNumber}),E&&t.jsx(Sn,{})]}),E&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:A==="update_account",isLoginRequired:E,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:u.fetchStatus,updateStatus:u.updateStatus,linkFetchStatus:b.fetchStatus,linkUpdateStatus:b.updateStatus,prevFetchState:g,prevUpdateState:z},onUpdateLinkTokenClick:X,onChaseInfoClick:m})]})]})]}),t.jsx(on,{windowSize:w,wrapperWidth:N[2].width,children:ue?.accountName??Jt}),t.jsx(an,{windowSize:w,wrapperWidth:N[3].width,children:p!=null?t.jsx(ge,{style:{width:"max-content",padding:0,marginTop:i.sp2},tagTitle:p.name,textColor:we(p.code)}):Xt}),t.jsxs(cn,{windowSize:w,wrapperWidth:N[4].width,children:[t.jsx(ln,{className:"balanceLabel",isRemoveHovered:V,children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(sn,{className:"balanceLabel",isRemoveHovered:V,children:xe(e.balances?.lastRefreshTime)}):q?.fetchState==="In-Progress"?t.jsx(se,{size:"Small",start:!0}):null,V&&t.jsx(rn,{children:t.jsx(He,{moreIconType:"plain",options:[{label:Ce.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,borderRadius:i.sp1,marginTop:i.sp2,background:f.colors.grey5,width:"162px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ie.boxShadowElevation}`}),option:()=>({height:i.sp6,paddingLeft:i.sp3,paddingRight:i.sp3,display:"flex",alignItems:"center",color:ie.important,":hover":{color:ie.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:F=>{F==="remove"&&_(e.paymentAccountId)},valueToIcon:Kt})})]})]})},Qt=n.div`
150
150
  display: flex;
151
151
  padding: ${i.sp4};
152
152
  padding-right: ${i.sp8};
@@ -230,11 +230,11 @@ import{u as ve,e as je,a as Ke,ca as Ye,j as t,aX as Qe,R as re,o as i,m as se,b
230
230
  height: ${i.sp1};
231
231
  cursor: inherit;
232
232
  background-color: ${e=>e.theme.colors.grey1};
233
- `,{common:{settings:me,strings:{empty:xn}}}=re.getLocalizedStrings(),yn=()=>null,vn=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:q,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:M,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=ve(),w=ze().analytics,[U,V]=r.useState(!1),a=()=>{V(!0)},o=e.plaidConnectionDetails.link_account,l=e.plaidConnectionDetails.update_account,[m,k]=r.useState(void 0),u=m==="update_account"?l:o,[A,H]=r.useState(u.linkToken??null),[v,W]=r.useState(!1),d=J(o.updateStatus.fetchState),S=J(l.updateStatus.fetchState),L=J(l.fetchStatus.fetchState),$=e?.providerVerificationStatus,z=e?.isLoginRequired??!1,g="other_connection",p=$?.code,E=r.useCallback((O,X)=>{w.trackConnectBankSuccess(g,"Settings");const te=X.accounts.find(Z=>Z.id===e.providerAccountId)??X.accounts[0];e.paymentAccountId!=null&&m==="update_account"&&te?.verification_status!=null&&!z?c(te?.verification_status,e.paymentAccountId,"update_account",y(g),g):M(O,y(g),g),k(void 0),W(!1)},[w,g,e.paymentAccountId,e.providerAccountId,m,z,c,M]),s=r.useCallback((O,X)=>{O!=null&&(w.trackConnectBankFailure(g,O.error_code+" "+O.error_message,"Settings"),O.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(g),g),console.log("Plaid Connection Error",O,X)),k(void 0),W(!1)},[w,g,e.paymentAccountId,c]),{open:j,ready:Y}=Te({token:A,onSuccess:E,onExit:s});r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==A&&H(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,A]),r.useEffect(()=>{v&&j()},[v,j]),r.useEffect(()=>{(d==="In-Progress"&&o.updateStatus.fetchState==="Completed"||S==="In-Progress"&&l.updateStatus.fetchState==="Completed")&&(G.isVerifiedStatusCode(p??"")||(P("link_account",y(g)),C(y(g),g)))},[o.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,d,S,l.updateStatus.fetchState,p,g]),r.useEffect(()=>{(G.isVerifiedStatusCode(p??"")||p==="verification_failed")&&!v&&m!=null&&u.linkToken===A&&u.fetchStatus.fetchState==="Completed"&&Y&&W(!0)},[Y,A,u.fetchStatus.fetchState,u.linkToken,p,m,v]);const Q=()=>{w.trackConnectBankGetBalance(g,"Settings"),k("update_account"),P("update_account",y(g),e.paymentAccountId)},ee=h.find(O=>O.accountId===e.zeniAccountId);return t.jsxs(bn,{children:[U===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:R,action:{onBackClick:()=>V(!1)}}),document.body):null,t.jsxs(kn,{children:[t.jsx($n,{children:`${me.otherAccount.title} ${me.otherAccount.subTitleSmall}`}),t.jsx(He,{moreIconType:"plain",options:[{label:me.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ie.boxShadowElevation}`}),option:()=>({color:f.colors.important,":hover":{color:f.colors.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:O=>{O==="remove"&&_(e.paymentAccountId)},valueToIcon:yn})]}),t.jsxs(Cn,{children:[t.jsxs(Ln,{children:[t.jsx(En,{children:t.jsx(Bn,{children:e.institutionDetails.institutionName})}),t.jsxs(Rn,{children:[t.jsx(On,{children:e.accountSubType?.name}),t.jsx(Fn,{children:e.maskedAccountNumber}),t.jsx(Tn,{children:$!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:$.name,textColor:we($.code)}):null}),z&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:m==="update_account",isLoginRequired:z,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:l.fetchStatus,updateStatus:l.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:L,prevUpdateState:S},onUpdateLinkTokenClick:Q,onChaseInfoClick:a})]})]}),t.jsxs(_n,{children:[t.jsx(Pn,{className:"balanceLabel",children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(In,{className:"balanceLabel",children:xe(e.balances?.lastRefreshTime)}):q?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(An,{children:[t.jsx(jn,{children:me.bankConnectionHeader.linkAccount}),t.jsx(zn,{children:ee?.accountName??xn})]})]})},bn=n.div`
233
+ `,{common:{settings:me,strings:{empty:xn}}}=re.getLocalizedStrings(),yn=()=>null,vn=({paymentAccount:e,bankAccountList:h,balanceFetchStatus:q,connectedAccountProvider:R,onRemoveConnection:_,onFetchLinkTokenClick:P,onEstablishConnectionClick:M,onEstablishConnectionSuccess:C,onUpdatePaymentAccountStatus:c})=>{const f=ve(),w=ze().analytics,[U,V]=r.useState(!1),a=()=>{V(!0)},o=e.plaidConnectionDetails.link_account,l=e.plaidConnectionDetails.update_account,[m,b]=r.useState(void 0),u=m==="update_account"?l:o,[A,H]=r.useState(u.linkToken??null),[v,W]=r.useState(!1),d=J(o.updateStatus.fetchState),S=J(l.updateStatus.fetchState),L=J(l.fetchStatus.fetchState),$=e?.providerVerificationStatus,z=e?.isLoginRequired??!1,g="other_connection",p=$?.code,E=r.useCallback((O,X)=>{w.trackConnectBankSuccess(g,"Settings");const te=X.accounts.find(Z=>Z.id===e.providerAccountId)??X.accounts[0];e.paymentAccountId!=null&&m==="update_account"&&te?.verification_status!=null&&!z?c(te?.verification_status,e.paymentAccountId,"update_account",y(g),g):M(O,y(g),g),b(void 0),W(!1)},[w,g,e.paymentAccountId,e.providerAccountId,m,z,c,M]),s=r.useCallback((O,X)=>{O!=null&&(w.trackConnectBankFailure(g,O.error_code+" "+O.error_message,"Settings"),O.error_code==="TOO_MANY_VERIFICATION_ATTEMPTS"&&e.paymentAccountId!=null&&c("verification_failed",e.paymentAccountId,"update_account",y(g),g),console.log("Plaid Connection Error",O,X)),b(void 0),W(!1)},[w,g,e.paymentAccountId,c]),{open:j,ready:Y}=Te({token:A,onSuccess:E,onExit:s});r.useEffect(()=>{u.fetchStatus.fetchState==="Completed"&&u.linkToken!=null&&u.linkToken!==A&&H(u.linkToken)},[u.fetchStatus.fetchState,u.linkToken,A]),r.useEffect(()=>{v&&j()},[v,j]),r.useEffect(()=>{(d==="In-Progress"&&o.updateStatus.fetchState==="Completed"||S==="In-Progress"&&l.updateStatus.fetchState==="Completed")&&(G.isVerifiedStatusCode(p??"")||(P("link_account",y(g)),C(y(g),g)))},[o.updateStatus.fetchState,C,P,e?.providerVerificationStatus?.code,e?.paymentAccountId,d,S,l.updateStatus.fetchState,p,g]),r.useEffect(()=>{(G.isVerifiedStatusCode(p??"")||p==="verification_failed")&&!v&&m!=null&&u.linkToken===A&&u.fetchStatus.fetchState==="Completed"&&Y&&W(!0)},[Y,A,u.fetchStatus.fetchState,u.linkToken,p,m,v]);const Q=()=>{w.trackConnectBankGetBalance(g,"Settings"),b("update_account"),P("update_account",y(g),e.paymentAccountId)},ee=h.find(O=>O.accountId===e.zeniAccountId);return t.jsxs(kn,{children:[U===!0?_e.createPortal(t.jsx(Pe,{connectedAccountProvider:R,action:{onBackClick:()=>V(!1)}}),document.body):null,t.jsxs(bn,{children:[t.jsx($n,{children:`${me.otherAccount.title} ${me.otherAccount.subTitleSmall}`}),t.jsx(He,{moreIconType:"plain",options:[{label:me.otherAccount.remove,value:"remove"}],customStyleConfig:{valueContainer:()=>({height:i.sp3,".more-icon":{width:i.sp3,height:i.sp3,color:f.colors.primary}}),container:()=>({marginLeft:i.sp0,position:"relative"}),control:()=>({background:"transparent"}),menu:()=>({position:"absolute",right:0,width:"158px",border:`1px solid ${f.colors.grey3}`,boxShadow:`${i.sp0} 1px 2px ${i.sp0} ${ie.boxShadowElevation}`}),option:()=>({color:f.colors.important,":hover":{color:f.colors.important,backgroundColor:f.colors.background}})},menuPlacement:"bottom",onOptionSelection:O=>{O==="remove"&&_(e.paymentAccountId)},valueToIcon:yn})]}),t.jsxs(Cn,{children:[t.jsxs(Ln,{children:[t.jsx(En,{children:t.jsx(Bn,{children:e.institutionDetails.institutionName})}),t.jsxs(Rn,{children:[t.jsx(On,{children:e.accountSubType?.name}),t.jsx(Fn,{children:e.maskedAccountNumber}),t.jsx(Tn,{children:$!=null?t.jsx(ge,{style:{width:"max-content",padding:0},tagTitle:$.name,textColor:we($.code)}):null}),z&&t.jsx(Ie,{productType:"other_connection",isUpdateLinkClicked:m==="update_account",isLoginRequired:z,isPendingVerification:!1,fetchAndUpdateStatues:{fetchStatus:l.fetchStatus,updateStatus:l.updateStatus,linkFetchStatus:o.fetchStatus,linkUpdateStatus:o.updateStatus,prevFetchState:L,prevUpdateState:S},onUpdateLinkTokenClick:Q,onChaseInfoClick:a})]})]}),t.jsxs(_n,{children:[t.jsx(Pn,{className:"balanceLabel",children:Se("0,0.[00]",e.balances?.available)}),e.balances?.lastRefreshTime?t.jsx(In,{className:"balanceLabel",children:xe(e.balances?.lastRefreshTime)}):q?.fetchState==="In-Progress"?t.jsx(se,{size:"ExtraSmall",start:!0}):null]})]}),t.jsxs(An,{children:[t.jsx(jn,{children:me.bankConnectionHeader.linkAccount}),t.jsx(zn,{children:ee?.accountName??xn})]})]})},kn=n.div`
234
234
  display: flex;
235
235
  flex-direction: column;
236
236
  padding: ${i.sp3};
237
- `,kn=n.div`
237
+ `,bn=n.div`
238
238
  display: flex;
239
239
  align-items: center;
240
240
  flex-direction: row;
@@ -291,7 +291,7 @@ import{u as ve,e as je,a as Ke,ca as Ye,j as t,aX as Qe,R as re,o as i,m as se,b
291
291
  align-items: center;
292
292
  flex-wrap: wrap;
293
293
  gap: ${i.sp2};
294
- `,{settings:{bankConnectionListHeader:Ae,title:Mn,infoText:Un}}=re.getLocalizedStrings().common,ye={pageContentPadding:new I(b[4],b[8]),subtitleSectionWidth:new I(343,580,1200),subTitleBottomMargin:new I(b[0],b[5])},Vn={qboLinkAcc:new ot("smallRegular","standardRegular")},Wn="bankConnectionsSettingsPage",ce="bankAccountSection",le="primaryAccountSection",Dn="bill_pay",Nn="reimbursement",qn="zeni_accounts",Hn="charge_cards",Gn="zeni_treasury",Me=e=>t.jsx(Kn,{children:N.map(h=>t.jsx(Yn,{actualDataValue:h.value,wrapperWidth:h.width,windowSize:e,children:t.jsx(Qn,{children:h.value})},h.value))}),ki=({bankSetupView:e,connectedAccountProvider:h,onBackClick:q,onUpdateAccountClick:R,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:M,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:f,onUpdatePrimaryFundingAccount:w,onRemoveConnection:U})=>{const V=ve(),a=je(),{allFundingAccounts:o,primaryConnection:l}=e,m=Ke({mode:"all",reValidateMode:"onChange",defaultValues:We(e),values:We(e)}),k=m.handleSubmit(d=>{}),u=async(d,S)=>{const L=d.split("."),$=L[0],z=L[1],g=l.find(p=>p.productType===$);if($!=null&&z!=null){const p=S[$][z];if(z==="primaryAccountSection"){const E=o.find(s=>s.id===p.selectedOption)?.accType;p.selectedOption!=null&&E!=null&&w(p.selectedOption,y($),E)}else if(z==="bankAccountSection"&&g!=null&&g.primaryFundingAccount!=null&&p.selectedOption!=null){const E=g.primaryFundingAccount?.id,s=g.primaryFundingAccount?.accType;E!=null&&s!=null&&R(p.selectedOption,E,$,y($),s)}}};r.useEffect(()=>{const d=m.watch((S,{name:L})=>{L!=null&&S!=null&&Ye(()=>u(L,S))});return()=>{d.unsubscribe()}});const A=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",H=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,v=a==="small"?vn:Yt,W=()=>A?t.jsx(ti,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):H?t.jsx(Ze,{message:"No bank connections added."}):t.jsxs(Jn,{windowSize:a,children:[t.jsx(Ve,{children:Ae.primary}),a!=="small"?Me(a):null,t.jsx(et,{...m,children:t.jsx("form",{id:li(Wn),onSubmit:k,children:t.jsx(ni,{windowSize:a,children:e.primaryConnection.map(d=>d!=null?t.jsx(Ue,{windowSize:a,children:t.jsx(Ct,{allBankAccounts:e.allBankAccounts,setupView:d,connectedAccountProvider:h,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:M,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},d.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(Zn,{children:[t.jsx(Ve,{children:Ae.other}),t.jsx(ai,{children:t.jsx(tt,{display:"flex",placement:"right",maxWidth:"340px",title:Ae.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(ci,{})})})]}):null,a!=="small"&&e.otherPaymentAccounts.length>0?Me(a):null,e.otherPaymentAccounts.map(d=>{const S=o.find(L=>L.id===d.paymentAccountId)?.balanceFetchStatus;return t.jsx(Ue,{windowSize:a,children:t.jsx(v,{paymentAccount:d,bankAccountList:e.allBankAccounts,balanceFetchStatus:S,connectedAccountProvider:h,onRemoveConnection:U,onFetchLinkTokenClick:_,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:P,onEstablishConnectionSuccess:c})},d.paymentAccountId)})]});return t.jsxs(Xn,{children:[t.jsx(Qe,{source:"BankConnectionsSettingsPage",title:Mn.bankConnections,backgroundColor:V.colors.grey4,style:{zIndex:3},onBackClick:q,showBackButton:!1,showMenuIcon:a==="medium-compact"||a==="small",onClickMenuIcon:f}),t.jsxs(ei,{windowSize:a,children:[t.jsx(ii,{windowSize:a,children:t.jsx(oi,{windowSize:a,children:Un.bankConnections})}),W()]})]})},Jn=n.div`
294
+ `,{settings:{bankConnectionListHeader:Ae,title:Mn,infoText:Un}}=re.getLocalizedStrings().common,ye={pageContentPadding:new I(k[4],k[8]),subtitleSectionWidth:new I(343,580,1200),subTitleBottomMargin:new I(k[0],k[5])},Vn={qboLinkAcc:new ot("smallRegular","standardRegular")},Wn="bankConnectionsSettingsPage",ce="bankAccountSection",le="primaryAccountSection",Dn="bill_pay",Nn="reimbursement",qn="zeni_accounts",Hn="charge_cards",Gn="zeni_treasury",Me=e=>t.jsx(Kn,{children:N.map(h=>t.jsx(Yn,{actualDataValue:h.value,wrapperWidth:h.width,windowSize:e,children:t.jsx(Qn,{children:h.value})},h.value))}),bi=({bankSetupView:e,connectedAccountProvider:h,onBackClick:q,onUpdateAccountClick:R,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:M,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c,onClickMenuIcon:f,onUpdatePrimaryFundingAccount:w,onRemoveConnection:U})=>{const V=ve(),a=je(),{allFundingAccounts:o,primaryConnection:l}=e,m=Ke({mode:"all",reValidateMode:"onChange",defaultValues:We(e),values:We(e)}),b=m.handleSubmit(d=>{}),u=async(d,S)=>{const L=d.split("."),$=L[0],z=L[1],g=l.find(p=>p.productType===$);if($!=null&&z!=null){const p=S[$][z];if(z==="primaryAccountSection"){const E=o.find(s=>s.id===p.selectedOption)?.accType;p.selectedOption!=null&&E!=null&&w(p.selectedOption,y($),E)}else if(z==="bankAccountSection"&&g!=null&&g.primaryFundingAccount!=null&&p.selectedOption!=null){const E=g.primaryFundingAccount?.id,s=g.primaryFundingAccount?.accType;E!=null&&s!=null&&R(p.selectedOption,E,$,y($),s)}}};r.useEffect(()=>{const d=m.watch((S,{name:L})=>{L!=null&&S!=null&&Ye(()=>u(L,S))});return()=>{d.unsubscribe()}});const A=e.fetchState==="In-Progress"||e.fetchState==="Not-Started",H=e.fetchState==="Completed"&&e.allFundingAccounts.length===0,v=a==="small"?vn:Yt,W=()=>A?t.jsx(ti,{children:t.jsx(se,{size:"ExtraLarge",start:!0})}):H?t.jsx(Ze,{message:"No bank connections added."}):t.jsxs(Jn,{windowSize:a,children:[t.jsx(Ve,{children:Ae.primary}),a!=="small"?Me(a):null,t.jsx(et,{...m,children:t.jsx("form",{id:li(Wn),onSubmit:b,children:t.jsx(ni,{windowSize:a,children:e.primaryConnection.map(d=>d!=null?t.jsx(Ue,{windowSize:a,children:t.jsx(Ct,{allBankAccounts:e.allBankAccounts,setupView:d,connectedAccountProvider:h,onFetchLinkTokenClick:_,onUpdatePaymentAccountStatus:P,onUpdatePaymentAccountLoginStatus:M,onEstablishConnectionClick:C,onEstablishConnectionSuccess:c})},d.productType):null)})})}),e.otherPaymentAccounts.length>0?t.jsxs(Zn,{children:[t.jsx(Ve,{children:Ae.other}),t.jsx(ai,{children:t.jsx(tt,{display:"flex",placement:"right",maxWidth:"340px",title:Ae.otherToolTip,style:{padding:`12px ${i.sp3}`},children:t.jsx(ci,{})})})]}):null,a!=="small"&&e.otherPaymentAccounts.length>0?Me(a):null,e.otherPaymentAccounts.map(d=>{const S=o.find(L=>L.id===d.paymentAccountId)?.balanceFetchStatus;return t.jsx(Ue,{windowSize:a,children:t.jsx(v,{paymentAccount:d,bankAccountList:e.allBankAccounts,balanceFetchStatus:S,connectedAccountProvider:h,onRemoveConnection:U,onFetchLinkTokenClick:_,onEstablishConnectionClick:C,onUpdatePaymentAccountStatus:P,onEstablishConnectionSuccess:c})},d.paymentAccountId)})]});return t.jsxs(Xn,{children:[t.jsx(Qe,{source:"BankConnectionsSettingsPage",title:Mn.bankConnections,backgroundColor:V.colors.grey4,style:{zIndex:3},onBackClick:q,showBackButton:!1,showMenuIcon:a==="medium-compact"||a==="small",onClickMenuIcon:f}),t.jsxs(ei,{windowSize:a,children:[t.jsx(ii,{windowSize:a,children:t.jsx(oi,{windowSize:a,children:Un.bankConnections})}),W()]})]})},Jn=n.div`
295
295
  display: flex;
296
296
  flex-direction: column;
297
297
  width: 100%;
@@ -422,4 +422,4 @@ import{u as ve,e as je,a as Ke,ca as Ye,j as t,aX as Qe,R as re,o as i,m as se,b
422
422
  width: ${i.sp3};
423
423
  height: ${i.sp3};
424
424
  color: ${e=>e.theme.colors.hero};
425
- `,We=e=>{const{primaryConnection:h,allBankAccounts:q,allFundingAccounts:R}=e,_=q.map(a=>({label:a.accountName,value:a.accountId})),P=R.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"})),M=h.find(a=>a.productType==="bill_pay"),C=h.find(a=>a.productType==="reimbursement"),c=h.find(a=>a.productType==="zeni_accounts"),f=h.find(a=>a.productType==="charge_cards"),w=h.find(a=>a.productType==="zeni_treasury"),U=c?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))??[],V=w?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="paymentAccount"}))??[];return{[Dn]:{[ce]:{selectedOption:M?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:M?.primaryFundingAccount?.id,allOptions:P}},[Nn]:{[ce]:{selectedOption:C?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:C?.primaryFundingAccount?.id,allOptions:P}},[qn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:U}},[Gn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:V}},[Hn]:{[ce]:{selectedOption:f?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:f?.primaryFundingAccount?.id,allOptions:P}}}},li=e=>`${e}_form`;export{ki as default,li as formUniqueName};
425
+ `,We=e=>{const{primaryConnection:h,allBankAccounts:q,allFundingAccounts:R}=e,_=q.map(a=>({label:a.accountName,value:a.accountId})),P=R.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"})),M=h.find(a=>a.productType==="bill_pay"),C=h.find(a=>a.productType==="reimbursement"),c=h.find(a=>a.productType==="zeni_accounts"),f=h.find(a=>a.productType==="charge_cards"),w=h.find(a=>a.productType==="zeni_treasury"),U=c?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="depositAccount"}))??[],V=w?.allFundingAccounts.map(a=>({label:a.label,value:a.id,isRecommended:a.accType==="paymentAccount"}))??[];return{[Dn]:{[ce]:{selectedOption:M?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:M?.primaryFundingAccount?.id,allOptions:P}},[Nn]:{[ce]:{selectedOption:C?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:C?.primaryFundingAccount?.id,allOptions:P}},[qn]:{[ce]:{selectedOption:c?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:c?.primaryFundingAccount?.id,allOptions:U}},[Gn]:{[ce]:{selectedOption:w?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:w?.primaryFundingAccount?.id,allOptions:V}},[Hn]:{[ce]:{selectedOption:f?.primaryFundingAccount?.zeniAccountId,allOptions:_},[le]:{selectedOption:f?.primaryFundingAccount?.id,allOptions:P}}}},li=e=>`${e}_form`;export{bi as default,li as formUniqueName};
@@ -1,5 +1,5 @@
1
- import{e as On,Y as Fn,u as En,fP as Ln,fQ as Wn,fR as _n,fS as Zn,bJ as Kn,a2 as Un,R as Yn,C as u,j as t,l as L,cM as it,cN as Vn,o as a,cO as Gn,cP as Xn,W as b,cQ as Hn,a0 as Ae,cR as Qn,aX as lt,aK as ot,dt as rt,bV as st,bX as dt,bY as ct,fT as qn,fU as Jn,fV as ea,fW as ta,cW as $,cX as I,cY as A,fX as k,cV as na,v as pt,f as ie,cZ as Rt,c_ as aa,c$ as ia,d0 as la,fY as oa,fZ as ra,a4 as sa,p as mt,bp as Te,f_ as da,f$ as O,q as r,h as ca,by as pa,g0 as ma,a3 as ua,g1 as ya,g2 as ut,d4 as yt,X as ha,cB as ba,bO as xa,am as ga,ao as fa,T as wa,br as zt,g3 as Ta,w as Mt,ac as va,ak as Da,aP as ja,eM as $a,y as Ia}from"./index-BKug3-eP.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Aa}from"./liveblocks-CP09Cz-7.js";import{o as ka,t as Sa}from"./LowBalancePopup-BhLxnyK0-C1-HIC13.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";const Ca=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Pa={formTitle:new ha("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ba,common:{noText:C,strings:{empty:d},currency:ht,via:Ra,more:za,edit:Ma},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Na}}}}=Yn.getLocalizedStrings(),ve=Ba.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Pe,deleteBill:Ut,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Yt,onAttachmentClick:ze,saveBillDetails:Vt,discardOutsideZeniPaymentData:Gt,onBackClick:Me,updateEditRealTimeApproverClicked:Xt,onSaveRealTimeApprovals:Ht,onRetryPaymentClick:Qt,onRefundPaymentClick:qt})=>{const l=On(),o=Fn(),Ne=En(),[Jt,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,H]=p.useState(!1),h=e.transactionDetails?.id,tn=_t?Ln:Wn,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:Q}=p.useContext(tn),[nn,Y]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:V,isLoading:P}=_n(w,"both",!1),f=Se&&h!=null,We=p.useMemo(()=>h==null?[]:V.filter(c=>c.resolved===!1&&!c.id.includes(Zn)),[V,h]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,y)=>{Q(y),Y(!1)},[Q,Y]);p.useEffect(()=>{pe?.threadId!=null&&V.length>0&&!P&&(Q(pe.threadId),Le(null))},[pe,V,P,Q,Le]),Kn({componentName:"bill.details"});const[N,q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ue]=p.useState(!1),[Ye,Ve]=p.useState(!1),Ge=()=>Ke(!1),rn=()=>Ke(!0),Xe=Un(e.zeniAssist?.refundStatus.fetchState),J=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),X())},[e,X,Pe]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),J())},[Xe,e.zeniAssist?.refundStatus,J]);const v=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=v?.code==="paid",D=me?v:ee?.code=="approved"&&G?.code?G:ee,S=Oa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:G?.code!=null&&(ee?.code=="approved"||G.code==="mark_as_paid")?G:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,He=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{q({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},cn=()=>{q({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},pn=()=>{q({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},mn=()=>{z.trackRefundClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),q({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ut?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt())},onCancelClick:()=>{U(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=va("ZeniAssist");return c!=null?t.jsx(Da,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),z.trackZeniAssistClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,y)=>{const B=c;return{lineIndex:y,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}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(pi,{windowSize:l,children:t.jsx(ci,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
- ${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,qe=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Je=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Vn,{paymentTypeLabel:Je,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ta,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,$n=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,be=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(v?.code==="scheduled"||v?.code==="pending_approval")&&$n),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",An=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,kn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=D?.code,Sn=!kn&&(!Qe||D?.code==="processing"&&!M),Cn=!Qe,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Pn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",v?.code??"",D?.code??""),Vt(!0,Ye,c)},tt=()=>{Ue(!0),z.trackBillPayMarkAsPaid(v?.code??"",D?.code??"")},Bn=()=>{Ve(!0),tt()},Rn=()=>{Gt(),Ue(!1),Ye&&Ve(!1)},zn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&v?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Gn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&H(!1),W!=null&&z.trackLowBalanceAccountApprove(v?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},Mn=()=>{Ze("rejected"),W!=null&&z.trackLowBalanceAccountReject(v?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Qa,{windowSize:l,ref:at,children:[t.jsx(Xn,{anchor:"right",open:ln,onClose:Ge,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Hn,{companyName:Qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Je,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ge})}),t.jsxs(ti,{windowSize:l,children:[t.jsx(yi,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs($t,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>rt(y)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs($t,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>rt(y)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ni,{windowSize:l,children:[Ee?t.jsx(ka,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{H(!1),He()},onClickAway:()=>{H(!1)}}):null,on?t.jsx(Sa,{onCancel:Rn,onProceedForMarkAsPaid:Pn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Jt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Fa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ii,{windowSize:l,children:[l!=="small"?t.jsxs(li,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Wa(ae,e,W),t.jsx(ea,{sectionId:ta,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ai,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,y)=>{const B=e?.transactionDetails?.lines?.find(Nn=>Nn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(ei,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(oi,{windowSize:l,children:[t.jsx(ri,{children:n.total}),t.jsx(si,{children:he!=null?t.jsx(na,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&v?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:aa(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:E&&e.outsideZeniPaymentInfo!=null?La(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(_a,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:la(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:ia(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(mi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(oa,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ra,{amount:bn,activities:e.billActivities,stage:v?.code??"draft",onAddNewRule:Yt,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Xt,onSaveRealTimeApprovals:Ht},historicActivities:e.billHistory.activities}),t.jsx(di,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(sa,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:_e==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Mn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ea(K,et),isLoading:_e==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{W!=null?H(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ka,{children:t.jsxs(Ha,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(_,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(_,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Cn?t.jsx(_,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&Wt?t.jsx(_,{onClick:Bn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(_,{onClick:()=>{z.trackRetryClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(_,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Xa,{windowSize:l,children:[An===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Ya,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ma,placement:"top",children:t.jsx(Ga,{onClick:He,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Va,{})})}):null,!ae&&Sn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ua,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Aa,{id:T,children:t.jsx(da,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Na,threads:V,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:zn,onThreadClick:an,onCloseAllThreadsDrawer:()=>Y(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Oa=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Fa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(ui,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Ea=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,La=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ra} ${Z}`},Wa=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},_a=i.div``,Za=i.div``,Ka=i.div`
1
+ import{e as On,Y as Fn,u as En,fP as Ln,fQ as _n,fR as Wn,fS as Zn,bJ as Kn,a2 as Un,R as Yn,C as u,j as t,l as L,cM as it,cN as Vn,o as a,cO as Hn,cP as Xn,W as b,cQ as Gn,a0 as Ae,cR as Qn,aX as lt,aK as ot,dt as rt,bV as st,bX as dt,bY as ct,fT as qn,fU as Jn,fV as ea,fW as ta,cW as $,cX as I,cY as A,fX as k,cV as na,v as pt,f as ie,cZ as Rt,c_ as aa,c$ as ia,d0 as la,fY as oa,fZ as ra,a4 as sa,p as mt,bp as Te,f_ as da,f$ as O,q as r,y as ca,by as pa,g0 as ma,a3 as ua,g1 as ya,g2 as ut,d4 as yt,X as ha,cB as ba,bO as xa,am as ga,ao as fa,T as wa,br as zt,g3 as Ta,w as Mt,ac as va,ak as Da,aP as ja,eM as $a,x as Ia}from"./index-0QGih61V.js";import{b as p,n as i}from"./vendor-rkTZJa59.js";import{_ as Aa}from"./liveblocks-CP09Cz-7.js";import{o as ka,t as Sa}from"./LowBalancePopup-_1OrPez7-DZkbi_Py.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./crypto-CK3r1iTV.js";const Ca=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Pa={formTitle:new ha("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Ba,common:{noText:C,strings:{empty:d},currency:ht,via:Ra,more:za,edit:Ma},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Na}}}}=Yn.getLocalizedStrings(),ve=Ba.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:_t,isBillPayCommentingEnabled:Se,isZeniUser:Wt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:X,discardBillDetailsFromLocalStore:Pe,deleteBill:Ut,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Yt,onAttachmentClick:ze,saveBillDetails:Vt,discardOutsideZeniPaymentData:Ht,onBackClick:Me,updateEditRealTimeApproverClicked:Xt,onSaveRealTimeApprovals:Gt,onRetryPaymentClick:Qt,onRefundPaymentClick:qt})=>{const l=On(),o=Fn(),Ne=En(),[Jt,U]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,G]=p.useState(!1),h=e.transactionDetails?.id,tn=Wt?Ln:_n,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:Q}=p.useContext(tn),[nn,Y]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:V,isLoading:P}=Wn(w,"both",!1),f=Se&&h!=null,_e=p.useMemo(()=>h==null?[]:V.filter(c=>c.resolved===!1&&!c.id.includes(Zn)),[V,h]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,y)=>{Q(y),Y(!1)},[Q,Y]);p.useEffect(()=>{pe?.threadId!=null&&V.length>0&&!P&&(Q(pe.threadId),Le(null))},[pe,V,P,Q,Le]),Kn({componentName:"bill.details"});const[N,q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[We,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ue]=p.useState(!1),[Ye,Ve]=p.useState(!1),He=()=>Ke(!1),rn=()=>Ke(!0),Xe=Un(e.zeniAssist?.refundStatus.fetchState),J=p.useCallback(()=>{X()},[X]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),X())},[e,X,Pe]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),J())},[Xe,e.zeniAssist?.refundStatus,J]);const v=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=v?.code==="paid",D=me?v:ee?.code=="approved"&&H?.code?H:ee,S=Oa(D,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:H?.code!=null&&(ee?.code=="approved"||H.code==="mark_as_paid")?H:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Ge=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{q({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},cn=()=>{q({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},pn=()=>{q({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},mn=()=>{z.trackRefundClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),q({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ut?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt())},onCancelClick:()=>{U(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=va("ZeniAssist");return c!=null?t.jsx(Da,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{de(!Fe),z.trackZeniAssistClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,y)=>{const B=c;return{lineIndex:y,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}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(pi,{windowSize:l,children:t.jsx(ci,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
+ ${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,qe=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Je=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Vn,{paymentTypeLabel:Je,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Ta,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,$n=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,be=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(v?.code==="scheduled"||v?.code==="pending_approval")&&$n),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",An=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,kn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=D?.code,Sn=!kn&&(!Qe||D?.code==="processing"&&!M),Cn=!Qe,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Pn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",v?.code??"",D?.code??""),Vt(!0,Ye,c)},tt=()=>{Ue(!0),z.trackBillPayMarkAsPaid(v?.code??"",D?.code??"")},Bn=()=>{Ve(!0),tt()},Rn=()=>{Ht(),Ue(!1),Ye&&Ve(!1)},zn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),_=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&v?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Hn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&G(!1),_!=null&&z.trackLowBalanceAccountApprove(v?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},Mn=()=>{Ze("rejected"),_!=null&&z.trackLowBalanceAccountReject(v?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Qa,{windowSize:l,ref:at,children:[t.jsx(Xn,{anchor:"right",open:ln,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Gn,{companyName:Qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Je,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),t.jsxs(ti,{windowSize:l,children:[t.jsx(yi,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs($t,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>rt(y)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs($t,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>rt(y)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:_e,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ni,{windowSize:l,children:[Ee?t.jsx(ka,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{G(!1),Ge()},onClickAway:()=>{G(!1)}}):null,on?t.jsx(Sa,{onCancel:Rn,onProceedForMarkAsPaid:Pn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Jt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Fa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ii,{windowSize:l,children:[l!=="small"?t.jsxs(li,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Jn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,_a(ae,e,_),t.jsx(ea,{sectionId:ta,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx($e,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ai,{windowSize:l,children:t.jsx($e,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,y)=>{const B=e?.transactionDetails?.lines?.find(Nn=>Nn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Ja,{windowSize:l,children:t.jsx(ei,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(oi,{windowSize:l,children:[t.jsx(ri,{children:n.total}),t.jsx(si,{children:he!=null?t.jsx(na,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx($e,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:_!=null&&v?.code==="pending_approval"?Nt.addMoney:_})}),t.jsx(R,{})]}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:aa(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:E&&e.outsideZeniPaymentInfo!=null?La(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:la(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:ia(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(mi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(oa,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ra,{amount:bn,activities:e.billActivities,stage:v?.code??"draft",onAddNewRule:Yt,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:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Xt,onSaveRealTimeApprovals:Gt},historicActivities:e.billHistory.activities}),t.jsx(di,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(sa,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:We==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:Mn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ea(K,et),isLoading:We==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{_!=null?G(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ka,{children:t.jsxs(Ga,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(W,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(W,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Cn?t.jsx(W,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&_t?t.jsx(W,{onClick:Bn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(W,{onClick:()=>{z.trackRetryClick(D?.code??"",v?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(W,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Xa,{windowSize:l,children:[An===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Ya,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ma,placement:"top",children:t.jsx(Ha,{onClick:Ge,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Va,{})})}):null,!ae&&Sn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ua,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Aa,{id:T,children:t.jsx(da,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Na,threads:V,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:zn,onThreadClick:an,onCloseAllThreadsDrawer:()=>Y(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Oa=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Fa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(ui,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Ea=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,La=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ra} ${Z}`},_a=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,Za=i.div``,Ka=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
5
5
  `,Ua=i($a)`
@@ -34,7 +34,7 @@ import{e as On,Y as Fn,u as En,fP as Ln,fQ as Wn,fR as _n,fS as Zn,bJ as Kn,a2 a
34
34
  &:hover {
35
35
  color: ${e=>e.theme.colors.primary};
36
36
  }
37
- `,Ga=i.div`
37
+ `,Ha=i.div`
38
38
  display: flex;
39
39
  cursor: pointer;
40
40
  color: ${e=>e.theme.colors.grey1};
@@ -64,14 +64,14 @@ import{e as On,Y as Fn,u as En,fP as Ln,fQ as Wn,fR as _n,fS as Zn,bJ as Kn,a2 a
64
64
  border-radius: ${a.sp1};
65
65
  right: ${e=>m.right.valuePx(e.windowSize)};
66
66
  box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.grey1}3D`};
67
- `,Ha=i.div`
67
+ `,Ga=i.div`
68
68
  width: auto;
69
69
  justify-content: flex-end;
70
70
  position: ${e=>e.windowSize==="small"?"static":"relative"};
71
71
  right: ${e=>m.actionsContainerRight.valuePx(e.windowSize)};
72
72
  height: 100%;
73
73
  display: flex;
74
- `,_=i(Mt)`
74
+ `,W=i(Mt)`
75
75
  display: flex;
76
76
  align-items: center;
77
77
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{C as z,q as B,e as O,R,a as M,a2 as W,j as o,U as G,ca as X,aX as Z,F as H,a4 as J,o as c}from"./index-BKug3-eP.js";import{b as D,n as h}from"./vendor-rkTZJa59.js";import{b as K,f as Q,l as L,o as j}from"./FollowStepsSection-BqqrsOIP-DLXO6q5D.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=O(),a=R.getLocalizedStrings().commonSetUp.approval,P=R.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return D.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const q=G(d);X(()=>V(U,q))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:L},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:L},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
1
+ import{C as z,q as B,e as O,R,a as M,a2 as W,j as o,U as G,ca as X,aX as Z,F as H,a4 as J,o as c}from"./index-0QGih61V.js";import{b as D,n as h}from"./vendor-rkTZJa59.js";import{b as K,f as Q,l as L,o as j}from"./FollowStepsSection-UY5sAJeD-D9y-FlM_.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=O(),a=R.getLocalizedStrings().commonSetUp.approval,P=R.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return D.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const q=G(d);X(()=>V(U,q))}});return()=>{i.unsubscribe()}}),D.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:L},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:L},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,y as B,a0 as j,bV as E,bX as G,bY as U,o as i,cx as V,q as l,ao as X,X as z,an as q,f as S,cu as F,aP as Q,v as Y}from"./index-BKug3-eP.js";import{n as o,b as _}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=_.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(O,{windowSize:n,isLastSection:f,children:[t.jsxs(Z,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(J,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(R,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${M}`)),d.actors.map(p=>t.jsxs(R,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},N))})}),m?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},O=o.div`
1
+ import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,x as B,a0 as j,bV as E,bX as G,bY as U,o as i,cx as V,q as l,ao as X,X as z,an as q,f as S,cu as F,aP as Y,v as _}from"./index-0QGih61V.js";import{n as o,b as J}from"./vendor-rkTZJa59.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},K=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:v,onDeleteRuleClick:$})=>{const[m,x]=J.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(O,{windowSize:n,isLastSection:f,children:[t.jsxs(Q,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Z,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{v(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(R,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${M}`)),d.actors.map(p=>t.jsxs(R,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},N))})}),m?t.jsx(E,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},O=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -14,7 +14,7 @@ import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,y as B,a0 as j,bV as E,
14
14
  border-color: ${e=>e.theme.colors.primary};
15
15
  }
16
16
  }
17
- `,Z=o(X)`
17
+ `,Q=o(X)`
18
18
  display: flex;
19
19
  position: relative;
20
20
  align-items: center;
@@ -22,7 +22,7 @@ import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,y as B,a0 as j,bV as E,
22
22
  text-align: center;
23
23
  width: ${e=>s.sectionWidth.valuePx(e.windowSize)};
24
24
  gap: ${i.sp2};
25
- `,J=o.div`
25
+ `,Z=o.div`
26
26
  align-items: center;
27
27
  display: flex;
28
28
  justify-content: center;
@@ -117,7 +117,7 @@ import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,y as B,a0 as j,bV as E,
117
117
  height: ${e=>s.stepperWidthHeight.valuePx(e.windowSize)};
118
118
  top: ${e=>s.stepperContentTop.valuePx(e.windowSize)};
119
119
  left: -${i.sp6};
120
- ${Y.standardMedium.css};
120
+ ${_.standardMedium.css};
121
121
  text-align: center;
122
122
  color: ${e=>e.theme.colors.grey1};
123
123
  border: 2px solid ${e=>e.theme.colors.grey1};
@@ -149,7 +149,7 @@ import{e as I,R as y,j as t,aX as D,m as H,W as b,C as r,y as B,a0 as j,bV as E,
149
149
  &:hover {
150
150
  color: ${S.important};
151
151
  }
152
- `,pe=o(Q)`
152
+ `,pe=o(Y)`
153
153
  width: ${i.sp3};
154
154
  height: ${i.sp3};
155
155
  cursor: pointer;
@@ -1,4 +1,4 @@
1
- import{Y as _,e as f,a2 as ee,l as g,R as M,j as e,aX as ie,Q as C,W as B,d as x,o as l,r as le,c7 as se,u as U,a6 as L,n as oe,C as re,f as S,c9 as te,a7 as ae,ap as ne,q as de}from"./index-BKug3-eP.js";import{b as u,n as s}from"./vendor-rkTZJa59.js";import{x as ce}from"./MeetingCalenderPopup-DJHrBVXi-YYH5fhwe.js";import{C as pe}from"./VideoPopup-CwEiOVHQ-SE5re7pU.js";import{M as z}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./VideoPlayer-DqRss8fV-B4rpzoFE.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new re(de[5],44)},me=s.div`
1
+ import{Y as _,e as f,a2 as ee,l as g,R as M,j as e,aX as ie,Q as C,W as B,d as x,o as l,r as le,c7 as se,u as U,a6 as L,n as oe,C as re,f as S,c9 as te,a7 as ae,ap as ne,q as de}from"./index-0QGih61V.js";import{b as u,n as s}from"./vendor-rkTZJa59.js";import{x as ce}from"./MeetingCalenderPopup-CQ2sUCtg-BBwyYnnQ.js";import{C as pe}from"./VideoPopup-CbaFtkFn-BG3oU3yl.js";import{M as z}from"./usp-line-BBd1wKwW-u-VMxix8.js";import"./mui-C42whWwM.js";import"./analytics-CcevxdRy.js";import"./routing-CH3KJxCW.js";import"./sentry-osuhWjvS.js";import"./redux-2gfZRks6.js";import"./liveblocks-CP09Cz-7.js";import"./crypto-CK3r1iTV.js";import"./VideoPlayer-CV7o-_bq-BWNDFwag.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new re(de[5],44)},me=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -35,7 +35,7 @@ import{Y as _,e as f,a2 as ee,l as g,R as M,j as e,aX as ie,Q as C,W as B,d as x
35
35
  align-content: center;
36
36
  justify-content: center;
37
37
  align-items: center;
38
- `,Q=s.div`
38
+ `,q=s.div`
39
39
  margin-left: ${i=>i.windowSize==="small"?l.sp0:l.sp6};
40
40
  margin-bottom: ${i=>i.windowSize==="small"?l.sp4:l.sp0};
41
41
  background: ${i=>i.theme.colors.grey3};
@@ -63,7 +63,7 @@ import{Y as _,e as f,a2 as ee,l as g,R as M,j as e,aX as ie,Q as C,W as B,d as x
63
63
  color: ${i=>i.theme.colors.champion};
64
64
  `,d=s.div``,c=s.div`
65
65
  padding-left: ${l.sp3};
66
- `,q=s(z)`
66
+ `,Q=s(z)`
67
67
  color: ${S.graphColor16Dark};
68
68
  `,V=s(z)`
69
69
  color: ${S.graphColor09Dark};
@@ -81,4 +81,4 @@ import{Y as _,e as f,a2 as ee,l as g,R as M,j as e,aX as ie,Q as C,W as B,d as x
81
81
  `,$e=s(L)`
82
82
  margin: ${i=>i.windowSize==="small"?l.sp1:`auto ${l.sp5}`};
83
83
  color: ${i=>i.theme.colors.grey1};
84
- `,o=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({billPaySetupView:i,analytics:r,meetingUrl:O,videoUrl:X,onButtonClick:Y,onBackClick:F,onSetupBillPaySuccess:b,onClickMenuIcon:H})=>{const h=_(),a=f(),{billPayTermsDetails:p}=i,[J,K]=u.useState(!1),[N,v]=u.useState(!1),k=ee(p?.fetchStatus.fetchState);u.useEffect(()=>{k==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&b?.()},[k,b,p?.fetchStatus]);const W=()=>{r?.trackBillPayPromoScheduleDemo(),v(!0)},G=g.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap),P=g.hasBillPayAccess(h.loggedInUserRoleMap)&&!G,T=P?o.setupNonAccessableUsersPromoText:o.promoText;return e.jsxs(me,{children:[J===!0?e.jsx(pe,{onCancelClick:()=>{K(!1)},videoUrl:X}):null,N===!0?e.jsx(ce,{onCancelClick:()=>{v(!1)},meetingUrl:O}):null,e.jsx(ie,{title:o.title,onBackClick:F,showBackButton:!g.hasOnlyBillPayAccess(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:H,source:"BillPayPromoPage"}),e.jsxs(he,{windowSize:a,children:[a==="small"?e.jsx(ue,{children:T}):e.jsx(ge,{children:T}),a==="small"?e.jsx(fe,{}):e.jsx(Se,{}),P===!1?e.jsxs(we,{children:[e.jsxs(ye,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:o.scheduleDemoButton,onClick:W,"data-testid":B("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:a,children:o.orText}),e.jsx(C,{variant:"primary",label:o.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:Y,"data-testid":B("billpay-setup-button")})]}),e.jsxs(je,{children:[o.terms.terms1,e.jsx(x,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(x,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(x,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(r?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(x,{href:t.tosUrl,onZeniLinkClick:()=>(r?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,o.terms.terms3]})]}):null]})]})},fe=()=>{const i=U(),r=f();return e.jsxs(I,{windowSize:r,children:[e.jsx(E,{windowSize:r,children:e.jsx(Q,{windowSize:r,children:i.mode==="dark"?e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(R,{windowSize:r,children:[e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.fullyManagedText.bold}),e.jsx(y,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.multiLevelApprovalText.bold}),e.jsx(y,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.aiPoweredText.bold}),e.jsx(y,{children:o.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=U(),r=f();return e.jsxs(I,{windowSize:r,children:[e.jsxs(R,{windowSize:r,children:[e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.fullyManagedText.bold}),e.jsx(w,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.multiLevelApprovalText.bold}),e.jsx(w,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(q,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.aiPoweredText.bold}),e.jsx(w,{children:o.aiPoweredText.regular})]})]})]}),e.jsx(E,{windowSize:r,children:e.jsx(Q,{windowSize:r,children:i.mode==="dark"?e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Ie as default};
84
+ `,o=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Ie=({billPaySetupView:i,analytics:r,meetingUrl:J,videoUrl:O,onButtonClick:X,onBackClick:Y,onSetupBillPaySuccess:b,onClickMenuIcon:F})=>{const h=_(),a=f(),{billPayTermsDetails:p}=i,[H,K]=u.useState(!1),[N,k]=u.useState(!1),v=ee(p?.fetchStatus.fetchState);u.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&b?.()},[v,b,p?.fetchStatus]);const W=()=>{r?.trackBillPayPromoScheduleDemo(),k(!0)},G=g.hasBillPayAdminLevelAccess(h.loggedInUserRoleMap),P=g.hasBillPayAccess(h.loggedInUserRoleMap)&&!G,T=P?o.setupNonAccessableUsersPromoText:o.promoText;return e.jsxs(me,{children:[H===!0?e.jsx(pe,{onCancelClick:()=>{K(!1)},videoUrl:O}):null,N===!0?e.jsx(ce,{onCancelClick:()=>{k(!1)},meetingUrl:J}):null,e.jsx(ie,{title:o.title,onBackClick:Y,showBackButton:!g.hasOnlyBillPayAccess(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:F,source:"BillPayPromoPage"}),e.jsxs(he,{windowSize:a,children:[a==="small"?e.jsx(ue,{children:T}):e.jsx(ge,{children:T}),a==="small"?e.jsx(fe,{}):e.jsx(Se,{}),P===!1?e.jsxs(we,{children:[e.jsxs(ye,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:o.scheduleDemoButton,onClick:W,"data-testid":B("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:a,children:o.orText}),e.jsx(C,{variant:"primary",label:o.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:X,"data-testid":B("billpay-setup-button")})]}),e.jsxs(je,{children:[o.terms.terms1,e.jsx(x,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(x,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(x,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(r?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(x,{href:t.tosUrl,onZeniLinkClick:()=>(r?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,o.terms.terms3]})]}):null]})]})},fe=()=>{const i=U(),r=f();return e.jsxs(I,{windowSize:r,children:[e.jsx(E,{windowSize:r,children:e.jsx(q,{windowSize:r,children:i.mode==="dark"?e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(R,{windowSize:r,children:[e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.fullyManagedText.bold}),e.jsx(y,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.multiLevelApprovalText.bold}),e.jsx(y,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:r,children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(c,{children:[e.jsx($,{children:o.aiPoweredText.bold}),e.jsx(y,{children:o.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=U(),r=f();return e.jsxs(I,{windowSize:r,children:[e.jsxs(R,{windowSize:r,children:[e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.fullyManagedText.bold}),e.jsx(w,{children:o.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.multiLevelApprovalText.bold}),e.jsx(w,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Q,{})}),e.jsxs(c,{children:[e.jsx(j,{children:o.aiPoweredText.bold}),e.jsx(w,{children:o.aiPoweredText.regular})]})]})]}),e.jsx(E,{windowSize:r,children:e.jsx(q,{windowSize:r,children:i.mode==="dark"?e.jsx(m,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(m,{src:A,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Ie as default};