@zeniai/web-cockpit-ui 1.14.60-qa → 1.14.61-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/dist/assets/{ACHDetailsPage-CMtJmLWB-DufQTQrW.js → ACHDetailsPage-DRTKGZRg-QbkUudLU.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-B4K4X8Cn-BGJDmmSs.js → AIPerformancePage-BiJJjrhT-Cob0Krvt.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-g8J8r2CO-CDLJ3CcM.js → AccountInfoPage-vGRLLjSJ-CRwZkbUY.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-BTkkbk49-Dp9zNAHz.js → AccountInfoPageContent-97TAUxBk-D4bWcKct.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-B1gvhmCC-5CwfRV_A.js → AccountLockedInfoModal-CkxVn3nI-DwyCv7lx.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-BA3wJm2M-BHXn2h7U.js → AccountReconDetailsDrawerPage-CTU_OscW-BCXYktG1.js} +1 -1
  7. package/dist/assets/{AccountRow-BwLd4zoq-ZDzzlrC7.js → AccountRow-B2VWoEkH-ByxmU3Bt.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-7iMhZxTm-B05wr1hu.js → AccountsPromoCardStack-D8NIRk_P-D70tG8Aa.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CKdlqnIU-DZaG36zo.js → AddAddressForCardDrawer-C6N0d3LK-CPegtJDN.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CZ7I0vFD-B9QfA2i7.js → AddToWalletPage-SSr5sRrt-DiJ9WtS2.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-AIa3Cz-h-TUAOLU8v.js → AgingReportsPage-fTLucZvY-DnKQ48vG.js} +1 -1
  12. package/dist/assets/{AllUserItems-DhY8SHjT-BBOWANm6.js → AllUserItems-BBtoXNrS-v1jyMp4A.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-Ckw9fZle-CV-rlBEt.js → ApAgingDetailPage-De7fdEYM-8k569hFA.js} +1 -1
  14. package/dist/assets/{AppBasePage-C1hmvWyj-Bqxe2LIw.js → AppBasePage-COIvXPv--NF7xV7xI.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DiNGglLb-nYA2BDki.js → AppDrawerContent-DPN9fgfF-D4jpUrAe.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-CzWAjh1M-D6nBZP2N.js → ApprovalRulesSettingsPage-DouiWyKl-CEEq_Vm6.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DrNoSF9D-BMHcmd6x.js → ArAgingChart-DmgIO4SI-CCEDFcLT.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-b2PAWlZI-vRPeYNa9.js → ArAgingDetailPage-BcRw1SMk-CSG9MPSI.js} +1 -1
  19. package/dist/assets/{AttachmentView-BHnVquLu-6hZ55twC.js → AttachmentView-Dvac1N-l-Ct4TLIoD.js} +1 -1
  20. package/dist/assets/{BankAccountSection-FoTrxLuO-BqORj6XR.js → BankAccountSection-BsXTBaXq-CuiD9KLK.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-CESdMQAp-Dvr6IBQT.js → BankAccountWarningSection-D-HBbAL2-DCpeghKs.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BbgFwEOu-CI-sjhMe.js → BankConnectionsSettingsPage-D0Y6qZ_2-DbN-Moy8.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BUMvIc_J-DH-orRQg.js → BillDetailPage-dx30mbdz-B2GKf5Qz.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-CmTYtfyR-BD7oLrOg.js → BillPayApprovalRuleDetailPage-Dw8W_Luw-6REXzb3H.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-B324GvTg-D0U7LzE6.js → BillPayApprovalRulesPage-D_4JPSqH-BOrOF31w.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-C9d-WjPg-C57VPMAK.js → BillPayPromoPage-C9GnqQma-DpBOB7Bo.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-BGuFqMMd-BgQjW6z_.js → BillPaySetUpPage-DcOcEzGu-flrCw1AA.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-CF682rr6-D0Pbh6y3.js → BillingSettingsPage-1DO-gpJ3-VtOGofjm.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-ByQlaRw8-CpVP7Bo9.js → BillsBulkReviewDrawerPage-D2_xZy5W-p6szfuBj.js} +1 -1
  30. package/dist/assets/{BoxItem-T-wRQ6H--CXeEcx6r.js → BoxItem-DCpL-Qsv-VISaQtNr.js} +1 -1
  31. package/dist/assets/BusinessVerificationPage-BbF4Vnda-CcBwNKHx.js +138 -0
  32. package/dist/assets/{CardNumberSubText-BjKu7YKY-jR-gP-EZ.js → CardNumberSubText-CPjMRY-i-BnZZjfBd.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DtSnBiJ8-ZJXHgARm.js → CashbackDetailPage-DRs48lki-BldQdW75.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-C2a33ffW-BPlobT4a.js → ChargeCardDetailPage-DyukbgmU-Db50OKLx.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-BLnfVs2i-BYYQsrhu.js → ChargeCardListPage-FW6iIwGV-DGzfJYxm.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-DOhn3tAQ-C29o3Bmc.js → ChargeCardListTable-Di_JUGvM-BL58u9To.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-DJPvD2XN-UgTcQjN9.js → ChargeCardPromoPage-V5I32kB7-BVAKIAqJ.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-BrLtSKZL-DYRwZUoG.js → ChargeCardSetupPage-bCTtavZY-BoeXpKWo.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-CVNsePU1-DaKopCj3.js → ChargeCardStatementsPage-taKmW351-eLzF145p.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-DJmy0Cev-DpywgBWY.js → ChargeCardUtils-CuCE8WUR-DNJas3Pu.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-rri8XLPh-Ce609WI1.js → ChaseOverlay-CxZiC1U_-z2MQXKrY.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-BbVV-iey-CjNbfTfO.js → CheckDepositDrawerPage-apQH1q1L-DKyFVVf-.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-C1EUOKF0-BNL-lwFO.js → CollapsableReportTable-DBbtedVp-BGENwkQK.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-Dgb-zu3S-Coo-VoVI.js → CompanyOfficerDetailsSection-DlrJ7APF-58sMSXCv.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-CzrOdaKP-BLsdx4RO.js → CompanyPassportCard-CSXq3o27-BP_cp5a1.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-DflzhkM3-DiFUsOgP.js → CompanyPassportPage-Do_5vOYt-BSMeY0z4.js} +1 -1
  47. package/dist/assets/{CompleteProfile-C3oZl1r8-CgtY9yON.js → CompleteProfile-Obmdzvii-D3oUeeHu.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BEsxeRGY-NQZmqBo9.js → ConfettiBurst-DJ042kFU-DPw6t_M8.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-B_-4ElTt-DNsq3bMV.js → CreateOrEditVendorPage-BFvLEKuD-DSN51I--.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-BGQ6V3r7-CIMSA6fH.js → CreditCardPaymentDrawerPage-DjUsTinZ-CGFW1HjR.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-DhdW49G9-ARxRUbiI.js → CreditCardPaymentPlgSection-aSz8bfzl-CvtLlfud.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-gfHhmXUP-sgeYQo3A.js → CurrencySelectField-Bwc9lmJi-CjjAdWyi.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-BUxy6VWQ-BTh1ko--.js → CustomerOnboardingActivationPage-DRV0g2L1-C5TTZb3y.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-BYR2xHSk-D9IJoj6E.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CE6fU0CC-DGUSU9Qb.js → CustomerOnboardingDetailPageSkeleton-CE_5Hnb9-BEGT_j-O.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-lYXlJE6O-CTDL4dkj.js → CustomerOnboardingNoStepsPage-CXtEfJVc-BTXX0Zlv.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-BOxVLi_7-CxBKz-tb.js → CustomerOnboardingPage-BzBZ9Qpg-DZLLxSJW.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-tFWnWf80-BO1DZhCb.js → CustomerOnboardingProductSuitePage-B07wnsTN-CNwPZLdN.js} +1 -1
  59. package/dist/assets/{Dashboard-CFylpdvX-BO1rfT4j.js → Dashboard-Dj1cTLEk-B8Q_ufiX.js} +262 -262
  60. package/dist/assets/{DashboardReportPage-CVX19wiC-CebE1nks.js → DashboardReportPage-DyVFKDvv-Cas95L4b.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-DUDUA9AZ-D-zpYINh.js → DashboardSidebarBackgroundAnimation-DNj32SjF-BSxg3L3_.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-CxfgDISi-44BRhsYv.js → DepositAccTransactionItem-XKpj9eEZ-DF1nnEyp.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-DRqc04U8-CE1VC7HT.js → DepositAccTransactionListPage-BFTtix6Q--kU_Y3eH.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-C6bslILa-BQEqN4Se.js → DomesticWireDetailsPage-CLKK8sNe-BwGSz_kD.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-DA4eiUda--qrkecKD.js → DownloadOverlay-B4GX4TFb-DpCeCVBA.js} +1 -1
  66. package/dist/assets/{DrawerPage-CSD0D3x1-1v_n4sH_.js → DrawerPage-DgPyM_vI-DzQngNI3.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-GdNNwE7E-Bj0gM6YA.js → EditPeoplePage-DSjAt1nK-C0t1E7c9.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-rwql32yU-C1JgYIYI.js → EditReimbursementDetailPage-Cs1Au5CN-B1N1fUSH.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-D8H8sU7_-BKfugH_5.js → EntityDetailPage-D-4lZ0Qr-Bc3-OnQV.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-Dxz5sy7--DiMkjhXV.js → EntitySummarySection-Q7GVe951-rrtgcCD0.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-CsQp9uKU-CQzTcRJH.js → ExpenseAutomationOverviewPage-BmCkHHAt-CJVYVY9i.js} +24 -24
  72. package/dist/assets/{ExpenseAutomationPage-DBKdtY0f-BkFMwu1n.js → ExpenseAutomationPage-CefPPbut-CccftClp.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-gRjIRDdU-C1wPwf-b.js → ExpressPayPage-DFg_BAq9-DLfi_6yy.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-BPoobhW5-BNut5LE3.js → FeaturePreviewPage-C9cuVphN-ynUlG36T.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-DL-HmGt4-C9a7p1zc.js → FollowStepsSection-DYyRp5PN-CeZ5yfyW.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-BwayoUqk-zNgij7XG.js → GlobalReviewListPage-BeHSST5R-BWL2N0mX.js} +1 -1
  77. package/dist/assets/{HelpButton-DHSxcuGA-BWZnqsL1.js → HelpButton-D15CWyoU-D2RNsBLz.js} +1 -1
  78. package/dist/assets/{InformationCardStack-CQrbuPaI-DD7lHSUO.js → InformationCardStack-rUHWngrM-he738NkA.js} +1 -1
  79. package/dist/assets/{InsightsCardStack--Yd4NJyO-BuOs653N.js → InsightsCardStack-CFJ4Jvat-B-ox6Atv.js} +1 -1
  80. package/dist/assets/{InsightsSection-RhbVJwLe-DAe2Ld9i.js → InsightsSection-DID-lCow-DkB8Gyxt.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-TuhwrYKO-dvnT80Dt.js → IntegrationsSettingsPage-Dr-ydIs2-yv45Gb1-.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DUbugoej-BMHbf8S7.js → InternationalWireSwiftDetailsPage-CaPXbVZ8-B_64DxaV.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-9iKYrH3T-CXMChPWn.js → InternationalWireVerificationPage-s6Zgl1Hf-CoBKjy9v.js} +1 -1
  84. package/dist/assets/{InviteFormPage-BFt8joSd-DiMwTEIt.js → InviteFormPage-usETKZTN-C_xLr_8Z.js} +1 -1
  85. package/dist/assets/{InvitePageListView-BL430ipu-B4gviswJ.js → InvitePageListView-B1cv1VUM-CM5I2J5o.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-zZKd7NJ2-DQg8k2k1.js → InvitePeoplePage-Bd35FUiF-BJrUUsbz.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-kF1uvItW-C4PGeuCJ.js → InvoiceUploadSection-CEZ4nNnj-MT5bhKG7.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-CsjlMV2S-CEdkGzhT.js → IssueChargeCardPage-BFdbMIkR-BxRKfCdZ.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-Bz9cBuQ1-B9_4mOjB.js → LabeledAddressValue-BBFgWhG5-uqko4-bP.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DqETahiQ-BC9x39T7.js → LabeledAddressValueField-IiXXbZHV-Nxtbx1fP.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-v1rfkkSG-BObZavW7.js → LabeledControlledCheckBoxField-B4Jzs1P3-CqvHOJTE.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-C12MwmYB-BaqV3sSs.js → LabeledCreatableSingleSelectField-DSYo_hqM-Du6ICaKz.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-C-VgKiqN-Czu-AYcW.js → LabeledDocumentField-BL3SiwZn-BYLAv-bv.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CTTY6aaV-DjzAdVnl.js → LabeledDropDownFormattedTextField-D0-BQcsg-DHekyXda.js} +1 -1
  95. package/dist/assets/{LabeledText-D-L9n7c9-BFHVyn0b.js → LabeledText-BnxMOmt2-B7-XWWm6.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-DL77o5I--18aBl5Eb.js → LabeledUserSingleSelectWithSubtitlesField-Cam-U7V6-0xrR7HZn.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CkfPFUqd-oBon4BIk.js → LabeledZeniRolesDropDownField-D6qcibh_-0xBfeHve.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-34_mfubF-CUsmKesx.js → LinkJETransactionPage-DbgShBVx-hzAjAvpe.js} +1 -1
  99. package/dist/assets/{LockCardPage-CXs-4wlr-desKVP17.js → LockCardPage-Cxo2om5_-CKHN2OvU.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-BoD3u5NM-PiOYTtaJ.js → LowBalancePopup-BkgfL9m6-BKolyB9M.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-DePsU3gl-F30KOfI1.js → MagicLinkACHDetailsPage-B8wcch8z-YieoMEWp.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-B0yVENRv-piusdIak.js → MagicLinkDomesticWireDetailsPage-CHAb9ZFh-Z1iu3Mw2.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-ytzbIbXw-9_gIHnA6.js → MagicLinkInternationalWireDetailsPage-Nq-r1QYD-COMCILna.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-CSvQZH6r-B92L3oYw.js → MagicLinkSuccessPage-D44nl1gY-QhpeRhR0.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-Cnrm36NH-7TV-1BiC.js → MagicLinkTitleSection-C2v2uxKO-xXf43PEA.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-Dzn5nqaX-Bkn5jBHQ.js → MailingDetailsSection-BwvXwj_0-BQyY09as.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-DiUZr6zF-CdrWRN0c.js → MeetingCalenderPopup-B2BtdHWQ-BMcSB5xW.js} +1 -1
  108. package/dist/assets/{Menu-DoA95Zgg-B8GzMRyk.js → Menu-BTNO1N-S-DarsFvLf.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-1CPR2Cj5-CRdXV6cE.js → MyBankConnectionsSettingsPage-j_LG9Fpe-8bTaQuEv.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-CVAe_sKo-Cs___OmZ.js → MyPendingActivationChargeCardListPage-WZ3ppUZo-Mel9mh-o.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-CnBDaKZL-Bq3AQ_z0.js → MyProfileSettingsPage-DI9uhnIs-CN7oxkd2.js} +1 -1
  112. package/dist/assets/{NavBarWithPicker-Cog2dcVl-Dv8SC5L_.js → NavBarWithPicker-C5fjaG1x-Dtfm0tfi.js} +1 -1
  113. package/dist/assets/{NavigationArrow-CWZwBLy9-C5dkj6_D.js → NavigationArrow-DDTODvpX-9wzkhdV7.js} +1 -1
  114. package/dist/assets/{NavigationDots-6Ixjpa6J-CeZVAIRN.js → NavigationDots-tnEUZ7xP-DlkUyxGf.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-DPXnZqzi-BhNDxMDh.js → NewGlobalMerchantPage-BPQYmWJ--BC-yalLq.js} +1 -1
  116. package/dist/assets/{NoDataChart-BkLCPOZ6-DmEAsi9M.js → NoDataChart-DBTNZsVI-BzKcuy7g.js} +1 -1
  117. package/dist/assets/{NoDataTable-C-orsWSF-yHb287vS.js → NoDataTable-BFlVzpML-BVC1LelS.js} +1 -1
  118. package/dist/assets/{NotFoundPage-jz8rTMJa-DgC6CHIU.js → NotFoundPage-BasDE0gN-YO01xBj8.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-CFs30Z22-QurUjUDW.js → NotificationSettingsPage-7axENLlk-Cwp9iV5B.js} +1 -1
  120. package/dist/assets/{NotificationsListConfig-BPvFpp5h-a-m6bOnC.js → NotificationsListConfig-y7FmH6TQ-DY4eb9yN.js} +1 -1
  121. package/dist/assets/{NotificationsPage-BITESfjg-upKSZa3m.js → NotificationsPage-RI6hGPlC-wlBEz8S-.js} +1 -1
  122. package/dist/assets/{OpExByVendorPage-CIaWVhkG-C-OAXFIK.js → OpExByVendorPage-CGue0TWc-gmTAlmzL.js} +1 -1
  123. package/dist/assets/{OverlayContainerPage-CU1AAMcq-3EXKmEhu.js → OverlayContainerPage-CU1AAMcq-CT-f74FY.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-IbhECxqR-RdFygmNf.js → PandLWithForecastPage-DnATiuw8-D5GN8PvN.js} +1 -1
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BFys0cfh-7KTptf4o.js → PaymentAccountSetupBillingAddressSection-Cr96MmoG-BGySQi_b.js} +1 -1
  126. package/dist/assets/{PeoplePage-Cogb6Wuv-BG2Us4L9.js → PeoplePage-8AcvEzig-BA82hEDH.js} +1 -1
  127. package/dist/assets/{PortfolioAllocationFormPage-C_NMSzqM-wKnRhIQ2.js → PortfolioAllocationFormPage-Cz8BzeZO-CRD2J1Pv.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-EDVhj1-e-ZuSCgqZx.js → PortfolioDetails-NRVc1Lc9-DjdlOeVo.js} +1 -1
  129. package/dist/assets/{ProductsCarousel-CfzrTdFH-IAVdBFFD.js → ProductsCarousel-CRrVr2Rv-DBIa_bg_.js} +1 -1
  130. package/dist/assets/{PromoBaseCards-JDelrKuJ-BevTB8Ip.js → PromoBaseCards-D-C0emey-B8JISnP7.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-Cvpg0V58-DUNtqQT0.js → QBOConnectionDialog-9YDCkzlw-BgSeu02F.js} +1 -1
  132. package/dist/assets/{QBOSetupSection-DKDJtl_2-BPctqIki.js → QBOSetupSection-rgJXipJM-BAk7UqoW.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DRa1CYuZ-pnB-5An7.js → ReimbursementApprovalRuleDetailPage-oBzjhPEJ-CkbwBD3a.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-_wqSm81c-DjgggwJh.js → ReimbursementApprovalRulesPage-C5IO5W4m-CNVfHRJy.js} +1 -1
  135. package/dist/assets/{ReimbursementDetailPage-BTvHvmBX-D3-S1jFm.js → ReimbursementDetailPage-C8DQeaua-BqrEybWY.js} +1 -1
  136. package/dist/assets/{ReimbursementPromoPage-DgPJx42_-Ca2Fb5DS.js → ReimbursementPromoPage-cWdwGvJb-Dnq1ZZxH.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-Cl348yZJ-BPE9Hoy5.js → ReimbursementSetUpPage-CjPLHA2M-D8yWitLy.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-CD-1v386-B0wtbhkt.js → ReimbursementsBulkReviewDrawerPage-CwnJAIis-DdLBhEbc.js} +1 -1
  139. package/dist/assets/{ReloadCard-BVvfO1lw-DC0Q52Hm.js → ReloadCard-Bo_mLUCB-B4O-SyDj.js} +1 -1
  140. package/dist/assets/{ReportTableViewSelector-p_eRZlsB-DNe8cwSz.js → ReportTableViewSelector-CcLxXexl-CKFr9bK3.js} +1 -1
  141. package/dist/assets/{ReportsPage-UcoYOomm-C65WxI5W.js → ReportsPage-BRqtxAbM-DAkhTPE3.js} +1 -1
  142. package/dist/assets/{RevenueChart-BW6a8XWu-Bw_jr0b6.js → RevenueChart-BMqM38-O-DArnmhOz.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-DPxC8SFc-JxntF7Iq.js → ReviewDetailsPage-BeXgVGy_-DLm6FT3b.js} +1 -1
  144. package/dist/assets/{ReviewOverlay-Bv5Irg0L-BkYNNXiY.js → ReviewOverlay-DBaDP1Pp-C71gH-ox.js} +1 -1
  145. package/dist/assets/{RoleWithToolTip-Osazfeks-DCHE9_6V.js → RoleWithToolTip-CBBWeNSt-BdFNJyHE.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-BEGBiN_c-C_TjdMkm.js → ScheduleDetailsFixedAssetsPage-w5m2s-gk-DEe2meYt.js} +1 -1
  147. package/dist/assets/{ScheduleDetailsPage-BWIeHAy7-B3J0Hrt4.js → ScheduleDetailsPage-BjCcNbAn-CdV_0MaV.js} +1 -1
  148. package/dist/assets/{ScheduleSequenceTable-CCK6C4Iy-C4gK-k4-.js → ScheduleSequenceTable-DwBjIGGI-CnLAIxTe.js} +1 -1
  149. package/dist/assets/{ScreenRoutes-D_07GGCw.js → ScreenRoutes-BTPKwJLL.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-DRbmb31r-Bq51bzJC.js → SetUpAccountSection-B5SNk0uE-Bavk2270.js} +1 -1
  151. package/dist/assets/{SetUpDefaultSection-DbtQYgwc-BVO9cmWh.js → SetUpDefaultSection-CEdPofhe-CgbVxoH_.js} +1 -1
  152. package/dist/assets/{SignIn-DDUIL7qL-C1zbknqk.js → SignIn-CDL-ObqR-6j1vOaDu.js} +1 -1
  153. package/dist/assets/{SignInScreen-xj2RG_oe.js → SignInScreen-Bp5NhlB4.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-CIPAJ1BF-CTTDJ3LM.js → SpendManagementListViewPage-CA8k5wTt-CzUHjE94.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-gimZmZnB-DEDSLFNg.js → SpendManagementPerTabPage-BuDeB-05-DxK9vSI1.js} +1 -1
  156. package/dist/assets/{SpendManagementSection-DbEnKD37-CZgqSgVX.js → SpendManagementSection-BiERXt9F-BcKf_bWA.js} +1 -1
  157. package/dist/assets/{SpendMgmtSetupAccountSection-BLE0FTOw-CKynjFMX.js → SpendMgmtSetupAccountSection-Baz3sHbZ-C9cP6DRA.js} +1 -1
  158. package/dist/assets/{StatementItem-_ivyNbtm-BMh1gnhf.js → StatementItem-BQs62QbA-DHZ9OJUY.js} +1 -1
  159. package/dist/assets/{StatementsPage-P_PaSJNK-C00Xvrzi.js → StatementsPage-C_hWVaO6-CGJMAHHq.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-CZrLZEsV-BQUFAppu.js → StatusSwitcher-BJFf2Nkh-DzsbHpKF.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-ByWS379C-BK7xaIln.js → SubTabSwitcher-BjhIngs3-DwWnoJ-f.js} +1 -1
  162. package/dist/assets/{SummaryCard-DFB5JUd1-AXpcXHjV.js → SummaryCard-BkRL0ye6-C3iSt0g0.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-Bp51h7Qf-buTVD3Fj.js → TaskManagementPage-LiP5i_NP-CiGdp52b.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-CVPfQvjp-D4TOPSSO.js → TimeRangeSwitcher-DUj6iFnl-CRs6VjII.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-Cfj1snkW-DixlMb-P.js → TimeframeSwitcher-DjhuUk0r-BnJ74328.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-Bebc4mZ3-mGDCVzBY.js → TimeframeSwitcherWithToggle-qS-VH4U7-lA8DXlzT.js} +1 -1
  167. package/dist/assets/{TopExCard-CV_d5hzX-_qQPbljz.js → TopExCard-Ds0ub5YB-DUxyKKcl.js} +1 -1
  168. package/dist/assets/{TopExDetailPage-Cq7SRFbp-MuFo1h8Y.js → TopExDetailPage-C1NZZ2fo-MEWuN1WE.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-DhjS0VRm-CfFmr-Ml.js → TransactionDetailPage-ScbXmUz9-BMbspBgq.js} +1 -1
  170. package/dist/assets/{TransactionList-DTcqsbBX-CuiZVxsz.js → TransactionList-uCQJm816-Dhs1FWmE.js} +1 -1
  171. package/dist/assets/{TransactionListBig-BGSeGI-E-CRtx_CYo.js → TransactionListBig-9_HEm5CO-BTIGh7x0.js} +1 -1
  172. package/dist/assets/{TransactionListPage-YrVNWthX-CT6iqmFB.js → TransactionListPage-1Zkephm9-D5RM5qcJ.js} +1 -1
  173. package/dist/assets/{TransactionVendorDetailPage-BeRLL6S1-QNgs3sUm.js → TransactionVendorDetailPage-Bl1XCZGJ-D2qnuKgx.js} +1 -1
  174. package/dist/assets/{TransferDrawerPage-xSWwONN8-Bi4fzk-H.js → TransferDrawerPage-DPA8KVO6-vDxijZxi.js} +1 -1
  175. package/dist/assets/{TreasuryOverviewPage-DoXpiI5l-FieLawVj.js → TreasuryOverviewPage-mPpfPA7Z-D1mzGUb9.js} +1 -1
  176. package/dist/assets/{TreasuryPromoPage-DT46komD-DRJ08iDj.js → TreasuryPromoPage-PiF6acWi-RgCgmTE_.js} +1 -1
  177. package/dist/assets/TreasurySetupPage-ta9rUN1_-C-EOT_yE.js +144 -0
  178. package/dist/assets/{TreasuryStatementsPage-Bd5jXQJ6-BGWk-1W2.js → TreasuryStatementsPage-BRE6jD-v-BFia827q.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-Bn0t319k-CzVjWu15.js → TreasuryTaxLetterPage-5oC3f6qJ-DvcLbbKX.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-sQWSirfd-B3KxIxbb.js → TreasuryTransferOrReviewPage-DEo3yKVs-DV8veNpW.js} +1 -1
  181. package/dist/assets/{TrendChart-DnngoaGI-kvneFiRf.js → TrendChart-B0NeWV-Q-DQPpbrcu.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-CSVAwWZG-B0lIYtXX.js → TrendWithTransactions-gjzB97Tt-DvmFmrcw.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-DRoVuN8B-A6chnXbs.js → UncategorizedAccountsMappingPage-DnYGTz8z-ctfOEjq4.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-gBerS5Lo-Ch-fQUrw.js → UnitIntegrationPage-CvxupJIq-CbVxZf65.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-BbGSc0rv-DT8hhHus.js → UploadAdditionalDocumentOverlay-DUmoex5M-DKbqd7SM.js} +1 -1
  186. package/dist/assets/{Vendor2FAPopup-DdTF16bh-BwGr7l3l.js → Vendor2FAPopup-CebhGkPb-CoFDd5EI.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-DppYqvS2-DEpWdj_g.js → VendorACHDetailsPage-4YGo6l5M-BHcSjCdr.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-DZanWRgZ-DyKdKPXk.js → VendorDetailPage-D06byQE2-Xq5A_i3p.js} +1 -1
  189. package/dist/assets/{VendorDomesticWireDetailsPage-CypHVGiD-B_tp4y8t.js → VendorDomesticWireDetailsPage-jRbIT9Kr-C7wYc060.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-DjVaMEC7-B7YEorVz.js → VendorFiling1099EditablePage-DxnN_R-C-B3HK2p3-.js} +1 -1
  191. package/dist/assets/{VendorFirstReviewPage-BD3qiOkE-WltMZY5K.js → VendorFirstReviewPage-aZ5f1AbI-DGtTHg2t.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-DGCD7pSj-DIdiNE3u.js → VendorInternationalWireDetailsPage-DyFkJUEt-C_U_qGRI.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-cTBSMjI1-ivh3C4r6.js → VendorInternationalWireSwiftDetailsPage-BJLjmJTG-DA4HGPWM.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-BbmjtLxL-CqzBxDbv.js → VendorsAccountsSection-CrjEjuBq-CpjgZTqK.js} +1 -1
  195. package/dist/assets/{VerifyDevice-D_2LpAmp-bxCpau_T.js → VerifyDevice-BzYrDLyF-DfdlqbjX.js} +1 -1
  196. package/dist/assets/{VideoPlayer-C19SquYF-Do1HF2Iq.js → VideoPlayer-DlAz8P4k-C4veLQbD.js} +1 -1
  197. package/dist/assets/{VideoPopup-BYi-pZ8z-pFqmhIpM.js → VideoPopup-1jecjRVb-yRogRIhj.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-otaNkmPb-DA-wH8k_.js → WarningsDrawerPage-t0t6HBEt-C64L8EJ4.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-CaaJpWIC-DYCoqSob.js → ZeniAccountDetailPage-DRMYlE37-mj-Ao40f.js} +1 -1
  200. package/dist/assets/{ZeniAccountListViewPage-DrluYQZ2-CxSUansk.js → ZeniAccountListViewPage-DhYgrHPh-B_eszj6M.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-Ctkjc2V5-R8x4dgr4.js → ZeniAccountNavBarPieces-CXK-KO3W-Cl1IFEuu.js} +1 -1
  202. package/dist/assets/{ZeniAccountPromoPage-9aI8Hfz9-DhpvFG5i.js → ZeniAccountPromoPage-CoxXYrbJ-CkTCS1ow.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-gCHBWfoD-BrirFpg5.js → ZeniAccountSetupPage-B4G8vJle-DXZSQrSd.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-DEwETqZx-Xh1OAm4U.js → ZeniCopyright-BurjfYg0-0KFpmyXb.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-DwTQpL8f-twAvj5wm.js → ZeniTransferAmountSlider--Ygv3Lhx-XJXffKpg.js} +1 -1
  206. package/dist/assets/{analyticsHelper-CZsBsQ5Y-C4eAlMZk.js → analyticsHelper-C3CI4FAW-DkHwgGlB.js} +1 -1
  207. package/dist/assets/{analyticsHelper-BQUL7_j1.js → analyticsHelper-CzfkZ7Am.js} +1 -1
  208. package/dist/assets/{chartTypes-v6rDvpfo-CwEf2KU_.js → chartTypes-WMAN0IBH-BKlLTV6L.js} +1 -1
  209. package/dist/assets/{commonDimensions-fd7W42ZQ-IMrtE93m.js → commonDimensions-hj9DIV8r-CXuojSfc.js} +1 -1
  210. package/dist/assets/{detailCommon-BmFZfzJ0-DFRzzxCh.js → detailCommon-DGcQj4tn-DVKW2YFI.js} +1 -1
  211. package/dist/assets/{downloadPdf-Dq-pmQ1D-BmXHYOaz.js → downloadPdf-B5Oarutk-DnSwsp-T.js} +1 -1
  212. package/dist/assets/{index-DpnPgK1j.js → index-CVlrVcg1.js} +35 -35
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-Opz0Hl1o-U1qR-z5m.js → mapLoadingInProgressToTreeNode-dXbGenu--Bpd1eMMP.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Buw1b32D-XTeNc9_9.js → mapSectionWithAcOnlyToTreeNode-BhMuMA7u-D1AWGiQl.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-DNzI-qNX-D022s8DR.js → mapSpacerToTreeNode-BetfRxYq-ACmWB_Gl.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-qpLQhbq5-D-lJsXzi.js → mapTimeframeBalancesToTreeNode-C4HoGcMZ-BeG3Gb7x.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-9eZANFDj-D4aGK3LV.js → mapTimeframeBalancesToTreeNode-tSFoZ7PC-DAbiO9QW.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-BmWHdrva-NsxlU_Y4.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CSYTwkbz-on2wMQVM.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-CpC1h4-g-B2F9qpyN.js → toCOABalancesWithID-D4-TzjBp-CbGAAR4M.js} +1 -1
  220. package/dist/assets/{toChartData-IftQ0lN3-abBzju1Z.js → toChartData-Bp_yJ7Xu-BkoIWr8s.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-jY8WJQsk-RT6XAcVf.js → treasuryColorHelper-D6dEtjUK-DYNOj4g5.js} +1 -1
  222. package/dist/assets/{uploadAttachment-0jQBH4Wu-SEjTDxUD.js → uploadAttachment-DTxp6Nd5-DD9pA2I5.js} +1 -1
  223. package/dist/assets/{uploadReceipts-9DTOr0BG-CSOfXWAP.js → uploadReceipts-9DTOr0BG-B15rGeOY.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +3 -3
  226. package/dist/assets/BusinessVerificationPage-ueN5uvGI-CFi0yTlP.js +0 -138
  227. package/dist/assets/CustomerOnboardingContainerPage-DbMON4x7-BriViCwh.js +0 -1
  228. package/dist/assets/TreasurySetupPage-CjqyWJWl-YhuDOKTA.js +0 -144
@@ -1,4 +1,4 @@
1
- import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP as Yn,F as Gn,y as u,j as t,l as E,fk as st,fl as Hn,o as a,fm as Xn,fn as Jn,aM as b,fo as Qn,aN as Ae,fp as qn,bF as dt,bs as ct,dN as pt,cD as mt,cE as ut,cF as yt,gv as ea,gw as ta,gx as na,gy as aa,fu as I,fv as $,fw as A,gz as k,ft as ia,C as ht,h as le,fx as Ot,fy as la,fz as oa,fA as ra,gA as sa,gB as da,aQ as ca,ap as bt,c5 as Te,gC as pa,gD as O,u as r,aj as ma,cg as ua,gE as ya,A as ha,gF as ba,gG as gt,fE as xt,O as ga,dh as xa,cw as fa,b6 as wa,b8 as Ta,s as va,c7 as Lt,gH as Da,ai as Ft,aY as ja,b4 as Ia,bx as $a,f2 as Aa,am as ka}from"./index-DpnPgK1j.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Sa}from"./liveblocks-8ht9CoL5.js";import{o as Ca,t as Pa}from"./LowBalancePopup-BoD3u5NM-PiOYTtaJ.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";const Ba=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"})))),za={formTitle:new ga("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:Ra,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:Oa},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:La}}}}=Gn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Be,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Oe=_n(),[nn,U]=p.useState(!1),[Le,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:q}=p.useContext(ln),[on,Y]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Kn(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{q(y),Y(!1)},[q,Y]);p.useEffect(()=>{me?.threadId!=null&&G.length>0&&!P&&(q(me.threadId),_e(null))},[me,G,P,q,_e]),Un({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ue]=p.useState(!1),[Ye,Ge]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Xe=Yn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),J())},[e,J,Be]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Xe,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,S=Fa(D,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Ia,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",L?.description??"",B?["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},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=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):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
1
+ import{q as Fn,ax as En,b as _n,gr as Wn,gs as Zn,gt as Kn,gu as Vn,cr as Un,aP as Yn,F as Gn,y as u,j as t,l as E,fk as st,fl as Hn,o as a,fm as Xn,fn as Jn,aM as b,fo as Qn,aN as Ae,fp as qn,bF as dt,bs as ct,dN as pt,cD as mt,cE as ut,cF as yt,gv as ea,gw as ta,gx as na,gy as aa,fu as I,fv as $,fw as A,gz as k,ft as ia,C as ht,h as le,fx as Ot,fy as la,fz as oa,fA as ra,gA as sa,gB as da,aQ as ca,ap as bt,c5 as Te,gC as pa,gD as O,u as r,aj as ma,cg as ua,gE as ya,A as ha,gF as ba,gG as gt,fE as xt,O as ga,dh as xa,cw as fa,b6 as wa,b8 as Ta,s as va,c7 as Lt,gH as Da,ai as Ft,aY as ja,b4 as Ia,bx as $a,f2 as Aa,am as ka}from"./index-CVlrVcg1.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Sa}from"./liveblocks-8ht9CoL5.js";import{o as Ca,t as Pa}from"./LowBalancePopup-BkgfL9m6-BKolyB9M.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./crypto-cQYYQPTZ.js";const Ba=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"})))),za={formTitle:new ga("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:Ra,common:{noText:C,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:Oa},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:La}}}}=Gn.getLocalizedStrings(),ve=Ra.visual.MMMDCommaYYYYformat,Ai=({billDetails:e,currentTenant:x,showApproveRejectBtns:g,isShowDeletedBillsEnabled:K,signedInUser:oe,isAdmin:_t,isRealTimeApprovalEnabled:Wt,isInternationalPaymentShaVsOurEnabled:Zt,hasZeniAssistAccess:Kt,analytics:M,showMarkAsPaidButtonToCreator:V,showMarkAsPaidButtonToApprover:Se,isBillPayCommentingEnabled:Ce,isZeniUser:Vt,showBackButton:Pe=!0,isDetectInsufficientFundsEnabled:Ut,redirectToEditableBillScreen:Yt,redirectToBillsScreen:J,discardBillDetailsFromLocalStore:Be,deleteBill:Gt,cancelAndDeleteBill:ze,approveOrRejectBill:Re,onAddNewRule:Ht,onAttachmentClick:Me,saveBillDetails:Xt,discardOutsideZeniPaymentData:Jt,onBackClick:Ne,updateEditRealTimeApproverClicked:Qt,onSaveRealTimeApprovals:qt,onRetryPaymentClick:en,onRefundPaymentClick:tn})=>{const l=Fn(),o=En(),Oe=_n(),[nn,U]=p.useState(!1),[Le,re]=p.useState(!1),[se,de]=p.useState(!1),[Fe,ce]=p.useState(!1),[an,pe]=p.useState(!1),[Ee,Q]=p.useState(!1),h=e.transactionDetails?.id,ln=Vt?Wn:Zn,{requestToOpenThread:me,setRequestToOpenThread:_e,setOpenThread:q}=p.useContext(ln),[on,Y]=p.useState(!1),T={application:"dashboard",companyId:o.currentTenant?.companyId,tab:"bill",entityId:h,isGlobalComment:!1},{threads:G,isLoading:P}=Kn(T,"both",!1),f=Ce&&h!=null,We=p.useMemo(()=>h==null?[]:G.filter(c=>c.resolved===!1&&!c.id.includes(Vn)),[G,h]).length,v=`dashboard_${o.currentTenant?.companyId}`,rn=p.useCallback((c,y)=>{q(y),Y(!1)},[q,Y]);p.useEffect(()=>{me?.threadId!=null&&G.length>0&&!P&&(q(me.threadId),_e(null))},[me,G,P,q,_e]),Un({componentName:"bill.details"});const[N,ee]=p.useState({title:"",description:"",primaryButtonText:"",secondaryButtonText:""}),[Ze,Ke]=p.useState("approved"),[sn,Ve]=p.useState(!1),[dn,Ue]=p.useState(!1),[Ye,Ge]=p.useState(!1),He=()=>Ve(!1),cn=()=>Ve(!0),Xe=Yn(e.zeniAssist?.refundStatus.fetchState),te=p.useCallback(()=>{J()},[J]);p.useEffect(()=>{(e.deleteStatus.fetchState==="Completed"||e.approvalUpdateStatus.fetchState==="Completed"||e.cancelAndDeleteStatus.fetchState==="Completed"||e.billSaveStatus==="Completed")&&(Be(),J())},[e,J,Be]),p.useEffect(()=>{Xe==="In-Progress"&&(e.zeniAssist?.refundStatus.fetchState==="Completed"||e.zeniAssist?.refundStatus.fetchState==="Error")&&(de(!1),te())},[Xe,e.zeniAssist?.refundStatus,te]);const w=e.transactionDetails?.billPayInfo.stage,ne=e.transactionDetails?.billPayInfo.billStatus,H=e.transactionDetails?.billPayInfo.billPaymentStatus,pn=e.transactionDetails?.billPayInfo.billPaymentRefundStatus,ue=w?.code==="paid",D=ue?w:ne?.code=="approved"&&H?.code?H:ne,S=Fa(D,e.transactionDetails),L=e.transactionDetails?.billPayInfo.isRefundInitiated===!0?pn:H?.code!=null&&(ne?.code=="approved"||H.code==="mark_as_paid")?H:ne,ye=e.transactionDetails?.vendor?.name,B=e.isRecurring,Je=()=>{e.transactionDetails?.id!=null&&Yt(e.transactionDetails?.id??"")},mn=()=>{ee({title:B?n.recurringBill.deleteRecurringTitle:n.deleteBillTitle,description:B?n.recurringBill.deleteRecurringAlertText:n.deleteAlertDescription,primaryButtonText:n.delete,secondaryButtonText:n.cancel}),U(!0)},un=()=>{ee({title:n.cancelBillTitle,description:n.cancelAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},yn=()=>{ee({title:B?n.recurringBill.cancelAndDeleteRecurringTitle:n.cancelAndDeleteBillTitle,description:B?n.recurringBill.cancelAndDeleteRecurringAlertText:n.cancelAndDeleteAlertDescription,primaryButtonText:n.yes,secondaryButtonText:n.no}),U(!0)},hn=()=>{M.trackRefundClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),ee({title:n.zeniAssist.refundTitle,description:n.zeniAssist.refundDescription,primaryButtonText:n.zeniAssist.proceed,secondaryButtonText:n.cancel}),de(!0)},bn={onOkClick:()=>{U(!1),N.primaryButtonText===n.delete?Gt?.(e.isRecurring):N.title===n.cancelBillTitle?ze?.(e.isRecurring):N.title===n.cancelAndDeleteBillTitle||N.title===n.recurringBill.cancelAndDeleteRecurringTitle?ze?.(e.isRecurring,!0):N.primaryButtonText===n.zeniAssist.proceed&&(M.trackRefundConfirmClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),tn())},onCancelClick:()=>{U(!1),de(!1)}},gn={onOkClick:c=>{pe(!1),Re({billId:e.transactionDetails?.id??"",type:"rejected",description:c})},onCancelClick:()=>{pe(!1)}},xn=()=>{const[c]=ja("ZeniAssist");return c!=null?t.jsx(Ia,{"data-testid":b("bill-details-zeni-assist-icon",h),onClick:()=>{ce(!Fe),M.trackZeniAssistClick(D?.code??"",w?.code??"",L?.description??"",B?["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},ae={invoiceNumber:e.transactionDetails?.documentId??"",invoiceDate:e.transactionDetails?.date,billDueDate:e.transactionDetails?.dueDate,memo:e.transactionDetails?.memo,currencyCode:e.vendorCurrency??ft.currencyCode},he=e.transactionDetails?.lines?.map((c,y)=>{const z=c;return{lineIndex:y,lineId:z.id,account:z.account,class:z.class,amount:z.amount.amount,billable:z.billable,customer:z.customer,lineDescription:z.lineDescription,recipientAmount:z.recipientAmount?.amount}})??[],fn=e.transactionDetails?.recipientTotalAmount.amount??0,be=e.transactionDetails?.recipientTotalAmount,s={paymentType:e.paymentMethodType,paymentDate:e.transactionDetails?.billPayInfo.paymentDate,internationalTransferFeeBearerPaymentMethod:e.transactionDetails?.billPayInfo.internationalTransferFeeBearerPaymentMethod,paymentToBankAccount:e.bankAccount,paymentToPI:e.paymentInstrument},j=m.labelWidth.value(l),wn=c=>c==="billable"||c==="has_been_billed"?n.yes:n.no,Tn=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):"",vn=s.paymentToBankAccount?.bankAccountName!=null&&s.paymentToBankAccount?.bankAccountName!=""?s.paymentToBankAccount?.bankAccountName:`${e.transactionDetails?.vendor?.name} - ${s.paymentToBankAccount?.bankName} XXXX${Tn}`,Dn=e.transactionDetails?.billPayInfo?.isCollectToAccountInfoFromVendorContact?t.jsxs(t.Fragment,{children:[`${n.magicLink.collectFrom} ${e.transactionDetails?.billPayInfo?.toAccountVendorEmail}`,t.jsx(ui,{windowSize:l,children:t.jsx(mi,{})})]}):void 0,Qe=e.transactionDetails?.date!=null&&e.transactionDetails.bookCloseDate!=null&&e.transactionDetails.date.isBefore(e.transactionDetails.bookCloseDate),jn=()=>`${Tt.achDetails.bankRoutingNumber} ${s?.paymentToBankAccount?.bankRoutingNumberAch}, ${s?.paymentToBankAccount?.bankName}
2
2
  ${Tt.achDetails.bankAccountNumber} ${s?.paymentToBankAccount?.bankAccountNumber}`,ie=e.transactionDetails?.billPayInfo!=null?E.getActualPaymentDate(e.transactionDetails?.billPayInfo):void 0,In=ie!=null&&e.paymentMethodType?.maxPeriod?.value!=null?E.zeniDate(E.getNextNthWorkingDay(ie?.toDate(),[0,6],e.paymentMethodType?.maxPeriod.value).toDateString()):void 0,qe=e.transactionDetails?.billPayInfo.expectedDepositDate??In,et=st(s?.paymentType?.method??"").replace("Same Day",""),$n=(s?.paymentToBankAccount!=null||s?.paymentToPI)!=null?n.addedByZeni:e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact?t.jsx(Hn,{paymentTypeLabel:et,onClick:cn,style:{marginTop:`${l==="small"?a.sp2:a.sp0}`}}):void 0,An=()=>s?.paymentToBankAccount==null&&s?.paymentToPI==null&&s?.paymentType?.method!=null&&e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact&&e.transactionDetails?.billPayInfo.paymentDate!=null?t.jsx(Da,{paymentType:s?.paymentType?.method,paymentDate:e.transactionDetails?.billPayInfo.paymentDate}):null,tt=e.transactionDetails?.lines?.some(c=>{const y=c.account;return y?.isDeleted===!0&&y?.isBillEditableCoaAccountType===!1})??!1,ge=!(D?.code==="processing"||e.transactionDetails?.billPayInfo.isRefundInitiated===!0||e.transactionDetails?.billPayInfo.isRefundComplete===!0||(w?.code==="scheduled"||w?.code==="pending_approval")&&tt),nt=!((w?.code==="scheduled"||w?.code==="pending_approval")&&tt),xe=e.zeniAssist?.isEligibleForRetryIBT===!0||e.zeniAssist?.isEligibleForRetryOBP===!0,fe=e.zeniAssist?.isEligibleForRefund===!0,kn=e?.transactionDetails?.billPayInfo.billPaymentMethodType.code==="wire"&&e?.transactionDetails?.billPayInfo.billPaymentMethodType.subCode==="international",Sn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||fe)&&kn===!1,we=xe||fe,Cn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Cn&&(!Qe||D?.code==="processing"&&!B),at=!Qe,it=["small","medium-compact","medium-regular"].includes(l),X=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),F=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!X&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||g&&F&&Se),zn=c=>{M.trackBillPayMarkAsPaidSubmit(c.paymentMode??"other",w?.code??"",D?.code??""),Xt(!0,Ye,c)},lt=()=>{Ue(!0),M.trackBillPayMarkAsPaid(w?.code??"",D?.code??"")},Rn=()=>{Ge(!0),lt()},Mn=()=>{Jt(),Ue(!1),Ye&&Ge(!1)},Nn=p.useMemo(()=>({companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,entityType:"bill.details",entityId:h??d,isGlobalComment:!1,application:"dashboard",tab:"bill",url:window.location.href}),[o.currentTenant,h]),W=Ut&&e.transactionDetails?.totalAmountWithFeesInUSD!=null&&w?.code!=="paid"&&D?.code!=="failed"&&D?.code!=="processing"&&D?.code!=="cancelled"&&D?.code!=="returned"&&D?.code!=="rejected"?Xn(e.transactionDetails?.totalAmountWithFeesInUSD,e.withdrawFrom,s.paymentDate):void 0,ot=()=>{Ke("approved"),Ee===!0&&Q(!1),W!=null&&M.trackLowBalanceAccountApprove(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),Re({billId:e.transactionDetails?.id??"",type:"approved"})},On=()=>{Ke("rejected"),W!=null&&M.trackLowBalanceAccountReject(w?.code??"",e.transactionDetails?.billPayInfo.billPaymentStatus.code??"",e.isRecurring?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??"",xt(o.loggedInUser),e.withdrawFrom?.accType==="depositAccount"?"ZA":"External Account"),pe(!0)},rt=p.useRef(null);return t.jsxs(qa,{windowSize:l,ref:rt,children:[t.jsx(Jn,{anchor:"right",open:sn,onClose:He,transitionDuration:250,"data-testid":b("vendor-email-preview-drawer"),children:t.jsx(Qn,{companyName:qn(x.company?.companyInfo),vendor:e.transactionDetails?.vendor?.name,paymentDate:s.paymentDate?.format(ve)??"",paymentType:et,amount:Ae("0,0.[00]",be),isInvoiceAttached:!!e.transactionDetails?.attachments?.length,onClose:He})}),t.jsxs(ai,{windowSize:l,children:[t.jsx(bi,{windowSize:l,children:l==="small"?t.jsx(dt,{"data-testid":b("bill-detail-nav-bar-mobile"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),backgroundColor:Oe.colors.grey4,rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-small-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-small-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx($t,{})}),source:"BillDetailPage"}):t.jsx(dt,{"data-testid":b("bill-detail-nav-bar"),title:t.jsxs(t.Fragment,{children:[ye,e.isRecurring?t.jsx($e,{width:a.sp4,height:a.sp4}):null]}),rightSideComponent:t.jsxs(St,{windowSize:l,children:[f?t.jsxs(Mt,{isDisabled:P,"data-testid":b("bill-comment-button"),onClick:P?()=>null:c=>{c.preventDefault(),c.stopPropagation(),Y(!0),M.trackCommentActivity("bill","clicked",o.currentTenant?.companyName??"",o.controllersList.controllers.map(y=>pt(y)),void 0,void 0,"page icon")},children:[t.jsx(ct,{count:P?void 0:We,isLoading:P,style:{left:"12px"}}),t.jsx(Nt,{})]}):null,t.jsx(Ct,{onClick:()=>te(),"data-testid":b("bill-detail-nav-bar-close-button"),children:t.jsx(kt,{})})]}),leftSideComponent:t.jsx(At,{windowSize:l,onClick:Ne,"data-testid":b("bill-detail-nav-bar-back-button"),style:{visibility:`${Pe?"visible":"hidden"}`},children:t.jsx($t,{})}),enableTitleOnScroll:!0,scrollableContent:rt,source:"BillDetailPage"})}),t.jsxs(ii,{windowSize:l,children:[Ee?t.jsx(Ca,{withdrawFrom:e.withdrawFrom,paymentDate:e?.transactionDetails?.billPayInfo.paymentDate,onOkClick:ot,onCancelClick:()=>{Q(!1),Je()},onClickAway:()=>{Q(!1)}}):null,dn?t.jsx(Pa,{onCancel:Mn,onProceedForMarkAsPaid:zn,saveDetailsFetchState:e.billSaveStatus,paymentData:e.outsideZeniPaymentInfo}):null,nn||se?t.jsx(mt,{titleComponent:t.jsx(yt,{children:N.title}),descriptionComponent:t.jsx(ut,{children:N.description}),primaryButtonText:N.primaryButtonText,proceedButtonVariant:se?"primary":"danger",secondaryButtonText:N.secondaryButtonText,action:bn,isEditPopup:!0,isLoading:e.zeniAssist?.refundStatus.fetchState==="In-Progress",children:se?Ea(l,e):null}):null,an?t.jsx(mt,{titleComponent:t.jsx(yt,{children:n.rejectBillTitlePrefix+" "+(e.transactionDetails?.vendor?.name!=null?e.transactionDetails.vendor.name:"")}),descriptionComponent:t.jsx(ut,{children:n.rejectBillDescription}),primaryButtonText:n.send,secondaryButtonText:n.cancel,action:gn,isEditPopup:!0,isNotesIncluded:!0,notesPlaceholder:n.rejectBillReasonPlaceholder}):null,l!=="small"||S?t.jsxs(oi,{windowSize:l,children:[l!=="small"?t.jsxs(ri,{windowSize:l,children:[ye,e.isRecurring?t.jsx($e,{height:a.sp5,width:a.sp5}):null]}):null,K&&S!=null&&S.code==="deleted"?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):S?.value===ke.tabsById.overdue?t.jsx(Pt,{color:S.color,bgColor:S.bgColor,borderColor:S.borderColor,children:S.value}):null]}):null,L!=null&&L.code?l==="small"?t.jsx(ea,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:L,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):null,Za(X,e,W),t.jsx(na,{sectionId:aa,currentVendorOption:{defaultOptions:[]},billId:h,isBillPayCommentingEnabled:Ce,isBillPaid:ue,disableVendorActions:!0,vendor:e.transactionDetails?.vendor,prevBills:e.previousBills,onAttachmentClick:Me,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(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceNumber"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceNumber")}`},children:t.jsx(k,{label:{label:n.invoiceNumber,width:j},text:ae.invoiceNumber??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"invoiceDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("invoiceDate")}`},children:t.jsx(k,{label:{label:n.invoiceDate,width:j},text:ae.invoiceDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"billDueDate"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billDueDate")}`},children:t.jsx(k,{label:{label:n.billDueDate,width:j},text:ae.billDueDate?.format(ve)??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"memo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("memo")}`},children:t.jsx(k,{label:{label:n.memo,width:j},text:ae.memo??C,style:{width:"auto"}})})]})]}),t.jsxs(je,{children:[t.jsx(li,{windowSize:l,children:t.jsx(Ie,{children:n.lineItemsTitle})}),he.length>0?he.map((c,y)=>{const z=e?.transactionDetails?.lines?.find(Ln=>Ln.id===c.lineId)?.recipientAmount;return t.jsxs(ei,{children:[he.length>1?t.jsx(ti,{windowSize:l,children:t.jsx(ni,{windowSize:l,children:`${n.line} # ${y+1}`})}):null,t.jsxs(De,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.recipientAmount`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recipientAmount",y)}`},children:t.jsx(k,{label:{label:n.amount,width:j},text:z!=null?Ae("0,0[.]00",z):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.lineDescription`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("lineDescription",y)}`},children:t.jsx(k,{label:{label:n.description,width:j},text:c.lineDescription??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.account`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("account",y)}`},children:t.jsx(k,{label:{label:n.category,width:j},text:c.account?.accountName??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.class`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("class",y)}`},children:t.jsx(k,{label:{label:n.class,width:j},text:c.class?.className??C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.billable`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("billable",y)}`},children:t.jsx(k,{label:{label:n.billable,width:j},text:c.billable!=null?wn(c.billable):C,style:{width:"auto"}})}),t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:`${y}.customer`}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("customer",y)}`},children:t.jsx(k,{label:{label:n.customer,width:j},text:c.customer?.name??C,style:{width:"auto"}})})]})]},y)}):null]}),t.jsxs(si,{windowSize:l,children:[t.jsx(di,{children:n.total}),t.jsx(ci,{children:be!=null?t.jsx(ia,{amount:be,integerStyles:ht.h6Medium.cssObject,decimalStyles:ht.standardMedium.cssObject}):C})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[F?null:t.jsxs(t.Fragment,{children:[t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"withdrawFrom"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("withdrawFrom")}`},children:t.jsx(k,{label:{label:n.withdrawFrom,width:j},text:e.withdrawFrom!=null?Ot(e.withdrawFrom,l):d,style:{width:"auto"},additionalInfoLabelStyles:{textAlign:"right",paddingRight:m.infoLabelPaddingRight.valuePx(l),marginTop:m.infoLabelMarginTop.valuePx(l),color:le.brandColorGoldDark},additionalInfoLabel:W!=null&&w?.code==="pending_approval"?Et.addMoney:W})}),t.jsx(R,{})]}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentType")}`},children:t.jsx(k,{additionalInfoLabel:s.paymentType?.method!=null&&s.paymentType.method.includes(E.NEW_INTERNATIONAL_METHOD_SUBTEXT)&&Zt&&s.internationalTransferFeeBearerPaymentMethod!=null?t.jsx(Va,{children:la(s.internationalTransferFeeBearerPaymentMethod)}):void 0,label:{label:n.paymentMethod,width:j},text:F&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),F?null:t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"paymentTo"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("paymentTo")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentTo,width:j},text:s.paymentToBankAccount!=null?vn:s.paymentToPI!=null?s.paymentToPI.displayText:Dn,style:{width:"auto"},showEyeIcon:s.paymentToBankAccount!=null&&!!s.paymentType?.method?.includes("ach"),showAdditionalInfoLabel:!!e.transactionDetails?.billPayInfo.isCollectToAccountInfoFromVendorContact||s.paymentType?.method?.includes("ach"),tooltipText:jn(),additionalInfoLabel:t.jsx(Ka,{children:$n})}),An()]})})]}),F||e.isRecurring?t.jsxs(t.Fragment,{children:[t.jsx(R,{}),t.jsx(I,{isThreadAllowed:f,entityId:h,dashboardTabKey:A({type:"details",key:"recurringPaymentType"}),roomId:v,companyId:o.currentTenant?.companyId??d,companyName:o.currentTenant?.companyName??d,dashboardOptionType:"bill",filterMetaData:{...T,entityType:`bill.details.${$("recurringPaymentType")}`},children:t.jsxs(t.Fragment,{children:[t.jsx(k,{label:{label:n.paymentType,width:j},labelStyles:{marginRight:m.labelMarginRight.valuePx(l)},style:{width:"auto"},text:ra(e.isRecurring,F,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(l,e.isRecurring,F,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(yi,{style:{paddingLeft:m.recurringSchedulePaddingLeft.valuePx(l)},children:t.jsx(sa,{onAttachmentClick:Me,currencySymbol:e.transactionDetails?.recipientTotalAmount.currencySymbol??ft.currencySymbol,recurringBillInstances:e.recurringBillInstances})}):null]})})]}):null]})]}),e.transactionDetails&&e.transactionDetails.id&&t.jsx(da,{amount:fn,activities:e.billActivities,stage:w?.code??"draft",onAddNewRule:Ht,entity:"bill_pay",realTimeApproval:{allApprovers:e.filteredApprovers,filteredAttributes:e.filteredAttributes,isRealTimeApproverEditMode:e.realTimeApproval.isEditMode,realTimeApprovalSaveStatus:{fetchState:e.realTimeApproval.fetchState,error:e.realTimeApproval.error},approvalListFetchState:e.approverListFetchState.fetchState,allAccountingClass:e.allAccountingClasses,vendorOwnerId:e.vendorOwnerId??"",isAdmin:_t,signedInUserId:oe?.userId,showRealTimeApproval:Wt,entityApprovalId:e.billActivities[0]?.entityApprovalId??e.transactionDetails.entityApprovalId,updateEditMode:Qt,onSaveRealTimeApprovals:qt},historicActivities:e.billHistory.activities}),t.jsx(pi,{})]}),e.transactionDetails?.vendor!=null&&!ue&&!e.transactionDetails.isDeleted?t.jsx(ca,{separatorStyle:{marginRight:a.sp4},showPrimaryButton:V||g,showCancel:!V&&g,cancelBtn:{label:it?n.buttons.reject:n.buttons.rejectBill,isLoading:Ze==="rejected"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:On,style:{width:m.footerButtonWidth.value(l)},reverseSpinnerColor:!1},primaryBtn:{label:_a(V,it),isLoading:Ze==="approved"&&e.approvalUpdateStatus.fetchState==="In-Progress",onClick:V?lt:()=>{W!=null?Q(!0):ot()},isDisabled:e.billSaveStatus==="In-Progress"||e.approvalUpdateStatus.fetchState==="In-Progress"||e.realTimeApproval.isEditMode===!0,style:{width:V?"auto":m.footerButtonWidth.value(l)}},rightSideComponent:t.jsx(Ua,{children:t.jsxs(Qa,{windowSize:l,children:[!X&&Le?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-container"),children:[_!=="processing"&&nt?t.jsx(Z,{onClick:mn,"data-testid":b("delete-bill-action-item"),children:n.buttons.deleteBill}):null,_==="processing"&&!B?t.jsx(Z,{onClick:un,"data-testid":b("cancel-bill-action-item"),children:n.buttons.cancel}):null,_==="processing"&&at?t.jsx(Z,{onClick:yn,"data-testid":b("cancel-and-delete-bill-action-item"),children:n.buttons.cancelAndDelete}):null,g&&F&&Se?t.jsx(Z,{onClick:Rn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Fe?t.jsx(bt,{onClickAway:()=>{re(!1),ce(!1)},children:t.jsxs(It,{windowSize:l,"data-testid":b("bill-actions-with-zeni-assist-container"),children:[xe?t.jsx(Z,{onClick:()=>{M.trackRetryClick(D?.code??"",w?.code??"",L?.description??"",B?["Recurring"]:["One-Time"],e.transactionDetails?.documentId??""),en()},"data-testid":b("retry-bill-action-item"),children:n.buttons.retry}):null,fe?t.jsx(Z,{onClick:hn,"data-testid":b("refund-bill-action-item"),children:n.buttons.refund}):null]})}):null,t.jsxs(Ja,{windowSize:l,children:[Sn===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:we?n.zeniAssist.tooltip:n.zeniAssist.connectToTeamTooltip,placement:"top",maxWidth:"267px",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:we,"data-testid":b("other-actions-icon-container"),children:we?t.jsx(xn,{}):t.jsx(Ga,{})})}):null,!X&&ge===!0?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Oa,placement:"top",children:t.jsx(Xa,{onClick:Je,"data-testid":b("edit-bill-icon-container"),children:t.jsx(Ha,{})})}):null,!X&&Pn===!0&&Bn?t.jsx(Te,{enterDelay:600,style:{color:le.heroDark,padding:`2px ${a.sp2}`},display:"flex",title:Na,placement:"top",children:t.jsx(jt,{windowSize:l,showEditIcon:ge,isIconClickable:!0,"data-testid":b("more-details-icon-container"),children:t.jsx(Ya,{onClick:()=>re(!Le)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Sa,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:La,threads:G,filter:T,autoExpand:!0,autoFocus:!1,isLoading:P,textOverrides:{composerPlaceholder:vt.addANewComment,replyComposerPlaceholder:vt.replyAComment,threadResolve:Dt.resolveComment,threadUnResolve:Dt.unResolveComment},threadMetadata:Nn,onThreadClick:rn,onCloseAllThreadsDrawer:()=>Y(!1),drawerSectionStyle:{width:l==="small"?"100%":"400px",boxSizing:l==="small"?"border-box":"content-box",padding:`${a.sp0} ${m.drawerSectionPaddingLeftRight.valuePx(l)}`,backgroundColor:Oe.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Fa=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:ke.tabsById.deleted,color:O.deleted.color,bgColor:O.deleted.bgColor,borderColor:O.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.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[g].color,bgColor:O[g].bgColor,borderColor:O[g].borderColor}},Ea=(e,x)=>{const g=x.transactionDetails?.recipientTotalAmount;return t.jsxs(hi,{windowSize:e,children:[t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.accountNumber}),t.jsx(Rt,{children:x.withdrawFrom!=null?Ot(x.withdrawFrom,e):d})]}),t.jsxs(Bt,{windowSize:e,children:[t.jsx(zt,{children:n.zeniAssist.amount}),t.jsx(Rt,{children:g!=null?Ae("0,0[.]00",g):C})]})]})},_a=(e,x)=>e?n.paymentOutsideZeni.markAsPaid:x?n.buttons.approve:n.buttons.approveBill,Wa=e=>{const x=e.paymentMode,g=n.paymentOutsideZeni.offline;if(x==null||x==="other")return g;const K=n.paymentOutsideZeni.paymentModeOptions.find(oe=>oe.value===x)?.label;return`${g} ${Ma} ${K}`},Za=(e,x,g)=>{if(e)return t.jsx(gt,{variant:"warning",style:{marginTop:a.sp5,marginBottom:a.sp3},title:wt.duplicateWarning.title,description:wt.duplicateWarning.description});if(g!=null){const K=`${x.withdrawFrom?.label??""} ${x.withdrawFrom?.maskedAccountNumber??""}`;return t.jsx(gt,{variant:"low-balance",style:{marginTop:a.sp2,marginBottom:a.sp3},title:`${Et.lowBalanceIn.replace("__account__",K)}`,description:g.replace("Low balance! ","")})}else return null},Ka=i.div``,Va=i.div``,Ua=i.div`
3
3
  display: flex;
4
4
  justify-content: flex-end;
@@ -1,4 +1,4 @@
1
- import{y as z,u as U,q as O,F as L,aa as M,aP as W,j as o,aJ as G,cS as J,bF as Q,ad as X,aQ as Z,o as c}from"./index-DpnPgK1j.js";import{b as R,n as h}from"./vendor-Bs1fkIUX.js";import{b as H,f as K,l as j,o as D}from"./FollowStepsSection-DL-HmGt4-C9a7p1zc.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(U[2],U[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:F,onSaveRuleSuccess:A}){const P=O(),a=L.getLocalizedStrings().commonSetUp.approval,I=L.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:B}=x,{allApprovalRules:p,allAccountingClasses:_,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 k=v.handleSubmit(()=>{F()}),q=async(i,d)=>{r(d)};return R.useEffect(()=>{const i=v.watch((d,{name:$})=>{if($!=null&&d!=null){const V=G(d);J(()=>q($,V))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Q,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(X,{...v,children:o.jsx("form",{id:N(C),onSubmit:k,children:o.jsxs(oe,{children:[o.jsx(H,{label:{label:S?I.amountPerBillGreaterLabel:I.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-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(K,{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:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(Z,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(P)},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),D(e.allAttributes),D(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:j},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
1
+ import{y as z,u as U,q as O,F as L,aa as M,aP as W,j as o,aJ as G,cS as J,bF as Q,ad as X,aQ as Z,o as c}from"./index-CVlrVcg1.js";import{b as R,n as h}from"./vendor-Bs1fkIUX.js";import{b as H,f as K,l as j,o as D}from"./FollowStepsSection-DYyRp5PN-CeZ5yfyW.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const C="billPayApprovalRuleDetailPage",T="lowerBound",E="upperBound",y="steps",Y={footerPadding:new z(U[2],U[3])};function ve({localData:e,approvalUpdateActionType:t,onBackClick:l,onApprovalRuleDataUpdated:r,onResetClick:s,isLowerBoundDisabled:n=!1,isUpperBoundDisabled:b=!0,hideUpperBoundField:S=!1,onSaveRuleClick:F,onSaveRuleSuccess:A}){const P=O(),a=L.getLocalizedStrings().commonSetUp.approval,I=L.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:B}=x,{allApprovalRules:p,allAccountingClasses:_,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 k=v.handleSubmit(()=>{F()}),q=async(i,d)=>{r(d)};return R.useEffect(()=>{const i=v.watch((d,{name:$})=>{if($!=null&&d!=null){const V=G(d);J(()=>q($,V))}});return()=>{i.unsubscribe()}}),R.useEffect(()=>{w==="In-Progress"&&u?.fetchState==="Completed"&&A()},[w,u?.fetchState,A]),o.jsxs(re,{children:[o.jsx(Q,{title:t==="approval_create"?a.newApproval:a.editApproval,style:{zIndex:4},onBackClick:()=>{l()},source:"BillPayApprovalRuleDetailPage"}),o.jsx(se,{children:o.jsx(X,{...v,children:o.jsx("form",{id:N(C),onSubmit:k,children:o.jsxs(oe,{children:[o.jsx(H,{label:{label:S?I.amountPerBillGreaterLabel:I.amountPerBillLabel},firstText:{type:"number",name:T,placeholder:"$0",options:{required:!0,max:B===1/0?Number.MAX_SAFE_INTEGER-1:B-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(K,{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:_,stepsInfo:x[y],userSelectPlaceholder:a.userSelectPlaceholder,approveNotifyPlaceholder:a.approveNotifyPlaceholder,productType:"zeni_bill_pay"})]})})})}),o.jsx(Z,{formId:N(C),primaryBtn:{label:a.saveBtnText,isLoading:u?.fetchState==="In-Progress",isDisabled:u?.fetchState==="In-Progress",style:{width:"85px",minWidth:"auto"}},showCancel:!0,cancelBtn:{label:a.cancelBtnText,isLoading:!1,style:{width:"85px",minWidth:"auto"},onClick:s},containerStyle:{justifyContent:P==="small"?"space-between":"center"},style:{padding:Y.footerPadding.valuePx(P)},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),D(e.allAttributes),D(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:j},actors:{allUsers:t,selectedUsers:ae(e,n.actors),allNonUsers:r,selectedNonUsers:te(l,n.actors)}})):[{stepIndex:0,stepType:{selectedOption:"require_approval",allOptions:j},actors:{allUsers:t,selectedUsers:[],allNonUsers:r,selectedNonUsers:[]}}],ae=(e,t)=>e.filter(l=>l.userId!=null&&t.findIndex(r=>r.userId===l.userId)>-1),te=(e,t)=>e.filter(l=>t.findIndex(r=>r.subType===l.value)>-1),N=e=>`${e}_form`,ge=e=>`${e}`,re=h.div`
2
2
  display: flex;
3
3
  height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{q as I,F as v,j as t,bF as D,P as E,aM as b,y as r,am as B,aN as j,cD as H,cE as G,cF as U,o as i,dd as F,u as l,b8 as q,O as z,b7 as O,h as S,da as V,bx as _,C as K}from"./index-DpnPgK1j.js";import{n as o,b as X}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.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:f=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:$})=>{const[m,x]=X.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(Z,{windowSize:n,isLastSection:f,children:[t.jsxs(J,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Q,{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:()=>{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,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(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}_${M}`)),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))]},N))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=o.div`
1
+ import{q as I,F as v,j as t,bF as D,P as E,aM as b,y as r,am as B,aN as j,cD as H,cE as G,cF as U,o as i,dd as F,u as l,b8 as q,O as z,b7 as O,h as S,da as V,bx as _,C as K}from"./index-CVlrVcg1.js";import{n as o,b as X}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.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:f=!1,approvalRule:c,onEditRuleClick:y,onDeleteRuleClick:$})=>{const[m,x]=X.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(Z,{windowSize:n,isLastSection:f,children:[t.jsxs(J,{windowSize:n,children:[t.jsxs(se,{children:[t.jsxs(R,{windowSize:n,children:[a.from," ",j("0,0",h.min)]}),t.jsxs(Q,{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:()=>{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,N)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,M)=>t.jsxs(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}_${M}`)),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))]},N))})}),m?t.jsx(H,{titleComponent:t.jsx(U,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(G,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:A}):null]})},Z=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${e=>s.wrapperGap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{ax as Y,q as $,aP as ee,l as g,F as M,j as e,bF as ie,n as B,aM as C,af as p,o as l,ar as le,_ as se,b as U,aS as L,an as oe,y as re,h as S,cR as te,aT as ae,b9 as ne,u as de}from"./index-DpnPgK1j.js";import{b as u,n as s}from"./vendor-Bs1fkIUX.js";import{x as ce}from"./MeetingCalenderPopup-DiUZr6zF-CdrWRN0c.js";import{f as xe}from"./VideoPopup-BYi-pZ8z-pFqmhIpM.js";import{M as b}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-C19SquYF-Do1HF2Iq.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",I="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",pe={midContainerMarginBottom:new re(de[5],44)},me=s.div`
1
+ import{ax as Y,q as $,aP as ee,l as g,F as M,j as e,bF as ie,n as B,aM as C,af as p,o as l,ar as le,_ as se,b as U,aS as L,an as oe,y as re,h as S,cR as te,aT as ae,b9 as ne,u as de}from"./index-CVlrVcg1.js";import{b as u,n as s}from"./vendor-Bs1fkIUX.js";import{x as ce}from"./MeetingCalenderPopup-B2BtdHWQ-BMcSB5xW.js";import{f as xe}from"./VideoPopup-1jecjRVb-yRogRIhj.js";import{M as b}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./VideoPlayer-DlAz8P4k-C4veLQbD.js";const A="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Light.png",I="https://storage.googleapis.com/zeni-apis.appspot.com/images/Billpay-Dark.png",pe={midContainerMarginBottom:new re(de[5],44)},me=s.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{b as Oe,q as Ue,aP as V,aa as De,cS as Re,F as _e,l as He,aU as Q,j as t,fn as ze,aM as Le,h as qe,y as u,bF as Me,P as Ne,ad as Ge,e6 as Je,bA as Ke,dY as Ye,c5 as Qe,fF as Xe,aQ as Ze,o as L,u as a,am as et,bP as tt}from"./index-DpnPgK1j.js";import{b as m,n as g}from"./vendor-Bs1fkIUX.js";import{D as it}from"./HelpButton-DHSxcuGA-BWZnqsL1.js";import"./SetUpAccountSection-DRbmb31r-Bq51bzJC.js";import{K as H}from"./SetUpDefaultSection-DbtQYgwc-BVO9cmWh.js";import{f as nt}from"./SpendMgmtSetupAccountSection-BLE0FTOw-CKynjFMX.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BbGSc0rv-DT8hhHus.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-DiUZr6zF-CdrWRN0c.js";import"./ChaseOverlay-rri8XLPh-Ce609WI1.js";import"./ChargeCardUtils-DJmy0Cev-DpywgBWY.js";import"./CreditCardPaymentPlgSection-DhdW49G9-ARxRUbiI.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)},X="billPaySetUpPage",E="billPayAccount",Bt=({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:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,O=$.link_account.updateStatus,U=$.update_account.updateStatus,F=V(p),J=V(b.fetchState),K=V(O.fetchState),Y=V(U.fetchState),P=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||K==="In-Progress"&&O.fetchState==="Completed"||Y==="In-Progress"&&U.fetchState==="Completed")&&P.reset(z(e))},[F,p,P,e,K,O.fetchState,Y,U.fetchState]);const Fe=P.handleSubmit(x=>{y.trackEnableBillPay(),ge()}),Be=async(x,I)=>{const o=I[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(_=>_.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(_=>_.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 x=P.watch((I,{name:o})=>{o!=null&&I!=null&&Re(()=>Be(o,I))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,J,b.fetchState]);const{commonSetUp:Ie,spendManagement:Ve}=_e.getLocalizedStrings(),{setUp:d}=Ie,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=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"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:qe.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,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(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...P,children:t.jsx("form",{id:Z(X),onSubmit:Fe,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},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]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.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:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
1
+ import{b as Oe,q as Ue,aP as V,aa as De,cS as Re,F as _e,l as He,aU as Q,j as t,fn as ze,aM as Le,h as qe,y as u,bF as Me,P as Ne,ad as Ge,e6 as Je,bA as Ke,dY as Ye,c5 as Qe,fF as Xe,aQ as Ze,o as L,u as a,am as et,bP as tt}from"./index-CVlrVcg1.js";import{b as m,n as g}from"./vendor-Bs1fkIUX.js";import{D as it}from"./HelpButton-D15CWyoU-D2RNsBLz.js";import"./SetUpAccountSection-B5SNk0uE-Bavk2270.js";import{K as H}from"./SetUpDefaultSection-CEdPofhe-CgbVxoH_.js";import{f as nt}from"./SpendMgmtSetupAccountSection-Baz3sHbZ-C9cP6DRA.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-DUmoex5M-DKbqd7SM.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-B2BtdHWQ-BMcSB5xW.js";import"./ChaseOverlay-CxZiC1U_-z2MQXKrY.js";import"./ChargeCardUtils-CuCE8WUR-DNJas3Pu.js";import"./CreditCardPaymentPlgSection-aSz8bfzl-CvtLlfud.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)},X="billPaySetUpPage",E="billPayAccount",Bt=({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:q,onClickMenuIcon:ye,onInternationPaymentSetUpClick:Se,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,onCompanyOfficerUpdated:we,onSendForVerificationClick:ve,onSignUpClick:Ce})=>{const C=Oe(),i=Ue(),[k,S]=m.useState(!1),M=m.useRef(null),{fetchState:p,updateStatus:b,accountUpdateStatus:ke,plaidConnectionDetails:$,allBankAccounts:Ae,companyBillPayInfo:A,isRefreshingViewInBackground:Te,selectedCompanyOfficer:c,primaryFundingAccount:r,allFundingAccounts:N}=e,h=A?.internationalWireOnboardingStatus,T=h==null||h.code==="onboarding_status_not_started",{fetchState:G,allApprovalRules:j,approvalRulesStatus:je}=W,O=$.link_account.updateStatus,U=$.update_account.updateStatus,F=V(p),J=V(b.fetchState),K=V(O.fetchState),Y=V(U.fetchState),P=De({mode:"all",reValidateMode:"onChange",defaultValues:m.useMemo(()=>z(e),[e]),values:z(e)});m.useEffect(()=>{!k&&c?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&c.areAdditionalDocumentsRequestedForVerification&&!c.areAdditionalDocumentsSubmittedForVerification&&c.userVerificationStatus?.code==="require_info"&&S(!0),k&&F==="In-Progress"&&p==="Completed"&&S(!1)},[c,p,F]),m.useEffect(()=>{(F==="In-Progress"&&p==="Completed"||K==="In-Progress"&&O.fetchState==="Completed"||Y==="In-Progress"&&U.fetchState==="Completed")&&P.reset(z(e))},[F,p,P,e,K,O.fetchState,Y,U.fetchState]);const Fe=P.handleSubmit(x=>{y.trackEnableBillPay(),ge()}),Be=async(x,I)=>{const o=I[E];if(x.includes(E)){if(x.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&r?.id!=o.fundingAccount.selectedOption){const f=N.find(_=>_.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(_=>_.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 x=P.watch((I,{name:o})=>{o!=null&&I!=null&&Re(()=>Be(o,I))});return()=>{x.unsubscribe()}}),m.useEffect(()=>{J==="In-Progress"&&b.fetchState==="Completed"&&q()},[q,J,b.fetchState]);const{commonSetUp:Ie,spendManagement:Ve}=_e.getLocalizedStrings(),{setUp:d}=Ie,{billPaySetup:l}=Ve.billPay,D=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),R=A?.isBillPayEnabled===!0,Ee=D?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=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"?S(!0):ce?.()};return t.jsxs(lt,{ref:M,children:[t.jsx(ze,{anchor:"right",PaperProps:{style:{width:n.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:k,onClose:()=>S(!1),style:{backgroundColor:qe.drawerBackground},transitionDuration:250,"data-testid":Le("bill-pay-setup-drawer"),children:t.jsx(ot,{authParams:oe,filesEndPoint:ne,updateStatus:b,onEditFileName:be,onDeleteFile:Pe,updateFilesEntity:xe,companyOfficer:c,onClose:()=>S(!1),onCompanyOfficerUpdated:we,onSendForVerificationClick:ve})}),t.jsx(Me,{title:l.setupTitle,style:{zIndex:3},onBackClick:le,showMenuIcon:!R&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ye,scrollableContent:M,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(Ne,{size:"ExtraLarge",start:!0})}):t.jsxs(at,{children:[t.jsx(Ge,{...P,children:t.jsx("form",{id:Z(X),onSubmit:Fe,children:t.jsxs(ut,{windowSize:i,children:[t.jsx(H,{onClick:$e,title:d.businessVerificationTitle,subTitle:d.businessVerificationSubTitle,header:d.businessVerificationHeader,icon:{element:t.jsx(Je,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},status:A?.businessVerificationStatus,isLoading:Te,isActiveWhileLoading:!0}),t.jsx(nt,{connectedAccountProvider:ee,primaryFundingAccount:r,allFundingAccounts:N,plaidConnectionDetails:$,allBankAccounts:Ae,sectionId:E,isDisabled:w,onFetchLinkTokenClick:re,onEstablishConnectionClick:de,onUpdatePaymentAccountStatus:fe,onUpdatePaymentAccountLoginStatus:me,onEstablishConnectionSuccess:ue,icon:{element:t.jsx(Ke,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},analytics:y,productType:"bill_pay",isAccountsEnabled:te,onSignUpClick:Ce,pageName:"Bill Pay Setup",accountsPromoConfig:ae}),t.jsx(H,{title:j.length>0?d.approvalTitle:d.createApprovalTitle,subTitle:l.approvalSubTitle,header:j.length>0?d.approvalHeader:d.setupApprovalHeader,icon:{element:t.jsx(Ye,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},onClick:se,status:j.length>0?je:void 0})]})})}),s===!0?t.jsx(H,{title:T?l.enableInternationalWireTitle:l.internationWireTitle,subTitle:l.internationalWireSubTitle2,header:l.internationalWireHeader,icon:{element:t.jsx(Xe,{width:n.iconWidthHeight.valuePx(i),height:n.iconWidthHeight.valuePx(i)}),color:B},style:{paddingBottom:n.lastSectionPaddingBottom.valuePx(i)},isClickable:!0,onClick:()=>{T&&y.trackEnableIntlWire(ie),Se?.()},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]})]}),D&&!R&&j.length>0?t.jsx(Ze,{formId:Z(X),primaryBtn:{label:l.enableBillPay,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:b.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:D&&!R,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -1,4 +1,4 @@
1
- import{b as fe,q as Pe,aa as Ce,cS as be,aU as k,F as xe,j as t,y as b,bF as Ae,P as Ie,ad as ve,bA as je,cT as ke,aQ as $e,o as s,hL as Oe,dj as Te,dk as Be,u as x,am as Ee,g$ as Ve,O as Le,h as ze}from"./index-DpnPgK1j.js";import{b as R,n as r}from"./vendor-Bs1fkIUX.js";import{F as De,r as W,o as Fe}from"./PaymentAccountSetupBillingAddressSection-BFys0cfh-7KTptf4o.js";import{O as Me}from"./SetUpAccountSection-DRbmb31r-Bq51bzJC.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./SetUpDefaultSection-DbtQYgwc-BVO9cmWh.js";import"./ChaseOverlay-rri8XLPh-Ce609WI1.js";const p={titleWidth:new b(343,580,726,826),setupDetailsRowGap:new b(12,x[5],x[5]),iconWidthHeight:new b(20,x[4]),subTitlePaddingTop:new b(12,x[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,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 P=fe(),i=Pe(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,T=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(a),values:U(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),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:f}=o[n].street,j=Te(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.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&&be(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=P.mode==="light"?new k(P.colors.brandColorJadeLight):new k(P.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:V}=xe.getLocalizedStrings(),ge=V.section.subTitle,{text:ye,subText:Se}=he,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,C=De(w.header,w.titleText,w.protectedCardNo,m);let F;L&&(F={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(z).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(z).name}),color:new k(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,we]=R.useState(!1);return t.jsxs(He,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:V.section.title,backgroundColor:P.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(Me,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.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:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:F,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ne(i,l.headers.billingAddress,ce,q,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(Fe,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:M,setCardSetupInProgress:we})]})},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]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
1
+ import{b as fe,q as Pe,aa as Ce,cS as be,aU as k,F as xe,j as t,y as b,bF as Ae,P as Ie,ad as ve,bA as je,cT as ke,aQ as $e,o as s,hL as Oe,dj as Te,dk as Be,u as x,am as Ee,g$ as Ve,O as Le,h as ze}from"./index-CVlrVcg1.js";import{b as R,n as r}from"./vendor-Bs1fkIUX.js";import{F as De,r as W,o as Fe}from"./PaymentAccountSetupBillingAddressSection-Cr96MmoG-BGySQi_b.js";import{O as Me}from"./SetUpAccountSection-B5SNk0uE-Bavk2270.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./SetUpDefaultSection-CEdPofhe-CgbVxoH_.js";import"./ChaseOverlay-CxZiC1U_-z2MQXKrY.js";const p={titleWidth:new b(343,580,726,826),setupDetailsRowGap:new b(12,x[5],x[5]),iconWidthHeight:new b(20,x[4]),subTitlePaddingTop:new b(12,x[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",lt=({analytics:e,billingSetupView:a,connectedAccountProvider:g,isDisabled:d,onClickMenuIcon:I,uiState:K,stripeKey:N,googleAPIKey:q,companyId:G,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 P=fe(),i=Pe(),{setupView:{paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,accountFetchStatus:O},cardPaymentView:m}=a,ce=a.subscriptionBillingAddress,T=y?.providerVerificationStatus,ue=O.fetchState==="In-Progress"||O.fetchState==="Not-Started",S=Ce({mode:"onSubmit",reValidateMode:"onChange",defaultValues:U(a),values:U(a),resetOptions:{keepDirtyValues:!0}}),pe=S.handleSubmit(c=>{se(G)}),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:f}=o[n].street,j=Te(f?.country);u={street:o[n].street??l.strings.empty,city:f?.locality??l.strings.empty,state:f?.administrativeAreaLevel1??l.strings.empty,country:j,countryCode:f?.countryCode??l.strings.empty,postalCode:f?.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&&be(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=P.mode==="light"?new k(P.colors.brandColorJadeLight):new k(P.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:V}=xe.getLocalizedStrings(),ge=V.section.subTitle,{text:ye,subText:Se}=he,L=m.cardsList.length>0,z=m?.cardsList[0]?.brand??"other",D=m?.addCardPaymentSourceStatus.fetchState,C=De(w.header,w.titleText,w.protectedCardNo,m);let F;L&&(F={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(z).iconURL,width:p.iconWidthHeight.valuePx(i),height:p.iconWidthHeight.valuePx(i),alt:W(z).name}),color:new k(E)},showCompletedIcon:!1,isError:D==="Error",isLoading:D==="In-Progress",isCompleted:!0,showRightArrow:!1});const[M,we]=R.useState(!1);return t.jsxs(He,{children:[t.jsx(Ae,{source:"BillingSettingsPage",title:V.section.title,backgroundColor:P.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(Me,{connectedAccountProvider:g,paymentAccount:y,plaidConnectionDetails:de,allBankAccounts:le,header:w.header,sectionTitle:w.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:E},analytics:e,productType:"billing",updateCardPaymentModalState:$,cardPaymentSectionValues:F,cardPaymentView:m,resetCardPaymentViewState:oe,showZeniAccountSection:!1,referrer:"Billing",cardSetupInProgress:M}),Ne(i,l.headers.billingAddress,ce,q,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(Fe,{handleConfirmCardSetupIntent:ne,updateCardPaymentModalState:$,handleCreateCardSetupIntent:te,handleAddCardPaymentSource:ie,cardPaymentView:m,isCardPaymentOpen:K.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:ae,stripeKey:N,cardSetupInProgress:M,setCardSetupInProgress:we})]})},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]:Oe(n,e.subscriptionBillingAddress)[n]}},We=r.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  height: 100%;
@@ -1 +1 @@
1
- import{F as V,j as _,cD as X,cE as q,cF as M,j_ as W,l as z,aX as Y}from"./index-DpnPgK1j.js";import{b}from"./vendor-Bs1fkIUX.js";import{u as Z}from"./ReviewOverlay-Bv5Irg0L-BkYNNXiY.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:h}=t,u=i==="review",[B,w]=b.useState(!1),[s,v]=b.useState(E(t,u)),[p,j]=b.useState(u),[I,T]=b.useState(0),[f,k]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===I?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),I===s.length&&p&&(j(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(E(t,!1)),()=>{clearInterval(x)}),[s.length,I,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:S}=H(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,h),w(!0)},N={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,h,G(t)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:A,description:$}=J(m,y,R,p),P=t.fetchState==="Completed"&&y===0,D=()=>{r.trackBillPayBulkSubmit(i,g,h),l(i)},U={label:P?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:D,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:F,style:i==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[B?_.jsx(X,{titleComponent:_.jsx(M,{children:f.title}),descriptionComponent:_.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Z,{title:A,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},E=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&z.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},G=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},H=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:h,do_:u,does:B}=n.texts,w=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:h)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,G as getBillsUniqueType};
1
+ import{F as V,j as _,cD as X,cE as q,cF as M,j_ as W,l as z,aX as Y}from"./index-CVlrVcg1.js";import{b}from"./vendor-Bs1fkIUX.js";import{u as Z}from"./ReviewOverlay-DBaDP1Pp-C71gH-ox.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const{common:n,spendManagement:{billPay:C}}=V.getLocalizedStrings(),o=C.bulkActions;let x;const ce=({billsReviewView:t,analytics:r,onProceedForBulkActionClick:l,onCloseReviewItem:e,onCloseOverlay:c})=>{const{fetchState:m,bulkSubmissionFetchState:a,bulkOperationTypeSelected:i,currentTab:g,currentSubTab:h}=t,u=i==="review",[B,w]=b.useState(!1),[s,v]=b.useState(E(t,u)),[p,j]=b.useState(u),[I,T]=b.useState(0),[f,k]=b.useState({type:"",title:"",description:"",primaryButtonText:"",secondaryButtonText:""});b.useEffect(()=>(u&&(x=setInterval(()=>{v(d=>d.map((S,O)=>(clearInterval(x),O===I?{...S,reviewStatus:{isLoading:!1,code:"valid"}}:S))),T(d=>d+1)},1e3)),I===s.length&&p&&(j(!1),clearInterval(x)),!u&&t.fetchState==="Completed"&&v(E(t,!1)),()=>{clearInterval(x)}),[s.length,I,p,t.fetchState,u,t]);const R=s.length,y=s.filter(d=>d.reviewStatus.code!=="error").length,F=()=>{const{title:d,description:S}=H(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,h),w(!0)},N={onOkClick:d=>{w(!1),r.trackBillPayBulkPopupConfirm(i,g,h,G(t)),l("reject",d)},onCancelClick:()=>{w(!1)}},{title:A,description:$}=J(m,y,R,p),P=t.fetchState==="Completed"&&y===0,D=()=>{r.trackBillPayBulkSubmit(i,g,h),l(i)},U={label:P?n.texts.close:i==="send_for_approval"?n.footer.submit:n.footer.approve,isDisabled:m!=="Completed"||i==="reject"&&a==="In-Progress",isLoading:a==="In-Progress"&&(i==="send_for_approval"||i==="approve"),onClick:P?c:D,style:i==="send_for_approval"?{minWidth:"92px"}:{}},L={label:i==="send_for_approval"?n.texts.goBack:n.footer.reject,isDisabled:i!=="reject"&&a==="In-Progress",isLoading:i==="reject"&&a==="In-Progress",reverseSpinnerColor:!1,onClick:i==="send_for_approval"?c:F,style:i==="approve"?{minWidth:"92px"}:{}};return _.jsxs(_.Fragment,{children:[B?_.jsx(X,{titleComponent:_.jsx(M,{children:f.title}),descriptionComponent:_.jsx(q,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:N,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(Z,{title:A,description:{content:$,isError:t.fetchState==="Completed"&&y===0},reviewItems:s,onCloseReviewItem:e,onCloseOverlay:c,showFooter:t.fetchState==="Completed"&&!p,footerProps:{primaryButton:U,cancelButton:L,hideCancel:P}})]})},E=(t,r)=>{const l=t.fetchState==="In-Progress";return t.billsForReview.map(e=>({id:e.transactionId,leftSideText:{title:e.vendorName?e.vendorName:C.billDetails.newBillTitle,subTitle:`${C.billDetails.invoiceNo} ${e.invoiceNumber?e.invoiceNumber:n.strings.hyphen}`},rightSideText:{title:Y("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&z.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:K(e.reviewStatus==="warning",e.reviewErrors?.map(c=>c.reviewInfoMessage)),additonalInfo:e.reviewErrors!=null&&e.reviewErrors.length>1?o.reviewPage.removeOrProceed:void 0},reviewStatus:{isLoading:r?!0:l,code:e.reviewErrors?.length===1&&e.reviewErrors[0].reviewErrorCode==="ERR_INSUFFICIENT_FUNDS"?"low-balance":e.reviewStatus??""}}))},G=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=W([...l,e.isRecurring?"recurring":"one-time"])}),l},H=t=>{const{this_:r,these:l,bill:e,bills:c,payment:m,payments:a}=n.texts;return t>1?{title:o.popUps.reject.title.replace("<_payment_>",o.payments),description:o.popUps.reject.description.replaceAll("<_this_>",l).replaceAll("<_payment_>",a).replaceAll("<_bill_>",c)}:{title:o.popUps.reject.title.replace("<_payment_>",o.payment),description:o.popUps.reject.description.replaceAll("<_this_>",r).replaceAll("<_payment_>",m).replaceAll("<_bill_>",e)}},J=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:h,do_:u,does:B}=n.texts,w=r>1,s=l>1;let v="",p="";return t==="Completed"&&!e?(v=o.reviewPage.billsReviewed.title.replace("<_bill_>",s?C.bulkActions.bills:o.bill).replace("<_has_>",s?m:c),r===0?p=o.reviewPage.billsReviewed.descriptionError.replace("<_bill_>",s?i:a).replace("<_do_>",s?u:B):p=`${r}/${l} ${o.reviewPage.billsReviewed.description.replace("<_bill_>",l>1?i:a).replace("<_is_>",w?g:h)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},K=(t,r)=>{if(r?.length!=null){if(r.length>1)return r.join(` ${n.strings.dividerDot} `);if(r.length===1)return t?r[0]+`${n.strings.colon} ${o.reviewPage.removeOrProceed}`:r[0]}return""};export{ce as default,G as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{q as h,j as s,aM as b,o as r}from"./index-DpnPgK1j.js";import{n as p}from"./vendor-Bs1fkIUX.js";import{o as l}from"./commonDimensions-fd7W42ZQ-IMrtE93m.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
1
+ import{q as h,j as s,aM as b,o as r}from"./index-CVlrVcg1.js";import{n as p}from"./vendor-Bs1fkIUX.js";import{o as l}from"./commonDimensions-hj9DIV8r-CXuojSfc.js";const $=(o,e)=>e===1?"roundedBox":o===0?"topRoundedBox":o===e-1?"bottomRoundedBox":"box";function f({content:o,boxType:e,isDisabled:d=!1,isNotClickable:t=!1}){const i=h();switch(e??"roundedBox"){case"topRoundedBox":return s.jsx(x,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("top-rounded-box",e),children:o});case"bottomRoundedBox":return s.jsx(n,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("bottom-rounded-box",e),children:o});case"box":return s.jsx(u,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("box",e),children:o});case"roundedBox":return s.jsx(a,{isDisabled:d,windowSize:i,hideCursor:t,"data-testid":b("rounded-box",e),children:o})}}const a=p.div`
2
2
  box-sizing: border-box;
3
3
  cursor: ${o=>o.isDisabled||o.hideCursor===!0?"default":"pointer"};
4
4
  min-height: ${o=>l.transactionItemHeightResponsive.valuePx(o.windowSize)};
@@ -0,0 +1,138 @@
1
+ import{b as ct,q as dt,aP as ve,j as a,F as Fe,af as G,aa as mt,d4 as ut,l as L,az as pt,cS as ft,aX as De,aO as $e,n as yt,bF as ht,aM as gt,cT as xt,cD as St,cE as wt,cF as Ct,P as bt,ad as Tt,aQ as vt,o,y as j,an as Ve,gl as Dt,fV as ke,dj as $t,_ as kt,A as It,am as Le,O as Pt,H as jt,u as k}from"./index-CVlrVcg1.js";import{b as O,n as d}from"./vendor-Bs1fkIUX.js";import{b as Ot,s as Nt}from"./CompanyOfficerDetailsSection-DlrJ7APF-58sMSXCv.js";import{r as Ft}from"./verification-CW6uEyev-CQXAdM_w.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./LabeledAddressValueField-IiXXbZHV-Nxtbx1fP.js";import"./LabeledCreatableSingleSelectField-DSYo_hqM-Du6ICaKz.js";import"./LabeledDocumentField-BL3SiwZn-BYLAv-bv.js";const x={width:new j(343,580,726),titleWidth:new j(343,580,726,826),subTitlePaddingTop:new j(12,k[3]),subTitlePaddingBottom:new j(k[3],k[3]),verificationDetailsRowGap:new j(12,k[5],k[5]),termsPaddingLeftRight:new j(k[0],k[3])},Vt={stepTitle:new Pt("h6Regular","h5Regular")},Ie="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Lt,currency:Pe,footer:je,strings:{empty:At}}}=Fe.getLocalizedStrings(),ha=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:N,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:B,productType:y,allIndustries:E,companyTitles:z,maxInsuredAmount:p,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:X=!1,transferDetails:R,onOverlayClose:te,onAddressClick:ae,onRegisteredAddressClick:_e,onBackClick:F,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,onSendForVerificationClick:Re,onEditFileName:ie,onCompanyDetailsChanged:Ue,updateFilesEntity:se,onDeleteFile:ne,onDeleteFileList:Me,onCompanyOfficerUpdated:We,saveNewAddressInLocalStore:re,onSaveDetailsClick:Ge,onClickMenuIcon:Xe,onExecuteTreasuryTransfer:qe})=>{const Qe=ct(),m=dt(),{updateStatus:U,companyView:V,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,He=ve(U.fetchState),M=V?.company.company.featuresActivationInfo.connectedAccountProvider,Je=M==="unit"?a.jsxs(Gt,{children:[i.terms.term1,a.jsx(G,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(G,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(G,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(G,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ke,q]=O.useState(!1),[W,oe]=O.useState("save"),[Q,Ye]=O.useState(!1),u=mt({mode:"all",reValidateMode:"onChange",defaultValues:_t(t,E,z,A)}),{isValid:Ze}=u.formState,H=V?.company.company.companyBillPayInfo,J=V?.company.company.companyTreasuryInfo,P=y==="zeni_treasury"?J?.companyVerificationStatus:H?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,et=()=>{const e=w[D],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,me=e?.titleAtCompany,ue=e?.documentTypeSelectedForVerification,pe=e?.phone,fe=e?.addressStatus?.addressToCreate,ye=fe!=null?L.getFormattedAddress(fe):void 0,he=l?.companyDescription,Z=l?.companyLegalName,ge=l?.companyIndustry,xe=l?.phone,Se=l?.website,we=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Ce=ee?.firstName,be=ee?.lastName,Te=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&me!=null&&pe!=null&&ye!=null&&ue!=null&&he!=null&&Z!=null&&xe!=null&&Se!=null&&ge!=null&&Z!=null&&we!=null&&Ce!=null&&be!=null&&Te!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:me,phone:pe,formattedAddress:ye,documentTypeForVerification:ue},{companyDescription:he,legalName:Z,phone:xe,website:Se.toString(),industry:ge,formattedAddress:we},{firstName:Ce,lastName:be,email:Te},y,n?"Settings":void 0)},tt=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email??"",f=!!e?.firstName&&!!e?.lastName,C=s?.email??"",$=!!s?.firstName&&!!s?.lastName;return c&&!f?((!e?.firstName||!e?.lastName)&&u.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&u.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},at=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&u.trigger(`${b}.primaryContactEmail`,{shouldFocus:!0}),!1}else if(e?.firstName||e?.lastName||e?.birthday||e?.nationalityCountryCode||e?.ownershipInCompany||e?.phone||e?.ssn||e?.titleAtCompany||e?.addressStatus?.addressToCreate||e?.fileIds!=null&&e?.fileIds.length>0||K!=null&&K?.length>0)return u.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},it=u.handleSubmit(()=>{if(W!=="verification"&&oe("verification"),M==="unit"&&w[D]?.isPhoneVerified!==!0){u.setError(`${T}.${v}.phone`,{type:"custom"});return}const e=ut(Object.values(w).map(c=>Object.values(c?.deleteFileStatusById??{}).filter(f=>f!=null))),s=Object.values(l?.deleteFileStatusById??{}).filter(c=>c!=null);L.reduceAllFetchState(e.concat(s)).fetchState!=="In-Progress"&&Ze&&(et(),Re?.(D),X===!0&&qe?.())}),st=async(e,s)=>{e.includes(b)?Ue?.(s[b]):e.includes(T)&&We?.(s[T])},nt=O.useCallback(pt((e,s)=>{st(e,s)},300),[]);O.useEffect(()=>{const e=u.watch((s,{name:c})=>{c!=null&&s!=null&&ft(()=>nt(c,s))});return()=>{e.unsubscribe()}});const le=ve(t.companyDetailsLocalData?.addressStatus);O.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&le==null&&(re?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),u.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,le,re,u]);const ce=V?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),K=ce?.map(e=>e.user),rt=ce?.map(e=>e.role),ot={onOkClick:()=>{q(!1),F();const e=[],s=V?.company.company.incInfo.fileIds??[];u.getValues(`${b}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),rt?.forEach((c,f)=>{const C=c?.fileIds??[];u.getValues(`${T}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Me?.(e)},onCancelClick:()=>{q(!1)}},lt=De($e(p),p,Pe.currencySymbol).toUpperCase(),Y=P?.code==="pending_review"||P?.code==="verified",de=(R?.treasuryTransferMoneyLocalData?.amount?.amount??0)>0;return y==="zeni_treasury"&&P?.code==="pending_review"&&He==="In-Progress"&&U.fetchState==="Completed"?a.jsxs(Yt,{children:[a.jsxs(Zt,{children:[a.jsx(Ft,{}),a.jsx(ea,{windowSize:m,children:X===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Kt,{isReadonly:!1,children:X===!0?i.submittedDescriptionWithTransfer.replace("__amount__",De($e(R?.treasuryTransferMoneyLocalData?.amount?.amount??0),R?.treasuryTransferMoneyLocalData?.amount?.amount??0,Pe.currencySymbol)).replace("__account__",R?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(yt,{label:i.submittedButton,onClick:()=>{F(),te?.()},variant:"primary"})]}):a.jsxs(Bt,{isSettings:n,children:[a.jsx(ht,{title:h&&S===!0?At:i.header,backgroundColor:Qe.colors.grey5,style:{zIndex:Q?1:4},onBackClick:()=>{xt(u.formState.dirtyFields)?q(!0):F()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:Xe,rightSideComponent:h?a.jsx(ta,{"data-testid":gt("nav-bar-close-business-verification-overlay"),onClick:()=>{F(),te?.()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(St,{titleComponent:a.jsx(Ct,{children:i.discardTitle}),descriptionComponent:a.jsx(wt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:ot}):null,a.jsxs(Rt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?Lt.infoText.businessVerification:i.title}),N==="In-Progress"||N==="Not-Started"?a.jsx(Ut,{children:a.jsx(bt,{size:"ExtraLarge",start:!0})}):a.jsx(Tt,{...u,children:a.jsxs("form",{id:Oe(Ie),onSubmit:it,children:[h&&S===!0&&a.jsxs(Et,{children:[a.jsxs(Xt,{windowSize:m,children:[a.jsx(qt,{windowSize:m,children:Y?i.businessVerificationDetails:de?i.verifyBusinessDetails:i.verifyBusinessDetailsWithoutTransfer}),!Y&&a.jsx(Qt,{children:a.jsxs(Ht,{children:[a.jsx(Ne,{}),de&&a.jsx(Ne,{}),a.jsx(Jt,{})]})})]}),a.jsx(Ae,{isReadonly:Y,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Mt,{children:[a.jsx(Ot,{companyOfficerData:w,allNationalityCountries:A,allOfficers:K??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:M,productType:"business_verification",updateFilesEntity:se,onEditFileName:ie,onOfficerAddressClick:ae,onDeleteFile:ne,isDisabled:I,filesEndPoint:r,authParams:B,isPopupOpen:Q,openPopup:Ye,onGetOtp:Be,onVerifyOtp:Ee,onResendOtp:ze,companyTitles:z,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(Nt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:P,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:P?.code==="pending_review"||P?.code==="verified"?"readonly":I,fileProps:{authParams:B,filesEndPoint:r,onEditFileName:ie,onDeleteFile:ne,updateFilesEntity:se},onCompanyAddressClick:ae,onRegisteredAddressClick:_e,connectedAccountProvider:M,allIndustries:E})]}),y==="zeni_accounts"?a.jsx(Wt,{windowSize:m,children:i.threadText.replace("__amount__",lt)}):null]})})]}),N==="Completed"&&(y==="zeni_treasury"?J?.companyVerificationStatus?.code!=="pending_review"&&J?.companyVerificationStatus?.code!=="verified":H?.businessVerificationStatus?.code!=="pending_review"&&H?.businessVerificationStatus?.code!=="verified")?a.jsx(vt,{formId:Oe(Ie),primaryBtn:{label:S?je.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="verification"&&U.fetchState==="In-Progress",isDisabled:I!=null},containerStyle:{width:m==="small"?x.width.valuePx(m):"auto",justifyContent:m==="small"?"space-between":"center"},helperStyle:{width:m==="small"?x.width.valuePx(m):"auto",paddingLeft:x.termsPaddingLeftRight.valuePx(m),paddingRight:x.termsPaddingLeftRight.valuePx(m),textAlign:m==="small"?"center":"initial"},showCancel:!0,cancelBtn:{reverseSpinnerColor:!1,label:S?je.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:W==="save"&&U.fetchState==="In-Progress",onClick:()=>{if(S)F();else{const e=w[D],s=l?.primaryContactLocalData;W!=="save"&&oe("save");const c=e?.email??"",f=tt(),C=at();f&&C&&(g?.trackBusinessVerificationSave({email:c,birthday:e?.birthday?.toString(),companyOwnership:e?.ownershipInCompany,firstName:e?.firstName,lastName:e?.lastName,companyRole:e?.titleAtCompany,phone:e?.phone,formattedAddress:e?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(e?.addressStatus?.addressToCreate):void 0,documentTypeForVerification:e?.documentTypeSelectedForVerification},{companyDescription:l?.companyDescription,legalName:l?.companyLegalName,phone:l?.phone,website:l?.website?.toString(),industry:l?.companyIndustry??"",formattedAddress:l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0},{firstName:s?.firstName,lastName:s?.lastName,email:s?.email},y,n?"Settings":void 0),Ge?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:Q?0:4}}):null]})},_t=(t,A,N,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:B,companyView:y}=t,E=Fe.getLocalizedStrings().companyPassport,z=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(p=>p.documentType==="tax_ein"),companyId:r?.companyId??"",syncToken:r?.syncToken,companyLegalName:r?.companyLegalName??"",companyWebsite:r?.website?.toString()??"",companyAddress:r?.addressStatus?.addressToCreate,registeredAddress:r?.registeredAddressStatus?.addressToCreate,companyIndustry:{selectedOption:r?.companyIndustry,allOptions:A?.map(p=>p.code)},companyPhone:r?.phone??"",companyTaxId:r?.taxIdOrEIN??"",primaryContactName:{firstName:r?.primaryContactLocalData?.firstName??"",lastName:r?.primaryContactLocalData?.lastName??""},primaryContactEmail:r?.primaryContactLocalData?.email??"",primaryContactUserId:r?.primaryContactLocalData?.userId,primaryContactSyncToken:r?.primaryContactLocalData?.syncToken,fileIds:r?.companyFiles.map(p=>p.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(p=>p.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:E.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(B).map((p,I)=>{const n=p,h=Dt(n?.documentTypeSelectedForVerification);return{userId:n?.userId,officerType:n?.officerType??`Officer_${I+1}`,name:{firstName:n?.firstName,lastName:n?.lastName},email:n?.email,fileIds:n?.fileIds??[],dob:n?.birthday?.toDate(),nationalityCountryCode:$t(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:N?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:ke(!0,n?.userFiles??[],h),back:ke(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!z&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Oe=t=>`${t}_form`,Bt=d.div`
2
+ display: flex;
3
+ min-height: 100%;
4
+ flex-direction: column;
5
+ width: 100%;
6
+ row-gap: ${o.sp3};
7
+ background-color: ${t=>t.isSettings?"unset":t.theme.colors.grey5};
8
+ `,Et=d.div`
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: flex-start;
12
+ justify-content: center;
13
+ gap: ${o.sp1};
14
+ width: 100%;
15
+ padding-bottom: ${o.sp3};
16
+ `,zt=d(Le)`
17
+ color: ${t=>t.theme.colors.hero};
18
+ display: flex;
19
+ justify-content: center;
20
+ width: ${t=>x.titleWidth.valuePx(t.windowSize)};
21
+ padding-top: ${t=>x.subTitlePaddingTop.valuePx(t.windowSize)};
22
+ padding-bottom: ${t=>x.subTitlePaddingBottom.valuePx(t.windowSize)};
23
+ text-align: ${t=>t.windowSize==="small"?"initial":"center"};
24
+ `,Rt=d.div`
25
+ display: flex;
26
+ justify-content: flex-start;
27
+ height: 100%;
28
+ overflow-y: auto;
29
+ flex-direction: column;
30
+ align-items: center;
31
+ padding-bottom: ${o.sp9};
32
+ row-gap: ${t=>x.verificationDetailsRowGap.valuePx(t.windowSize)};
33
+ `,Ut=d.div`
34
+ display: flex;
35
+ width: 100%;
36
+ height: calc(100vh - 110px);
37
+ flex-direction: row;
38
+ justify-content: center;
39
+ align-items: center;
40
+ background-color: ${t=>t.theme.colors.grey4};
41
+ `,Mt=d.div`
42
+ display: flex;
43
+ flex-direction: column;
44
+ row-gap: ${o.sp11};
45
+ `,Wt=d(Ve)`
46
+ margin-top: ${o.sp2};
47
+ padding: ${o.sp2} ${o.sp2};
48
+ text-align: center;
49
+ color: ${t=>t.theme.colors.grey1};
50
+ width: ${t=>x.width.valuePx(t.windowSize)};
51
+ `,Gt=d(Ve)`
52
+ text-align: center;
53
+ max-width: 750px;
54
+ color: ${t=>t.theme.colors.hero};
55
+ `,Xt=d.div`
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: ${o.sp3};
59
+ width: 100%;
60
+ `,qt=d(jt)`
61
+ ${t=>`${Vt.stepTitle.style(t.windowSize)}`};
62
+ color: ${t=>t.theme.colors.primary};
63
+ text-align: left;
64
+ `,Qt=d.div`
65
+ display: flex;
66
+ align-items: center;
67
+ overflow: hidden;
68
+ gap: ${o.sp2};
69
+ `,Ht=d.div`
70
+ display: flex;
71
+ width: 100%;
72
+ gap: ${o.sp3};
73
+ `,Ne=d.div`
74
+ flex: 1;
75
+ height: 2px;
76
+ background-color: ${t=>t.theme.colors.primary};
77
+ border-radius: ${o.sp2};
78
+ `,Jt=d.div`
79
+ flex: 1;
80
+ height: 2px;
81
+ background-color: ${t=>t.theme.colors.grey3};
82
+ border-radius: ${o.sp2};
83
+ position: relative;
84
+ overflow: hidden;
85
+
86
+ &::after {
87
+ content: "";
88
+ position: absolute;
89
+ top: 0;
90
+ left: 0;
91
+ height: 100%;
92
+ width: 100%;
93
+ background-color: ${t=>t.theme.colors.primary};
94
+ animation: fillProgress 1s ease-in-out forwards;
95
+ }
96
+
97
+ @keyframes fillProgress {
98
+ 0% {
99
+ transform: translateX(-100%);
100
+ }
101
+ 100% {
102
+ transform: translateX(0%);
103
+ }
104
+ }
105
+ `,Ae=d(Le)`
106
+ color: ${t=>t.theme.colors.hero};
107
+ margin-top: ${t=>t.isReadonly?o.sp0:o.sp3};
108
+ white-space: pre-line;
109
+ `,Kt=d(Ae)`
110
+ margin-top: ${o.sp0};
111
+ text-align: center;
112
+ `,Yt=d.div`
113
+ display: flex;
114
+ flex-direction: column;
115
+ align-items: center;
116
+ justify-content: center;
117
+ gap: ${o.sp5};
118
+ margin: auto;
119
+ `,Zt=d.div`
120
+ display: flex;
121
+ flex-direction: column;
122
+ align-items: center;
123
+ justify-content: center;
124
+ gap: ${o.sp3};
125
+ `,ea=d(kt)`
126
+ color: ${t=>t.theme.colors.primary};
127
+ white-space: pre-line;
128
+ text-align: center;
129
+ `,ta=d(It)`
130
+ cursor: pointer;
131
+ color: ${t=>t.theme.colors.hero};
132
+ width: ${o.sp4};
133
+ height: ${o.sp4};
134
+ min-height: ${o.sp4};
135
+ &:hover {
136
+ color: ${t=>t.theme.colors.primary};
137
+ }
138
+ `;export{ha as default,Oe as uniqueName};
@@ -1,4 +1,4 @@
1
- import{q as g,F as w,j as t,C as x,O as C,o as s,H as $}from"./index-DpnPgK1j.js";import{n as o,b as d}from"./vendor-Bs1fkIUX.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new C("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(H,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(v,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},H=o($)`
1
+ import{q as g,F as w,j as t,C as x,O as C,o as s,H as $}from"./index-CVlrVcg1.js";import{n as o,b as d}from"./vendor-Bs1fkIUX.js";const y=e=>d.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.802551 6.92395C0.802551 5.2671 2.1457 3.92395 3.80255 3.92395H20.2009C21.8578 3.92395 23.2009 5.2671 23.2009 6.92395V17.076C23.2009 18.7329 21.8578 20.076 20.2009 20.076H3.80255C2.1457 20.076 0.802551 18.7329 0.802551 17.076V10.8805H23.1896V9.01135H0.802551V6.92395ZM0.802551 9.01135H0.799072V10.8805H0.802551V9.01135ZM14.5443 15.6222C14.5443 15.0935 14.9728 14.6649 15.5015 14.6649H18.1386C18.6673 14.6649 19.0959 15.0935 19.0959 15.6222C19.0959 16.1509 18.6673 16.5795 18.1386 16.5795H15.5015C14.9728 16.5795 14.5443 16.1509 14.5443 15.6222Z",fill:"currentColor"})),{common:n,spendManagement:{chargeCard:r}}=w.getLocalizedStrings(),f={subText:new C("extraSmallRegular","standardRegular")},R=({cardDetail:e,forDetailPage:a})=>{const h=g(),u=e.type.code.includes("credit")?r.chargeCardsPromo.credit:r.chargeCardsPromo.debit;let l=e.type.code.includes("physical")?r.cardList.physicalCard:r.cardList.virtualCard;const i=n.strings.space+r.cardDetails.expiryHideOut+n.strings.space+e.accountLast4,m=e.status.code==="request_on_hold"||!a?l:i,c=e.type.code.includes("physical");return t.jsxs(H,{windowSize:h,forDetailPage:a,className:"cardName",title:`${m}`,children:[u,t.jsx(v,{}),l,c&&!a?t.jsx(p,{className:"physical-card-icon"}):null,e.status.code==="request_on_hold"||!a?null:i,c&&a?t.jsx(p,{}):null]})},H=o($)`
2
2
  ${e=>e.forDetailPage?{...x.extraSmallRegular.cssObject}:`${f.subText.style(e.windowSize)}`};
3
3
  color: ${e=>e.theme.colors.hero};
4
4
  max-width: 100%;
@@ -1,4 +1,4 @@
1
- import{b as k,q as f,j as t,bF as te,F as w,ft as P,C as u,b3 as X,cd as ie,o as i,h as B,y as h,am as v,dB as oe,l as y,u as l,bQ as re,bR as ae,bh as se,bg as ne,aX as de,bS as le,bU as ce,jb as he,aN as O,c3 as pe,aM as z,ai as $,jc as J,jd as Q,iW as me,cM as ge,cP as xe,an as T,iX as we,iY as ue}from"./index-DpnPgK1j.js";import{n as o,w as R,b as V}from"./vendor-Bs1fkIUX.js";import{q as ye}from"./InsightsSection-RhbVJwLe-DAe2Ld9i.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./NavigationDots-6Ixjpa6J-CeZVAIRN.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
1
+ import{b as k,q as f,j as t,bF as te,F as w,ft as P,C as u,b3 as X,cd as ie,o as i,h as B,y as h,am as v,dB as oe,l as y,u as l,bQ as re,bR as ae,bh as se,bg as ne,aX as de,bS as le,bU as ce,jb as he,aN as O,c3 as pe,aM as z,ai as $,jc as J,jd as Q,iW as me,cM as ge,cP as xe,an as T,iX as we,iY as ue}from"./index-CVlrVcg1.js";import{n as o,w as R,b as V}from"./vendor-Bs1fkIUX.js";import{q as ye}from"./InsightsSection-DID-lCow-DkB8Gyxt.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./NavigationDots-tnEUZ7xP-DlkUyxGf.js";const be=({x:e,y:s,width:n,height:a,payload:r})=>{const c=k();return t.jsx(he,{fill:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",stroke:(r?.[0].payload).showTooltip===!0?c.colors.background:"transparent",x:e,y:s,width:n,height:a})},W=w.getLocalizedStrings().spendManagement.chargeCard.cashbackDetail.header,fe=w.getLocalizedStrings().dateFormat.visual.MMMMFormat,$e=({active:e,payload:s,label:n})=>e===!0&&(s?.[0].payload).showTooltip===!0?t.jsx(ve,{children:t.jsx(je,{children:t.jsxs("div",{children:[t.jsxs(E,{children:[t.jsx(Z,{children:W.month})," ",t.jsx(G,{children:y.getZeniDateFromPeriod(n).format(fe)})]}),t.jsxs(E,{children:[t.jsx(Z,{children:W.cashback}),t.jsx(G,{children:O("0,0.[00]",{amount:s?.[0].value??0,currencyCode:(s?.[0].payload).currencyCode,currencySymbol:(s?.[0].payload).currencySymbol})})]})]})})}):null,E=o.div`
2
2
  display: flex;
3
3
  gap: ${i.sp1};
4
4
  `,ve=o.div`
@@ -1,4 +1,4 @@
1
- import{b as ot,q as Le,ax as Rt,a9 as zt,fX as $r,l as ut,hF as Ri,aU as at,F as ve,fY as vr,aP as rt,j as t,h3 as zi,bF as Pi,u as l,g4 as kr,aN as Je,aM as K,o as a,c5 as aa,h as d,i_ as jr,C as _,cD as Mi,i$ as Vi,fn as Oi,gW as Hi,bJ as Ni,bZ as Lr,aS as ra,j0 as Bi,j1 as Ir,y as A,bP as Dr,b9 as ia,X as Wi,aT as Ar,a$ as Ui,j2 as _i,j3 as Zi,b6 as oa,ai as ge,eT as Gi,iR as Yi,M as bt,fZ as Tr,P as St,b3 as qi,dG as Ji,cH as Xi,cE as Ki,di as Qi,hC as eo,am as Ve,c7 as to,j4 as ao,O as Oa,H as Er,b8 as ro,j5 as io,f_ as xt,dN as Ha,f9 as oo,n as Fr,cM as Rr,ca as na,s as sa,iU as zr,j6 as no,aw as At,cd as Na,bB as so,dx as co,an as gt,fU as lo,ar as ho,A as po,bL as uo,j7 as Pt,fB as mo,c3 as go,j8 as Pr,j9 as Mr,gI as Vr,ja as Et,ig as Or,iW as Co,cP as fo,ez as Hr,iX as wo,iY as xo,e6 as yo,dd as So,eF as bo,cu as $o,cv as vo}from"./index-DpnPgK1j.js";import{b as o,n as r,i as se,w as ko,k as Te}from"./vendor-Bs1fkIUX.js";import{j as jo}from"./NavigationDots-6Ixjpa6J-CeZVAIRN.js";import{L as Lo,H as pt,U as Ba,M as Io,F as Do,_ as Ao}from"./ChargeCardUtils-DJmy0Cev-DpywgBWY.js";import{A as To,i as Eo,a as Fo,l as Ro,r as zo,t as Po,n as Mo}from"./add-to-wallet-DgdBD8_G-XP_wmSR7.js";import{f as Vo}from"./CardNumberSubText-BjKu7YKY-jR-gP-EZ.js";import{r as Nr}from"./mui-Ty75qFQF.js";import{f as Br}from"./uploadReceipts-9DTOr0BG-CSOfXWAP.js";import{L as Oo,P as Ho,k as No,R as Bo}from"./LockCardPage-CXs-4wlr-desKVP17.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./RoleWithToolTip-Osazfeks-DCHE9_6V.js";const Wr=ve.getLocalizedStrings().spendManagement.chargeCard,Wo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:R,setWalletType:S,setIsAddToWalletDrawerOpen:M,isDebitCard:V})=>{const v=zt().analytics,{isIPadScreen:Y}=_i(),{isAndroidScreen:Q}=Zi(),Z=Rt(),I=ut.hasChargeCardAdminLevelAccess(Z.loggedInUserRoleMap);return t.jsx(Uo,{style:p,children:Y===!0?t.jsx(ta,{onClick:()=>{pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:y,creditAccountRepayment:n}),window.open(k,"_blank")}}):Q===!0?t.jsx(ea,{onClick:()=>{pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:y,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ta,{onClick:()=>{S("apple"),R.current="slide-in-right-to-left-add-to-wallet",pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n}),M(!0)}}),t.jsx(ea,{onClick:()=>{S("google"),R.current="slide-in-right-to-left-add-to-wallet",pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n}),M(!0)}})]})})},ea=({onClick:e})=>{const i=ot();return t.jsx(Fr,{prefixIcon:t.jsx(_o,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":K("add-to-google-wallet-button")})},ta=({onClick:e})=>{const i=ot();return t.jsx(Fr,{prefixIcon:t.jsx(Zo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":K("add-to-apple-wallet-button")})},Uo=r.div`
1
+ import{b as ot,q as Le,ax as Rt,a9 as zt,fX as $r,l as ut,hF as Ri,aU as at,F as ve,fY as vr,aP as rt,j as t,h3 as zi,bF as Pi,u as l,g4 as kr,aN as Je,aM as K,o as a,c5 as aa,h as d,i_ as jr,C as _,cD as Mi,i$ as Vi,fn as Oi,gW as Hi,bJ as Ni,bZ as Lr,aS as ra,j0 as Bi,j1 as Ir,y as A,bP as Dr,b9 as ia,X as Wi,aT as Ar,a$ as Ui,j2 as _i,j3 as Zi,b6 as oa,ai as ge,eT as Gi,iR as Yi,M as bt,fZ as Tr,P as St,b3 as qi,dG as Ji,cH as Xi,cE as Ki,di as Qi,hC as eo,am as Ve,c7 as to,j4 as ao,O as Oa,H as Er,b8 as ro,j5 as io,f_ as xt,dN as Ha,f9 as oo,n as Fr,cM as Rr,ca as na,s as sa,iU as zr,j6 as no,aw as At,cd as Na,bB as so,dx as co,an as gt,fU as lo,ar as ho,A as po,bL as uo,j7 as Pt,fB as mo,c3 as go,j8 as Pr,j9 as Mr,gI as Vr,ja as Et,ig as Or,iW as Co,cP as fo,ez as Hr,iX as wo,iY as xo,e6 as yo,dd as So,eF as bo,cu as $o,cv as vo}from"./index-CVlrVcg1.js";import{b as o,n as r,i as se,w as ko,k as Te}from"./vendor-Bs1fkIUX.js";import{j as jo}from"./NavigationDots-tnEUZ7xP-DlkUyxGf.js";import{L as Lo,H as pt,U as Ba,M as Io,F as Do,_ as Ao}from"./ChargeCardUtils-CuCE8WUR-DNJas3Pu.js";import{A as To,i as Eo,a as Fo,l as Ro,r as zo,t as Po,n as Mo}from"./add-to-wallet-DgdBD8_G-XP_wmSR7.js";import{f as Vo}from"./CardNumberSubText-CPjMRY-i-BnZZjfBd.js";import{r as Nr}from"./mui-Ty75qFQF.js";import{f as Br}from"./uploadReceipts-9DTOr0BG-B15rGeOY.js";import{L as Oo,P as Ho,k as No,R as Bo}from"./LockCardPage-Cxo2om5_-CKHN2OvU.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./RoleWithToolTip-CBBWeNSt-BdFNJyHE.js";const Wr=ve.getLocalizedStrings().spendManagement.chargeCard,Wo=({controllerEmails:e,classListFetchState:i,isChargeCardFeatureEnabled:s,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:h,isChargeCardSetupEnabled:f,chargeCardDetailView:c,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:R,setWalletType:S,setIsAddToWalletDrawerOpen:M,isDebitCard:V})=>{const v=zt().analytics,{isIPadScreen:Y}=_i(),{isAndroidScreen:Q}=Zi(),Z=Rt(),I=ut.hasChargeCardAdminLevelAccess(Z.loggedInUserRoleMap);return t.jsx(Uo,{style:p,children:Y===!0?t.jsx(ta,{onClick:()=>{pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:y,creditAccountRepayment:n}),window.open(k,"_blank")}}):Q===!0?t.jsx(ea,{onClick:()=>{pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",productInformation:g,creditAccountInformation:m,debitAccountInformation:x,isChargeCardFeatureEnabled:s,creditAccount:y,creditAccountRepayment:n}),window.open(L,"_blank")}}):t.jsxs(t.Fragment,{children:[t.jsx(ta,{onClick:()=>{S("apple"),R.current="slide-in-right-to-left-add-to-wallet",pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Apple Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n}),M(!0)}}),t.jsx(ea,{onClick:()=>{S("google"),R.current="slide-in-right-to-left-add-to-wallet",pt({chargeCardDetailView:c,classListFetchState:i,analytics:v,isDebitCard:V,isChargeCardAdmin:I,cardIssuedByRoles:C,cardIssuedByDepartmentName:w,cardHolderRoles:j,cardHolderDepartmentName:b,controllerEmails:e,pageName:"Card Detail",addToWalletType:"Add to Google Wallet",isChargeCardFeatureEnabled:s,productInformation:g,creditAccountInformation:m,debitAccountInformation:x,creditAccount:y,creditAccountRepayment:n}),M(!0)}})]})})},ea=({onClick:e})=>{const i=ot();return t.jsx(Fr,{prefixIcon:t.jsx(_o,{}),label:Wr.cardDetails.addToGoogleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":K("add-to-google-wallet-button")})},ta=({onClick:e})=>{const i=ot();return t.jsx(Fr,{prefixIcon:t.jsx(Zo,{}),label:Wr.cardDetails.addToAppleWallet,buttonColors:{borderColor:{default:i.colors.grey1,hover:i.colors.primary,disabled:i.colors.primary},backgroundColor:{default:i.colors.grey5,hover:i.colors.grey5,disabled:i.colors.grey5},textColor:{default:i.colors.primary,hover:i.colors.primary,disabled:i.colors.grey5}},textStyle:{color:i.colors.primary},style:{width:"239px",justifyContent:"center"},onClick:e,"data-testid":K("add-to-apple-wallet-button")})},Uo=r.div`
2
2
  margin-top: ${a.sp4};
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{a9 as Ga,aP as N,ax as Ya,g3 as qa,l as te,f_ as U,q as Le,F as Pe,o as a,b as Xt,j as t,bF as Ha,gh as Ja,ft as ae,C as R,c5 as rt,h as m,aN as he,aX as it,aM as nt,y as W,ai as ie,O as Xa,H as Ka,d8 as Za,au as Kt,bP as Qa,a$ as st,aS as er,an as dt,aa as tr,gZ as ar,db as rr,ap as ir,ad as or,gm as nr,n as Tt,u as z,dq as sr,ar as dr,am as cr,_ as lr,d7 as hr,bz as ur,c7 as mr}from"./index-DpnPgK1j.js";import{b as c,n as r,i as ct,k as pr}from"./vendor-Bs1fkIUX.js";import{X as Cr}from"./SpendManagementSection-DbEnKD37-CZgqSgVX.js";import{A as re,a as gr,l as br}from"./ChargeCardListTable-DOhn3tAQ-C29o3Bmc.js";import{ChargeCardPromoUserContent as fr}from"./ChargeCardPromoPage-DJPvD2XN-UgTcQjN9.js";import{N as xr,J as Sr}from"./PromoBaseCards-JDelrKuJ-BevTB8Ip.js";import{P as Rt,L as Dt,k as yr,R as wr}from"./LockCardPage-CXs-4wlr-desKVP17.js";import{r as kr,i as vr}from"./graphic-no-data-net-burn-l-CzmycA0m-W-GGrHSF.js";import{t as $r,o as Ir}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./Menu-DoA95Zgg-B8GzMRyk.js";import"./RoleWithToolTip-Osazfeks-DCHE9_6V.js";import"./CardNumberSubText-BjKu7YKY-jR-gP-EZ.js";import"./ChargeCardUtils-DJmy0Cev-DpywgBWY.js";import"./MeetingCalenderPopup-DiUZr6zF-CdrWRN0c.js";import"./NavigationDots-6Ixjpa6J-CeZVAIRN.js";import"./usp-line-BBd1wKwW-ZlUrfnG1.js";const lt={infoSubheadingTextMarginTop:new W(z[0],z[0]),cardsMinWidth:new W(343,353)},Mt=Pe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Bt=({cardPromoType:e,cardText:l,header:u,title:d,subTitle:n,slidingTextList:p,onClick:E})=>{const M=Le();return t.jsxs(Ar,{windowSize:M,cardPromoType:e,"data-testid":nt("list-page-promo-card",e),onClick:()=>E(e),children:[t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:u}),t.jsx(Er,{children:d}),t.jsx(Rr,{children:n})]}),t.jsxs(Dr,{children:[t.jsx(Mr,{}),p.length>0&&t.jsx(ot,{slideUpCount:p.length,children:p.map((_,B)=>t.jsx(ta,{children:_},`card-promo-${B.toString()}`))}),t.jsx(Br,{})]})]}),t.jsx(Nr,{children:t.jsx(xr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Or,{children:t.jsx(Sr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Nt=({cardType:e,header:l,title:u,creditLimit:d,onCreateNowClick:n})=>{const p=Le();return t.jsx(Lr,{windowSize:p,cardType:e,children:t.jsxs(Pr,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:l}),t.jsx(Tr,{children:t.jsx(Fr,{children:u})}),t.jsx(zr,{windowSize:p,children:t.jsxs(_r,{windowSize:p,onClick:()=>n(e),"data-testid":nt("total-cashback-info"),children:[t.jsx(ta,{children:Mt.createNow}),t.jsx(Ur,{})]})})]}),e==="creditCard"?t.jsxs(Wr,{children:[t.jsx(Vr,{children:Mt.creditLimit}),t.jsx(Gr,{children:d})]}):null]})})},jr=e=>{const l=e-1;let u=`
1
+ import{a9 as Ga,aP as N,ax as Ya,g3 as qa,l as te,f_ as U,q as Le,F as Pe,o as a,b as Xt,j as t,bF as Ha,gh as Ja,ft as ae,C as R,c5 as rt,h as m,aN as he,aX as it,aM as nt,y as W,ai as ie,O as Xa,H as Ka,d8 as Za,au as Kt,bP as Qa,a$ as st,aS as er,an as dt,aa as tr,gZ as ar,db as rr,ap as ir,ad as or,gm as nr,n as Tt,u as z,dq as sr,ar as dr,am as cr,_ as lr,d7 as hr,bz as ur,c7 as mr}from"./index-CVlrVcg1.js";import{b as c,n as r,i as ct,k as pr}from"./vendor-Bs1fkIUX.js";import{X as Cr}from"./SpendManagementSection-BiERXt9F-BcKf_bWA.js";import{A as re,a as gr,l as br}from"./ChargeCardListTable-Di_JUGvM-BL58u9To.js";import{ChargeCardPromoUserContent as fr}from"./ChargeCardPromoPage-V5I32kB7-BVAKIAqJ.js";import{N as xr,J as Sr}from"./PromoBaseCards-D-C0emey-B8JISnP7.js";import{P as Rt,L as Dt,k as yr,R as wr}from"./LockCardPage-Cxo2om5_-CKHN2OvU.js";import{r as kr,i as vr}from"./graphic-no-data-net-burn-l-CzmycA0m-W-GGrHSF.js";import{t as $r,o as Ir}from"./arrow-south-east-round-PEovUgvH-DnzbA_s-.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./Menu-BTNO1N-S-DarsFvLf.js";import"./RoleWithToolTip-CBBWeNSt-BdFNJyHE.js";import"./CardNumberSubText-CPjMRY-i-BnZZjfBd.js";import"./ChargeCardUtils-CuCE8WUR-DNJas3Pu.js";import"./MeetingCalenderPopup-B2BtdHWQ-BMcSB5xW.js";import"./NavigationDots-tnEUZ7xP-DlkUyxGf.js";import"./usp-line-BBd1wKwW-ZlUrfnG1.js";const lt={infoSubheadingTextMarginTop:new W(z[0],z[0]),cardsMinWidth:new W(343,353)},Mt=Pe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Bt=({cardPromoType:e,cardText:l,header:u,title:d,subTitle:n,slidingTextList:p,onClick:E})=>{const M=Le();return t.jsxs(Ar,{windowSize:M,cardPromoType:e,"data-testid":nt("list-page-promo-card",e),onClick:()=>E(e),children:[t.jsxs(Zt,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:u}),t.jsx(Er,{children:d}),t.jsx(Rr,{children:n})]}),t.jsxs(Dr,{children:[t.jsx(Mr,{}),p.length>0&&t.jsx(ot,{slideUpCount:p.length,children:p.map((_,B)=>t.jsx(ta,{children:_},`card-promo-${B.toString()}`))}),t.jsx(Br,{})]})]}),t.jsx(Nr,{children:t.jsx(xr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})}),t.jsx(Or,{children:t.jsx(Sr,{cardPromoType:e,cardText:l,shouldAnimate:!1,forDashboard:!1,showChip:!1,forListPage:!0})})]})},Nt=({cardType:e,header:l,title:u,creditLimit:d,onCreateNowClick:n})=>{const p=Le();return t.jsx(Lr,{windowSize:p,cardType:e,children:t.jsxs(Pr,{children:[t.jsxs(ea,{children:[t.jsx(Qt,{children:l}),t.jsx(Tr,{children:t.jsx(Fr,{children:u})}),t.jsx(zr,{windowSize:p,children:t.jsxs(_r,{windowSize:p,onClick:()=>n(e),"data-testid":nt("total-cashback-info"),children:[t.jsx(ta,{children:Mt.createNow}),t.jsx(Ur,{})]})})]}),e==="creditCard"?t.jsxs(Wr,{children:[t.jsx(Vr,{children:Mt.creditLimit}),t.jsx(Gr,{children:d})]}):null]})})},jr=e=>{const l=e-1;let u=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }