@zeniai/web-cockpit-ui 1.14.19-dev → 1.14.19-dev-betaSK01

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 (371) hide show
  1. package/dist/assets/ACHDetailsPage-TewccRkX-DetITKOl.js +21 -0
  2. package/dist/assets/{AIPerformancePage-BuQApbEf-iP9bvKhu.js → AIPerformancePage-CJ0myi1p-CyCBKn16.js} +63 -63
  3. package/dist/assets/AccountInfoPage-CuytgM09-DMWlq-IF.js +18 -0
  4. package/dist/assets/{AccountInfoPageContent-DQJFmREl-DoaILqqU.js → AccountInfoPageContent-CVV20YhW-q-TI4Dr6.js} +18 -18
  5. package/dist/assets/{AccountReconDetailsDrawerPage-D2B9Na3--BPjptdtd.js → AccountReconDetailsDrawerPage-CNT6qZyD-ZHVZJgF9.js} +17 -17
  6. package/dist/assets/{AccountRow-ZcS_RTJN-DNHX6IR1.js → AccountRow-COaolUm5-Bsrm5YYV.js} +40 -40
  7. package/dist/assets/{AccountsPromoCardStack-Bh2D-mXh-Yx4rUExR.js → AccountsPromoCardStack-BOmk5qYk-Bnozn1QW.js} +37 -37
  8. package/dist/assets/{AddAddressForCardDrawer-Ds2V5DyG-D2Tq6L1d.js → AddAddressForCardDrawer-DQN-6ztS-C4C6h_V9.js} +2 -2
  9. package/dist/assets/{AddToWalletPage-DQ_gwAcu-Bv5nxp9i.js → AddToWalletPage-CT9nivqI-BnXCEk6P.js} +122 -122
  10. package/dist/assets/{AgingReportsPage-BU_tqV13-C2Yi_y38.js → AgingReportsPage-DGzFK69_-DgqwpnRI.js} +15 -15
  11. package/dist/assets/{AllUserItems-DBXzXO61-sIPVSbAT.js → AllUserItems-diZQlFqb-DwUtiew2.js} +17 -17
  12. package/dist/assets/{ApAgingDetailPage-Crv9EDe5-Dm92urnR.js → ApAgingDetailPage-CtXSUVGC-DdWwytoq.js} +3 -3
  13. package/dist/assets/AppBasePage-D6MgS-da-2jH4Fzgr.js +70 -0
  14. package/dist/assets/{AppDrawerContent-rw39Hn3s-Aoghs5SQ.js → AppDrawerContent-Z3Hny9GH-BBS5jJHD.js} +59 -46
  15. package/dist/assets/ApprovalRulesSettingsPage-BwnaDPqA-BMHJ2n3v.js +47 -0
  16. package/dist/assets/ArAgingChart-BvG_iPlt-BYubF9ZD.js +24 -0
  17. package/dist/assets/ArAgingDetailPage-Sm4672LS-o1itnQt5.js +46 -0
  18. package/dist/assets/{AttachmentView-BTAMhgXU-BizBD4c6.js → AttachmentView-ChlYn2cr-DueA245P.js} +8 -8
  19. package/dist/assets/AuditReportDrawerPage-CaFo0k9s-NaTvWx96.js +369 -0
  20. package/dist/assets/{BankAccountSection-DVO3xzgl-BbF3_Xvy.js → BankAccountSection-DdvqFTBS-3WhABy0l.js} +7 -7
  21. package/dist/assets/{BankAccountWarningSection-CQsqUFKg-CEwje_vW.js → BankAccountWarningSection-VrRQxdkB-DFivrjf8.js} +10 -10
  22. package/dist/assets/{BankConnectionsSettingsPage-CEyhk8v--D1MZcFK5.js → BankConnectionsSettingsPage-D1Y3V93C-Bfvr_pF_.js} +23 -23
  23. package/dist/assets/{BillDetailPage-CP6QCrla-C-q234bH.js → BillDetailPage-XL8GxSiQ-Cxb-3w9d.js} +18 -18
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-Bem5LvtY-ByYY2uP-.js → BillPayApprovalRuleDetailPage-wIEW2R5G-CC_GZTsX.js} +2 -2
  25. package/dist/assets/{BillPayApprovalRulesPage-DhDaCfQa-cqstNfVf.js → BillPayApprovalRulesPage-kGddvG8V-rTKT6DIU.js} +9 -9
  26. package/dist/assets/{BillPayPromoPage-BjH9lvnR-7aNAb2i3.js → BillPayPromoPage-VBLYqFtx-CSmxPHYz.js} +10 -10
  27. package/dist/assets/BillPaySetUpPage-CTNtHQBM-CpoUfnMM.js +42 -0
  28. package/dist/assets/BillingSettingsPage-CR0doM6R-DRs8JS8S.js +44 -0
  29. package/dist/assets/BillsBulkReviewDrawerPage-B0ebreRX-D7v6qOnU.js +1 -0
  30. package/dist/assets/{BoxItem-BL-UVx2X-CDUWJCC4.js → BoxItem-DJq3mny1-nPTLB__B.js} +4 -4
  31. package/dist/assets/BusinessVerificationPage-B6lyqGIK-BfLlNZ0a.js +140 -0
  32. package/dist/assets/BusyIndication-_H8LL7GJ-BjR55KdD.js +9 -0
  33. package/dist/assets/{CardNumberSubText-CNMNL0y--CRLH2YxV.js → CardNumberSubText-Bo_ZeAR0-DocU3odv.js} +4 -4
  34. package/dist/assets/{CashbackDetailPage-Cj26I5CB-DNKm6NdF.js → CashbackDetailPage-0Yl3lHzq-CJUtuV5y.js} +31 -31
  35. package/dist/assets/{ChargeCardDetailPage-herJK06r-Jj0sML3r.js → ChargeCardDetailPage-BaceF_92-G63YAG6z.js} +78 -78
  36. package/dist/assets/{ChargeCardListPage-LYVKm-0u-CGVPXLUW.js → ChargeCardListPage-_YORyJOy-uqdfjUZk.js} +37 -37
  37. package/dist/assets/{ChargeCardListTable-DxE-nRR4-Dc_afx90.js → ChargeCardListTable-DE1xnRyd-D2F1GAJW.js} +62 -62
  38. package/dist/assets/ChargeCardPromoPage-DO2UJyXm-Dwx7STGG.js +222 -0
  39. package/dist/assets/ChargeCardSetupPage-De5jDB3D-CMdmpmLu.js +36 -0
  40. package/dist/assets/{ChargeCardStatementsPage-DkCHd5c6-y_ZysAG_.js → ChargeCardStatementsPage-bpyamxR5-WxHdE5xc.js} +9 -9
  41. package/dist/assets/ChargeCardUtils-DYpmF85C-qBaPG14m.js +1 -0
  42. package/dist/assets/{ChaseOverlay-N7gGQaMQ-Bh9lkzpe.js → ChaseOverlay-YVpKSII6-BIyjTgCz.js} +10 -10
  43. package/dist/assets/CheckDepositDrawerPage-Dj2do0Un-DCNBKUNr.js +206 -0
  44. package/dist/assets/{CollapsableReportTable-NSlKGCNZ-9GlkRzVX.js → CollapsableReportTable-CDe76ha7-3Q7qsS_e.js} +18 -18
  45. package/dist/assets/{CompanyOfficerDetailsSection-C1IpMsWw-4riCbcJi.js → CompanyOfficerDetailsSection-CeVdKqY7-DWrcELqw.js} +25 -25
  46. package/dist/assets/{CompanyPassportCard-D5gkzDNU-DdCNWaie.js → CompanyPassportCard-O7LbMSSb-D53wb0da.js} +8 -8
  47. package/dist/assets/{CompanyPassportPage-6_6yWHxX-BzKkvM2X.js → CompanyPassportPage-B05q2F4S-DiyGLc2N.js} +154 -154
  48. package/dist/assets/CompleteProfile-B_dl9xEx-DFZ3KU15.js +52 -0
  49. package/dist/assets/ConfettiBurst-ChCmpiHq-BBDSx_jo.js +1 -0
  50. package/dist/assets/ControlledCheckBoxField-BIqM2o6X-Ml88Uf7U.js +74 -0
  51. package/dist/assets/{CreateOrEditVendorPage-DQW4Wobx-CiIXGaQB.js → CreateOrEditVendorPage-BZ6ZfaSo-Dn1DLrma.js} +15 -15
  52. package/dist/assets/{CreditCardPaymentDrawerPage-BEpQXn9g-DzfCHeLI.js → CreditCardPaymentDrawerPage-cABpaIqh-BIRd807Z.js} +16 -16
  53. package/dist/assets/{CreditCardPaymentPlgSection-BGh2TJeK-DFQxSPk-.js → CreditCardPaymentPlgSection-BgJ074tY-CfzZdzTd.js} +11 -11
  54. package/dist/assets/{CurrencySelectField-C2if0NUa-ChKY5K5U.js → CurrencySelectField-BfgtNimH-BYHOS_CH.js} +6 -6
  55. package/dist/assets/{CustomerOnboardingActivationPage-_zjv9RZY-5MkPCW8D.js → CustomerOnboardingActivationPage-Czg8rmEW-YInlsWzY.js} +4 -4
  56. package/dist/assets/CustomerOnboardingContainerPage-Ciaw11Nw-O_DtjvXM.js +1 -0
  57. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CXApNm6A-BSR-PhTi.js → CustomerOnboardingDetailPageSkeleton-DtYTYPnO-DzMzbH73.js} +17 -17
  58. package/dist/assets/CustomerOnboardingNoStepsPage-CdOEZjmC-HqvGWI7K.js +66 -0
  59. package/dist/assets/{CustomerOnboardingPage-CWpmMXrh-CRkiPpz7.js → CustomerOnboardingPage-CXZCAc_N-BfMJFDq7.js} +10 -10
  60. package/dist/assets/{CustomerOnboardingProductSuitePage-CGYRoz3v-BhEGdWj7.js → CustomerOnboardingProductSuitePage-ucFJ1PHr-BwZiAWEx.js} +10 -10
  61. package/dist/assets/{Dashboard-Dyt4nvyG-CkNduEQV.js → Dashboard-CAWL19Rr-CvQLInkH.js} +229 -229
  62. package/dist/assets/{DashboardReportPage-BSbTlRwW-gHAkcokq.js → DashboardReportPage-DYgKY1Ns-_VZzH9Ck.js} +27 -27
  63. package/dist/assets/DashboardSidebarBackgroundAnimation-CblfOXOJ-B4cbMZpc.js +12 -0
  64. package/dist/assets/{DepositAccTransactionItem-CuTp6qxI-Ce2SFbUX.js → DepositAccTransactionItem-DeOMizAI-BUL1onQj.js} +10 -10
  65. package/dist/assets/DepositAccTransactionListPage-2kpIHXLb-j8eQ9Syw.js +66 -0
  66. package/dist/assets/{DomesticWireDetailsPage-C5hxxGsr-D-EvElMb.js → DomesticWireDetailsPage-FsJvVULE-cMWuJpE8.js} +1 -1
  67. package/dist/assets/{DownloadOverlay-B9O7jf-4-BeIpOSC8.js → DownloadOverlay-CVCKyDWO-CyzPCm3f.js} +40 -40
  68. package/dist/assets/{DrawerPage-Dpd6lRf7-l9nV_5N2.js → DrawerPage-l697kk-T-C0lMqvCR.js} +14 -14
  69. package/dist/assets/EditPeoplePage-CwhUp4W2-CnFSjC3L.js +55 -0
  70. package/dist/assets/{EditReimbursementDetailPage-BL-W1hPs-D4iR-8Yt.js → EditReimbursementDetailPage-COuH1JPm-DF1XIZnj.js} +68 -68
  71. package/dist/assets/EmptySearchResults-CB9-FwYT-DCczU5qh.js +46 -0
  72. package/dist/assets/EntityDetailPage-BqjWJTDI-qcUtYQZh.js +18 -0
  73. package/dist/assets/{EntitySummarySection-eNxIwvHt-CkeObU85.js → EntitySummarySection-B1zP9dKH-kkSLVqaS.js} +10 -10
  74. package/dist/assets/ExpenseAutomationOverviewPage-CKokJTC4-C9VvWXen.js +222 -0
  75. package/dist/assets/{ExpenseAutomationPage-LPWPrpwm-T8iyqKP1.js → ExpenseAutomationPage-DP0P07VH-DhP4-CZe.js} +91 -91
  76. package/dist/assets/{ExpressPayPage-COQrt-KL-sn6b2-XB.js → ExpressPayPage-CuuS2EDn-D3uvvYo2.js} +9 -9
  77. package/dist/assets/{FeaturePreviewPage-Coe53hoK-Doq3zPCz.js → FeaturePreviewPage-D90G_5Q8-CnQvTfz2.js} +2 -2
  78. package/dist/assets/{FollowStepsSection-BJFJzQrz-CGmrm9Lr.js → FollowStepsSection-DbS5XlIB--DgM9Akw.js} +10 -10
  79. package/dist/assets/{GlobalReviewListPage-DDQb-plt-B7MJAdcL.js → GlobalReviewListPage-D1a2gbca-BjGUSD3w.js} +13 -13
  80. package/dist/assets/Header-DLZFUQF8-BI2bQ6MH.js +226 -0
  81. package/dist/assets/HealthListRow-iF093_lw-DegqmjBi.js +210 -0
  82. package/dist/assets/HealthMonitorDetailDrawer-BJRgJJOH-BzVkHFE6.js +401 -0
  83. package/dist/assets/HealthMonitorPage-BT0gIPV6-BAgQvawR.js +108 -0
  84. package/dist/assets/{HelpButton-BT_HyQ5k-B4E1vZtk.js → HelpButton-Dw0OujKs-8AApGgt1.js} +7 -7
  85. package/dist/assets/{InformationCardStack-B9E29_zj-DokGK6g8.js → InformationCardStack-QA9nEJlH-BHcB9j6E.js} +4 -4
  86. package/dist/assets/{InsightsCardStack-7XbkZ-A3-BxqeB-iN.js → InsightsCardStack-DKM6Xigy-B12rMXAv.js} +13 -13
  87. package/dist/assets/InsightsSection-DxpsNIIy-D73VhmA2.js +27 -0
  88. package/dist/assets/IntegrationsSettingsPage-DEOHHrS4-xD8BgFGo.js +57 -0
  89. package/dist/assets/{InternationalWireSwiftDetailsPage-BeSYu2Dm-y3Tu_Xyi.js → InternationalWireSwiftDetailsPage-KC-9TwlR-DtVQ4upN.js} +17 -17
  90. package/dist/assets/{InternationalWireVerificationPage-Ctcaggen-Cihfrd35.js → InternationalWireVerificationPage-D59omOr2-BqyFDoPr.js} +17 -17
  91. package/dist/assets/InviteFormPage-CU5_JoYd-DtlUlrhp.js +312 -0
  92. package/dist/assets/{InvitePageListView-BMMOpM9O-B8oUxVru.js → InvitePageListView-BO-RmmHm-B9WEWx8n.js} +55 -55
  93. package/dist/assets/InvitePeoplePage-Btu9ayOz-bG-WZTzF.js +12 -0
  94. package/dist/assets/{InvoiceUploadSection-C6Dx8Web-CBeOBAnd.js → InvoiceUploadSection-CibgDVMW-Ct_Yqg-6.js} +9 -9
  95. package/dist/assets/{IssueChargeCardPage-DWRhiOzj-DCnENqBq.js → IssueChargeCardPage-CB5DhzQb-Dowc3uml.js} +75 -75
  96. package/dist/assets/LabeledAddressValue-tO6Kg-ki-DIZXgDEF.js +49 -0
  97. package/dist/assets/LabeledAddressValueField-CkveEJJG-BEvwzrCB.js +45 -0
  98. package/dist/assets/LabeledControlledCheckBoxField-B50HdRDc-BPCXXpG-.js +16 -0
  99. package/dist/assets/{LabeledCreatableSingleSelectField-CTwToXIo-Cle-L6Nt.js → LabeledCreatableSingleSelectField-CIhXQBns-C3KOt5qj.js} +5 -5
  100. package/dist/assets/LabeledDocumentField-B8uyJA2N-B3iZ1bpr.js +41 -0
  101. package/dist/assets/{LabeledDropDownFormattedTextField-mOxkCT-G-CFeF0x5h.js → LabeledDropDownFormattedTextField-pClUx8A9-Dtg8BoKW.js} +4 -4
  102. package/dist/assets/LabeledEmailInputField-D5OBo0RU-Cn7DEiyr.js +182 -0
  103. package/dist/assets/LabeledGroupedCheckBoxField-DLSgfRui-CIvqEp4U.js +82 -0
  104. package/dist/assets/LabeledItemWithButton-CNlRAl-1-D8RdmCNz.js +21 -0
  105. package/dist/assets/LabeledNameField-B73hOD1K-DrzOl55q.js +141 -0
  106. package/dist/assets/LabeledSingleSelectField-nPVDbcr0-DXhzL0iF.js +136 -0
  107. package/dist/assets/LabeledSingleSelectWithoutClearableField-DgT7faZC-Or3zfyeO.js +38 -0
  108. package/dist/assets/{LabeledText-CExeogkg-361xlNV7.js → LabeledText-CW-bei7--hAClqsQN.js} +3 -3
  109. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DrloYoze-DB50WeN3.js → LabeledUserSingleSelectWithSubtitlesField-DZUt2T7b-B09ph3mF.js} +15 -15
  110. package/dist/assets/{LabeledZeniRolesDropDownField-BZKMSlzI-B3-a-Sde.js → LabeledZeniRolesDropDownField-DNZUBYDP-ltAbPko_.js} +11 -11
  111. package/dist/assets/LinkJETransactionPage-ChyKb7xl-LR_CFAXE.js +98 -0
  112. package/dist/assets/Loader-Cqmoylhp-CKPikayq.js +32 -0
  113. package/dist/assets/{LowBalancePopup-DqY0lHvk-Bg-BhJJe.js → LowBalancePopup-DcVkWdb3-vRNfAVIB.js} +6 -6
  114. package/dist/assets/{MagicLinkACHDetailsPage-BctRnNGY-DEYW76Ne.js → MagicLinkACHDetailsPage-B3NEKP0z-DUbPO0xw.js} +1 -1
  115. package/dist/assets/{MagicLinkDomesticWireDetailsPage-UjO7TGNI-jNwBg57q.js → MagicLinkDomesticWireDetailsPage-SvX8hE_J-6LOmcKRH.js} +1 -1
  116. package/dist/assets/{MagicLinkInternationalWireDetailsPage-ex7nPlxc-Cv717ajH.js → MagicLinkInternationalWireDetailsPage-DnrUY7JS-nyREbLmz.js} +1 -1
  117. package/dist/assets/MagicLinkSuccessPage-7bTkYgEa-CPPkAGGs.js +31 -0
  118. package/dist/assets/MagicLinkTitleSection-BlxCsth7-BHITpmKu.js +17 -0
  119. package/dist/assets/{MailingDetailsSection-D7d7fV5j-Cs19YBt0.js → MailingDetailsSection-DFxnpK8F-CiXDBg4h.js} +1 -1
  120. package/dist/assets/ManagementPage-D5egEDwP-uTkBBFJq.js +556 -0
  121. package/dist/assets/MatchingOperatorDropdown-C5zSNKmV-DBpzsPUC.js +130 -0
  122. package/dist/assets/{MeetingCalenderPopup-C-Ca0puH-BuYhTZNY.js → MeetingCalenderPopup-LNaVbSrR-TEQEw5Mb.js} +3 -3
  123. package/dist/assets/{Menu-FcKyIIWS-5DaRICk4.js → Menu-BCNEnlpd-D3With3F.js} +3 -3
  124. package/dist/assets/MonthEndEmailDrawerCustomerRequestPage-CK7yjkYx-Dj2GK4HO.js +39 -0
  125. package/dist/assets/MonthEndReportHistoricDataPage-BuRBd_9k-DDKlEI2q.js +124 -0
  126. package/dist/assets/MonthEndReportPage-DOTCU96W-VybM2w9h.js +28 -0
  127. package/dist/assets/MoreMenuButton-Cj6SIPVt-CYCCFBqM.js +134 -0
  128. package/dist/assets/{MyBankConnectionsSettingsPage-B4NuqJVI-C5C-Tkbz.js → MyBankConnectionsSettingsPage-DCURGC-R-BMFNqNjE.js} +13 -13
  129. package/dist/assets/MyPendingActivationChargeCardListPage-BFe1hoDt-CfBCldAO.js +6 -0
  130. package/dist/assets/MyProfileSettingsPage-B7zND-Ux-BN19QlhA.js +85 -0
  131. package/dist/assets/NavBar-BjyxKUvF-gwYjTp7H.js +189 -0
  132. package/dist/assets/{NavBarWithPicker-Bu03gVw7-BBANsf51.js → NavBarWithPicker-CBOGjIl3-ajX8qLcM.js} +6 -6
  133. package/dist/assets/NavHeader-9VET6uub-DBlTa1KF.js +236 -0
  134. package/dist/assets/{NavigationArrow-D7Eb-FlF-DFK_OGPD.js → NavigationArrow-C6KDDKXh-BuGIAK_3.js} +2 -2
  135. package/dist/assets/{NavigationDots-CFjUchuX-BbVX67wD.js → NavigationDots-CGOsNTLj-ZRX96j5F.js} +1 -1
  136. package/dist/assets/{NewGlobalMerchantPage-rhhm0o-f-DpBge9cX.js → NewGlobalMerchantPage-C478pZIu-cHWkOmAB.js} +11 -11
  137. package/dist/assets/{NoDataChart-D5DKMqIS-BEaaizBY.js → NoDataChart-BSoXaJD0-JxM1S3Cy.js} +8 -8
  138. package/dist/assets/{NoDataTable-CPEKYH-4-ChRW7vff.js → NoDataTable-iH1r029I-DLkBIcoK.js} +1 -1
  139. package/dist/assets/{NotFoundPage-Cfk62GPw-D375IgXA.js → NotFoundPage-BQLKWvT9-wlLCbXww.js} +6 -6
  140. package/dist/assets/{NotificationSettingsPage-BZtsKPBO-AXQQWsyF.js → NotificationSettingsPage-R7veJvze-BqnLD-ld.js} +25 -25
  141. package/dist/assets/NotificationsListConfig-CyQxEQ13-D7e4Z7fR.js +1 -0
  142. package/dist/assets/{NotificationsPage-CgABP7O1-BFGmWSCt.js → NotificationsPage-D_vooxhV-BtfMVNB5.js} +60 -60
  143. package/dist/assets/OnboardingCustomerPage-jmb-3M9K-C-4WzmwX.js +476 -0
  144. package/dist/assets/OnboardingPage-LCaIErMj-Bhag4ahh.js +408 -0
  145. package/dist/assets/{OpExByVendorPage-CMEokGbw-5aOd51kS.js → OpExByVendorPage-DWCdLRPc-peo3zX7H.js} +14 -14
  146. package/dist/assets/{OverlayContainerPage-9K5jaX8Z-DmDVJorJ.js → OverlayContainerPage-1M2CZQoK-DROfCTrK.js} +1 -1
  147. package/dist/assets/PandLWithForecastPage-3h8Q4kZg-CZgSqzQW.js +107 -0
  148. package/dist/assets/{PaymentAccountSetupBillingAddressSection-D6cW0hFS-DO3Osr4s.js → PaymentAccountSetupBillingAddressSection-YLuS3VUf-CaBoPPAw.js} +10 -10
  149. package/dist/assets/{PeoplePage-lD4QPAkF-28PZT7ir.js → PeoplePage-CRZ7ywRU-CZLazd8w.js} +36 -36
  150. package/dist/assets/{PortfolioAllocationFormPage-pynkIQMX-BFz04Oo7.js → PortfolioAllocationFormPage-QP1Aoj30-7H62H89u.js} +13 -13
  151. package/dist/assets/{PortfolioDetails-Cs8o8xzm-bO5l1T7Z.js → PortfolioDetails-DOlYfVij-TNjtwW2_.js} +42 -42
  152. package/dist/assets/PortfolioPage-BfNGByGB-ea6OEgaP.js +237 -0
  153. package/dist/assets/{ProductsCarousel-vPy7zk53-DjiVBmpl.js → ProductsCarousel-CzJnAk3w-MortVhyi.js} +10 -10
  154. package/dist/assets/{PromoBaseCards-CWGpTa57-Bj-bRm1l.js → PromoBaseCards-CLKhsYfl-BEkL1oHo.js} +4 -4
  155. package/dist/assets/{QBOConnectionDialog-66XnPKaW-8EXYy72U.js → QBOConnectionDialog-CiAUTeD2-D061mOJX.js} +10 -10
  156. package/dist/assets/QBOSetupSection-D-Q_DVva-q5JlqA-2.js +79 -0
  157. package/dist/assets/{ReimbursementApprovalRuleDetailPage-BSI9Lg6a-wX6i8H_B.js → ReimbursementApprovalRuleDetailPage-DCzX_1-a-BNW7pXC_.js} +1 -1
  158. package/dist/assets/{ReimbursementApprovalRulesPage-XxC6pXqt-Bzz5uq1t.js → ReimbursementApprovalRulesPage-DfHVzdAB-hV-2mfna.js} +9 -9
  159. package/dist/assets/{ReimbursementDetailPage-BwtY21D5-BOkbylET.js → ReimbursementDetailPage-Di8XpCvg-B7b0ZH64.js} +17 -17
  160. package/dist/assets/{ReimbursementPromoPage-CmO1DP-8-DpBTbSy4.js → ReimbursementPromoPage-CJSuqONm-DlocTKyV.js} +24 -24
  161. package/dist/assets/ReimbursementSetUpPage-5OtsfDPV-DQz8dNtG.js +140 -0
  162. package/dist/assets/ReimbursementsBulkReviewDrawerPage-BX722SXa-YTQZVgWe.js +1 -0
  163. package/dist/assets/{ReloadCard-CJfjUA_Q-iqgRrGxj.js → ReloadCard-BuBuLupE-Cty15m_t.js} +5 -5
  164. package/dist/assets/ReloadContainer-BRXUxBxu-BAp5l7-f.js +13 -0
  165. package/dist/assets/ReloadContainer-fx3kImdJ-D2lKf-Yd.js +17 -0
  166. package/dist/assets/ReportTableViewSelector-W7zYmKIW-BpJdvlc6.js +150 -0
  167. package/dist/assets/{ReportsPage-BJqldqjR-p6MwUSO1.js → ReportsPage-R29_iuow-B4_GPbvP.js} +6 -6
  168. package/dist/assets/{RevenueChart-BUnSkoUN-CWdeY5GO.js → RevenueChart-D3r_Mgmm-XyYx-Hfz.js} +1 -1
  169. package/dist/assets/{ReviewDetailsPage-8I09Puca-B9BkrydV.js → ReviewDetailsPage-Cimq9su3-CRN9WHDV.js} +20 -20
  170. package/dist/assets/ReviewOverlay-Bz1kr6zu-Dw4JE5ud.js +152 -0
  171. package/dist/assets/ReviewPage-Cel3qzEQ-DiaZxW5f.js +306 -0
  172. package/dist/assets/RoleWithToolTip-CUogd8qi-BfjjZiS9.js +22 -0
  173. package/dist/assets/{ScheduleDetailsFixedAssetsPage-1Y1ZylI7-BDsLy1RB.js → ScheduleDetailsFixedAssetsPage-Cbe0zp9o-DxmW_LFp.js} +13 -13
  174. package/dist/assets/{ScheduleDetailsPage-BcRuA_7y-mmMtrxsU.js → ScheduleDetailsPage-DxmJdx3I-Bant9wup.js} +3 -3
  175. package/dist/assets/{ScheduleSequenceTable-DC75D2Dx-BSdJrIG_.js → ScheduleSequenceTable-srpDx2n6-l1UT781V.js} +28 -28
  176. package/dist/assets/{ScreenRoutes-DRpA2l4T.js → ScreenRoutes-DPjLo75W.js} +1 -1
  177. package/dist/assets/SetUpAccountSection-2UGQI7fx-D_tNKXyG.js +378 -0
  178. package/dist/assets/{SetUpDefaultSection-a6NTauck-C-i38hil.js → SetUpDefaultSection-BWt_kYKx-Dc8telSj.js} +15 -15
  179. package/dist/assets/{SignIn-_ZPdER_K-0cn49L67.js → SignIn-BF4ojxcy-ignSyaGW.js} +21 -21
  180. package/dist/assets/SignInScreen-DjQXT0cG.js +1 -0
  181. package/dist/assets/SpendManagementListViewPage-DbfQ_jzA-sW1BTRjR.js +123 -0
  182. package/dist/assets/{SpendManagementPerTabPage-CbjC0IBF-BthyUtDp.js → SpendManagementPerTabPage-CZaPjNjx-Bhxn4ZLQ.js} +64 -64
  183. package/dist/assets/{SpendManagementSection-BKTkeRK6-DIa3Rn7O.js → SpendManagementSection-atmLAM4T-DeXVF-9S.js} +22 -22
  184. package/dist/assets/{SpendMgmtSetupAccountSection-D8Yv-Jng-D3WoppPf.js → SpendMgmtSetupAccountSection-h6duObCp-PJLwXWd-.js} +21 -21
  185. package/dist/assets/{StatementItem-DSJvKpAv-DV7N47r3.js → StatementItem-DgZtQdC5-CijP321B.js} +4 -4
  186. package/dist/assets/StatementsPage-Az4ZzxA6-CY7Q-Hv-.js +58 -0
  187. package/dist/assets/{StatusSwitcher-CTDNbKqC-Bv4PZo8C.js → StatusSwitcher-BTTEP3yZ-DwSqL8zG.js} +2 -2
  188. package/dist/assets/StatusTag-MQXQGj2--SPp-Hljk.js +38 -0
  189. package/dist/assets/{SubTabSwitcher-D33kV-tw-BTeEHhHa.js → SubTabSwitcher-BedfItte-C-XhL99Y.js} +6 -6
  190. package/dist/assets/SubscriptionAddPlanPage-Bn4CUx_v-BcoEoxy8.js +59 -0
  191. package/dist/assets/SubscriptionDetailPage-BZDJEjR1-DavSO9K8.js +216 -0
  192. package/dist/assets/SubscriptionPage-Tpj1RZco-CfI0x1AO.js +282 -0
  193. package/dist/assets/SubscriptionSnackBar-CwdSE1Xz-BYx3vQ0D.js +57 -0
  194. package/dist/assets/SubscriptionSummaryPage-Dep_cm58-D3JscAEe.js +176 -0
  195. package/dist/assets/SubscriptionUpdatePlanPage-5_wWKxme-CSTH4683.js +408 -0
  196. package/dist/assets/SuccessAnimation-BtFsm6Oj-BU_bae75.js +13 -0
  197. package/dist/assets/{SummaryCard-tsJZnge3-DE5AVV4x.js → SummaryCard--FoJZECU-DjUF26i-.js} +1 -1
  198. package/dist/assets/TaskDetailPage-aleDjLBo-DJGRUSEM.js +775 -0
  199. package/dist/assets/TaskListRow-xLyzXOYn-CLZGelcY.js +403 -0
  200. package/dist/assets/{TaskManagementPage-BW9M6AQs-DyLPADr6.js → TaskManagementPage-DchOWpNF-n_asmH-l.js} +41 -41
  201. package/dist/assets/TaskManagerPage-Dye8P0ua-jLCJwLcT.js +176 -0
  202. package/dist/assets/TextHighlightSection-Y0L_w9RR-D8_NKTqM.js +584 -0
  203. package/dist/assets/{TimeRangeSwitcher-CkXysnFa-BxX2v8T-.js → TimeRangeSwitcher-RLCCDvSp-DYQOEgth.js} +2 -2
  204. package/dist/assets/{TimeframeSwitcher-B-S09J4A-MdxeQVLH.js → TimeframeSwitcher-DABwUJSm-DPkuAUy9.js} +4 -4
  205. package/dist/assets/{TimeframeSwitcherWithToggle-B9Lo2-pD-oHueEdHK.js → TimeframeSwitcherWithToggle-DMblyoo8-ize9yIra.js} +2 -2
  206. package/dist/assets/{TopExCard-DwP8Cppq-BA7R-fYL.js → TopExCard-BwOpZFuj-CBPfgwzP.js} +7 -7
  207. package/dist/assets/{TopExDetailPage-CIMSDSxd-DWJg2Rhe.js → TopExDetailPage-BLaZA-dy-BH7Jcbvo.js} +19 -19
  208. package/dist/assets/{TransactionDetailPage-rwzAZT-Q-kE9Vj_Gw.js → TransactionDetailPage-BSDcUBWF-RsUJuQC6.js} +54 -54
  209. package/dist/assets/TransactionList-CnOj_LA1-DJxHv2ky.js +147 -0
  210. package/dist/assets/{TransactionListBig-BidYBgz3-mdU3i6TS.js → TransactionListBig-vNVdUmc6-C0TF6R2i.js} +26 -26
  211. package/dist/assets/TransactionListPage-CrUtG598-DR2tdFwA.js +35 -0
  212. package/dist/assets/TransactionVendorDetailPage-DjuFdK9S-Bn1DMv6P.js +80 -0
  213. package/dist/assets/{TransferDrawerPage-CztFCYxm-CBCCBWte.js → TransferDrawerPage-BMfeqbNy-BPjvRE9M.js} +46 -46
  214. package/dist/assets/{TreasuryOverviewPage-E5E5Gr3g-D2CrCBTV.js → TreasuryOverviewPage-B0vqbfmt-Cncu2g9Z.js} +47 -47
  215. package/dist/assets/{TreasuryPromoPage-D2F4Y8gV-CYlJ3kU9.js → TreasuryPromoPage-CQDA9os9-W40fA_vr.js} +28 -28
  216. package/dist/assets/{TreasurySetupPage-Dxa4l6Ec-D8eLBdo9.js → TreasurySetupPage-ChKM9npc-DNsYbGBz.js} +9 -9
  217. package/dist/assets/TreasuryStatementsPage-C0oRa1nh-BiT4V4PF.js +58 -0
  218. package/dist/assets/TreasuryTaxLetterPage-BuGFH3YF-BkeOYDmd.js +58 -0
  219. package/dist/assets/{TreasuryTransferOrReviewPage-BfReLw_V-7MLhWFB6.js → TreasuryTransferOrReviewPage-wt-8Okdj-CDylzOrV.js} +96 -96
  220. package/dist/assets/TrendChart-a95Aii8O-Crc1NrOm.js +16 -0
  221. package/dist/assets/{TrendWithTransactions-BslpnJTN-CCs7L3oP.js → TrendWithTransactions-CaExMJVA-C_0n3oh-.js} +13 -13
  222. package/dist/assets/{UncategorizedAccountsMappingPage-Brm7fcuy-1WMghiUv.js → UncategorizedAccountsMappingPage-CEHiflWp-D5pq-zY_.js} +5 -5
  223. package/dist/assets/{UnitIntegrationPage-DhiEmm9g-CyoCc7wN.js → UnitIntegrationPage-CNZbRdtN-B7b4N3wp.js} +4 -4
  224. package/dist/assets/{UploadAdditionalDocumentOverlay-Dq1ToFCn-BQjCguyB.js → UploadAdditionalDocumentOverlay-Bxc2MMx0-Cpl1vzGP.js} +2 -2
  225. package/dist/assets/UserMultiSelectField-UsIy6n-8-DdaF7B7O.js +154 -0
  226. package/dist/assets/UserWithTimestamp-i09mOCAu-Cw5lsbIN.js +38 -0
  227. package/dist/assets/{Vendor2FAPopup-Brg14-Cw-BfoPqsuP.js → Vendor2FAPopup-CqQOI5F6-CXSUTyq5.js} +1 -1
  228. package/dist/assets/{VendorACHDetailsPage-mk0vAyqE-BSy-kLup.js → VendorACHDetailsPage-BwYEhxJe-BB1a4fFU.js} +1 -1
  229. package/dist/assets/{VendorDetailPage-CRhCXEsq-qmv0EtV4.js → VendorDetailPage-C5zTkWhA-Uj3MwLUr.js} +23 -23
  230. package/dist/assets/{VendorDomesticWireDetailsPage-DhWkYV9N-CfYo0l4g.js → VendorDomesticWireDetailsPage-DrwX_ukC-DBWePN-A.js} +1 -1
  231. package/dist/assets/VendorFiling1099EditablePage-C3wjgkez-Dr8QyAeR.js +175 -0
  232. package/dist/assets/{VendorFirstReviewPage-XHOyQIOp-D3qnz2ww.js → VendorFirstReviewPage-BmRvA38Y-B_gKBGgZ.js} +45 -45
  233. package/dist/assets/{VendorInternationalWireDetailsPage-B13qu8u3-XGuYC0bw.js → VendorInternationalWireDetailsPage-DtG2HQ0g-WjpK5qgH.js} +15 -15
  234. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-Dtgusj3r-lncQfKmQ.js → VendorInternationalWireSwiftDetailsPage-DLSMDEiO-DSuW-yyD.js} +1 -1
  235. package/dist/assets/{VendorsAccountsSection-B-qorJ8x-D7fZrn7B.js → VendorsAccountsSection-5QJEJeCr-ovimcD6K.js} +6 -6
  236. package/dist/assets/{VerifyDevice-CBO1Uzra-0Sdb0n5n.js → VerifyDevice-DBnFzHim-C-LQbPfS.js} +13 -13
  237. package/dist/assets/{WarningsDrawerPage-B4Nic3gX-jDmAJMW0.js → WarningsDrawerPage-rcWR2KXe-BgEVT8fd.js} +8 -8
  238. package/dist/assets/{ZeniAccountDetailPage-IDGYSZVs-DmZJYRcm.js → ZeniAccountDetailPage-i8C1YB1W-CGdZ9Fyc.js} +22 -22
  239. package/dist/assets/{ZeniAccountListViewPage-IlPP8Yit-dH-QXkwU.js → ZeniAccountListViewPage-DyHxeqvW-CBT4R7Fd.js} +22 -22
  240. package/dist/assets/ZeniAccountNavBarPieces-CsSdfTKg-5k_P9-6W.js +14 -0
  241. package/dist/assets/{ZeniAccountPromoPage-BhFf42Fz-TRhbuR-7.js → ZeniAccountPromoPage-C5icpLpX-DtIf5jxs.js} +21 -21
  242. package/dist/assets/ZeniAccountSetupPage-BXHIQxgf-DcysatW3.js +36 -0
  243. package/dist/assets/ZeniAvatar-Cendj_Bv-Dp3oXY0H.js +13 -0
  244. package/dist/assets/{ZeniCopyright-C4Ze2E8o-C33E_V5I.js → ZeniCopyright-BX1-vpnA-B9MOS9At.js} +1 -1
  245. package/dist/assets/ZeniDatePicker-El_phkQ0-z80YcUbm.js +187 -0
  246. package/dist/assets/ZeniDatePickerField-3DaqcxMB-QK1YG1pI.js +1 -0
  247. package/dist/assets/ZeniTransferAmountSlider-CxxqQPB_-BqeHyBds.js +63 -0
  248. package/dist/assets/add-C0nqJFLa-C2eApjPK.js +1 -0
  249. package/dist/assets/{add-to-wallet-DgdBD8_G-DcfyMc0W.js → add-to-wallet-DgdBD8_G-XP_wmSR7.js} +1 -1
  250. package/dist/assets/{analyticsHelper-CsfdC0kT-BpVlkMRS.js → analyticsHelper-B3JHS_Qr-D08xKZsr.js} +1 -1
  251. package/dist/assets/{analyticsHelper-BuNdZ9jh.js → analyticsHelper-BFpl-Msc.js} +1 -1
  252. package/dist/assets/{arrow-south-east-round-PEovUgvH-DBLhwZXJ.js → arrow-south-east-round-PEovUgvH-DnzbA_s-.js} +1 -1
  253. package/dist/assets/{auto-transfer-rule-mbafm5D3-D6YoufI_.js → auto-transfer-rule-mbafm5D3-BA0iOPjL.js} +1 -1
  254. package/dist/assets/avatar-Dz7aEm3d-D64JGSQG.js +1 -0
  255. package/dist/assets/calculateSize-BUfcd-gF-DqmEdKsX.js +1 -0
  256. package/dist/assets/{chartTypes-CPj7oOMJ-Cv2ANOse.js → chartTypes-CICM6xJ3-DAE7LSQz.js} +1 -1
  257. package/dist/assets/clock-CJkylEKt-CJ3FIZ_o.js +1 -0
  258. package/dist/assets/cockpitConstants-CT7OARAT-C430UcjZ.js +1 -0
  259. package/dist/assets/cockpitHelpers-CSVzBgeI-BARdDEyf.js +1 -0
  260. package/dist/assets/cockpitHelpers-Y5_CbmvR-BhJ5C_6h.js +1 -0
  261. package/dist/assets/common-CU4uS1La-DdHnWUCD.js +1 -0
  262. package/dist/assets/{commonDimensions-CKs-7p-V-CmlPem1Z.js → commonDimensions-EDu7gcyc-DiuxcTjp.js} +1 -1
  263. package/dist/assets/{crypto-BURQLTgV.js → crypto-DPjkCRYF.js} +1 -1
  264. package/dist/assets/{detailCommon-BJ8iCchG-CdCS4VPM.js → detailCommon-DAG_rX2o-B0QDOSIy.js} +9 -9
  265. package/dist/assets/dollar-round-D18u7nlm-CXc5TAek.js +1 -0
  266. package/dist/assets/double-tick-D6s_OvsM-DFvZDijg.js +1 -0
  267. package/dist/assets/{downloadPdf-hPck-AA1-CD5ZG46J.js → downloadPdf-DCmFpTS--B48gcxsA.js} +1 -1
  268. package/dist/assets/filter-cZIFUNvj-B9dfJXS9.js +1 -0
  269. package/dist/assets/getCockpitColor-YYDF6h1T-D0_aeMEA.js +1 -0
  270. package/dist/assets/{gift-box-Cmt9OgIZ-DKWN92w0.js → gift-box-Cmt9OgIZ-Bnh-gm_T.js} +1 -1
  271. package/dist/assets/{graphic-no-data-l-DU4J8fDt-BalbEtqQ.js → graphic-no-data-l-DU4J8fDt-DTLZpyxa.js} +1 -1
  272. package/dist/assets/{graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js → graphic-no-data-net-burn-l-CzmycA0m-W-GGrHSF.js} +1 -1
  273. package/dist/assets/groupHelper-CTA_J_U7-CPJTcSSg.js +1 -0
  274. package/dist/assets/hyperlink-DQyCeXx2-ChMvASRu.js +1 -0
  275. package/dist/assets/{index-CyJdCOlu.js → index-D9zAXs3-.js} +5886 -14388
  276. package/dist/assets/index-DVThwdcI.css +1 -0
  277. package/dist/assets/intuit-quick-books-logo-qyL3_3cm-Cj0LgD2I.js +1 -0
  278. package/dist/assets/{liveblocks-DZpRS25q.js → liveblocks-C2xecagE.js} +2 -2
  279. package/dist/assets/loader-BwDk7JSW-DoE-nOgh.js +1 -0
  280. package/dist/assets/{lodash-Dq_mKlGB.js → lodash-D52QloPU.js} +1 -1
  281. package/dist/assets/{mapLoadingInProgressToTreeNode-R394S2in-pIplKgrn.js → mapLoadingInProgressToTreeNode-CtvSoL64-CS0Ie6NV.js} +1 -1
  282. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-B20NECa8-DENXzcIZ.js → mapSectionWithAcOnlyToTreeNode-BujdmE12-MD1XTXUW.js} +1 -1
  283. package/dist/assets/{mapSpacerToTreeNode-CLYF1Foh-BkgQTnh2.js → mapSpacerToTreeNode-CY5XRFK--DC8NIrxN.js} +1 -1
  284. package/dist/assets/{mapTimeframeBalancesToTreeNode-fLAswzPX-uvgKr4WV.js → mapTimeframeBalancesToTreeNode-DLd8jhti-Bxl7AnhE.js} +1 -1
  285. package/dist/assets/{mapTimeframeBalancesToTreeNode-B-iRb2_j-BOYVHL5U.js → mapTimeframeBalancesToTreeNode-DVzQl7Bb-DDS_OBZQ.js} +1 -1
  286. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CTmIxkdn-rpNZ4fKa.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CnZa-P_--DVtFUdDi.js} +1 -1
  287. package/dist/assets/money-2cg1MuG4-BaDu1jFd.js +1 -0
  288. package/dist/assets/{mui-Bi8r7UDG.js → mui-Ty75qFQF.js} +1 -1
  289. package/dist/assets/note-DCtChU1T-DArfpxk4.js +1 -0
  290. package/dist/assets/{page-detail-CWX5S47F-B6DjZ3Gi.js → page-detail-CWX5S47F-lMo0MYzU.js} +1 -1
  291. package/dist/assets/page-summary-D7_VQHwN-DEY33DNc.js +1 -0
  292. package/dist/assets/{play-icon-BZYr9mDs-DofqQFSd.js → play-icon-KtJH-UgF-Bm3lFkFZ.js} +3 -3
  293. package/dist/assets/{radio-default-CiSgisfh-ub7QGXr8.js → radio-default-CiSgisfh-Cuu8ymvq.js} +1 -1
  294. package/dist/assets/{redux-CC-tnuv1.js → redux-CEhZD0hA.js} +1 -1
  295. package/dist/assets/{routing-CxYXTKiv.js → routing-lj7oVq6C.js} +1 -1
  296. package/dist/assets/sectionColor-euXcOIkp-Cmmp8esL.js +1 -0
  297. package/dist/assets/{sentry-HDxG13yk.js → sentry-BE5FTzpq.js} +1 -1
  298. package/dist/assets/{shield-DOlUxcFf-BCUrujod.js → shield-DOlUxcFf-CDkNAu2o.js} +1 -1
  299. package/dist/assets/tick-round-CPC394H5-C8roQJBa.js +1 -0
  300. package/dist/assets/{toCOABalancesWithID-Dsa-tGTi-Bmzakp6x.js → toCOABalancesWithID-B0F8-Lgv-mwB6oBaM.js} +1 -1
  301. package/dist/assets/{toChartData-Cp_80Bi6-Dfd3dSx4.js → toChartData-D_8GUwpP-CFofR1sw.js} +1 -1
  302. package/dist/assets/{transaction-placeholder-CpOwZAMG-CJJQqrcA.js → transaction-placeholder-CpOwZAMG-CGEA36Na.js} +1 -1
  303. package/dist/assets/{treasuryColorHelper-CnKoJBRW-CDwAxole.js → treasuryColorHelper-C2d7wCjK-BWDQfCvz.js} +1 -1
  304. package/dist/assets/undo-b_3XZ5CX-Xpx_MAU7.js +1 -0
  305. package/dist/assets/{uploadAttachment-Cx3LGzsg-DDC6BFL5.js → uploadAttachment-CxwBrcm3-DDVTRYQ0.js} +29 -29
  306. package/dist/assets/{uploadReceipts-CwjPukNh-BNp5wSMb.js → uploadReceipts-DIYsXeyf-_3VvjCR-.js} +1 -1
  307. package/dist/assets/{useLongPress-GCK2COYQ-gxLtL5O4.js → useLongPress-GCK2COYQ-B0RUPzZV.js} +1 -1
  308. package/dist/assets/{usp-line-BBd1wKwW-CgKq8-Xn.js → usp-line-BBd1wKwW-ZlUrfnG1.js} +1 -1
  309. package/dist/assets/{vendor-CnQcJ2Lu.js → vendor-Bs1fkIUX.js} +7 -7
  310. package/dist/assets/{verification-CW6uEyev-DdkqedMU.js → verification-CW6uEyev-CQXAdM_w.js} +1 -1
  311. package/dist/assets/zeniDatePicker.helpers-Bv0wGqkO-0jS7nOtw.js +1 -0
  312. package/dist/index.html +1 -1
  313. package/package.json +2 -2
  314. package/dist/assets/ACHDetailsPage-BahbefPk-CJUwOp-5.js +0 -21
  315. package/dist/assets/AccountInfoPage-TD30edES-B2dxCd6A.js +0 -18
  316. package/dist/assets/AppBasePage-BK_b0fFf-DXr3P5KV.js +0 -70
  317. package/dist/assets/ApprovalRulesSettingsPage-C6jxuvhu-S4p-j-Jr.js +0 -47
  318. package/dist/assets/ArAgingChart-DVMlvNTF-DuCGC2Pt.js +0 -24
  319. package/dist/assets/ArAgingDetailPage-CbmOL5tx-Bg8YQJ9n.js +0 -46
  320. package/dist/assets/BillPaySetUpPage-X8X9gq1a-DvsjYi7w.js +0 -42
  321. package/dist/assets/BillingSettingsPage-CyyR8GW1-3x2HPXEj.js +0 -44
  322. package/dist/assets/BillsBulkReviewDrawerPage-D_xxZjcU-M0WKN8pE.js +0 -1
  323. package/dist/assets/BusinessVerificationPage-Tr-N_rHo-BFVLh_Kq.js +0 -140
  324. package/dist/assets/ChargeCardPromoPage-LVuaSVsQ-xG3b-_Ag.js +0 -222
  325. package/dist/assets/ChargeCardSetupPage-CWoHclOr-CLs_UkHN.js +0 -36
  326. package/dist/assets/ChargeCardUtils-6kq_92Ri-BhC-mlU5.js +0 -1
  327. package/dist/assets/CheckDepositDrawerPage-w7IziUHI-DeTxsGVS.js +0 -206
  328. package/dist/assets/CompleteProfile-1xeOWkGT-CSILrADl.js +0 -52
  329. package/dist/assets/ConfettiBurst-b1-NNKbl-Dk_0sV_i.js +0 -1
  330. package/dist/assets/CustomerOnboardingContainerPage-BXSxGbv8-CIUqDhfe.js +0 -1
  331. package/dist/assets/CustomerOnboardingNoStepsPage-BaBxG1Yn-DqlQrhK_.js +0 -66
  332. package/dist/assets/DepositAccTransactionListPage-CrQrOyrm-LYbEgddo.js +0 -66
  333. package/dist/assets/EditPeoplePage-C7uOWg9F-BdboEEOc.js +0 -55
  334. package/dist/assets/EntityDetailPage-BsQ9bSpC-Do5rjOCb.js +0 -18
  335. package/dist/assets/ExpenseAutomationOverviewPage-CKBACgsI-pcAU6Tzl.js +0 -222
  336. package/dist/assets/InsightsSection-DtBq9eII-CGUvYjY9.js +0 -27
  337. package/dist/assets/IntegrationsSettingsPage-TjdF0ahh-BOCCfb_h.js +0 -57
  338. package/dist/assets/InviteFormPage-DEDBu0OO-Dsi8hwhI.js +0 -312
  339. package/dist/assets/InvitePeoplePage-BzPRCgA6-C4LT3zxO.js +0 -12
  340. package/dist/assets/LabeledAddressValue-CSb0EGEx-owkgfzr7.js +0 -49
  341. package/dist/assets/LabeledAddressValueField-DJHY_wPN-ChfMLz4N.js +0 -45
  342. package/dist/assets/LabeledControlledCheckBoxField-rRmtlmRJ-ZOoy4ee7.js +0 -16
  343. package/dist/assets/LabeledDocumentField-sIz4Fhet-CBqe5ksA.js +0 -41
  344. package/dist/assets/LinkJETransactionPage-D9Kae7Qd-CXNveZ-N.js +0 -98
  345. package/dist/assets/MagicLinkSuccessPage-D3ORpbmL-DiCQcMcn.js +0 -31
  346. package/dist/assets/MagicLinkTitleSection-Di20DmsJ-Dweea4Ge.js +0 -17
  347. package/dist/assets/MyPendingActivationChargeCardListPage-C4eMpxAr-CvtH5135.js +0 -6
  348. package/dist/assets/MyProfileSettingsPage-D0ALOEls-D9BtQ_Rr.js +0 -85
  349. package/dist/assets/NotificationsListConfig-DiJLl-YW-Be2lRZvs.js +0 -1
  350. package/dist/assets/PandLWithForecastPage-IizA8WJN-C3H0uMBf.js +0 -107
  351. package/dist/assets/QBOSetupSection-T0b8qjoq-C3lySFCv.js +0 -79
  352. package/dist/assets/ReimbursementSetUpPage-CrCsRxAy-Bpo-Mk0A.js +0 -140
  353. package/dist/assets/ReimbursementsBulkReviewDrawerPage-Ct-lvcR1-DC9qwxGH.js +0 -1
  354. package/dist/assets/ReportTableViewSelector-CkuvvlJm-btt9uZlN.js +0 -150
  355. package/dist/assets/ReviewOverlay-Czmj4HG0-BLH60HLe.js +0 -152
  356. package/dist/assets/RoleWithToolTip-CNQZHC7h-LUv0Jw-2.js +0 -22
  357. package/dist/assets/SetUpAccountSection-CaLxl4l3-BRnWdFeV.js +0 -378
  358. package/dist/assets/SignInScreen-BGUfMUqo.js +0 -1
  359. package/dist/assets/SpendManagementListViewPage-Cvev9izU-BZzSvbIK.js +0 -123
  360. package/dist/assets/StatementsPage-Bhk6u845-C7EltSZm.js +0 -58
  361. package/dist/assets/TransactionList-CFYj7bYL-GEiFuum0.js +0 -147
  362. package/dist/assets/TransactionListPage-CImIYabg-BI9Hn9ZN.js +0 -35
  363. package/dist/assets/TransactionVendorDetailPage-LzIzQGZ1-NlBjctZ1.js +0 -80
  364. package/dist/assets/TreasuryStatementsPage-DEhWu0S0-CbB6wAo4.js +0 -58
  365. package/dist/assets/TreasuryTaxLetterPage-CEMU2CI9-BGxkDpux.js +0 -58
  366. package/dist/assets/TrendChart-D1gtjDe3-DWpkP03z.js +0 -16
  367. package/dist/assets/VendorFiling1099EditablePage-Bp5FgSiJ-DJr2e5wU.js +0 -175
  368. package/dist/assets/ZeniAccountNavBarPieces-2j-ZQRIF-DhfLCa9V.js +0 -14
  369. package/dist/assets/ZeniAccountSetupPage-DcYDO3x8-DOdNLBlO.js +0 -36
  370. package/dist/assets/ZeniTransferAmountSlider-DFB0ntiR-IB41czFT.js +0 -63
  371. package/dist/assets/index-BAKoUD4u.css +0 -1
