@zeniai/web-app-ui 4.14.38-dev → 4.14.39-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 (432) hide show
  1. package/dist/assets/{ACHDetailsPage-BShpKoIj-D1Wy32uO.js → ACHDetailsPage-B5qIuZya-Dqn8ZaVl.js} +6 -6
  2. package/dist/assets/{AIPerformancePage-CFErwUsE-DcUypqs6.js → AIPerformancePage-BHB45mP--CWtWN8JR.js} +23 -23
  3. package/dist/assets/AccountInfoPage-Cd5xYT1g-BylH1aam.js +18 -0
  4. package/dist/assets/AccountInfoPageContent-CJ7ycVIK-3aE5KJwU.js +149 -0
  5. package/dist/assets/{AccountLockedInfoModal-c30P9O_3-DzDiXoV7.js → AccountLockedInfoModal-Dox7IuAX-C5qPLBPz.js} +6 -6
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CO9BYPWm-CTb98mzK.js → AccountReconDetailsDrawerPage-Bqty08m0-Dbr-jmu7.js} +5 -5
  7. package/dist/assets/{AccountRow-BrW_eEjE-Cmf0Jids.js → AccountRow-D1cjRJJD-Dsnq1o4t.js} +9 -9
  8. package/dist/assets/{AccountsPromoCardStack-De2yNNuZ-XXlQf85I.js → AccountsPromoCardStack-Bs3naJHM-DvbUMPbJ.js} +17 -17
  9. package/dist/assets/AddAddressForCardDrawer-DZkBMJfp-DwU9s4jD.js +6 -0
  10. package/dist/assets/{AddToWalletPage-CsOmzC7v-S49ZGsCa.js → AddToWalletPage-CyRfqVDB-DtRghMSs.js} +12 -12
  11. package/dist/assets/AddressRoutes-DbIoDD0z.js +1 -0
  12. package/dist/assets/AddressScreen-Duz_V-eF.js +9 -0
  13. package/dist/assets/AgingReportsPage-xBFff3BM-B936IQ2N.js +79 -0
  14. package/dist/assets/{AiCfoScreen-D5N0hxeG.js → AiCfoScreen-DkKXC6Fw.js} +2 -2
  15. package/dist/assets/{AllUserItems-Dq7NcP-o-Da1Zo4z6.js → AllUserItems-BJf6WPDo-D0H1tMjG.js} +7 -7
  16. package/dist/assets/{ApAgingDetailPage-Z5JgfH-e-CEuDNd6O.js → ApAgingDetailPage-CjBrPyi8-Dy0hX-gn.js} +5 -5
  17. package/dist/assets/{AppBasePage-B5sDynhi-CeUmBhIQ.js → AppBasePage-CqDm-hnV-DluaESRo.js} +9 -9
  18. package/dist/assets/{AppDrawerContent-D9Q8ir0T-DZmwUW8c.js → AppDrawerContent-CVVWj66i-D4zioU_X.js} +6 -6
  19. package/dist/assets/ApprovalRulesSettingsPage-Cckd2uVA-Bu-mEOHu.js +47 -0
  20. package/dist/assets/ArAgingChart-CBsqOd-4-CVCl4d59.js +24 -0
  21. package/dist/assets/{ArAgingDetailPage-B5vqkc3v-B1AqC5xt.js → ArAgingDetailPage-i7JObt60-CsyQx3rL.js} +1 -1
  22. package/dist/assets/{AttachmentView-CiYfninr-DZhIwWMR.js → AttachmentView-CzC4skJ3-D2ObdnK2.js} +6 -6
  23. package/dist/assets/BalancesInsightWithToolTip-B6umvmgL-B94s6jgr.js +38 -0
  24. package/dist/assets/{BankAccountSection-EZtscP2z-C2fUrA1M.js → BankAccountSection-Di4sF52j-BobhPzIF.js} +3 -3
  25. package/dist/assets/{BankAccountWarningSection-DCfyIUlu-D_RVGDL2.js → BankAccountWarningSection-Cled-2cR-CypxFFmY.js} +10 -10
  26. package/dist/assets/{BankConnectionsSettingsPage-CQWy9jvt-Brl3VmAQ.js → BankConnectionsSettingsPage-Ccnzq7st-DGOhp4FX.js} +52 -52
  27. package/dist/assets/{BillDetailPage-pt1k5AQf-C_HrCJfS.js → BillDetailPage-XXOwBfO1-DauaxUA2.js} +9 -9
  28. package/dist/assets/BillPayApprovalRoutes-S9Y_fMTz.js +1 -0
  29. package/dist/assets/{BillPayApprovalRuleDetailPage-Drh7Bhi8-EZrQsXba.js → BillPayApprovalRuleDetailPage-DFZ0csaT-1KbX_IY6.js} +2 -2
  30. package/dist/assets/{BillPayApprovalRulesPage-Cmyo59xB-D7U9ywcy.js → BillPayApprovalRulesPage-COCypDcS-BjGZEACH.js} +9 -9
  31. package/dist/assets/{BillPayPromoPage-Dgpz2TLG-BwKkDBie.js → BillPayPromoPage-DOE2YIqC-C8ApdrdB.js} +7 -7
  32. package/dist/assets/{BillPayRoutes-aVWMd64J.js → BillPayRoutes-Bz92yFGI.js} +18 -18
  33. package/dist/assets/{BillPaySetUpPage-B6Pd_eBf-DFM86E0U.js → BillPaySetUpPage-BCJbZDsV-BF2fTyNr.js} +7 -7
  34. package/dist/assets/{BillingSettingsPage-CYsvBrFV-B9NfPSZ9.js → BillingSettingsPage-iImtlEmO-CBp1rdfh.js} +6 -6
  35. package/dist/assets/{BillsBulkReviewDrawerPage-DNnAmqWz-C01NVO_d.js → BillsBulkReviewDrawerPage-B11GWM_0-Crsw24X2.js} +1 -1
  36. package/dist/assets/{BoxItem-B06DK4G--C4opawya.js → BoxItem-Bxa1M4QU-BEQbjRW-.js} +4 -4
  37. package/dist/assets/{BusinessVerificationPage-Dgk5gyMv-BrQSkaHR.js → BusinessVerificationPage-DSuJFoW1-mYZPYqnm.js} +8 -8
  38. package/dist/assets/{BusinessVerificationPageScreen-D9PxWQrU.js → BusinessVerificationPageScreen-BlaiKu4I.js} +2 -2
  39. package/dist/assets/{BusyIndication-Cd67eHX6-C7aB5h-1.js → BusyIndication-9zDqSKBP-WSsX6_uU.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-CcH9jUoZ-HppogTjx.js → CardNumberSubText-_ZZbaz_k-D2s6-wsQ.js} +8 -8
  41. package/dist/assets/{CashbackDetailPage-5eysaHGf-CZA31npt.js → CashbackDetailPage-DAZXitLt-Dn6UduwT.js} +24 -24
  42. package/dist/assets/{ChargeCardDetailPage-Diwf-gwZ-BccKvsWr.js → ChargeCardDetailPage-B1VIpASk-D0l4y1IR.js} +20 -20
  43. package/dist/assets/{ChargeCardListPage-C-RTGkKK-Cc1az4M9.js → ChargeCardListPage-BOBepN-x-BtfglwWz.js} +36 -36
  44. package/dist/assets/{ChargeCardListTable-B-bNbtZQ-BuEumynS.js → ChargeCardListTable-YznzSsJo-KwncCUaT.js} +31 -31
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-Cu-zT5tO-CNy0B9A3.js → ChargeCardPaymentHistoryPage--jOwsMla-DQFHZBZ2.js} +19 -19
  46. package/dist/assets/ChargeCardPromoPage-DIfakIOK-CUSVcG-Z.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-CKV_cGg2.js → ChargeCardRoutes-PKJBtykP.js} +9 -9
  48. package/dist/assets/{ChargeCardSetupPage-BcTB9Yy5-BJuaiwYA.js → ChargeCardSetupPage-0bpVkeJs-yW1xF9DG.js} +4 -4
  49. package/dist/assets/{ChargeCardStatementsPage-B_ERvgmB-W5ryAUPk.js → ChargeCardStatementsPage-ChWyQlw6-BDnJUrTu.js} +2 -2
  50. package/dist/assets/CheckDepositDrawerPage-BS7hnyZn-C-RoPs-w.js +206 -0
  51. package/dist/assets/{CollapsableReportTable-h0vIfI8o-Q6XPsw6M.js → CollapsableReportTable-DNfFkAts-CoCUKzx3.js} +40 -40
  52. package/dist/assets/{CompanyOfficerDetailsSection-CWADX4kZ-DANlup8L.js → CompanyOfficerDetailsSection-CrOIN4IW-wL1QY22J.js} +23 -23
  53. package/dist/assets/{CompanyPassportCard-DF9LFrFD-DPvP8c2P.js → CompanyPassportCard-CkzYFTrp-DRHCWpeb.js} +4 -4
  54. package/dist/assets/{CompanyPassportPage-BtAopyLq-CG1Jq4C9.js → CompanyPassportPage-FE6yli6h-Dd4_9uh3.js} +14 -14
  55. package/dist/assets/CompanyPassportScreen-BxfK5qi-.js +1 -0
  56. package/dist/assets/CompleteProfile-Cb8i1XgZ-BjB2Cj8T.js +52 -0
  57. package/dist/assets/ConfettiBurst-BZCXEGYA-2D0_Pemr.js +1 -0
  58. package/dist/assets/ConnectionAuthScreen-Wp_pgh6b.js +11 -0
  59. package/dist/assets/{ConstrainedInnerElement-hv51KpGg-CKGSsSPo.js → ConstrainedInnerElement-CgdnMeoA-CE1VZ_Vz.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-C2xU6c51-Cx-c8OBN.js → CreateOrEditVendorPage-CzpSgxbO-k7E9cu5j.js} +10 -10
  61. package/dist/assets/{CreditCardPaymentDrawerPage-CeagMaCu-CazU8VPX.js → CreditCardPaymentDrawerPage-c_q0MsSO-dQfGXEwP.js} +7 -7
  62. package/dist/assets/{CurrencySelectField-B8EoF2aF-DHzUxLL4.js → CurrencySelectField-BAh7SHrG-BY-wwlD4.js} +5 -5
  63. package/dist/assets/{CustomerOnboardingActivationPage-CIeR2XvU-CMOVbNs9.js → CustomerOnboardingActivationPage-f3Aa6E5r-CsLUjIve.js} +6 -6
  64. package/dist/assets/CustomerOnboardingAuthScreen-CTK0e_jx.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-CWAtSu08-CHM5gdzL.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-kUbwh2r2-BjHJq9e_.js → CustomerOnboardingDetailPageSkeleton-DYuiWn8s-Cjt3eU6d.js} +12 -12
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-Br0jy7Pu-xbtVpPeD.js → CustomerOnboardingNoStepsPage-Bh_F0-oC-wTFuOqC8.js} +12 -12
  68. package/dist/assets/{CustomerOnboardingPage-Dm2Si769-CuOP2t9G.js → CustomerOnboardingPage-B9hSO88_-DWmXd-Uc.js} +7 -7
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-Cz81Q5jC-CBFgnoEY.js → CustomerOnboardingProductSuitePage-CG0HKCpQ-GHwnhZEx.js} +7 -7
  70. package/dist/assets/CustomerOnboardingRoutes-liI38PH4.js +23 -0
  71. package/dist/assets/{Dashboard-DReG_aaf-B9cmSG7e.js → Dashboard-BJ_oIHab-R3_sy9De.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-BXSlwsR7-CjT08Tnm.js → DashboardReportPage-BemzMw2e-DvGvflyG.js} +11 -11
  73. package/dist/assets/{DashboardRoutes-Cr_y84hZ.js → DashboardRoutes-C7dEIbTS.js} +3 -3
  74. package/dist/assets/DashboardSidebarBackgroundAnimation-BtA5oEGG-DP44-3NB.js +12 -0
  75. package/dist/assets/{DefaultTenantHome-Bp9gU4vX.js → DefaultTenantHome-CkG7rrVy.js} +1 -1
  76. package/dist/assets/DepositAccTransactionItem-CyFi1P_L-VEy51_-P.js +76 -0
  77. package/dist/assets/{DepositAccTransactionListPage-C-FAvZwD-CLMW6N19.js → DepositAccTransactionListPage-DvBRRUdZ-FPrNb8c2.js} +6 -6
  78. package/dist/assets/DomesticWireDetailScreen-CgfzlsVD.js +18 -0
  79. package/dist/assets/{DomesticWireDetailsPage-BaiSpc0N-BjZ307kD.js → DomesticWireDetailsPage-DCDo3aHI-DZy_Auc2.js} +4 -4
  80. package/dist/assets/{DownloadOverlay-BpRKCn-0-Ceuu4G9V.js → DownloadOverlay-D_lL1sPW-DBEVtdkQ.js} +18 -18
  81. package/dist/assets/{DrawerPage-DQ3Xuekx-osFrzw_b.js → DrawerPage-DesxXhZk-qxdDcPRN.js} +10 -10
  82. package/dist/assets/DrawerScreen-IScn_gPb.js +1 -0
  83. package/dist/assets/EditPeoplePage-QvPy_Six-pqhLCmsP.js +55 -0
  84. package/dist/assets/{EditReimbursementDetailPage-CC2BjMkR-UcYvbITo.js → EditReimbursementDetailPage-C0ZDkboO-Ds7tBMbu.js} +17 -17
  85. package/dist/assets/EntityDetailPage-l7nXIsyF-D-OEpTX_.js +18 -0
  86. package/dist/assets/EntityDetailRoutes-DCBMx6-C.js +1 -0
  87. package/dist/assets/{EntitySummarySection-vsEMiXYh-xFy88yRd.js → EntitySummarySection-BwX0a4JL-CYDWshdA.js} +12 -12
  88. package/dist/assets/{ExpenseAutomationOverviewPage-B3HPfIsK-BoAXmFoS.js → ExpenseAutomationOverviewPage-EdyHjbff-QECZrSJL.js} +13 -13
  89. package/dist/assets/ExpenseAutomationPage-DA22Qofw-QWboM4Rp.js +3614 -0
  90. package/dist/assets/ExpenseAutomationRoutes-DVcJr4np.js +20 -0
  91. package/dist/assets/{ExpressPayPage-BH7oCW_F-DgICn4el.js → ExpressPayPage-EMP6inpX-C812vhu_.js} +6 -6
  92. package/dist/assets/{FeaturePreviewPage-DSv61BhF-BsdnfTlO.js → FeaturePreviewPage-SYJm-3aR-BnuhMtuP.js} +2 -2
  93. package/dist/assets/FeaturePreviewScreen-C3Y9pgiz.js +1 -0
  94. package/dist/assets/{FollowStepsSection-Bgy9MpO4-CvIWpdyW.js → FollowStepsSection-BxESVqJD-BFhnhk7r.js} +9 -9
  95. package/dist/assets/{GlobalReviewListPage-VRq_gimm-BpVLghA7.js → GlobalReviewListPage-D5_ACa-q-DZo6UglL.js} +7 -7
  96. package/dist/assets/{InformationCardStack-rx0fypl3-OYwqii2C.js → InformationCardStack-B_qQUEYD-DRekqbq_.js} +4 -4
  97. package/dist/assets/InsightsCardStack-BsQzoVzj-BI_nQIXQ.js +79 -0
  98. package/dist/assets/{InsightsSection-ByFf2oGn-ChvKOP1F.js → InsightsSection-B6CNlTNH-BFr6MnTG.js} +9 -9
  99. package/dist/assets/{IntegrationsSettingsPage-Cj01Nub6-lRHeOJiB.js → IntegrationsSettingsPage-DP6fAccq-CigqZ0SM.js} +2 -2
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-C2PM97sv-BLs5mpsl.js → InternationalWireSwiftDetailsPage-VdG7bDZi-Rlu68XJQ.js} +11 -11
  101. package/dist/assets/InternationalWireVerificationPage-COC6lZml-CR1f2JQF.js +65 -0
  102. package/dist/assets/{InviteFormPage-dsMpScvq-pwPoaIw-.js → InviteFormPage-DN02jRy5-UECY6Ai9.js} +6 -6
  103. package/dist/assets/{InvitePageListView-e7vGSbFa-BfSD0kcH.js → InvitePageListView-CP4K9tJi-CrsR5dUL.js} +42 -42
  104. package/dist/assets/InvitePeoplePage-VTM6kM1u-DEUyoj-n.js +12 -0
  105. package/dist/assets/{InvoiceUploadSection-Dg1-uunA-1cshMTVc.js → InvoiceUploadSection-it-ZYl1N-gndqObmu.js} +12 -12
  106. package/dist/assets/{IssueChargeCardPage-CyF9wrb0-CWwHqex_.js → IssueChargeCardPage-CVfuvGey-DLZauQU0.js} +20 -20
  107. package/dist/assets/{LabeledAddressValue-3l0Bv00--Bw_81ZJz.js → LabeledAddressValue-DDrQcHIE-CrQXufeN.js} +2 -2
  108. package/dist/assets/LabeledAddressValueField-BgWwd5Gw-BjdQu4oY.js +45 -0
  109. package/dist/assets/{LabeledControlledCheckBoxField-BgC8y0D6-BlS4qFJC.js → LabeledControlledCheckBoxField-CcPO1k23-wgZTidrw.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-3qI_4noU-UcVNXOp1.js → LabeledCountryMultiSelectField-BYYjzwUG-Dh1nhUsB.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-BV3h9bh7-BCEINAy7.js → LabeledCreatableSingleSelectField-CISYMojq-C0CA90PE.js} +6 -6
  112. package/dist/assets/{LabeledDocumentField-rriEcsdr-CcDZw3QZ.js → LabeledDocumentField-C_bcFxdY-rxfuitkN.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-DoVSg3nZ-82mPtDTT.js → LabeledDropDownFormattedTextField-ScGGCap8-5XDDElAU.js} +5 -5
  114. package/dist/assets/{LabeledEmailInputField-CKWZEkTs-C9DTkL1y.js → LabeledEmailInputField-BppuWRbl-BqM5ToGw.js} +7 -7
  115. package/dist/assets/{LabeledNameField-yaSRe5Vt-cnDt7eal.js → LabeledNameField-mxSNQk3k-DSUzbE3j.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-D5QUlcEP-DOA8WTdI.js → LabeledSingleSelectField-C6ctNzkA-DJY2_gU-.js} +2 -2
  117. package/dist/assets/{LabeledText-DGZ7hxY4-BBOC0Eln.js → LabeledText-C8Y7EOsX-BG8Z0MTH.js} +3 -3
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DI07Eicg-NPjB_w_o.js → LabeledUserSingleSelectWithSubtitlesField-C8JxAcOT-eV0BTiQT.js} +11 -11
  119. package/dist/assets/{LabeledZeniRolesDropDownField-jIrTovp--C7mgztQg.js → LabeledZeniRolesDropDownField-BZtreVpj-BQKcvtGQ.js} +6 -6
  120. package/dist/assets/{LinkJETransactionPage-Bvbqpltz-BZhW34oI.js → LinkJETransactionPage-CKq4oiX9-BMq1iE01.js} +10 -10
  121. package/dist/assets/{LockCardPage-DyEQBJYx-DksW1-ZG.js → LockCardPage-CZENNby7-fCE1WXTx.js} +14 -14
  122. package/dist/assets/{LowBalancePopup-C2vHKMNF-CMEceag2.js → LowBalancePopup-1727S1ri-CiFxrWZ6.js} +5 -5
  123. package/dist/assets/MagicLinkACHDetailsPage-BSOlSfNu-C5Jji5Bc.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-D1DTPo0E-DNJbU9wA.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-D_wo_2nm-BDPVvMNI.js +1 -0
  126. package/dist/assets/MagicLinkRoutes-BBf-u6YU.js +72 -0
  127. package/dist/assets/MagicLinkSignInScreen-BGYMIMGW.js +12 -0
  128. package/dist/assets/{MagicLinkSuccessPage-B1LBYM2F-DRIhjweE.js → MagicLinkSuccessPage-QMkZgQLG-0gaJkIUo.js} +6 -6
  129. package/dist/assets/{MagicLinkTitleSection-ClAnBBt9-BWJjfwMs.js → MagicLinkTitleSection-CARU1oLQ-D-x2cYul.js} +9 -9
  130. package/dist/assets/MailingDetailsSection-ByOPaJ05-C__aFJd6.js +21 -0
  131. package/dist/assets/MobileAppDrawer-TF-9OTZ8.js +1 -0
  132. package/dist/assets/{MoreMenuButton-Ct8k8Oax-C0IXgNiJ.js → MoreMenuButton-BsBKwXvk-DeCIVX9G.js} +18 -18
  133. package/dist/assets/{MyBankConnectionsSettingsPage-CBNYcuP4-CSPIvvUE.js → MyBankConnectionsSettingsPage-BdgIIhL1-DSKnFya9.js} +6 -6
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-n71n40uQ-DnLQhl3T.js → MyPendingActivationChargeCardListPage-CX38bDdq-CKY6khDW.js} +1 -1
  135. package/dist/assets/MyProfileSettingsPage-DYu0Fx6I-MQ1Uu5yx.js +85 -0
  136. package/dist/assets/{NavBarWithPicker-CbjFNysh-Ck578WIs.js → NavBarWithPicker-CGGEvLwe-xLu9BDbC.js} +8 -8
  137. package/dist/assets/{NavigationArrow-Dpc7u6y4-CiTKhYeI.js → NavigationArrow-CTNkKUtV-Cv--eO3H.js} +1 -1
  138. package/dist/assets/NavigationDots-Dvce3gHt-B5IBT8ql.js +15 -0
  139. package/dist/assets/{NewGlobalMerchantPage-B10sY6Q_-Cu6PKFa1.js → NewGlobalMerchantPage-D_f7z47T-DZeAHBD8.js} +12 -12
  140. package/dist/assets/NoDataChart-CrKeqWSr-aTXx8C4D.js +26 -0
  141. package/dist/assets/{NoDataTable-C6Q2Anpz-BqTI2GFx.js → NoDataTable-4vPXmPYF-MAxQ6k5D.js} +1 -1
  142. package/dist/assets/{NotFoundPage-4mPhXD5--pWqZwF3K.js → NotFoundPage-BLWPU1wU-BDFevjLh.js} +4 -4
  143. package/dist/assets/NotFoundScreen-BOQb1xUE.js +1 -0
  144. package/dist/assets/NotificationRoutes-CHyP48D4.js +1 -0
  145. package/dist/assets/{NotificationSettingsPage-BTxCoB_b-1ycVlHAN.js → NotificationSettingsPage-CDiDLX3A-CdiPU3_w.js} +30 -30
  146. package/dist/assets/NotificationsListConfig-B5pDa4cJ-C0GWEb8S.js +1 -0
  147. package/dist/assets/{NotificationsPage-D41h0mS6-lOcsglza.js → NotificationsPage-Ccl7Dny1-CsnU2sZr.js} +18 -18
  148. package/dist/assets/{OpExByVendorPage-BV_uJSCh-ClxLsbjb.js → OpExByVendorPage-spd-nKV4-Cz37eGG7.js} +9 -9
  149. package/dist/assets/OverlayContainerPage-BG9y5C0t-DvO1fY_N.js +11 -0
  150. package/dist/assets/{PandLWithForecastPage-Cj3UWjG4-C0webWAA.js → PandLWithForecastPage-TSoe4Z7F-xn1jaFoi.js} +11 -11
  151. package/dist/assets/PandLWithForecastRoutes-DWeIYgqG.js +1 -0
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BWFl695q-DCuXfW77.js → PaymentAccountSetupBillingAddressSection-9ma8SpIa-BDBHBe3a.js} +10 -10
  153. package/dist/assets/{PeoplePage-DcGqWtAP-kL10xLdE.js → PeoplePage-b5_I0qOw-lWi2XLJ6.js} +16 -16
  154. package/dist/assets/PeopleRoutes-D96ZRShY.js +22 -0
  155. package/dist/assets/PerformanceRoutes-w_Iip8ae.js +1 -0
  156. package/dist/assets/{Preview-Bd0e5eLk.js → Preview-C2zvk1tu.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-C9JoJQeH-y7_emSya.js → ProductsCarousel-C3M0ocdF-2raBZnNq.js} +3 -3
  158. package/dist/assets/{PromoBaseCards-mFk7SsOr-B_0Pg0f0.js → PromoBaseCards-BOGJI2ws-Cm4e0wPQ.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-CJsIrEZq-CgfqE4WV.js → QBOConnectionDialog-CmpnnuzP-BhhJabU7.js} +4 -4
  160. package/dist/assets/{QBOConnectionScreen-1Q56jIZw.js → QBOConnectionScreen-CCeXLrlB.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-C_fqHza_-B72ZoKWs.js → QBOSetupSection-DjnN9dgv-6umyaC6d.js} +14 -14
  162. package/dist/assets/ReferralListScreen-DY8vZLmY.js +5 -0
  163. package/dist/assets/ReimbursementApprovalRoutes-kgV17rI7.js +1 -0
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BMZnKpsk-C22qLIuK.js → ReimbursementApprovalRuleDetailPage-D5NXjrO9-Bjrjwfbm.js} +2 -2
  165. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CrQlcAIE.js +1 -0
  166. package/dist/assets/{ReimbursementApprovalRulesPage-C2zNa8dT-D_08-i4Q.js → ReimbursementApprovalRulesPage-BsCTIqUJ-CQyWyznw.js} +5 -5
  167. package/dist/assets/{ReimbursementDetailPage-B1o8ea57-pJYrfLLt.js → ReimbursementDetailPage-BbyxE2uL-DAWO6MN3.js} +16 -16
  168. package/dist/assets/{ReimbursementPromoPage-Df5QmXzC-CKWnZWeo.js → ReimbursementPromoPage-CyEgwqcf-D5kNu4r7.js} +10 -10
  169. package/dist/assets/{ReimbursementRoutes-RM0BTfix.js → ReimbursementRoutes-9PVCls-1.js} +3 -3
  170. package/dist/assets/{ReimbursementSetUpPage-D450RVsP-XThkQYrn.js → ReimbursementSetUpPage-RETPkEQd-zKPq6P2O.js} +9 -9
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-DwgKrhlQ-Dpv01EXR.js → ReimbursementsBulkReviewDrawerPage-DnmYl0FM-Cp5RXmHi.js} +1 -1
  172. package/dist/assets/{ReloadCard-D5cvzWxe-BiXLC8Nt.js → ReloadCard-Bdoo0XiI-CgAT4eqC.js} +4 -4
  173. package/dist/assets/{ReportTableViewSelector-Ig41fOPb-DWudlBCf.js → ReportTableViewSelector-Bc1K7mU_-CRH7B2Xe.js} +9 -9
  174. package/dist/assets/{ReportsPage-CRAVAUTO-B8oVNLjt.js → ReportsPage-BOTHMLWh-DYARtx-l.js} +7 -7
  175. package/dist/assets/ReportsRoutes-DAq_Kk7t.js +1 -0
  176. package/dist/assets/{RevenueChart-DtQu0KAn-8Nxk30mB.js → RevenueChart-DvyZ3aO7-D41DyD4f.js} +18 -18
  177. package/dist/assets/{ReviewDetailsPage-vui4TqeA-BHywFcJg.js → ReviewDetailsPage-BIMg1n2e-w51F2KtJ.js} +19 -19
  178. package/dist/assets/{ReviewOverlay-CUnL7H-a-C2Hax1dX.js → ReviewOverlay-CxwoiOLC-C8uqNFMN.js} +9 -9
  179. package/dist/assets/RewardsRoutes-2CDMw_SM.js +1 -0
  180. package/dist/assets/RoleWithToolTip-Ct3_VuDM-zYFjvA-a.js +22 -0
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-D_Cls2jC-DT2hV6fF.js → ScheduleDetailsFixedAssetsPage-DiL5Dozk-DjOTIJE4.js} +3 -3
  182. package/dist/assets/{ScheduleDetailsPage-DmSLuM8g-BJX_WigV.js → ScheduleDetailsPage-5FWpLRtd-DdkQQcuL.js} +3 -3
  183. package/dist/assets/{ScheduleSequenceTable-js9_P_Lo-C0aHTQ-B.js → ScheduleSequenceTable-R3-PsXES-F_YuqAKO.js} +8 -8
  184. package/dist/assets/{ScreenRoutes-Ckyy2m-9.js → ScreenRoutes-D-VUXgUA.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-DYRWWXcL-BJMCbqBu.js → SetUpAccountSection-CctbMmoK-BIwzDeUn.js} +16 -16
  186. package/dist/assets/{SettingsRoutes-HPPA3EWU.js → SettingsRoutes-BCFW0mUs.js} +7 -7
  187. package/dist/assets/{SetupPagesScreen-Cz2ybo_2.js → SetupPagesScreen-D_H5m3yT.js} +6 -6
  188. package/dist/assets/{SignIn-CUJkZb3S-Cj2EgQsz.js → SignIn-CmgmnRm4-BefvH7_D.js} +16 -16
  189. package/dist/assets/{SignInScreen-BSE9oghj.js → SignInScreen-DNDiNfUZ.js} +1 -1
  190. package/dist/assets/SignOutScreen-CGgsrBqm.js +9 -0
  191. package/dist/assets/{SpendManagementListViewPage-BieufnDb-Cqid6Xsk.js → SpendManagementListViewPage-CFUxCqkU-DWVJ8T34.js} +11 -11
  192. package/dist/assets/{SpendManagementPerTabPage-BmUp80QX-B1ZhgxKn.js → SpendManagementPerTabPage-C-kqNTci-61EpQHHf.js} +55 -55
  193. package/dist/assets/{SpendManagementSection-DKZNTYXT-D04hpJmz.js → SpendManagementSection-CIz4nE_w-CLtvB3Jo.js} +24 -24
  194. package/dist/assets/{StatementItem-Dyt5Q0eR-jB2YMdu5.js → StatementItem-vVtoBN2w-CGfe2rf-.js} +3 -3
  195. package/dist/assets/StatementsPage-As5WOnMR-C07ZcwWR.js +58 -0
  196. package/dist/assets/{StatusSwitcher-BfQ9VbBH-C2uXiIL4.js → StatusSwitcher-Bv-ozN6U-BMGDezKv.js} +4 -4
  197. package/dist/assets/{SubTabSwitcher-CzGiuhk3-C7cKUv_v.js → SubTabSwitcher-D7QeM6nb-C5vo1QLg.js} +3 -3
  198. package/dist/assets/SuccessAnimation-hijccO_0-CXGCZdn9.js +13 -0
  199. package/dist/assets/SummaryCard-C2qoTsAY-LkZgmc3l.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CyZxZdJB-DrITidSC.js → TaskDetailPage-QMk4DTDK-DuNonnMy.js} +39 -39
  201. package/dist/assets/TaskListScreen-DXCPcaMg.js +9 -0
  202. package/dist/assets/{TaskManagementPage-ucVAdv7x-Msj3UnnC.js → TaskManagementPage-BJwp32Ph-D-u68mRD.js} +64 -64
  203. package/dist/assets/TaskRoutes-Biii2LFo.js +9 -0
  204. package/dist/assets/{TimeRangeSwitcher-C3jXm39I-fOK0S_yE.js → TimeRangeSwitcher-D00bDDhP-BG1zi2IK.js} +2 -2
  205. package/dist/assets/{TimeframeSwitcher-CcYg-YQJ-DfqszobX.js → TimeframeSwitcher-DA99HdHt-BQziHQmj.js} +6 -6
  206. package/dist/assets/{TimeframeSwitcherWithToggle-w4YJno-p-mLBmOb3v.js → TimeframeSwitcherWithToggle-DyggDIQj-BfhUUfrK.js} +2 -2
  207. package/dist/assets/{TopExCard-D2PRxvFc-3B8t-gu0.js → TopExCard-Z1WabZ8c-CBwSMJxd.js} +6 -6
  208. package/dist/assets/{TopExDetailPage-C0uHdU7N-CImodBfZ.js → TopExDetailPage-CzHG4f9E-gwAj-hq_.js} +18 -18
  209. package/dist/assets/{TransactionActivityLogPage-CqYb19tY-MGx1R4Ww.js → TransactionActivityLogPage-CGKnjNfU-BApvDmwN.js} +1 -1
  210. package/dist/assets/TransactionDetailPage-1-mLOWSz-rzQ235mE.js +903 -0
  211. package/dist/assets/TransactionDetailRoutes-C36yIgf5.js +1 -0
  212. package/dist/assets/TransactionDetailScreen-B9QxqSWW.js +5 -0
  213. package/dist/assets/TransactionList-BB-xoIGm-Cfa3U35Q.js +153 -0
  214. package/dist/assets/{TransactionListBig-BrDWayQS-BY28Hg37.js → TransactionListBig-C5Sf5Xh--ILOBUs5F.js} +14 -14
  215. package/dist/assets/TransactionListPage-Cj7h1Ros-C0trpcRO.js +35 -0
  216. package/dist/assets/TransactionListRoutes-DYDLTelW.js +1 -0
  217. package/dist/assets/{TransactionVendorDetailPage-CQQuAR6V-DBSEzxOy.js → TransactionVendorDetailPage-SsrSOk3O-DvVZeIE6.js} +13 -13
  218. package/dist/assets/{TransferDrawerPage-DfFm-1-3-BhX0O4LO.js → TransferDrawerPage-BvKZ7vHF-gusMX693.js} +21 -21
  219. package/dist/assets/{TreasuryOverviewPage-CKSanlUG-CXaeORdV.js → TreasuryOverviewPage-DwvjMR4_-v_PwtYfB.js} +15 -15
  220. package/dist/assets/{TreasuryPromoPage-Dyip3H10-C2tUOOp5.js → TreasuryPromoPage-CtTFvSQW-CBUcln_7.js} +14 -14
  221. package/dist/assets/TreasuryRoutes-BL7M49IT.js +45 -0
  222. package/dist/assets/TreasuryStatementsPage-Catz8shX-B10cgIs5.js +58 -0
  223. package/dist/assets/{TreasuryTaxLetterPage-D3cV3a-8-ZsZIzn5I.js → TreasuryTaxLetterPage-D8hzCL5o-8bU6d1vy.js} +4 -4
  224. package/dist/assets/TrendChart-Bnp4Pcdf-CsoTufL2.js +16 -0
  225. package/dist/assets/{TrendWithTransactions-It4KDov3-DY_vu1lx.js → TrendWithTransactions-3D1FvM8G-Dwn_v3ES.js} +7 -7
  226. package/dist/assets/{UncategorizedAccountsMappingPage-BxBz2Ce0-BJNWUYth.js → UncategorizedAccountsMappingPage-DbyY-dYB-DJ-xU1nq.js} +5 -5
  227. package/dist/assets/{UnitIntegrationPage-gVgsk2ji-D4-73jRv.js → UnitIntegrationPage-CTzme1te-Kzmir-JV.js} +4 -4
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-C5m8jqup-BRodE0Ls.js → UploadAdditionalDocumentOverlay-Wl4Spdpn-vi85vqk-.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-DRwBzOwn-DD_9hpy1.js → Vendor2FAPopup-D0zYKkIv-Corqbsks.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-YYX9aQdw-DWmocppw.js +1 -0
  231. package/dist/assets/{VendorDetailPage-jci1LqX3-BHXhYJF0.js → VendorDetailPage-Br9wIOnI-D1eJIjzb.js} +5 -5
  232. package/dist/assets/VendorDomesticWireDetailsPage-BpPgQRHI-BpbupYob.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-8pYT3u-X-BDiOOpIL.js → VendorFiling1099EditablePage-himC7iD3-DuTr9_9d.js} +24 -24
  234. package/dist/assets/{VendorFirstReviewPage-CafakxA1-DGimiBs4.js → VendorFirstReviewPage-BbknTCBD-DB1g9Qot.js} +15 -15
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DJeI-ZFW-Cgs5W7gM.js → VendorInternationalWireDetailsPage-CS595Xgc-CmEESHX6.js} +9 -9
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-yhTjWXvw-D43LaVfJ.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-YX2g8ETe-YNhvXO1d.js → VendorsAccountsSection-CgSJu8wq-CW2zmnnP.js} +4 -4
  238. package/dist/assets/{VendorsRoutes-n5RcX0Vf.js → VendorsRoutes-C4N6gRBp.js} +23 -23
  239. package/dist/assets/{VerifyDevice-DeHW4GAi-ejYUh2le.js → VerifyDevice-Dvf0JsNN-CSGpw0v_.js} +2 -2
  240. package/dist/assets/VideoPlayer-VAzOGCDL-BYL37uoQ.js +77 -0
  241. package/dist/assets/{VideoPopup-CUP7ctgS-Cy6Bpggh.js → VideoPopup-BqvZ-XIh-DBw1PWZ3.js} +5 -5
  242. package/dist/assets/WiseConfirmationScreen-DNU9Mqxk.js +12 -0
  243. package/dist/assets/{ZeniAccountDetailPage-7NdkdSg3-trkVyM14.js → ZeniAccountDetailPage-GcwTJdB8-_6oIn_wc.js} +19 -19
  244. package/dist/assets/{ZeniAccountListViewPage-B-cs_xnc-DkcNyo5a.js → ZeniAccountListViewPage-CdwO0Duy-G5U6kbnQ.js} +35 -35
  245. package/dist/assets/{ZeniAccountNavBarPieces-CjRip0v9-Bv00yUCA.js → ZeniAccountNavBarPieces-BrSIfL36-CgdxCVoA.js} +5 -5
  246. package/dist/assets/{ZeniAccountPromoPage-BikXtkeH-BWgu0hz6.js → ZeniAccountPromoPage-JrcedQYB-BtfY6t2a.js} +20 -20
  247. package/dist/assets/{ZeniAccountRoutes-BdqNU648.js → ZeniAccountRoutes-uUgaZh13.js} +11 -11
  248. package/dist/assets/{ZeniAccountSetupPage-BRBsijVt-BBTbKTOF.js → ZeniAccountSetupPage-TKBfbgzJ-Ovrdcrt5.js} +1 -1
  249. package/dist/assets/ZeniAccountStatementScreen-CPFcfx6A.js +9 -0
  250. package/dist/assets/{ZeniAvatar-pjdoqfWE-DmYSRpHD.js → ZeniAvatar-Bzhq25CU-DO1x3yqH.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-DDGvdmLF-CPeY3qcE.js → ZeniCopyright-DglqrTpl-iRqjfc19.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-K3F-G3-0-pGSyeWuf.js → ZeniDatePicker-BHXPxPnI-CRe89Wst.js} +6 -6
  253. package/dist/assets/{ZeniTransferAmountSlider-Cdg0TlHk-B_jBC96s.js → ZeniTransferAmountSlider-BcaZZuAw-BeVI8Qc_.js} +2 -2
  254. package/dist/assets/{accountMappingHelper-CMy_dzCB.js → accountMappingHelper-BVO1DeGB.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-DZDSR_90.js → add-to-wallet-DgdBD8_G-CV8RMwhX.js} +1 -1
  256. package/dist/assets/{analytics-Buyhprzd.js → analytics-CZ3wLx3P.js} +1 -1
  257. package/dist/assets/{analyticsHelper-D9xdJK4b-DkISjLhy.js → analyticsHelper-CAYdbjhS-CB8PHHr8.js} +1 -1
  258. package/dist/assets/{analyticsHelper-CTH_kB-0.js → analyticsHelper-RqmdZ4w4.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CxvC0Cnw.js → arrow-south-east-round-PEovUgvH-DB6pjtdO.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-BXD0aAHO.js → auto-transfer-rule-mbafm5D3-CrxycPHV.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-tC3a4UX-.js → avatar-Dz7aEm3d-B1h__iIh.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-B3HKnrvN.js → bank-letter-BOcVjN6J-B0RfZgcz.js} +1 -1
  263. package/dist/assets/{calculateSize-zPet_z9g-UKcDxIjM.js → calculateSize-B2w5JPEU-BqvYgtxt.js} +1 -1
  264. package/dist/assets/{chartTypes-Dq3hUz_T-DlStt0to.js → chartTypes-CD3vrBsI-4eICteeW.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-BFtrn8ev.js → clock-CJkylEKt-o4osYW2f.js} +1 -1
  266. package/dist/assets/common-BpxEACHl-SqfXrkK_.js +1 -0
  267. package/dist/assets/{commonDimensions-CGHIQ2To-BVJ-7SGP.js → commonDimensions-Oz1tdAcx-Cf4qEJmU.js} +1 -1
  268. package/dist/assets/{commonTypes-BAJPaPYg-qcmBeNCl.js → commonTypes-5tEXwrX4-F6mC0EfI.js} +1 -1
  269. package/dist/assets/{core-5sxMy3sZ.js → core-CVVdXRky.js} +1 -1
  270. package/dist/assets/{dash.all.min-CTYaOyx7.js → dash.all.min-C2vle8BQ.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-BXr_Lgnt.js → decodeURIComponentSafe-Da8IsQO4.js} +1 -1
  272. package/dist/assets/{dnd-Cfx_ai1S.js → dnd-CcRW__D6.js} +3 -3
  273. package/dist/assets/{dollar-round-D18u7nlm-BAPPb_YV.js → dollar-round-D18u7nlm-BkHqkGHG.js} +1 -1
  274. package/dist/assets/{downloadPdf-BI2Y41h2-C3b-r1N_.js → downloadPdf-Dsuxeias-CPZEuUrl.js} +1 -1
  275. package/dist/assets/{empty-CDKH4CBD.js → empty-BHbH22vT.js} +1 -1
  276. package/dist/assets/{empty-DLdEFiEn.js → empty-M26y6UyA.js} +1 -1
  277. package/dist/assets/epic-CiCSO3K5.js +2 -0
  278. package/dist/assets/{filter-cZIFUNvj-DR0oScp6.js → filter-cZIFUNvj-BeqNUW3e.js} +1 -1
  279. package/dist/assets/getLocaleForTenant-DBVI4ovb.js +1 -0
  280. package/dist/assets/{gift-box-Cmt9OgIZ-CLkhO8vB.js → gift-box-Cmt9OgIZ-CR0qdQnT.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BXfLioW6.js → graphic-no-data-l-DU4J8fDt-CslJm2fU.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DESi1ZUm.js → graphic-no-data-net-burn-l-CzmycA0m-Cj977U7E.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-Cw8-rpU_.js → handshake-BPg58FML-tq0X0Kiz.js} +1 -1
  284. package/dist/assets/{helper-z5-P4a-y-DRvyDGbW.js → helper-Ckm10Uko-U81O1HXL.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-DiF-LRfD.js → hyperlink-DQyCeXx2-D504LM2b.js} +1 -1
  286. package/dist/assets/{index-XrFKA72B.js → index-BZOQWoRX.js} +1 -1
  287. package/dist/assets/{index-BocbTmE1.js → index-BngCC-zG.js} +2513 -2513
  288. package/dist/assets/{index-a2iFhnhM.js → index-ClO_SXUU.js} +1 -1
  289. package/dist/assets/{index-Bsc8ZpcH.js → index-DiKwyzh3.js} +1 -1
  290. package/dist/assets/{index-DCFJ_6wy.js → index-jI4vB8VC.js} +1 -1
  291. package/dist/assets/{index-B6cTzWKI.js → index-uxYir9Bm.js} +1 -1
  292. package/dist/assets/{lexical-BAlvZZhY.js → lexical-DPtIv0jk.js} +1 -1
  293. package/dist/assets/{liveblocks-BsQBjN-0.js → liveblocks-CHs9GmLG.js} +17 -17
  294. package/dist/assets/{lottie-C2R6rGxS.js → lottie-D68Xb3aQ.js} +1 -1
  295. package/dist/assets/mapLoadingInProgressToTreeNode-jcHEi-mv-cRyD83dc.js +1 -0
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-dsBogxKz-DAKgnUEj.js → mapSectionWithAcOnlyToTreeNode-Cgyt68f3-C2AYKRBA.js} +1 -1
  297. package/dist/assets/{mapSpacerToTreeNode-DMDEaLzQ-lo7UbRO0.js → mapSpacerToTreeNode-XgUp1xUb-VRJ6un-L.js} +1 -1
  298. package/dist/assets/{mapTimeframeBalancesToTreeNode-CW_wzI5T-BaeuL7EQ.js → mapTimeframeBalancesToTreeNode-Bre8FfBF-XT9mQqpQ.js} +1 -1
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-DOyCX6ij-CGvd2Wmc.js +1 -0
  300. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-D2IvFyR5-BVVmyoym.js +1 -0
  301. package/dist/assets/{media-player-BX2lrCiw.js → media-player-D-MhIu5T.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-C1UnGCa2.js → money-2cg1MuG4-DZxnWrWu.js} +1 -1
  303. package/dist/assets/{mui-C_CXevf3.js → mui-DyGc7Pg8.js} +3 -3
  304. package/dist/assets/{page-detail-CWX5S47F-DCvximFz.js → page-detail-CWX5S47F-CXX81aXy.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-BBMfUdRp.js → page-summary-D7_VQHwN-V_V9hbFl.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-Kk0Lc2Dj.js → panelSelectedMixin-Cddsb26L-bdcPTs-R.js} +1 -1
  307. package/dist/assets/{pathToGoBack-D5dFRCuJ.js → pathToGoBack-CsNBJVc2.js} +1 -1
  308. package/dist/assets/pdf-BxqSCr4b.js +13 -0
  309. package/dist/assets/{pdf-lib-BLLlynNv.js → pdf-lib-jHogAi_2.js} +1 -1
  310. package/dist/assets/{plaid-Yyr3DBd8.js → plaid-xWfKHEqu.js} +1 -1
  311. package/dist/assets/{pusher-CQAuuZH-.js → pusher-pngVK7xY.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-HLL7c7Ix.js → radio-default-CiSgisfh-sLqGTxQv.js} +1 -1
  313. package/dist/assets/{react-CEO525cE.js → react-B3z4onjT.js} +1 -1
  314. package/dist/assets/{react-B9pn5zl_.js → react-BC4BTRLG.js} +1 -1
  315. package/dist/assets/{react-COI-5ihT.js → react-BElDOWJc.js} +1 -1
  316. package/dist/assets/{react-BFykbpKw.js → react-BuoJ-wtg.js} +1 -1
  317. package/dist/assets/{react-YbLjyGgM.js → react-CuUL9Ybl.js} +1 -1
  318. package/dist/assets/{react-D7RjW9MW.js → react-DpxbyLPn.js} +1 -1
  319. package/dist/assets/{react-BmJ9wc4M.js → react-DyZ9MM_3.js} +3 -3
  320. package/dist/assets/{react-BEZA9UfV.js → react-mv5GPJR4.js} +1 -1
  321. package/dist/assets/{recharts-CTWfsY-L.js → recharts-CMjB5mmq.js} +36 -36
  322. package/dist/assets/{routePaths-_EQ7HBkZ.js → routePaths-B2Ez8xiG.js} +1 -1
  323. package/dist/assets/{sentry-DINNQYpi.js → sentry-CHlUi953.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-DFaW8QSC.js → shield-DOlUxcFf-u1WG480f.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-05QrBanM.js → spend-limit-D6SyboD4-DKcfJ6au.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-aLNB35t7-DBx2vR3D.js +1 -0
  327. package/dist/assets/{toChartData-BUf5HHim-BMyIU8Hn.js → toChartData-DUL6vnzJ-CHvhrhF4.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-kO6lyet9.js → transaction-placeholder-CpOwZAMG-BRNI97Lv.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-CAOnjxt9.js → undo-b_3XZ5CX-CHRencVP.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-fA9hPtxv.js → unlock-BPWn2I5L-BfuVrsIJ.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BbiwxEOu.js → upload-reimbursement-receipt-O2N8vcO7-vYnAE0FP.js} +1 -1
  332. package/dist/assets/{uploadAttachment-DJA30WSD-Mme28mRP.js → uploadAttachment-Ck4wivBR-D3iFmRh8.js} +18 -18
  333. package/dist/assets/{uploadReceipts-CqDftTRt-DnJMDyN6.js → uploadReceipts-CIgkuVpu-DQDaRUPe.js} +1 -1
  334. package/dist/assets/{url-dGBmezhj.js → url-7B3Yv5Zc.js} +1 -1
  335. package/dist/assets/{url-BnrMVJye.js → url-CDjIygfF.js} +1 -1
  336. package/dist/assets/{useDeviceId-Dhw-GVYT.js → useDeviceId-CPhY1yO5.js} +1 -1
  337. package/dist/assets/useInitialThreadRequest-D3BmEojQ.js +1 -0
  338. package/dist/assets/{useLongPress-GCK2COYQ-CI59nlOM.js → useLongPress-GCK2COYQ-C-ro8Pxu.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-Bi23t2Q-.js → usp-line-BBd1wKwW-BHKdiO38.js} +1 -1
  340. package/dist/assets/{utils-DmE88LS_.js → utils-BpkJZQMI.js} +12 -12
  341. package/dist/assets/withTransactionSidePanel-D4jXMzEn.js +8 -0
  342. package/dist/assets/{zeni-epic-state-a7Sj5mjO.js → zeni-epic-state-D8D2Skiq.js} +6 -6
  343. package/dist/assets/{zeni-icon-only-COM3FcNM.js → zeni-icon-only-BUIVMYdQ.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +4 -4
  346. package/dist/assets/AccountInfoPage-B8upbXj9-Cm42EUIq.js +0 -18
  347. package/dist/assets/AccountInfoPageContent-CKpeDot5-CwoUlvIm.js +0 -149
  348. package/dist/assets/AddAddressForCardDrawer-riOPLnxb-DAb8sz-Z.js +0 -6
  349. package/dist/assets/AddressRoutes-CO2FKDgK.js +0 -1
  350. package/dist/assets/AddressScreen-DsuZFaVf.js +0 -9
  351. package/dist/assets/AgingReportsPage-D9I9afnB-Df3hrLUY.js +0 -79
  352. package/dist/assets/ApprovalRulesSettingsPage-DVGvJsQG-yl1UuAvx.js +0 -47
  353. package/dist/assets/ArAgingChart-Tcu0Lja_-BWNKgMZE.js +0 -24
  354. package/dist/assets/BalancesInsightWithToolTip-tiQUQUbX-DMW3pWLJ.js +0 -38
  355. package/dist/assets/BillPayApprovalRoutes-5Y0msu-c.js +0 -1
  356. package/dist/assets/ChargeCardPromoPage-Cz3rNFwM-CdxjjcEa.js +0 -222
  357. package/dist/assets/CheckDepositDrawerPage-D7_usOVn-DA-Kombi.js +0 -206
  358. package/dist/assets/CompanyPassportScreen-Dl29U7F0.js +0 -1
  359. package/dist/assets/CompleteProfile-CsbsHQ0p-DmLd2177.js +0 -52
  360. package/dist/assets/ConfettiBurst-duD341Gp-CKS6HfNq.js +0 -1
  361. package/dist/assets/ConnectionAuthScreen-CtmFWvaS.js +0 -11
  362. package/dist/assets/CustomerOnboardingAuthScreen-DtvN_x2S.js +0 -1
  363. package/dist/assets/CustomerOnboardingContainerPage-DVL4s-eV-uJRgyQW8.js +0 -1
  364. package/dist/assets/CustomerOnboardingRoutes-C_QLwzau.js +0 -23
  365. package/dist/assets/DashboardSidebarBackgroundAnimation-B3dtVAe2-DcsdDEM2.js +0 -12
  366. package/dist/assets/DepositAccTransactionItem-YuSXjbLh-DkrFIYaS.js +0 -76
  367. package/dist/assets/DomesticWireDetailScreen-CV-2twy7.js +0 -18
  368. package/dist/assets/DrawerScreen-0WDRSJz6.js +0 -1
  369. package/dist/assets/EditPeoplePage-8DalSMWH-CybAz5BL.js +0 -55
  370. package/dist/assets/EntityDetailPage-fmWuxHTZ-zOCr7HwT.js +0 -18
  371. package/dist/assets/EntityDetailRoutes-r6uNQDsF.js +0 -1
  372. package/dist/assets/ExpenseAutomationPage-4LJefgNh-n1--5-UE.js +0 -3628
  373. package/dist/assets/ExpenseAutomationRoutes-Dd80KoVV.js +0 -20
  374. package/dist/assets/FeaturePreviewScreen-D2Pa-R10.js +0 -1
  375. package/dist/assets/InsightsCardStack-uJWMkIZL-BDZTXUwm.js +0 -79
  376. package/dist/assets/InternationalWireVerificationPage-Cr3sDrT--Dj5HT769.js +0 -65
  377. package/dist/assets/InvitePeoplePage-BT_YVCP4-CQRb2c-r.js +0 -12
  378. package/dist/assets/LabeledAddressValueField-F9kvUR_r-9ELTRqNI.js +0 -45
  379. package/dist/assets/MagicLinkACHDetailsPage-lAAwAtH7-D8E0BCBV.js +0 -1
  380. package/dist/assets/MagicLinkDomesticWireDetailsPage-cv823ASo-Br4bjkHP.js +0 -1
  381. package/dist/assets/MagicLinkInternationalWireDetailsPage-C_SjsgC9-Dt-hi6Za.js +0 -1
  382. package/dist/assets/MagicLinkRoutes-DAnRUF47.js +0 -72
  383. package/dist/assets/MagicLinkSignInScreen-BRdR8FPq.js +0 -12
  384. package/dist/assets/MailingDetailsSection-9_XLl4bT-Bq5v10Od.js +0 -21
  385. package/dist/assets/MobileAppDrawer-DXy0Oi_h.js +0 -1
  386. package/dist/assets/MyProfileSettingsPage-BUMIjZYc-CAlzma3h.js +0 -85
  387. package/dist/assets/NavigationDots-DCpslVnm-D-4SKVAz.js +0 -15
  388. package/dist/assets/NoDataChart-9-bhq204-BNHp8Nld.js +0 -26
  389. package/dist/assets/NotFoundScreen-MU1vvTl3.js +0 -1
  390. package/dist/assets/NotificationRoutes-CiTIiIjp.js +0 -1
  391. package/dist/assets/NotificationsListConfig-CylnViXd-DEcj9I_Q.js +0 -1
  392. package/dist/assets/OverlayContainerPage-CkUYOhlh-C1amAlX0.js +0 -11
  393. package/dist/assets/PandLWithForecastRoutes-t6sqNQ0M.js +0 -1
  394. package/dist/assets/PeopleRoutes-DvMa0FHX.js +0 -22
  395. package/dist/assets/PerformanceRoutes-C97G2NlX.js +0 -1
  396. package/dist/assets/ReferralListScreen-DJHg0qdR.js +0 -5
  397. package/dist/assets/ReimbursementApprovalRoutes-5hvNi1ri.js +0 -1
  398. package/dist/assets/ReimbursementApprovalRuleDetailScreen-CE15OHBL.js +0 -1
  399. package/dist/assets/ReportsRoutes-yGE_MThE.js +0 -1
  400. package/dist/assets/RewardsRoutes-BLdquuw-.js +0 -1
  401. package/dist/assets/RoleWithToolTip-x2rnvWn9-CndfBCzZ.js +0 -22
  402. package/dist/assets/SignOutScreen-CDL-h93X.js +0 -9
  403. package/dist/assets/StatementsPage-CbtnJM5y-y3-8Ovdn.js +0 -58
  404. package/dist/assets/SuccessAnimation-DA3343II-B6vDBJ0_.js +0 -13
  405. package/dist/assets/SummaryCard-D61xzK3a-CfR23TFg.js +0 -1
  406. package/dist/assets/TaskListScreen-DwAEl1NC.js +0 -9
  407. package/dist/assets/TaskRoutes-Bz1uRNCx.js +0 -9
  408. package/dist/assets/TransactionDetailPage-D-NR_yZG-CxUKWZX4.js +0 -921
  409. package/dist/assets/TransactionDetailRoutes-CpDSsFwB.js +0 -1
  410. package/dist/assets/TransactionDetailScreen-DfuoY_gg.js +0 -5
  411. package/dist/assets/TransactionList-f6yB-byH-FETk5Iif.js +0 -157
  412. package/dist/assets/TransactionListPage-C-Z62y2d-DONuCLTJ.js +0 -35
  413. package/dist/assets/TransactionListRoutes-Bw5edFOJ.js +0 -1
  414. package/dist/assets/TreasuryRoutes-j5E27301.js +0 -45
  415. package/dist/assets/TreasuryStatementsPage-mljf2Van-DcI9l-or.js +0 -58
  416. package/dist/assets/TrendChart-fFlHCvNx-QKskVgw6.js +0 -16
  417. package/dist/assets/VendorACHDetailsPage-By2Ya2bv-Cwsi_OAL.js +0 -1
  418. package/dist/assets/VendorDomesticWireDetailsPage-uIDE-n5v-uvktM6eq.js +0 -1
  419. package/dist/assets/VendorInternationalWireSwiftDetailsPage-Co-5nTam-xgR7Rh7n.js +0 -1
  420. package/dist/assets/VideoPlayer-DxIfGrPu-C3cW7OOT.js +0 -77
  421. package/dist/assets/WiseConfirmationScreen-CJyMiRdY.js +0 -12
  422. package/dist/assets/ZeniAccountStatementScreen-DVjRkXeL.js +0 -9
  423. package/dist/assets/common-kiEGPQ33-BvLj55nP.js +0 -1
  424. package/dist/assets/epic-Bn4m6PJ6.js +0 -2
  425. package/dist/assets/getLocaleForTenant-BPL6tSgt.js +0 -1
  426. package/dist/assets/mapLoadingInProgressToTreeNode-DrC2Zs2y-B2Wt05iy.js +0 -1
  427. package/dist/assets/mapTimeframeBalancesToTreeNode-DvfKBCs5-Dl1ySEwF.js +0 -1
  428. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-CGdkzFsp-CUYmne9-.js +0 -1
  429. package/dist/assets/pdf-DyB_VHQx.js +0 -13
  430. package/dist/assets/toCOABalancesWithID-P7keEtAg-CVzjqCh4.js +0 -1
  431. package/dist/assets/useInitialThreadRequest-GWflkp6K.js +0 -1
  432. package/dist/assets/withTransactionSidePanel-D4o5a7Hq.js +0 -8
@@ -1,5 +1,5 @@
1
- import{v as Ot,V as t,di as Ba,X as Ra,y as za,ba as Ma,bb as Na,dl as La,dm as Fa,bF as Oa,a7 as Ea,x as y,eP as pt,eQ as Wa,o as i,eR as Za,eS as _a,eT as Ua,a5 as Ce,eU as Ka,E as g,a_ as mt,aM as ut,cU as yt,bR as ht,bS as bt,bT as xt,fS as Va,fT as Ga,fU as Xa,fV as Ha,d2 as j,fW as $,e_ as A,d8 as k,eY as qa,w as gt,e as re,eZ as Et,f4 as Ya,e$ as Qa,f0 as Ja,fX as ei,fY as ti,a9 as ai,i as ft,bo as De,be as ii,fZ as N,O as ni,j as s,u as li,bx as oi,bf as ri,a8 as si,f_ as di,f5 as wt,N as ci,cu as pi,bH as mi,f$ as Tt,ar as ui,at as yi,n as hi,bq as Wt,cv as bi,g0 as xi,C as Zt,t as gi,ap as fi,aR as wi,g1 as Ti,l as vi}from"./index-BocbTmE1.js";import{a as p}from"./sentry-DINNQYpi.js";import{n}from"./mui-C_CXevf3.js";import{c4 as Di,bG as Ii,c5 as ji,Gc as $i,c3 as Ai,bU as ki,bs as Si}from"./zeni-epic-state-a7Sj5mjO.js";import{o as Ci,t as Pi}from"./LowBalancePopup-C2vHKMNF-CMEceag2.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="9affbcc6-ad8e-4119-8dc7-4bcf040aedfb",e._sentryDebugIdIdentifier="sentry-dbid-9affbcc6-ad8e-4119-8dc7-4bcf040aedfb")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:_t}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:W,isAdmin:se,isRealTimeApprovalEnabled:Ut,isInternationalPaymentShaVsOurEnabled:Kt,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Ht,redirectToBillsScreen:Q,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Yt,onAttachmentClick:Fe,saveBillDetails:Qt,discardOutsideZeniPaymentData:Jt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[We,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[_e,J]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:H,isLoading:C}=La(),Ue=p.useMemo(()=>x==null?[]:H.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[H,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&H.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,H,C,te,ee]);const Ke=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ke.current&&(Ke.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,He]=p.useState(!1),[qe,Ye]=p.useState(!1),Qe=()=>Xe(!1),Je=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{Q()},[Q]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),Q())},[e,Q,Me]),p.useEffect(()=>{Je==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Je,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Ht(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Wa,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),Y=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!Y&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{He(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),_=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),_e===!0&&J(!1),_!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Qi,{windowSize:l,ref:ct,children:[t.jsx(_a,{anchor:"right",open:ma,onClose:Qe,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Ua,{companyName:Ka(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Qe})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:Ue,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:Ue,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[_e?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{J(!1),et()},onClickAway:()=>{J(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Jt(),He(!1),qe&&Ye(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Qt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(Y,e,_),t.jsx(Xa,{sectionId:Ha,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Ji,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:_!=null&&w?.code==="pending_approval"?_t.addMoney:_})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Kt&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Ui,{children:Ya(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?Wi(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
- ${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(_i,{children:Ia})}),d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(xi,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Ja(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:Qa(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(hn,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ei,{onAttachmentClick:Fe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ti,{amount:ga,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule: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:se,signedInUserId:W?.userId,showRealTimeApproval:Ut,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:ea,onSaveRealTimeApprovals:ta},historicActivities:e.billHistory.activities}),t.jsx(mn,{})]}),e.transactionDetails?.vendor==null||he||e.transactionDetails.isDeleted?null:t.jsx(ai,{separatorStyle:{marginRight:i.sp4},showPrimaryButton:K||h,showCancel:!K&&h,cancelBtn:{label:rt?a.buttons.reject:a.buttons.rejectBill,isLoading:Ve==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ge("rejected"),_!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ei(K,rt),isLoading:Ve==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?st:()=>{_!=null?J(!0):dt()},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(Ki,{children:t.jsxs(Yi,{windowSize:l,children:[!Y&&We?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-container"),children:[Z!=="processing"&&lt?t.jsx(U,{onClick:()=>{ae({title:P?a.recurringBill.deleteRecurringTitle:a.deleteBillTitle,description:P?a.recurringBill.deleteRecurringAlertText:a.deleteAlertDescription,primaryButtonText:a.delete,secondaryButtonText:a.cancel}),G(!0)},"data-testid":g("delete-bill-action-item"),children:a.buttons.deleteBill}):null,Z!=="processing"||P?null:t.jsx(U,{onClick:()=>{ae({title:a.cancelBillTitle,description:a.cancelAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-bill-action-item"),children:a.buttons.cancel}),Z==="processing"&&ot?t.jsx(U,{onClick:()=>{ae({title:P?a.recurringBill.cancelAndDeleteRecurringTitle:a.cancelAndDeleteBillTitle,description:P?a.recurringBill.cancelAndDeleteRecurringAlertText:a.cancelAndDeleteAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-and-delete-bill-action-item"),children:a.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(U,{onClick:()=>{Ye(!0),st()},"data-testid":g("mark-as-paid-action-item"),children:a.paymentOutsideZeni.markAsPaid}):null]})}):null,Ze?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(U,{onClick:()=>{z.trackRetryClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),aa()},"data-testid":g("retry-bill-action-item"),children:a.buttons.retry}):null,Te?t.jsx(U,{onClick:()=>{z.trackRefundClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ae({title:a.zeniAssist.refundTitle,description:a.zeniAssist.refundDescription,primaryButtonText:a.zeniAssist.proceed,secondaryButtonText:a.cancel}),pe(!0)},"data-testid":g("refund-bill-action-item"),children:a.buttons.refund}):null]})}):null,t.jsxs(qi,{windowSize:l,children:[$a===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:ve?a.zeniAssist.tooltip:a.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":g("other-actions-icon-container"),children:ve?t.jsx(xa,{}):t.jsx(Gi,{})})}):null,Y||fe!==!0?null:t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Ni,placement:"top",children:t.jsx(Hi,{onClick:et,"data-testid":g("edit-bill-icon-container"),children:t.jsx(Xi,{})})}),!Y&&ka===!0&&Sa?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Mi,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":g("more-details-icon-container"),children:t.jsx(Vi,{onClick:()=>de(!We)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(ii,{isDrawerOpen:ra,allowComposer:!0,drawerTitle:Li,threads:H,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Ca,onThreadClick:sa,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${i.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ee.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Bn=e=>{const b=Ot(),h=e.billDetails.transactionDetails?.id,E=e.isBillPayCommentingEnabled&&h!=null,W=b.currentTenant?.companyId;if(!E||W==null||h==null)return t.jsx($t,{...e});const se=`dashboard_${W}`;return t.jsx(Ba,{roomId:se,filter:{application:"dashboard",companyId:W,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Fi=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Si(),"date")===!0?{value:Pe.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[h].color,bgColor:N[h].bgColor,borderColor:N[h].borderColor}},Oi=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(bn,{windowSize:e,children:[t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.accountNumber}),t.jsx(Nt,{children:b.withdrawFrom!=null?Et(b.withdrawFrom,e):c})]}),t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.amount}),t.jsx(Nt,{children:h!=null?Ce("0,0[.]00",h):S})]})]})},Ei=(e,b)=>e?a.paymentOutsideZeni.markAsPaid:b?a.buttons.approve:a.buttons.approveBill,Wi=e=>{const b=e.paymentMode,h=a.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const E=a.paymentOutsideZeni.paymentModeOptions.find(W=>W.value===b)?.label;return`${h} ${zi} ${E}`},Zi=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:i.sp5,marginBottom:i.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const E=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:i.sp2,marginBottom:i.sp3},title:`${_t.lowBalanceIn.replace("__account__",E)}`,description:h.replace("Low balance! ","")})}return null},_i=n.div``,Ui=n.div``,Ki=n.div`
1
+ import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bo as De,be as ii,fS as N,O as ni,m as s,u as li,bx as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bq as _t,cv as bi,fV as xi,C as Zt,z as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-BngCC-zG.js";import{a as p}from"./sentry-CHlUi953.js";import{n}from"./mui-DyGc7Pg8.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-D8D2Skiq.js";import{o as Ci,t as Pi}from"./LowBalancePopup-1727S1ri-CiFxrWZ6.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="492dab8c-1978-4036-b95d-c2350251da5f",e._sentryDebugIdIdentifier="sentry-dbid-492dab8c-1978-4036-b95d-c2350251da5f")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
+ ${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Ki,{children:Ia})}),d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(xi,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Qa(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:Ja(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(hn,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ei,{onAttachmentClick:Fe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ti,{amount:ga,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:ea,onSaveRealTimeApprovals:ta},historicActivities:e.billHistory.activities}),t.jsx(mn,{})]}),e.transactionDetails?.vendor==null||he||e.transactionDetails.isDeleted?null:t.jsx(ai,{separatorStyle:{marginRight:i.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?a.buttons.reject:a.buttons.rejectBill,isLoading:Ve==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ge("rejected"),K!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ei(U,rt),isLoading:Ve==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{K!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ui,{children:t.jsxs(Hi,{windowSize:l,children:[!H&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-container"),children:[Z!=="processing"&&lt?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.deleteRecurringTitle:a.deleteBillTitle,description:P?a.recurringBill.deleteRecurringAlertText:a.deleteAlertDescription,primaryButtonText:a.delete,secondaryButtonText:a.cancel}),G(!0)},"data-testid":g("delete-bill-action-item"),children:a.buttons.deleteBill}):null,Z!=="processing"||P?null:t.jsx(W,{onClick:()=>{ae({title:a.cancelBillTitle,description:a.cancelAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-bill-action-item"),children:a.buttons.cancel}),Z==="processing"&&ot?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.cancelAndDeleteRecurringTitle:a.cancelAndDeleteBillTitle,description:P?a.recurringBill.cancelAndDeleteRecurringAlertText:a.cancelAndDeleteAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-and-delete-bill-action-item"),children:a.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(W,{onClick:()=>{He(!0),st()},"data-testid":g("mark-as-paid-action-item"),children:a.paymentOutsideZeni.markAsPaid}):null]})}):null,Ze?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),aa()},"data-testid":g("retry-bill-action-item"),children:a.buttons.retry}):null,Te?t.jsx(W,{onClick:()=>{z.trackRefundClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ae({title:a.zeniAssist.refundTitle,description:a.zeniAssist.refundDescription,primaryButtonText:a.zeniAssist.proceed,secondaryButtonText:a.cancel}),pe(!0)},"data-testid":g("refund-bill-action-item"),children:a.buttons.refund}):null]})}):null,t.jsxs(qi,{windowSize:l,children:[$a===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:ve?a.zeniAssist.tooltip:a.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":g("other-actions-icon-container"),children:ve?t.jsx(xa,{}):t.jsx(Gi,{})})}):null,H||fe!==!0?null:t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Ni,placement:"top",children:t.jsx(Yi,{onClick:et,"data-testid":g("edit-bill-icon-container"),children:t.jsx(Xi,{})})}),!H&&ka===!0&&Sa?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Mi,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":g("more-details-icon-container"),children:t.jsx(Vi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(ii,{isDrawerOpen:ra,allowComposer:!0,drawerTitle:Li,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Ca,onThreadClick:sa,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${i.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ee.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Bn=e=>{const b=Ot(),h=e.billDetails.transactionDetails?.id,E=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!E||_==null||h==null)return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Ba,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Fi=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Si(),"date")===!0?{value:Pe.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[h].color,bgColor:N[h].bgColor,borderColor:N[h].borderColor}},Oi=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(bn,{windowSize:e,children:[t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.accountNumber}),t.jsx(Nt,{children:b.withdrawFrom!=null?Et(b.withdrawFrom,e):c})]}),t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.amount}),t.jsx(Nt,{children:h!=null?Ce("0,0[.]00",h):S})]})]})},Ei=(e,b)=>e?a.paymentOutsideZeni.markAsPaid:b?a.buttons.approve:a.buttons.approveBill,_i=e=>{const b=e.paymentMode,h=a.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const E=a.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${zi} ${E}`},Zi=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:i.sp5,marginBottom:i.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const E=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:i.sp2,marginBottom:i.sp3},title:`${Kt.lowBalanceIn.replace("__account__",E)}`,description:h.replace("Low balance! ","")})}return null},Ki=n.div``,Wi=n.div``,Ui=n.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
5
5
  `,Vi=n(Ti)`
@@ -34,7 +34,7 @@ import{v as Ot,V as t,di as Ba,X as Ra,y as za,ba as Ma,bb as Na,dl as La,dm as
34
34
  &:hover {
35
35
  color: ${e=>e.theme.colors.primary};
36
36
  }
37
- `,Hi=n.div`
37
+ `,Yi=n.div`
38
38
  display: flex;
39
39
  cursor: pointer;
40
40
  color: ${e=>e.theme.colors.grey1};
@@ -64,14 +64,14 @@ import{v as Ot,V as t,di as Ba,X as Ra,y as za,ba as Ma,bb as Na,dl as La,dm as
64
64
  border-radius: ${i.sp1};
65
65
  right: ${e=>m.right.valuePx(e.windowSize)};
66
66
  box-shadow: ${e=>`${i.sp0} 2px ${i.sp1} ${e.theme.colors.grey1}3D`};
67
- `,Yi=n.div`
67
+ `,Hi=n.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
- `,U=n(Zt)`
74
+ `,W=n(Zt)`
75
75
  display: flex;
76
76
  align-items: center;
77
77
  width: 100%;
@@ -113,7 +113,7 @@ import{v as Ot,V as t,di as Ba,X as Ra,y as za,ba as Ma,bb as Na,dl as La,dm as
113
113
  width: ${i.sp4};
114
114
  height: ${i.sp4};
115
115
  display: flex;
116
- `,Qi=n.div`
116
+ `,Ji=n.div`
117
117
  height: 100%;
118
118
  overflow: scroll;
119
119
  `,$e=n.div`
@@ -128,7 +128,7 @@ import{v as Ot,V as t,di as Ba,X as Ra,y as za,ba as Ma,bb as Na,dl as La,dm as
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  padding-top: ${i.sp3};
131
- `,Ji=n.div``,ke=n(ui)`
131
+ `,Qi=n.div``,ke=n(ui)`
132
132
  color: ${e=>e.theme.colors.primary};
133
133
  `,R=n.div`
134
134
  display: flex;
@@ -187,11 +187,11 @@ import{v as Ot,V as t,di as Ba,X as Ra,y as za,ba as Ma,bb as Na,dl as La,dm as
187
187
  border-radius: ${i.sp2};
188
188
  color: ${e=>e.theme.colors.hero};
189
189
  margin-bottom: ${e=>m.marginBottom.valuePx(e.windowSize)};
190
- `,dn=n(Wt)`
190
+ `,dn=n(_t)`
191
191
  display: flex;
192
192
  width: 176px;
193
193
  color: ${e=>e.theme.colors.primary};
194
- `,cn=n(Wt)`
194
+ `,cn=n(_t)`
195
195
  display: flex;
196
196
  width: calc(100% - 176px);
197
197
  justify-content: flex-end;
@@ -0,0 +1 @@
1
+ import{j as l}from"./pdf-BxqSCr4b.js";import{a as y}from"./sentry-CHlUi953.js";import{j,h as U,i as B,u as v,N as O,k as T,l as $,R as L,m as h}from"./core-CVVdXRky.js";import{ct as N,L9 as A,KR as b,tU as I,tO as F,tS as w,tH as K,KT as W,tK as q,tW as H,tV as C}from"./zeni-epic-state-D8D2Skiq.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-BngCC-zG.js";import"./mui-DyGc7Pg8.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-CrQlcAIE.js";import M from"./NotFoundScreen-BOQb1xUE.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="27cf8ee3-8798-4b17-acaf-d0339ea7a0da",e._sentryDebugIdIdentifier="sentry-dbid-27cf8ee3-8798-4b17-acaf-d0339ea7a0da")}catch{}})();const R="bill-approval-rule-update",X=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(Q(z)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(O,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=f.actors.selectedNonUsers.map(S=>{const E=!!J(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(x);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(H())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=$(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(L,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
@@ -1,4 +1,4 @@
1
- import{x as F,j as U,X as M,O as _,P as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,M as K,a9 as Q,o as d,fI as Y}from"./index-BocbTmE1.js";import{a as L}from"./sentry-DINNQYpi.js";import{n as b}from"./mui-C_CXevf3.js";import{b as Z,f as ee,o as R,l as $}from"./FollowStepsSection-Bgy9MpO4-CvIWpdyW.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./zeni-epic-state-a7Sj5mjO.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="c0fc05ac-86ad-4b52-94d6-338fec641626",e._sentryDebugIdIdentifier="sentry-dbid-c0fc05ac-86ad-4b52-94d6-338fec641626")}catch{}})();const j="billPayApprovalRuleDetailPage",k="lowerBound",C="upperBound",I="steps",h="applyToExistingBills",le={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:P}){const w=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),c=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(c?.fetchState),{upperBound:D}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:u}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(u!=null&&u.type==="approval_update"&&u.data!=null){const{approvalRuleId:i}=u.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return L.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=X(m);H(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{B==="In-Progress"&&c?.fetchState==="Completed"&&P()},[B,c?.fetchState,P]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:T(j),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:T(j),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:o.jsx(Y,{name:h,mode:"always_on",checkBoxes:[{value:h,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:w==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(w)},separatorStyle:{marginRight:d.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[h]:n?[]:[h],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[k]:l?void 0:a!=null?a.range.min.amount??0:0,[C]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:$},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:$},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),T=e=>`${e}_form`,Be=e=>`${e}`,se=b.div`
1
+ import{x as F,m as D,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-BngCC-zG.js";import{a as L}from"./sentry-CHlUi953.js";import{n as b}from"./mui-DyGc7Pg8.js";import{b as Z,f as ee,o as R,l as T}from"./FollowStepsSection-BxESVqJD-BFhnhk7r.js";import"./pdf-BxqSCr4b.js";import"./zeni-epic-state-D8D2Skiq.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new e.Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="03478771-0ff1-437b-84a0-854cf50796e7",e._sentryDebugIdIdentifier="sentry-dbid-03478771-0ff1-437b-84a0-854cf50796e7")}catch{}})();const $="billPayApprovalRuleDetailPage",C="lowerBound",k="upperBound",I="steps",h="applyToExistingBills",le={footerPadding:new F(D[2],D[2])};function Se({localData:e,approvalUpdateActionType:l,onBackClick:a,onApprovalRuleDataUpdated:s,onResetClick:n,isLowerBoundDisabled:r=!1,isUpperBoundDisabled:g=!0,hideUpperBoundField:A=!1,onSaveRuleClick:N,onSaveRuleSuccess:w}){const P=M(),t=_.getLocalizedStrings().commonSetUp.approval,S=_.getLocalizedStrings().spendManagement.billPay.billPayApproval,y=ae(e,l==="approval_create"&&!r),x=W({mode:"all",reValidateMode:"onChange",defaultValues:y}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,B=G(u?.fetchState),{upperBound:U}=y,{allApprovalRules:p,allAccountingClasses:E,billPaySetupApproverViewUpdateData:c}=e;let f=p.length>1?p.length-1:0,v=p.length>0?p[f].criteria[0].range.min.amount:0;if(c!=null&&c.type==="approval_update"&&c.data!=null){const{approvalRuleId:i}=c.data;f=p.findIndex(m=>m.approvalRuleId===i),v=f>0?p[f-1].criteria[0].range.min.amount:0}const V=x.handleSubmit(()=>{N()});return L.useEffect(()=>{const i=x.watch((m,{name:O})=>{if(O!=null&&m!=null){const q=X(m);H(()=>(async(de,z)=>{s(z)})(0,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{B==="In-Progress"&&u?.fetchState==="Completed"&&w()},[B,u?.fetchState,w]),o.jsxs(se,{children:[o.jsx(J,{title:l==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j($),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:C,placeholder:"$0",options:{required:!0,max:U===1/0?Number.MAX_SAFE_INTEGER-1:U-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:k,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j($),primaryBtn:{label:t.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:l==="approval_create"&&p.length===0?null:o.jsx(Y,{name:h,mode:"always_on",checkBoxes:[{value:h,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:le.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const ae=(e,l)=>{const{criteria:a,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[h]:n?[]:[h],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[C]:l?void 0:a!=null?a.range.min.amount??0:0,[k]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},te=(e,l,a,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:T},actors:{allUsers:l,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(a,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:l,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,l)=>e.filter(a=>a.userId!=null&&l.findIndex(s=>s.userId===a.userId)>-1),oe=(e,l)=>e.filter(a=>l.findIndex(s=>s.subType===a.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=b.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -24,4 +24,4 @@ import{x as F,j as U,X as M,O as _,P as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J
24
24
  background-color: ${e=>e.theme.colors.grey3};
25
25
  min-height: 1px;
26
26
  max-height: 1px;
27
- `;export{le as D,Se as default,T as uniqueFormName,Be as uniqueName};
27
+ `;export{le as D,Se as default,j as uniqueFormName,Be as uniqueName};
@@ -1,4 +1,4 @@
1
- import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,bo as P,bR as q,bS as V,bT as O,cq as F,j as r,at as X,N as T,as as J,e as j,cp as K,aR as Q,w as Y}from"./index-BocbTmE1.js";import{n as t}from"./mui-C_CXevf3.js";import{a as Z}from"./sentry-DINNQYpi.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./zeni-epic-state-a7Sj5mjO.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2cd229bb-4ff8-40d2-a1e2-cd34138b558e",e._sentryDebugIdIdentifier="sentry-dbid-2cd229bb-4ff8-40d2-a1e2-cd34138b558e")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},M={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,E)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,_)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${_}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},E))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
1
+ import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bo as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-BngCC-zG.js";import{n as t}from"./mui-DyGc7Pg8.js";import{a as Z}from"./sentry-CHlUi953.js";import"./pdf-BxqSCr4b.js";import"./zeni-epic-state-D8D2Skiq.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="c617441c-cef6-4cc1-a1e4-57dc865d266c",e._sentryDebugIdIdentifier="sentry-dbid-c617441c-cef6-4cc1-a1e4-57dc865d266c")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{f(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,_)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,E)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${E}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},_))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -14,7 +14,7 @@ import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,b
14
14
  border-color: ${e=>e.isUpdatingApprovalRules===!0?e.theme.colors.grey3:e.theme.colors.primary};
15
15
  }
16
16
  }
17
- `,te=t(X)`
17
+ `,te=t(J)`
18
18
  display: flex;
19
19
  position: relative;
20
20
  align-items: center;
@@ -57,7 +57,7 @@ import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,b
57
57
  box-sizing: border-box;
58
58
  position: relative;
59
59
  `,se=t.ul`
60
- ${e=>`${M.stepper.style(e.windowSize)}`};
60
+ ${e=>`${N.stepper.style(e.windowSize)}`};
61
61
  position: relative;
62
62
  padding-left: ${i.sp6};
63
63
  list-style: none;
@@ -141,7 +141,7 @@ import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,b
141
141
  `,ce=t.div`
142
142
  display: flex;
143
143
  gap: ${i.sp5};
144
- `,I=t(K)`
144
+ `,I=t(Q)`
145
145
  width: ${i.sp3};
146
146
  height: ${i.sp3};
147
147
  cursor: ${e=>e.$isDisabled===!0?"not-allowed":"pointer"};
@@ -153,7 +153,7 @@ import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,b
153
153
  `,D=t.span`
154
154
  display: inline-flex;
155
155
  cursor: not-allowed;
156
- `,C=t(Q)`
156
+ `,C=t(X)`
157
157
  width: ${i.sp3};
158
158
  height: ${i.sp3};
159
159
  cursor: ${e=>e.$isDisabled===!0?"not-allowed":"pointer"};
@@ -162,7 +162,7 @@ import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,b
162
162
  &:hover {
163
163
  color: ${e=>e.$isDisabled===!0?e.theme.colors.grey2:e.theme.colors.primary};
164
164
  }
165
- `,he=t(J)`
165
+ `,he=t(K)`
166
166
  width: ${i.sp4};
167
167
  height: ${i.sp4};
168
168
  color: ${e=>e.theme.colors.hero};
@@ -172,7 +172,7 @@ import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,b
172
172
  display: inherit;
173
173
  gap: inherit;
174
174
  `,A=t.span`
175
- ${e=>`${M.amount.style(e.windowSize)}`};
175
+ ${e=>`${N.amount.style(e.windowSize)}`};
176
176
  color: ${e=>e.theme.colors.primary};
177
177
  word-break: break-word;
178
178
  `,y={width:new l(343,580,726),titleWidth:new l(343,580,780),addApprovalGap:new l(6,r[2]),subTitlePaddingTop:new l(12,r[3]),subTitlePaddingBottom:new l(28,r[7])},Be=({approvalView:e,onBackClick:d,onEditRuleClick:g,onDeleteRuleClick:c})=>{const f=W(),{fetchState:w,deleteStatus:v}=e,u=S.getLocalizedStrings().commonSetUp.approval,n=S.getLocalizedStrings().spendManagement.billPay.billPayApproval,m=v.fetchState,$=e.listeningToPusherEvent;return o.jsxs(ue,{children:[o.jsx(H,{title:u.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{d()},source:"BillPayApprovalRulesPage"}),o.jsxs(me,{children:[o.jsx(ge,{windowSize:f,children:n.approvalPageSubTitle}),w==="In-Progress"||w==="Not-Started"||m==="In-Progress"?o.jsx(xe,{children:o.jsx(G,{size:"ExtraLarge",start:!0})}):w==="Completed"?o.jsxs(o.Fragment,{children:[e.allApprovalRules.map((x,a)=>o.jsx(ee,{showDeleteBtn:a!==0,disableButtons:$===!0&&x.approvalRuleId===e.newApprovalRuleId,approvalRule:x,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:g,onDeleteRuleClick:c},x.approvalRuleId)),o.jsxs(we,{windowSize:f,onClick:()=>{g()},"data-testid":b("add-approval-rule-bill-pay"),children:[o.jsx($e,{}),o.jsx(be,{children:u.addApprovalText})]})]}):null]})]})},ue=t.div`
@@ -197,14 +197,14 @@ import{X as W,O as S,V as o,a_ as H,L as G,E as b,x as l,l as N,o as i,a5 as z,b
197
197
  align-items: center;
198
198
  gap: ${i.sp3};
199
199
  background-color: ${e=>e.theme.colors.grey4};
200
- `,ge=t(N)`
200
+ `,ge=t(M)`
201
201
  color: ${e=>e.theme.colors.hero};
202
202
  display: flex;
203
203
  justify-content: center;
204
204
  width: ${e=>y.titleWidth.valuePx(e.windowSize)};
205
205
  padding-top: ${e=>y.subTitlePaddingTop.valuePx(e.windowSize)};
206
206
  padding-bottom: ${e=>y.subTitlePaddingBottom.valuePx(e.windowSize)};
207
- `,we=t(N)`
207
+ `,we=t(M)`
208
208
  cursor: pointer;
209
209
  display: flex;
210
210
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{v as Q,X as f,a7 as W,V as e,f6 as Y,a_ as ee,a as C,E as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,e as $,bM as re,ac as te,au as ne,j as ae}from"./index-BocbTmE1.js";import{a as g}from"./sentry-DINNQYpi.js";import{n as s}from"./mui-C_CXevf3.js";import{G1 as de,bK as ce,G2 as pe}from"./zeni-epic-state-a7Sj5mjO.js";import{C as me}from"./VideoPopup-CUP7ctgS-Cy6Bpggh.js";import{M as b}from"./usp-line-BBd1wKwW-Bi23t2Q-.js";import"./liveblocks-BsQBjN-0.js";import"./core-5sxMy3sZ.js";import"./lottie-C2R6rGxS.js";import"./pdf-DyB_VHQx.js";import"./dnd-Cfx_ai1S.js";import"./analytics-Buyhprzd.js";import"./plaid-Yyr3DBd8.js";import"./recharts-CTWfsY-L.js";import"./utils-DmE88LS_.js";import"./VideoPlayer-DxIfGrPu-C3cW7OOT.js";import"./media-player-BX2lrCiw.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="c99d3855-f19c-48d8-ae43-9b8105694d6a",i._sentryDebugIdIdentifier="sentry-dbid-c99d3855-f19c-48d8-ae43-9b8105694d6a")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
1
+ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as $,bM as re,ac as te,au as ne,m as ae}from"./index-BngCC-zG.js";import{a as g}from"./sentry-CHlUi953.js";import{n as s}from"./mui-DyGc7Pg8.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-D8D2Skiq.js";import{C as me}from"./VideoPopup-BqvZ-XIh-DBw1PWZ3.js";import{M as b}from"./usp-line-BBd1wKwW-BHKdiO38.js";import"./pdf-BxqSCr4b.js";import"./core-CVVdXRky.js";import"./lottie-D68Xb3aQ.js";import"./liveblocks-CHs9GmLG.js";import"./recharts-CMjB5mmq.js";import"./dnd-CcRW__D6.js";import"./analytics-CZ3wLx3P.js";import"./plaid-xWfKHEqu.js";import"./utils-BpkJZQMI.js";import"./VideoPlayer-VAzOGCDL-BYL37uoQ.js";import"./media-player-D-MhIu5T.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="991c5505-2251-4844-81bf-c91cdd82e38b",i._sentryDebugIdIdentifier="sentry-dbid-991c5505-2251-4844-81bf-c91cdd82e38b")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ae[5],44)},he=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -27,7 +27,7 @@ import{v as Q,X as f,a7 as W,V as e,f6 as Y,a_ as ee,a as C,E as B,c as m,O as M
27
27
  width: ${i=>i.windowSize==="small"?"auto":"376px"};
28
28
  display: flex;
29
29
  flex-direction: column;
30
- `,E=s.div`
30
+ `,R=s.div`
31
31
  width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
32
32
  overflow: hidden;
33
33
  max-width: 712px;
@@ -35,7 +35,7 @@ import{v as Q,X as f,a7 as W,V as e,f6 as Y,a_ as ee,a as C,E as B,c as m,O as M
35
35
  align-content: center;
36
36
  justify-content: center;
37
37
  align-items: center;
38
- `,R=s.div`
38
+ `,V=s.div`
39
39
  margin-left: ${i=>i.windowSize==="small"?o.sp0:o.sp6};
40
40
  margin-bottom: ${i=>i.windowSize==="small"?o.sp4:o.sp0};
41
41
  background: ${i=>i.theme.colors.grey3};
@@ -63,11 +63,11 @@ import{v as Q,X as f,a7 as W,V as e,f6 as Y,a_ as ee,a as C,E as B,c as m,O as M
63
63
  color: ${i=>i.theme.colors.champion};
64
64
  `,d=s.div``,c=s.div`
65
65
  padding-left: ${o.sp3};
66
- `,V=s(b)`
66
+ `,E=s(b)`
67
67
  color: ${$.graphColor16Dark};
68
- `,G=s(b)`
68
+ `,F=s(b)`
69
69
  color: ${$.graphColor09Dark};
70
- `,Z=s(b)`
70
+ `,Y=s(b)`
71
71
  color: ${$.graphColor28Dark};
72
72
  `,ye=s(se)`
73
73
  margin: ${o.sp3} auto;
@@ -81,4 +81,4 @@ import{v as Q,X as f,a7 as W,V as e,f6 as Y,a_ as ee,a as C,E as B,c as m,O as M
81
81
  `,$e=s(U)`
82
82
  margin: ${i=>i.windowSize==="small"?o.sp1:`auto ${o.sp5}`};
83
83
  color: ${i=>i.theme.colors.grey1};
84
- `,r=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Ge=({billPaySetupView:i,analytics:l,meetingUrl:S,videoUrl:H,onButtonClick:K,onBackClick:N,onSetupBillPaySuccess:z,onClickMenuIcon:O})=>{const h=Q(),n=f(),{billPayTermsDetails:p}=i,[X,q]=g.useState(!1),[F,k]=g.useState(!1),v=W(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const J=de(h.loggedInUserRoleMap),P=ce(h.loggedInUserRoleMap)&&!J,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(he,{children:[X===!0?e.jsx(me,{onCancelClick:()=>{q(!1)},videoUrl:H}):null,F===!0?e.jsx(Y,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ee,{title:r.title,onBackClick:N,showBackButton:!pe(h.loggedInUserRoleMap),showMenuIcon:n==="small"||n==="medium-compact",onClickMenuIcon:O,source:"BillPayPromoPage"}),e.jsxs(ge,{windowSize:n,children:[n==="small"?e.jsx(ue,{children:T}):e.jsx(we,{children:T}),n==="small"?e.jsx(be,{}):e.jsx(Se,{}),P===!1?e.jsxs(je,{children:[e.jsxs(fe,{windowSize:n,children:[e.jsx(C,{variant:"secondary",label:r.scheduleDemoButton,onClick:()=>{l?.trackBillPayPromoScheduleDemo(),k(!0)},"data-testid":B("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:n,children:r.orText}),e.jsx(C,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":B("billpay-setup-button")})]}),e.jsxs(ye,{children:[r.terms.terms1,e.jsx(m,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(m,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(m,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(l?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(m,{href:t.tosUrl,onZeniLinkClick:()=>(l?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},be=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsx(E,{windowSize:l,children:e.jsx(R,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:l,children:[e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.fullyManagedText.bold}),e.jsx(j,{children:r.fullyManagedText.regular})]})]}),e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx(j,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx(j,{children:r.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsxs(_,{windowSize:l,children:[e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Z,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.fullyManagedText.bold}),e.jsx(w,{children:r.fullyManagedText.regular})]})]}),e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.multiLevelApprovalText.bold}),e.jsx(w,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(V,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.aiPoweredText.bold}),e.jsx(w,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(E,{windowSize:l,children:e.jsx(R,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Ge as default};
84
+ `,r=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:l,meetingUrl:S,videoUrl:Z,onButtonClick:H,onBackClick:K,onSetupBillPaySuccess:z,onClickMenuIcon:N})=>{const h=J(),n=f(),{billPayTermsDetails:p}=i,[O,X]=g.useState(!1),[q,k]=g.useState(!1),v=Q(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const G=de(h.loggedInUserRoleMap),P=ce(h.loggedInUserRoleMap)&&!G,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(he,{children:[O===!0?e.jsx(me,{onCancelClick:()=>{X(!1)},videoUrl:Z}):null,q===!0?e.jsx(W,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ee,{title:r.title,onBackClick:K,showBackButton:!pe(h.loggedInUserRoleMap),showMenuIcon:n==="small"||n==="medium-compact",onClickMenuIcon:N,source:"BillPayPromoPage"}),e.jsxs(ge,{windowSize:n,children:[n==="small"?e.jsx(ue,{children:T}):e.jsx(we,{children:T}),n==="small"?e.jsx(be,{}):e.jsx(Se,{}),P===!1?e.jsxs(je,{children:[e.jsxs(fe,{windowSize:n,children:[e.jsx(C,{variant:"secondary",label:r.scheduleDemoButton,onClick:()=>{l?.trackBillPayPromoScheduleDemo(),k(!0)},"data-testid":B("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:n,children:r.orText}),e.jsx(C,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:H,"data-testid":B("billpay-setup-button")})]}),e.jsxs(ye,{children:[r.terms.terms1,e.jsx(m,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(m,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(m,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(l?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(m,{href:t.tosUrl,onZeniLinkClick:()=>(l?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},be=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:l,children:[e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.fullyManagedText.bold}),e.jsx(j,{children:r.fullyManagedText.regular})]})]}),e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx(j,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(a,{windowSize:l,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx(j,{children:r.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsxs(_,{windowSize:l,children:[e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.fullyManagedText.bold}),e.jsx(w,{children:r.fullyManagedText.regular})]})]}),e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.multiLevelApprovalText.bold}),e.jsx(w,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(a,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.aiPoweredText.bold}),e.jsx(w,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Fe as default};