@zeniai/web-cockpit-ui 1.14.57-dev → 1.14.57-qa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/assets/{ACHDetailsPage-DV4OB7NM-scHPBP4t.js → ACHDetailsPage-DV4OB7NM-DpheZDDw.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CSg1Tfge-DlUf3KA8.js → AIPerformancePage-CSg1Tfge-3V1Hk1xQ.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Cw_ymT2g-CxCPQEdH.js → AccountInfoPage-Cw_ymT2g-COtyboUM.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-C8-5w46b-DaEOXU4b.js → AccountInfoPageContent-C8-5w46b-BZ3-FFyo.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-snm4MHKv-CTDdZ4MB.js → AccountLockedInfoModal-snm4MHKv-DQl6U7Zc.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-CsQrPbPT-0ia9uXn9.js → AccountReconDetailsDrawerPage-CsQrPbPT-DvakPIsl.js} +1 -1
  7. package/dist/assets/{AccountRow-O8arJC4_-BGHNiuQf.js → AccountRow-O8arJC4_-v0u-eSlD.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-BXmvXtxq-Dnk3fFTG.js → AccountsPromoCardStack-BXmvXtxq-B5NEzqo9.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DgSD5HoZ-BB4BEk2F.js → AddAddressForCardDrawer-DgSD5HoZ-DYgxONQh.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-uRrVSXNs-B_9aJWSG.js → AddToWalletPage-uRrVSXNs--mztgd62.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Nzs-YthX-680z3aks.js → AgingReportsPage-Nzs-YthX-XLgKVOqs.js} +1 -1
  12. package/dist/assets/{AllUserItems-DSajX03F-Bdy85sjp.js → AllUserItems-DSajX03F-DFbad5FV.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-COJgBK0j-B_eOt_zm.js → ApAgingDetailPage-COJgBK0j-BvZMgO5T.js} +1 -1
  14. package/dist/assets/{AppBasePage-CNEQI1s3-BSvuyAL3.js → AppBasePage-CNEQI1s3-D-H7QPq1.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-DAoQqu2t-C5ORDo2y.js → AppDrawerContent-DAoQqu2t-BArttMUx.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-BfdaJqb9-BlkmghO2.js → ApprovalRulesSettingsPage-BfdaJqb9-_s4NqnDq.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Do0NLLSa-CuAXJyfp.js → ArAgingChart-Do0NLLSa-zICxFvnq.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-Bcb2ACg0-BuToQQIr.js → ArAgingDetailPage-Bcb2ACg0-Kfsr2rJK.js} +1 -1
  19. package/dist/assets/{AttachmentView-Ca6sXezF-zLy1AGh_.js → AttachmentView-Ca6sXezF-De-BV89V.js} +1 -1
  20. package/dist/assets/{BankAccountSection-OBSfguxr-Cdnw3tK9.js → BankAccountSection-OBSfguxr-Po-ACxiO.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-Ckzs3GdZ-DJXWL2iQ.js → BankAccountWarningSection-Ckzs3GdZ-Cnu7FtQV.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-ZtHOghED-CPQy3KKh.js → BankConnectionsSettingsPage-ZtHOghED-BpY-vsrv.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Cx4731vW-DzaI8LNz.js → BillDetailPage-Cx4731vW-C8vz3-jh.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-AvM-KVpf-BDnTHaWj.js → BillPayApprovalRuleDetailPage-AvM-KVpf-D8AXGj4p.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DQUxCO26-CEtpIye-.js → BillPayApprovalRulesPage-DQUxCO26-vDu2bo-1.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-CyRoiwLd-DhI-a8uq.js → BillPayPromoPage-CyRoiwLd-D3uC0hpX.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-D1CNDey5-Du0peVv0.js → BillPaySetUpPage-D1CNDey5-DKuMBw4P.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-B1tyFzD9-DNO89DW5.js → BillingSettingsPage-B1tyFzD9-DyOQQ19O.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-B2mBpc3M-ldvk4yrQ.js → BillsBulkReviewDrawerPage-B2mBpc3M-uRIcYuFp.js} +1 -1
  30. package/dist/assets/{BoxItem-DNKrNJdW-QP_Xyjqf.js → BoxItem-DNKrNJdW-BFr8N6MT.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BhamWrv8-CBg8OwYp.js → BusinessVerificationPage-BhamWrv8-sjdEKwJ5.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-gZk_X-XR-CH7v6MNz.js → CardNumberSubText-gZk_X-XR-C8qzit8R.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-5xjTDPNi-D95OsWlC.js → CashbackDetailPage-5xjTDPNi-O9gDAqnb.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-DhPOhmHL-CWmBCiXo.js → ChargeCardDetailPage-DhPOhmHL-BKJcNq4E.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-Cmmzx-W1-CbHdGtnk.js → ChargeCardListPage-Cmmzx-W1-CvX1PDlY.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-SwxRmQUm-DmxNdOn0.js → ChargeCardListTable-SwxRmQUm-B_W5OISN.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-gaKf1tn--CeCza0Wj.js → ChargeCardPromoPage-gaKf1tn--KwAgWHSg.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-Cn6E7r73-BBs3uWm_.js → ChargeCardSetupPage-Cn6E7r73-BPNDrYBR.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-DqileRbM-C5_Wc_p8.js → ChargeCardStatementsPage-DqileRbM-Bo_WHZuG.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-CjQgqDbz-CjjWlpC7.js → ChargeCardUtils-CjQgqDbz-DRoRvzTL.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-D7OybUeO-CW-0fz6R.js → ChaseOverlay-D7OybUeO-DfM050IG.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-CwZohOyA-DVUmf3m_.js → CheckDepositDrawerPage-CwZohOyA-Bfj-6GKs.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-BLws2OAO-D5RHypCj.js → CollapsableReportTable-BLws2OAO-CsNQ9o8X.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-vBLAKoiC-Sb9wXnSm.js → CompanyOfficerDetailsSection-vBLAKoiC-DY9VadxE.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard--ffusTh9-B6TMlRLr.js → CompanyPassportCard--ffusTh9-C-ivOKwr.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-wKXcFSeY-C2bUKYyf.js → CompanyPassportPage-wKXcFSeY-541H99sm.js} +1 -1
  47. package/dist/assets/{CompleteProfile-BcV1Utwt-DqK7BTtH.js → CompleteProfile-BcV1Utwt-DxvCoKT3.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-BoAprBVC-X81eAzwq.js → ConfettiBurst-BoAprBVC-BMNcAYF3.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-D0Z_vCWN-DjaTZ2yA.js → CreateOrEditVendorPage-D0Z_vCWN-BpJmzH_c.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-CMV7xqgA-BuxXzArW.js → CreditCardPaymentDrawerPage-CMV7xqgA-CJ2jSV4K.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-Cmrbj4Ya-BZBA5Oye.js → CreditCardPaymentPlgSection-Cmrbj4Ya-M1K-g6EO.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-OYuUR0mT-BPHz3nrc.js → CurrencySelectField-OYuUR0mT-Gdngdkqq.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-BpvRDCGQ-CEsS5LMq.js → CustomerOnboardingActivationPage-BpvRDCGQ-dnjfWs5U.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-B0SKnjh2-CEWiCnCo.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-EE_kzrRA-Daf8h3OW.js → CustomerOnboardingDetailPageSkeleton-EE_kzrRA-CKMQzBWD.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-B69SWxDI-DsKoxBMB.js → CustomerOnboardingNoStepsPage-B69SWxDI-DVIkz2hi.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-CFJOSKfq-B2JIOTTz.js → CustomerOnboardingPage-CFJOSKfq-ZO9cNjoG.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-B1loVTKk-CSjuiJly.js → CustomerOnboardingProductSuitePage-B1loVTKk-By7ugQ4m.js} +1 -1
  59. package/dist/assets/{Dashboard-DpCe3pX5-qAKujEkc.js → Dashboard-DpCe3pX5-B6EdzulI.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-D0GKRRRO-DozH4wyz.js → DashboardReportPage-D0GKRRRO-C1YoKH-x.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Dxf_aFtw-Bdf-Zc3i.js → DashboardSidebarBackgroundAnimation-Dxf_aFtw-BAQprOXO.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-CYTxgJyj-bOJQ8Ukv.js → DepositAccTransactionItem-CYTxgJyj-D2u5PugV.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-mhcLB2nV-C75FLq9H.js → DepositAccTransactionListPage-mhcLB2nV-DYskHqLE.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-COxtxo6V-bM0aDg4t.js → DomesticWireDetailsPage-COxtxo6V-0ccNRhaR.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-CChNuB4u-BakIaAQG.js → DownloadOverlay-CChNuB4u-NCsw2Dmc.js} +1 -1
  66. package/dist/assets/{DrawerPage-BolT_6Cm-BWoz_vn9.js → DrawerPage-BolT_6Cm-BdNx6m33.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-Cpe16SmA-Bllh9eLy.js → EditPeoplePage-Cpe16SmA-CnV0rAFy.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-DmR3eRtA-D58-yFla.js → EditReimbursementDetailPage-DmR3eRtA-D4nNFO1T.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-DBNvCESo-CVkej4aD.js → EntityDetailPage-DBNvCESo-JF8Z-AUG.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-D2riKfGi-CI5FhHI9.js → EntitySummarySection-D2riKfGi-C1PoBMLo.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-C5shdFUa-qikpRmKj.js → ExpenseAutomationOverviewPage-C5shdFUa-aDup1tHo.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-BJpCFccV-DeRqJ53a.js → ExpenseAutomationPage-BJpCFccV-PK4sp4kI.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-D58z0xFD-CKFQwwcT.js → ExpressPayPage-D58z0xFD-D-OvdK3m.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-C5TI7Aed-DCpacyyw.js → FeaturePreviewPage-C5TI7Aed-lsl-bhfu.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-Csdpah5Q-CxDj3k7L.js → FollowStepsSection-Csdpah5Q-QCTleZxZ.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-B3S1RAGw-Dt-EOA4V.js → GlobalReviewListPage-B3S1RAGw-9KQZDdcw.js} +1 -1
  77. package/dist/assets/{HelpButton-CGAbbUiJ-cbkL6JAK.js → HelpButton-CGAbbUiJ-DkMm1beR.js} +1 -1
  78. package/dist/assets/{InformationCardStack-CISjCFub-DA8QUjsX.js → InformationCardStack-CISjCFub-BlPbGZ3i.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-B_kwkhFg-Bndoh0Lf.js → InsightsCardStack-B_kwkhFg-BBqswPBh.js} +1 -1
  80. package/dist/assets/{InsightsSection-9aVhHxu0-3ZWqqEXv.js → InsightsSection-9aVhHxu0-CGwFWXzX.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-0sXjzrcJ-H5UDiCNs.js → IntegrationsSettingsPage-0sXjzrcJ-CrRSEA7-.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-DpP4SuIM-GV0SIr9v.js → InternationalWireSwiftDetailsPage-DpP4SuIM-ClmZEK8X.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-CW1NHbLf-B4h7kKjV.js → InternationalWireVerificationPage-CW1NHbLf-3NOE9NhA.js} +1 -1
  84. package/dist/assets/{InviteFormPage-2ppyHkHI-Cgxv4WZF.js → InviteFormPage-2ppyHkHI-BWGi3gQ0.js} +1 -1
  85. package/dist/assets/{InvitePageListView-CDwmsdNJ-BoIal6so.js → InvitePageListView-CDwmsdNJ-CGqDrO6J.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-Y0Yvs2ez-BpEfhJM2.js → InvitePeoplePage-Y0Yvs2ez-CbSdO6l0.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-BNwg_c1l-DHK5Glna.js → InvoiceUploadSection-BNwg_c1l-NkVqlA96.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-DtEXpUel-DROe0z2c.js → IssueChargeCardPage-DtEXpUel-tCcQAwDl.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-lIc9AUSj-8Y6kEiql.js → LabeledAddressValue-lIc9AUSj-DqBDA_kW.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-DQmJ358S-BojoQyFF.js → LabeledAddressValueField-DQmJ358S-QTuPKr5s.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-gzV5lqRv-BByzlvOt.js → LabeledControlledCheckBoxField-gzV5lqRv-Ytt8xmja.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BSRuZZ9w-CHzfbkda.js → LabeledCreatableSingleSelectField-BSRuZZ9w-DSCUUjDn.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-DEbnfj_g-BDQFjixV.js → LabeledDocumentField-DEbnfj_g-BDtGX6Cu.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-CQYgbSaL-D-G0-co6.js → LabeledDropDownFormattedTextField-CQYgbSaL-BQbS0c5u.js} +1 -1
  95. package/dist/assets/{LabeledText-VwF4V6_p-BE7ImNU3.js → LabeledText-VwF4V6_p-e5l7dNRT.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-eXNE6eGu-DdgWNbGC.js → LabeledUserSingleSelectWithSubtitlesField-eXNE6eGu-DdqN-Lc_.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CdedV02i-E7qnqjA4.js → LabeledZeniRolesDropDownField-CdedV02i-DtQQnjnc.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-BbTu0l-b-CjtAMwcf.js → LinkJETransactionPage-BbTu0l-b-DfynPHf7.js} +1 -1
  99. package/dist/assets/{LockCardPage-62coj_g_-CHjApcyX.js → LockCardPage-62coj_g_-NIgt4Xvt.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-DIyrsEot-DCyZNps6.js → LowBalancePopup-DIyrsEot-DJ-G6tHL.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-CWjbXKIJ-ikYPNsfA.js → MagicLinkACHDetailsPage-CWjbXKIJ-XCCAhaIg.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-DZQgzdhA-sOkkceJ4.js → MagicLinkDomesticWireDetailsPage-DZQgzdhA-SdEXA6vz.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DnoE71_A-BEJQwJRN.js → MagicLinkInternationalWireDetailsPage-DnoE71_A-Bu_k-oWA.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-BDHrHc95-CzGMy3iB.js → MagicLinkSuccessPage-BDHrHc95-CQy8kZnD.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-tsi574d5-CdRM3Wt3.js → MagicLinkTitleSection-tsi574d5-CuLIaiMH.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-De2NGkdU-BRMYFvYK.js → MailingDetailsSection-De2NGkdU-D-C0xeMe.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-DeDqhOVG-BjtXMoON.js → MeetingCalenderPopup-DeDqhOVG-C5rpEr0y.js} +1 -1
  108. package/dist/assets/{Menu-BZ3MfCWq-BlYX38pO.js → Menu-BZ3MfCWq-BWn-MU6e.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-B6gbSXeJ-tb3sBVYM.js → MyBankConnectionsSettingsPage-B6gbSXeJ-Bn9Incln.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-Dm2DU2pe-CbSPtYDG.js → MyPendingActivationChargeCardListPage-Dm2DU2pe-B-yqu7UE.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-DlFYEYR2-Bxp4Olyn.js → MyProfileSettingsPage-DlFYEYR2-aNdzUFFn.js} +1 -1
  112. package/dist/assets/{NavBarWithPicker-B9fB_b4i-C1lDMiZD.js → NavBarWithPicker-B9fB_b4i-kEw5t4nV.js} +1 -1
  113. package/dist/assets/{NavigationArrow-CNpW28GW-CZ-YuXV6.js → NavigationArrow-CNpW28GW-BDlQVbHD.js} +1 -1
  114. package/dist/assets/{NavigationDots-DrEAFxpz-B6u6Mzuu.js → NavigationDots-DrEAFxpz-BnvcN6kv.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-DjYEm0mU-Bqt4_bV8.js → NewGlobalMerchantPage-DjYEm0mU-CjRyBc5v.js} +1 -1
  116. package/dist/assets/{NoDataChart-CPJXwyWa-C0S5qVwv.js → NoDataChart-CPJXwyWa-BAyXITzt.js} +1 -1
  117. package/dist/assets/{NoDataTable-zqmAdMpH-CL-p50k_.js → NoDataTable-zqmAdMpH-B_Jid1IU.js} +1 -1
  118. package/dist/assets/{NotFoundPage-BxsQnhKX-BjANNWmh.js → NotFoundPage-BxsQnhKX-C1feDXPZ.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-5rT4kBF0-BQYrT2ZD.js → NotificationSettingsPage-5rT4kBF0-Dlnb7vzs.js} +1 -1
  120. package/dist/assets/{NotificationsListConfig-DD21aJah-CU4gk4WR.js → NotificationsListConfig-DD21aJah-CTiNKNtS.js} +1 -1
  121. package/dist/assets/{NotificationsPage-B2vE5QMM-BHZGmZN4.js → NotificationsPage-B2vE5QMM-C5GC12E3.js} +1 -1
  122. package/dist/assets/{OpExByVendorPage-BlOjhXuk-CEUj-TvK.js → OpExByVendorPage-BlOjhXuk-CyyWfvxe.js} +1 -1
  123. package/dist/assets/{OverlayContainerPage-D1XDQqSC-oJX3kg0t.js → OverlayContainerPage-D1XDQqSC-BKuiQi0m.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-D4BVhSNf-ClrOsDEV.js → PandLWithForecastPage-D4BVhSNf-DPtBBqMT.js} +1 -1
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BHfmGlTd-Dwbz6PKr.js → PaymentAccountSetupBillingAddressSection-BHfmGlTd-DpEW14U8.js} +1 -1
  126. package/dist/assets/{PeoplePage-DEziszmp-CUWqMSAY.js → PeoplePage-DEziszmp-DVbYKq_e.js} +1 -1
  127. package/dist/assets/{PortfolioAllocationFormPage-B5JZy2cU-CEbkjuro.js → PortfolioAllocationFormPage-B5JZy2cU-WGG24DNA.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-CN5JC3Jy-HeR1tyFI.js → PortfolioDetails-CN5JC3Jy-D6AYc0mv.js} +1 -1
  129. package/dist/assets/{ProductsCarousel-DctP1eXs-CCLKFTUp.js → ProductsCarousel-DctP1eXs-PnK8mzwU.js} +1 -1
  130. package/dist/assets/{PromoBaseCards-DnMnpK-a-CsVLXV-m.js → PromoBaseCards-DnMnpK-a-Cz6aCHL9.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-BazrhjZb-d0xNxhEp.js → QBOConnectionDialog-BazrhjZb-BMKfT6ZY.js} +1 -1
  132. package/dist/assets/{QBOSetupSection-BLLT8kmS-Ce8ZT6-l.js → QBOSetupSection-BLLT8kmS-DsRWfoS9.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-D975K6ku-DoGxcKYy.js → ReimbursementApprovalRuleDetailPage-D975K6ku-CXBT8B2c.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-IeqxqH7T-XCDBzK4n.js → ReimbursementApprovalRulesPage-IeqxqH7T-C0Raolst.js} +1 -1
  135. package/dist/assets/{ReimbursementDetailPage-ClF5VZjq-dmYnHRfU.js → ReimbursementDetailPage-ClF5VZjq-ks4eFHc2.js} +1 -1
  136. package/dist/assets/{ReimbursementPromoPage-tHvviUt5-Dk7oJDsM.js → ReimbursementPromoPage-tHvviUt5-DCWX7DuX.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-DarYgpUr-aAmxm22Y.js → ReimbursementSetUpPage-DarYgpUr-D9KULYPs.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-2TxWVhxf-PAZ3OFzs.js → ReimbursementsBulkReviewDrawerPage-2TxWVhxf-BPrvE5Jn.js} +1 -1
  139. package/dist/assets/{ReloadCard-TX3UFbxi-BFmg7q-B.js → ReloadCard-TX3UFbxi-B8hH381T.js} +1 -1
  140. package/dist/assets/{ReportTableViewSelector-BxGg49JV-CV8VvQVh.js → ReportTableViewSelector-BxGg49JV-CMSnSqKd.js} +1 -1
  141. package/dist/assets/{ReportsPage-CzLbNd7f-D1DgmIXH.js → ReportsPage-CzLbNd7f-C5bVJW8o.js} +1 -1
  142. package/dist/assets/{RevenueChart-x2L7j2F6-BDDir_y7.js → RevenueChart-x2L7j2F6-CqtqsE0T.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-BOE0i6DJ-BbwznFf0.js → ReviewDetailsPage-BOE0i6DJ-4o6WDgzx.js} +1 -1
  144. package/dist/assets/{ReviewOverlay-k7Yv6cPl-CptdvIrg.js → ReviewOverlay-k7Yv6cPl-BZkgCdqh.js} +1 -1
  145. package/dist/assets/{RoleWithToolTip-BXNPbq51-BaVWsgPs.js → RoleWithToolTip-BXNPbq51-cZa09h6P.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DwsARyar-BYad-8kn.js → ScheduleDetailsFixedAssetsPage-DwsARyar-CYSzhK6i.js} +1 -1
  147. package/dist/assets/{ScheduleDetailsPage-DiWh6HFF-D0I8l1IY.js → ScheduleDetailsPage-DiWh6HFF-Blhgzbbs.js} +1 -1
  148. package/dist/assets/{ScheduleSequenceTable-uB-F8Zfa-D6xZfg_B.js → ScheduleSequenceTable-uB-F8Zfa-vvMhHs0D.js} +1 -1
  149. package/dist/assets/{ScreenRoutes-CNuH2l1M.js → ScreenRoutes-BtY8Lm47.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-B_NrG7PF-BxGqKlcX.js → SetUpAccountSection-B_NrG7PF-Dh75fgQ6.js} +1 -1
  151. package/dist/assets/{SetUpDefaultSection-B4Tvbzll-DJkEvnId.js → SetUpDefaultSection-B4Tvbzll-ClIjrHAf.js} +1 -1
  152. package/dist/assets/{SignIn-QHVyx5c0-DNtvi6UZ.js → SignIn-QHVyx5c0-D9jmFgmi.js} +1 -1
  153. package/dist/assets/{SignInScreen-CvxlZGn3.js → SignInScreen-C7CYcXm8.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-BtVibd3X-CxcsgIbl.js → SpendManagementListViewPage-BtVibd3X-BA7WTFVT.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-BM4QDdoq-WgGBjnoD.js → SpendManagementPerTabPage-BM4QDdoq-DhzrIDjb.js} +1 -1
  156. package/dist/assets/{SpendManagementSection-CkjbKHuA-DL8Jhv_8.js → SpendManagementSection-CkjbKHuA-BrSfj2hB.js} +1 -1
  157. package/dist/assets/{SpendMgmtSetupAccountSection-BZ6YBI9L-DxtdM6ss.js → SpendMgmtSetupAccountSection-BZ6YBI9L-hIwwKeHI.js} +1 -1
  158. package/dist/assets/{StatementItem-C-OOwdLj-D_ZMjHTj.js → StatementItem-C-OOwdLj-DwPF0QMA.js} +1 -1
  159. package/dist/assets/{StatementsPage-C8FwOEHw-BE1iNo_c.js → StatementsPage-C8FwOEHw-BkgHvewq.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-DDAIdmGW-DAjyffcb.js → StatusSwitcher-DDAIdmGW-BZKAFf2k.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-DHxYgN7S-Dyghoaqk.js → SubTabSwitcher-DHxYgN7S-Bap9nrQA.js} +1 -1
  162. package/dist/assets/{SummaryCard-DB61FVhc-BpHOzuly.js → SummaryCard-DB61FVhc-ChmdxtFb.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-3KR1pIOP-BHV69xN6.js → TaskManagementPage-3KR1pIOP-C95UYT8s.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-C8w8Bh_E-B6ri8OeP.js → TimeRangeSwitcher-C8w8Bh_E-DWSDMtvn.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-DYaFRiai-Bfm-SyYg.js → TimeframeSwitcher-DYaFRiai--n33zqBa.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-O8Wee44C-DC5Bn53q.js → TimeframeSwitcherWithToggle-O8Wee44C-CJs2xDjf.js} +1 -1
  167. package/dist/assets/{TopExCard-9KbsTjCg-g0VU1BgP.js → TopExCard-9KbsTjCg-Ey2RTzZz.js} +1 -1
  168. package/dist/assets/{TopExDetailPage-DMvUVN5s-DmxN6dca.js → TopExDetailPage-DMvUVN5s-CXpH48fc.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-DZ_tNzxQ-DHLr3WkZ.js → TransactionDetailPage-DZ_tNzxQ-DpKMNdAL.js} +1 -1
  170. package/dist/assets/{TransactionList-CvrOM5cz-BrfleYzE.js → TransactionList-CvrOM5cz-CX-JxclV.js} +1 -1
  171. package/dist/assets/{TransactionListBig-CzSohE8_-B5ggIH_H.js → TransactionListBig-CzSohE8_-03DALQ8n.js} +1 -1
  172. package/dist/assets/{TransactionListPage-DDCjfLv3-eye7QL5P.js → TransactionListPage-DDCjfLv3-DJhHksJA.js} +1 -1
  173. package/dist/assets/{TransactionVendorDetailPage-D79bSSm4-_F6XnFYp.js → TransactionVendorDetailPage-D79bSSm4-Dww2nWgS.js} +1 -1
  174. package/dist/assets/{TransferDrawerPage-wIuuspOB-TRClHB0Q.js → TransferDrawerPage-wIuuspOB-WRgF78NI.js} +1 -1
  175. package/dist/assets/{TreasuryOverviewPage-gnHjOdp1-TVcFGfPG.js → TreasuryOverviewPage-gnHjOdp1-B3YWr_sV.js} +1 -1
  176. package/dist/assets/{TreasuryPromoPage-D6IVoctX-BpmXJbO7.js → TreasuryPromoPage-D6IVoctX-DC3NqrUL.js} +1 -1
  177. package/dist/assets/{TreasurySetupPage-CyaXCzZf-CUvT1FJs.js → TreasurySetupPage-CyaXCzZf-D4YFNmAY.js} +1 -1
  178. package/dist/assets/{TreasuryStatementsPage-XyURgUMc-eZhem4kv.js → TreasuryStatementsPage-XyURgUMc-CBu9Hnj0.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-OHvXH4x_-CuOlStEC.js → TreasuryTaxLetterPage-OHvXH4x_-DKXJmMwd.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-DvPOsZ6Y-DYY_FFF5.js → TreasuryTransferOrReviewPage-DvPOsZ6Y-CGOfirO5.js} +1 -1
  181. package/dist/assets/{TrendChart-CPbwWuUI-N14xe23i.js → TrendChart-CPbwWuUI-BlcNZdOr.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-BhxaSxAB-DTcr2507.js → TrendWithTransactions-BhxaSxAB-zDkIJ6O5.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-CLDyk6B7-Cwonih23.js → UncategorizedAccountsMappingPage-CLDyk6B7-CSc85-L-.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-BoU9j_IJ-BDVIB4OK.js → UnitIntegrationPage-BoU9j_IJ-C-52Ozhj.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-BBBO7he9-CLzpRzpY.js → UploadAdditionalDocumentOverlay-BBBO7he9-fEljungr.js} +1 -1
  186. package/dist/assets/{Vendor2FAPopup-Rb3R_tes-CGhG3uNy.js → Vendor2FAPopup-Rb3R_tes-N8vNV45c.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-DHfHuMBC-fqnhI9aR.js → VendorACHDetailsPage-DHfHuMBC-Cauz5QoR.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-DyxCCxD8-Cgod249l.js → VendorDetailPage-DyxCCxD8-5X-mlZQs.js} +1 -1
  189. package/dist/assets/{VendorDomesticWireDetailsPage-BiAaQYS9-CZiNzKoT.js → VendorDomesticWireDetailsPage-BiAaQYS9-BzfsxwUe.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-u8ThnUDe-zrxRhQ5r.js → VendorFiling1099EditablePage-u8ThnUDe-CXMgAxtx.js} +1 -1
  191. package/dist/assets/{VendorFirstReviewPage-D7XydNcf-B4PW1aPf.js → VendorFirstReviewPage-D7XydNcf-DaT1tWU4.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-D4nE3lgg-CRdjfyLP.js → VendorInternationalWireDetailsPage-D4nE3lgg-DQXyzPBP.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DazgqE6v-B3R4kEMC.js → VendorInternationalWireSwiftDetailsPage-DazgqE6v-_yB_sNLi.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-BGko46RN-BVuQLHUL.js → VendorsAccountsSection-BGko46RN-BuP4OOc7.js} +1 -1
  195. package/dist/assets/{VerifyDevice-CZP5FKvG-B5x7aHp5.js → VerifyDevice-CZP5FKvG-DAEE8-rN.js} +1 -1
  196. package/dist/assets/{VideoPlayer-Csx55A4e-C_ak7IJP.js → VideoPlayer-Csx55A4e-CYEC6H0n.js} +1 -1
  197. package/dist/assets/{VideoPopup-Dp-c0GWW-Bb_QPQf3.js → VideoPopup-Dp-c0GWW-BvIbGViq.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-DkbOQKDX-C-fGnRFk.js → WarningsDrawerPage-DkbOQKDX-BriGIVHB.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-BEBuZNiD-BQk5cqZk.js → ZeniAccountDetailPage-BEBuZNiD-Cv8ntbS5.js} +1 -1
  200. package/dist/assets/{ZeniAccountListViewPage-B1TCB511-DsEy1gL2.js → ZeniAccountListViewPage-B1TCB511-Yg8vE6vw.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-Cx0PFqHk-uYbWuUuZ.js → ZeniAccountNavBarPieces-Cx0PFqHk-D_k55FPv.js} +1 -1
  202. package/dist/assets/{ZeniAccountPromoPage-CxmtyMwE-cYfv_VGU.js → ZeniAccountPromoPage-CxmtyMwE-2r5VdT0T.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-DnRT5njn-BVW0BEhq.js → ZeniAccountSetupPage-DnRT5njn-BvoN5Zov.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-BVCuJT6Y-B8cB9T3K.js → ZeniCopyright-BVCuJT6Y-AhQJq0S8.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-tgjKZKK9-D81YtLSN.js → ZeniTransferAmountSlider-tgjKZKK9-D8cq27WA.js} +1 -1
  206. package/dist/assets/{analyticsHelper-CUE9UAMD-DEHXudbZ.js → analyticsHelper-CUE9UAMD-j3N3J05n.js} +1 -1
  207. package/dist/assets/{analyticsHelper-BQ8ltk6Q.js → analyticsHelper-Co1rlE0p.js} +1 -1
  208. package/dist/assets/{chartTypes-CcLTCCG0-DFZZ9PgG.js → chartTypes-CcLTCCG0-BsGFo6hT.js} +1 -1
  209. package/dist/assets/{commonDimensions-CTsqA6um-BTABgGy8.js → commonDimensions-CTsqA6um-TMDaWMZU.js} +1 -1
  210. package/dist/assets/{detailCommon--EhC1iKt-CGlpcdoJ.js → detailCommon--EhC1iKt-Blem0hPE.js} +1 -1
  211. package/dist/assets/{downloadPdf-Co6NLPP_-B4kWIili.js → downloadPdf-Co6NLPP_-7oJCEbHq.js} +1 -1
  212. package/dist/assets/{index-BNH5gTAb.js → index-DoBZ9eO3.js} +4 -4
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-vinEf3O0-MAPFGY7s.js → mapLoadingInProgressToTreeNode-vinEf3O0-DiGNxDCE.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-BnxbUJPe-DzeOkIlR.js → mapSectionWithAcOnlyToTreeNode-BnxbUJPe-W3Tk6KAT.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-chkrQGMX-BltKeg89.js → mapSpacerToTreeNode-chkrQGMX-Bt9w3lDX.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-DTHtlrnV-DGi8YqCq.js → mapTimeframeBalancesToTreeNode-DTHtlrnV-CkzSt2B6.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-j2aabgKb-CMfb2C3i.js → mapTimeframeBalancesToTreeNode-j2aabgKb-C5V01lWW.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-gAxSLe4t-2IR_serz.js → mapTimeframeHeaderLoadingInProgressToTreeNode-gAxSLe4t-BgMAFIm5.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-sfFXqnrY-BCiFjR_2.js → toCOABalancesWithID-sfFXqnrY-C-amH0SJ.js} +1 -1
  220. package/dist/assets/{toChartData-DHQAPqS1-kdPHvyQH.js → toChartData-DHQAPqS1-DREPvFwN.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-BqprOh-j-C3JCOz-p.js → treasuryColorHelper-BqprOh-j-eRf2rqaX.js} +1 -1
  222. package/dist/assets/{uploadAttachment-CD0cbojy-dB3sYS5d.js → uploadAttachment-CD0cbojy-D2UDZJqF.js} +1 -1
  223. package/dist/assets/{uploadReceipts-CQ7whQyJ-jsBFF7ZN.js → uploadReceipts-CQ7whQyJ-LTC-UytC.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +1 -1
  226. package/dist/assets/CustomerOnboardingContainerPage-B0SKnjh2-zlGyxZp8.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as On,ax as En,c 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 Lt,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 L,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 Ft,gH as Da,ai as Ot,aY as ja,b4 as Ia,bx as $a,f2 as Aa,am as ka}from"./index-BNH5gTAb.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Ca}from"./liveblocks-8ht9CoL5.js";import{o as Sa,t as Pa}from"./LowBalancePopup-DIyrsEot-DCyZNps6.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:S,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Fa}}}}=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:Ce,isBillPayCommentingEnabled:Se,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=On(),o=En(),Le=_n(),[nn,U]=p.useState(!1),[Fe,re]=p.useState(!1),[se,de]=p.useState(!1),[Oe,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=Se&&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,C=Oa(D,e.transactionDetails),F=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??"",F?.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??"",F?.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(!Oe),M.trackZeniAssistClick(D?.code??"",w?.code??"",F?.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 On,ax as En,c 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 Lt,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 L,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 Ft,gH as Da,ai as Ot,aY as ja,b4 as Ia,bx as $a,f2 as Aa,am as ka}from"./index-DoBZ9eO3.js";import{b as p,n as i}from"./vendor-Bs1fkIUX.js";import{_ as Ca}from"./liveblocks-8ht9CoL5.js";import{o as Sa,t as Pa}from"./LowBalancePopup-DIyrsEot-DJ-G6tHL.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:S,strings:{empty:d},currency:ft,via:Ma,more:Na,edit:La},spendManagement:{billPay:{billDetails:n,billsByTabs:ke,bulkActions:wt,vendorCreation:Tt,insufficientFunds:Et}},collaboration:{threads:{placeholder:vt,tooltip:Dt,title:{comments:Fa}}}}=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:Ce,isBillPayCommentingEnabled:Se,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=On(),o=En(),Le=_n(),[nn,U]=p.useState(!1),[Fe,re]=p.useState(!1),[se,de]=p.useState(!1),[Oe,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=Se&&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,C=Oa(D,e.transactionDetails),F=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??"",F?.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??"",F?.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(!Oe),M.trackZeniAssistClick(D?.code??"",w?.code??"",F?.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",Cn=Kt&&e.transactionDetails?.billPayInfo.billPaymentStatus.code!=null&&["failed","cancelled","returned"].includes(e.transactionDetails.billPayInfo.billPaymentStatus.code)&&(xe||fe)&&kn===!1,we=xe||fe,Sn=e.transactionDetails?.billPayInfo.isRefundInitiated===!0&&e.transactionDetails?.billPayInfo.isRefundComplete===!1,_=D?.code,Pn=!Sn&&(!Qe||D?.code==="processing"&&!B),at=!Qe,it=["small","medium-compact","medium-regular"].includes(l),X=E.isBulkProcessing(e.transactionDetails?.bulkProcessingDetail?.type),O=E.isPaymentMethodOutsideZeni(e.paymentMethodType?.method),Bn=!X&&(_!=="processing"&&nt||_==="processing"&&!B||_==="processing"&&at||g&&O&&Ce),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"})},Ln=()=>{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:Le.colors.grey4,rightSideComponent:t.jsxs(Ct,{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(St,{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(Ct,{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(St,{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(Sa,{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"||C?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&&C!=null&&C.code==="deleted"?t.jsx(Pt,{color:C.color,bgColor:C.bgColor,borderColor:C.borderColor,children:C.value}):C?.value===ke.tabsById.overdue?t.jsx(Pt,{color:C.color,bgColor:C.bgColor,borderColor:C.borderColor,children:C.value}):null]}):null,F!=null&&F.code?l==="small"?t.jsx(ea,{progressSectionObj:F,createDate:e.transactionDetails?.createTime,paymentDate:qe,scheduleDate:ie,approvedDate:e.latestApprovedDate,isFrozen:e.transactionDetails?.isDeleted}):t.jsx(ta,{progressSectionObj:F,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:Se,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??S,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)??S,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)??S,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??S,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(Fn=>Fn.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):S,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??S,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??S,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??S,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):S,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??S,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}):S})]}),t.jsxs(je,{children:[t.jsx(Ie,{children:n.paymentDetailsTitle}),t.jsxs(De,{children:[O?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?Lt(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:O&&e.outsideZeniPaymentInfo!=null?Wa(e.outsideZeniPaymentInfo):st(s.paymentType?.method??""),style:{width:"auto"}})}),O?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()]})})]}),O||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,O,e.transactionDetails?.recurringBillInstance??1,e.recurringBillConfigDetail?.totalPaymentCycles??0),textStyles:{paddingLeft:m.textPadding.valuePx(l),paddingRight:m.textPadding.valuePx(l)},additionalInfoLabel:oa(l,e.isRecurring,O,e.recurringBillConfigDetail),additionalInfoLabelStyles:{paddingRight:m.paddingRight.valuePx(l),marginTop:m.additionalTextMarginTop.valuePx(l)}}),e.recurringBillInstances!=null&&e.recurringBillInstances.length>0?t.jsx(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:Ln,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&&Fe?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&&O&&Ce?t.jsx(Z,{onClick:Rn,"data-testid":b("mark-as-paid-action-item"),children:n.paymentOutsideZeni.markAsPaid}):null]})}):null,Oe?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??"",F?.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:[Cn===!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:La,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(!Fe)})})}):null]})]})}),style:{minHeight:62}}):null]}),f?t.jsx(Ca,{id:v,children:t.jsx(pa,{isDrawerOpen:on,allowComposer:!0,drawerTitle:Fa,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:Le.colors.background},collapsibleThreadStyle:{width:l==="small"?"100%":"360px"}})}):null]})},Oa=(e,x)=>{const g=e?.code;if(e!=null&&g!=null)return x?.isDeleted===!0?{value:ke.tabsById.deleted,color:L.deleted.color,bgColor:L.deleted.bgColor,borderColor:L.deleted.borderColor,code:"deleted"}:g==="pending_approval"&&x?.dueDate?.isBefore(E.dateNow(),"date")===!0?{value:ke.tabsById.overdue,color:L.overdue.color,bgColor:L.overdue.bgColor,borderColor:L.overdue.borderColor}:{value:e.name,color:L[g].color,bgColor:L[g].bgColor,borderColor:L[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?Lt(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):S})]})]})},_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-BNH5gTAb.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-Csdpah5Q-CxDj3k7L.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:$}=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:B})=>{if(B!=null&&d!=null){const V=G(d);J(()=>q(B,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:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(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-DoBZ9eO3.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-Csdpah5Q-QCTleZxZ.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:$}=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:B})=>{if(B!=null&&d!=null){const V=G(d);J(()=>q(B,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:$===1/0?Number.MAX_SAFE_INTEGER-1:$-1,min:g,validate:i=>n?!0:i!=null&&i>g},isDisabled:n,additionalInfoLabel:a.firstRuleLowerBoundInfoLabel,additionalErrorLabel:a.firstRuleErrorInfoLabel},secondText:{type:"number",name:E,placeholder:"Infinity",isDisabled:b,hideField:S,additionalInfoLabel:a.upperBoundInfoLabel}}),o.jsx(ie,{}),o.jsx(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,m as E,aM as b,y as r,am as B,aN as j,cD as H,cE as F,cF as G,o as i,dd as U,u as l,b8 as q,O as z,b7 as O,h as S,da as V,bx as K,C as _}from"./index-BNH5gTAb.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,A=()=>{x(!0)},W={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:A,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{y(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(H,{titleComponent:t.jsx(G,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):null]})},Z=o.div`
1
+ import{q as I,F as v,j as t,bF as D,m as E,aM as b,y as r,am as B,aN as j,cD as H,cE as F,cF as G,o as i,dd as U,u as l,b8 as q,O as z,b7 as O,h as S,da as V,bx as K,C as _}from"./index-DoBZ9eO3.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,A=()=>{x(!0)},W={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:A,"data-testid":b("delete-approval-rule-bill-pay",c.approvalRuleId)}),t.jsx(pe,{onClick:()=>{y(w)},"data-testid":b("edit-approval-rule-bill-pay",c.approvalRuleId)})]})]}),t.jsx(te,{windowSize:n,children:t.jsx(oe,{isSingleStep:u.length===1,windowSize:n,children:u.map((d,M)=>t.jsxs(ie,{isSingleStep:u.length===1,className:"stepperItem",windowSize:n,children:[d.action==="require_approval"?t.jsx(re,{children:a.requireText}):t.jsx(le,{children:a.notifyText}),d.nonUserActors!=null&&d.nonUserActors.filter(p=>p.subType!=null).map((p,N)=>t.jsxs(C,{children:[t.jsx(k,{children:p.subType!=null?a.nonUsers[p.subType].label:null}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},`${p.subType}_${N}`)),d.actors.map(p=>t.jsxs(C,{children:[t.jsxs(k,{children:[p.firstName," ",p.lastName]}),d.operator!="is"?t.jsx(T,{className:"operator",children:d.operator}):null]},p.userId))]},M))})}),m?t.jsx(H,{titleComponent:t.jsx(G,{children:a.deleteApprovalRuleTitle}),descriptionComponent:t.jsx(F,{children:a.deleteApprovalRuleDesc}),primaryButtonText:a.deleteTxt,proceedButtonVariant:"danger",secondaryButtonText:a.cancelBtnText,action:W}):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 _,q as $,aP as ee,l as g,F as M,j as e,bF as ie,a as B,aM as C,af as p,o as l,ar as le,L as se,c as L,aS as U,an as oe,y as re,h as S,cR as te,aT as ae,b9 as ne,u as de}from"./index-BNH5gTAb.js";import{b as u,n as s}from"./vendor-Bs1fkIUX.js";import{x as ce}from"./MeetingCalenderPopup-DeDqhOVG-BjtXMoON.js";import{f as xe}from"./VideoPopup-Dp-c0GWW-Bb_QPQf3.js";import{M as z}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-Csx55A4e-C_ak7IJP.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 _,q as $,aP as ee,l as g,F as M,j as e,bF as ie,a as B,aM as C,af as p,o as l,ar as le,L as se,c as L,aS as U,an as oe,y as re,h as S,cR as te,aT as ae,b9 as ne,u as de}from"./index-DoBZ9eO3.js";import{b as u,n as s}from"./vendor-Bs1fkIUX.js";import{x as ce}from"./MeetingCalenderPopup-DeDqhOVG-C5rpEr0y.js";import{f as xe}from"./VideoPopup-Dp-c0GWW-BvIbGViq.js";import{M as z}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-Csx55A4e-CYEC6H0n.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{c as De,q as Oe,aP as V,aa as Re,cS as Ue,F as _e,l as He,aU as Y,j as t,fn as ze,aM as Le,h as qe,y as u,bF as Me,m as Ne,ad as Ge,e6 as Je,bA as Ke,dY as Xe,c5 as Ye,fF as Qe,aQ as Ze,o as L,u as a,am as et,bP as tt}from"./index-BNH5gTAb.js";import{b as m,n as g}from"./vendor-Bs1fkIUX.js";import{D as it}from"./HelpButton-CGAbbUiJ-cbkL6JAK.js";import"./SetUpAccountSection-B_NrG7PF-BxGqKlcX.js";import{K as H}from"./SetUpDefaultSection-B4Tvbzll-DJkEvnId.js";import{f as nt}from"./SpendMgmtSetupAccountSection-BZ6YBI9L-DxtdM6ss.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BBBO7he9-CLzpRzpY.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-DeDqhOVG-BjtXMoON.js";import"./ChaseOverlay-D7OybUeO-CW-0fz6R.js";import"./ChargeCardUtils-CjQgqDbz-CjjWlpC7.js";import"./CreditCardPaymentPlgSection-Cmrbj4Ya-BZBA5Oye.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)},Q="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=De(),i=Oe(),[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,D=$.link_account.updateStatus,O=$.update_account.updateStatus,F=V(p),J=V(b.fetchState),K=V(D.fetchState),X=V(O.fetchState),P=Re({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"&&D.fetchState==="Completed"||X==="In-Progress"&&O.fetchState==="Completed")&&P.reset(z(e))},[F,p,P,e,K,D.fetchState,X,O.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&&Ue(()=>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,R=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),U=A?.isBillPayEnabled===!0,Ee=R?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(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:!U&&(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(Q),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(Xe,{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(Qe,{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(Ye,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),R&&!U&&j.length>0?t.jsx(Ze,{formId:Z(Q),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:R&&!U,meetingUrl:v,analytics:y,productType:"bill_pay"})]})},at=g.div``,lt=g.div`
1
+ import{c as De,q as Oe,aP as V,aa as Re,cS as Ue,F as _e,l as He,aU as Y,j as t,fn as ze,aM as Le,h as qe,y as u,bF as Me,m as Ne,ad as Ge,e6 as Je,bA as Ke,dY as Xe,c5 as Ye,fF as Qe,aQ as Ze,o as L,u as a,am as et,bP as tt}from"./index-DoBZ9eO3.js";import{b as m,n as g}from"./vendor-Bs1fkIUX.js";import{D as it}from"./HelpButton-CGAbbUiJ-DkMm1beR.js";import"./SetUpAccountSection-B_NrG7PF-Dh75fgQ6.js";import{K as H}from"./SetUpDefaultSection-B4Tvbzll-ClIjrHAf.js";import{f as nt}from"./SpendMgmtSetupAccountSection-BZ6YBI9L-hIwwKeHI.js";import{g as ot}from"./UploadAdditionalDocumentOverlay-BBBO7he9-fEljungr.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-DeDqhOVG-C5rpEr0y.js";import"./ChaseOverlay-D7OybUeO-DfM050IG.js";import"./ChargeCardUtils-CjQgqDbz-DRoRvzTL.js";import"./CreditCardPaymentPlgSection-Cmrbj4Ya-M1K-g6EO.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)},Q="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=De(),i=Oe(),[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,D=$.link_account.updateStatus,O=$.update_account.updateStatus,F=V(p),J=V(b.fetchState),K=V(D.fetchState),X=V(O.fetchState),P=Re({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"&&D.fetchState==="Completed"||X==="In-Progress"&&O.fetchState==="Completed")&&P.reset(z(e))},[F,p,P,e,K,D.fetchState,X,O.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&&Ue(()=>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,R=A?.isBusinessVerified===!0&&(r?.accType==="depositAccount"||He.isVerifiedPaymentAccountProviderStatusCode(r?.providerVerificationStatus?.code??"")),U=A?.isBillPayEnabled===!0,Ee=R?d.setupVerifiedSubTitle:l.setupSubTitle,We=p==="In-Progress"||p==="Not-Started"||G==="In-Progress"||G==="Not-Started",B=C.mode==="light"?new Y(C.colors.brandColorJadeLight):new Y(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:!U&&(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(Q),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(Xe,{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(Qe,{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(Ye,{title:h.code==="verification_pending"?l.tooltipTexts.pendingInternationalVerificationText:l.tooltipTexts.internationalVerificationFailed,children:t.jsx(ct,{})}):void 0,shouldHover:!0,showRightArrow:T}):null]})]}),R&&!U&&j.length>0?t.jsx(Ze,{formId:Z(Q),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:R&&!U,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{c as fe,q as Ce,aa as xe,cS as Pe,aU as k,F as be,j as t,y as P,bF as Ae,m 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 b,am as Ee,g$ as Ve,O as Le,h as ze}from"./index-BNH5gTAb.js";import{b as R,n as r}from"./vendor-Bs1fkIUX.js";import{F as De,r as W,o as Fe}from"./PaymentAccountSetupBillingAddressSection-BHfmGlTd-Dwbz6PKr.js";import{O as Me}from"./SetUpAccountSection-B_NrG7PF-BxGqKlcX.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-B4Tvbzll-DJkEvnId.js";import"./ChaseOverlay-D7OybUeO-CW-0fz6R.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",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 C=fe(),i=Ce(),{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=xe({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&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:V}=be.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,x=De(w.header,w.titleText,w.protectedCardNo,m);let F;L&&(F={header:x.header,title:x.title,subtitle:x.subtitle,status:x.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:C.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{c as fe,q as Ce,aa as xe,cS as Pe,aU as k,F as be,j as t,y as P,bF as Ae,m 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 b,am as Ee,g$ as Ve,O as Le,h as ze}from"./index-DoBZ9eO3.js";import{b as R,n as r}from"./vendor-Bs1fkIUX.js";import{F as De,r as W,o as Fe}from"./PaymentAccountSetupBillingAddressSection-BHfmGlTd-DpEW14U8.js";import{O as Me}from"./SetUpAccountSection-B_NrG7PF-Dh75fgQ6.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-B4Tvbzll-ClIjrHAf.js";import"./ChaseOverlay-D7OybUeO-DfM050IG.js";const p={titleWidth:new P(343,580,726,826),setupDetailsRowGap:new P(12,b[5],b[5]),iconWidthHeight:new P(20,b[4]),subTitlePaddingTop:new P(12,b[3])},Re={title:new Le("standardSemiBold","largeSemiBold")},H="billingSetupPage",A="payAccountSectionId",n="subscriptionBillingAddressSectionId",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 C=fe(),i=Ce(),{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=xe({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&&Pe(()=>me(h,o))});return()=>{c.unsubscribe()}});const E=C.mode==="light"?new k(C.colors.brandColorJadeLight):new k(C.colors.brandColorJadeDark),{customerOnboardingPage:{sections:{link_payment_account:he,card_payment_method:w}},common:l,billingSetupPage:V}=be.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,x=De(w.header,w.titleText,w.protectedCardNo,m);let F;L&&(F={header:x.header,title:x.title,subtitle:x.subtitle,status:x.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:C.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 q,cE as M,cF as W,j_ as X,l as z,aX as J}from"./index-BNH5gTAb.js";import{b}from"./vendor-Bs1fkIUX.js";import{u as K}from"./ReviewOverlay-k7Yv6cPl-CptdvIrg.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:w}=t,u=i==="review",[B,h]=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}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},A={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Y(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=G(m,y,R,p),P=t.fetchState==="Completed"&&y===0,D=()=>{r.trackBillPayBulkSubmit(i,g,w),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(q,{titleComponent:_.jsx(W,{children:f.title}),descriptionComponent:_.jsx(M,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:A,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(K,{title:N,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:J("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&z.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:H(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??""}}))},Y=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=X([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=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)}},G=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=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_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},H=(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,Y as getBillsUniqueType};
1
+ import{F as V,j as _,cD as q,cE as M,cF as W,j_ as X,l as z,aX as J}from"./index-DoBZ9eO3.js";import{b}from"./vendor-Bs1fkIUX.js";import{u as K}from"./ReviewOverlay-k7Yv6cPl-BZkgCdqh.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:w}=t,u=i==="review",[B,h]=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}=Z(y);k({type:"reject",title:d,description:S,primaryButtonText:n.texts.confirm,secondaryButtonText:n.texts.close}),r.trackBillPayBulkSubmit(i,g,w),h(!0)},A={onOkClick:d=>{h(!1),r.trackBillPayBulkPopupConfirm(i,g,w,Y(t)),l("reject",d)},onCancelClick:()=>{h(!1)}},{title:N,description:$}=G(m,y,R,p),P=t.fetchState==="Completed"&&y===0,D=()=>{r.trackBillPayBulkSubmit(i,g,w),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(q,{titleComponent:_.jsx(W,{children:f.title}),descriptionComponent:_.jsx(M,{children:f.description}),primaryButtonText:f.primaryButtonText,proceedButtonVariant:"danger",secondaryButtonText:f.secondaryButtonText,action:A,isNotesIncluded:!0,isEditPopup:!0}):null,_.jsx(K,{title:N,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:J("0,0.[00]",e.amount?.amount,e.amount?.currencySymbol),showThunderIcon:e.reviewErrors?.length===1&&z.isBillConditionallyValid(e.reviewErrors[0].reviewErrorCode),subTitle:H(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??""}}))},Y=t=>{const r=t.billsForReview;let l=[];return r.forEach(e=>{l=X([...l,e.isRecurring?"recurring":"one-time"])}),l},Z=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)}},G=(t,r,l,e)=>{const{has:c,have:m,bill:a,bills:i,are:g,is:w,do_:u,does:B}=n.texts,h=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_>",h?g:w)}`):(v=o.reviewPage.billsReviewing.title.replace("<_bill_>",s?i:a),p=o.reviewPage.billsReviewing.description.replace("<_bill_>",s?i:a)),{title:v,description:p}},H=(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,Y as getBillsUniqueType};
@@ -1,4 +1,4 @@
1
- import{q as h,j as s,aM as b,o as r}from"./index-BNH5gTAb.js";import{n as p}from"./vendor-Bs1fkIUX.js";import{o as l}from"./commonDimensions-CTsqA6um-BTABgGy8.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-DoBZ9eO3.js";import{n as p}from"./vendor-Bs1fkIUX.js";import{o as l}from"./commonDimensions-CTsqA6um-TMDaWMZU.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)};
@@ -1,4 +1,4 @@
1
- import{c as ot,q as lt,aP as be,j as a,F as Pe,af as W,aa as ct,d4 as dt,l as L,az as mt,cS as pt,aX as Te,aO as ve,a as ut,bF as ft,aM as yt,cT as ht,cD as gt,cE as xt,cF as St,m as wt,ad as Ct,aQ as bt,o,y as j,an as Fe,gl as Tt,fV as De,dj as vt,L as Dt,A as $t,am as Ve,O as kt,H as It,u as k}from"./index-BNH5gTAb.js";import{b as P,n as d}from"./vendor-Bs1fkIUX.js";import{b as Nt,s as jt}from"./CompanyOfficerDetailsSection-vBLAKoiC-Sb9wXnSm.js";import{r as Pt}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-DQmJ358S-BojoQyFF.js";import"./LabeledCreatableSingleSelectField-BSRuZZ9w-CHzfbkda.js";import"./LabeledDocumentField-DEbnfj_g-BDQFjixV.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])},Ft={stepTitle:new kt("h6Regular","h5Regular")},$e="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Vt,currency:ke,footer:Ie,strings:{empty:Ot}}}=Pe.getLocalizedStrings(),fa=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:G=!1,transferDetails:X,onAddressClick:te,onRegisteredAddressClick:Le,onBackClick:V,onGetOtp:Ae,onVerifyOtp:_e,onResendOtp:ze,onSendForVerificationClick:Be,onEditFileName:ae,onCompanyDetailsChanged:Ee,updateFilesEntity:ie,onDeleteFile:se,onDeleteFileList:Re,onCompanyOfficerUpdated:Ue,saveNewAddressInLocalStore:ne,onSaveDetailsClick:Me,onClickMenuIcon:We,onExecuteTreasuryTransfer:Ge})=>{const Xe=ot(),m=lt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,qe=be(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Je=U==="unit"?a.jsxs(Mt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ke,q]=P.useState(!1),[M,re]=P.useState("save"),[J,Qe]=P.useState(!1),p=ct({mode:"all",reValidateMode:"onChange",defaultValues:Lt(t,B,E,A)}),{isValid:He}=p.formState,K=O?.company.company.companyBillPayInfo,Q=O?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Q?.companyVerificationStatus:K?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,Ye=()=>{const e=w[D],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,ce=e?.titleAtCompany,de=e?.documentTypeSelectedForVerification,me=e?.phone,pe=e?.addressStatus?.addressToCreate,ue=pe!=null?L.getFormattedAddress(pe):void 0,fe=l?.companyDescription,Z=l?.companyLegalName,ye=l?.companyIndustry,he=l?.phone,ge=l?.website,xe=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Se=ee?.firstName,we=ee?.lastName,Ce=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&ce!=null&&me!=null&&ue!=null&&de!=null&&fe!=null&&Z!=null&&he!=null&&ge!=null&&ye!=null&&Z!=null&&xe!=null&&Se!=null&&we!=null&&Ce!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:ce,phone:me,formattedAddress:ue,documentTypeForVerification:de},{companyDescription:fe,legalName:Z,phone:he,website:ge.toString(),industry:ye,formattedAddress:xe},{firstName:Se,lastName:we,email:Ce},y,n?"Settings":void 0)},Ze=()=>{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)&&p.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},et=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&p.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||H!=null&&H?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},tt=p.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&w[D]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.phone`,{type:"custom"});return}const e=dt(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"&&He&&(Ye(),Be?.(D),G===!0&&Ge?.())}),at=async(e,s)=>{e.includes(b)?Ee?.(s[b]):e.includes(T)&&Ue?.(s[T])},it=P.useCallback(mt((e,s)=>{at(e,s)},300),[]);P.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&pt(()=>it(c,s))});return()=>{e.unsubscribe()}});const oe=be(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&oe==null&&(ne?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,oe,ne,p]);const le=O?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),H=le?.map(e=>e.user),st=le?.map(e=>e.role),nt={onOkClick:()=>{q(!1),V();const e=[],s=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),st?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Re?.(e)},onCancelClick:()=>{q(!1)}},rt=Te(ve(u),u,ke.currencySymbol).toUpperCase(),Y=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Qt,{children:[a.jsxs(Ht,{children:[a.jsx(Pt,{}),a.jsx(Yt,{windowSize:m,children:G===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Kt,{isReadonly:!1,children:G===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Te(ve(X?.treasuryTransferMoneyLocalData?.amount?.amount??0),X?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",X?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ut,{label:i.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(At,{isSettings:n,children:[a.jsx(ft,{title:h&&S===!0?Ot:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:J?1:4},onBackClick:()=>{ht(p.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:We,rightSideComponent:h?a.jsx(Zt,{"data-testid":yt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(gt,{titleComponent:a.jsx(St,{children:i.discardTitle}),descriptionComponent:a.jsx(xt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,a.jsxs(Bt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?Vt.infoText.businessVerification:i.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(Et,{children:a.jsx(wt,{size:"ExtraLarge",start:!0})}):a.jsx(Ct,{...p,children:a.jsxs("form",{id:Ne($e),onSubmit:tt,children:[h&&S===!0&&a.jsxs(_t,{children:[a.jsxs(Wt,{windowSize:m,children:[a.jsx(Gt,{windowSize:m,children:Y?i.businessVerificationDetails:i.verifyBusinessDetails}),!Y&&a.jsx(Xt,{children:a.jsxs(qt,{children:[a.jsx(je,{}),a.jsx(je,{}),a.jsx(Jt,{})]})})]}),a.jsx(Oe,{isReadonly:Y,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Rt,{children:[a.jsx(Nt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:H??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:ie,onEditFileName:ae,onOfficerAddressClick:te,onDeleteFile:se,isDisabled:I,filesEndPoint:r,authParams:z,isPopupOpen:J,openPopup:Qe,onGetOtp:Ae,onVerifyOtp:_e,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(jt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":I,fileProps:{authParams:z,filesEndPoint:r,onEditFileName:ae,onDeleteFile:se,updateFilesEntity:ie},onCompanyAddressClick:te,onRegisteredAddressClick:Le,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Ut,{windowSize:m,children:i.threadText.replace("__amount__",rt)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?Q?.companyVerificationStatus?.code!=="pending_review"&&Q?.companyVerificationStatus?.code!=="verified":K?.businessVerificationStatus?.code!=="pending_review"&&K?.businessVerificationStatus?.code!=="verified")?a.jsx(bt,{formId:Ne($e),primaryBtn:{label:S?Ie.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.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?Ie.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[D],s=l?.primaryContactLocalData;M!=="save"&&re("save");const c=e?.email??"",f=Ze(),C=et();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),Me?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:J?0:4}}):null]})},Lt=(t,A,F,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:z,companyView:y}=t,B=Pe.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.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(u=>u.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(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(z).map((u,I)=>{const n=u,h=Tt(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:vt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:De(!0,n?.userFiles??[],h),back:De(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,At=d.div`
1
+ import{c as ot,q as lt,aP as be,j as a,F as Pe,af as W,aa as ct,d4 as dt,l as L,az as mt,cS as pt,aX as Te,aO as ve,a as ut,bF as ft,aM as yt,cT as ht,cD as gt,cE as xt,cF as St,m as wt,ad as Ct,aQ as bt,o,y as j,an as Fe,gl as Tt,fV as De,dj as vt,L as Dt,A as $t,am as Ve,O as kt,H as It,u as k}from"./index-DoBZ9eO3.js";import{b as P,n as d}from"./vendor-Bs1fkIUX.js";import{b as Nt,s as jt}from"./CompanyOfficerDetailsSection-vBLAKoiC-DY9VadxE.js";import{r as Pt}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-DQmJ358S-QTuPKr5s.js";import"./LabeledCreatableSingleSelectField-BSRuZZ9w-DSCUUjDn.js";import"./LabeledDocumentField-DEbnfj_g-BDtGX6Cu.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])},Ft={stepTitle:new kt("h6Regular","h5Regular")},$e="businessVerificationPage",b="companyDetails",T="companyOfficerDetails",{commonSetUp:{businessVerification:i},common:{settings:Vt,currency:ke,footer:Ie,strings:{empty:Ot}}}=Pe.getLocalizedStrings(),fa=({businessVerificationDetails:t,allNationalityCountries:A,verficationDetailsFetchState:F,isRefreshingViewInBackground:_,filesEndPoint:r,authParams:z,productType:y,allIndustries:B,companyTitles:E,maxInsuredAmount:u,isDisabled:I,isSettings:n=!1,isOverlay:h=!1,analytics:g,isStepInProgress:S=!1,isTreasuryTransferInitiated:G=!1,transferDetails:X,onAddressClick:te,onRegisteredAddressClick:Le,onBackClick:V,onGetOtp:Ae,onVerifyOtp:_e,onResendOtp:ze,onSendForVerificationClick:Be,onEditFileName:ae,onCompanyDetailsChanged:Ee,updateFilesEntity:ie,onDeleteFile:se,onDeleteFileList:Re,onCompanyOfficerUpdated:Ue,saveNewAddressInLocalStore:ne,onSaveDetailsClick:Me,onClickMenuIcon:We,onExecuteTreasuryTransfer:Ge})=>{const Xe=ot(),m=lt(),{updateStatus:R,companyView:O,companyDetailsLocalData:l,companyOfficerLocalData:w}=t,qe=be(R.fetchState),U=O?.company.company.featuresActivationInfo.connectedAccountProvider,Je=U==="unit"?a.jsxs(Mt,{children:[i.terms.term1,a.jsx(W,{href:i.terms.consentUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.consent}),i.terms.term2,a.jsx(W,{href:i.terms.depositUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.depositTerms}),i.terms.term3,a.jsx(W,{href:i.terms.privacyPolicyUrl,onZeniLinkClick:()=>(g?.trackBillPayAgreement(),!0),linkText:i.terms.privacy}),i.terms.term4,a.jsx(W,{href:i.terms.tosUrl,onZeniLinkClick:()=>(g?.trackBillPayPrivacyPolicy(),!0),linkText:i.terms.tos}),i.terms.term5]}):i.terms.termsForStripe,[Ke,q]=P.useState(!1),[M,re]=P.useState("save"),[J,Qe]=P.useState(!1),p=ct({mode:"all",reValidateMode:"onChange",defaultValues:Lt(t,B,E,A)}),{isValid:He}=p.formState,K=O?.company.company.companyBillPayInfo,Q=O?.company.company.companyTreasuryInfo,N=y==="zeni_treasury"?Q?.companyVerificationStatus:K?.companyVerificationStatus,v=Object.values(w).findIndex(e=>e?.isSelectedForVerification===!0),D=`Officer_${v<0?1:v+1}`,Ye=()=>{const e=w[D],s=e?.email,c=e?.birthday?.toString(),f=e?.ownershipInCompany,C=e?.firstName,$=e?.lastName,ce=e?.titleAtCompany,de=e?.documentTypeSelectedForVerification,me=e?.phone,pe=e?.addressStatus?.addressToCreate,ue=pe!=null?L.getFormattedAddress(pe):void 0,fe=l?.companyDescription,Z=l?.companyLegalName,ye=l?.companyIndustry,he=l?.phone,ge=l?.website,xe=l?.addressStatus?.addressToCreate!=null?L.getFormattedAddress(l?.addressStatus?.addressToCreate):void 0,ee=l?.primaryContactLocalData,Se=ee?.firstName,we=ee?.lastName,Ce=ee?.email;s!=null&&f!=null&&C!=null&&$!=null&&c!=null&&ce!=null&&me!=null&&ue!=null&&de!=null&&fe!=null&&Z!=null&&he!=null&&ge!=null&&ye!=null&&Z!=null&&xe!=null&&Se!=null&&we!=null&&Ce!=null&&g?.trackBusinessVerificationSend({email:s,birthday:c.toString(),companyOwnership:f,firstName:C,lastName:$,companyRole:ce,phone:me,formattedAddress:ue,documentTypeForVerification:de},{companyDescription:fe,legalName:Z,phone:he,website:ge.toString(),industry:ye,formattedAddress:xe},{firstName:Se,lastName:we,email:Ce},y,n?"Settings":void 0)},Ze=()=>{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)&&p.trigger(`${T}.${v<0?0:v}.name`,{shouldFocus:!0}),!1):C&&!$?((!s?.firstName||!s?.lastName)&&p.trigger(`${b}.primaryContactName`,{shouldFocus:!0}),!1):!0},et=()=>{const e=w[D],s=l?.primaryContactLocalData,c=e?.email,f=s?.email;if(c){if(!f)return(s?.firstName||s?.lastName)&&p.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||H!=null&&H?.length>0)return p.trigger(`${T}.${v<0?0:v}.email`,{shouldFocus:!0}),!1;return!0},tt=p.handleSubmit(()=>{if(M!=="verification"&&re("verification"),U==="unit"&&w[D]?.isPhoneVerified!==!0){p.setError(`${T}.${v}.phone`,{type:"custom"});return}const e=dt(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"&&He&&(Ye(),Be?.(D),G===!0&&Ge?.())}),at=async(e,s)=>{e.includes(b)?Ee?.(s[b]):e.includes(T)&&Ue?.(s[T])},it=P.useCallback(mt((e,s)=>{at(e,s)},300),[]);P.useEffect(()=>{const e=p.watch((s,{name:c})=>{c!=null&&s!=null&&pt(()=>it(c,s))});return()=>{e.unsubscribe()}});const oe=be(t.companyDetailsLocalData?.addressStatus);P.useEffect(()=>{t.companyDetailsLocalData?.addressStatus?.addressToCreate!=null&&t.companyDetailsLocalData?.registeredAddressStatus?.addressToCreate==null&&oe==null&&(ne?.("company_registered_address",t.companyDetailsLocalData?.addressStatus?.addressToCreate),p.setValue(`${b}.registeredAddress`,t.companyDetailsLocalData?.addressStatus?.addressToCreate))},[t.companyDetailsLocalData?.addressStatus,t.companyDetailsLocalData?.registeredAddressStatus,oe,ne,p]);const le=O?.companyOfficers.slice(0,10).sort((e,s)=>e.user.createTime?.isAfter(s.user.createTime)===!0?1:-1),H=le?.map(e=>e.user),st=le?.map(e=>e.role),nt={onOkClick:()=>{q(!1),V();const e=[],s=O?.company.company.incInfo.fileIds??[];p.getValues(`${b}.fileIds`).forEach(c=>{s.includes(c)||e.push(c)}),st?.forEach((c,f)=>{const C=c?.fileIds??[];p.getValues(`${T}.${f}.fileIds`).forEach($=>{C.includes($)||e.push($)})}),e.length!==0&&Re?.(e)},onCancelClick:()=>{q(!1)}},rt=Te(ve(u),u,ke.currencySymbol).toUpperCase(),Y=N?.code==="pending_review"||N?.code==="verified";return y==="zeni_treasury"&&N?.code==="pending_review"&&qe==="In-Progress"&&R.fetchState==="Completed"?a.jsxs(Qt,{children:[a.jsxs(Ht,{children:[a.jsx(Pt,{}),a.jsx(Yt,{windowSize:m,children:G===!0?i.submittedTitleWithTransfer:i.submittedTitle}),a.jsx(Kt,{isReadonly:!1,children:G===!0?i.submittedDescriptionWithTransfer.replace("__amount__",Te(ve(X?.treasuryTransferMoneyLocalData?.amount?.amount??0),X?.treasuryTransferMoneyLocalData?.amount?.amount??0,ke.currencySymbol)).replace("__account__",X?.treasuryTransferMoneyLocalData?.fromAccount?.label??""):i.submittedDescription})]}),a.jsx(ut,{label:i.submittedButton,onClick:V,variant:"primary"})]}):a.jsxs(At,{isSettings:n,children:[a.jsx(ft,{title:h&&S===!0?Ot:i.header,backgroundColor:Xe.colors.grey5,style:{zIndex:J?1:4},onBackClick:()=>{ht(p.formState.dirtyFields)?q(!0):V()},showBackButton:!n&&!h,showMenuIcon:n?m==="medium-compact"||m==="small":!1,onClickMenuIcon:We,rightSideComponent:h?a.jsx(Zt,{"data-testid":yt("nav-bar-close-business-verification-overlay"),onClick:()=>{V()}}):null,source:"BusinessVerificationPage"}),Ke===!0?a.jsx(gt,{titleComponent:a.jsx(St,{children:i.discardTitle}),descriptionComponent:a.jsx(xt,{children:i.discardDescription}),primaryButtonText:i.discard,secondaryButtonText:i.cancel,action:nt}):null,a.jsxs(Bt,{windowSize:m,children:[(!h||S===!1)&&a.jsx(zt,{windowSize:m,children:n?Vt.infoText.businessVerification:i.title}),F==="In-Progress"||F==="Not-Started"?a.jsx(Et,{children:a.jsx(wt,{size:"ExtraLarge",start:!0})}):a.jsx(Ct,{...p,children:a.jsxs("form",{id:Ne($e),onSubmit:tt,children:[h&&S===!0&&a.jsxs(_t,{children:[a.jsxs(Wt,{windowSize:m,children:[a.jsx(Gt,{windowSize:m,children:Y?i.businessVerificationDetails:i.verifyBusinessDetails}),!Y&&a.jsx(Xt,{children:a.jsxs(qt,{children:[a.jsx(je,{}),a.jsx(je,{}),a.jsx(Jt,{})]})})]}),a.jsx(Oe,{isReadonly:Y,children:i.verifyBusinessDetailsDescription})]}),a.jsxs(Rt,{children:[a.jsx(Nt,{companyOfficerData:w,allNationalityCountries:A,allOfficers:H??[],sectionId:T,isRefreshingViewInBackground:_,connectedAccountProvider:U,productType:"business_verification",updateFilesEntity:ie,onEditFileName:ae,onOfficerAddressClick:te,onDeleteFile:se,isDisabled:I,filesEndPoint:r,authParams:z,isPopupOpen:J,openPopup:Qe,onGetOtp:Ae,onVerifyOtp:_e,onResendOtp:ze,companyTitles:E,isForTreasury:y==="zeni_treasury",isOverlay:h}),a.jsx(jt,{companyDetails:l,businessVerificationProps:{companyVerificationStatus:N,isRefreshingViewInBackground:_},productType:"business_verification",showTreasuryFields:y==="zeni_treasury",sectionId:b,isDisabled:N?.code==="pending_review"||N?.code==="verified"?"readonly":I,fileProps:{authParams:z,filesEndPoint:r,onEditFileName:ae,onDeleteFile:se,updateFilesEntity:ie},onCompanyAddressClick:te,onRegisteredAddressClick:Le,connectedAccountProvider:U,allIndustries:B})]}),y==="zeni_accounts"?a.jsx(Ut,{windowSize:m,children:i.threadText.replace("__amount__",rt)}):null]})})]}),F==="Completed"&&(y==="zeni_treasury"?Q?.companyVerificationStatus?.code!=="pending_review"&&Q?.companyVerificationStatus?.code!=="verified":K?.businessVerificationStatus?.code!=="pending_review"&&K?.businessVerificationStatus?.code!=="verified")?a.jsx(bt,{formId:Ne($e),primaryBtn:{label:S?Ie.submit:i.sendForVerificationButton,style:{width:"auto",minWidth:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="verification"&&R.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?Ie.back:i.saveDetailsButton,style:{width:m==="small"?"auto":S?"83px":"181px"},isLoading:M==="save"&&R.fetchState==="In-Progress",onClick:()=>{if(S)V();else{const e=w[D],s=l?.primaryContactLocalData;M!=="save"&&re("save");const c=e?.email??"",f=Ze(),C=et();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),Me?.(D))}}},helperText:Je,style:{padding:`12px ${o.sp3}`,zIndex:J?0:4}}):null]})},Lt=(t,A,F,_)=>{const{companyDetailsLocalData:r,companyOfficerLocalData:z,companyView:y}=t,B=Pe.getLocalizedStrings().companyPassport,E=y?.companyOfficers!=null&&y?.companyOfficers.length>0;return{[b]:{companyDescription:r?.companyDescription??"",ein:r?.companyFiles.find(u=>u.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(u=>u.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(u=>u.fileId)??[],certificateOfIncorporation:r?.companyFiles.find(u=>u.documentType==="certificate_of_incorporation"),incDate:r?.incDate?.toDate(),typeOfIncorporation:{selectedOption:r?.typeOfIncorporation,allOptions:B.companyIncInfo.allTypesOfIncorporation},sourceOfFunds:{selectedOption:r?.sourceOfFunds??"",allOptions:Object.keys(i.sourceOfFundOptions)}},[T]:Object.values(z).map((u,I)=>{const n=u,h=Tt(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:vt(n?.nationalityCountryCode,_.map(g=>g.countryCode)),ssn:n?.ssn,role:{selectedOption:n?.titleAtCompany,allOptions:F?.map(g=>g.code)},phone:n?.phone??"",ownership:n?.ownershipInCompany,officerAddress:n?.addressStatus?.addressToCreate,selectDocument:{front:De(!0,n?.userFiles??[],h),back:De(!1,n?.userFiles??[],h),selectDocumentType:h},isSelectedForVerification:!E&&I===0?!0:n?.isSelectedForVerification??!1,userVerificationStatus:n?.userVerificationStatus,treasuryUserVerificationStatus:n?.treasuryUserVerificationStatus,syncToken:n?.syncToken,isPhoneVerified:n?.isPhoneVerified,otpChallenge:n?.otpChallenge}})}},Ne=t=>`${t}_form`,At=d.div`
2
2
  display: flex;
3
3
  min-height: 100%;
4
4
  flex-direction: column;
@@ -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-BNH5gTAb.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-DoBZ9eO3.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{c as k,q as f,j as t,bF as te,F as w,ft as P,C as u,b3 as J,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 Q,jd as X,iW as me,cM as ge,cP as xe,an as T,iX as we,iY as ue}from"./index-BNH5gTAb.js";import{n as o,w as R,b as V}from"./vendor-Bs1fkIUX.js";import{q as ye}from"./InsightsSection-9aVhHxu0-3ZWqqEXv.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-DrEAFxpz-B6u6Mzuu.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{c as k,q as f,j as t,bF as te,F as w,ft as P,C as u,b3 as J,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 Q,jd as X,iW as me,cM as ge,cP as xe,an as T,iX as we,iY as ue}from"./index-DoBZ9eO3.js";import{n as o,w as R,b as V}from"./vendor-Bs1fkIUX.js";import{q as ye}from"./InsightsSection-9aVhHxu0-CGwFWXzX.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-DrEAFxpz-BnvcN6kv.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{c 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 X,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,K 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 St,fZ as Tr,m as bt,b3 as qi,dG as Ji,cH as Ki,cE as Xi,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,a 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 bo,eF as So,cu as $o,cv as vo}from"./index-BNH5gTAb.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-DrEAFxpz-B6u6Mzuu.js";import{L as Lo,H as pt,U as Ba,M as Io,F as Do,_ as Ao}from"./ChargeCardUtils-CjQgqDbz-CjjWlpC7.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-gZk_X-XR-CH7v6MNz.js";import{r as Nr}from"./mui-Ty75qFQF.js";import{f as Br}from"./uploadReceipts-CQ7whQyJ-jsBFF7ZN.js";import{L as Oo,P as Ho,k as No,R as Bo}from"./LockCardPage-62coj_g_-CHjApcyX.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-BXNPbq51-BaVWsgPs.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:S,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:R,setWalletType:b,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:S,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:S,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:()=>{b("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:S,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:()=>{b("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:S,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":X("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":X("add-to-apple-wallet-button")})},Uo=r.div`
1
+ import{c 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 X,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,K 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 St,fZ as Tr,m as bt,b3 as qi,dG as Ji,cH as Ki,cE as Xi,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,a 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 bo,eF as So,cu as $o,cv as vo}from"./index-DoBZ9eO3.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-DrEAFxpz-BnvcN6kv.js";import{L as Lo,H as pt,U as Ba,M as Io,F as Do,_ as Ao}from"./ChargeCardUtils-CjQgqDbz-DRoRvzTL.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-gZk_X-XR-C8qzit8R.js";import{r as Nr}from"./mui-Ty75qFQF.js";import{f as Br}from"./uploadReceipts-CQ7whQyJ-LTC-UytC.js";import{L as Oo,P as Ho,k as No,R as Bo}from"./LockCardPage-62coj_g_-NIgt4Xvt.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-BXNPbq51-cZa09h6P.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:S,appleWalletLink:k,googleWalletLink:L,style:p,showDrawerAnimation:R,setWalletType:b,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:S,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:S,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:()=>{b("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:S,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:()=>{b("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:S,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":X("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":X("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 Ha,l as te,f_ as U,q as Le,F as Pe,o as a,c as Kt,j as t,bF as Ja,gh as qa,ft as ae,C as R,c5 as rt,h as m,aN as ue,aX as it,aM as nt,y as V,ai as ie,O as Ka,H as Xa,d8 as Za,au as Xt,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,a as Tt,u as z,dq as sr,ar as dr,am as cr,L as lr,d7 as ur,bz as hr,c7 as mr}from"./index-BNH5gTAb.js";import{b as c,n as r,i as ct,k as pr}from"./vendor-Bs1fkIUX.js";import{X as Cr}from"./SpendManagementSection-CkjbKHuA-DL8Jhv_8.js";import{A as re,a as gr,l as br}from"./ChargeCardListTable-SwxRmQUm-DmxNdOn0.js";import{ChargeCardPromoUserContent as fr}from"./ChargeCardPromoPage-gaKf1tn--CeCza0Wj.js";import{N as xr,J as Sr}from"./PromoBaseCards-DnMnpK-a-CsVLXV-m.js";import{P as Rt,L as Dt,k as yr,R as wr}from"./LockCardPage-62coj_g_-CHjApcyX.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-BZ3MfCWq-BlYX38pO.js";import"./RoleWithToolTip-BXNPbq51-BaVWsgPs.js";import"./CardNumberSubText-gZk_X-XR-CH7v6MNz.js";import"./ChargeCardUtils-CjQgqDbz-CjjWlpC7.js";import"./MeetingCalenderPopup-DeDqhOVG-BjtXMoON.js";import"./NavigationDots-DrEAFxpz-B6u6Mzuu.js";import"./usp-line-BBd1wKwW-ZlUrfnG1.js";const lt={infoSubheadingTextMarginTop:new V(z[0],z[0]),cardsMinWidth:new V(343,353)},Mt=Pe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Bt=({cardPromoType:e,cardText:l,header:h,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:h}),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:h,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:h})}),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(Vr,{children:[t.jsx(Wr,{children:Mt.creditLimit}),t.jsx(Gr,{children:d})]}):null]})})},jr=e=>{const l=e-1;let h=`
1
+ import{a9 as Ga,aP as N,ax as Ya,g3 as Ha,l as te,f_ as U,q as Le,F as Pe,o as a,c as Kt,j as t,bF as Ja,gh as qa,ft as ae,C as R,c5 as rt,h as m,aN as ue,aX as it,aM as nt,y as V,ai as ie,O as Ka,H as Xa,d8 as Za,au as Xt,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,a as Tt,u as z,dq as sr,ar as dr,am as cr,L as lr,d7 as ur,bz as hr,c7 as mr}from"./index-DoBZ9eO3.js";import{b as c,n as r,i as ct,k as pr}from"./vendor-Bs1fkIUX.js";import{X as Cr}from"./SpendManagementSection-CkjbKHuA-BrSfj2hB.js";import{A as re,a as gr,l as br}from"./ChargeCardListTable-SwxRmQUm-B_W5OISN.js";import{ChargeCardPromoUserContent as fr}from"./ChargeCardPromoPage-gaKf1tn--KwAgWHSg.js";import{N as xr,J as Sr}from"./PromoBaseCards-DnMnpK-a-Cz6aCHL9.js";import{P as Rt,L as Dt,k as yr,R as wr}from"./LockCardPage-62coj_g_-NIgt4Xvt.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-BZ3MfCWq-BWn-MU6e.js";import"./RoleWithToolTip-BXNPbq51-cZa09h6P.js";import"./CardNumberSubText-gZk_X-XR-C8qzit8R.js";import"./ChargeCardUtils-CjQgqDbz-DRoRvzTL.js";import"./MeetingCalenderPopup-DeDqhOVG-C5rpEr0y.js";import"./NavigationDots-DrEAFxpz-BnvcN6kv.js";import"./usp-line-BBd1wKwW-ZlUrfnG1.js";const lt={infoSubheadingTextMarginTop:new V(z[0],z[0]),cardsMinWidth:new V(343,353)},Mt=Pe.getLocalizedStrings().spendManagement.chargeCard.chargeCardsPromo.listPage,Bt=({cardPromoType:e,cardText:l,header:h,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:h}),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:h,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:h})}),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(Vr,{children:[t.jsx(Wr,{children:Mt.creditLimit}),t.jsx(Gr,{children:d})]}):null]})})},jr=e=>{const l=e-1;let h=`
2
2
  0% {
3
3
  transform: translateY(0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as t,cr as ni,aa as li,F as ae,ad as di,q as te,ax as Se,a9 as ci,c as Le,fX as hi,iM as pi,iN as ui,iO as mi,aQ as gi,o as i,aM as q,cA as xi,C as Re,h as b,b3 as wi,cH as Ci,iP as fi,iQ as Si,c5 as fe,bZ as ki,aS as yi,y as C,eT as $i,b9 as vi,iR as ji,aT as bi,M as Ii,ai as Y,fZ as Li,an as X,am as Q,u as p,d3 as zi,dc as Ai,iS as Fi,iT as Pi,O as Ct,ca as ft,iU as St,iV as Ri,c3 as Bi,cM as Xe,dN as Di,dO as K,aN as de,cJ as kt,m as yt,iW as _i,cP as Ei,iG as Qe,bP as $t,bX as vt,iX as Ti,iY as Oi,aU as $e,bx as Vi,cb as Ui,cc as Ni,iZ as Mi}from"./index-BNH5gTAb.js";import{w as he,b as S,n as o,i as Ze}from"./vendor-Bs1fkIUX.js";import{P as Te}from"./Menu-BZ3MfCWq-BlYX38pO.js";import{T as jt}from"./RoleWithToolTip-BXNPbq51-BaVWsgPs.js";import{f as Oe}from"./CardNumberSubText-gZk_X-XR-CH7v6MNz.js";import{_ as bt}from"./ChargeCardUtils-CjQgqDbz-CjjWlpC7.js";const ge=ae.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ae.getLocalizedStrings().common.strings.empty,Ge={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Je={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},Ye={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},et={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},tt={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},it={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},It=e=>e===!0?[{...Ge,width:new C(0,0),value:Wi},Je,Ye,et,tt,it]:[Ge,Je,Ye,et,tt,it],{common:we,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=ae.getLocalizedStrings(),oe={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new Ct("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:l,unlockChargeCardsFetchState:d,cardsSelectedForBulkAction:c,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:m,index:v,onChargeCardRowClick:y,onChargeCardResendInviteClick:$})=>{const[h,g]=S.useState(!1),[f,F]=S.useState(!1);S.useEffect(()=>{h||F(!1)},[h]);const P=r.cardId===a.id,R=c.includes(a.id),I=P&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||R&&d==="In-Progress",V=P&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||R&&l==="In-Progress",u=I||V,k=te(),D=!!Se().loggedInUserRole.includes("charge_card_user")||x,U=S.useCallback(()=>{y(a.id,v)},[a.id]),E=bt(a)/a.limit.amount*100,N=a?.cardHolderUserId===w.userId,L=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",T=Di(a.cardHolderUser,!1),ee=a.balance,M=It(D),ne=t.jsxs(t.Fragment,{children:[t.jsx(K,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:de("0,0.[00]",ee),className:"amountToUtilize",children:de("0,0.[00]",ee)})}),E!==0?t.jsx(K,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(E)}${Hi}`})}):null]}),Z=a.type.code,B=j.cardList.tooltip[Z],le=B!=null?N?B.self:`${T} ${B.cardUser}`:we.strings.empty;return t.jsx(Zi,{windowSize:k,children:t.jsx(Gi,{onClick:U,"data-testid":q("card-row",a.id),children:t.jsxs(Yi,{children:[D?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:k,responsiveWidth:M[0].width,children:[t.jsx(K,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(kt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(K,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:k,title:T,className:"cardHolderName",children:T===we.strings.empty?we.strings.hyphen:T})})}),t.jsx(K,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(at,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(jt,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:k,responsiveWidth:M[1].width,children:[t.jsx(K,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(K,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:k,className:"cardNameSubText",children:a.status.code==="request_on_hold"?we.strings.hyphen:j.cardDetails.expiryHideOut+we.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:k,responsiveWidth:M[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(K,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(nt,{windowSize:k,isLoading:u,responsiveWidth:M[3].width,children:t.jsx(K,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:m===a.id?t.jsx(yt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(fe,{display:"flex",title:le,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Ie,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Ie,{status:a.status.code})}),a.status.code==="request_on_hold"&&!N?t.jsx(xo,{onClick:H=>{H.stopPropagation(),$(a.id)},"data-testid":q("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(nt,{windowSize:k,isLoading:u,responsiveWidth:M[4].width,children:ne})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:k,responsiveWidth:M[5].width,children:[t.jsxs(ro,{windowSize:k,isLoading:u,children:[t.jsx(K,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:k,title:de("0,0.[00]",a.limit),children:de("0,0.[00]",a.limit)})}),t.jsx(at,{className:"additionalInfoContainer",children:t.jsx(K,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&L&&F(!0)},onMouseLeave:()=>{L&&F(!1)},children:(()=>{const H=a.status.code==="locked",ie=a.status.code==="closed"||a.status.code==="closed_by_customer";return(D?n&&!u&&!ie&&!(H&&a.isLockedByAdmin):n?!u&&L:a.status.code==="request_on_hold")&&t.jsx(fe,{open:f&&!h,variant:"standard",title:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Lt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:D,setIsMenuOpen:g,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:g,isMenuOpen:h,menuIconStyles:{height:"auto"}})})})()})]})})]})})})},Lt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:l,setCardIdForRowAction:d,setActionTypeForRowAction:c})=>{const a=te();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("revoke_invite")},children:[t.jsx(Ji,{}),t.jsx(Ce,{children:j.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("close")},children:[t.jsx(Pe,{}),t.jsx(Ce,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("unlock")},children:[t.jsx(rt,{}),t.jsx(W,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("unlock")},children:[t.jsx(rt,{}),t.jsx(W,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(W,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(ve,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("close")},children:[t.jsx(Pe,{}),t.jsx(Ce,{children:j.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("lock")},children:[t.jsx(st,{}),t.jsx(W,{children:j.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(W,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("lock")},children:[t.jsx(st,{}),t.jsx(W,{children:j.cardDetails.moreOptions.lock})]}),t.jsx(ve,{}),t.jsxs(z,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("close")},children:[t.jsx(Pe,{}),t.jsx(Ce,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("revoke_invite")},children:t.jsx(Ce,{children:j.cardDetails.revokeInvite})}):null},Ie=({status:e,style:s})=>{const r=Le(),l=Qi(e,r),d=ae.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return te()==="small"?t.jsx(Qe,{textColor:l,text:d[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:l,text:d[e],styles:s,tagStyles:{padding:"1px 6px"}})},Qi=(e,s)=>{switch(e){case"active":return new $e(b.success);case"request_on_hold":return new $e(b.graphColor36);case"inactive":return new $e(b.alert);default:return new $e(s.colors.grey1)}},W=o(Q)`
1
+ import{j as t,cr as ni,aa as li,F as ae,ad as di,q as te,ax as Se,a9 as ci,c as Le,fX as hi,iM as pi,iN as ui,iO as mi,aQ as gi,o as i,aM as q,cA as xi,C as Re,h as b,b3 as wi,cH as Ci,iP as fi,iQ as Si,c5 as fe,bZ as ki,aS as yi,y as C,eT as $i,b9 as vi,iR as ji,aT as bi,M as Ii,ai as Y,fZ as Li,an as X,am as Q,u as p,d3 as zi,dc as Ai,iS as Fi,iT as Pi,O as Ct,ca as ft,iU as St,iV as Ri,c3 as Bi,cM as Xe,dN as Di,dO as K,aN as de,cJ as kt,m as yt,iW as _i,cP as Ei,iG as Qe,bP as $t,bX as vt,iX as Ti,iY as Oi,aU as $e,bx as Vi,cb as Ui,cc as Ni,iZ as Mi}from"./index-DoBZ9eO3.js";import{w as he,b as S,n as o,i as Ze}from"./vendor-Bs1fkIUX.js";import{P as Te}from"./Menu-BZ3MfCWq-BWn-MU6e.js";import{T as jt}from"./RoleWithToolTip-BXNPbq51-cZa09h6P.js";import{f as Oe}from"./CardNumberSubText-gZk_X-XR-C8qzit8R.js";import{_ as bt}from"./ChargeCardUtils-CjQgqDbz-DRoRvzTL.js";const ge=ae.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Wi=ae.getLocalizedStrings().common.strings.empty,Ge={key:"owner",value:ge.owner,sortOrder:"ascending",width:new C(120,120,160,200,200)},Je={key:"cardName",value:ge.cardName,sortOrder:"ascending",width:new C(120,120,160,171,171)},Ye={key:"cardType",value:ge.cardType,sortOrder:"ascending",width:new C(120,120,130,170,170)},et={key:"status",value:ge.status,sortOrder:"ascending",width:new C(115,115,125,132,132)},tt={key:"utilisation",value:ge.utilisation,sortOrder:"ascending",width:new C(p[11],p[11],p[11],p[12],120)},it={key:"limit",value:ge.limit,sortOrder:"ascending",width:new C(68,68,68,120,120)},It=e=>e===!0?[{...Ge,width:new C(0,0),value:Wi},Je,Ye,et,tt,it]:[Ge,Je,Ye,et,tt,it],{common:we,spendManagement:{billPay:{paymentDetails:{feePercent:Hi}},chargeCard:j}}=ae.getLocalizedStrings(),oe={containerPaddingLeft:new C(p[3],p[2]),containerPaddingRight:new C(p[2],p[3]),containerPaddingTop:new C(p[2],p[3]),containerPaddingBottom:new C(p[2],p[3]),containerMarginLeft:new C(p[4],p[0]),containerMarginRight:new C(p[4],p[0]),webkitLineClamp:new C(2,1,1,1,1)};var Ki=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Ki||{});const qi={moreItemFont:new Ct("extraSmallRegular","smallRegular")},Xi=({setCardIdForRowAction:e,setActionTypeForRowAction:s,rowActionView:r,revokeChargeCardsInviteFetchState:l,unlockChargeCardsFetchState:d,cardsSelectedForBulkAction:c,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:x,signedInUser:w,resendInviteId:m,index:v,onChargeCardRowClick:y,onChargeCardResendInviteClick:$})=>{const[h,g]=S.useState(!1),[f,F]=S.useState(!1);S.useEffect(()=>{h||F(!1)},[h]);const P=r.cardId===a.id,R=c.includes(a.id),I=P&&r.unlockChargeCardsFetchState.fetchState==="In-Progress"||R&&d==="In-Progress",V=P&&r.revokeChargeCardFetchState.fetchState==="In-Progress"||R&&l==="In-Progress",u=I||V,k=te(),D=!!Se().loggedInUserRole.includes("charge_card_user")||x,U=S.useCallback(()=>{y(a.id,v)},[a.id]),E=bt(a)/a.limit.amount*100,N=a?.cardHolderUserId===w.userId,L=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",T=Di(a.cardHolderUser,!1),ee=a.balance,M=It(D),ne=t.jsxs(t.Fragment,{children:[t.jsx(K,{isLoading:u,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(uo,{title:de("0,0.[00]",ee),className:"amountToUtilize",children:de("0,0.[00]",ee)})}),E!==0?t.jsx(K,{isLoading:u,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(mo,{className:"amountToUtilize",children:`${Math.round(E)}${Hi}`})}):null]}),Z=a.type.code,B=j.cardList.tooltip[Z],le=B!=null?N?B.self:`${T} ${B.cardUser}`:we.strings.empty;return t.jsx(Zi,{windowSize:k,children:t.jsx(Gi,{onClick:U,"data-testid":q("card-row",a.id),children:t.jsxs(Yi,{children:[D?null:t.jsx(ue,{children:t.jsxs(eo,{windowSize:k,responsiveWidth:M[0].width,children:[t.jsx(K,{isLoading:u,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(kt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(io,{isLoading:u,children:[t.jsx(to,{isLoading:u,children:t.jsx(K,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(oo,{windowSize:k,title:T,className:"cardHolderName",children:T===we.strings.empty?we.strings.hyphen:T})})}),t.jsx(K,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(at,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(jt,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(ue,{children:t.jsxs(no,{isLoading:u,windowSize:k,responsiveWidth:M[1].width,children:[t.jsx(K,{isLoading:u,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(lo,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(K,{isLoading:u,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(So,{windowSize:k,className:"cardNameSubText",children:a.status.code==="request_on_hold"?we.strings.hyphen:j.cardDetails.expiryHideOut+we.strings.space+a.accountLast4})]})]})}),t.jsx(ue,{children:t.jsx(co,{windowSize:k,responsiveWidth:M[2].width,children:t.jsx(ho,{className:"card-type",children:t.jsx(K,{isLoading:u,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Oe,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(ue,{children:t.jsx(nt,{windowSize:k,isLoading:u,responsiveWidth:M[3].width,children:t.jsx(K,{isLoading:u,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:m===a.id?t.jsx(yt,{size:"Small",start:!0}):t.jsxs(po,{children:[t.jsx(wo,{children:a.status.code==="request_on_hold"?t.jsxs(fe,{display:"flex",title:le,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Ie,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(go,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Ie,{status:a.status.code})}),a.status.code==="request_on_hold"&&!N?t.jsx(xo,{onClick:H=>{H.stopPropagation(),$(a.id)},"data-testid":q("send-reminder",a.id),children:j.cardList.sendReminder}):null]})})})}),t.jsx(ue,{children:t.jsx(nt,{windowSize:k,isLoading:u,responsiveWidth:M[4].width,children:ne})}),t.jsx(ue,{children:t.jsxs(so,{windowSize:k,responsiveWidth:M[5].width,children:[t.jsxs(ro,{windowSize:k,isLoading:u,children:[t.jsx(K,{isLoading:u,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{className:"limitAmount",windowSize:k,title:de("0,0.[00]",a.limit),children:de("0,0.[00]",a.limit)})}),t.jsx(at,{className:"additionalInfoContainer",children:t.jsx(K,{isLoading:u,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(Co,{className:"menu-icon",onMouseEnter:()=>{!h&&L&&F(!0)},onMouseLeave:()=>{L&&F(!1)},children:(()=>{const H=a.status.code==="locked",ie=a.status.code==="closed"||a.status.code==="closed_by_customer";return(D?n&&!u&&!ie&&!(H&&a.isLockedByAdmin):n?!u&&L:a.status.code==="request_on_hold")&&t.jsx(fe,{open:f&&!h,variant:"standard",title:j.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Te,{isMenuVisible:!0,menuItems:t.jsx(fo,{children:t.jsx(Lt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:D,setIsMenuOpen:g,setCardIdForRowAction:e,setActionTypeForRowAction:s})}),setIsMenuOpen:g,isMenuOpen:h,menuIconStyles:{height:"auto"}})})})()})]})})]})})})},Lt=({cardDetail:e,isCardControlsEnabled:s,isChargeCardUser:r,setIsMenuOpen:l,setCardIdForRowAction:d,setActionTypeForRowAction:c})=>{const a=te();return s?e.status.code==="request_on_hold"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("revoke_invite")},children:[t.jsx(Ji,{}),t.jsx(Ce,{children:j.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsx(ve,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("close")},children:[t.jsx(Pe,{}),t.jsx(Ce,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("unlock")},children:[t.jsx(rt,{}),t.jsx(W,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("unlock")},children:[t.jsx(rt,{}),t.jsx(W,{children:j.cardDetails.moreOptions.unlock})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(W,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(ve,{}),t.jsxs(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("close")},children:[t.jsx(Pe,{}),t.jsx(Ce,{children:j.cardDetails.moreOptions.close})]})]}):r?t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("lock")},children:[t.jsx(st,{}),t.jsx(W,{children:j.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("update_spend_limit")},children:[t.jsx(ot,{}),t.jsx(W,{children:j.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("rename")},children:[t.jsx(pe,{}),t.jsx(W,{children:j.cardDetails.moreOptions.rename})]}),t.jsxs(z,{windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("lock")},children:[t.jsx(st,{}),t.jsx(W,{children:j.cardDetails.moreOptions.lock})]}),t.jsx(ve,{}),t.jsxs(z,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("close")},children:[t.jsx(Pe,{}),t.jsx(Ce,{children:j.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(z,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),l(!1),d(e.id),c("revoke_invite")},children:t.jsx(Ce,{children:j.cardDetails.revokeInvite})}):null},Ie=({status:e,style:s})=>{const r=Le(),l=Qi(e,r),d=ae.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return te()==="small"?t.jsx(Qe,{textColor:l,text:d[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...s}}):t.jsx(Qe,{textColor:l,text:d[e],styles:s,tagStyles:{padding:"1px 6px"}})},Qi=(e,s)=>{switch(e){case"active":return new $e(b.success);case"request_on_hold":return new $e(b.graphColor36);case"inactive":return new $e(b.alert);default:return new $e(s.colors.grey1)}},W=o(Q)`
2
2
  color: inherit;
3
3
  `,Ce=o(Q)`
4
4
  color: ${b.important};