@@ -1,8 +1,8 @@
1
- import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 as Un,M as Vn,C as u,j as t,l as E,cJ as it,cK as _n,o as a,cL as Yn,cM as Gn,_ as b,cN as Hn,a0 as Ae,cO as Qn,aW as lt,aK as ot,du as rt,bS as st,bU as dt,bV as ct,fP as qn,fQ as Xn,fR as Jn,fS as ea,cT as $,cU as j,cV as I,fT as A,cS as ta,v as pt,c as ie,cW as Rt,cX as na,cY as aa,cZ as ia,fU as la,fV as oa,a4 as ra,p as mt,bx as Te,fW as sa,fX as O,q as r,$ as da,bt as ca,fY as pa,a3 as ma,fZ as ua,f_ as ut,d1 as yt,b as ya,cy as ha,bL as ba,am as xa,ao as ga,L as fa,bq as zt,f$ as wa,d as Mt,ac as Ta,ak as va,aP as Da,eK as $a,n as ja}from"./index-CyJdCOlu.js";import{b as p,n as i}from"./vendor-CnQcJ2Lu.js";import{_ as Ia}from"./liveblocks-DZpRS25q.js";import{o as Aa,t as ka}from"./LowBalancePopup-DqY0lHvk-Bg-BhJJe.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./crypto-BURQLTgV.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Vn.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,$i=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:K,signedInUser:le,isAdmin:Ot,isRealTimeApprovalEnabled:Ft,isInternationalPaymentShaVsOurEnabled:Lt,hasZeniAssistAccess:Et,analytics:z,showMarkAsPaidButtonToCreator:U,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:Zt,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Kt,redirectToEditableBillScreen:Ut,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Vt,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:_t,onAttachmentClick:ze,saveBillDetails:Yt,discardOutsideZeniPaymentData:Gt,onBackClick:Me,updateEditRealTimeApproverClicked:Ht,onSaveRealTimeApprovals:Qt,onRetryPaymentClick:qt,onRefundPaymentClick:Xt})=>{const l=Nn(),o=On(),Ne=Fn(),[Jt,V]=p.useState(!1),[Oe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Fe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Le,Q]=p.useState(!1),y=e.transactionDetails?.id,tn=Zt?Ln:En,{requestToOpenThread:pe,setRequestToOpenThread:Ee,setOpenThread:q}=p.useContext(tn),[nn,_]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:Y,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:Y.filter(c=>c.resolved===!1&&!c.id.includes(Zn)),[Y,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{q(h),_(!1)},[q,_]);p.useEffect(()=>{pe?.threadId!=null&&Y.length>0&&!P&&(q(pe.threadId),Ee(null))},[pe,Y,P,q,Ee]),Kn({componentName:"bill.details"});const[N,X]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[ln,Ue]=p.useState(!1),[on,Ve]=p.useState(!1),[_e,Ye]=p.useState(!1),Ge=()=>Ue(!1),rn=()=>Ue(!0),He=Un(e.zeniAssist?.refundStatus.fetchState),J=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),J())},[He,e.zeniAssist?.refundStatus,J]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&G?.code?G:ee,S=Na(v,e.transactionDetails),F=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:G?.code!=null&&(ee?.code=="approved"||G.code==="mark_as_paid")?G:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Qe=()=>{e.transactionDetails?.id!=null&&Ut(e.transactionDetails?.id??"")},dn=()=>{X({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),V(!0)},cn=()=>{X({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},pn=()=>{X({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),V(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),X({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{V(!1),N.primaryButtonText===n.delete?Vt?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Xt())},onCancelClick:()=>{V(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Fe),z.trackZeniAssistClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
- ${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Xe=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Je=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(_n,{paymentTypeLabel:Je,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,$n=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,jn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",In=Et&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&jn===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!qe||v?.code==="processing"&&!M),Sn=!qe,et=["small","medium-compact","medium-regular"].includes(l),ae=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),L=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),Yt(!0,_e,c)},tt=()=>{Ve(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{Ye(!0),tt()},Bn=()=>{Gt(),Ve(!1),_e&&Ye(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),W=Kt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?Yn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ke("approved"),Le===!0&&Q(!1),W!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ke("rejected"),W!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Qa,{windowSize:l,ref:at,children:[t.jsx(Gn,{anchor:"right",open:ln,onClose:Ge,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Hn,{companyName:Qn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Je,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ge})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),_(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx(Ie,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(jt,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),_(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx(It,{onClick:()=>J(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx($t,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Le?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{Q(!1),Qe()},onClickAway:()=>{Q(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Jt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Oa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx(Ie,{height:a.sp5,width:a.sp5}):null]}):null,K&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(qn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Xe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Xn,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:Xe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Ea(ae,e,W),t.jsx(Jn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs($e,{children:[t.jsx(je,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs($e,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(je,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(qa,{children:[ye.length>1?t.jsx(Xa,{windowSize:l,children:t.jsx(Ja,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs($e,{children:[t.jsx(je,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[L?null:t.jsxs(t.Fragment,{children:[t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&k?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Lt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Za,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:L&&e.outsideZeniPaymentInfo!=null?La(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),L?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),$n()]})})]}),L||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx($,{isThreadAllowed:f,entityId:y,dashboardTabKey:I({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${j("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,L,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,L,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:_t,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:Ot,signedInUserId:le?.userId,showRealTimeApproval:Ft,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Ht,onSaveRealTimeApprovals:Qt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:U||x,showCancel:!U&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Fa(U,et),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:U?tt:()=>{W!=null?Q(!0):nt()},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(Ka,{children:t.jsxs(Ha,{windowSize:l,children:[!ae&&Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(Z,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(Z,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(Z,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&L&&Wt?t.jsx(Z,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",F?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),qt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(Z,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ga,{windowSize:l,children:[In===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Va,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(Ya,{onClick:Qe,"data-testid":b("edit-bill-icon-container"),children:t.jsx(_a,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ua,{onClick:()=>oe(!Oe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Ia,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:Y,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>_(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:O.overdue.color,bgColor:O.overdue.bgColor,borderColor:O.overdue.borderColor}:{value:e.name,color:O[x].color,bgColor:O[x].bgColor,borderColor:O[x].borderColor}},Oa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Fa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,La=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const K=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${K}`},Ea=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const K=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",K)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,Za=i.div``,Ka=i.div`
1
+ import{K as Nn,z as Fn,u as On,cp as En,ge as Ln,co as Wn,cu as _n,bF as Zn,a2 as Kn,F as Un,x as u,j as t,l as L,fl as it,fm as Vn,o as a,fn as qn,cs as Gn,Z as b,fo as Hn,a0 as Ae,fp as Yn,aW as lt,aK as ot,cQ as rt,bP as st,bR as dt,bS as ct,gf as Jn,gg as Qn,gh as Xn,gi as ea,fu as j,fv as I,fw as $,cN as A,ft as ta,y as pt,h as ie,fx as Rt,fy as na,fz as aa,fA as ia,gj as la,gk as oa,a4 as ra,C as mt,bw as Te,cq as sa,gl as F,n as r,w as da,bt as ca,cr as pa,a3 as ma,eO as ua,gm as ut,fD as yt,V as ya,f6 as ha,bK as ba,am as xa,ao as ga,t as fa,bq as zt,gn as wa,$ as Mt,ac as Ta,ak as va,aP as Da,eq as ja,k as Ia}from"./index-D9zAXs3-.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as $a}from"./liveblocks-C2xecagE.js";import{o as Aa,t as ka}from"./LowBalancePopup-DcVkWdb3-vRNfAVIB.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-DPjkCRYF.js";const Sa=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},p.createElement("g",{id:"Layer_1"},p.createElement("path",{fill:"none",stroke:"#757d7e",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M4.4,30.6l6-5.9c1,.6,2.1.9,3.3,1,1.1.1,2.3,0,3.4-.4,1.1-.4,2.1-.9,2.9-1.7.9-.8,1.5-1.7,2-2.7,0-.1,0-.2,0-.4,0-.1,0-.2-.1-.3,0-.1-.2-.2-.3-.2-.1,0-.2,0-.4,0h-4.6c-.8,0-1.6-.3-2.1-.9-.6-.6-.9-1.3-.9-2.1s.3-1.5.9-2.1c.6-.6,1.3-.9,2.1-.9h3.8c.1,0,.3,0,.4-.1s.2-.2.3-.3c0-.1,0-.3,0-.4,0-.1,0-.3-.1-.4-1.3-1.6-3.1-2.7-5.2-3.1-2.1-.4-4.2,0-5.9,1.2-1.8,1.1-3,2.8-3.5,4.8s-.2,4.1.8,5.9l-6.1,5.7,3.3,3.3Z"})),p.createElement("g",{id:"Layer_2"},p.createElement("g",null,p.createElement("path",{fill:"#c27419",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M31,8c0,1.9-.7,3.8-2.1,5.1-1.3,1.4-3.2,2.2-5.1,2.2-.9,0-1.9-.2-2.7-.5-.9-.3-1.7-.9-2.3-1.5-.7-.7-1.2-1.4-1.6-2.3-.4-.9-.6-1.8-.6-2.7,0-1.9.7-3.8,2.1-5.1,1.3-1.4,3.2-2.2,5.1-2.2.9,0,1.9.2,2.7.5.9.3,1.7.9,2.3,1.5.7.7,1.2,1.4,1.6,2.3.4.9.6,1.8.6,2.7Z"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,9.4v-4.6"}),p.createElement("path",{fill:"none",stroke:"#f3f7f7",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round",d:"M23.8,11.4s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1,0,0,0,0,.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-.1,0,0,0,0-.1,0h0"})))),Ca={formTitle:new ya("h6Medium","h5Medium")},m={containerPaddingLeft:new u(r[3],r[6],r[6]),containerPaddingRight:new u(r[3],r[6],r[8]),marginBottom:new u(r[3],r[3]),labelWidth:new u(120,160,160),formTitlePaddingLeftRight:new u(30,0),marginTop:new u(r[1],0),rightIconsGap:new u(r[4],r[5]),closeContainerMarginTop:new u(r[1],0),formTitleMarginTopBottom:new u(0,0),footerButtonWidth:new u(120,120,120,165,165),right:new u(r[3],r[0]),actionsContainerRight:new u(r[0],r[3],r[3],r[6],r[6]),otherActionsIconContainerMarginLeft:new u(r[5],r[4],r[4],r[5]),otherActionsContainerBottom:new u(58,44),iconContainerMarginTop:new u(2,r[1]),recurringSchedulePaddingLeft:new u(r[2],0),paddingRight:new u(r[2],r[3]),labelMarginRight:new u(r[0],r[3]),textPadding:new u(r[0],r[3]),additionalTextMarginTop:new u(-4,0),refundPopupWidth:new u(300,420,420),drawerSectionPaddingLeftRight:new u(r[4],r[5]),infoLabelPaddingRight:new u(r[3],r[3]),infoLabelMarginTop:new u(r[1],r[0]),navBarHeight:new u(0,0,r[8]),navBarContainerWidth:new u(100,58)},{dateFormat:Pa,common:{noText:C,strings:{empty:d},currency:ht,via:Ba,more:Ra,edit:za},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:bt,vendorCreation:xt,insufficientFunds:Nt}},collaboration:{threads:{placeholder:gt,tooltip:ft,title:{comments:Ma}}}}=Un.getLocalizedStrings(),ve=Pa.visual.MMMDCommaYYYYformat,ji=({billDetails:e,currentTenant:g,showApproveRejectBtns:x,isShowDeletedBillsEnabled:Z,signedInUser:le,isAdmin:Ft,isRealTimeApprovalEnabled:Ot,isInternationalPaymentShaVsOurEnabled:Et,hasZeniAssistAccess:Lt,analytics:z,showMarkAsPaidButtonToCreator:K,showMarkAsPaidButtonToApprover:Wt,isBillPayCommentingEnabled:Se,isZeniUser:_t,showBackButton:Ce=!0,isDetectInsufficientFundsEnabled:Zt,redirectToEditableBillScreen:Kt,redirectToBillsScreen:H,discardBillDetailsFromLocalStore:Pe,deleteBill:Ut,cancelAndDeleteBill:Be,approveOrRejectBill:Re,onAddNewRule:Vt,onAttachmentClick:ze,saveBillDetails:qt,discardOutsideZeniPaymentData:Gt,onBackClick:Me,updateEditRealTimeApproverClicked:Ht,onSaveRealTimeApprovals:Yt,onRetryPaymentClick:Jt,onRefundPaymentClick:Qt})=>{const l=Nn(),o=Fn(),Ne=On(),[Xt,U]=p.useState(!1),[Fe,oe]=p.useState(!1),[re,se]=p.useState(!1),[Oe,de]=p.useState(!1),[en,ce]=p.useState(!1),[Ee,Y]=p.useState(!1),y=e.transactionDetails?.id,tn=_t?En:Ln,{requestToOpenThread:pe,setRequestToOpenThread:Le,setOpenThread:J}=p.useContext(tn),[nn,V]=p.useState(!1),w={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:y,isGlobalComment:!1},{threads:q,isLoading:P}=Wn(w,"both",!1),f=Se&&y!=null,We=p.useMemo(()=>y==null?[]:q.filter(c=>c.resolved===!1&&!c.id.includes(_n)),[q,y]).length,T=`dashboard_${o.currentTenant?.companyId}`,an=p.useCallback((c,h)=>{J(h),V(!1)},[J,V]);p.useEffect(()=>{pe?.threadId!=null&&q.length>0&&!P&&(J(pe.threadId),Le(null))},[pe,q,P,J,Le]),Zn({componentName:"bill.details"});const[N,Q]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[_e,Ze]=p.useState("approved"),[ln,Ke]=p.useState(!1),[on,Ue]=p.useState(!1),[Ve,qe]=p.useState(!1),Ge=()=>Ke(!1),rn=()=>Ke(!0),He=Kn(e.zeniAssist?.refundStatus.fetchState),X=p.useCallback(()=>{H()},[H]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Pe(),H())},[e,H,Pe]),p.useEffect(()=>{He==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(se(!1),X())},[He,e.zeniAssist?.refundStatus,X]);const k=e.transactionDetails?.billPayInfo.stage,ee=e.transactionDetails?.billPayInfo.billStatus,G=e.transactionDetails?.billPayInfo.billPaymentStatus,sn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,me=k?.code==="paid",v=me?k:ee?.code=="approved"&&G?.code?G:ee,S=Na(v,e.transactionDetails),O=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?sn:G?.code!=null&&(ee?.code=="approved"||G.code==="mark_as_paid")?G:ee,ue=e.transactionDetails?.vendor?.name,M=e.isRecurring,Ye=()=>{e.transactionDetails?.id!=null&&Kt(e.transactionDetails?.id??"")},dn=()=>{Q({title:M?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:M?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},cn=()=>{Q({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},pn=()=>{Q({title:M?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:M?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},mn=()=>{z.trackRefundClick(v?.code??"",k?.code??"",O?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Q({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),se(!0)},un={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Ut?.(e.isRecurring):N.title===n.cancelBillTitle?Be?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?Be?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(z.trackRefundConfirmClick(v?.code??"",k?.code??"",O?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Qt())},onCancelClick:()=>{U(!1),se(!1)}},yn={onOkClick:c=>{ce(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{ce(!1)}},hn=()=>{const[c]=Ta("ZeniAssist");return c!=null?t.jsx(va,{"data-testid":b("bill-details-zeni-assist-icon",y),onClick:()=>{de(!Oe),z.trackZeniAssistClick(v?.code??"",k?.code??"",O?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"")},style:{width:`${a.sp5}`,height:`${a.sp5}`,marginBottom:`${a.sp2}`},animationData:c,loop:!0,play:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null},te={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ht.currencyCode},ye=e.transactionDetails?.lines?.map((c,h)=>{const B=c;return{lineIndex:h,lineId:B.id,account:B.account,class:B.class,amount:B.amount.amount,billable:B.billable,customer:B.customer,lineDescription:B.lineDescription,recipientAmount:B.recipientAmount?.amount}})??[],bn=e.transactionDetails?.recipientTotalAmount.amount??0,he=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},D=m.labelWidth.value(l),xn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,gn=s.paymentToBankAccount?.bankAccountNumber?s.paymentToBankAccount?.bankAccountNumber?.slice(s.paymentToBankAccount?.bankAccountNumber?.length-4):s.paymentType?.method?.includes("international")&&s.paymentToBankAccount?.bankAccountIban?s.paymentToBankAccount?.bankAccountIban?.slice(s.paymentToBankAccount?.bankAccountIban.length-4):"",fn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${gn}`,wn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ci,{windowSize:l,children:t.jsx(di,{})})]}):void 0,Je=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),Tn=()=>`${xt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
+ ${xt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ne=e.transactionDetails?.billPayInfo!=null?L.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,vn=ne!=null&&e.paymentMethodType?.maxPeriod?.value!=null?L.zeniDate(L.getNextNthWorkingDay(ne?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,Qe=e.transactionDetails?.billPayInfo.expectedDepositDate??vn,Xe=it(s?.paymentType?.method??"").replace("Same Day",""),Dn=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Vn,{paymentTypeLabel:Xe,onClick:rn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,jn=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(wa,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,be=!(v?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,ge=e.zeniAssist?.isEligibleForRefund===!0,In=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",$n=Lt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||ge)&&In===!1,fe=xe||ge,An=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,we=v?.code,kn=!An&&(!Je||v?.code==="processing"&&!M),Sn=!Je,et=["small","medium-compact","medium-regular"].includes(l),ae=L.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),E=L.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Cn=c=>{z.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",k?.code??"",v?.code??""),qt(!0,Ve,c)},tt=()=>{Ue(!0),z.trackBillPayMarkAsPaid(k?.code??"",v?.code??"")},Pn=()=>{qe(!0),tt()},Bn=()=>{Gt(),Ue(!1),Ve&&qe(!1)},Rn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:y??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,y]),W=Zt&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&k?.code!=="paid"&&v?.code!=="failed"&&v?.code!=="processing"&&v?.code!=="cancelled"&&v?.code!=="returned"&&v?.code!=="rejected"?qn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,nt=()=>{Ze("approved"),Ee===!0&&Y(!1),W!=null&&z.trackLowBalanceAccountApprove(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},zn=()=>{Ze("rejected"),W!=null&&z.trackLowBalanceAccountReject(k?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",yt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),ce(!0)},at=p.useRef(null);return t.jsxs(Ya,{windowSize:l,ref:at,children:[t.jsx(Gn,{anchor:"right",open:ln,onClose:Ge,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Hn,{companyName:Yn(g.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:Xe,amount:Ae("0,0.[00]",he),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:Ge})}),t.jsxs(ei,{windowSize:l,children:[t.jsx(ui,{windowSize:l,children:l==="small"?t.jsx(lt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Ne.colors.grey4,rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),V(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),source:"BillDetailPage"}):t.jsx(lt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ue,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(It,{windowSize:l,children:[f?t.jsxs(Pt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),V(!0),z.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(h=>rt(h)),void 0,void 0,"page icon")},children:[t.jsx(ot,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Bt,{})]}):null,t.jsx($t,{onClick:()=>X(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(jt,{})})]}),leftSideComponent:t.jsx(Dt,{windowSize:l,onClick:Me,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Ce?"visible":"hidden"}`},children:t.jsx(vt,{})}),enableTitleOnScroll:!0,scrollableContent:at,source:"BillDetailPage"})}),t.jsxs(ti,{windowSize:l,children:[Ee?t.jsx(Aa,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:nt,onCancelClick:()=>{Y(!1),Ye()},onClickAway:()=>{Y(!1)}}):null,on?t.jsx(ka,{onCancel:Bn,onProceedForMarkAsPaid:Cn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,Xt||re?t.jsx(st,{titleComponent:t.jsx(ct,{children:N.title}),descriptionComponent:t.jsx(dt,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:re?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:un,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:re?Fa(l,e):null}):null,en?t.jsx(st,{titleComponent:t.jsx(ct,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(dt,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:yn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(ai,{windowSize:l,children:[l!=="small"?t.jsxs(ii,{windowSize:l,children:[ue,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,Z&&S!=null&&S.code==="deleted"?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(At,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,O!=null&&O.code?l==="small"?t.jsx(Jn,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(Qn,{progressSectionObj:O,createDate:e.transactionDetails?.createTime,paymentDate:Qe,scheduleDate:ne,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,La(ae,e,W),t.jsx(Xn,{sectionId:ea,currentVendorOption:{defaultOptions:[]},billId:y,isBillPayCommentingEnabled:Se,isBillPaid:me,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:ze,isVendorRecommendationEnabled:!1,showVendorGptRecommendationText:!1}),s.paymentType?.method?.includes("ach"),t.jsxs(je,{children:[t.jsx(Ie,{children:n.whatForTitle}),t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceNumber"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceNumber")}`},children:t.jsx(A,{label:{label:n.invoiceNumber,width:D},text:te.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"invoiceDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("invoiceDate")}`},children:t.jsx(A,{label:{label:n.invoiceDate,width:D},text:te.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"billDueDate"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billDueDate")}`},children:t.jsx(A,{label:{label:n.billDueDate,width:D},text:te.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"memo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("memo")}`},children:t.jsx(A,{label:{label:n.memo,width:D},text:te.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(ni,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),ye.length>0?ye.map((c,h)=>{const B=e?.transactionDetails?.lines?.find(Mn=>Mn.id===c.lineId)?.recipientAmount;return t.jsxs(Ja,{children:[ye.length>1?t.jsx(Qa,{windowSize:l,children:t.jsx(Xa,{windowSize:l,children:`${n.line} # ${h+1}`})}):null,t.jsxs(De,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.recipientAmount`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recipientAmount",h)}`},children:t.jsx(A,{label:{label:n.amount,width:D},text:B!=null?Ae("0,0[.]00",B):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.lineDescription`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("lineDescription",h)}`},children:t.jsx(A,{label:{label:n.description,width:D},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.account`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("account",h)}`},children:t.jsx(A,{label:{label:n.category,width:D},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.class`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("class",h)}`},children:t.jsx(A,{label:{label:n.class,width:D},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.billable`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("billable",h)}`},children:t.jsx(A,{label:{label:n.billable,width:D},text:c.billable!=null?xn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:`${h}.customer`}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("customer",h)}`},children:t.jsx(A,{label:{label:n.customer,width:D},text:c.customer?.name??C,style:{width:"auto"}})})]})]},h)}):null]}),t.jsxs(li,{windowSize:l,children:[t.jsx(oi,{children:n.total}),t.jsx(ri,{children:he!=null?t.jsx(ta,{amount:he,integerStyles:pt.h6Medium.cssObject,decimalStyles:pt.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[E?null:t.jsxs(t.Fragment,{children:[t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"withdrawFrom"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("withdrawFrom")}`},children:t.jsx(A,{label:{label:n.withdrawFrom,width:D},text:e.withdrawFrom!=null?Rt(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:ie.brandColorGoldDark},additionalInfoLabel:W!=null&&k?.code==="pending_approval"?Nt.addMoney:W})}),t.jsx(R,{})]}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentType")}`},children:t.jsx(A,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(L.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Et&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(_a,{children:na(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:D},text:E&&e.outsideZeniPaymentInfo!=null?Ea(e.outsideZeniPaymentInfo):it(s.paymentType?.method??""),style:{width:"auto"}})}),E?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"paymentTo"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentTo,width:D},text:s.paymentToBankAccount!=null?fn:s.paymentToPI!=null?s.paymentToPI.displayText:wn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:Tn(),additionalInfoLabel:t.jsx(Wa,{children:Dn})}),jn()]})})]}),E||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(j,{isThreadAllowed:f,entityId:y,dashboardTabKey:$({type:"details",key:"recurringPaymentType"}),roomId:T,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...w,entityType:`bill.details.${I("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(A,{label:{label:n.paymentType,width:D},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ia(e.isRecurring,E,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:aa(l,e.isRecurring,E,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(pi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(la,{onAttachmentClick:ze,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ht.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(oa,{amount:bn,activities:e.billActivities,stage:k?.code??"draft",onAddNewRule:Vt,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:Ft,signedInUserId:le?.userId,showRealTimeApproval:Ot,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Ht,onSaveRealTimeApprovals:Yt},historicActivities:e.billHistory.activities}),t.jsx(si,{})]}),e.transactionDetails?.vendor!=null&&!me&&!e.transactionDetails.isDeleted?t.jsx(ra,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:K||x,showCancel:!K&&x,cancelBtn:{label:et?n.buttons.reject:n.buttons.rejectBill,isLoading:_e==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:zn,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:Oa(K,et),isLoading:_e==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:K?tt:()=>{W!=null?Y(!0):nt()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:K?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Za,{children:t.jsxs(Ha,{windowSize:l,children:[!ae&&Fe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-container"),children:[we!=="processing"?t.jsx(_,{onClick:dn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,we==="processing"&&!M?t.jsx(_,{onClick:cn,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,we==="processing"&&Sn?t.jsx(_,{onClick:pn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,x&&E&&Wt?t.jsx(_,{onClick:Pn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Oe?t.jsx(mt,{onClickAway:()=>{oe(!1),de(!1)},children:t.jsxs(Tt,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(_,{onClick:()=>{z.trackRetryClick(v?.code??"",k?.code??"",O?.description??"",M?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),Jt()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,ge?t.jsx(_,{onClick:mn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ga,{windowSize:l,children:[$n===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:fe?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:fe,"data-testid":b("other-actions-icon-container"),children:fe?t.jsx(hn,{}):t.jsx(Ua,{})})}):null,!ae&&be===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:za,placement:"top",children:t.jsx(qa,{onClick:Ye,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Va,{})})}):null,!ae&&kn===!0?t.jsx(Te,{enterDelay:600,style:{color:ie.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Ra,placement:"top",children:t.jsx(wt,{windowSize:l,showEditIcon:be,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ka,{onClick:()=>oe(!Fe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx($a,{id:T,children:t.jsx(sa,{isDrawerOpen:nn,allowComposer:!0,drawerTitle:Ma,threads:q,filter:w,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:gt.addANewComment,replyComposerPlaceholder:gt.replyAComment,threadResolve:ft.resolveComment,threadUnResolve:ft.unResolveComment},threadMetadata:Rn,onThreadClick:an,onCloseAllThreadsDrawer:()=>V(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Ne.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Na=(e,g)=>{const x=e?.code;if(e!=null&&x!=null)return g?.isDeleted===!0?{value:ke.tabsById.deleted,color:F.deleted.color,bgColor:F.deleted.bgColor,borderColor:F.deleted.borderColor,code:"deleted"}:x==="pending_approval"&&g?.dueDate?.isBefore(L.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:F.overdue.color,bgColor:F.overdue.bgColor,borderColor:F.overdue.borderColor}:{value:e.name,color:F[x].color,bgColor:F[x].bgColor,borderColor:F[x].borderColor}},Fa=(e,g)=>{const x=g.transactionDetails?.recipientTotalAmount;return t.jsxs(mi,{windowSize:e,children:[t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.accountNumber}),t.jsx(Ct,{children:g.withdrawFrom!=null?Rt(g.withdrawFrom,e):d})]}),t.jsxs(kt,{windowSize:e,children:[t.jsx(St,{children:n.zeniAssist.amount}),t.jsx(Ct,{children:x!=null?Ae("0,0[.]00",x):C})]})]})},Oa=(e,g)=>e?n.paymentOutsideZeni.markAsPaid:g?n.buttons.approve:n.buttons.approveBill,Ea=e=>{const g=e.paymentMode,x=n.paymentOutsideZeni.offline;if(g==null||g==="other")return x;const Z=n.paymentOutsideZeni.paymentModeOptions.find(le=>le.value===g)?.label;return`${x} ${Ba} ${Z}`},La=(e,g,x)=>{if(e)return t.jsx(ut,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:bt.duplicateWarning.title,description:bt.duplicateWarning.description});if(x!=null){const Z=`${g.withdrawFrom?.label??""} ${g.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(ut,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Nt.lowBalanceIn.replace("__account__",Z)}`,description:x.replace("Low balance! ","")})}else return null},Wa=i.div``,_a=i.div``,Za=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
5
- `,Ua=i($a)`
5
+ `,Ka=i(ja)`
6
6
  cursor: pointer;
7
7
  color: ${e=>e.theme.colors.hero};
8
8
  width: ${a.sp4};
@@ -18,7 +18,7 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
18
18
  &:hover {
19
19
  color: ${e=>e.theme.colors.primary};
20
20
  }
21
- `,Va=i(Sa)`
21
+ `,Ua=i(Sa)`
22
22
  color: ${e=>e.theme.colors.hero};
23
23
  width: ${a.sp5};
24
24
  height: ${a.sp5};
@@ -26,7 +26,7 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
26
26
  &:hover {
27
27
  color: ${e=>e.theme.colors.primary};
28
28
  }
29
- `,_a=i(Da)`
29
+ `,Va=i(Da)`
30
30
  cursor: pointer;
31
31
  color: ${e=>e.theme.colors.hero};
32
32
  width: ${a.sp4};
@@ -34,7 +34,7 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
34
34
  &:hover {
35
35
  color: ${e=>e.theme.colors.primary};
36
36
  }
37
- `,Ya=i.div`
37
+ `,qa=i.div`
38
38
  display: flex;
39
39
  cursor: pointer;
40
40
  color: ${e=>e.theme.colors.grey1};
@@ -71,7 +71,7 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
71
71
  right: ${e=>m.actionsContainerRight.valuePx(e.windowSize)};
72
72
  height: 100%;
73
73
  display: flex;
74
- `,Z=i(Mt)`
74
+ `,_=i(Mt)`
75
75
  display: flex;
76
76
  align-items: center;
77
77
  width: 100%;
@@ -94,7 +94,7 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
94
94
  margin-top: ${e=>m.marginTop.valuePx(e.windowSize)};
95
95
  display: flex;
96
96
  align-items: center;
97
- `,$t=i(ma)`
97
+ `,jt=i(ma)`
98
98
  cursor: pointer;
99
99
  width: ${a.sp4};
100
100
  height: ${a.sp4};
@@ -102,18 +102,18 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
102
102
  &:hover {
103
103
  color: ${e=>e.theme.colors.primary};
104
104
  }
105
- `,jt=i.div`
105
+ `,It=i.div`
106
106
  display: flex;
107
107
  flex-direction: row;
108
108
  align-items: center;
109
109
  gap: ${e=>m.rightIconsGap.valuePx(e.windowSize)};
110
110
  margin-top: ${e=>m.closeContainerMarginTop.valuePx(e.windowSize)};
111
- `,It=i.div`
111
+ `,$t=i.div`
112
112
  float: right;
113
113
  width: ${a.sp4};
114
114
  height: ${a.sp4};
115
115
  display: flex;
116
- `,Qa=i.div`
116
+ `,Ya=i.div`
117
117
  height: 100%;
118
118
  overflow: scroll;
119
119
  `,De=i.div`
@@ -124,11 +124,11 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
124
124
  box-shadow: ${e=>`${a.sp0} 2px ${a.sp1} ${e.theme.colors.dropShadowNormal}`};
125
125
  border-radius: ${a.sp2};
126
126
  margin: ${a.sp3} 0;
127
- `,$e=i.div`
127
+ `,je=i.div`
128
128
  display: flex;
129
129
  flex-direction: column;
130
130
  padding-top: ${a.sp3};
131
- `,qa=i.div``,je=i(xa)`
131
+ `,Ja=i.div``,Ie=i(xa)`
132
132
  color: ${e=>e.theme.colors.primary};
133
133
  `,R=i.div`
134
134
  display: flex;
@@ -136,14 +136,14 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
136
136
  background-color: ${e=>e.theme.colors.grey3};
137
137
  min-height: 1px;
138
138
  max-height: 1px;
139
- `,Xa=i(ga)`
139
+ `,Qa=i(ga)`
140
140
  display: flex;
141
141
  align-items: center;
142
142
  justify-content: space-between;
143
143
  color: ${e=>e.theme.colors.champion};
144
144
  margin-top: ${a.sp2};
145
145
  height: 31px;
146
- `,Ja=i(fa)`
146
+ `,Xa=i(fa)`
147
147
  color: ${e=>e.theme.colors.champion};
148
148
  `,ei=i.div`
149
149
  display: flex;
@@ -219,7 +219,7 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
219
219
  margin-left: ${a.sp2};
220
220
  margin-top: ${e=>m.iconContainerMarginTop.valuePx(e.windowSize)};
221
221
  align-self: center;
222
- `,Ie=i(ua)`
222
+ `,$e=i(ua)`
223
223
  margin-left: ${a.sp2};
224
224
  color: ${e=>e.theme.colors.hero};
225
225
  `,pi=i.div``,mi=i.div`
@@ -234,7 +234,7 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
234
234
  `,St=i(Mt)`
235
235
  text-align: left;
236
236
  color: ${e=>e.theme.colors.grey1};
237
- `,Ct=i(ja)`
237
+ `,Ct=i(Ia)`
238
238
  justify-content: end;
239
239
  display: flex;
240
240
  flex: 1;
@@ -263,4 +263,4 @@ import{e as Nn,Y as On,u as Fn,fL as Ln,fM as En,fN as Wn,fO as Zn,bG as Kn,a2 a
263
263
  top: 0px;
264
264
  width: ${e=>m.navBarContainerWidth.valuePercentage(e.windowSize)};
265
265
  z-index: 3;
266
- `;export{$i as default};
266
+ `;export{ji as default};
@@ -1,4 +1,4 @@
1
- import{C as z,q as B,e as O,M as D,a as M,a2 as W,j as o,S as G,c7 as X,aW as Z,F as H,a4 as J,o as c}from"./index-CyJdCOlu.js";import{b as L,n as h}from"./vendor-CnQcJ2Lu.js";import{b as K,f as Q,l as R,o as j}from"./FollowStepsSection-BJFJzQrz-CGmrm9Lr.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:a,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=O(),l=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=M({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=W(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const q=G(d);X(()=>V(U,q))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Z,{title:t==="approval_create"?l.newApproval:l.editApproval,style:{zIndex:4},onBackClick:()=>{a()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(H,{...v,children:o.jsx("form",{id:N(C),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(K,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:l.firstRuleLowerBoundInfoLabel,additionalErrorLabel:l.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:l.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:l.followStepsLabel},approversPlaceholder:l.approversPlaceholder,notifiersPlaceholder:l.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:l.userSelectPlaceholder,approveNotifyPlaceholder:l.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(J,{formId:N(C),primaryBtn:{label:l.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:l.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:a,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:ae(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:a!=null?a.range.min.amount??0:0,[E]:a!=null?a.range.max==null?1/0:a.range.max.amount:1/0}},ae=(e,t,a,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:le(e,n.actors),allNonUsers:r,selectedNonUsers:te(a,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],le=(e,t)=>e.filter(a=>a.userId!=null&&t.findIndex(r=>r.userId===a.userId)>-1),te=(e,t)=>e.filter(a=>t.findIndex(r=>r.subType===a.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
1
+ import{x as O,n as B,K as q,F as D,a as W,a2 as M,j as o,S as G,c2 as K,aW as X,c as Z,a4 as H,o as c}from"./index-D9zAXs3-.js";import{b as L,n as h}from"./vendor-Bs1fkIUX.js";import{b as J,f as Q,l as R,o as j}from"./FollowStepsSection-DbS5XlIB--DgM9Akw.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";const N="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new O(B[2],B[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:_,onSaveRuleSuccess:A}){const I=q(),a=D.getLocalizedStrings().commonSetUp.approval,P=D.getLocalizedStrings().spendManagement.billPay.billPayApproval,x=ee(e,t==="approval_create"&&!n),v=W({mode:"all",reValidateMode:"onChange",defaultValues:x}),u=e.billPaySetupApproverViewUpdateData?.updateStatus,w=M(u?.fetchState),{upperBound:$}=x,{allApprovalRules:p,allAccountingClasses:k,billPaySetupApproverViewUpdateData:m}=e;let f=p.length>1?p.length-1:0,g=p.length>0?p[f].criteria[0].range.min.amount:0;if(m!=null&&m.type==="approval_update"&&m.data!=null){const{approvalRuleId:i}=m.data;f=p.findIndex(d=>d.approvalRuleId===i),g=f>0?p[f-1].criteria[0].range.min.amount:0}const F=v.handleSubmit(()=>{_()}),V=async(i,d)=>{r(d)};return L.useEffect(()=>{const i=v.watch((d,{name:U})=>{if(U!=null&&d!=null){const z=G(d);K(()=>V(U,z))}});return()=>{i.unsubscribe()}}),L.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(X,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(Z,{...v,children:o.jsx("form",{id:C(N),onSubmit:F,children:o.jsxs(oe,{children:[o.jsx(J,{label:{label:S?P.amountPerBillGreaterLabel:P.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(Q,{sectionId:y,label:{label:a.followStepsLabel},approversPlaceholder:a.approversPlaceholder,notifiersPlaceholder:a.notifiersPlaceholder,allUserWithRoles:e.allApprovers,filteredApprovers:e.filteredApprovers.map(i=>i.user),allAttributes:e.allAttributes,filteredAttributes:e.filteredAttributes,allAccountingClasses:k,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(H,{formId:C(N),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:I==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(I)},separatorStyle:{marginRight:c.sp4}})]})}const ee=(e,t)=>{const{criteria:l,steps:r}=e.billPaySetupApproverViewUpdateData?.data??{};return{[y]:le(e.allApprovers.map(s=>s.user),e.filteredApprovers.map(s=>s.user),j(e.allAttributes),j(e.filteredAttributes),r??[])??[],[T]:t?void 0:l!=null?l.range.min.amount??0:0,[E]:l!=null?l.range.max==null?1/0:l.range.max.amount:1/0}},le=(e,t,l,r,s)=>s&&s.length>0?s.map((n,b)=>({stepIndex:b,stepType:{selectedOption:n.action,allOptions:R},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:R},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),C=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -24,4 +24,4 @@ import{C as z,q as B,e as O,M as D,a as M,a2 as W,j as o,S as G,c7 as X,aW as Z,
24
24
  background-color: ${e=>e.theme.colors.grey3};
25
25
  min-height: 1px;
26
26
  max-height: 1px;
27
- `;export{Y as D,ve as default,N as uniqueFormName,ge as uniqueName};
27
+ `;export{Y as D,ve as default,C as uniqueFormName,ge as uniqueName};
@@ -1,4 +1,4 @@
1
- import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,a0 as j,bS as E,bU as U,bV as G,o as i,cu as V,q as l,ao as q,b as z,an as F,c as S,cr as _,aP as Q,v as J}from"./index-CyJdCOlu.js";import{n as o,b as O}from"./vendor-CnQcJ2Lu.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},Y=({showDeleteBtn:e=!1,isLastSection:v=!1,approvalRule:c,onEditRuleClick:f,onDeleteRuleClick:$})=>{const[m,x]=O.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=y.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Z,{windowSize:n,isLastSection:v,children:[t.jsxs(K,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(X,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(R,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{f(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(G,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=o.div`
1
+ import{K as I,F as v,j as t,aW as D,i as H,Z as b,x as r,k as B,a0 as j,bP as E,bR as U,bS as V,o as i,cl as G,n as l,ao as q,V as z,an as Z,h as S,ci as F,aP as _,y as J}from"./index-D9zAXs3-.js";import{n as o,b as K}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";const s={sectionWidth:new r(343,580,726),ruleWrapperPadding:new r(l[3],l[4]),wrapperGap:new r(l[4],l[3]),wrapperMarginBottom:new r(l[6],l[8]),lastWrapperMarginBottom:new r(l[5],l[9]),stepperWidthHeight:new r(20,l[5]),stepperItemLeft:new r(-29,-23),stepperItemTop:new r(2,l[0]),stepperItemPaddingLeft:new r(l[0],10),stepperItemMinHeight:new r(22,28),stepperLeft:new r(11,17),stepperTop:new r(2,l[0]),stepperContentTop:new r(-1,-4)},L={stepper:new z("smallRegular","standardRegular"),amount:new z("standardRegular","largeMedium")},O=({showDeleteBtn:e=!1,isLastSection:f=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:$})=>{const[m,x]=K.useState(!1),n=I(),{range:h}=c.criteria[0],{steps:u,approvalRuleId:w}=c,a=v.getLocalizedStrings().commonSetUp.approval,W=()=>{x(!0)},A={onOkClick:()=>{x(!1),$?.(w)},onCancelClick:()=>{x(!1)}};return t.jsxs(Q,{windowSize:n,isLastSection:f,children:[t.jsxs(Y,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(C,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(X,{children:[t.jsx(P,{}),t.jsx(ee,{}),t.jsx(P,{})]}),h.max==null?t.jsx(de,{}):t.jsx(C,{windowSize:n,children:j("0,0",{...h.min,amount:h.max.amount})})]}),t.jsxs(ae,{className:"icons",children:[e&&t.jsx(ne,{onClick:W,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{y(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(R,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(R,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(E,{titleComponent:t.jsx(V,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(U,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Q=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -14,7 +14,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,a0 as j,bS as E,
14
14
  border-color: ${e=>e.theme.colors.primary};
15
15
  }
16
16
  }
17
- `,K=o(q)`
17
+ `,Y=o(q)`
18
18
  display: flex;
19
19
  position: relative;
20
20
  align-items: center;
@@ -141,7 +141,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,a0 as j,bS as E,
141
141
  `,ae=o.div`
142
142
  display: flex;
143
143
  gap: ${i.sp5};
144
- `,ne=o(_)`
144
+ `,ne=o(F)`
145
145
  width: ${i.sp3};
146
146
  height: ${i.sp3};
147
147
  cursor: pointer;
@@ -149,7 +149,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,a0 as j,bS as E,
149
149
  &:hover {
150
150
  color: ${S.important};
151
151
  }
152
- `,pe=o(Q)`
152
+ `,pe=o(_)`
153
153
  width: ${i.sp3};
154
154
  height: ${i.sp3};
155
155
  cursor: pointer;
@@ -157,20 +157,20 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,a0 as j,bS as E,
157
157
  &:hover {
158
158
  color: ${e=>e.theme.colors.primary};
159
159
  }
160
- `,de=o(F)`
160
+ `,de=o(Z)`
161
161
  width: ${i.sp4};
162
162
  height: ${i.sp4};
163
163
  color: ${e=>e.theme.colors.hero};
164
164
  `,T=o.span`
165
165
  color: ${e=>e.theme.colors.hero};
166
- `,C=o.div`
166
+ `,R=o.div`
167
167
  display: inherit;
168
168
  gap: inherit;
169
- `,R=o.span`
169
+ `,C=o.span`
170
170
  ${e=>`${L.amount.style(e.windowSize)}`};
171
171
  color: ${e=>e.theme.colors.primary};
172
172
  word-break: break-word;
173
- `,g={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},ke=({approvalView:e,onBackClick:v,onEditRuleClick:c,onDeleteRuleClick:f})=>{const $=I(),{fetchState:m,deleteStatus:x}=e,n=y.getLocalizedStrings().commonSetUp.approval,h=y.getLocalizedStrings().spendManagement.billPay.billPayApproval,u=x.fetchState;return t.jsxs(ce,{children:[t.jsx(D,{title:n.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{v()},source:"BillPayApprovalRulesPage"}),t.jsxs(he,{children:[t.jsx(xe,{windowSize:$,children:h.approvalPageSubTitle}),m==="In-Progress"||m==="Not-Started"||u==="In-Progress"?t.jsx(me,{children:t.jsx(H,{size:"ExtraLarge",start:!0})}):m==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((w,a)=>t.jsx(Y,{showDeleteBtn:a!==0,approvalRule:w,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:c,onDeleteRuleClick:f},w.approvalRuleId)),t.jsxs(ue,{windowSize:$,onClick:()=>{c()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(we,{}),t.jsx(ge,{children:n.addApprovalText})]})]}):null]})]})},ce=o.div`
173
+ `,g={width:new r(343,580,726),titleWidth:new r(343,580,780),addApprovalGap:new r(6,l[2]),subTitlePaddingTop:new r(12,l[3]),subTitlePaddingBottom:new r(28,l[7])},ke=({approvalView:e,onBackClick:f,onEditRuleClick:c,onDeleteRuleClick:y})=>{const $=I(),{fetchState:m,deleteStatus:x}=e,n=v.getLocalizedStrings().commonSetUp.approval,h=v.getLocalizedStrings().spendManagement.billPay.billPayApproval,u=x.fetchState;return t.jsxs(ce,{children:[t.jsx(D,{title:n.approvalPageHeader,style:{zIndex:4},onBackClick:()=>{f()},source:"BillPayApprovalRulesPage"}),t.jsxs(he,{children:[t.jsx(xe,{windowSize:$,children:h.approvalPageSubTitle}),m==="In-Progress"||m==="Not-Started"||u==="In-Progress"?t.jsx(me,{children:t.jsx(H,{size:"ExtraLarge",start:!0})}):m==="Completed"?t.jsxs(t.Fragment,{children:[e.allApprovalRules.map((w,a)=>t.jsx(O,{showDeleteBtn:a!==0,approvalRule:w,isLastSection:a===e.allApprovalRules.length-1,onEditRuleClick:c,onDeleteRuleClick:y},w.approvalRuleId)),t.jsxs(ue,{windowSize:$,onClick:()=>{c()},"data-testid":b("add-approval-rule-bill-pay"),children:[t.jsx(we,{}),t.jsx(ge,{children:n.addApprovalText})]})]}):null]})]})},ce=o.div`
174
174
  display: flex;
175
175
  min-height: 100%;
176
176
  flex-direction: column;
@@ -227,7 +227,7 @@ import{e as I,M as y,j as t,aW as D,m as H,_ as b,C as r,n as B,a0 as j,bS as E,
227
227
  border-color: ${e=>e.theme.colors.primary};
228
228
  }
229
229
  margin-bottom: ${i.sp6};
230
- `,we=o(V)`
230
+ `,we=o(G)`
231
231
  width: ${i.sp3};
232
232
  height: ${i.sp3};
233
233
  `,ge=o.div`
@@ -1,4 +1,4 @@
1
- import{Y as se,e as b,a2 as le,l as j,M as L,j as e,aW as oe,k as I,_ as h,g as x,o as s,s as te,c4 as re,u as A,a6 as D,B as ae,C as ne,c as u,c6 as ce,a7 as de,ap as me,q as pe}from"./index-CyJdCOlu.js";import{b as y,n as l,k as xe}from"./vendor-CnQcJ2Lu.js";import{x as he}from"./MeetingCalenderPopup-C-Ca0puH-BuYhTZNY.js";import{f as ge,C as E}from"./play-icon-BZYr9mDs-DofqQFSd.js";import{M as z}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-Bi8r7UDG.js";import"./analytics-CBL_L82S.js";import"./routing-CxYXTKiv.js";import"./sentry-HDxG13yk.js";import"./redux-CC-tnuv1.js";import"./liveblocks-DZpRS25q.js";import"./crypto-BURQLTgV.js";const R="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",V="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
1
+ import{z as se,K as b,a2 as le,l as j,F as L,j as e,aW as oe,r as I,Z as h,Y as x,o as s,p as re,b$ as te,u as A,a6 as D,O as ae,x as ne,h as u,c1 as ce,a7 as de,ap as me,n as pe}from"./index-D9zAXs3-.js";import{b as y,n as l,k as xe}from"./vendor-Bs1fkIUX.js";import{x as he}from"./MeetingCalenderPopup-LNaVbSrR-TEQEw5Mb.js";import{f as ge,C as E}from"./play-icon-KtJH-UgF-Bm3lFkFZ.js";import{M as z}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";const Z="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",G="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",ue={midContainerMarginBottom:new ne(pe[5],44)},we=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -7,27 +7,27 @@ import{Y as se,e as b,a2 as le,l as j,M as L,j as e,aW as oe,k as I,_ as h,g as
7
7
  `,je=l.div`
8
8
  padding: ${i=>i.windowSize==="small"?`${s.sp0} ${s.sp3}`:`${s.sp0} ${s.sp8}`};
9
9
  text-align: center;
10
- `,ye=l(re)`
10
+ `,ye=l(te)`
11
11
  max-width: 600px;
12
12
  margin: auto;
13
13
  padding: ${s.sp7} ${s.sp0};
14
14
  color: ${i=>i.theme.colors.primary};
15
- `,fe=l(te)`
15
+ `,fe=l(re)`
16
16
  max-width: 600px;
17
17
  margin: auto;
18
18
  padding: ${s.sp5} ${s.sp0};
19
19
  color: ${i=>i.theme.colors.primary};
20
- `,Z=l.div`
20
+ `,O=l.div`
21
21
  display: flex;
22
22
  flex-direction: ${i=>i.windowSize==="small"?"column":"row"};
23
23
  align-items: center;
24
24
  justify-content: center;
25
25
  margin-bottom: ${i=>ue.midContainerMarginBottom.valuePx(i.windowSize)};
26
- `,$e=l.div``,g=l.img``,Y=l.div`
26
+ `,$e=l.div``,g=l.img``,R=l.div`
27
27
  width: ${i=>i.windowSize==="small"?"auto":"376px"};
28
28
  display: flex;
29
29
  flex-direction: column;
30
- `,q=l.div`
30
+ `,V=l.div`
31
31
  width: ${i=>i.windowSize==="small"?"100%":"calc(100% - 376px)"};
32
32
  overflow: hidden;
33
33
  max-width: 712px;
@@ -63,11 +63,11 @@ import{Y as se,e as b,a2 as le,l as j,M as L,j as e,aW as oe,k as I,_ as h,g as
63
63
  color: ${i=>i.theme.colors.champion};
64
64
  `,d=l.div``,m=l.div`
65
65
  padding-left: ${s.sp3};
66
- `,G=l(z)`
66
+ `,Y=l(z)`
67
67
  color: ${u.graphColor16Dark};
68
68
  `,N=l(z)`
69
69
  color: ${u.graphColor09Dark};
70
- `,O=l(z)`
70
+ `,W=l(z)`
71
71
  color: ${u.graphColor28Dark};
72
72
  `,ke=l(ae)`
73
73
  margin: ${s.sp3} auto;
@@ -97,7 +97,7 @@ import{Y as se,e as b,a2 as le,l as j,M as L,j as e,aW as oe,k as I,_ as h,g as
97
97
  100% {
98
98
  transform: scale(100%)
99
99
  }
100
- `,W=l.div`
100
+ `,_=l.div`
101
101
  width: ${s.sp9};
102
102
  height: ${s.sp9};
103
103
  background: ${i=>i.theme.colors.playButtonBackGroundColor};
@@ -109,4 +109,4 @@ import{Y as se,e as b,a2 as le,l as j,M as L,j as e,aW as oe,k as I,_ as h,g as
109
109
  color: ${u.backgroundThemeLight};
110
110
  cursor: pointer;
111
111
  animation: ${ze} 1s ease infinite;
112
- `,o=L.getLocalizedStrings().spendManagement.billPay.billPayPromo,r=L.getLocalizedStrings().commonSetUp.businessVerification.terms,Ze=({billPaySetupView:i,analytics:a,meetingUrl:t,videoUrl:X,onButtonClick:_,onBackClick:H,onSetupBillPaySuccess:v,onClickMenuIcon:J})=>{const w=se(),n=b(),{billPayTermsDetails:p}=i,[K,C]=y.useState(!1),[Q,P]=y.useState(!1),B=le(p?.fetchStatus.fetchState);y.useEffect(()=>{B==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&v?.()},[B,v,p?.fetchStatus]);const T=()=>{a?.trackBillPayPromoVideo(),C(!0)},ee=()=>{a?.trackBillPayPromoScheduleDemo(),P(!0)},ie=j.hasBillPayAdminLevelAccess(w.loggedInUserRoleMap),M=j.hasBillPayAccess(w.loggedInUserRoleMap)&&!ie,U=M?o.setupNonAccessableUsersPromoText:o.promoText;return e.jsxs(we,{children:[K===!0?e.jsx(ge,{onCancelClick:()=>{C(!1)},videoUrl:X}):null,Q===!0?e.jsx(he,{onCancelClick:()=>{P(!1)},meetingUrl:t}):null,e.jsx(oe,{title:o.title,onBackClick:H,showBackButton:!j.hasOnlyBillPayAccess(w.loggedInUserRoleMap),showMenuIcon:n==="small"||n==="medium-compact",onClickMenuIcon:J,source:"BillPayPromoPage"}),e.jsxs(je,{windowSize:n,children:[n==="small"?e.jsx(fe,{children:U}):e.jsx(ye,{children:U}),n==="small"?e.jsx(ve,{onImageClick:T}):e.jsx(Ce,{onImageClick:T}),M===!1?e.jsxs($e,{children:[e.jsxs(Se,{windowSize:n,children:[e.jsx(I,{variant:"secondary",label:o.scheduleDemoButton,onClick:ee,"data-testid":h("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:n,children:o.orText}),e.jsx(I,{variant:"primary",label:o.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:_,"data-testid":h("billpay-setup-button")})]}),e.jsxs(ke,{children:[o.terms.terms1,e.jsx(x,{href:r.consentUrl,linkText:r.consent}),r.term2,e.jsx(x,{href:r.depositUrl,linkText:r.depositTerms}),r.term3,e.jsx(x,{href:r.privacyPolicyUrl,onZeniLinkClick:()=>(a?.trackBillPayPrivacyPolicy(),!0),linkText:r.privacy}),r.term4,e.jsx(x,{href:r.tosUrl,onZeniLinkClick:()=>(a?.trackBillPayAgreement(),!0),linkText:r.tos}),r.term5,o.terms.terms3]})]}):null]})]})},ve=({onImageClick:i})=>{const a=A(),t=b();return e.jsxs(Z,{windowSize:t,children:[e.jsxs(q,{windowSize:t,children:[e.jsx(W,{onClick:i,"data-testid":h("play-button-mobile"),children:e.jsx(E,{})}),e.jsx(F,{windowSize:t,children:a.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:R,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(Y,{windowSize:t,children:[e.jsxs(c,{windowSize:t,children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.fullyManagedText.bold}),e.jsx(k,{children:o.fullyManagedText.regular})]})]}),e.jsxs(c,{windowSize:t,children:[e.jsx(d,{children:e.jsx(N,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.multiLevelApprovalText.bold}),e.jsx(k,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(c,{windowSize:t,children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.aiPoweredText.bold}),e.jsx(k,{children:o.aiPoweredText.regular})]})]})]})]})},Ce=({onImageClick:i})=>{const a=A(),t=b();return e.jsxs(Z,{windowSize:t,children:[e.jsxs(Y,{windowSize:t,children:[e.jsxs(c,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(O,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.fullyManagedText.bold}),e.jsx(f,{children:o.fullyManagedText.regular})]})]}),e.jsxs(c,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(N,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.multiLevelApprovalText.bold}),e.jsx(f,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(c,{windowSize:t,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(G,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.aiPoweredText.bold}),e.jsx(f,{children:o.aiPoweredText.regular})]})]})]}),e.jsxs(q,{windowSize:t,children:[e.jsx(W,{onClick:i,"data-testid":h("play-button-web"),children:e.jsx(E,{})}),e.jsx(F,{windowSize:t,children:a.mode==="dark"?e.jsx(g,{src:V,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:R,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})};export{Ze as default};
112
+ `,o=L.getLocalizedStrings().spendManagement.billPay.billPayPromo,t=L.getLocalizedStrings().commonSetUp.businessVerification.terms,Oe=({billPaySetupView:i,analytics:a,meetingUrl:r,videoUrl:H,onButtonClick:K,onBackClick:X,onSetupBillPaySuccess:v,onClickMenuIcon:q})=>{const w=se(),n=b(),{billPayTermsDetails:p}=i,[J,P]=y.useState(!1),[Q,C]=y.useState(!1),B=le(p?.fetchStatus.fetchState);y.useEffect(()=>{B==="In-Progress"&&p?.fetchStatus.fetchState==="Completed"&&v?.()},[B,v,p?.fetchStatus]);const T=()=>{a?.trackBillPayPromoVideo(),P(!0)},ee=()=>{a?.trackBillPayPromoScheduleDemo(),C(!0)},ie=j.hasBillPayAdminLevelAccess(w.loggedInUserRoleMap),M=j.hasBillPayAccess(w.loggedInUserRoleMap)&&!ie,U=M?o.setupNonAccessableUsersPromoText:o.promoText;return e.jsxs(we,{children:[J===!0?e.jsx(ge,{onCancelClick:()=>{P(!1)},videoUrl:H}):null,Q===!0?e.jsx(he,{onCancelClick:()=>{C(!1)},meetingUrl:r}):null,e.jsx(oe,{title:o.title,onBackClick:X,showBackButton:!j.hasOnlyBillPayAccess(w.loggedInUserRoleMap),showMenuIcon:n==="small"||n==="medium-compact",onClickMenuIcon:q,source:"BillPayPromoPage"}),e.jsxs(je,{windowSize:n,children:[n==="small"?e.jsx(fe,{children:U}):e.jsx(ye,{children:U}),n==="small"?e.jsx(ve,{onImageClick:T}):e.jsx(Pe,{onImageClick:T}),M===!1?e.jsxs($e,{children:[e.jsxs(Se,{windowSize:n,children:[e.jsx(I,{variant:"secondary",label:o.scheduleDemoButton,onClick:ee,"data-testid":h("billpay-schedule-demo-button")}),e.jsx(be,{windowSize:n,children:o.orText}),e.jsx(I,{variant:"primary",label:o.setupBillPayButton,loading:p?.fetchStatus.fetchState==="In-Progress",onClick:K,"data-testid":h("billpay-setup-button")})]}),e.jsxs(ke,{children:[o.terms.terms1,e.jsx(x,{href:t.consentUrl,linkText:t.consent}),t.term2,e.jsx(x,{href:t.depositUrl,linkText:t.depositTerms}),t.term3,e.jsx(x,{href:t.privacyPolicyUrl,onZeniLinkClick:()=>(a?.trackBillPayPrivacyPolicy(),!0),linkText:t.privacy}),t.term4,e.jsx(x,{href:t.tosUrl,onZeniLinkClick:()=>(a?.trackBillPayAgreement(),!0),linkText:t.tos}),t.term5,o.terms.terms3]})]}):null]})]})},ve=({onImageClick:i})=>{const a=A(),r=b();return e.jsxs(O,{windowSize:r,children:[e.jsxs(V,{windowSize:r,children:[e.jsx(_,{onClick:i,"data-testid":h("play-button-mobile"),children:e.jsx(E,{})}),e.jsx(F,{windowSize:r,children:a.mode==="dark"?e.jsx(g,{src:G,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"100%",height:"auto"},loading:"lazy"})})]}),e.jsxs(R,{windowSize:r,children:[e.jsxs(c,{windowSize:r,children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.fullyManagedText.bold}),e.jsx(k,{children:o.fullyManagedText.regular})]})]}),e.jsxs(c,{windowSize:r,children:[e.jsx(d,{children:e.jsx(N,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.multiLevelApprovalText.bold}),e.jsx(k,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(c,{windowSize:r,children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(m,{children:[e.jsx(S,{children:o.aiPoweredText.bold}),e.jsx(k,{children:o.aiPoweredText.regular})]})]})]})]})},Pe=({onImageClick:i})=>{const a=A(),r=b();return e.jsxs(O,{windowSize:r,children:[e.jsxs(R,{windowSize:r,children:[e.jsxs(c,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(W,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.fullyManagedText.bold}),e.jsx(f,{children:o.fullyManagedText.regular})]})]}),e.jsxs(c,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(N,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.multiLevelApprovalText.bold}),e.jsx(f,{children:o.multiLevelApprovalText.regular})]})]}),e.jsxs(c,{windowSize:r,style:{width:"376px"},children:[e.jsx(d,{children:e.jsx(Y,{})}),e.jsxs(m,{children:[e.jsx($,{children:o.aiPoweredText.bold}),e.jsx(f,{children:o.aiPoweredText.regular})]})]})]}),e.jsxs(V,{windowSize:r,children:[e.jsx(_,{onClick:i,"data-testid":h("play-button-web"),children:e.jsx(E,{})}),e.jsx(F,{windowSize:r,children:a.mode==="dark"?e.jsx(g,{src:G,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"}):e.jsx(g,{src:Z,alt:"forecast-promo",style:{width:"615px",height:"402px"},loading:"lazy"})})]})]})};export{Oe as default};
@@ -0,0 +1,42 @@
1
+ import{u as De,K as Oe,a2 as V,a as _e,c2 as Re,F as Ue,l as ze,a8 as Q,j as t,cs as He,Z as Le,h as Me,x as u,aW as Ne,i as qe,c as Ge,du as Ke,aS as Je,dk as Ze,bw as Qe,fE as Ye,a4 as Xe,o as L,n as a,k as et,b5 as tt}from"./index-D9zAXs3-.js";import{b as m,n as g}from"./vendor-Bs1fkIUX.js";import{D as it}from"./HelpButton-Dw0OujKs-8AApGgt1.js";import"./SetUpAccountSection-2UGQI7fx-D_tNKXyG.js";import{K as z}from"./SetUpDefaultSection-BWt_kYKx-Dc8telSj.js";import{f as nt}from"./SpendMgmtSetupAccountSection-h6duObCp-PJLwXWd-.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-Bxc2MMx0-Cpl1vzGP.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";import"./MeetingCalenderPopup-LNaVbSrR-TEQEw5Mb.js";import"./Loader-Cqmoylhp-CKPikayq.js";import"./ChaseOverlay-YVpKSII6-BIyjTgCz.js";import"./ChargeCardUtils-DYpmF85C-qBaPG14m.js";import"./CreditCardPaymentPlgSection-BgJ074tY-CfzZdzTd.js";const n={titleWidth:new u(343,580,726,826),setupDetailsRowGap:new u(12,a[5],a[5]),sectionRowGap:new u(a[5],a[9],a[9]),lastSectionPaddingBottom:new u(a[7],a[10],a[10]),iconWidthHeight:new u(20,a[4]),subTitlePaddingTop:new u(12,a[3]),subTitlePaddingBottom:new u(a[3],a[3]),overlayWidth:new u(100,100,59)},Y="billPaySetUpPage",E="billPayAccount",Ft=({billPaySetupView:e,isDisabled:w,billpayApprovalView:W,meetingUrl:v,showIntlWiseWidget:s,connectedAccountProvider:ee,isAccountsEnabled:te,isLocalCurrencyEnabled:ie,analytics:y,filesEndPoint:ne,authParams:oe,accountsPromoConfig:ae,onBackClick:le,onBusinessVerificationSectionClick:ce,onSetupApprovalRulesSectionClick:se,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onEstablishConnectionSuccess:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAccountClick:he,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEnableBillPayClick:ge,onEnableBillPaySuccess:M,onClickMenuIcon:ye,onInternationPaymentSetUpClick:be,onEditFileName:Se,onDeleteFile:xe,updateFilesEntity:Pe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=De(),i=Oe(),[k,b]=m.useState(!1),N=m.useRef(null),{fetchState:p,updateStatus:S,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:q}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,D=$.link_account.updateStatus,O=$.update_account.updateStatus,B=V(p),K=V(S.fetchState),J=V(D.fetchState),Z=V(O.fetchState),x=_e({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>H(e),[e]),values:H(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&b(!0),k&&B==="In-Progress"&&p==="Completed"&&b(!1)},[c,p,B]),m.useEffect(()=>{(B==="In-Progress"&&p==="Completed"||J==="In-Progress"&&D.fetchState==="Completed"||Z==="In-Progress"&&O.fetchState==="Completed")&&x.reset(H(e))},[B,p,x,e,J,D.fetchState,Z,O.fetchState]);const Be=x.handleSubmit(P=>{y.trackEnableBillPay(),ge()}),Ie=async(P,F)=>{const o=F[E];if(P.includes(E)){if(P.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=q.find(U=>U.id===o.fundingAccount.selectedOption);f!=null&&pe(o.fundingAccount.selectedOption,f.accType)}}else if(o.account.selectedOption!=null&&r?.id!=null&&r?.zeniAccountId!=o.account.selectedOption){const f=o.account.allOptions.find(U=>U.value===o.account.selectedOption);f!=null&&typeof f.label=="string"&&y.trackConnectBankLink(f.value,f.label,"bill_pay"),he(o.account.selectedOption,r.id,r.accType)}}};m.useEffect(()=>{const P=x.watch((F,{name:o})=>{o!=null&&F!=null&&Re(()=>Ie(o,F))});return()=>{P.unsubscribe()}}),m.useEffect(()=>{K==="In-Progress"&&S.fetchState==="Completed"&&M()},[M,K,S.fetchState]);const{commonSetUp:Fe,spendManagement:Ve}=Ue.getLocalizedStrings(),{setUp:d}=Fe,{billPaySetup:l}=Ve.billPay,_=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=_?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",I=C.mode==="light"?new Q(C.colors.brandColorJadeLight):new Q(C.colors.brandColorJadeDark),$e=()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"?b(!0):ce?.()};return t.jsxs(lt,{ref:N,children:[t.jsx(He,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>b(!1),style:{backgroundColor:Me.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:S,onEditFileName:Se,onDeleteFile:xe,updateFilesEntity:Pe,companyOfficer:c,onClose:()=>b(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Ne,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:N,backgroundColor:C.colors.grey4,source:"BillPaySetUpPage"}),t.jsxs(rt,{windowSize:i,children:[t.jsx(st,{windowSize:i,children:Ee}),We?t.jsx(dt,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...x,children:t.jsx("form",{id:X(Y),onSubmit:Be,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(z,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:q,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(z,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ze,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(z,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:I},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),be?.()},status:T?void 0:{name:h.name,code:h.code},statusInfoIcon:h?.code==="verification_pending"||h?.code==="verification_failed"?t.jsx(Qe,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),_&&!R&&j.length>0?t.jsx(Xe,{formId:X(Y),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:S.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:w!=null},showCancel:!1,helperText:l.terms,cancelBtn:{label:""},style:{padding:`12px ${L.sp3}`}}):null,t.jsx(it,{isFooterRendered:_&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
2
+ display: flex;
3
+ min-height: 100%;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ background-color: ${e=>e.theme.colors.grey4};
7
+ height: 100vh;
8
+ overflow-y: auto;
9
+ `,ct=g(tt)`
10
+ width: ${L.sp3};
11
+ height: ${L.sp3};
12
+ color: ${e=>e.theme.colors.hero};
13
+ &:hover {
14
+ color: ${e=>e.theme.colors.primary};
15
+ }
16
+ `,st=g(et)`
17
+ color: ${e=>e.theme.colors.hero};
18
+ display: flex;
19
+ justify-content: center;
20
+ width: ${e=>n.titleWidth.valuePx(e.windowSize)};
21
+ padding-top: ${e=>n.subTitlePaddingTop.valuePx(e.windowSize)};
22
+ padding-bottom: ${e=>n.subTitlePaddingBottom.valuePx(e.windowSize)};
23
+ text-align: ${e=>e.windowSize==="small"?"initial":"center"};
24
+ `,rt=g.div`
25
+ display: flex;
26
+ justify-content: flex-start;
27
+ flex-direction: column;
28
+ align-items: center;
29
+ row-gap: ${e=>n.setupDetailsRowGap.valuePx(e.windowSize)};
30
+ `,dt=g.div`
31
+ display: flex;
32
+ width: 100%;
33
+ height: calc(100vh - 110px);
34
+ flex-direction: row;
35
+ justify-content: center;
36
+ align-items: center;
37
+ background-color: ${e=>e.theme.colors.grey4};
38
+ `,ut=g.div`
39
+ display: flex;
40
+ flex-direction: column;
41
+ row-gap: ${e=>n.sectionRowGap.valuePx(e.windowSize)};
42
+ `,H=e=>{const{allBankAccounts:w,allFundingAccounts:W,primaryFundingAccount:v}=e;return{[E]:{fundingAccount:{selectedOption:v?.id,allOptions:W.map(s=>({label:s.label,value:s.id,isRecommended:s.accType==="depositAccount"}))},account:{selectedOption:v?.zeniAccountId,allOptions:w.map(s=>({label:s.accountName,value:s.accountId}))}}}},X=e=>`${e}_form`;export{Ft as default,X as uniqueName};
@@ -0,0 +1,44 @@
1
+ import{u as we,K as xe,a as Ce,c2 as Pe,a8 as k,F as be,j as t,x as P,aW as Ae,i as Ie,c as ve,aS as je,c3 as ke,a4 as $e,o as s,hT as Ve,fb as Te,fc as Be,n as b,k as ze,gI as Ee,V as Le,h as De}from"./index-D9zAXs3-.js";import{b as R,n as r}from"./vendor-Bs1fkIUX.js";import{M as Oe,r as W,o as Me}from"./PaymentAccountSetupBillingAddressSection-YLuS3VUf-CaBoPPAw.js";import{G as Fe}from"./SetUpAccountSection-2UGQI7fx-D_tNKXyG.js";import"./mui-Ty75qFQF.js";import"./analytics-CBL_L82S.js";import"./routing-lj7oVq6C.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-C2xecagE.js";import"./crypto-DPjkCRYF.js";import"./Loader-Cqmoylhp-CKPikayq.js";import"./SetUpDefaultSection-BWt_kYKx-Dc8telSj.js";import"./ChaseOverlay-YVpKSII6-BIyjTgCz.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",ct=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:G,googleAPIKey:N,companyId:q,onUpdateAccountClick:J,onFetchLinkTokenClick:Z,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionClick:Y,onEstablishConnectionSuccess:ee,handleCreateCardSetupIntent:te,handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleAddCardPaymentSource:ie,resetCardPaymentViewState:oe,handleResetCardPaymentErrorStatuses:ae,onBillingAddressSave:se,onAddressEditHandler:re})=>{const x=we(),i=xe(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:V},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,T=y?.providerVerificationStatus,ue=V.fetchState==="In-Progress"||V.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(a),values:U(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(q)}),B=a.subscriptionBillingAddressSaveStatus,me=async(c,o)=>{const h=o[A];if(c.includes(n)&&o[n]!=null){const v=S.getValues(`${n}`).country;let u=o[n];if(c.includes(`${n}.street`)&&o[n].street!=null){const{addressValue:w}=o[n].street,j=Te(w?.country);u={street:o[n].street??l.strings.empty,city:w?.locality??l.strings.empty,state:w?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:w?.countryCode??l.strings.empty,postalCode:w?.postalCode??l.strings.empty,secondaryInfo:o[n].secondaryInfo,suite:o[n].suite},v.selectedOption!==j.selectedOption&&(u={...u,country:j})}else c===`${n}.country`&&v.selectedOption!=null&&(u={...u,countryCode:Be(v.selectedOption)});u!=null&&re(u)}else c.includes(A)&&h.account.selectedOption!=null&&y?.paymentAccountId!=null&&y.zeniAccountId!==h.account.selectedOption&&J(h.account.selectedOption,y.paymentAccountId)};R.useEffect(()=>{const c=S.watch((o,{name:h})=>{h!=null&&o!=null&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const z=x.mode==="light"?new k(x.colors.brandColorJadeLight):new k(x.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:f}},common:l,billingSetupPage:E}=be.getLocalizedStrings(),ge=E.section.subTitle,{text:ye,subText:Se}=he,L=m.cardsList.length>0,D=m?.cardsList[0]?.brand??"other",O=m?.addCardPaymentSourceStatus.fetchState,C=Oe(f.header,f.titleText,f.protectedCardNo,m);let M;L&&(M={header:C.header,title:C.title,subtitle:C.subtitle,status:C.status==="valid"?{name:"Verified",code:"verified"}:{name:"Pending",code:"pending"},showAddPaymentMethodDropDown:L===!0,icon:{element:t.jsx("img",{src:W(D).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(D).name}),color:new k(z)},showCompletedIcon:!1,isError:O==="Error",isLoading:O==="In-Progress",isCompleted:!0,showRightArrow:!1});const[F,fe]=R.useState(!1);return t.jsxs(He,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:E.section.title,backgroundColor:x.colors.grey4,style:{zIndex:3},showBackButton:!1,showMenuIcon:i==="medium-compact"||i==="small",onClickMenuIcon:I}),t.jsxs(We,{windowSize:i,children:[t.jsx(Ue,{windowSize:i,children:ge}),ue?t.jsx(_e,{children:t.jsx(Ie,{size:"ExtraLarge",start:!0})}):t.jsx(ve,{...S,children:t.jsx(Je,{children:t.jsx("form",{id:_(H),onSubmit:pe,children:t.jsxs(Ke,{windowSize:i,children:[t.jsx(Fe,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:f.header,sectionTitle:f.header,defaultSectionTitle:ye,defaultSectionSubTitle:Se,sectionId:A,isDisabled:d,onFetchLinkTokenClick:Z,onEstablishConnectionClick:Y,onUpdatePaymentAccountStatus:Q,onUpdatePaymentAccountLoginStatus:X,onEstablishConnectionSuccess:ee,isError:T?.code==="require_info"||T?.code==="failed",icon:{element:t.jsx(je,{width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i)}),color:z},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:M,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:F}),Ge(i,l.headers.billingAddress,ce,N,d)]})})})}),ke(S.formState.dirtyFields)?t.jsx($e,{formId:_(H),style:{width:i==="small"?"auto":"100%",paddingTop:s.sp2,paddingBottom:s.sp2,height:s.sp8},primaryBtn:{label:l.footer.save,isLoading:B?.fetchState==="In-Progress",isDisabled:B?.fetchState==="In-Progress",style:{height:s.sp6}},showCancel:!1,containerStyle:{width:"auto",justifyContent:"center"}}):null]}),t.jsx(Me,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:G,cardSetupInProgress:F,setCardSetupInProgress:fe})]})},U=e=>{const{paymentAccount:a,allBankAccounts:g}=e.setupView;return{[A]:{account:{selectedOption:a?.zeniAccountId,allOptions:g.map(d=>({label:d.accountName,value:d.accountId}))}},[n]:Ve(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
+ display: flex;
3
+ justify-content: space-between;
4
+ height: 100%;
5
+ overflow-y: auto;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ row-gap: ${e=>p.setupDetailsRowGap.valuePx(e.windowSize)};
9
+ `,He=r.div`
10
+ display: flex;
11
+ min-height: 100%;
12
+ flex-direction: column;
13
+ width: 100%;
14
+ background-color: ${e=>e.theme.colors.grey4};
15
+ `,Ue=r(ze)`
16
+ color: ${e=>e.theme.colors.hero};
17
+ display: flex;
18
+ justify-content: center;
19
+ width: ${e=>p.titleWidth.valuePx(e.windowSize)};
20
+ padding-top: ${e=>p.subTitlePaddingTop.valuePx(e.windowSize)};
21
+ padding-bottom: ${s.sp3};
22
+ text-align: ${e=>e.windowSize==="small"?"initial":"center"};
23
+ `,_e=r.div`
24
+ display: flex;
25
+ width: 100%;
26
+ height: calc(100vh - 110px);
27
+ flex-direction: row;
28
+ justify-content: center;
29
+ align-items: center;
30
+ background-color: ${e=>e.theme.colors.grey4};
31
+ `,Ke=r.div`
32
+ display: flex;
33
+ flex-direction: column;
34
+ `,Ge=(e,a,g,d,I)=>t.jsxs(Ne,{children:[t.jsx(qe,{windowSize:e,isDisabled:I==="disabled",children:a}),t.jsx(Ee,{googleAPIKey:d??"",addressToEdit:g,sectionId:`${n}`,style:{marginLeft:"0px"},elementsStyle:{paddingRight:"0px"}})]}),Ne=r.div`
35
+ margin-top: ${s.sp3};
36
+ margin-bottom: ${s.sp4};
37
+ `,qe=r.div`
38
+ ${e=>`${Re.title.style(e.windowSize)}`};
39
+ margin-bottom: ${s.sp3};
40
+ margin-top: ${s.sp4};
41
+ color: ${e=>e.isError===!0?De.important:e.isDisabled===!0?e.theme.colors.grey1:e.theme.colors.primary};
42
+ `,Je=r.div`
43
+ flex: 1;
44
+ `,_=e=>`${e}_form`;export{ct as default,_ as uniqueName};