@zeniai/web-app-ui 4.14.31-qa → 4.14.32-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 (375) hide show
  1. package/dist/assets/{ACHDetailsPage-CFhoboVe-DcRe2nTt.js → ACHDetailsPage-BO7lxW8c-CaH7vfBB.js} +2 -2
  2. package/dist/assets/{AIPerformancePage-DB-fTWME-DYZeuOnD.js → AIPerformancePage-SF-quMkk-CZFFBw1a.js} +1 -1
  3. package/dist/assets/AccountInfoPage-v8-NT3FJ-Bw3uGZG4.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-eYEsv7ac-DDYvpmDy.js → AccountInfoPageContent-DIWh6VaI-HqDSQPfy.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-jYWr_8TD-DcOOzUkE.js → AccountLockedInfoModal-DloPB9vd-BSxEQO_S.js} +6 -6
  6. package/dist/assets/{AccountReconDetailsDrawerPage-3Q0EPYhL-27wJMTjD.js → AccountReconDetailsDrawerPage-BAgQsFiF-CyK6H2le.js} +4 -4
  7. package/dist/assets/{AccountRow-CdgvnPG8-BR1hQ4Zy.js → AccountRow-Dczx5rSu-CwZA98Uy.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-DHo59LLN-ChbxyMzd.js → AccountsPromoCardStack-Ywhto4lV-cevnOXMT.js} +11 -11
  9. package/dist/assets/{AddAddressForCardDrawer-BzO1FXUa-kLdLeGkd.js → AddAddressForCardDrawer-B8srmVT6-DsXtVyAN.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-BfXFbHjk-CYPGe181.js → AddToWalletPage-k__RW699-BSoFKwS5.js} +1 -1
  11. package/dist/assets/{AddressRoutes-XcDMlDlS.js → AddressRoutes-Bnm4H7bD.js} +1 -1
  12. package/dist/assets/{AddressScreen-DPPx0MfK.js → AddressScreen-INYb_JGl.js} +2 -2
  13. package/dist/assets/{AgingReportsPage-C1hFq4KH-DN--gN3O.js → AgingReportsPage-BuIXjljE-DwSwkj0s.js} +5 -5
  14. package/dist/assets/{AiCfoScreen-30SW2q3w.js → AiCfoScreen-Dg31g97F.js} +1 -1
  15. package/dist/assets/{AllUserItems-B6pnKByY-DyP7v-cA.js → AllUserItems-BdgTe4WF-H7QxO-h-.js} +7 -7
  16. package/dist/assets/ApAgingDetailPage-6F47t31h-BJY-Gjjh.js +46 -0
  17. package/dist/assets/{AppBasePage-DiVxF606-AXI0aqhJ.js → AppBasePage-DaTueT-x-Db3mer79.js} +1 -1
  18. package/dist/assets/{AppDrawerContent-B_EWsf8O-CMysKcTU.js → AppDrawerContent-CtCI6jpp-B-tHPrrL.js} +3 -3
  19. package/dist/assets/{ApprovalRulesSettingsPage-HHjDp_NQ-jrLhlHCF.js → ApprovalRulesSettingsPage-BVxu4soW-Nu7LfFuU.js} +1 -1
  20. package/dist/assets/{ArAgingChart-Ba4A-i2N-PODxdvyn.js → ArAgingChart-BK-JyW2V-CpKqA7Z3.js} +1 -1
  21. package/dist/assets/{ArAgingDetailPage-prgcvsS4-BsTAVwTa.js → ArAgingDetailPage-CvqLu3q8-DFRtVqyv.js} +3 -3
  22. package/dist/assets/{AttachmentView-SsWJw4A8-RJr9hQhO.js → AttachmentView-DQdb3v_e-BgOMzST7.js} +1 -1
  23. package/dist/assets/{BalancesInsightWithToolTip-DE6gDjGA-e_65zoZY.js → BalancesInsightWithToolTip-D4q45w1q-CBufZlsy.js} +4 -4
  24. package/dist/assets/{BankAccountSection-B4jmT0lb-zwPodZbw.js → BankAccountSection-DgbfU8F--DERufWYy.js} +1 -1
  25. package/dist/assets/{BankAccountWarningSection-Bz2itMx0-BfZtVATK.js → BankAccountWarningSection-litL0o_Z-YNoMxnsQ.js} +11 -11
  26. package/dist/assets/{BankConnectionsSettingsPage-BcVk7bTt-C3Wp_iZl.js → BankConnectionsSettingsPage-bAj9uB9k-D373ilzg.js} +1 -1
  27. package/dist/assets/{BillDetailPage-Dkqmi4H1-C6mDNSc2.js → BillDetailPage-CiHal44n-DIfTrfpQ.js} +1 -1
  28. package/dist/assets/{BillPayApprovalRoutes-CaSA1uSR.js → BillPayApprovalRoutes-BILiu13g.js} +1 -1
  29. package/dist/assets/BillPayApprovalRuleDetailPage-CRBli7lk-Cp1ol6-S.js +27 -0
  30. package/dist/assets/{BillPayApprovalRulesPage-B_QwggJS-BveqhBul.js → BillPayApprovalRulesPage-BTOmSLcs-D3SM4r7K.js} +7 -7
  31. package/dist/assets/{BillPayPromoPage-Bx2AXpWe-BrIbmhut.js → BillPayPromoPage-B5gkQjT2-D9lr-mmz.js} +9 -9
  32. package/dist/assets/{BillPayRoutes-CMdKHc5T.js → BillPayRoutes-BIHt-HL2.js} +7 -7
  33. package/dist/assets/{BillPaySetUpPage-CM7_DkHC-Bt5CjJNs.js → BillPaySetUpPage-DM3r09by-BlBEwtA1.js} +1 -1
  34. package/dist/assets/{BillingSettingsPage-DM0OIfxa-CKHUmPAw.js → BillingSettingsPage-CiTKyJeG-BkRQgSD8.js} +2 -2
  35. package/dist/assets/{BillsBulkReviewDrawerPage-C3xmQ7wz-Cf_j4N1J.js → BillsBulkReviewDrawerPage-B6ofRDkg-B-xdke4y.js} +1 -1
  36. package/dist/assets/{BoxItem-CvCo0wr6-BAtsmvg4.js → BoxItem-C39hQSVg-B9WMvkwI.js} +1 -1
  37. package/dist/assets/{BusinessVerificationPage-BAZmkR4a-BbYTLnZH.js → BusinessVerificationPage-BiWEnJET-BPuB56i7.js} +2 -2
  38. package/dist/assets/{BusinessVerificationPageScreen-DVGxc_kT.js → BusinessVerificationPageScreen-C9kI0BR_.js} +2 -2
  39. package/dist/assets/{BusyIndication-Cp8KWKB2-paVspSd6.js → BusyIndication-DmApVsF7-DQl3VYqH.js} +1 -1
  40. package/dist/assets/{CardNumberSubText-DHtSIcZZ-CJNkVpEB.js → CardNumberSubText-FNfrozX6-tv8Brnnn.js} +1 -1
  41. package/dist/assets/{CashbackDetailPage-CNS1FA6b-DNPbsy8R.js → CashbackDetailPage-DaLICa_v-BHzYFFJ0.js} +7 -7
  42. package/dist/assets/{ChargeCardDetailPage-C4NeG7IM-Bqzrs3Tx.js → ChargeCardDetailPage-B0Aq7zO5-40fQ7jsk.js} +28 -28
  43. package/dist/assets/{ChargeCardListPage-DNYiWaEf-D4WPR4qJ.js → ChargeCardListPage-CfRto2rQ-ClyjE_iT.js} +16 -16
  44. package/dist/assets/{ChargeCardListTable-DdnyzdFf-BLIVQeNK.js → ChargeCardListTable-DMdC4lxo-KnHyTkme.js} +1 -1
  45. package/dist/assets/{ChargeCardPaymentHistoryPage-CXlqzaUt-nlgSDdhG.js → ChargeCardPaymentHistoryPage-BYTmtF_y-i9mylyuZ.js} +1 -1
  46. package/dist/assets/ChargeCardPromoPage-AI5bladj-BDPOfxSx.js +222 -0
  47. package/dist/assets/{ChargeCardRoutes-DipRg107.js → ChargeCardRoutes-CUAUmOPf.js} +1 -1
  48. package/dist/assets/{ChargeCardSetupPage-BtikPFOq-Ci06zFqY.js → ChargeCardSetupPage-BjhqdubL-u9TM5_mu.js} +1 -1
  49. package/dist/assets/{ChargeCardStatementsPage-RepWBbvJ-qZhzfjJs.js → ChargeCardStatementsPage-DCM92s6v-CAUZgBlq.js} +2 -2
  50. package/dist/assets/{CheckDepositDrawerPage-BCqg3irO-CU861UMl.js → CheckDepositDrawerPage-CkIxEqHU-B7qz4vrp.js} +1 -1
  51. package/dist/assets/{CollapsableReportTable-gy7Ue_fk-Cp0GdxMJ.js → CollapsableReportTable-ClHwXtCj-BfwfqIOK.js} +1 -1
  52. package/dist/assets/{CompanyOfficerDetailsSection-BsCx7q-g-Bqu05vNe.js → CompanyOfficerDetailsSection-BY8hFQnp-DJfNkZb4.js} +16 -16
  53. package/dist/assets/{CompanyPassportCard-BbUWOs1U-CQapOMzG.js → CompanyPassportCard-B3rZE3pg-CtuQmTD5.js} +2 -2
  54. package/dist/assets/{CompanyPassportPage-BnP2oA1U-DG-ray3n.js → CompanyPassportPage-4FXVf3EP-DhUTHw6y.js} +1 -1
  55. package/dist/assets/{CompanyPassportScreen-Bsk4iSLd.js → CompanyPassportScreen-m_gXhHG_.js} +1 -1
  56. package/dist/assets/{CompleteProfile-TiRsm2Fm-Dmw9B9gd.js → CompleteProfile-B1BoilWd-LUJNszjE.js} +1 -1
  57. package/dist/assets/{ConfettiBurst-D7J36hZf-DAmXS8qh.js → ConfettiBurst-CsbAGF65-C9KfsdE7.js} +1 -1
  58. package/dist/assets/{ConnectionAuthScreen-CdbJnza-.js → ConnectionAuthScreen-Zn6jvlmq.js} +1 -1
  59. package/dist/assets/{ConstrainedInnerElement-CgdnMeoA-CpoLys2G.js → ConstrainedInnerElement-CgdnMeoA-Dc3P_0OR.js} +1 -1
  60. package/dist/assets/{CreateOrEditVendorPage-Dihzr1D5-Df0a--du.js → CreateOrEditVendorPage-C50eYOFo-D8POwrMQ.js} +1 -1
  61. package/dist/assets/{CreditCardPaymentDrawerPage-CZGzDuxC-CG7xBUFZ.js → CreditCardPaymentDrawerPage-Dxz_SY7N-D8up_BJ4.js} +1 -1
  62. package/dist/assets/{CurrencySelectField-BTAmIqPa-BOvsicp3.js → CurrencySelectField-D2Ogwvbr-B4ftuyL3.js} +1 -1
  63. package/dist/assets/{CustomerOnboardingActivationPage-MVI7kqIh-B52EVUog.js → CustomerOnboardingActivationPage-5Sh7hmI9-DpPsiuW1.js} +1 -1
  64. package/dist/assets/CustomerOnboardingAuthScreen-BhtVN8fo.js +1 -0
  65. package/dist/assets/CustomerOnboardingContainerPage-B5kVGk_V-DpOBarI8.js +1 -0
  66. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CaI_0pCb-Dx2c__Yb.js → CustomerOnboardingDetailPageSkeleton-CL-mOSUp-Crb7CsXj.js} +1 -1
  67. package/dist/assets/{CustomerOnboardingNoStepsPage-CO_c2COV-CcNi7DUF.js → CustomerOnboardingNoStepsPage-CyL1AK78-Dsu24NnA.js} +9 -9
  68. package/dist/assets/{CustomerOnboardingPage-BF0vuYaJ-CpeT13Rn.js → CustomerOnboardingPage-C8nxJPwo-UENXO6qW.js} +16 -16
  69. package/dist/assets/{CustomerOnboardingProductSuitePage-BGFdLX1i-C7qSBsYV.js → CustomerOnboardingProductSuitePage-C7FbnHpU-C2FaoJHQ.js} +3 -3
  70. package/dist/assets/{CustomerOnboardingRoutes-BqTX1iyW.js → CustomerOnboardingRoutes-DbUQBREw.js} +1 -1
  71. package/dist/assets/{Dashboard-Qjedd4r--DdmcDs7e.js → Dashboard-Bpu-6Sm5-CcAT-BJw.js} +1 -1
  72. package/dist/assets/{DashboardReportPage-Deith_ON-BYNIuWwI.js → DashboardReportPage-B1aAikQG-BWThnMBB.js} +1 -1
  73. package/dist/assets/{DashboardRoutes-C3tqy16Q.js → DashboardRoutes-aFJ2Gmek.js} +1 -1
  74. package/dist/assets/{DashboardSidebarBackgroundAnimation-C7DfUDio-CXRw7JSP.js → DashboardSidebarBackgroundAnimation-C6xm-p2j-BW7a7KRi.js} +1 -1
  75. package/dist/assets/{DefaultTenantHome-DTL7QcJH.js → DefaultTenantHome-D-V97ZoE.js} +1 -1
  76. package/dist/assets/{DepositAccTransactionItem-7kYotKov-C07q_etT.js → DepositAccTransactionItem-DEU0DgtI-DX-mlAdm.js} +7 -7
  77. package/dist/assets/{DepositAccTransactionListPage-Bop4Uj5w-DYSx2RBP.js → DepositAccTransactionListPage-Bh0dIkE9-CF_bG5NL.js} +4 -4
  78. package/dist/assets/{DomesticWireDetailScreen-D_BfoPLh.js → DomesticWireDetailScreen-DBNwn4TO.js} +1 -1
  79. package/dist/assets/{DomesticWireDetailsPage-_TyXsqEx-jkwnoEUE.js → DomesticWireDetailsPage-2WyD73c9-B2JWW3fS.js} +1 -1
  80. package/dist/assets/{DownloadOverlay-Cmd727bN-CUU7ZY9L.js → DownloadOverlay-B7M2VI7K-93vOHyTt.js} +14 -14
  81. package/dist/assets/{DrawerPage-DmGwfnGp-LTv4sDcy.js → DrawerPage-DsQTxXa8-D8CWGNJU.js} +4 -4
  82. package/dist/assets/{DrawerScreen-DtF71b7B.js → DrawerScreen-DDmYCdH3.js} +1 -1
  83. package/dist/assets/{EditPeoplePage-YyluIC6R-CXdaDa7G.js → EditPeoplePage-fY0HXvVS-C62IbLj9.js} +5 -5
  84. package/dist/assets/{EditReimbursementDetailPage-DeMid2Ko-Bv-8Xabp.js → EditReimbursementDetailPage-D7RUWSTZ-DVOazN97.js} +18 -18
  85. package/dist/assets/EntityDetailPage-BDyO7iLI-DsywTSaM.js +18 -0
  86. package/dist/assets/{EntityDetailRoutes-DYnivlwX.js → EntityDetailRoutes-BGXfmx5_.js} +1 -1
  87. package/dist/assets/{EntitySummarySection-5NbutA8l-CQbl1YIH.js → EntitySummarySection-0rRkC5V6-BD_Ykbrq.js} +1 -1
  88. package/dist/assets/{ExpenseAutomationOverviewPage-CQ_3WluW-CLWld5W7.js → ExpenseAutomationOverviewPage-DOGAdZXV-Bv58nG4M.js} +8 -8
  89. package/dist/assets/{ExpenseAutomationPage-VuU4acYd-B7T-Dg4p.js → ExpenseAutomationPage-DOsIzX0P-X4utEwdy.js} +1 -1
  90. package/dist/assets/{ExpenseAutomationRoutes-BlW2sTwn.js → ExpenseAutomationRoutes-eS-fi8G6.js} +1 -1
  91. package/dist/assets/{ExpressPayPage-DhoNmyC2-Bd-YVNzq.js → ExpressPayPage-CIi6jM8Y-zeultZzf.js} +8 -8
  92. package/dist/assets/{FeaturePreviewPage-GSwhPxgP-CXXTQoUA.js → FeaturePreviewPage-BVn6ZUOB-QQqfkJ8p.js} +1 -1
  93. package/dist/assets/{FeaturePreviewScreen-CpHWA-St.js → FeaturePreviewScreen-D5VxTq6D.js} +1 -1
  94. package/dist/assets/{FollowStepsSection-DaueHRo4-FQso0zsG.js → FollowStepsSection-CvWPHXDW-CX31cI67.js} +1 -1
  95. package/dist/assets/{GlobalReviewListPage-DG7_1HOT-_eh0o3Lh.js → GlobalReviewListPage-CS_11bx0-BWWUBfxL.js} +1 -1
  96. package/dist/assets/{InformationCardStack-zc-BxR7F-CH328-RF.js → InformationCardStack-B9g7W7Xx-BMa0JHtx.js} +3 -3
  97. package/dist/assets/{InsightsCardStack-DxCA5sFh-Y8l4503l.js → InsightsCardStack-mvzIc2uY-FQWyC3NM.js} +1 -1
  98. package/dist/assets/{InsightsSection-BdFG3j3R-DjHyJY78.js → InsightsSection-rGyA4lY9-ztCddwYb.js} +8 -8
  99. package/dist/assets/{IntegrationsSettingsPage-CaiL3kqS-CiO2l-pg.js → IntegrationsSettingsPage-Dwz4ukHF-I8L8bnwJ.js} +3 -3
  100. package/dist/assets/{InternationalWireSwiftDetailsPage-BrQVSzeS-B8g9fXts.js → InternationalWireSwiftDetailsPage-Cm0H9oyf-Dq6HjvzW.js} +1 -1
  101. package/dist/assets/{InternationalWireVerificationPage-NaLnhW9C-Be5m5GNN.js → InternationalWireVerificationPage-woIoME3I-Dczyy-qA.js} +10 -10
  102. package/dist/assets/{InviteFormPage-fjqv2l7h-CLLSBMJ2.js → InviteFormPage-DaZ-sJYV-B1D96lar.js} +13 -13
  103. package/dist/assets/{InvitePageListView-CQecQhxr-DHxSXSin.js → InvitePageListView-Do7EVQrj-CnaoEv-w.js} +1 -1
  104. package/dist/assets/{InvitePeoplePage-DAEBuOnk-CNuAu3aA.js → InvitePeoplePage-CpD7YoC2-CAkwuWqR.js} +2 -2
  105. package/dist/assets/{InvoiceUploadSection-58l6ePuH-CbCDsLyQ.js → InvoiceUploadSection-DOuTQPee-DNxyr3cj.js} +11 -11
  106. package/dist/assets/{IssueChargeCardPage-Bkxqsgax-B2E0w7s1.js → IssueChargeCardPage-ClMhr27d-m0kTf6sc.js} +9 -9
  107. package/dist/assets/{LabeledAddressValue-CZfFV97h-D0qxrk9o.js → LabeledAddressValue-B6_PZDTO-xVytB-P9.js} +1 -1
  108. package/dist/assets/{LabeledAddressValueField-D66XOhMx-BL2wLyLH.js → LabeledAddressValueField-Cz6tRMoW-C7dop0k-.js} +1 -1
  109. package/dist/assets/{LabeledControlledCheckBoxField-BtnsqE4D-B85xoPON.js → LabeledControlledCheckBoxField-BEpAlnvo-BRLqoAnU.js} +1 -1
  110. package/dist/assets/{LabeledCountryMultiSelectField-kopByxLB-1-3v1UQa.js → LabeledCountryMultiSelectField-1kTcZMQW-Cq5wOhkQ.js} +1 -1
  111. package/dist/assets/{LabeledCreatableSingleSelectField-B6An-cwq-DFSBA92N.js → LabeledCreatableSingleSelectField-PiLB1S77-CXLJARhZ.js} +1 -1
  112. package/dist/assets/{LabeledDocumentField-D_ZD8JTn-vKeq6vm6.js → LabeledDocumentField-Cicw8ABs-CehJpiD9.js} +1 -1
  113. package/dist/assets/{LabeledDropDownFormattedTextField-CJ7ncCzH-B0WjHFnN.js → LabeledDropDownFormattedTextField-BEVVgIGK-ByxutmzB.js} +7 -7
  114. package/dist/assets/{LabeledEmailInputField-CSfzMDYO-CWt52Wcv.js → LabeledEmailInputField-C6gk3B5x-DQKZx3MY.js} +1 -1
  115. package/dist/assets/{LabeledNameField-DZJXGYR9-BrTXKAba.js → LabeledNameField-BpfxLnfN-Dp4_3qSf.js} +1 -1
  116. package/dist/assets/{LabeledSingleSelectField-D_LoOMiZ-BMpo-aMs.js → LabeledSingleSelectField-Utmk8KVy-Cxr5xWDf.js} +1 -1
  117. package/dist/assets/{LabeledText-A1h_ionS-CFl8s8G-.js → LabeledText-C56xvYuX-BYR-B_G0.js} +1 -1
  118. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-IYaUvqgY-Q6YssO3g.js → LabeledUserSingleSelectWithSubtitlesField-CF4oVI17-C2nSJ6yS.js} +1 -1
  119. package/dist/assets/{LabeledZeniRolesDropDownField-DmynBXbJ-B4T-A7Cu.js → LabeledZeniRolesDropDownField-B5rxYfam-qcmbm9V-.js} +1 -1
  120. package/dist/assets/{LinkJETransactionPage-D6-fL4a6-tCaqs9Yj.js → LinkJETransactionPage-DbnaYlRA-UFjDu7p8.js} +10 -10
  121. package/dist/assets/{LockCardPage-BDlnh_zf-cKP8zIxD.js → LockCardPage-XHbTmzq8-CizhFaVR.js} +8 -8
  122. package/dist/assets/{LowBalancePopup-CBPl_udd-BorudEL4.js → LowBalancePopup-IF7NG9aL-DyQqJJ_L.js} +5 -5
  123. package/dist/assets/MagicLinkACHDetailsPage-DbhqYo7W-C6hltO5g.js +1 -0
  124. package/dist/assets/MagicLinkDomesticWireDetailsPage-D0JDLfbz-Nd5n74ys.js +1 -0
  125. package/dist/assets/MagicLinkInternationalWireDetailsPage-DChqrJN7-d6t2QZpk.js +1 -0
  126. package/dist/assets/{MagicLinkRoutes-CcsKjkce.js → MagicLinkRoutes-D4nTqNcw.js} +18 -18
  127. package/dist/assets/{MagicLinkSignInScreen-Dw8ViAP-.js → MagicLinkSignInScreen-DhnaHV0D.js} +1 -1
  128. package/dist/assets/{MagicLinkSuccessPage-Cl461HWp-01GdAVLj.js → MagicLinkSuccessPage-Cyr3p_8a-CVhCJtyQ.js} +1 -1
  129. package/dist/assets/{MagicLinkTitleSection-DoIMYrRv-wUyCV4b7.js → MagicLinkTitleSection-A4zyF5bg-B40bJuh0.js} +1 -1
  130. package/dist/assets/{MailingDetailsSection-NdwWGQ88-ChhAh-Lq.js → MailingDetailsSection-DqSOlu2t-CyUaZRam.js} +1 -1
  131. package/dist/assets/{MobileAppDrawer-D7V2koAX.js → MobileAppDrawer-BRK9r0e2.js} +1 -1
  132. package/dist/assets/{MoreMenuButton-CkkW1atP-CT7ietod.js → MoreMenuButton-B1OKwXLg-CUWjb2Vn.js} +1 -1
  133. package/dist/assets/{MyBankConnectionsSettingsPage-BU6TBzI1-DURfzXrx.js → MyBankConnectionsSettingsPage-DtTjhna--DTBZyR2y.js} +1 -1
  134. package/dist/assets/{MyPendingActivationChargeCardListPage-DcunCDU6-CQIAZ-Ax.js → MyPendingActivationChargeCardListPage-CKSWf7I4-5HMiO4ol.js} +1 -1
  135. package/dist/assets/{MyProfileSettingsPage-DF7ahyXE-BEXIytCm.js → MyProfileSettingsPage-WF1pNlyU-DCBVPnlL.js} +1 -1
  136. package/dist/assets/NavBarWithPicker-DiCaJ8Qy-BnNZsOl6.js +30 -0
  137. package/dist/assets/{NavigationArrow-CWUL-6kN-CRVEGy5S.js → NavigationArrow-f4Z3TuXg-UuhH1nBa.js} +7 -7
  138. package/dist/assets/{NavigationDots-c-XSrFzE-Bl0Sm_Ng.js → NavigationDots-WiVjbUsC-Crp3ArrF.js} +1 -1
  139. package/dist/assets/{NewGlobalMerchantPage-FGEO68I8-BKtwnvr_.js → NewGlobalMerchantPage-kvjjwV8d-C2-dLqkh.js} +1 -1
  140. package/dist/assets/{NoDataChart-DJhSgtLu-BO4-72hz.js → NoDataChart-DlSLTzZl-FuGU3dm-.js} +1 -1
  141. package/dist/assets/{NoDataTable-BZiwo2qK-CJLZnBQL.js → NoDataTable-9vLoRpsR-CqXldB2y.js} +1 -1
  142. package/dist/assets/{NotFoundPage-BN5unYX8-B80hQ8eO.js → NotFoundPage-CFlNCHFs-HVhDj2Ia.js} +5 -5
  143. package/dist/assets/{NotFoundScreen-BBbILNsa.js → NotFoundScreen-YeCuKQy4.js} +1 -1
  144. package/dist/assets/{NotificationRoutes-BH_Amwk1.js → NotificationRoutes-Dd09Cbi8.js} +1 -1
  145. package/dist/assets/{NotificationSettingsPage-d8kHDj0M-2vIf0BRe.js → NotificationSettingsPage-KJzE9v4p-DOQO6pCa.js} +4 -4
  146. package/dist/assets/{NotificationsListConfig-ThKLok_w-Bx-0LQ4e.js → NotificationsListConfig-6sXXtF_E-BS4C2OAr.js} +1 -1
  147. package/dist/assets/{NotificationsPage-Uvu6XESA-D1y42vLB.js → NotificationsPage-D4AmPdo9-BPnTsbgm.js} +1 -1
  148. package/dist/assets/{OpExByVendorPage-QyqRkD2_-h8x1NnCW.js → OpExByVendorPage-B5Wtu3ww-DQg4-jJ4.js} +6 -6
  149. package/dist/assets/{OverlayContainerPage-BG9y5C0t-B8rQHhtN.js → OverlayContainerPage-BG9y5C0t-COHi_UQx.js} +1 -1
  150. package/dist/assets/{PandLWithForecastPage-DJ2v5qbE-BgEHjFpy.js → PandLWithForecastPage-CjkaxTx7-DQmjDDak.js} +1 -1
  151. package/dist/assets/PandLWithForecastRoutes-C4ljq3MB.js +1 -0
  152. package/dist/assets/{PaymentAccountSetupBillingAddressSection-q5z8XZFC-IYhUlGT-.js → PaymentAccountSetupBillingAddressSection-eeLSg7xb-CRk9dKLv.js} +1 -1
  153. package/dist/assets/{PeoplePage-C5ZdpVyR-DA1lsmrN.js → PeoplePage-CQREy6SW-aaRJEBLV.js} +1 -1
  154. package/dist/assets/{PeopleRoutes-BLNrKR-x.js → PeopleRoutes-ChdDR42u.js} +3 -3
  155. package/dist/assets/{PerformanceRoutes-BBydKp8A.js → PerformanceRoutes-C9_QucnY.js} +1 -1
  156. package/dist/assets/{Preview-C2UYzTeJ.js → Preview-CQ45ZFEO.js} +1 -1
  157. package/dist/assets/{ProductsCarousel-CXjLTOLy-2QbHSm9u.js → ProductsCarousel-COZZMTcH-Bzu55dWw.js} +1 -1
  158. package/dist/assets/{PromoBaseCards-CN9uZfG4-CB2JkJIv.js → PromoBaseCards-Bmn6TN2k-Bz52UdXc.js} +1 -1
  159. package/dist/assets/{QBOConnectionDialog-CXSi1Pd9-CSvewQW2.js → QBOConnectionDialog-DYxoiSkA-BahHoGsk.js} +4 -4
  160. package/dist/assets/{QBOConnectionScreen-tSJfFhQn.js → QBOConnectionScreen-CvnGX6ip.js} +1 -1
  161. package/dist/assets/{QBOSetupSection-BrtLMvEP-D5Os1BGx.js → QBOSetupSection-Cdz2PDxV-3UdpeU-_.js} +7 -7
  162. package/dist/assets/ReferralListScreen-rNybuoN2.js +5 -0
  163. package/dist/assets/{ReimbursementApprovalRoutes-BHsHN-u_.js → ReimbursementApprovalRoutes-CoADYXXE.js} +1 -1
  164. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CS1BQ7pL-_lY11RDq.js → ReimbursementApprovalRuleDetailPage-C-QEoqCw-nwX6DLtF.js} +5 -5
  165. package/dist/assets/{ReimbursementApprovalRuleDetailScreen-Bs2ple33.js → ReimbursementApprovalRuleDetailScreen-Bqm6EOL1.js} +1 -1
  166. package/dist/assets/{ReimbursementApprovalRulesPage-aLRkhkZB-CV07eSYp.js → ReimbursementApprovalRulesPage-Ch2sxTFV-tKNtb0zE.js} +26 -26
  167. package/dist/assets/{ReimbursementDetailPage-Dr5BTvEq-DM2tEzQB.js → ReimbursementDetailPage-DSF6SfKn--PtdBuMK.js} +5 -5
  168. package/dist/assets/{ReimbursementPromoPage-C5Z0mVhQ-Dq3UPRZ3.js → ReimbursementPromoPage-F1ROFd63-BFHAhlMX.js} +11 -11
  169. package/dist/assets/{ReimbursementRoutes-iv71wb2Z.js → ReimbursementRoutes-DGj3kepc.js} +3 -3
  170. package/dist/assets/{ReimbursementSetUpPage-CXhOBErm-BnZZWQ1W.js → ReimbursementSetUpPage-l2mhLFuo-DfOuAAr0.js} +1 -1
  171. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CA0n0mau-Bq7X2QJa.js → ReimbursementsBulkReviewDrawerPage-DyPxPnlu-BmJ-UskM.js} +1 -1
  172. package/dist/assets/{ReloadCard-Bjp8ygC2-DsEbxw3o.js → ReloadCard-CDcJMl9F-DmOo4rMc.js} +1 -1
  173. package/dist/assets/{ReportTableViewSelector-DTk1dNWC-QFtHZK4J.js → ReportTableViewSelector-DvCk55Hn-DU86kKFX.js} +5 -5
  174. package/dist/assets/ReportsPage-DfqqKSt3-DjEpZpYh.js +269 -0
  175. package/dist/assets/{ReportsRoutes-BhpH3vEG.js → ReportsRoutes-DrS0PfFL.js} +1 -1
  176. package/dist/assets/{RevenueChart-CqGvXDr4-BDXPrwnC.js → RevenueChart-BONT9upM-Wgu_yKns.js} +1 -1
  177. package/dist/assets/{ReviewDetailsPage-CWBP7FBN-XuXg3BcA.js → ReviewDetailsPage-857bVurA-DISEdilE.js} +6 -6
  178. package/dist/assets/{ReviewOverlay-Cxkp85Kw-BxuvLEpC.js → ReviewOverlay-ClQg7d2j-DMLhTFSB.js} +1 -1
  179. package/dist/assets/RewardsRoutes-BI3CFx__.js +1 -0
  180. package/dist/assets/RoleWithToolTip-C0G1Hgp_-C6OnScGb.js +22 -0
  181. package/dist/assets/{ScheduleDetailsFixedAssetsPage-CYvlB3Nf-DLsNuhIe.js → ScheduleDetailsFixedAssetsPage-CJ_JBtxS-BI5TWCkt.js} +4 -4
  182. package/dist/assets/{ScheduleDetailsPage-CZXJ15tN-DK-Vvm5e.js → ScheduleDetailsPage-B1aEwPL--CmKbMEkF.js} +3 -3
  183. package/dist/assets/{ScheduleSequenceTable-DNPID_7F-Bz8d2Fhy.js → ScheduleSequenceTable-DhU7PI91-B_rwqPJI.js} +1 -1
  184. package/dist/assets/{ScreenRoutes-B0gKACTz.js → ScreenRoutes-BEfnlKLo.js} +2 -2
  185. package/dist/assets/{SetUpAccountSection-_WPR-q2V-BVzNpUbf.js → SetUpAccountSection-C8dulq9s-NOviRS6G.js} +20 -20
  186. package/dist/assets/{SettingsRoutes-BrokioTP.js → SettingsRoutes-Cv3I5FcH.js} +1 -1
  187. package/dist/assets/{SetupPagesScreen-BiJM7znn.js → SetupPagesScreen-DXJ1IvhH.js} +1 -1
  188. package/dist/assets/{SignIn-CDEsZw_T-BhKsIiWi.js → SignIn-wDe7lbGR-CsMJoTy9.js} +4 -4
  189. package/dist/assets/{SignInScreen-CRHQkOWq.js → SignInScreen-TFIvhVsE.js} +1 -1
  190. package/dist/assets/{SignOutScreen-CSmP5G0L.js → SignOutScreen-DNlfKKyW.js} +1 -1
  191. package/dist/assets/{SpendManagementListViewPage-MOCWuROI-DdkFjcW6.js → SpendManagementListViewPage-BdddUHrW-DddaRnSk.js} +8 -8
  192. package/dist/assets/{SpendManagementPerTabPage-BeK0SCeE-DPZd4om4.js → SpendManagementPerTabPage-BBJm3884-BFVFYDTY.js} +1 -1
  193. package/dist/assets/{SpendManagementSection-DZFPfKNi-DT0rYb2P.js → SpendManagementSection-6R5y0Hy4-BDNcg1eM.js} +9 -9
  194. package/dist/assets/StatementItem-qsoXKx_p-B1TzdTRA.js +31 -0
  195. package/dist/assets/{StatementsPage-DYLp_e7W-CYuAqH_I.js → StatementsPage-Cn7WG5-S-RUted-8P.js} +2 -2
  196. package/dist/assets/{StatusSwitcher-jxaonB4S-Cxq2Q9_V.js → StatusSwitcher-D3qCg5J1-CR1Mcm2E.js} +1 -1
  197. package/dist/assets/{SubTabSwitcher-CudjNlsi-D6kvvomf.js → SubTabSwitcher-BXajy75j-Dc5sli1z.js} +1 -1
  198. package/dist/assets/{SuccessAnimation-DE_x1Zz_-AQ5Y5JIA.js → SuccessAnimation-CSblamOQ-Bn7t6Lwt.js} +1 -1
  199. package/dist/assets/SummaryCard-B1d4_5lE-Dcb38d7W.js +1 -0
  200. package/dist/assets/{TaskDetailPage-CXexRKAY-BOPspi-s.js → TaskDetailPage-CrsQnhu1-DqJUU9CD.js} +1 -1
  201. package/dist/assets/{TaskListScreen-B0RVzFet.js → TaskListScreen-DQaj367P.js} +1 -1
  202. package/dist/assets/{TaskManagementPage-CTMoHv0R-BGb6WsaA.js → TaskManagementPage-h3Rb49Jj-CiFXDTcp.js} +1 -1
  203. package/dist/assets/TaskRoutes-DcIHRznV.js +9 -0
  204. package/dist/assets/{TimeRangeSwitcher-SqY2MHGs-ChpZHeuG.js → TimeRangeSwitcher-DpUOmqiR-D_tIz1xP.js} +1 -1
  205. package/dist/assets/{TimeframeSwitcher-BlJ2fuHy-JP2UlRBY.js → TimeframeSwitcher-BKEtsv_r-CS6zQ4bX.js} +1 -1
  206. package/dist/assets/{TimeframeSwitcherWithToggle-Dgc1odUH-ChrHPbvN.js → TimeframeSwitcherWithToggle-DECnQIMT-DCOsHatx.js} +10 -10
  207. package/dist/assets/{TopExCard-CG8YLsYe-B5wqJJSw.js → TopExCard-leQR29Sq-DG9ySZIm.js} +1 -1
  208. package/dist/assets/{TopExDetailPage-TvYCbzSP-CTOCVsET.js → TopExDetailPage-Dgg7Do6D-B22efZAA.js} +3 -3
  209. package/dist/assets/{TransactionActivityLogPage-BL3vEAdU-Bk3OacNa.js → TransactionActivityLogPage-CU2pUJQL-CgftV9ye.js} +5 -5
  210. package/dist/assets/{TransactionDetailPage-DUouBL0o-DkOa5f2H.js → TransactionDetailPage-FT2IPLH7-DAfWSPCG.js} +32 -32
  211. package/dist/assets/{TransactionDetailRoutes-D5_-HF2Q.js → TransactionDetailRoutes-l4cqdz7w.js} +1 -1
  212. package/dist/assets/{TransactionDetailScreen-DHwJH1ZP.js → TransactionDetailScreen-BxZ1AvRI.js} +1 -1
  213. package/dist/assets/{TransactionList-B16NONME-xM0VK0uD.js → TransactionList-C2MGkQYM-CPp22oMb.js} +8 -8
  214. package/dist/assets/{TransactionListBig-CItPbTRV-BpUwrWyu.js → TransactionListBig-CZ3jIxzR-BG5pwJlw.js} +6 -6
  215. package/dist/assets/TransactionListPage-PCa4exLO-uM7mJD-y.js +35 -0
  216. package/dist/assets/{TransactionListRoutes-DIJ_fkWS.js → TransactionListRoutes-veIGR3tC.js} +1 -1
  217. package/dist/assets/{TransactionVendorDetailPage-DpqisXN8-wU2wHv2K.js → TransactionVendorDetailPage-BgcqndCu-BSSs2Jcd.js} +1 -1
  218. package/dist/assets/{TransferDrawerPage-Dsmbswu0-DFQDwnPy.js → TransferDrawerPage-SirvPH4z-DtzIcgDc.js} +10 -10
  219. package/dist/assets/{TreasuryOverviewPage-BcRpcYmB-DwdLr4Xt.js → TreasuryOverviewPage-B_WK1aOv-Bqerf9ct.js} +1 -1
  220. package/dist/assets/{TreasuryPromoPage-DOO_OMRa-uzWYBUzW.js → TreasuryPromoPage-B_D63Dr2-Di08g28n.js} +6 -6
  221. package/dist/assets/{TreasuryRoutes-BfRwxvKx.js → TreasuryRoutes-BDfDMqyl.js} +6 -6
  222. package/dist/assets/{TreasuryStatementsPage-A_U7bEy5-C1uv8XvN.js → TreasuryStatementsPage-BGe0fhBe-D_xnH4qk.js} +2 -2
  223. package/dist/assets/{TreasuryTaxLetterPage-BsJn-BgX-Dcdm_qTO.js → TreasuryTaxLetterPage-9gNdkQZp-CGVWuYY2.js} +2 -2
  224. package/dist/assets/{TrendChart-GMMat-NG-BewK0MCc.js → TrendChart-COItOWPp-Bqzu2MgM.js} +2 -2
  225. package/dist/assets/{TrendWithTransactions-CrA4opNV-B_vQq65J.js → TrendWithTransactions-DgAw_8CI-MC8wGnO9.js} +8 -8
  226. package/dist/assets/{UncategorizedAccountsMappingPage-CrzbFGOi-BDtcuYej.js → UncategorizedAccountsMappingPage-B9EziB6Q-gv_x6dec.js} +1 -1
  227. package/dist/assets/{UnitIntegrationPage-XZY6zJa7-D8B46vcm.js → UnitIntegrationPage-DGWNyWV1-Dx2SNOLo.js} +1 -1
  228. package/dist/assets/{UploadAdditionalDocumentOverlay-eqwSLigx-kRVMQYF-.js → UploadAdditionalDocumentOverlay-DWmMz_8y-Dm_NzTDF.js} +1 -1
  229. package/dist/assets/{Vendor2FAPopup-BHDivuPB-D7ySxcXF.js → Vendor2FAPopup-dh2g8kqu-tmyn1K6T.js} +1 -1
  230. package/dist/assets/VendorACHDetailsPage-C0vIRpRW-DV0u5MUr.js +1 -0
  231. package/dist/assets/{VendorDetailPage-DEu-yS8w-BhFmuJot.js → VendorDetailPage-CGqoIODq-DATvkiT-.js} +13 -13
  232. package/dist/assets/VendorDomesticWireDetailsPage-BVXSOMiH-DLIihksm.js +1 -0
  233. package/dist/assets/{VendorFiling1099EditablePage-C461SzO0-CCIZoPU6.js → VendorFiling1099EditablePage-CsnlHrCl-DrSHAjrS.js} +1 -1
  234. package/dist/assets/{VendorFirstReviewPage-klbCHS04-UP-04u7X.js → VendorFirstReviewPage-DC1j2sO_-BShWc2PZ.js} +7 -7
  235. package/dist/assets/{VendorInternationalWireDetailsPage-DY0V-VbO-Dl3hBhoD.js → VendorInternationalWireDetailsPage-Drr00a6C-B8ypeLTf.js} +1 -1
  236. package/dist/assets/VendorInternationalWireSwiftDetailsPage-CZ5N8G2o-Cr3Iymam.js +1 -0
  237. package/dist/assets/{VendorsAccountsSection-Cqcr-ArD-CzW5lMfP.js → VendorsAccountsSection-BtdwR8u4-CH_AUGJD.js} +1 -1
  238. package/dist/assets/{VendorsRoutes-DLnvF6hR.js → VendorsRoutes-DTveFO9E.js} +11 -11
  239. package/dist/assets/{VerifyDevice-Dhu5iywf-cUES-VE2.js → VerifyDevice-Bhr_yHpE-BmXUueZN.js} +4 -4
  240. package/dist/assets/{VideoPlayer-ZGjx_Hp7-CjY3r1rL.js → VideoPlayer-wlJX6lEq-BRAB9bV0.js} +1 -1
  241. package/dist/assets/VideoPopup-BPptwR51-Dm-cn-KD.js +31 -0
  242. package/dist/assets/{WiseConfirmationScreen-CT86mZ0i.js → WiseConfirmationScreen-Be5nRHHx.js} +1 -1
  243. package/dist/assets/{ZeniAccountDetailPage-DQB7sXU9-CZEM5xVV.js → ZeniAccountDetailPage-CSsu44ls-2H7-YqPq.js} +12 -12
  244. package/dist/assets/{ZeniAccountListViewPage-BwXKgf6g-FfpOzmd6.js → ZeniAccountListViewPage-BZwGCrzx-Hl1cOwI1.js} +32 -32
  245. package/dist/assets/{ZeniAccountNavBarPieces-CHUTFAWG-v671evv-.js → ZeniAccountNavBarPieces-CrNjnkNS-CNki38NN.js} +5 -5
  246. package/dist/assets/{ZeniAccountPromoPage-BkfJuMNV-CmI6f_1i.js → ZeniAccountPromoPage-CahV-Rmf-Dvz1FwqA.js} +1 -1
  247. package/dist/assets/{ZeniAccountRoutes-bnzTspvl.js → ZeniAccountRoutes-BMxuBylQ.js} +1 -1
  248. package/dist/assets/{ZeniAccountSetupPage-C3drM4Zs-CvpINFn4.js → ZeniAccountSetupPage-DSNDNKZr-CwYlMf2d.js} +1 -1
  249. package/dist/assets/{ZeniAccountStatementScreen-B5KsFobU.js → ZeniAccountStatementScreen-BJVQBUGi.js} +1 -1
  250. package/dist/assets/{ZeniAvatar-C38T0-5--BM3XjRcp.js → ZeniAvatar-De0hFvIm-DzjTiqNz.js} +1 -1
  251. package/dist/assets/{ZeniCopyright-CznSgVJF-BhclYMa4.js → ZeniCopyright-BNGdkMOa-Cl7T_xPz.js} +1 -1
  252. package/dist/assets/{ZeniDatePicker-Bw9RlgoL-DDQaNsVY.js → ZeniDatePicker-CYNEE0pM-DG-NDcrF.js} +4 -4
  253. package/dist/assets/{ZeniTransferAmountSlider-C77DEl-C-CYKYiLaT.js → ZeniTransferAmountSlider-DuD1JtSv-DhSBAK_q.js} +1 -1
  254. package/dist/assets/{accountMappingHelper-B1SwIfFo.js → accountMappingHelper-FrhvxzcW.js} +1 -1
  255. package/dist/assets/{add-to-wallet-DgdBD8_G-2vbkyqzY.js → add-to-wallet-DgdBD8_G-BqBidt5n.js} +1 -1
  256. package/dist/assets/{analytics-Qgv3Fhaa.js → analytics-CVqRc8fh.js} +1 -1
  257. package/dist/assets/{analyticsHelper-CsyUSML_.js → analyticsHelper-DJS6x-LZ.js} +1 -1
  258. package/dist/assets/{analyticsHelper-Bh8o1v3y-erbhoWbk.js → analyticsHelper-DjQYjslY-BxoS4N1f.js} +1 -1
  259. package/dist/assets/{arrow-south-east-round-PEovUgvH-CHgaZ-yo.js → arrow-south-east-round-PEovUgvH-B3QTzBHA.js} +1 -1
  260. package/dist/assets/{auto-transfer-rule-mbafm5D3-BdBsn5Ol.js → auto-transfer-rule-mbafm5D3-de_8OjuK.js} +1 -1
  261. package/dist/assets/{avatar-Dz7aEm3d-CxU8IzEu.js → avatar-Dz7aEm3d-B-3VAvb3.js} +1 -1
  262. package/dist/assets/{bank-letter-BOcVjN6J-DhC6VHDB.js → bank-letter-BOcVjN6J-KdddOmyc.js} +1 -1
  263. package/dist/assets/{calculateSize-QoQyn_Ku-j5kLdf_t.js → calculateSize-i9QGr8q0-Dp5VSL_N.js} +1 -1
  264. package/dist/assets/{chartTypes-C14YY2Rq-mIXPNQxz.js → chartTypes-BGl-YMiu-DyUWLIfR.js} +1 -1
  265. package/dist/assets/{clock-CJkylEKt-BBrb7jeK.js → clock-CJkylEKt-CB7HCMZv.js} +1 -1
  266. package/dist/assets/common-Cws59IN1-fneKv-li.js +1 -0
  267. package/dist/assets/{commonDimensions-CVpc-NCw-xOjrok2-.js → commonDimensions-CuKo3wam-D08uyy0o.js} +1 -1
  268. package/dist/assets/{commonTypes-Ec-PxfpT-DZ1xbinn.js → commonTypes-CfAg6Jvv-C_Qjl0Ts.js} +1 -1
  269. package/dist/assets/{core-CaikJZHD.js → core-AYNw6kyJ.js} +1 -1
  270. package/dist/assets/{dash.all.min-CteFsaah.js → dash.all.min-Dq_dQY1I.js} +1 -1
  271. package/dist/assets/{decodeURIComponentSafe-DcEFJStp.js → decodeURIComponentSafe-E-sgiudi.js} +1 -1
  272. package/dist/assets/{dnd-CzsffKNn.js → dnd-Dw-riVE4.js} +1 -1
  273. package/dist/assets/{dollar-round-D18u7nlm-BF4Thvjs.js → dollar-round-D18u7nlm-CvsBoEut.js} +1 -1
  274. package/dist/assets/{downloadPdf-BuPJ6cfr-Cy2ZBk4z.js → downloadPdf-Dcd8BY_9--BaRfov1.js} +1 -1
  275. package/dist/assets/{empty-B5B-FKq1.js → empty-C9c-cai_.js} +1 -1
  276. package/dist/assets/{empty-CTO6rJhq.js → empty-CX0U2Ty5.js} +1 -1
  277. package/dist/assets/{epic-DtTDCbBB.js → epic-B6fOiqme.js} +1 -1
  278. package/dist/assets/{filter-cZIFUNvj-CWbeOwgA.js → filter-cZIFUNvj-lFkn5gVk.js} +1 -1
  279. package/dist/assets/{getLocaleForTenant-DLrlmQCo.js → getLocaleForTenant-x8J8_kQc.js} +1 -1
  280. package/dist/assets/{gift-box-Cmt9OgIZ-BfzCBGHZ.js → gift-box-Cmt9OgIZ-BPwbjUGz.js} +1 -1
  281. package/dist/assets/{graphic-no-data-l-DU4J8fDt-DEuKmvBU.js → graphic-no-data-l-DU4J8fDt-CaJy2HdS.js} +1 -1
  282. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-CIA_wKU3.js → graphic-no-data-net-burn-l-CzmycA0m-C9pmzSAL.js} +1 -1
  283. package/dist/assets/{handshake-BPg58FML-Z_I5plJl.js → handshake-BPg58FML-BSOSNqUk.js} +1 -1
  284. package/dist/assets/{helper-AgH8nJln-DNDXfXpF.js → helper-DkzA3y2L-CVdrHzZT.js} +1 -1
  285. package/dist/assets/{hyperlink-DQyCeXx2-Bwqrw7ES.js → hyperlink-DQyCeXx2-CVVb97aA.js} +1 -1
  286. package/dist/assets/{index-mhb15COx.js → index-CilRLucN.js} +458 -458
  287. package/dist/assets/{index-BL34svil.js → index-Dm85Hu6Z.js} +1 -1
  288. package/dist/assets/{index-B7wRNic7.js → index-DqcXLX0N.js} +1 -1
  289. package/dist/assets/{index-B9eknY8q.js → index-DubSD1fb.js} +1 -1
  290. package/dist/assets/{index-CLf01Vy8.js → index-NZat51vK.js} +1 -1
  291. package/dist/assets/{index-B9myuWEH.js → index-wicPWwlB.js} +1 -1
  292. package/dist/assets/{lexical-CXNTSpM4.js → lexical-B-dyW3-4.js} +1 -1
  293. package/dist/assets/{liveblocks--AdozwCz.js → liveblocks-DJcRPJQh.js} +1 -1
  294. package/dist/assets/{lottie-D86WIi_0.js → lottie-DdLBMmzp.js} +1 -1
  295. package/dist/assets/{mapLoadingInProgressToTreeNode-DTyQHWMc-BqMSzUiy.js → mapLoadingInProgressToTreeNode-lABm-2N9-Chsh4dr_.js} +1 -1
  296. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-D7pjBGp6-BMY0vZTn.js → mapSectionWithAcOnlyToTreeNode-COcUb2pF-DXYL2e9L.js} +1 -1
  297. package/dist/assets/mapSpacerToTreeNode-BDjo5N-i-D6CiBSSk.js +1 -0
  298. package/dist/assets/mapTimeframeBalancesToTreeNode-CvVUjW74-CI8ETEqs.js +1 -0
  299. package/dist/assets/mapTimeframeBalancesToTreeNode-CwHF76sn-CrCtE0Hw.js +1 -0
  300. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B7LYTZXQ-Dr2IrdLd.js +1 -0
  301. package/dist/assets/{media-player-OnsEq_AY.js → media-player-V7uSzi45.js} +2 -2
  302. package/dist/assets/{money-2cg1MuG4-CfgKOIyt.js → money-2cg1MuG4-B7YE6t0I.js} +1 -1
  303. package/dist/assets/{mui-G2MlMTlr.js → mui-Ckdcx_YE.js} +1 -1
  304. package/dist/assets/{page-detail-CWX5S47F-CWJ8fnGp.js → page-detail-CWX5S47F-NqWvakND.js} +1 -1
  305. package/dist/assets/{page-summary-D7_VQHwN-CaK_VLEF.js → page-summary-D7_VQHwN-BvkWkaoT.js} +1 -1
  306. package/dist/assets/{panelSelectedMixin-Cddsb26L-XfdQwEMM.js → panelSelectedMixin-Cddsb26L-CROMd__p.js} +1 -1
  307. package/dist/assets/{pathToGoBack-Dh6AhADv.js → pathToGoBack-C_2xxQDe.js} +1 -1
  308. package/dist/assets/{pdf-DwfifS04.js → pdf-CwWlK-Dr.js} +3 -3
  309. package/dist/assets/{pdf-lib-CuGtb6jg.js → pdf-lib-DhaWOBih.js} +1 -1
  310. package/dist/assets/{plaid-CcxzSXZd.js → plaid-BhP6n1uc.js} +1 -1
  311. package/dist/assets/{pusher-BNSVRSP_.js → pusher-8DhjdTCA.js} +1 -1
  312. package/dist/assets/{radio-default-CiSgisfh-CF7OSKL1.js → radio-default-CiSgisfh-BoUlFA9D.js} +1 -1
  313. package/dist/assets/{react-BEcxr4nX.js → react-BHDcRwxI.js} +1 -1
  314. package/dist/assets/{react-V3TERlfD.js → react-BwCmpEw6.js} +1 -1
  315. package/dist/assets/{react-Cobj-_wp.js → react-CB4dPBRZ.js} +3 -3
  316. package/dist/assets/{react-DOvM9ag3.js → react-CE6422aE.js} +1 -1
  317. package/dist/assets/{react-Chqt_ss-.js → react-CGVKTtsW.js} +1 -1
  318. package/dist/assets/{react-BUDcsgZo.js → react-D-APY71d.js} +1 -1
  319. package/dist/assets/{react-C0Whd_8a.js → react-D4pZVe2B.js} +1 -1
  320. package/dist/assets/{react-WpjiT9jD.js → react-D_0srhsg.js} +1 -1
  321. package/dist/assets/{recharts-3tylCZU1.js → recharts-Dr1JzI4y.js} +1 -1
  322. package/dist/assets/{routePaths-CDVBEe6a.js → routePaths-DqRhLReO.js} +1 -1
  323. package/dist/assets/{sentry-Cm8I7E9J.js → sentry-D-LCra2M.js} +1 -1
  324. package/dist/assets/{shield-DOlUxcFf-tt-dORuJ.js → shield-DOlUxcFf-D5PHf2Tj.js} +1 -1
  325. package/dist/assets/{spend-limit-D6SyboD4-d-tIWfnn.js → spend-limit-D6SyboD4-D85B38gI.js} +1 -1
  326. package/dist/assets/toCOABalancesWithID-CGYYTIjt-Cbihktyj.js +1 -0
  327. package/dist/assets/{toChartData-G5y-N82I-HPFXqzd4.js → toChartData-B4ligi4c-CgbG1qSk.js} +1 -1
  328. package/dist/assets/{transaction-placeholder-CpOwZAMG-CXIruzlf.js → transaction-placeholder-CpOwZAMG-Ca0HZ2W6.js} +1 -1
  329. package/dist/assets/{undo-b_3XZ5CX-5VNbpbUY.js → undo-b_3XZ5CX-CSQ0fDLS.js} +1 -1
  330. package/dist/assets/{unlock-BPWn2I5L-8UNw8MhM.js → unlock-BPWn2I5L-DDdPB9QU.js} +1 -1
  331. package/dist/assets/{upload-reimbursement-receipt-O2N8vcO7-BhCuFTsT.js → upload-reimbursement-receipt-O2N8vcO7-DNsQOTk3.js} +1 -1
  332. package/dist/assets/{uploadAttachment-RbkIBMGO-BHEoxgsX.js → uploadAttachment-DgPDimcm-gkAtAf5q.js} +1 -1
  333. package/dist/assets/{uploadReceipts-CIgkuVpu-BPECKX43.js → uploadReceipts-CIgkuVpu-CPDGmbPp.js} +1 -1
  334. package/dist/assets/{url-CvhemPUG.js → url-BK92KGZc.js} +1 -1
  335. package/dist/assets/{url-BMzuxPwA.js → url-DUid0IO0.js} +1 -1
  336. package/dist/assets/{useDeviceId-BzlY8kf5.js → useDeviceId-BCros22l.js} +1 -1
  337. package/dist/assets/{useInitialThreadRequest-Dldme96o.js → useInitialThreadRequest-Wj3ao3U4.js} +1 -1
  338. package/dist/assets/{useLongPress-GCK2COYQ-BgmUYGJ7.js → useLongPress-GCK2COYQ-Bs4IMufW.js} +1 -1
  339. package/dist/assets/{usp-line-BBd1wKwW-BqojtCEK.js → usp-line-BBd1wKwW-BBaxYQlT.js} +1 -1
  340. package/dist/assets/{utils-BhOlvYO8.js → utils-CI1RvLss.js} +1 -1
  341. package/dist/assets/{withTransactionSidePanel-DBF40Qih.js → withTransactionSidePanel-CEBXOpSa.js} +1 -1
  342. package/dist/assets/{zeni-epic-state-lC5X-sam.js → zeni-epic-state-B1zsDZZ4.js} +3 -3
  343. package/dist/assets/{zeni-icon-only-DZ6h0uLr.js → zeni-icon-only-Bb7XRMgX.js} +1 -1
  344. package/dist/index.html +1 -1
  345. package/package.json +2 -2
  346. package/dist/assets/AccountInfoPage-pEEhPqOb-B-Hd8VtG.js +0 -18
  347. package/dist/assets/ApAgingDetailPage-CxLVGnpY-BYGcfd1t.js +0 -46
  348. package/dist/assets/BillPayApprovalRuleDetailPage-Blxlv3pa-BYAGbgwQ.js +0 -27
  349. package/dist/assets/ChargeCardPromoPage-D4canPX9-CjFFR5oK.js +0 -222
  350. package/dist/assets/CustomerOnboardingAuthScreen-DO7d0gIb.js +0 -1
  351. package/dist/assets/CustomerOnboardingContainerPage-DV3z4pR--CSEqEIM8.js +0 -1
  352. package/dist/assets/EntityDetailPage-DPTSSZdS-oHoyHWu0.js +0 -18
  353. package/dist/assets/MagicLinkACHDetailsPage-eq8wlXQr-C2vI5jVH.js +0 -1
  354. package/dist/assets/MagicLinkDomesticWireDetailsPage-BcNOhJgL-mWcNcIhr.js +0 -1
  355. package/dist/assets/MagicLinkInternationalWireDetailsPage-Df8XYlkg-bsxOE2QI.js +0 -1
  356. package/dist/assets/NavBarWithPicker-D2v1fhLS-CGpIi67k.js +0 -30
  357. package/dist/assets/PandLWithForecastRoutes-CCN_Dopf.js +0 -1
  358. package/dist/assets/ReferralListScreen-CJqU7RxZ.js +0 -5
  359. package/dist/assets/ReportsPage-DrjOGopt-xwTAFZ82.js +0 -258
  360. package/dist/assets/RewardsRoutes-CGI6v1LD.js +0 -1
  361. package/dist/assets/RoleWithToolTip-CqLxmtj6-Rnjw9i_g.js +0 -22
  362. package/dist/assets/StatementItem-DjvU5wiI-DmQsj9gw.js +0 -31
  363. package/dist/assets/SummaryCard-DPOhBmkr-Cv-w5fsm.js +0 -1
  364. package/dist/assets/TaskRoutes-vmd5uItQ.js +0 -9
  365. package/dist/assets/TransactionListPage-DNecYY8M-ptahFcY0.js +0 -35
  366. package/dist/assets/VendorACHDetailsPage-DJ4Crnr0-BgbOpk55.js +0 -1
  367. package/dist/assets/VendorDomesticWireDetailsPage-WFcOmpiN-DCXCuX-V.js +0 -1
  368. package/dist/assets/VendorInternationalWireSwiftDetailsPage-B8sx02I_-h6qnY29-.js +0 -1
  369. package/dist/assets/VideoPopup-R3u0N_if-CaG3EJQq.js +0 -31
  370. package/dist/assets/common-Cu5K0AJk-BihNw_Do.js +0 -1
  371. package/dist/assets/mapSpacerToTreeNode-Cd4FCXAf-C6nWwAzP.js +0 -1
  372. package/dist/assets/mapTimeframeBalancesToTreeNode-Drhl_lnP-BDA52mbW.js +0 -1
  373. package/dist/assets/mapTimeframeBalancesToTreeNode-UsawmMLa-DrvNkcA6.js +0 -1
  374. package/dist/assets/mapTimeframeHeaderLoadingInProgressToTreeNode-B-aNuSSK-DHD18LN5.js +0 -1
  375. package/dist/assets/toCOABalancesWithID-wh35N3no-2SjovFHm.js +0 -1
@@ -1,4 +1,4 @@
1
- import{_ as Ot,V as t,fI as Ba,e as Ra,y as za,ba as Ma,bb as Na,fJ as La,fK as Fa,bF as Oa,a7 as Ea,x as y,eF as pt,eG as _a,o as i,eH as Za,eI as Ka,eJ as Wa,a5 as Ce,eK as Ua,b as g,a_ as mt,aM as ut,cR as yt,bR as ht,bS as bt,bT as xt,fL as Va,fM as Ga,fN as Xa,fO as Ya,c$ as j,fP as $,eQ as A,d5 as k,eO as qa,w as gt,f as re,eP as Et,eW as Ha,eR as Ja,eS as Qa,fQ as ei,fR as ti,a9 as ai,k as ft,bn as De,be as ii,fS as N,O as ni,m as s,u as li,bw as oi,bf as ri,a8 as si,fT as di,eX as wt,d as ci,cu as pi,bH as mi,fU as Tt,ar as ui,at as yi,n as hi,bp as _t,cv as bi,fV as xi,C as Zt,z as gi,ap as fi,aR as wi,fW as Ti,l as vi}from"./index-mhb15COx.js";import{a as p}from"./sentry-Cm8I7E9J.js";import{n}from"./mui-G2MlMTlr.js";import{c5 as Di,bG as Ii,c6 as ji,G6 as $i,c4 as Ai,bX as ki,bs as Si}from"./zeni-epic-state-lC5X-sam.js";import{o as Ci,t as Pi}from"./LowBalancePopup-CBPl_udd-BorudEL4.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},b=new e.Error().stack;b&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[b]="caffdb30-eb66-4d18-bde2-ea2db951cee2",e._sentryDebugIdIdentifier="sentry-dbid-caffdb30-eb66-4d18-bde2-ea2db951cee2")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
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-CilRLucN.js";import{a as p}from"./sentry-D-LCra2M.js";import{n}from"./mui-Ckdcx_YE.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-B1zsDZZ4.js";import{o as Ci,t as Pi}from"./LowBalancePopup-IF7NG9aL-DyQqJJ_L.js";import"./pdf-CwWlK-Dr.js";import"./core-AYNw6kyJ.js";import"./lottie-DdLBMmzp.js";import"./liveblocks-DJcRPJQh.js";import"./recharts-Dr1JzI4y.js";import"./dnd-Dw-riVE4.js";import"./analytics-CVqRc8fh.js";import"./plaid-BhP6n1uc.js";import"./utils-CI1RvLss.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]="1ca5862b-be42-4182-865d-6c5fd818d5a8",e._sentryDebugIdIdentifier="sentry-dbid-1ca5862b-be42-4182-865d-6c5fd818d5a8")}catch{}})();const Bi={formTitle:new ci("h6Medium","h5Medium")},m={containerPaddingLeft:new y(s[3],s[6],s[6]),containerPaddingRight:new y(s[3],s[6],s[8]),marginBottom:new y(s[3],s[3]),labelWidth:new y(120,160,160),formTitlePaddingLeftRight:new y(30,0),marginTop:new y(s[1],0),rightIconsGap:new y(s[4],s[5]),closeContainerMarginTop:new y(s[1],0),formTitleMarginTopBottom:new y(0,0),footerButtonWidth:new y(120,120,120,165,165),right:new y(s[3],s[0]),actionsContainerRight:new y(s[0],s[3],s[3],s[6],s[6]),otherActionsIconContainerMarginLeft:new y(s[5],s[4],s[4],s[5]),otherActionsContainerBottom:new y(58,44),iconContainerMarginTop:new y(2,s[1]),recurringSchedulePaddingLeft:new y(s[2],0),paddingRight:new y(s[2],s[3]),labelMarginRight:new y(s[0],s[3]),textPadding:new y(s[0],s[3]),additionalTextMarginTop:new y(-4,0),refundPopupWidth:new y(300,420,420),drawerSectionPaddingLeftRight:new y(s[4],s[5]),infoLabelPaddingRight:new y(s[3],s[3]),infoLabelMarginTop:new y(s[1],s[0]),navBarHeight:new y(0,0,s[8]),navBarContainerWidth:new y(100,58)},{dateFormat:Ri,common:{noText:S,strings:{empty:c},currency:vt,via:zi,more:Mi,edit:Ni},spendManagement:{billPay:{billDetails:a,billsByTabs:Pe,bulkActions:Dt,vendorCreation:Ie,insufficientFunds:Kt}},collaboration:{threads:{placeholder:It,tooltip:jt,title:{comments:Li}}}}=ni.getLocalizedStrings(),je=Ri.visual.MMMDCommaYYYYformat,$t=({billDetails:e,currentTenant:b,showApproveRejectBtns:h,isShowDeletedBillsEnabled:E,signedInUser:_,isAdmin:se,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Ut,hasZeniAssistAccess:Vt,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Be,isBillPayCommentingEnabled:Re,isZeniUser:Gt,showBackButton:ze=!0,isDetectInsufficientFundsEnabled:Xt,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Me,deleteBill:qt,cancelAndDeleteBill:Ne,approveOrRejectBill:Le,onAddNewRule:Ht,onAttachmentClick:Fe,saveBillDetails:Jt,discardOutsideZeniPaymentData:Qt,onBackClick:Oe,updateEditRealTimeApproverClicked:ea,onSaveRealTimeApprovals:ta,onRetryPaymentClick:aa,onRefundPaymentClick:ia,initialOpenThreadRequest:V})=>{const l=Ra(),o=Ot(),Ee=za(),[na,G]=p.useState(!1),[_e,de]=p.useState(!1),[ce,pe]=p.useState(!1),[Ze,me]=p.useState(!1),[la,ue]=p.useState(!1),[Ke,Q]=p.useState(!1),x=e.transactionDetails?.id,oa=Gt?Ma:Na,{requestToOpenThread:ye,setRequestToOpenThread:ee,setOpenThread:te}=p.useContext(oa);p.useEffect(()=>{V?.threadId!=null&&V?.companyId!=null&&V?.entityType!=null&&ee(V)},[V,ee]);const[ra,X]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:x,isGlobalComment:!1},f=Re&&x!=null,{threads:Y,isLoading:C}=La(),We=p.useMemo(()=>x==null?[]:Y.filter(r=>r.resolved===!1&&!r.id.includes(Fa)),[Y,x]).length,D=`dashboard_${o.currentTenant?.companyId}`,sa=p.useCallback((r,u)=>{te(u),X(!1)},[te,X]);p.useEffect(()=>{ye?.threadId!=null&&Y.length>0&&!C&&(te(ye.threadId),ee(null))},[ye,Y,C,te,ee]);const Ue=p.useRef(!1),[da,ca]=p.useState(!1),pa=p.useRef(r=>{r&&!Ue.current&&(Ue.current=!0,ca(!0))});Oa({componentName:"bill.details",enabled:da});const[M,ae]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ve,Ge]=p.useState("approved"),[ma,Xe]=p.useState(!1),[ua,Ye]=p.useState(!1),[qe,He]=p.useState(!1),Je=()=>Xe(!1),Qe=Ea(e.zeniAssist?.refundStatus.fetchState),ie=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Me(),J())},[e,J,Me]),p.useEffect(()=>{Qe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(pe(!1),ie())},[Qe,e.zeniAssist?.refundStatus,ie]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,q=e.transactionDetails?.billPayInfo.billPaymentStatus,ya=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,he=w?.code==="paid",v=he?w:ne?.code=="approved"&&q?.code?q:ne,L=Fi(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?ya:q?.code==null||ne?.code!="approved"&&q.code!=="mark_as_paid"?ne:q,be=e.transactionDetails?.vendor?.name,P=e.isRecurring,et=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},ha={onOkClick:()=>{G(!1),M.primaryButtonText===a.delete?qt?.(e.isRecurring):M.title===a.cancelBillTitle?Ne?.(e.isRecurring):M.title===a.cancelAndDeleteBillTitle||M.title===a.recurringBill.cancelAndDeleteRecurringTitle?Ne?.(e.isRecurring,!0):M.primaryButtonText===a.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ia())},onCancelClick:()=>{G(!1),pe(!1)}},ba={onOkClick:r=>{ue(!1),Le({billId:e.transactionDetails?.id??"",type:"rejected",description:r})},onCancelClick:()=>{ue(!1)}},xa=()=>{const[r]=gi("ZeniAssist");return r!=null?t.jsx(fi,{"data-testid":g("bill-details-zeni-assist-icon",x),onClick:()=>{me(!Ze),z.trackZeniAssistClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${i.sp5}`,height:`${i.sp5}`,marginBottom:`${i.sp2}`},animationData:r,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},le={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??vt.currencyCode},xe=e.transactionDetails?.lines?.map((r,u)=>{const B=r;return{lineIndex:u,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],ga=e.transactionDetails?.recipientTotalAmount.amount??0,ge=e.transactionDetails?.recipientTotalAmount,d={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},I=m.labelWidth.value(l),fa=r=>r==="billable"||r==="has_been_billed"?a.yes:a.no,wa=d.paymentToBankAccount?.bankAccountNumber?d.paymentToBankAccount?.bankAccountNumber?.slice(d.paymentToBankAccount?.bankAccountNumber?.length-4):d.paymentType?.method?.includes("international")&&d.paymentToBankAccount?.bankAccountIban?d.paymentToBankAccount?.bankAccountIban?.slice(d.paymentToBankAccount?.bankAccountIban.length-4):"",Ta=d.paymentToBankAccount?.bankAccountName!=null&&d.paymentToBankAccount?.bankAccountName!=""?d.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${d.paymentToBankAccount?.bankName} XXXX${wa}`,va=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${a.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(yn,{windowSize:l,children:t.jsx(un,{})})]}):void 0,tt=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),oe=e.transactionDetails?.billPayInfo!=null?Di(e.transactionDetails?.billPayInfo):void 0,Da=oe!=null&&e.paymentMethodType?.maxPeriod?.value!=null?Ii(ji(oe?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,at=e.transactionDetails?.billPayInfo.expectedDepositDate??Da,it=pt(d?.paymentType?.method??"").replace("Same Day",""),Ia=(d?.paymentToBankAccount!=null||d?.paymentToPI)!=null?a.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_a,{paymentTypeLabel:it,onClick:()=>Xe(!0),style:{marginTop:`${l==="small"?i.sp2:i.sp0}`}}):void 0,nt=e.transactionDetails?.lines?.some(r=>{const u=r.account;return u?.isDeleted===!0&&u?.isBillEditableCoaAccountType===!1})??!1,fe=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&nt),lt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&nt),we=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,Te=e.zeniAssist?.isEligibleForRefund===!0,ja=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$a=Vt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(we||Te)&&ja===!1,ve=we||Te,Aa=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,Z=v?.code,ka=!Aa&&(!tt||v?.code==="processing"&&!P),ot=!tt,rt=["small","medium-compact","medium-regular"].includes(l),H=$i(e.transactionDetails?.bulkProcessingDetail?.type),O=Ai(e.paymentMethodType?.method),Sa=!H&&(Z!=="processing"&&lt||Z==="processing"&&!P||Z==="processing"&&ot||h&&O&&Be),st=()=>{Ye(!0),z.trackBillPayMarkAsPaid(w?.code??"",v?.code??"")},Ca=p.useMemo(()=>({companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,entityType:"bill.details",entityId:x??c,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,x]),K=Xt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Za(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,d.paymentDate):void 0,dt=()=>{Ge("approved"),Ke===!0&&Q(!1),K!=null&&z.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Le({billId:e.transactionDetails?.id??"",type:"approved"})},ct=p.useRef(null);return t.jsxs(Ji,{windowSize:l,ref:ct,children:[t.jsx(Ka,{anchor:"right",open:ma,onClose:Je,transitionDuration:250,"data-testid":g("vendor-email-preview-drawer"),children:t.jsx(Wa,{companyName:Ua(b.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:d.paymentDate?.format(je)??"",paymentType:it,amount:Ce("0,0.[00]",ge),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Je})}),t.jsxs(an,{ref:pa.current,windowSize:l,children:[t.jsx(xn,{windowSize:l,children:l==="small"?t.jsx(mt,{"data-testid":g("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),backgroundColor:Ee.colors.grey4,rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-small-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-small-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),source:"BillDetailPage"}):t.jsx(mt,{"data-testid":g("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[be,e.isRecurring?t.jsx(Se,{width:i.sp4,height:i.sp4}):null]}),rightSideComponent:t.jsxs(Bt,{windowSize:l,children:[f?t.jsxs(Lt,{isDisabled:C,"data-testid":g("bill-comment-button"),onClick:C?()=>null:r=>{r.preventDefault(),r.stopPropagation(),X(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(u=>yt(u)),void 0,void 0,"page icon")},children:[t.jsx(ut,{count:C?void 0:We,isLoading:C,style:{left:"12px"}}),t.jsx(Ft,{})]}):null,t.jsx(Rt,{onClick:()=>ie(),"data-testid":g("bill-detail-nav-bar-close-button"),children:t.jsx(Pt,{})})]}),leftSideComponent:t.jsx(Ct,{windowSize:l,onClick:Oe,"data-testid":g("bill-detail-nav-bar-back-button"),style:{visibility:ze?"visible":"hidden"},children:t.jsx(St,{})}),enableTitleOnScroll:!0,scrollableContent:ct,source:"BillDetailPage"})}),t.jsxs(nn,{windowSize:l,children:[Ke?t.jsx(Ci,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:dt,onCancelClick:()=>{Q(!1),et()},onClickAway:()=>{Q(!1)}}):null,ua?t.jsx(Pi,{onCancel:()=>{Qt(),Ye(!1),qe&&He(!1)},onProceedForMarkAsPaid:r=>{z.trackBillPayMarkAsPaidSubmit(r.paymentMode??"other",w?.code??"",v?.code??""),Jt(!0,qe,r)},saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,na||ce?t.jsx(ht,{titleComponent:t.jsx(xt,{children:M.title}),descriptionComponent:t.jsx(bt,{children:M.description}),primaryButtonText:M.primaryButtonText,proceedButtonVariant:ce?"primary":"danger",secondaryButtonText:M.secondaryButtonText,action:ha,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:ce?Oi(l,e):null}):null,la?t.jsx(ht,{titleComponent:t.jsx(xt,{children:a.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(bt,{children:a.rejectBillDescription}),primaryButtonText:a.send,secondaryButtonText:a.cancel,action:ba,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:a.rejectBillReasonPlaceholder}):null,l!=="small"||L?t.jsxs(on,{windowSize:l,children:[l!=="small"?t.jsxs(rn,{windowSize:l,children:[be,e.isRecurring?t.jsx(Se,{height:i.sp5,width:i.sp5}):null]}):null,E&&L!=null&&L.code==="deleted"||L?.value===Pe.tabsById.overdue?t.jsx(pn,{color:L.color,bgColor:L.bgColor,borderColor:L.borderColor,children:L.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(Va,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Ga,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:at,scheduleDate:oe,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Zi(H,e,K),t.jsx(Xa,{sectionId:Ya,currentVendorOption:{defaultOptions:[]},billId:x,isBillPayCommentingEnabled:Re,isBillPaid:he,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Fe,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),d.paymentType?.method?.includes("ach"),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.whatForTitle}),t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceNumber"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceNumber")}`},children:t.jsx($,{label:{label:a.invoiceNumber,width:I},text:le.invoiceNumber??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"invoiceDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("invoiceDate")}`},children:t.jsx($,{label:{label:a.invoiceDate,width:I},text:le.invoiceDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"billDueDate"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billDueDate")}`},children:t.jsx($,{label:{label:a.billDueDate,width:I},text:le.billDueDate?.format(je)??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"memo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("memo")}`},children:t.jsx($,{label:{label:a.memo,width:I},text:le.memo??S,style:{width:"auto"}})})]})]}),t.jsxs(Ae,{children:[t.jsx(ln,{windowSize:l,children:t.jsx(ke,{children:a.lineItemsTitle})}),xe.length>0?xe.map((r,u)=>{const B=e?.transactionDetails?.lines?.find(Pa=>Pa.id===r.lineId)?.recipientAmount;return t.jsxs(Qi,{children:[xe.length>1?t.jsx(en,{windowSize:l,children:t.jsx(tn,{windowSize:l,children:`${a.line} # ${u+1}`})}):null,t.jsxs($e,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.recipientAmount`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recipientAmount",u)}`},children:t.jsx($,{label:{label:a.amount,width:I},text:B!=null?Ce("0,0[.]00",B):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.lineDescription`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("lineDescription",u)}`},children:t.jsx($,{label:{label:a.description,width:I},text:r.lineDescription??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.account`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("account",u)}`},children:t.jsx($,{label:{label:a.category,width:I},text:r.account?.accountName??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.class`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("class",u)}`},children:t.jsx($,{label:{label:a.class,width:I},text:r.class?.className??S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.billable`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("billable",u)}`},children:t.jsx($,{label:{label:a.billable,width:I},text:r.billable!=null?fa(r.billable):S,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:`${u}.customer`}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("customer",u)}`},children:t.jsx($,{label:{label:a.customer,width:I},text:r.customer?.name??S,style:{width:"auto"}})})]})]},u)}):null]}),t.jsxs(sn,{windowSize:l,children:[t.jsx(dn,{children:a.total}),t.jsx(cn,{children:ge!=null?t.jsx(qa,{amount:ge,integerStyles:gt.h6Medium.cssObject,decimalStyles:gt.standardMedium.cssObject}):S})]}),t.jsxs(Ae,{children:[t.jsx(ke,{children:a.paymentDetailsTitle}),t.jsxs($e,{children:[O?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"withdrawFrom"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("withdrawFrom")}`},children:t.jsx($,{label:{label:a.withdrawFrom,width:I},text:e.withdrawFrom!=null?Et(e.withdrawFrom,l):c,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:re.brandColorGoldDark},additionalInfoLabel:K!=null&&w?.code==="pending_approval"?Kt.addMoney:K})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentType")}`},children:t.jsx($,{additionalInfoLabel:d.paymentType?.method!=null&&d.paymentType.method.includes(ki)&&Ut&&d.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Wi,{children:Ha(d.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:a.paymentMethod,width:I},text:O&&e.outsideZeniPaymentInfo!=null?_i(e.outsideZeniPaymentInfo):pt(d.paymentType?.method??""),style:{width:"auto"}})}),O?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"paymentTo"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentTo,width:I},text:d.paymentToBankAccount!=null?Ta:d.paymentToPI!=null?d.paymentToPI.displayText:va,style:{width:"auto"},showEyeIcon:d.paymentToBankAccount!=null&&!!d.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||d.paymentType?.method?.includes("ach"),tooltipText:(()=>{const r=d?.paymentToBankAccount?.bankAccountType,u=r!=null&&r!==""?bi(r.toLowerCase()):r??"";return`${Ie.achDetails.bankRoutingNumber} ${d?.paymentToBankAccount?.bankRoutingNumberAch}, ${d?.paymentToBankAccount?.bankName}
2
2
  ${Ie.achDetails.bankAccountNumber} ${d?.paymentToBankAccount?.bankAccountNumber}, ${Ie.achDetails.accountTypeLabel} ${u}`})(),additionalInfoLabel:t.jsx(Ki,{children:Ia})}),d?.paymentToBankAccount==null&&d?.paymentToPI==null&&d?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(xi,{paymentType:d?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null]})})]}),O||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:x,dashboardTabKey:k({type:"details",key:"recurringPaymentType"}),roomId:D,companyId:o.currentTenant?.companyId??c,companyName:o.currentTenant?.companyName??c,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${A("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx($,{label:{label:a.paymentType,width:I},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:Qa(e.isRecurring,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:Ja(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(hn,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(ei,{onAttachmentClick:Fe,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??vt.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(ti,{amount:ga,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:se,signedInUserId:_?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:ea,onSaveRealTimeApprovals:ta},historicActivities:e.billHistory.activities}),t.jsx(mn,{})]}),e.transactionDetails?.vendor==null||he||e.transactionDetails.isDeleted?null:t.jsx(ai,{separatorStyle:{marginRight:i.sp4},showPrimaryButton:U||h,showCancel:!U&&h,cancelBtn:{label:rt?a.buttons.reject:a.buttons.rejectBill,isLoading:Ve==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:()=>{Ge("rejected"),K!=null&&z.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",wt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ue(!0)},style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Ei(U,rt),isLoading:Ve==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?st:()=>{K!=null?Q(!0):dt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:U?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ui,{children:t.jsxs(Hi,{windowSize:l,children:[!H&&_e?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-container"),children:[Z!=="processing"&&lt?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.deleteRecurringTitle:a.deleteBillTitle,description:P?a.recurringBill.deleteRecurringAlertText:a.deleteAlertDescription,primaryButtonText:a.delete,secondaryButtonText:a.cancel}),G(!0)},"data-testid":g("delete-bill-action-item"),children:a.buttons.deleteBill}):null,Z!=="processing"||P?null:t.jsx(W,{onClick:()=>{ae({title:a.cancelBillTitle,description:a.cancelAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-bill-action-item"),children:a.buttons.cancel}),Z==="processing"&&ot?t.jsx(W,{onClick:()=>{ae({title:P?a.recurringBill.cancelAndDeleteRecurringTitle:a.cancelAndDeleteBillTitle,description:P?a.recurringBill.cancelAndDeleteRecurringAlertText:a.cancelAndDeleteAlertDescription,primaryButtonText:a.yes,secondaryButtonText:a.no}),G(!0)},"data-testid":g("cancel-and-delete-bill-action-item"),children:a.buttons.cancelAndDelete}):null,h&&O&&Be?t.jsx(W,{onClick:()=>{He(!0),st()},"data-testid":g("mark-as-paid-action-item"),children:a.paymentOutsideZeni.markAsPaid}):null]})}):null,Ze?t.jsx(ft,{onClickAway:()=>{de(!1),me(!1)},children:t.jsxs(kt,{windowSize:l,"data-testid":g("bill-actions-with-zeni-assist-container"),children:[we?t.jsx(W,{onClick:()=>{z.trackRetryClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),aa()},"data-testid":g("retry-bill-action-item"),children:a.buttons.retry}):null,Te?t.jsx(W,{onClick:()=>{z.trackRefundClick(v?.code??"",w?.code??"",F?.description??"",P?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ae({title:a.zeniAssist.refundTitle,description:a.zeniAssist.refundDescription,primaryButtonText:a.zeniAssist.proceed,secondaryButtonText:a.cancel}),pe(!0)},"data-testid":g("refund-bill-action-item"),children:a.buttons.refund}):null]})}):null,t.jsxs(qi,{windowSize:l,children:[$a===!0?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:ve?a.zeniAssist.tooltip:a.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:ve,"data-testid":g("other-actions-icon-container"),children:ve?t.jsx(xa,{}):t.jsx(Gi,{})})}):null,H||fe!==!0?null:t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Ni,placement:"top",children:t.jsx(Yi,{onClick:et,"data-testid":g("edit-bill-icon-container"),children:t.jsx(Xi,{})})}),!H&&ka===!0&&Sa?t.jsx(De,{enterDelay:600,style:{color:re.heroDark,padding:`2px ${i.sp2}`},display:"flex",title:Mi,placement:"top",children:t.jsx(At,{windowSize:l,showEditIcon:fe,isIconClickable:!0,"data-testid":g("more-details-icon-container"),children:t.jsx(Vi,{onClick:()=>de(!_e)})})}):null]})]})}),style:{minHeight:62}})]}),f?t.jsx(ii,{isDrawerOpen:ra,allowComposer:!0,drawerTitle:Li,threads:Y,filter:T,autoExpand:!0,autoFocus:!1,isLoading:C,textOverrides:{composerPlaceholder:It.addANewComment,replyComposerPlaceholder:It.replyAComment,threadResolve:jt.resolveComment,threadUnResolve:jt.unResolveComment},threadMetadata:Ca,onThreadClick:sa,onCloseAllThreadsDrawer:()=>X(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${i.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ee.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}}):null]})},Bn=e=>{const b=Ot(),h=e.billDetails.transactionDetails?.id,E=e.isBillPayCommentingEnabled&&h!=null,_=b.currentTenant?.companyId;if(!E||_==null||h==null)return t.jsx($t,{...e});const se=`dashboard_${_}`;return t.jsx(Ba,{roomId:se,filter:{application:"dashboard",companyId:_,entityId:h,tab:"bill",isGlobalComment:!1},children:t.jsx($t,{...e})})},Fi=(e,b)=>{const h=e?.code;if(e!=null&&h!=null)return b?.isDeleted===!0?{value:Pe.tabsById.deleted,color:N.deleted.color,bgColor:N.deleted.bgColor,borderColor:N.deleted.borderColor,code:"deleted"}:h==="pending_approval"&&b?.dueDate?.isBefore(Si(),"date")===!0?{value:Pe.tabsById.overdue,color:N.overdue.color,bgColor:N.overdue.bgColor,borderColor:N.overdue.borderColor}:{value:e.name,color:N[h].color,bgColor:N[h].bgColor,borderColor:N[h].borderColor}},Oi=(e,b)=>{const h=b.transactionDetails?.recipientTotalAmount;return t.jsxs(bn,{windowSize:e,children:[t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.accountNumber}),t.jsx(Nt,{children:b.withdrawFrom!=null?Et(b.withdrawFrom,e):c})]}),t.jsxs(zt,{windowSize:e,children:[t.jsx(Mt,{children:a.zeniAssist.amount}),t.jsx(Nt,{children:h!=null?Ce("0,0[.]00",h):S})]})]})},Ei=(e,b)=>e?a.paymentOutsideZeni.markAsPaid:b?a.buttons.approve:a.buttons.approveBill,_i=e=>{const b=e.paymentMode,h=a.paymentOutsideZeni.offline;if(b==null||b==="other")return h;const E=a.paymentOutsideZeni.paymentModeOptions.find(_=>_.value===b)?.label;return`${h} ${zi} ${E}`},Zi=(e,b,h)=>{if(e)return t.jsx(Tt,{variant:"warning",style:{marginTop:i.sp5,marginBottom:i.sp3},title:Dt.duplicateWarning.title,description:Dt.duplicateWarning.description});if(h!=null){const E=`${b.withdrawFrom?.label??""} ${b.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(Tt,{variant:"low-balance",style:{marginTop:i.sp2,marginBottom:i.sp3},title:`${Kt.lowBalanceIn.replace("__account__",E)}`,description:h.replace("Low balance! ","")})}return null},Ki=n.div``,Wi=n.div``,Ui=n.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1 +1 @@
1
- import{j as l}from"./pdf-DwfifS04.js";import{a as y}from"./sentry-Cm8I7E9J.js";import{j,h as U,i as B,u as v,N as O,k as T,l as $,R as L,m as h}from"./core-CaikJZHD.js";import{ct as N,L9 as A,KR as b,tU as I,tO as F,tS as w,tH as K,KT as W,tK as q,tW as H,tV as C}from"./zeni-epic-state-lC5X-sam.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-mhb15COx.js";import"./mui-G2MlMTlr.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-Bs2ple33.js";import M from"./NotFoundScreen-BBbILNsa.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="27cf8ee3-8798-4b17-acaf-d0339ea7a0da",e._sentryDebugIdIdentifier="sentry-dbid-27cf8ee3-8798-4b17-acaf-d0339ea7a0da")}catch{}})();const R="bill-approval-rule-update",X=T(function(e){return{approvalView:A(e),billPaySetupApproverViewUpdateData:b(e).billPaySetupApproverViewUpdateData}},function(e,o){const{navigate:t,location:p}=o;return{onApprovalRulesEventReceived:a=>{a.endsWith(R)&&e(W(!1))},onBackClick:()=>{_(p)?t("../../"):t("../../../bills/setup")},onDeleteRuleClick:a=>{e(K(a))},onEditRuleClick:a=>{a!=null?(e(w(a)),t(`./${a}/edit`)):(e(w()),t("./new"))}}})(Q(z)),Y=()=>{const e=j(),o=U(),t=B(),[p,a]=y.useState(!1),[u,s]=y.useState(!1),d=k(),n=v(i=>i.billPaySetupApproverViewState.fetchState),c=v(i=>N(i)),r=v(i=>A(i)),g=v(i=>b(i).billPaySetupApproverViewUpdateData);if(y.useEffect(()=>{g?.updateStatus.fetchState==="Completed"&&t(I())},[g]),y.useEffect(()=>{p||n!=="Not-Started"||(a(!0),t(F(!0)))},[p,n,t]),P.getSignedInUser()==null)throw Error("Can't access billpay approval without signing in...");y.useEffect(()=>{r.allApprovalRules.length===0&&r.fetchState==="Completed"&&(u||(s(!0),t(w())),e("./new"))},[u,r,t]);const f={events:c.companyId!=null?[`private-${c.companyId}.${R}`]:[],eventCallback:(i,x,m)=>{i.endsWith(R)&&m.onApprovalRulesEventReceived(i)}};return c.companyBillPayInfo?.info?.isBillPayTOSAccepted===!1?l.jsx(O,{to:"../../promo"}):c.companyBillPayInfo?.info?.isBillPayTOSAccepted!==!0||r.fetchState!=="Completed"&&r.fetchState!=="Error"?l.jsx(V,{fetchState:"In-Progress",style:{backgroundColor:d.colors.grey5}}):l.jsx(X,{currentTenant:c,location:o,navigate:e,...f})},Z=T(function(e,o){const t=b(e),p=t.billPaySetupApproverViewUpdateData?.type??"approval_create",a=p==="approval_create"&&t.allApprovalRules.length!==0;let u=t.allApprovalRules.length===0;return o.approvalRuleId&&(u=t.allApprovalRules.findIndex(s=>s.approvalRuleId===o.approvalRuleId)===0),{localData:t,hideUpperBoundField:a,isLowerBoundDisabled:u,approvalUpdateActionType:p}},function(e,o){const{navigate:t,approvalUpdateDataView:p,approverViewData:a,approvalRuleId:u}=o,s=p.billPaySetupApproverViewUpdateData?.type,d=_(o.location);return{onApprovalRuleDataUpdated:n=>{const c=r=>{const g=[];return r.forEach(f=>{const i=f.actors.selectedUsers.map(S=>({type:"user",userId:S.userId,isImplicitActor:!1})),x=f.actors.selectedNonUsers.map(S=>{const E=!!J(S.value);return{type:E?"attribute":"role",subType:S.value,userId:void 0,idType:void 0,isImplicitActor:!E}}),m=i.concat(x);g.push({action:f.stepType.selectedOption,actors:m,operator:m.length>1?f.stepType.selectedOption==="require_approval"?"or":"and":"is"})}),g};if(s==="approval_create"){const r={criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}else{const r={approvalRuleId:u,criteria:{rangeType:"range",rangeEntity:"currency",range:{min:{amount:n.lowerBound,currencyCode:"USD",currencySymbol:"$"},max:{amount:n.upperBound,currencyCode:"USD",currencySymbol:"$"}}},steps:c(n.steps),isApplicableOnPendingApprovalEntity:n.applyToExistingBills.includes("applyToExistingBills")};e(C(r))}},onResetClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onBackClick:()=>{e(I()),s==="approval_update"||d?t("../"):a.allApprovalRules.length===0&&a.fetchState==="Completed"?t("../../setup"):t("../")},onSaveRuleClick:()=>{e(H())},onSaveRuleSuccess:()=>{t("../")}}})(G);function D(){const e=j(),o=B(),t=U(),{approvalRuleId:p}=$(),a=P.getSignedInUser(),u=k(),s=v(r=>b(r)),d=v(r=>A(r)),[n,c]=y.useState(!1);if(y.useEffect(()=>{n||(c(!0),o(q(!0)))}),y.useEffect(()=>{d.fetchState==="Not-Started"&&e(p!=null?"../../":"../")},[d,p]),a==null)throw Error("Can't access address page without signing in...");return s.approverListFetchStatus.fetchState=="Not-Started"||s.approverListFetchStatus.fetchState==="In-Progress"?l.jsx(V,{fetchState:s.approverListFetchStatus.fetchState,style:{backgroundColor:u.colors.grey5}}):l.jsx(Z,{navigate:e,approvalUpdateDataView:s,approvalRuleId:p,approverViewData:d,location:t})}function se(){return l.jsxs(L,{children:[l.jsx(h,{path:"/",element:l.jsx(Y,{})}),l.jsx(h,{path:"/new",element:l.jsx(D,{})}),l.jsx(h,{path:"/:approvalRuleId/edit",element:l.jsx(D,{})}),l.jsx(h,{path:"*",element:l.jsx(M,{})})]})}export{se as B};
1
+ import{j as l}from"./pdf-CwWlK-Dr.js";import{a as y}from"./sentry-D-LCra2M.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-AYNw6kyJ.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-B1zsDZZ4.js";import{y as k,js as P,jQ as V,k9 as Q,lo as z,ki as _,lp as G}from"./index-CilRLucN.js";import"./mui-Ckdcx_YE.js";import{i as J}from"./ReimbursementApprovalRuleDetailScreen-Bqm6EOL1.js";import M from"./NotFoundScreen-YeCuKQy4.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};
@@ -0,0 +1,27 @@
1
+ import{x as F,m as U,e as M,O as _,T as W,a7 as G,a1 as X,c8 as H,V as o,a_ as J,A as K,a9 as Q,o as d,fy as Y}from"./index-CilRLucN.js";import{a as L}from"./sentry-D-LCra2M.js";import{n as h}from"./mui-Ckdcx_YE.js";import{b as Z,f as ee,o as R,l as T}from"./FollowStepsSection-CvWPHXDW-CX31cI67.js";import"./pdf-CwWlK-Dr.js";import"./zeni-epic-state-B1zsDZZ4.js";import"./core-AYNw6kyJ.js";import"./lottie-DdLBMmzp.js";import"./liveblocks-DJcRPJQh.js";import"./recharts-Dr1JzI4y.js";import"./dnd-Dw-riVE4.js";import"./analytics-CVqRc8fh.js";import"./plaid-BhP6n1uc.js";import"./utils-CI1RvLss.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="08feb2dd-f1ca-4afc-8b93-b7fe9c0e39ca",e._sentryDebugIdIdentifier="sentry-dbid-08feb2dd-f1ca-4afc-8b93-b7fe9c0e39ca")}catch{}})();const $="billPayApprovalRuleDetailPage",k="lowerBound",C="upperBound",I="steps",b="applyToExistingBills",ae={footerPadding:new F(U[2],U[2])};function Se({localData:e,approvalUpdateActionType:a,onBackClick:l,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=le(e,a==="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"&&w()},[B,c?.fetchState,w]),o.jsxs(se,{children:[o.jsx(J,{title:a==="approval_create"?t.newApproval:t.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsxs(K,{...x,children:[o.jsx(ne,{children:o.jsx("form",{id:j($),onSubmit:V,children:o.jsxs(ie,{children:[o.jsx(Z,{label:{label:A?S.amountPerBillGreaterLabel:S.amountPerBillLabel},firstText:{type:"number",name:k,placeholder:"$0",options:{required:!0,max:D===1/0?Number.MAX_SAFE_INTEGER-1:D-1,min:v,validate:i=>!!r||i!=null&&i>v},isDisabled:r,additionalInfoLabel:t.firstRuleLowerBoundInfoLabel,additionalErrorLabel:t.firstRuleErrorInfoLabel},secondText:{type:"number",name:C,placeholder:"Infinity",isDisabled:g,hideField:A,additionalInfoLabel:t.upperBoundInfoLabel}}),o.jsx(pe,{}),o.jsx(ee,{sectionId:I,label:{label:t.followStepsLabel},approversPlaceholder:t.approversPlaceholder,notifiersPlaceholder:t.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:E,stepsInfo:y[I],userSelectPlaceholder:t.userSelectPlaceholder,approveNotifyPlaceholder:t.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})}),o.jsx(Q,{formId:j($),primaryBtn:{label:t.saveBtnText,isLoading:c?.fetchState==="In-Progress",isDisabled:c?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},topComponent:a==="approval_create"&&p.length===0?null:o.jsx(Y,{name:b,mode:"always_on",checkBoxes:[{value:b,label:t.applyToExistingBills,defaultChecked:!0,groupLabel:!1}],style:{width:"100%"}}),showCancel:!0,cancelBtn:{label:t.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:n},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:ae.footerPadding.valuePx(P)},separatorStyle:{marginRight:d.sp4}})]})]})}const le=(e,a)=>{const{criteria:l,steps:s}=e.billPaySetupApproverViewUpdateData?.data??{},n=e.allApprovalRules.length===0;return{[b]:n?[]:[b],[I]:te(e.allApprovers.map(r=>r.user),e.filteredApprovers.map(r=>r.user),R(e.allAttributes),R(e.filteredAttributes),s??[])??[],[k]:a?void 0:l!=null?l.range.min.amount??0:0,[C]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},te=(e,a,l,s,n)=>n&&n.length>0?n.map((r,g)=>({stepIndex:g,stepType:{selectedOption:r.action,allOptions:T},actors:{allUsers:a,selectedUsers:re(e,r.actors),allNonUsers:s,selectedNonUsers:oe(l,r.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:T},actors:{allUsers:a,selectedUsers:[],allNonUsers:s,selectedNonUsers:[]}}],re=(e,a)=>e.filter(l=>l.userId!=null&&a.findIndex(s=>s.userId===l.userId)>-1),oe=(e,a)=>e.filter(l=>a.findIndex(s=>s.subType===l.value)>-1),j=e=>`${e}_form`,Be=e=>`${e}`,se=h.div`
2
+ display: flex;
3
+ height: 100%;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ background-color: ${e=>e.theme.colors.grey4};
7
+ box-shadow: ${e=>`${d.sp0} 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
8
+ `,ie=h.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ border: 1px solid ${e=>e.theme.colors.grey3};
12
+ box-shadow: ${e=>`${d.sp0} 2px ${d.sp1} ${e.theme.colors.dropShadowNormal}`};
13
+ border-radius: ${d.sp2};
14
+ `,ne=h.div`
15
+ display: flex;
16
+ justify-content: flex-start;
17
+ height: 100%;
18
+ overflow-y: auto;
19
+ flex-direction: column;
20
+ align-items: center;
21
+ `,pe=h.div`
22
+ display: flex;
23
+ flex: 1;
24
+ background-color: ${e=>e.theme.colors.grey3};
25
+ min-height: 1px;
26
+ max-height: 1px;
27
+ `;export{ae as D,Se as default,j as uniqueFormName,Be as uniqueName};
@@ -1,4 +1,4 @@
1
- import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bn as P,bR as q,bS as V,bT as O,cq as F,m as r,at as J,d as T,as as K,f as j,cp as Q,aR as X,w as Y}from"./index-mhb15COx.js";import{n as t}from"./mui-G2MlMTlr.js";import{a as Z}from"./sentry-Cm8I7E9J.js";import"./pdf-DwfifS04.js";import"./zeni-epic-state-lC5X-sam.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="9b13f2fd-6331-4270-9bc8-fe9ca011fde5",e._sentryDebugIdIdentifier="sentry-dbid-9b13f2fd-6331-4270-9bc8-fe9ca011fde5")}catch{}})();const s={sectionWidth:new l(343,580,726),ruleWrapperPadding:new l(r[3],r[4]),wrapperGap:new l(r[4],r[3]),wrapperMarginBottom:new l(r[6],r[8]),lastWrapperMarginBottom:new l(r[5],r[9]),stepperWidthHeight:new l(20,r[5]),stepperItemLeft:new l(-29,-23),stepperItemTop:new l(2,r[0]),stepperItemPaddingLeft:new l(r[0],10),stepperItemMinHeight:new l(22,28),stepperLeft:new l(11,17),stepperTop:new l(2,r[0]),stepperContentTop:new l(-1,-4)},N={stepper:new T("smallRegular","standardRegular"),amount:new T("standardRegular","largeMedium")},ee=({showDeleteBtn:e=!1,disableButtons:d=!1,isLastSection:g=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:w})=>{const[v,u]=Z.useState(!1),n=W(),{range:m}=c.criteria[0],{steps:$,approvalRuleId:x}=c,a=S.getLocalizedStrings().commonSetUp.approval,U={onOkClick:()=>{u(!1),w?.(x)},onCancelClick:()=>{u(!1)}};return o.jsxs(oe,{windowSize:n,isLastSection:g,isUpdatingApprovalRules:d,children:[o.jsxs(te,{windowSize:n,children:[o.jsxs(de,{children:[o.jsxs(A,{windowSize:n,children:[a.from," ",z("0,0",m.min)]}),o.jsxs(ie,{children:[o.jsx(k,{}),o.jsx(le,{}),o.jsx(k,{})]}),m.max==null?o.jsx(he,{}):o.jsx(A,{windowSize:n,children:z("0,0",{...m.min,amount:m.max.amount})})]}),o.jsxs(ce,{className:"icons",children:[e===!0?d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(I,{$isDisabled:!0,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(I,{onClick:()=>{u(!0)},"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}):null,d===!0?o.jsx(P,{title:a.approvalRulesUpdatingTooltip,placement:"top",children:o.jsx(D,{children:o.jsx(C,{$isDisabled:!0,"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})})}):o.jsx(C,{onClick:()=>{y(x)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),o.jsx(re,{windowSize:n,children:o.jsx(se,{isSingleStep:$.length===1,windowSize:n,children:$.map((h,_)=>o.jsxs(ae,{isSingleStep:$.length===1,className:"stepperItem",windowSize:n,children:[h.action==="require_approval"?o.jsx(ne,{children:a.requireText}):o.jsx(pe,{children:a.notifyText}),h.nonUserActors!=null&&h.nonUserActors.filter(p=>p.subType!=null).map((p,E)=>o.jsxs(L,{children:[o.jsx(R,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},`${p.subType}_${E}`)),h.actors.map(p=>o.jsxs(L,{children:[o.jsxs(R,{children:[p.firstName," ",p.lastName]}),h.operator!="is"?o.jsx(B,{className:"operator",children:h.operator}):null]},p.userId))]},_))})}),v?o.jsx(q,{titleComponent:o.jsx(O,{children:a.deleteApprovalRuleTitle}),descriptionComponent:o.jsx(V,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:U}):null]})},oe=t.div`
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-CilRLucN.js";import{n as t}from"./mui-Ckdcx_YE.js";import{a as Z}from"./sentry-D-LCra2M.js";import"./pdf-CwWlK-Dr.js";import"./zeni-epic-state-B1zsDZZ4.js";import"./core-AYNw6kyJ.js";import"./lottie-DdLBMmzp.js";import"./liveblocks-DJcRPJQh.js";import"./recharts-Dr1JzI4y.js";import"./dnd-Dw-riVE4.js";import"./analytics-CVqRc8fh.js";import"./plaid-BhP6n1uc.js";import"./utils-CI1RvLss.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)};
@@ -175,7 +175,7 @@ import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bn as
175
175
  ${e=>`${N.amount.style(e.windowSize)}`};
176
176
  color: ${e=>e.theme.colors.primary};
177
177
  word-break: break-word;
178
- `,f={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 y=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:y,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:y,onClick:()=>{g()},"data-testid":b("add-approval-rule-bill-pay"),children:[o.jsx($e,{}),o.jsx(be,{children:u.addApprovalText})]})]}):null]})]})},ue=t.div`
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`
179
179
  display: flex;
180
180
  min-height: 100%;
181
181
  flex-direction: column;
@@ -201,9 +201,9 @@ import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bn as
201
201
  color: ${e=>e.theme.colors.hero};
202
202
  display: flex;
203
203
  justify-content: center;
204
- width: ${e=>f.titleWidth.valuePx(e.windowSize)};
205
- padding-top: ${e=>f.subTitlePaddingTop.valuePx(e.windowSize)};
206
- padding-bottom: ${e=>f.subTitlePaddingBottom.valuePx(e.windowSize)};
204
+ width: ${e=>y.titleWidth.valuePx(e.windowSize)};
205
+ padding-top: ${e=>y.subTitlePaddingTop.valuePx(e.windowSize)};
206
+ padding-bottom: ${e=>y.subTitlePaddingBottom.valuePx(e.windowSize)};
207
207
  `,we=t(M)`
208
208
  cursor: pointer;
209
209
  display: flex;
@@ -211,9 +211,9 @@ import{e as W,O as S,V as o,a_ as H,L as G,b,x as l,l as M,o as i,a5 as z,bn as
211
211
  justify-content: center;
212
212
  align-items: center;
213
213
  padding: ${i.sp3} ${i.sp4};
214
- gap: ${e=>f.addApprovalGap.valuePx(e.windowSize)};
214
+ gap: ${e=>y.addApprovalGap.valuePx(e.windowSize)};
215
215
 
216
- width: ${e=>f.width.valuePx(e.windowSize)};
216
+ width: ${e=>y.width.valuePx(e.windowSize)};
217
217
  height: ${i.sp8};
218
218
 
219
219
  background: ${e=>e.theme.colors.grey5};
@@ -1,4 +1,4 @@
1
- import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M,o,D as ie,c2 as oe,y as I,ab as U,H as se,x as le,f as $,bM as re,ac as te,au as ae,m as ne}from"./index-mhb15COx.js";import{a as g}from"./sentry-Cm8I7E9J.js";import{n as s}from"./mui-G2MlMTlr.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-lC5X-sam.js";import{C as me}from"./VideoPopup-R3u0N_if-CaG3EJQq.js";import{M as b}from"./usp-line-BBd1wKwW-BqojtCEK.js";import"./pdf-DwfifS04.js";import"./core-CaikJZHD.js";import"./lottie-D86WIi_0.js";import"./liveblocks--AdozwCz.js";import"./recharts-3tylCZU1.js";import"./dnd-CzsffKNn.js";import"./analytics-Qgv3Fhaa.js";import"./plaid-CcxzSXZd.js";import"./utils-BhOlvYO8.js";import"./VideoPlayer-ZGjx_Hp7-CjY3r1rL.js";import"./media-player-OnsEq_AY.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new i.Error().stack;l&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[l]="c9e9a588-46ac-408f-9b1a-9093e78ce022",i._sentryDebugIdIdentifier="sentry-dbid-c9e9a588-46ac-408f-9b1a-9093e78ce022")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ne[5],44)},he=s.div`
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 b,bM as re,ac as te,au as ae,m as ne}from"./index-CilRLucN.js";import{a as g}from"./sentry-D-LCra2M.js";import{n as s}from"./mui-Ckdcx_YE.js";import{FX as de,bK as ce,FY as pe}from"./zeni-epic-state-B1zsDZZ4.js";import{C as me}from"./VideoPopup-BPptwR51-Dm-cn-KD.js";import{M as $}from"./usp-line-BBd1wKwW-BBaxYQlT.js";import"./pdf-CwWlK-Dr.js";import"./core-AYNw6kyJ.js";import"./lottie-DdLBMmzp.js";import"./liveblocks-DJcRPJQh.js";import"./recharts-Dr1JzI4y.js";import"./dnd-Dw-riVE4.js";import"./analytics-CVqRc8fh.js";import"./plaid-BhP6n1uc.js";import"./utils-CI1RvLss.js";import"./VideoPlayer-wlJX6lEq-BRAB9bV0.js";import"./media-player-V7uSzi45.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]="d7be4f26-abab-45d3-9a55-4f387a67e4c9",i._sentryDebugIdIdentifier="sentry-dbid-d7be4f26-abab-45d3-9a55-4f387a67e4c9")}catch{}})();const D="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",L="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",xe={midContainerMarginBottom:new le(ne[5],44)},he=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -63,12 +63,12 @@ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,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
- `,E=s(b)`
67
- color: ${$.graphColor16Dark};
68
- `,F=s(b)`
69
- color: ${$.graphColor09Dark};
70
- `,Y=s(b)`
71
- color: ${$.graphColor28Dark};
66
+ `,E=s($)`
67
+ color: ${b.graphColor16Dark};
68
+ `,F=s($)`
69
+ color: ${b.graphColor09Dark};
70
+ `,Y=s($)`
71
+ color: ${b.graphColor28Dark};
72
72
  `,ye=s(se)`
73
73
  margin: ${o.sp3} auto;
74
74
  max-width: 719px;
@@ -78,7 +78,7 @@ import{_ as J,e as f,a7 as Q,V as e,eY as W,a_ as ee,a as C,b as B,c as m,O as M
78
78
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
79
79
  align-items: center;
80
80
  justify-content: center;
81
- `,$e=s(U)`
81
+ `,be=s(U)`
82
82
  margin: ${i=>i.windowSize==="small"?o.sp1:`auto ${o.sp5}`};
83
83
  color: ${i=>i.theme.colors.grey1};
84
- `,r=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:l,meetingUrl:S,videoUrl:Z,onButtonClick:H,onBackClick:K,onSetupBillPaySuccess:z,onClickMenuIcon:N})=>{const h=J(),a=f(),{billPayTermsDetails:p}=i,[O,X]=g.useState(!1),[q,k]=g.useState(!1),v=Q(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const G=de(h.loggedInUserRoleMap),P=ce(h.loggedInUserRoleMap)&&!G,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(he,{children:[O===!0?e.jsx(me,{onCancelClick:()=>{X(!1)},videoUrl:Z}):null,q===!0?e.jsx(W,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ee,{title:r.title,onBackClick:K,showBackButton:!pe(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:N,source:"BillPayPromoPage"}),e.jsxs(ge,{windowSize:a,children:[a==="small"?e.jsx(ue,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx(be,{}):e.jsx(Se,{}),P===!1?e.jsxs(je,{children:[e.jsxs(fe,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:r.scheduleDemoButton,onClick:()=>{l?.trackBillPayPromoScheduleDemo(),k(!0)},"data-testid":B("billpay-schedule-demo-button")}),e.jsx($e,{windowSize:a,children:r.orText}),e.jsx(C,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:H,"data-testid":B("billpay-setup-button")})]}),e.jsxs(ye,{children:[r.terms.terms1,e.jsx(m,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(m,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(m,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(l?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(m,{href:t.tosUrl,onZeniLinkClick:()=>(l?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},be=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:l,children:[e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.fullyManagedText.bold}),e.jsx(j,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx(j,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx(j,{children:r.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsxs(_,{windowSize:l,children:[e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.fullyManagedText.bold}),e.jsx(w,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.multiLevelApprovalText.bold}),e.jsx(w,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.aiPoweredText.bold}),e.jsx(w,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Fe as default};
84
+ `,r=M.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=M.getLocalizedStrings().commonSetUp.businessVerification.terms,Fe=({billPaySetupView:i,analytics:l,meetingUrl:S,videoUrl:Z,onButtonClick:H,onBackClick:K,onSetupBillPaySuccess:z,onClickMenuIcon:N})=>{const h=J(),a=f(),{billPayTermsDetails:p}=i,[O,X]=g.useState(!1),[q,k]=g.useState(!1),v=Q(p?.fetchStatus.fetchState);g.useEffect(()=>{v==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&z?.()},[v,z,p?.fetchStatus]);const G=de(h.loggedInUserRoleMap),P=ce(h.loggedInUserRoleMap)&&!G,T=P?r.setupNonAccessableUsersPromoText:r.promoText;return e.jsxs(he,{children:[O===!0?e.jsx(me,{onCancelClick:()=>{X(!1)},videoUrl:Z}):null,q===!0?e.jsx(W,{onCancelClick:()=>{k(!1)},meetingUrl:S}):null,e.jsx(ee,{title:r.title,onBackClick:K,showBackButton:!pe(h.loggedInUserRoleMap),showMenuIcon:a==="small"||a==="medium-compact",onClickMenuIcon:N,source:"BillPayPromoPage"}),e.jsxs(ge,{windowSize:a,children:[a==="small"?e.jsx(ue,{children:T}):e.jsx(we,{children:T}),a==="small"?e.jsx($e,{}):e.jsx(Se,{}),P===!1?e.jsxs(je,{children:[e.jsxs(fe,{windowSize:a,children:[e.jsx(C,{variant:"secondary",label:r.scheduleDemoButton,onClick:()=>{l?.trackBillPayPromoScheduleDemo(),k(!0)},"data-testid":B("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:a,children:r.orText}),e.jsx(C,{variant:"primary",label:r.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:H,"data-testid":B("billpay-setup-button")})]}),e.jsxs(ye,{children:[r.terms.terms1,e.jsx(m,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(m,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(m,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(l?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(m,{href:t.tosUrl,onZeniLinkClick:()=>(l?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,r.terms.terms3]})]}):null]})]})},$e=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})}),e.jsxs(_,{windowSize:l,children:[e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.fullyManagedText.bold}),e.jsx(j,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.multiLevelApprovalText.bold}),e.jsx(j,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:l,children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(y,{children:r.aiPoweredText.bold}),e.jsx(j,{children:r.aiPoweredText.regular})]})]})]})]})},Se=()=>{const i=I(),l=f();return e.jsxs(A,{windowSize:l,children:[e.jsxs(_,{windowSize:l,children:[e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.fullyManagedText.bold}),e.jsx(w,{children:r.fullyManagedText.regular})]})]}),e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(F,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.multiLevelApprovalText.bold}),e.jsx(w,{children:r.multiLevelApprovalText.regular})]})]}),e.jsxs(n,{windowSize:l,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(E,{})}),e.jsxs(c,{children:[e.jsx(u,{children:r.aiPoweredText.bold}),e.jsx(w,{children:r.aiPoweredText.regular})]})]})]}),e.jsx(R,{windowSize:l,children:e.jsx(V,{windowSize:l,children:i.mode==="dark"?e.jsx(x,{src:L,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(x,{src:D,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})})]})};export{Fe as default};