@zeniai/web-cockpit-ui 1.14.79-dev → 1.14.79-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 (214) hide show
  1. package/dist/assets/{ACHDetailsPage-j4JNO3IQ-DZwXjaYe.js → ACHDetailsPage-j4JNO3IQ-BHhGgI26.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-CNG7aTfz-ByLT1giy.js → AIPerformancePage-CNG7aTfz-DUNseNrM.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-BVpgtpjn-CRJkHtfD.js → AccountInfoPage-BVpgtpjn-BKyjTjql.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-svFkdLZF-Dck8IKsA.js → AccountInfoPageContent-svFkdLZF-Bd3YdKhC.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DzhSmib1-C9QbZ4Sq.js → AccountLockedInfoModal-DzhSmib1-Dio2vJew.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-aYf6TvuI-B5qaqiZf.js → AccountReconDetailsDrawerPage-aYf6TvuI-CPMgfhmY.js} +1 -1
  7. package/dist/assets/{AccountRow-xHV9Yzsk-CZNNz30p.js → AccountRow-xHV9Yzsk-CcYYoZk4.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-Cs-YITW7-Hd5SzpCo.js → AccountsPromoCardStack-Cs-YITW7-CanRnX4U.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-DiGB7l03-CmEFT3Er.js → AddAddressForCardDrawer-DiGB7l03-DakQLx9H.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CprZWzj5-BakDacQA.js → AddToWalletPage-CprZWzj5-Gh0dQ54a.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-CBZR7oTp-BZCq4BYl.js → AgingReportsPage-CBZR7oTp-DQO1z_v6.js} +1 -1
  12. package/dist/assets/{AllUserItems-D0u1RDRE-ipL3oc8h.js → AllUserItems-D0u1RDRE-CltKG786.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-DxQVbb_W-D4F7L5w8.js → ApAgingDetailPage-DxQVbb_W-Co_clvTs.js} +1 -1
  14. package/dist/assets/{AppBasePage-8cD38AON-Bv1b3MDJ.js → AppBasePage-8cD38AON-kNb3hzTl.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-BhGeEfXG-Cv5yraDL.js → AppDrawerContent-BhGeEfXG-D-BuAngH.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-DWqT-nJr-DV6y6bfo.js → ApprovalRulesSettingsPage-DWqT-nJr-DljU9KGl.js} +1 -1
  17. package/dist/assets/{ArAgingChart-Cl9eYWme-D4x57reI.js → ArAgingChart-Cl9eYWme-Alz4neVG.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-B2Ff_g98-BpsUHuXs.js → ArAgingDetailPage-B2Ff_g98-DtV-A1yG.js} +1 -1
  19. package/dist/assets/{AttachmentView-BIbRF-3X-Cok0qaj9.js → AttachmentView-BIbRF-3X-CoNCCzcL.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BDrAeJ70-B0AXd-kV.js → BankAccountSection-BDrAeJ70-Dtt10uGy.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-BTPo5pdy-D6XMje9X.js → BankAccountWarningSection-BTPo5pdy-BIkTS_oc.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-CzZwW_SU-BHmOf_le.js → BankConnectionsSettingsPage-CzZwW_SU-BMxHqJ0X.js} +1 -1
  23. package/dist/assets/{BillDetailPage-Bn-CiUuG-B45uCcxO.js → BillDetailPage-Bn-CiUuG-si3fsHIq.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-i68_I6H2-D7dOlUHO.js → BillPayApprovalRuleDetailPage-i68_I6H2-BKlpjI77.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DkmJGEgG-BFickLBt.js → BillPayApprovalRulesPage-DkmJGEgG-Bx99_3QM.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DRt9tQT--DZuZkAvH.js → BillPayPromoPage-DRt9tQT--BfyjKTaZ.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-C3ywd8Iu-CVz2Z3oH.js → BillPaySetUpPage-C3ywd8Iu-BGy13RCz.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-B6Rl84dk-C3RLYnCx.js → BillingSettingsPage-B6Rl84dk-BjDwixpL.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-NmAPo57Q-DcSSgA7d.js → BillsBulkReviewDrawerPage-NmAPo57Q-CywR3Js3.js} +1 -1
  30. package/dist/assets/{BoxItem-ZnOFxLhz-DKhyJw9C.js → BoxItem-ZnOFxLhz-DbtkZ3hl.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-Bwv4R_0h-BJhupcai.js → BusinessVerificationPage-Bwv4R_0h-Cc1L03Ai.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-BxtaVqzM-CMqR0afZ.js → CardNumberSubText-BxtaVqzM-CZyhZrnH.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-DdFp7IoE-gLQiApoM.js → CashbackDetailPage-DdFp7IoE-C8hHevZd.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-rp9FP4rS-CE1i3fa-.js → ChargeCardDetailPage-rp9FP4rS-CIKWGhzI.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-32PLUoSW-BMdH3gWe.js → ChargeCardListPage-32PLUoSW-DJFt6svT.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-Bv7elMJ1-B1B6-ugf.js → ChargeCardListTable-Bv7elMJ1-Bvdcil7f.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-BV_aiA0u-CHGz0wjx.js → ChargeCardPromoPage-BV_aiA0u-BKUb1zQt.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-ZMgwk-VD-CNyOVMH8.js → ChargeCardSetupPage-ZMgwk-VD-BD05kJt0.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-mcqyfzob-DDHTo07y.js → ChargeCardStatementsPage-mcqyfzob-B57WGNrt.js} +1 -1
  40. package/dist/assets/{CheckDepositDrawerPage-CRGYq_qa-4vv3xZTB.js → CheckDepositDrawerPage-CRGYq_qa-COCoSZYL.js} +1 -1
  41. package/dist/assets/{CollapsableReportTable-glf9uKtI-D-nxEdV7.js → CollapsableReportTable-glf9uKtI-CdQq-fOe.js} +1 -1
  42. package/dist/assets/{CompanyOfficerDetailsSection-CdanXlrz-Dn3Wp3NO.js → CompanyOfficerDetailsSection-CdanXlrz-BRi9YeRg.js} +1 -1
  43. package/dist/assets/{CompanyPassportCard-C8nS1jDQ-CqwxBPjD.js → CompanyPassportCard-C8nS1jDQ-CnYA4Hk7.js} +1 -1
  44. package/dist/assets/{CompanyPassportPage-BpNyi6tO-CqTB5nYD.js → CompanyPassportPage-BpNyi6tO-IOruzP_J.js} +1 -1
  45. package/dist/assets/{CompleteProfile-ACJcfhGc-B24jkr39.js → CompleteProfile-ACJcfhGc-DTFkBmPT.js} +1 -1
  46. package/dist/assets/{ConfettiBurst-BZPrXaJE-jBn53LD6.js → ConfettiBurst-BZPrXaJE-DtJHxTkj.js} +1 -1
  47. package/dist/assets/{CreateOrEditVendorPage-BfTeQwp7-yGTbNRfs.js → CreateOrEditVendorPage-BfTeQwp7-BKHgvt2c.js} +1 -1
  48. package/dist/assets/{CreditCardPaymentDrawerPage-DZUp-rci-B2PgnTJb.js → CreditCardPaymentDrawerPage-DZUp-rci-Ce_MP0rZ.js} +1 -1
  49. package/dist/assets/{CurrencySelectField-DRXrLcWA-Bh7zFllo.js → CurrencySelectField-DRXrLcWA-C4LCLKXI.js} +1 -1
  50. package/dist/assets/{CustomerOnboardingActivationPage-DK4TnOIi-D1a6GJBs.js → CustomerOnboardingActivationPage-DK4TnOIi-D2u25U8Z.js} +1 -1
  51. package/dist/assets/CustomerOnboardingContainerPage-CQgMjQDK-DpvGZFTz.js +1 -0
  52. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-D3vA19Yo.js → CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-DOikq0im.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingNoStepsPage-EpsMZ_Qt-DQPB4x6A.js → CustomerOnboardingNoStepsPage-EpsMZ_Qt-CWfgH52u.js} +1 -1
  54. package/dist/assets/{CustomerOnboardingPage-DDojksav-DOAwZmZB.js → CustomerOnboardingPage-DDojksav-CwtcM3A7.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingProductSuitePage-Bm4Nwwmd-Cq27rRbY.js → CustomerOnboardingProductSuitePage-Bm4Nwwmd-C_8ky-CB.js} +1 -1
  56. package/dist/assets/{Dashboard-D8wzbSIZ-D_V5lbCj.js → Dashboard-D8wzbSIZ-vAN4eHQQ.js} +1 -1
  57. package/dist/assets/{DashboardReportPage-DwvPyvWG-Cx7rXUHq.js → DashboardReportPage-DwvPyvWG-CR5EoCRq.js} +1 -1
  58. package/dist/assets/{DashboardSidebarBackgroundAnimation-E0F5oXdJ-EVQ6SJjV.js → DashboardSidebarBackgroundAnimation-E0F5oXdJ-COdmMRq_.js} +1 -1
  59. package/dist/assets/{DepositAccTransactionItem-VycRC1Bv-CkPoT6Oz.js → DepositAccTransactionItem-VycRC1Bv-BH46Xc2M.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionListPage-DjTU-RF4-wz8wGvz-.js → DepositAccTransactionListPage-DjTU-RF4-CRxMfEnr.js} +1 -1
  61. package/dist/assets/{DomesticWireDetailsPage-5zPT8ITm-CkeB8NxL.js → DomesticWireDetailsPage-5zPT8ITm-CmyhEAbY.js} +1 -1
  62. package/dist/assets/{DownloadOverlay-BZsj9dyx-GOfHxXY7.js → DownloadOverlay-BZsj9dyx-0LYNZ_cz.js} +1 -1
  63. package/dist/assets/{DrawerPage-BQUw2Amk-CmVw3iuX.js → DrawerPage-BQUw2Amk-CqpQ4yqr.js} +1 -1
  64. package/dist/assets/{EditPeoplePage-3KVDuHwT-BcGapI_y.js → EditPeoplePage-3KVDuHwT-DR5cpVqI.js} +1 -1
  65. package/dist/assets/{EditReimbursementDetailPage-CdRPMJwN-DwQ4xeUH.js → EditReimbursementDetailPage-CdRPMJwN-CX3JkQ8T.js} +1 -1
  66. package/dist/assets/{EntityDetailPage-CJqZR-E9-BS_ITL6L.js → EntityDetailPage-CJqZR-E9-BJnbRl7M.js} +1 -1
  67. package/dist/assets/{EntitySummarySection-BF5V45LM-xY6NR8qD.js → EntitySummarySection-BF5V45LM-BnTQ-oGb.js} +1 -1
  68. package/dist/assets/{ExpenseAutomationOverviewPage-B_bztlf--DQjQ94z8.js → ExpenseAutomationOverviewPage-B_bztlf--C4lShWGV.js} +1 -1
  69. package/dist/assets/{ExpenseAutomationPage-BA7_y5_3-pHW-g00V.js → ExpenseAutomationPage-BA7_y5_3-CYAzU83c.js} +1 -1
  70. package/dist/assets/{ExpressPayPage-BeEr16JK-cml0agCn.js → ExpressPayPage-BeEr16JK-hX5MvqOm.js} +1 -1
  71. package/dist/assets/{FeaturePreviewPage-Klc6eSCe-DeJf3_eQ.js → FeaturePreviewPage-Klc6eSCe-DihW6Vqr.js} +1 -1
  72. package/dist/assets/{FollowStepsSection-CrRVHLR4-B5YmaqyB.js → FollowStepsSection-CrRVHLR4-D5VhqJKd.js} +1 -1
  73. package/dist/assets/{GlobalReviewListPage-Dmzxvsjw-DrYfoAyc.js → GlobalReviewListPage-Dmzxvsjw-XEe0KHo9.js} +1 -1
  74. package/dist/assets/{InformationCardStack-BfAv1aTE-CCC19U9e.js → InformationCardStack-BfAv1aTE-DtT96zUF.js} +1 -1
  75. package/dist/assets/{InsightsCardStack-Dk_4lqqW-DOOCB4EM.js → InsightsCardStack-Dk_4lqqW-bh1XGp8a.js} +1 -1
  76. package/dist/assets/{InsightsSection-BppEncyT-BDJihqTl.js → InsightsSection-BppEncyT-yKKPpa24.js} +1 -1
  77. package/dist/assets/{IntegrationsSettingsPage-NXdyckc2-BTNSaK4J.js → IntegrationsSettingsPage-NXdyckc2-LI5IZBRa.js} +1 -1
  78. package/dist/assets/{InternationalWireSwiftDetailsPage-CweiTxZU-Dnlrkyu-.js → InternationalWireSwiftDetailsPage-CweiTxZU-Qy_2qDWc.js} +1 -1
  79. package/dist/assets/{InternationalWireVerificationPage-CPAmA53J-CcwdnTX6.js → InternationalWireVerificationPage-CPAmA53J-ChjhwCat.js} +1 -1
  80. package/dist/assets/{InviteFormPage-DfDNpl0g-C69kJLSq.js → InviteFormPage-DfDNpl0g-CRuf18JW.js} +1 -1
  81. package/dist/assets/{InvitePageListView-2OHX1Ccl-BFJNdsL-.js → InvitePageListView-2OHX1Ccl-CyvcrjqM.js} +1 -1
  82. package/dist/assets/{InvitePeoplePage-DYCTjAji-CpY_bSGC.js → InvitePeoplePage-DYCTjAji-CZBsAAFV.js} +1 -1
  83. package/dist/assets/{InvoiceUploadSection-Pi0YXm8t-CXl7GzaP.js → InvoiceUploadSection-Pi0YXm8t-DlqiEsOk.js} +1 -1
  84. package/dist/assets/{IssueChargeCardPage-B4n-yJm0-DG7xcTIZ.js → IssueChargeCardPage-B4n-yJm0-BfEHTeF5.js} +1 -1
  85. package/dist/assets/{LabeledAddressValue-th8pNFFQ-B0qDxR9V.js → LabeledAddressValue-th8pNFFQ-HoS-9_pQ.js} +1 -1
  86. package/dist/assets/{LabeledAddressValueField-Vzwy376C-BitYpYrk.js → LabeledAddressValueField-Vzwy376C-COk-DvtJ.js} +1 -1
  87. package/dist/assets/{LabeledControlledCheckBoxField-BfXa1w7M-CeV_jPQh.js → LabeledControlledCheckBoxField-BfXa1w7M-DMw6ciRC.js} +1 -1
  88. package/dist/assets/{LabeledCreatableSingleSelectField-BH0fo6jF-Dc306_x5.js → LabeledCreatableSingleSelectField-BH0fo6jF-DAQAo0Yv.js} +1 -1
  89. package/dist/assets/{LabeledDocumentField-BZyH5E9V-BN-RbR8k.js → LabeledDocumentField-BZyH5E9V-DwEkfpDT.js} +1 -1
  90. package/dist/assets/{LabeledDropDownFormattedTextField-CvkVTDxj-DN6sJvaA.js → LabeledDropDownFormattedTextField-CvkVTDxj-CPb_3LKX.js} +1 -1
  91. package/dist/assets/{LabeledText-_Q8rFqD8-99Ob32Co.js → LabeledText-_Q8rFqD8-DnyNRSHH.js} +1 -1
  92. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B2N6jIfM-D2iwh8Ni.js → LabeledUserSingleSelectWithSubtitlesField-B2N6jIfM-CZWF-PE7.js} +1 -1
  93. package/dist/assets/{LabeledZeniRolesDropDownField-B0DRb8sq-CyPbXoHH.js → LabeledZeniRolesDropDownField-B0DRb8sq-D1RiFXzE.js} +1 -1
  94. package/dist/assets/{LinkJETransactionPage-BHBuu2SA-Bv1-Mx2H.js → LinkJETransactionPage-BHBuu2SA-ezqtSWls.js} +1 -1
  95. package/dist/assets/{LockCardPage-BFsFKtWa-BII2Pphk.js → LockCardPage-BFsFKtWa-BbKEvnT4.js} +1 -1
  96. package/dist/assets/{LowBalancePopup-D9QOGOd3-D7-UcvqU.js → LowBalancePopup-D9QOGOd3-BzX1lOEc.js} +1 -1
  97. package/dist/assets/{MagicLinkACHDetailsPage-BqiqpLXz-zpNrfy-E.js → MagicLinkACHDetailsPage-BqiqpLXz-BLBY30ZE.js} +1 -1
  98. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D-TCjmel-BCQSh2eF.js → MagicLinkDomesticWireDetailsPage-D-TCjmel-DPguxzxt.js} +1 -1
  99. package/dist/assets/{MagicLinkInternationalWireDetailsPage-idGLQv49-C3Z_it-l.js → MagicLinkInternationalWireDetailsPage-idGLQv49-BstIQG01.js} +1 -1
  100. package/dist/assets/{MagicLinkSuccessPage-DEwTuwlj-CT_qRybN.js → MagicLinkSuccessPage-DEwTuwlj-BZIdHhfs.js} +1 -1
  101. package/dist/assets/{MagicLinkTitleSection-Dgx2XWx1-DOpwhai1.js → MagicLinkTitleSection-Dgx2XWx1-BRRNT1N2.js} +1 -1
  102. package/dist/assets/{MailingDetailsSection-CCGWXG6m-B0trv6G8.js → MailingDetailsSection-CCGWXG6m-BcwXhiPl.js} +1 -1
  103. package/dist/assets/{Menu-CxWXoQj3-BbUMCHIi.js → Menu-CxWXoQj3-jclMn8bn.js} +1 -1
  104. package/dist/assets/{MyBankConnectionsSettingsPage-BF80dR41-D0_YFiW1.js → MyBankConnectionsSettingsPage-BF80dR41-DVcDt2Uo.js} +1 -1
  105. package/dist/assets/{MyPendingActivationChargeCardListPage-C2BkuHD8-CKb_3TJ3.js → MyPendingActivationChargeCardListPage-C2BkuHD8-BFFdBzUU.js} +1 -1
  106. package/dist/assets/{MyProfileSettingsPage-DeT_qJYY-DnbKE1jD.js → MyProfileSettingsPage-DeT_qJYY-B2RDynGO.js} +1 -1
  107. package/dist/assets/{NavBarWithPicker-D6DZ_M1T-BboziToy.js → NavBarWithPicker-D6DZ_M1T-Bg2Yytiu.js} +1 -1
  108. package/dist/assets/{NavigationArrow-Dil_FJg4-BgoujwxW.js → NavigationArrow-Dil_FJg4-LxrDVVh9.js} +1 -1
  109. package/dist/assets/{NavigationDots-BsyNMpig-Cq0OjfYk.js → NavigationDots-BsyNMpig-uwDUONyH.js} +1 -1
  110. package/dist/assets/{NewGlobalMerchantPage-Cp8s11ja-ByDwVKlB.js → NewGlobalMerchantPage-Cp8s11ja-eiS5e0a0.js} +1 -1
  111. package/dist/assets/{NoDataChart-D5kdTlgn-Dr03TKzm.js → NoDataChart-D5kdTlgn-CkxQV4je.js} +1 -1
  112. package/dist/assets/{NoDataTable-Bk2nZ6iM-CZvSZ9Az.js → NoDataTable-Bk2nZ6iM-CtTsWx_5.js} +1 -1
  113. package/dist/assets/{NotFoundPage-CVgD4yQn-BOZiIp-Z.js → NotFoundPage-CVgD4yQn-CRTHtCFl.js} +1 -1
  114. package/dist/assets/{NotificationSettingsPage-WWgWcBeK-BDFe3mDY.js → NotificationSettingsPage-WWgWcBeK-DIOyuU6j.js} +1 -1
  115. package/dist/assets/{NotificationsListConfig-BFkZD5Wb-Csc3r_u8.js → NotificationsListConfig-BFkZD5Wb-lIMy023n.js} +1 -1
  116. package/dist/assets/{NotificationsPage-C5rC53Pc-ftxLMhXx.js → NotificationsPage-C5rC53Pc-BVUR8Eb3.js} +1 -1
  117. package/dist/assets/{OpExByVendorPage-ChHslafx-3UHgS13G.js → OpExByVendorPage-ChHslafx-DJCLvGn9.js} +1 -1
  118. package/dist/assets/{OverlayContainerPage-BsY9_22w-BToqQjnl.js → OverlayContainerPage-BsY9_22w-DyTEEOOp.js} +1 -1
  119. package/dist/assets/{PandLWithForecastPage-BbH1BUJr-D12_QHZo.js → PandLWithForecastPage-BbH1BUJr-D_OOF8wc.js} +1 -1
  120. package/dist/assets/{PaymentAccountSetupBillingAddressSection-CAtNIHNN-BxDm4Weq.js → PaymentAccountSetupBillingAddressSection-CAtNIHNN-D9ykCS_4.js} +1 -1
  121. package/dist/assets/{PeoplePage-BDOcQ6Qt-BuTlW45g.js → PeoplePage-BDOcQ6Qt-jdocqO9U.js} +1 -1
  122. package/dist/assets/{ProductsCarousel-COO7w1HD-dlzh4dNk.js → ProductsCarousel-COO7w1HD-Bt4CDTjn.js} +1 -1
  123. package/dist/assets/{PromoBaseCards-BhEFQPKD-B4eogtp_.js → PromoBaseCards-BhEFQPKD-TYKzOXSa.js} +1 -1
  124. package/dist/assets/{QBOConnectionDialog-DwFEwu61-utTIYRHr.js → QBOConnectionDialog-DwFEwu61-NKYvvyQV.js} +1 -1
  125. package/dist/assets/{QBOSetupSection-6RwsFmGn-XgdzUG0X.js → QBOSetupSection-6RwsFmGn-DJS164GQ.js} +1 -1
  126. package/dist/assets/{ReimbursementApprovalRuleDetailPage-CKviNtQK-CWM2BwnW.js → ReimbursementApprovalRuleDetailPage-CKviNtQK-BxJN8lYB.js} +1 -1
  127. package/dist/assets/{ReimbursementApprovalRulesPage-DO91opYM-DoWm_kyz.js → ReimbursementApprovalRulesPage-DO91opYM-D1N_0YJk.js} +1 -1
  128. package/dist/assets/{ReimbursementDetailPage-BjO-v5NE-DpD_3rtq.js → ReimbursementDetailPage-BjO-v5NE-DBK1CWBJ.js} +1 -1
  129. package/dist/assets/{ReimbursementPromoPage-DTC_LBqs-CxL5WwmY.js → ReimbursementPromoPage-DTC_LBqs-fSUMSsKg.js} +1 -1
  130. package/dist/assets/{ReimbursementSetUpPage-CcVa6Aub-TYLwoNlz.js → ReimbursementSetUpPage-CcVa6Aub-86pKr2BR.js} +1 -1
  131. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Dt0IRkT5-DQAxcCFG.js → ReimbursementsBulkReviewDrawerPage-Dt0IRkT5-WwPYyhrz.js} +1 -1
  132. package/dist/assets/{ReloadCard-BhHAGtmL-DiOBRSsa.js → ReloadCard-BhHAGtmL-CKcIPeW7.js} +1 -1
  133. package/dist/assets/{ReportTableViewSelector-Dl-b99Ev-qTF1wDJr.js → ReportTableViewSelector-Dl-b99Ev-PvZPlNsK.js} +1 -1
  134. package/dist/assets/{ReportsPage-DQQ8xGxt-CjHz1SMx.js → ReportsPage-DQQ8xGxt-DoWUQ6kv.js} +1 -1
  135. package/dist/assets/{RevenueChart-CVuBt7DS-DMX3js3x.js → RevenueChart-CVuBt7DS-CLYFJLL-.js} +1 -1
  136. package/dist/assets/{ReviewDetailsPage-C9sXTBSK-DJf7gwqo.js → ReviewDetailsPage-C9sXTBSK-HtpU91lh.js} +1 -1
  137. package/dist/assets/{ReviewOverlay-BBPkKsKc-3gU6nx9_.js → ReviewOverlay-BBPkKsKc-nZ_sD72y.js} +1 -1
  138. package/dist/assets/{RoleWithToolTip-7PI_ut3a-B9aHRUm2.js → RoleWithToolTip-7PI_ut3a-B3LgjBGm.js} +1 -1
  139. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DCHKMMPY-C6UL6Cqh.js → ScheduleDetailsFixedAssetsPage-DCHKMMPY-DT3dtXeX.js} +1 -1
  140. package/dist/assets/{ScheduleDetailsPage-BnHb0N4L-eOtPdi3n.js → ScheduleDetailsPage-BnHb0N4L-82Bx61Zi.js} +1 -1
  141. package/dist/assets/{ScheduleSequenceTable-ByZUCny6-CzNgIQ4H.js → ScheduleSequenceTable-ByZUCny6-2pOtkibb.js} +1 -1
  142. package/dist/assets/{ScreenRoutes-nz0LL9BP.js → ScreenRoutes--LJz6rSU.js} +1 -1
  143. package/dist/assets/{SetUpAccountSection-B3SpVh8j-Nu3w6IJ7.js → SetUpAccountSection-B3SpVh8j-aUEnBrM-.js} +1 -1
  144. package/dist/assets/{SignIn-DUNiWlt4-Dcn_8b47.js → SignIn-DUNiWlt4-DDwxZ0nJ.js} +1 -1
  145. package/dist/assets/{SignInScreen-FnqrQyay.js → SignInScreen-nkjQm4tv.js} +1 -1
  146. package/dist/assets/{SpendManagementListViewPage-CILn8P3r-Bw9T6GYd.js → SpendManagementListViewPage-CILn8P3r-DNcv1MFV.js} +3 -3
  147. package/dist/assets/{SpendManagementPerTabPage-D5fjqah8-B3Z7H9oL.js → SpendManagementPerTabPage-D5fjqah8-CDLLDtLq.js} +1 -1
  148. package/dist/assets/{SpendManagementSection-CqOmKnGT-BrH4Ooht.js → SpendManagementSection-CqOmKnGT-08pZgCt5.js} +1 -1
  149. package/dist/assets/{StatementItem-DCGv749V-CMBCjct0.js → StatementItem-DCGv749V-DEwQbLp3.js} +1 -1
  150. package/dist/assets/{StatementsPage-tzfGA4fK-jZIpnvZB.js → StatementsPage-tzfGA4fK-Xl51UkJH.js} +1 -1
  151. package/dist/assets/{StatusSwitcher-BPhAzyr4-C71tRoLv.js → StatusSwitcher-BPhAzyr4-CtXMICS8.js} +1 -1
  152. package/dist/assets/{SubTabSwitcher-CliepA4y-uNPwPFOs.js → SubTabSwitcher-CliepA4y-xpL5D9v3.js} +1 -1
  153. package/dist/assets/{SummaryCard-D6qGUnBa-BvL0LtL9.js → SummaryCard-D6qGUnBa-BZgfmFR1.js} +1 -1
  154. package/dist/assets/{TaskManagementPage-CrF2pvG--B3d49Oub.js → TaskManagementPage-CrF2pvG--CShcA5Qe.js} +1 -1
  155. package/dist/assets/{TimeRangeSwitcher-BM4W9gUA-DoidvEqg.js → TimeRangeSwitcher-BM4W9gUA-DrFj36Y4.js} +1 -1
  156. package/dist/assets/{TimeframeSwitcher-DVn57S4Z-BEpOFA2B.js → TimeframeSwitcher-DVn57S4Z-CQFj1iYB.js} +1 -1
  157. package/dist/assets/{TimeframeSwitcherWithToggle-DGJah7Sb-BA5TQGIn.js → TimeframeSwitcherWithToggle-DGJah7Sb-DGPU89MC.js} +1 -1
  158. package/dist/assets/{TopExCard-CniAN7L2-DVg_KZTI.js → TopExCard-CniAN7L2-CR0nbhbh.js} +1 -1
  159. package/dist/assets/{TopExDetailPage-DIeOO4yK-DD7u1Z1X.js → TopExDetailPage-DIeOO4yK-rTeqP7r5.js} +1 -1
  160. package/dist/assets/{TransactionDetailPage-KULsGsEc-CaQN-nNx.js → TransactionDetailPage-KULsGsEc-D1JL6sac.js} +1 -1
  161. package/dist/assets/{TransactionList-BrYkFs7L-CGD-blx0.js → TransactionList-BrYkFs7L-Bo9JJvPq.js} +1 -1
  162. package/dist/assets/{TransactionListBig-BlYSeag1-CsDegITG.js → TransactionListBig-BlYSeag1-CTOvEKsb.js} +1 -1
  163. package/dist/assets/{TransactionListPage-CQwAsIgN-Ds3Qv4qW.js → TransactionListPage-CQwAsIgN-bUSOtmrQ.js} +1 -1
  164. package/dist/assets/{TransactionVendorDetailPage-DCNoJ91u-BPGZRx1W.js → TransactionVendorDetailPage-DCNoJ91u-DpibBs5f.js} +1 -1
  165. package/dist/assets/{TransferDrawerPage-BBhouzhn-9mQ0LVpc.js → TransferDrawerPage-BBhouzhn-PGbsHqZa.js} +1 -1
  166. package/dist/assets/{TreasuryOverviewPage-DOPgWmOa-D7aXbAjA.js → TreasuryOverviewPage-DOPgWmOa-2jZgA1-7.js} +1 -1
  167. package/dist/assets/{TreasuryPromoPage-D69ZAT9K-roMl6zug.js → TreasuryPromoPage-D69ZAT9K-z29_2RKv.js} +1 -1
  168. package/dist/assets/{TreasuryStatementsPage-C4TEBRjO-BDtI5fwk.js → TreasuryStatementsPage-C4TEBRjO-DZCq6lJB.js} +1 -1
  169. package/dist/assets/{TreasuryTaxLetterPage-qk7kxdwJ-6n4PHHSa.js → TreasuryTaxLetterPage-qk7kxdwJ-BFgp16Wx.js} +1 -1
  170. package/dist/assets/{TrendChart-CwUO_Kbu-DpSAwQl0.js → TrendChart-CwUO_Kbu-BKYtaZTT.js} +1 -1
  171. package/dist/assets/{TrendWithTransactions-BRqOpB5C-COD14Saj.js → TrendWithTransactions-BRqOpB5C-YJeWOJ6x.js} +1 -1
  172. package/dist/assets/{UncategorizedAccountsMappingPage-B7ZqErRv-GGTibn6D.js → UncategorizedAccountsMappingPage-B7ZqErRv-CizYCGBy.js} +1 -1
  173. package/dist/assets/{UnitIntegrationPage-CyeO2j6h-pFdtK_cT.js → UnitIntegrationPage-CyeO2j6h-CvXM5c_E.js} +1 -1
  174. package/dist/assets/{UploadAdditionalDocumentOverlay-RvjdiQWf-DHnq45GX.js → UploadAdditionalDocumentOverlay-RvjdiQWf-CTEVXQfU.js} +1 -1
  175. package/dist/assets/{Vendor2FAPopup-D6OJ_rL--uH2AW8CT.js → Vendor2FAPopup-D6OJ_rL--Clo6v1sA.js} +1 -1
  176. package/dist/assets/{VendorACHDetailsPage-CzqQsooO-P-q28tW1.js → VendorACHDetailsPage-CzqQsooO-CwaXcbsE.js} +1 -1
  177. package/dist/assets/{VendorDetailPage-BGBPsCjJ-CwQFNZ5o.js → VendorDetailPage-BGBPsCjJ-BNtnQvX_.js} +1 -1
  178. package/dist/assets/{VendorDomesticWireDetailsPage-DFKA6XqC-DRxy-3OT.js → VendorDomesticWireDetailsPage-DFKA6XqC-CbxFgQwP.js} +1 -1
  179. package/dist/assets/{VendorFiling1099EditablePage-B1a0lzlJ-Cz-Iq_z6.js → VendorFiling1099EditablePage-B1a0lzlJ-ChX9OWci.js} +1 -1
  180. package/dist/assets/{VendorFirstReviewPage-CmuOPNAg-BWvNkbDY.js → VendorFirstReviewPage-CmuOPNAg-BIXp7STW.js} +1 -1
  181. package/dist/assets/{VendorInternationalWireDetailsPage-DsqWvt9f-DkfRhY0G.js → VendorInternationalWireDetailsPage-DsqWvt9f-XWQ2Lngh.js} +1 -1
  182. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-D6gVSh13-lKbMksz2.js → VendorInternationalWireSwiftDetailsPage-D6gVSh13-4sz8DdSc.js} +1 -1
  183. package/dist/assets/{VendorsAccountsSection-BVnGMYZB-DSd7mZNb.js → VendorsAccountsSection-BVnGMYZB-DfrL0bjo.js} +1 -1
  184. package/dist/assets/{VerifyDevice-Cv3pK-Vi-Bzup1Eas.js → VerifyDevice-Cv3pK-Vi-CH2IiG1B.js} +1 -1
  185. package/dist/assets/{VideoPlayer-CWgqW04r-C486LU44.js → VideoPlayer-CWgqW04r-BeXIzQHg.js} +1 -1
  186. package/dist/assets/{VideoPopup-CO-abQYR-wjbF4znl.js → VideoPopup-CO-abQYR-BowsN1IB.js} +1 -1
  187. package/dist/assets/{WarningsDrawerPage-D-My8qC_-BsEHLAZC.js → WarningsDrawerPage-D-My8qC_-ClXkQSyi.js} +1 -1
  188. package/dist/assets/{ZeniAccountDetailPage-a6UIGBxN-dyh7jsIK.js → ZeniAccountDetailPage-a6UIGBxN-Cti56mbU.js} +1 -1
  189. package/dist/assets/{ZeniAccountListViewPage-Bhvjdk7s-BM5Kfdcv.js → ZeniAccountListViewPage-Bhvjdk7s-D1kbdwLi.js} +1 -1
  190. package/dist/assets/{ZeniAccountNavBarPieces-DQXLEb0E-BitQqMJ1.js → ZeniAccountNavBarPieces-DQXLEb0E-ffuXSL1y.js} +1 -1
  191. package/dist/assets/{ZeniAccountPromoPage-DvnCZhyV-yDalurhS.js → ZeniAccountPromoPage-DvnCZhyV-BHm0WpfN.js} +1 -1
  192. package/dist/assets/{ZeniAccountSetupPage-C18Z8Inz-C7ZfMrV8.js → ZeniAccountSetupPage-C18Z8Inz-zFvaSlWv.js} +1 -1
  193. package/dist/assets/{ZeniCopyright-Bah86-w6-BtPQnyKq.js → ZeniCopyright-Bah86-w6-C-BhG-oF.js} +1 -1
  194. package/dist/assets/{ZeniTransferAmountSlider-DAWhF_GC-Bu0J1yDw.js → ZeniTransferAmountSlider-DAWhF_GC-0fT7ObwO.js} +1 -1
  195. package/dist/assets/{analyticsHelper-BgebveIM-CbpOxzTt.js → analyticsHelper-BgebveIM-Bioqnrpw.js} +1 -1
  196. package/dist/assets/{analyticsHelper-DLiMfvR0.js → analyticsHelper-DphWNXNJ.js} +1 -1
  197. package/dist/assets/{chartTypes-0r24YpMG-D4v8hsIi.js → chartTypes-0r24YpMG-D1hGZ52g.js} +1 -1
  198. package/dist/assets/{commonDimensions-D1k9BC56-Dg5cTieD.js → commonDimensions-D1k9BC56-CmYArcEl.js} +1 -1
  199. package/dist/assets/{detailCommon-S7TxkmbK-C8ZN2okm.js → detailCommon-S7TxkmbK-DcBc9swP.js} +1 -1
  200. package/dist/assets/{downloadPdf-dztmLzvw-B57yEtqF.js → downloadPdf-dztmLzvw-DwUWW5-b.js} +1 -1
  201. package/dist/assets/{index-B-wjAcUu.js → index-Dg4B2O5-.js} +4 -4
  202. package/dist/assets/{mapLoadingInProgressToTreeNode-hxnOz-9A-Vd3t7tX6.js → mapLoadingInProgressToTreeNode-hxnOz-9A-CETWHQDz.js} +1 -1
  203. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-DCcHdc8O-DS6gjC-R.js → mapSectionWithAcOnlyToTreeNode-DCcHdc8O-BucVcCQd.js} +1 -1
  204. package/dist/assets/{mapSpacerToTreeNode-ooGzcl3Q-DPBnUbji.js → mapSpacerToTreeNode-ooGzcl3Q-DrFA9XLd.js} +1 -1
  205. package/dist/assets/{mapTimeframeBalancesToTreeNode-BF5wLJh4-CmOcQV2f.js → mapTimeframeBalancesToTreeNode-BF5wLJh4-DdRnJkVf.js} +1 -1
  206. package/dist/assets/{mapTimeframeBalancesToTreeNode-DR6JWl15-BqmsTV56.js → mapTimeframeBalancesToTreeNode-DR6JWl15-HBXH1FwF.js} +1 -1
  207. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DDsOX65U-D5wzot5X.js → mapTimeframeHeaderLoadingInProgressToTreeNode-DDsOX65U-B7d840ay.js} +1 -1
  208. package/dist/assets/{toCOABalancesWithID-B7cXkXa7-DZ8i2nEw.js → toCOABalancesWithID-B7cXkXa7-fQvQAcpX.js} +1 -1
  209. package/dist/assets/{toChartData-WlJxAyJ8-DFE1TRgu.js → toChartData-WlJxAyJ8-Dq8aBFdl.js} +1 -1
  210. package/dist/assets/{uploadAttachment-eI_iX8Pu-Dxyp4eol.js → uploadAttachment-eI_iX8Pu-C7hX_DqQ.js} +1 -1
  211. package/dist/assets/{uploadReceipts-CDPM7zcb-DGKpzxWF.js → uploadReceipts-CDPM7zcb-C9dXnPKi.js} +1 -1
  212. package/dist/index.html +1 -1
  213. package/package.json +1 -1
  214. package/dist/assets/CustomerOnboardingContainerPage-CQgMjQDK-BxTTqRTJ.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as b,F as oe,V as r,e as G,av as ye,a7 as be,aN as je,aL as Se,fO as Te,bz as ze,fn as ve,n as Y,aK as ee,o as t,c as Pe,d as J,cz as ke,ap as Be,y as x,ao as Ae,bQ as Ie,iC as Le,ag as Re,u as p,B as S,p as $,b8 as Me,aR as Ee,iD as _e}from"./index-B-wjAcUu.js";import{a as T}from"./core-3dlyNYRL.js";import{n as a,b as De,k as Fe}from"./mui-bYXq4XMS.js";import{eI as Ue}from"./zeni-epic-state-C3Iwci22.js";import{k as Ne}from"./NavigationDots-BsyNMpig-Cq0OjfYk.js";import{J as H,N as O}from"./PromoBaseCards-BhEFQPKD-B4eogtp_.js";import{M as R}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const h={containerPaddingTopBottom:new x(p[0],p[0]),uspContainerMarginX:new x(p[6],p[0]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12]),buttonTrayGap:new x(p[3],p[5]),termsOfAgreementMarginTop:new x(p[5],p[10]),contactAdminContainerMarginTop:new x(p[0],p[10]),contactAdminContainerMarginBottom:new x(p[4],p[0]),contactAdminContainerMarginLeftRight:new x(p[3],p[0])},z={promoBadgeText:new S("standardRegular","largeRegular"),promoBadgeTextBold:new S("standardBold","largeBold"),cardsContent:new S("extraSmallRegular","smallRegular"),contactAdmin:new S("extraSmallRegular","largeRegular"),uspText:new S("smallRegular","standardRegular"),uspBoldText:new S("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Mr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:g,isDebitCardSetupEnabled:u,isChargeCardSetupEnabled:w,admins:j,cashbackRate:P,cardPromoType:f="credit",isCheckingEnabled:l,onSetupButtonClick:d,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:V,onExpressInterestClick:he})=>{const ge=G(),W=ye(),v=b(),X=be().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:E}=i,Z=je(M?.fetchStatus.fetchState),[xe,q]=T.useState(!1),ue=()=>{X.trackCardsPromoPageClicked("schedule demo"),X.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:g,isDebitCardEnabled:u,isCreditCardEnabled:w},"Cards Promo"),q(!0)},we=C!=null&&E!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:E.currencyCode,currencySymbol:E.currencySymbol}):void 0;T.useEffect(()=>{Z==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&V()},[Z,V,M?.fetchStatus]);const K=Ue(W.loggedInUserRoleMap),fe=Te(W),_=f==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,Ce=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:$e}=i,Q=_?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(We,{children:[r.jsx(ze,{title:o.title[f],backgroundColor:ge.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),xe===!0?r.jsx(ve,{onCancelClick:()=>{q(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:v,children:K===!0?r.jsxs(qe,{children:[r.jsxs(Ze,{children:[r.jsx(Oe,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ne,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,isCheckingEnabled:l})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),K&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ue,"data-testid":ee("schedule-demo-button")}),r.jsx(Xe,{windowSize:v,children:o.orText}),r.jsx(Y,{variant:"primary",label:Q,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||$e==="In-Progress",onClick:Q===o.getPreApprovedNow?he:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(mr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ie,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:n,isRejected:c,showExpressInterest:m,isCardUser:g=!1})=>{const u=b();return r.jsx(ir,{windowSize:u,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:n===!0||c===!0||g===!0?void 0:m===!0?o.terms.getPreApprovedNowTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:c===!1&&g===!1&&n===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(u)},cardPromoType:e,isCheckingEnabled:i})})},Oe=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:c,showExpressInterest:m,creditLimit:g})=>{const u=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,j=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(rr,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:c?o.promoBadgeText.rejected:s==="debit_and_credit"&&g===0?null:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:u==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:u,children:[n||c||m?null:r.jsx($r,{}),r.jsx(er,{windowSize:u,children:j})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:g})=>{const u=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[u==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(pr,{windowSize:u}):r.jsx(Je,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),c?null:r.jsx(He,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:g})]})},Je=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let c="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const g=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;c=o.cardAssigned.singleCreditCard.replace("__issuing-user__",g).replace("__company-name__",s)}else c=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[m!=null?r.jsx(Qe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=Ae},loading:"lazy"}):null,r.jsx(hr,{windowSize:n,mode:i.mode,children:r.jsx(xr,{windowSize:n,children:c})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(nr,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(O,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(ar,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(cr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=G(),[i,n]=T.useState(0),[c,m]=T.useState(!1),g=o.businessText,u=`${g} ${o.debit}`,w=[{id:1,cardType:"debit",cardText:u},{id:2,cardType:"debit",cardText:u},{id:3,cardType:"credit",cardText:g},{id:4,cardType:"credit",cardText:g}];T.useEffect(()=>(c||(k=setInterval(()=>{n(l=>{const d=l+1;return d===w.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[c,w.length]),T.useEffect(()=>{c&&k!=null&&clearInterval(k)},[c]);const j=(l,d)=>{switch((l-i+w.length)%w.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=j(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},f=l=>{c||m(!0),n(l)};return r.jsxs(ur,{windowSize:e,children:[r.jsx(wr,{windowSize:e,children:w.map((l,d)=>r.jsxs(fr,{children:[r.jsx(ie,{isReflection:!1,style:{...j(d,!1)},onClick:()=>f(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),c&&r.jsx(Ne,{numberOfDots:w.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},We=a.div`
1
+ import{q as b,F as oe,V as r,e as G,av as ye,a7 as be,aN as je,aL as Se,fO as Te,bz as ze,fn as ve,n as Y,aK as ee,o as t,c as Pe,d as J,cz as ke,ap as Be,y as x,ao as Ae,bQ as Ie,iC as Le,ag as Re,u as p,B as S,p as $,b8 as Me,aR as Ee,iD as _e}from"./index-Dg4B2O5-.js";import{a as T}from"./core-3dlyNYRL.js";import{n as a,b as De,k as Fe}from"./mui-bYXq4XMS.js";import{eI as Ue}from"./zeni-epic-state-C3Iwci22.js";import{k as Ne}from"./NavigationDots-BsyNMpig-uwDUONyH.js";import{J as H,N as O}from"./PromoBaseCards-BhEFQPKD-TYKzOXSa.js";import{M as R}from"./usp-line-BBd1wKwW-ClwDS-nj.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const h={containerPaddingTopBottom:new x(p[0],p[0]),uspContainerMarginX:new x(p[6],p[0]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12]),buttonTrayGap:new x(p[3],p[5]),termsOfAgreementMarginTop:new x(p[5],p[10]),contactAdminContainerMarginTop:new x(p[0],p[10]),contactAdminContainerMarginBottom:new x(p[4],p[0]),contactAdminContainerMarginLeftRight:new x(p[3],p[0])},z={promoBadgeText:new S("standardRegular","largeRegular"),promoBadgeTextBold:new S("standardBold","largeBold"),cardsContent:new S("extraSmallRegular","smallRegular"),contactAdmin:new S("extraSmallRegular","largeRegular"),uspText:new S("smallRegular","standardRegular"),uspBoldText:new S("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Mr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:g,isDebitCardSetupEnabled:u,isChargeCardSetupEnabled:w,admins:j,cashbackRate:P,cardPromoType:f="credit",isCheckingEnabled:l,onSetupButtonClick:d,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:V,onExpressInterestClick:he})=>{const ge=G(),W=ye(),v=b(),X=be().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:E}=i,Z=je(M?.fetchStatus.fetchState),[xe,q]=T.useState(!1),ue=()=>{X.trackCardsPromoPageClicked("schedule demo"),X.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:g,isDebitCardEnabled:u,isCreditCardEnabled:w},"Cards Promo"),q(!0)},we=C!=null&&E!=null?Se("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:E.currencyCode,currencySymbol:E.currencySymbol}):void 0;T.useEffect(()=>{Z==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&V()},[Z,V,M?.fetchStatus]);const K=Ue(W.loggedInUserRoleMap),fe=Te(W),_=f==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,Ce=f==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:$e}=i,Q=_?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(We,{children:[r.jsx(ze,{title:o.title[f],backgroundColor:ge.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:v==="medium-compact"||v==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),xe===!0?r.jsx(ve,{onCancelClick:()=>{q(!1)},meetingUrl:e}):null,r.jsx(Ke,{windowSize:v,children:K===!0?r.jsxs(qe,{children:[r.jsxs(Ze,{children:[r.jsx(Oe,{isApproved:Ce,creditAmount:we,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,creditLimit:C?.chargeCardsCreditAccountLimit}),r.jsx(ne,{cardPromoType:f,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:f,isUnderReview:F,isRejected:D,showExpressInterest:_,isCheckingEnabled:l})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:j,cashbackRate:P,hasZeniFinopsRoles:fe,cardPromoType:f,isCheckingEnabled:l})}),K&&!(F||D)?r.jsxs(or,{windowSize:v,children:[r.jsx(Y,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:ue,"data-testid":ee("schedule-demo-button")}),r.jsx(Xe,{windowSize:v,children:o.orText}),r.jsx(Y,{variant:"primary",label:Q,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||$e==="In-Progress",onClick:Q===o.getPreApprovedNow?he:()=>d(f),"data-testid":ee("enable-card-button")})]}):null]})},He=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(mr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ie,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:n,isRejected:c,showExpressInterest:m,isCardUser:g=!1})=>{const u=b();return r.jsx(ir,{windowSize:u,children:r.jsx(Le,{topTermLabel:o.terms.checkingAccountTerm,buttonTermLabel:n===!0||c===!0||g===!0?void 0:m===!0?o.terms.getPreApprovedNowTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:c===!1&&g===!1&&n===!1,style:{marginTop:h.termsOfAgreementMarginTop.valuePx(u)},cardPromoType:e,isCheckingEnabled:i})})},Oe=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:c,showExpressInterest:m,creditLimit:g})=>{const u=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,j=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(rr,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:c?o.promoBadgeText.rejected:s==="debit_and_credit"&&g===0?null:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:u==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hasContent:j!=null,hideBadge:i==null||s==="debit",windowSize:u,children:[n||c||m?null:r.jsx($r,{}),r.jsx(er,{windowSize:u,children:j})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:g})=>{const u=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[u==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(pr,{windowSize:u}):r.jsx(Je,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),c?null:r.jsx(He,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:g})]})},Je=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let c="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const g=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;c=o.cardAssigned.singleCreditCard.replace("__issuing-user__",g).replace("__company-name__",s)}else c=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[m!=null?r.jsx(Qe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:g})=>{g.onerror=null,g.src=Ae},loading:"lazy"}):null,r.jsx(hr,{windowSize:n,mode:i.mode,children:r.jsx(xr,{windowSize:n,children:c})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(nr,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(O,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(tr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(ar,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(cr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Ve=()=>{const e=b(),s=G(),[i,n]=T.useState(0),[c,m]=T.useState(!1),g=o.businessText,u=`${g} ${o.debit}`,w=[{id:1,cardType:"debit",cardText:u},{id:2,cardType:"debit",cardText:u},{id:3,cardType:"credit",cardText:g},{id:4,cardType:"credit",cardText:g}];T.useEffect(()=>(c||(k=setInterval(()=>{n(l=>{const d=l+1;return d===w.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[c,w.length]),T.useEffect(()=>{c&&k!=null&&clearInterval(k)},[c]);const j=(l,d)=>{switch((l-i+w.length)%w.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=j(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},f=l=>{c||m(!0),n(l)};return r.jsxs(ur,{windowSize:e,children:[r.jsx(wr,{windowSize:e,children:w.map((l,d)=>r.jsxs(fr,{children:[r.jsx(ie,{isReflection:!1,style:{...j(d,!1)},onClick:()=>f(d),children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),c&&r.jsx(Ne,{numberOfDots:w.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:h.navigationBottom.valuePx(e),left:h.navigationLeft.valuePx(e),zIndex:7}})]})},We=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{e as Oe,q as Be,a7 as Ue,aN as M,a8 as De,cB as ze,F as _e,aS as G,V as t,f5 as $e,p as Re,y as r,bz as Le,l as We,ab as Ne,fo as qe,dQ as He,fp as Me,iE as J,o as D,b as Ge,bu as Je,aO as Qe,fr as Ke,u as a,ak as Xe}from"./index-B-wjAcUu.js";import{a as p}from"./core-3dlyNYRL.js";import{n as S}from"./mui-bYXq4XMS.js";import{bM as Ye}from"./zeni-epic-state-C3Iwci22.js";import{x as Ze}from"./LabeledControlledCheckBoxField-BfXa1w7M-CeV_jPQh.js";import{g as et}from"./UploadAdditionalDocumentOverlay-RvjdiQWf-DHnq45GX.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},Q="chargeCardSetUpPage",f="payAccount",{commonSetUp:tt,spendManagement:nt}=_e.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:z}=tt,xt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:g,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:le,onUpdateChargeCardClick:se,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:fe,onEstablishConnectionSuccess:ge,onClickMenuIcon:he,onEnableChargeCardSuccess:P,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:Pe})=>{const h=Oe(),i=Be(),v=Ue().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:$,selectedCompanyOfficer:l,primaryFundingAccount:s,allFundingAccounts:R}=o,L=M(b),A=M(d.fetchState),V=De({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>K(o),[o]),values:K(o)}),Ee=V.handleSubmit(le),ve=async(C,k)=>{const n=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&s?.id!=n.fundingAccount.selectedOption){const u=R.find(U=>U.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&s?.id!=null&&s?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(U=>U.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&v.trackConnectBankLink(u.value,u.label,"charge_cards"),se(n.account.selectedOption,s.id,s.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=V.watch((k,{name:n})=>{n!=null&&k!=null&&ze(()=>ve(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[l,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=F?.isChargeCardEnabled===!0,I=$?.isDebitCardEnabled===!0,W=$?.isDebitCardTOSAccepted===!0,N=F?.isChargeCardTOSAccepted===!0,q=_?.isBusinessVerified===!0,Fe=s?.accType==="depositAccount"||Ye(s?.providerVerificationStatus?.code??""),O=E?q:q&&Fe,Ve=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const B=E?O&&!I&&W:ie?O&&!j&&N:O&&!(j&&I)&&N&&W,je=B?m.setupSubTitleNotEnabled:m.setupSubTitle,H=h.mode==="light"?new G(h.colors.brandColorJadeLight):new G(h.colors.brandColorJadeDark),Ie=()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx($e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Re.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:l,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(Le,{title:m.setupTitle,backgroundColor:h.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!j&&!I&&(i==="medium-compact"||i==="small"),onClickMenuIcon:he,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:je}),Ve?t.jsx(ct,{children:t.jsx(We,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...V,children:t.jsx("form",{id:X(Q),onSubmit:Ee,children:t.jsxs(lt,{windowSize:i,children:[t.jsx(qe,{onClick:Ie,title:z.businessVerificationTitle,subTitle:z.businessVerificationSubTitle,header:z.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:_?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),E?null:t.jsx(Me,{connectedAccountProvider:Z,primaryFundingAccount:s,allFundingAccounts:R,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:fe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:ge,icon:{element:t.jsx(Je,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:v,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:g?{marginBottom:"20px"}:{},bottomComponent:g&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:h.colors.primary,...Ge.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:D.sp4,marginTop:D.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:J(f,"enableAutoPay"),checkBoxValue:J(f,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),B?t.jsx(Qe,{formId:X(Q),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${D.sp3}`}}):null,t.jsx(Ke,{isFooterRendered:B,meetingUrl:T,analytics:v,productType:"charge_cards"})]})},K=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:g}=e;return{[f]:{fundingAccount:{selectedOption:g?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:g?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},X=e=>`${e}_form`,it=S.div`
1
+ import{e as Oe,q as Be,a7 as Ue,aN as M,a8 as De,cB as ze,F as _e,aS as G,V as t,f5 as $e,p as Re,y as r,bz as Le,l as We,ab as Ne,fo as qe,dQ as He,fp as Me,iE as J,o as D,b as Ge,bu as Je,aO as Qe,fr as Ke,u as a,ak as Xe}from"./index-Dg4B2O5-.js";import{a as p}from"./core-3dlyNYRL.js";import{n as S}from"./mui-bYXq4XMS.js";import{bM as Ye}from"./zeni-epic-state-C3Iwci22.js";import{x as Ze}from"./LabeledControlledCheckBoxField-BfXa1w7M-DMw6ciRC.js";import{g as et}from"./UploadAdditionalDocumentOverlay-RvjdiQWf-CTEVXQfU.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},Q="chargeCardSetUpPage",f="payAccount",{commonSetUp:tt,spendManagement:nt}=_e.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:z}=tt,xt=({autoPayThreshold:e,isDisabled:x,meetingUrl:T,isEarlyPayEnabled:g,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:le,onUpdateChargeCardClick:se,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:fe,onEstablishConnectionSuccess:ge,onClickMenuIcon:he,onEnableChargeCardSuccess:P,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe,onSignUpClick:Pe})=>{const h=Oe(),i=Be(),v=Ue().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:$,selectedCompanyOfficer:l,primaryFundingAccount:s,allFundingAccounts:R}=o,L=M(b),A=M(d.fetchState),V=De({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>K(o),[o]),values:K(o)}),Ee=V.handleSubmit(le),ve=async(C,k)=>{const n=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&s?.id!=n.fundingAccount.selectedOption){const u=R.find(U=>U.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&s?.id!=null&&s?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(U=>U.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&v.trackConnectBankLink(u.value,u.label,"charge_cards"),se(n.account.selectedOption,s.id,s.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=V.watch((k,{name:n})=>{n!=null&&k!=null&&ze(()=>ve(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[l,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=F?.isChargeCardEnabled===!0,I=$?.isDebitCardEnabled===!0,W=$?.isDebitCardTOSAccepted===!0,N=F?.isChargeCardTOSAccepted===!0,q=_?.isBusinessVerified===!0,Fe=s?.accType==="depositAccount"||Ye(s?.providerVerificationStatus?.code??""),O=E?q:q&&Fe,Ve=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const B=E?O&&!I&&W:ie?O&&!j&&N:O&&!(j&&I)&&N&&W,je=B?m.setupSubTitleNotEnabled:m.setupSubTitle,H=h.mode==="light"?new G(h.colors.brandColorJadeLight):new G(h.colors.brandColorJadeDark),Ie=()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx($e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Re.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:l,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:xe})}),t.jsx(Le,{title:m.setupTitle,backgroundColor:h.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!j&&!I&&(i==="medium-compact"||i==="small"),onClickMenuIcon:he,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:je}),Ve?t.jsx(ct,{children:t.jsx(We,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...V,children:t.jsx("form",{id:X(Q),onSubmit:Ee,children:t.jsxs(lt,{windowSize:i,children:[t.jsx(qe,{onClick:Ie,title:z.businessVerificationTitle,subTitle:z.businessVerificationSubTitle,header:z.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},status:_?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),E?null:t.jsx(Me,{connectedAccountProvider:Z,primaryFundingAccount:s,allFundingAccounts:R,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ae,onEstablishConnectionClick:fe,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:ge,icon:{element:t.jsx(Je,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:H},analytics:v,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:Pe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:g?{marginBottom:"20px"}:{},bottomComponent:g&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:h.colors.primary,...Ge.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:D.sp4,marginTop:D.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:J(f,"enableAutoPay"),checkBoxValue:J(f,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),B?t.jsx(Qe,{formId:X(Q),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${D.sp3}`}}):null,t.jsx(Ke,{isFooterRendered:B,meetingUrl:T,analytics:v,productType:"charge_cards"})]})},K=e=>{const{allBankAccounts:x,allFundingAccounts:T,primaryFundingAccount:g}=e;return{[f]:{fundingAccount:{selectedOption:g?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:g?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},X=e=>`${e}_form`,it=S.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{e as F,q as B,V as t,bz as W,F as T,o as h,y as w,ak as R,b7 as V,a7 as O,hC as q,aK as _,l as J,u as s,c0 as K}from"./index-B-wjAcUu.js";import{n as i}from"./mui-bYXq4XMS.js";import{$ as U,g as Z}from"./BoxItem-ZnOFxLhz-DKhyJw9C.js";import{a as G}from"./core-3dlyNYRL.js";import{w as H}from"./downloadPdf-dztmLzvw-B57yEtqF.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./commonDimensions-D1k9BC56-Dg5cTieD.js";const Y=T.getLocalizedStrings().months,D={downloadButtonSize:new w(s[4],20)},Q=i.div`
1
+ import{e as F,q as B,V as t,bz as W,F as T,o as h,y as w,ak as R,b7 as V,a7 as O,hC as q,aK as _,l as J,u as s,c0 as K}from"./index-Dg4B2O5-.js";import{n as i}from"./mui-bYXq4XMS.js";import{$ as U,g as Z}from"./BoxItem-ZnOFxLhz-DbtkZ3hl.js";import{a as G}from"./core-3dlyNYRL.js";import{w as H}from"./downloadPdf-dztmLzvw-DwUWW5-b.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./commonDimensions-D1k9BC56-CmYArcEl.js";const Y=T.getLocalizedStrings().months,D={downloadButtonSize:new w(s[4],20)},Q=i.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{q as U,V as t,aK as $,hA as pe,F as ee,aL as M,n as K,o,aO as he,y as l,L as oe,d as ue,b7 as me,c as te,ag as ge,ak as F,aN as xe,a8 as ke,cB as fe,p as w,ab as De,g6 as $e,cE as we,eS as W,cL as Y,u as s,fj as be,cf as ye,bZ as je,d5 as Le,hl as Pe,al as q,hn as Se}from"./index-B-wjAcUu.js";import{a as f}from"./core-3dlyNYRL.js";import{n as a}from"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",V="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[V]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,Be=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:Ae,common:O}=ee.getLocalizedStrings(),c=Ae.zeniAccounts.zeniAccountList,ze=O.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:L,onEditFileName:P,onCheckDpositClick:T}){const r=U(),n=e.fetchState,S=xe(n),[v,G]=f.useState(!1),[se,B]=f.useState(!1),A=u.largeLabelWidth.value(r),k=ke({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=k.formState,J=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:O.currency.currencyCode,currencySymbol:O.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);J(h)}};f.useEffect(()=>{const i=k.watch((d,{name:h})=>{h!=null&&d!=null&&fe(()=>ce(h,d))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{S==="Completed"&&n==="Not-Started"&&k.reset(I(e))},[S,n,k,e]),f.useEffect(()=>{e.error!=null?B(!0):B(!1)},[e.error]);const le=k.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=k.getValues();J(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),z=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Oe,{color:Pe(z),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(z=>z.id===i);return h?d===!0?t.jsx(Ve,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(_,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(_,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Re,{children:t.jsxs(qe,{children:[t.jsxs(Ge,{children:[t.jsx(Ke,{}),t.jsxs(We,{children:[t.jsx(Ye,{children:e.error?.title}),t.jsx(_e,{children:e.error?.message})]})]}),t.jsx(Je,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),B(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Xe,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...k,children:t.jsx("form",{id:Be(ve),onSubmit:le,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:A},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:A},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Ze,{label:{label:c.checkDepositDrawer.depositToLabel,width:A,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(Qe,{size:r,children:[t.jsxs(Ue,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(X,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(W,{name:`${D(g,V)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Y,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:L,onFileSizeError:i=>G(i),onEditFileName:P,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(X,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(W,{name:`${D(g,V)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Y,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:L,onFileSizeError:i=>G(i),onEditFileName:P,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:ze.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
1
+ import{q as U,V as t,aK as $,hA as pe,F as ee,aL as M,n as K,o,aO as he,y as l,L as oe,d as ue,b7 as me,c as te,ag as ge,ak as F,aN as xe,a8 as ke,cB as fe,p as w,ab as De,g6 as $e,cE as we,eS as W,cL as Y,u as s,fj as be,cf as ye,bZ as je,d5 as Le,hl as Pe,al as q,hn as Se}from"./index-Dg4B2O5-.js";import{a as f}from"./core-3dlyNYRL.js";import{n as a}from"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",V="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[V]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,Be=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:Ae,common:O}=ee.getLocalizedStrings(),c=Ae.zeniAccounts.zeniAccountList,ze=O.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:L,onEditFileName:P,onCheckDpositClick:T}){const r=U(),n=e.fetchState,S=xe(n),[v,G]=f.useState(!1),[se,B]=f.useState(!1),A=u.largeLabelWidth.value(r),k=ke({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=k.formState,J=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:O.currency.currencyCode,currencySymbol:O.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);J(h)}};f.useEffect(()=>{const i=k.watch((d,{name:h})=>{h!=null&&d!=null&&fe(()=>ce(h,d))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{S==="Completed"&&n==="Not-Started"&&k.reset(I(e))},[S,n,k,e]),f.useEffect(()=>{e.error!=null?B(!0):B(!1)},[e.error]);const le=k.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=k.getValues();J(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),z=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Oe,{color:Pe(z),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(z=>z.id===i);return h?d===!0?t.jsx(Ve,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(_,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(_,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Re,{children:t.jsxs(qe,{children:[t.jsxs(Ge,{children:[t.jsx(Ke,{}),t.jsxs(We,{children:[t.jsx(Ye,{children:e.error?.title}),t.jsx(_e,{children:e.error?.message})]})]}),t.jsx(Je,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),B(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Xe,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...k,children:t.jsx("form",{id:Be(ve),onSubmit:le,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:A},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:A},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Ze,{label:{label:c.checkDepositDrawer.depositToLabel,width:A,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(Qe,{size:r,children:[t.jsxs(Ue,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(X,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(W,{name:`${D(g,V)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Y,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:L,onFileSizeError:i=>G(i),onEditFileName:P,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(X,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(W,{name:`${D(g,V)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Y,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:L,onFileSizeError:i=>G(i),onEditFileName:P,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:ze.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Ne=a(F)`
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dl as $o,o as s,p as X,aN as bn,q as O,aA as kn,ax as Lo,dm as jn,dn as Ao,F as B,u as w,dp as Qn,dq as Nt,aS as $,dr as It,c8 as Pt,ds as Ft,y as V,c_ as zt,av as Zn,a9 as Xe,dt as Me,bM as H,l as Bo,e as ce,aZ as Jn,du as Xn,aT as T,am as Le,dv as Wo,dw as le,c7 as Tt,bY as Sn,ag as Oo,al as we,dx as et,dy as Ae,dz as nt,ak as v,cf as ne,dA as Mo,b as Vt,dB as Ge,dC as Cn,dD as vn,dE as No,dF as Io,b7 as ei,b4 as Po,cv as Dt,cu as Rt,dG as Fo,b5 as ti,cy as ni,bO as zo,dH as To,dI as _n,dJ as $n,dK as Vo,dL as Do,bQ as Ro,bI as Go,dM as Eo}from"./index-B-wjAcUu.js";import{n as a,b as P}from"./mui-bYXq4XMS.js";import{a as N,w as Ho}from"./core-3dlyNYRL.js";import{eT as Gt,fi as Et,fj as Ne,fk as Ht,fl as Kt,fm as Yt,fn as Ut,fo as ii,fp as Ko,f4 as xt,eU as Ie,bn as Ln,bh as oi,fq as ri,fr as Yo,bp as Uo,f5 as ai}from"./zeni-epic-state-C3Iwci22.js";import{N as it,D as qo,R as Qo,B as ye,u as _}from"./AccountRow-xHV9Yzsk-CZNNz30p.js";function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Z(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Pe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Zo=a.div`
1
+ import{V as t,b1 as _o,aK as m,bK as pe,aL as U,dl as $o,o as s,p as X,aN as bn,q as O,aA as kn,ax as Lo,dm as jn,dn as Ao,F as B,u as w,dp as Qn,dq as Nt,aS as $,dr as It,c8 as Pt,ds as Ft,y as V,c_ as zt,av as Zn,a9 as Xe,dt as Me,bM as H,l as Bo,e as ce,aZ as Jn,du as Xn,aT as T,am as Le,dv as Wo,dw as le,c7 as Tt,bY as Sn,ag as Oo,al as we,dx as et,dy as Ae,dz as nt,ak as v,cf as ne,dA as Mo,b as Vt,dB as Ge,dC as Cn,dD as vn,dE as No,dF as Io,b7 as ei,b4 as Po,cv as Dt,cu as Rt,dG as Fo,b5 as ti,cy as ni,bO as zo,dH as To,dI as _n,dJ as $n,dK as Vo,dL as Do,bQ as Ro,bI as Go,dM as Eo}from"./index-Dg4B2O5-.js";import{n as a,b as P}from"./mui-bYXq4XMS.js";import{a as N,w as Ho}from"./core-3dlyNYRL.js";import{eT as Gt,fi as Et,fj as Ne,fk as Ht,fl as Kt,fm as Yt,fn as Ut,fo as ii,fp as Ko,f4 as xt,eU as Ie,bn as Ln,bh as oi,fq as ri,fr as Yo,bp as Uo,f5 as ai}from"./zeni-epic-state-C3Iwci22.js";import{N as it,D as qo,R as Qo,B as ye,u as _}from"./AccountRow-xHV9Yzsk-CcYYoZk4.js";function q(e,n){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function Z(e){return U("0,0",e?.forecast)}function li(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function jt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return pe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function se(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function de(e){if(e!=null&&e.forecast!=null){const n=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:n}))}else return U("0,0",null)}function ci(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const n=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return pe("0.00%",Math.floor(n*100)/100)}else return pe("0.00%",void 0)}function si(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:n}))}else return U("0,0",null)}const Pe=(e,n,i)=>{const{startDate:o,balanceType:r}=n,{dateFormat:{visual:l}}=B.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${xt(o,l.MMMYYYYFormat,e)}`:mt(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${B.getLocalizedStrings().reports.quarterPrefix}${xt(o,l.QYYYYformat,e)}`:mt(r,i);case"year":return r==="default"||r==="default_with_percent"?`${xt(o,l.YYYYformat,e)}`:mt(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function mt(e,n){return B.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}const wp=(e,n,i)=>{const o=n.length==0?e:`${e}_${n.join("_")}`;return i!=null&&i.trim().length>0?`${o}_${i}`:`${o}_${$o(10)}`},Zo=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as Oe,e as We,cO as wl,F as ae,y as O,aN as $l,V as l,bQ as Me,fB as Re,ao as Le,fX as _e,o as a,g5 as jl,cN as qe,cE as ee,cG as ce,cK as He,d4 as vl,d2 as Il,cI as Ue,cH as Ie,g6 as Ne,g7 as Sl,ft as Cl,fs as Ve,cL as Se,cM as Ol,p as Ee,fJ as Ge,B as xe,bI as Ye,fA as Ke,ak as Pe,fW as Qe,b as ye,an as Ll,bF as _l,u as N,dl as El,aW as Pl,g8 as Fl,al as Dl,g9 as Nl,bG as ge,b3 as Vl,M as Ze,ag as kl,cY as Tl,at as zl,bE as Bl}from"./index-B-wjAcUu.js";import{a as d}from"./core-3dlyNYRL.js";import{n as t}from"./mui-bYXq4XMS.js";import{bj as Je,bO as Al}from"./zeni-epic-state-C3Iwci22.js";import{W as Ce}from"./LabeledAddressValueField-Vzwy376C-BitYpYrk.js";import{I as Wl}from"./LabeledCreatableSingleSelectField-BH0fo6jF-Dc306_x5.js";import{Y as ke}from"./LabeledDocumentField-BZyH5E9V-BN-RbR8k.js";const Ml=e=>d.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),d.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("g",{clipPath:"url(#clip0_1350_23850)"},d.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip1_1350_23850)"},d.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip2_1350_23850)"},d.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip3_1350_23850)"},d.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1350_23850"},d.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),d.createElement("clipPath",{id:"clip1_1350_23850"},d.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),d.createElement("clipPath",{id:"clip2_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),d.createElement("clipPath",{id:"clip3_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Rl}=ae.getLocalizedStrings(),{businessVerification:Te}=Rl,ue={iconSize:new O(N[6],N[10]),gap:new O(N[2],N[3])},Xe={title:new xe("smallSemiBold","standardSemiBold"),description:new xe("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),c=Oe();return l.jsxs(ql,{windowSize:c,children:[e!=null?l.jsx(Hl,{windowSize:c,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Ul,{windowSize:c}),l.jsxs(Gl,{children:[l.jsx(Yl,{windowSize:c,children:Te.securityMessageTitle}),l.jsx(Kl,{windowSize:c,children:Te.securityMessageDescription})]})]})},ql=t.div`
1
+ import{q as Oe,e as We,cO as wl,F as ae,y as O,aN as $l,V as l,bQ as Me,fB as Re,ao as Le,fX as _e,o as a,g5 as jl,cN as qe,cE as ee,cG as ce,cK as He,d4 as vl,d2 as Il,cI as Ue,cH as Ie,g6 as Ne,g7 as Sl,ft as Cl,fs as Ve,cL as Se,cM as Ol,p as Ee,fJ as Ge,B as xe,bI as Ye,fA as Ke,ak as Pe,fW as Qe,b as ye,an as Ll,bF as _l,u as N,dl as El,aW as Pl,g8 as Fl,al as Dl,g9 as Nl,bG as ge,b3 as Vl,M as Ze,ag as kl,cY as Tl,at as zl,bE as Bl}from"./index-Dg4B2O5-.js";import{a as d}from"./core-3dlyNYRL.js";import{n as t}from"./mui-bYXq4XMS.js";import{bj as Je,bO as Al}from"./zeni-epic-state-C3Iwci22.js";import{W as Ce}from"./LabeledAddressValueField-Vzwy376C-COk-DvtJ.js";import{I as Wl}from"./LabeledCreatableSingleSelectField-BH0fo6jF-DAQAo0Yv.js";import{Y as ke}from"./LabeledDocumentField-BZyH5E9V-DwEkfpDT.js";const Ml=e=>d.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),d.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("g",{clipPath:"url(#clip0_1350_23850)"},d.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip1_1350_23850)"},d.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip2_1350_23850)"},d.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip3_1350_23850)"},d.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1350_23850"},d.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),d.createElement("clipPath",{id:"clip1_1350_23850"},d.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),d.createElement("clipPath",{id:"clip2_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),d.createElement("clipPath",{id:"clip3_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Rl}=ae.getLocalizedStrings(),{businessVerification:Te}=Rl,ue={iconSize:new O(N[6],N[10]),gap:new O(N[2],N[3])},Xe={title:new xe("smallSemiBold","standardSemiBold"),description:new xe("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),c=Oe();return l.jsxs(ql,{windowSize:c,children:[e!=null?l.jsx(Hl,{windowSize:c,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Ul,{windowSize:c}),l.jsxs(Gl,{children:[l.jsx(Yl,{windowSize:c,children:Te.securityMessageTitle}),l.jsx(Kl,{windowSize:c,children:Te.securityMessageDescription})]})]})},ql=t.div`
2
2
  display: flex;
3
3
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
4
4
  gap: ${e=>ue.gap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{V as r,aI as x,aJ as M,aK as f,F as p,o as s,aP as w,ag as g,aQ as H}from"./index-B-wjAcUu.js";import{n as o}from"./mui-bYXq4XMS.js";import{c as j}from"./SummaryCard-D6qGUnBa-BvL0LtL9.js";import{a as t}from"./core-3dlyNYRL.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./ReloadCard-BhHAGtmL-DiOBRSsa.js";const B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
1
+ import{V as r,aI as x,aJ as M,aK as f,F as p,o as s,aP as w,ag as g,aQ as H}from"./index-Dg4B2O5-.js";import{n as o}from"./mui-bYXq4XMS.js";import{c as j}from"./SummaryCard-D6qGUnBa-BZgfmFR1.js";import{a as t}from"./core-3dlyNYRL.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./ReloadCard-BhHAGtmL-CKcIPeW7.js";const B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
2
2
  margin: ${s.sp5};
3
3
  justify-content: space-between;
4
4
  `,W=o.div`
@@ -1,4 +1,4 @@
1
- import{q as N,e as Ae,aN as da,a8 as pa,cB as ma,F as k,V as a,bz as ua,ab as ha,cC as fa,aO as xa,y as m,cD as ya,L as Ce,o,ak as ee,cE as z,cF as ze,cG as L,cH as ba,cI as qe,cJ as ga,cK as $a,cL as Ue,av as wa,cM as Ia,cN as He,cO as Ge,cP as ja,cQ as va,cR as Da,p as P,cS as Sa,cT as Oa,bq as Ca,aQ as Fa,b7 as q,cU as Fe,u as p,ag as Ze,n as Me,cV as ka,aA as Ta,cW as Pa,cX as Na,bF as La,cY as za,cf as Ma,cZ as Ea,al as Va,bG as _,c_ as Ba,b as ce,bE as Wa}from"./index-B-wjAcUu.js";import{a as W,w as _a}from"./core-3dlyNYRL.js";import{n as s,k as Ra}from"./mui-bYXq4XMS.js";import{fe as Ya,bk as Xe,bO as Aa,bj as be,bD as qa,ff as Ua}from"./zeni-epic-state-C3Iwci22.js";import{I as Je}from"./LabeledCreatableSingleSelectField-BH0fo6jF-Dc306_x5.js";import{Y as Ke}from"./LabeledDocumentField-BZyH5E9V-BN-RbR8k.js";import{$ as Qe}from"./LabeledAddressValue-th8pNFFQ-B0qDxR9V.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const ea={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ha=Ra`
1
+ import{q as N,e as Ae,aN as da,a8 as pa,cB as ma,F as k,V as a,bz as ua,ab as ha,cC as fa,aO as xa,y as m,cD as ya,L as Ce,o,ak as ee,cE as z,cF as ze,cG as L,cH as ba,cI as qe,cJ as ga,cK as $a,cL as Ue,av as wa,cM as Ia,cN as He,cO as Ge,cP as ja,cQ as va,cR as Da,p as P,cS as Sa,cT as Oa,bq as Ca,aQ as Fa,b7 as q,cU as Fe,u as p,ag as Ze,n as Me,cV as ka,aA as Ta,cW as Pa,cX as Na,bF as La,cY as za,cf as Ma,cZ as Ea,al as Va,bG as _,c_ as Ba,b as ce,bE as Wa}from"./index-Dg4B2O5-.js";import{a as W,w as _a}from"./core-3dlyNYRL.js";import{n as s,k as Ra}from"./mui-bYXq4XMS.js";import{fe as Ya,bk as Xe,bO as Aa,bj as be,bD as qa,ff as Ua}from"./zeni-epic-state-C3Iwci22.js";import{I as Je}from"./LabeledCreatableSingleSelectField-BH0fo6jF-DAQAo0Yv.js";import{Y as Ke}from"./LabeledDocumentField-BZyH5E9V-DwEkfpDT.js";import{$ as Qe}from"./LabeledAddressValue-th8pNFFQ-HoS-9_pQ.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const ea={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ha=Ra`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -1,4 +1,4 @@
1
- import{a8 as V,gK as $,F as S,V as A,gL as q,a9 as s,ak as v,ab as J,cE as _,cN as W,cK as T,o as E,gM as Z,cI as z,aO as X,c as AA,b$ as gA,gN as BA}from"./index-B-wjAcUu.js";import{a as g,w as c}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{bj as eA}from"./zeni-epic-state-C3Iwci22.js";import{$ as EA}from"./LabeledAddressValue-th8pNFFQ-B0qDxR9V.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const CA=B=>g.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...B},g.createElement("path",{opacity:.2,d:"M26.3252 5H51.6377C51.6377 5 57.2627 5 57.2627 10.625V64.0625C57.2627 64.0625 57.2627 69.6875 51.6377 69.6875H26.3252C26.3252 69.6875 20.7002 69.6875 20.7002 64.0625V10.625C20.7002 10.625 20.7002 5 26.3252 5Z",fill:"#97C3B9"}),g.createElement("path",{d:"M23.3252 2H48.6377C48.6377 2 54.2627 2 54.2627 7.625V61.0625C54.2627 61.0625 54.2627 66.6875 48.6377 66.6875H23.3252C23.3252 66.6875 17.7002 66.6875 17.7002 61.0625V7.625C17.7002 7.625 17.7002 2 23.3252 2Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.0127 2V4.8125C43.0127 5.55842 42.7164 6.27379 42.1889 6.80124C41.6615 7.32868 40.9461 7.625 40.2002 7.625H31.7627C31.0168 7.625 30.3014 7.32868 29.774 6.80124C29.2465 6.27379 28.9502 5.55842 28.9502 4.8125V2",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("g",{style:{mixBlendMode:"darken"}},g.createElement("rect",{width:26,height:26,transform:"translate(22 12)",fill:"url(#pattern0_2225_11447)"}),g.createElement("circle",{cx:42,cy:32,r:12,fill:"url(#pattern1_2225_11447)"})),g.createElement("path",{d:"M39.625 57.875H67.125C67.4565 57.875 67.7745 57.7433 68.0089 57.5089C68.2433 57.2745 68.375 56.9565 68.375 56.625V47.875C68.375 47.5435 68.2433 47.2255 68.0089 46.9911C67.7745 46.7567 67.4565 46.625 67.125 46.625H40.875C40.5435 46.625 40.2255 46.7567 39.9911 46.9911C39.7567 47.2255 39.625 47.5435 39.625 47.875V57.875Z",fill:"#EAF3F1",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M62.1543 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0629 50.9288L64.2441 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0744 53.6874L64.2344 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M53.9727 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8812 50.9288L56.0625 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8927 53.6874L56.0527 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M45.792 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7006 50.9288L47.8818 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7121 53.6874L47.8721 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("defs",null,g.createElement("pattern",{id:"pattern0_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"scale(0.002)"})),g.createElement("pattern",{id:"pattern1_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"translate(-0.332832 -0.331172) scale(0.00333133)"})),g.createElement("image",{id:"image0_2225_11447",width:500,height:500,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,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"}))),QA=B=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...B},g.createElement("path",{d:"M1.33333 6.16693H2.52343C2.68125 6.16693 2.8326 6.22962 2.94419 6.34122C3.05579 6.45281 3.11848 6.60416 3.11848 6.76198V13.9026C3.11848 14.0604 3.05579 14.2118 2.94419 14.3233C2.8326 14.4349 2.68125 14.4976 2.52343 14.4976H1.33333",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M3.11848 12.7125C7.48556 14.9296 7.27253 14.6374 11.0118 14.6374C12.578 14.6374 13.367 13.6169 13.8276 12.1216V12.1121L14.9624 8.30373V8.29659C15.016 8.11929 15.0275 7.93192 14.9959 7.74939C14.9644 7.56686 14.8907 7.39421 14.7807 7.24519C14.6707 7.09617 14.5274 6.97488 14.3622 6.89099C14.1971 6.8071 14.0146 6.76292 13.8294 6.76196H10.9136C10.7315 6.76197 10.5518 6.72017 10.3883 6.63977C10.2249 6.55937 10.082 6.44253 9.97086 6.29824C9.85968 6.15395 9.7831 5.98606 9.74704 5.80751C9.71097 5.62896 9.71637 5.44452 9.76281 5.26838L10.2876 3.27854C10.3485 3.04716 10.326 2.80175 10.2241 2.58528C10.1223 2.36881 9.94748 2.19507 9.73041 2.09448C9.51334 1.99388 9.2678 1.97285 9.03679 2.03506C8.80577 2.09727 8.604 2.23876 8.4668 2.43475L5.55819 6.55548C5.44832 6.7112 5.30266 6.83826 5.13345 6.92597C4.96425 7.01368 4.77646 7.05947 4.58588 7.05948H3.11848",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),e=S.getLocalizedStrings(),p="completeProfilePage",Q="basicDetailsSection",m="addressSection",l=(B,n)=>`${B}.${n}`,kA=({userEmail:B,googleAPIKey:n,twoFactorAuthenticationView:i,saveStatus:G,hasUserEnteredBasicDetails:w,onSave:D,onGetOtp:M,onVerifyOtp:k,onResendOtp:y})=>{const[I,a]=g.useState(!1),[Y,f]=g.useState(!1),t=V({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),x=$({control:t.control,name:`${Q}.address`}),{dateFormat:L}=S.getLocalizedStrings(),h=()=>{const C=t.getValues(`${Q}.phone`);C!=null&&C.trim().length>0&&M(C)},F=(C,d)=>{k(C,d)},R=C=>{C!=null&&C.trim().length>0&&y(C)},K=()=>{a(!0)},U=()=>{a(!1)},b=()=>{const C=t.getValues(`${m}`);if(C!=null){const d=BA(C);t.setValue(`${Q}.address`,d)}a(!1)},P=t.handleSubmit(C=>{if(C[Q].phone!=null&&i.otpVerificationStatus.fetchState!=="Completed"||i.otpVerificationStatus.fetchState==="Completed"&&C[Q].phone!=i.phone){h();return}D&&D(C)}),{sendOtpStatus:O,otpVerificationStatus:r,otpChallenge:j,phone:H}=i,N=A.jsxs(iA,{children:[A.jsx(CA,{}),A.jsxs(sA,{children:[A.jsxs(lA,{children:[A.jsx(q,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(s,{controller:r.fetchState==="Completed",children:A.jsx(nA,{})})]}),A.jsx(v,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(oA,{children:[A.jsxs(IA,{children:[A.jsxs(tA,{children:[I&&A.jsx(rA,{onClick:U}),e.completeProfile.title]}),A.jsx(J,{...t,children:A.jsxs("form",{id:`${p}_form`,onSubmit:P,children:[A.jsx(s,{controller:w===!1,children:A.jsxs(u,{children:[A.jsx(s,{controller:I===!1,children:A.jsxs(c.Fragment,{children:[A.jsx(_,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:l(Q,"email")}}),A.jsx(W,{isDisabled:void 0,label:{label:e.common.labels.name,width:168},style:{width:"100%"},nameField:{name:l(Q,"name"),placeHolder:{firstName:e.common.placeholder.firstNamePlaceholder,lastName:e.common.placeholder.lastNamePlaceholder,name:e.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),A.jsx(T,{isOptional:!0,label:{label:e.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:l(Q,"dateOfBirth"),placeholder:e.common.placeholder.dobPlaceholder,dateFormat:L.visual.defaultInput,autoComplete:"off",maxDate:eA().subtract(18,"year")}}),A.jsx(EA,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:x,onClick:K},style:{width:"100%",padding:`${E.sp2} ${E.sp2} ${E.sp2} ${E.sp0}`}})]})}),A.jsx(s,{controller:I===!0,children:A.jsx(c.Fragment,{children:A.jsx(Z,{sectionId:m,googleAPIKey:n,isSubPage:!0})})})]})}),A.jsx(u,{children:A.jsx(z,{infoBox:N,label:{label:e.common.labels.phone,width:168},style:{width:"100%",marginTop:E.sp3,padding:E.sp0},text:{name:l(Q,"phone"),placeholder:e.common.placeholder.phonePlaceholder,defaultValue:t.getValues(`${Q}.phone`),autoComplete:"new-password",options:{required:!0}},errorInfoLabel:"",verificationErrorInfoLabel:e.common.errorMessage.invalidPhoneNumber,isPopupOpen:Y,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:h,onVerifyOtp:F,onResendOtp:R,isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:O,verifiedPhoneNumber:r.fetchState==="Completed"?H:void 0,openPopup:()=>{f(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(X,{formId:I?void 0:`${p}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?b:void 0,isLoading:G.fetchState==="In-Progress"||i.sendOtpStatus.fetchState==="In-Progress"},showCancel:!1})]})},oA=o.div`
1
+ import{a8 as V,gK as $,F as S,V as A,gL as q,a9 as s,ak as v,ab as J,cE as _,cN as W,cK as T,o as E,gM as Z,cI as z,aO as X,c as AA,b$ as gA,gN as BA}from"./index-Dg4B2O5-.js";import{a as g,w as c}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import{bj as eA}from"./zeni-epic-state-C3Iwci22.js";import{$ as EA}from"./LabeledAddressValue-th8pNFFQ-HoS-9_pQ.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const CA=B=>g.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...B},g.createElement("path",{opacity:.2,d:"M26.3252 5H51.6377C51.6377 5 57.2627 5 57.2627 10.625V64.0625C57.2627 64.0625 57.2627 69.6875 51.6377 69.6875H26.3252C26.3252 69.6875 20.7002 69.6875 20.7002 64.0625V10.625C20.7002 10.625 20.7002 5 26.3252 5Z",fill:"#97C3B9"}),g.createElement("path",{d:"M23.3252 2H48.6377C48.6377 2 54.2627 2 54.2627 7.625V61.0625C54.2627 61.0625 54.2627 66.6875 48.6377 66.6875H23.3252C23.3252 66.6875 17.7002 66.6875 17.7002 61.0625V7.625C17.7002 7.625 17.7002 2 23.3252 2Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.0127 2V4.8125C43.0127 5.55842 42.7164 6.27379 42.1889 6.80124C41.6615 7.32868 40.9461 7.625 40.2002 7.625H31.7627C31.0168 7.625 30.3014 7.32868 29.774 6.80124C29.2465 6.27379 28.9502 5.55842 28.9502 4.8125V2",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("g",{style:{mixBlendMode:"darken"}},g.createElement("rect",{width:26,height:26,transform:"translate(22 12)",fill:"url(#pattern0_2225_11447)"}),g.createElement("circle",{cx:42,cy:32,r:12,fill:"url(#pattern1_2225_11447)"})),g.createElement("path",{d:"M39.625 57.875H67.125C67.4565 57.875 67.7745 57.7433 68.0089 57.5089C68.2433 57.2745 68.375 56.9565 68.375 56.625V47.875C68.375 47.5435 68.2433 47.2255 68.0089 46.9911C67.7745 46.7567 67.4565 46.625 67.125 46.625H40.875C40.5435 46.625 40.2255 46.7567 39.9911 46.9911C39.7567 47.2255 39.625 47.5435 39.625 47.875V57.875Z",fill:"#EAF3F1",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M62.1543 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0629 50.9288L64.2441 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0744 53.6874L64.2344 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M53.9727 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8812 50.9288L56.0625 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8927 53.6874L56.0527 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M45.792 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7006 50.9288L47.8818 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7121 53.6874L47.8721 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("defs",null,g.createElement("pattern",{id:"pattern0_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"scale(0.002)"})),g.createElement("pattern",{id:"pattern1_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"translate(-0.332832 -0.331172) scale(0.00333133)"})),g.createElement("image",{id:"image0_2225_11447",width:500,height:500,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,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"}))),QA=B=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...B},g.createElement("path",{d:"M1.33333 6.16693H2.52343C2.68125 6.16693 2.8326 6.22962 2.94419 6.34122C3.05579 6.45281 3.11848 6.60416 3.11848 6.76198V13.9026C3.11848 14.0604 3.05579 14.2118 2.94419 14.3233C2.8326 14.4349 2.68125 14.4976 2.52343 14.4976H1.33333",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M3.11848 12.7125C7.48556 14.9296 7.27253 14.6374 11.0118 14.6374C12.578 14.6374 13.367 13.6169 13.8276 12.1216V12.1121L14.9624 8.30373V8.29659C15.016 8.11929 15.0275 7.93192 14.9959 7.74939C14.9644 7.56686 14.8907 7.39421 14.7807 7.24519C14.6707 7.09617 14.5274 6.97488 14.3622 6.89099C14.1971 6.8071 14.0146 6.76292 13.8294 6.76196H10.9136C10.7315 6.76197 10.5518 6.72017 10.3883 6.63977C10.2249 6.55937 10.082 6.44253 9.97086 6.29824C9.85968 6.15395 9.7831 5.98606 9.74704 5.80751C9.71097 5.62896 9.71637 5.44452 9.76281 5.26838L10.2876 3.27854C10.3485 3.04716 10.326 2.80175 10.2241 2.58528C10.1223 2.36881 9.94748 2.19507 9.73041 2.09448C9.51334 1.99388 9.2678 1.97285 9.03679 2.03506C8.80577 2.09727 8.604 2.23876 8.4668 2.43475L5.55819 6.55548C5.44832 6.7112 5.30266 6.83826 5.13345 6.92597C4.96425 7.01368 4.77646 7.05947 4.58588 7.05948H3.11848",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),e=S.getLocalizedStrings(),p="completeProfilePage",Q="basicDetailsSection",m="addressSection",l=(B,n)=>`${B}.${n}`,kA=({userEmail:B,googleAPIKey:n,twoFactorAuthenticationView:i,saveStatus:G,hasUserEnteredBasicDetails:w,onSave:D,onGetOtp:M,onVerifyOtp:k,onResendOtp:y})=>{const[I,a]=g.useState(!1),[Y,f]=g.useState(!1),t=V({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),x=$({control:t.control,name:`${Q}.address`}),{dateFormat:L}=S.getLocalizedStrings(),h=()=>{const C=t.getValues(`${Q}.phone`);C!=null&&C.trim().length>0&&M(C)},F=(C,d)=>{k(C,d)},R=C=>{C!=null&&C.trim().length>0&&y(C)},K=()=>{a(!0)},U=()=>{a(!1)},b=()=>{const C=t.getValues(`${m}`);if(C!=null){const d=BA(C);t.setValue(`${Q}.address`,d)}a(!1)},P=t.handleSubmit(C=>{if(C[Q].phone!=null&&i.otpVerificationStatus.fetchState!=="Completed"||i.otpVerificationStatus.fetchState==="Completed"&&C[Q].phone!=i.phone){h();return}D&&D(C)}),{sendOtpStatus:O,otpVerificationStatus:r,otpChallenge:j,phone:H}=i,N=A.jsxs(iA,{children:[A.jsx(CA,{}),A.jsxs(sA,{children:[A.jsxs(lA,{children:[A.jsx(q,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(s,{controller:r.fetchState==="Completed",children:A.jsx(nA,{})})]}),A.jsx(v,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(oA,{children:[A.jsxs(IA,{children:[A.jsxs(tA,{children:[I&&A.jsx(rA,{onClick:U}),e.completeProfile.title]}),A.jsx(J,{...t,children:A.jsxs("form",{id:`${p}_form`,onSubmit:P,children:[A.jsx(s,{controller:w===!1,children:A.jsxs(u,{children:[A.jsx(s,{controller:I===!1,children:A.jsxs(c.Fragment,{children:[A.jsx(_,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:l(Q,"email")}}),A.jsx(W,{isDisabled:void 0,label:{label:e.common.labels.name,width:168},style:{width:"100%"},nameField:{name:l(Q,"name"),placeHolder:{firstName:e.common.placeholder.firstNamePlaceholder,lastName:e.common.placeholder.lastNamePlaceholder,name:e.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),A.jsx(T,{isOptional:!0,label:{label:e.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:l(Q,"dateOfBirth"),placeholder:e.common.placeholder.dobPlaceholder,dateFormat:L.visual.defaultInput,autoComplete:"off",maxDate:eA().subtract(18,"year")}}),A.jsx(EA,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:x,onClick:K},style:{width:"100%",padding:`${E.sp2} ${E.sp2} ${E.sp2} ${E.sp0}`}})]})}),A.jsx(s,{controller:I===!0,children:A.jsx(c.Fragment,{children:A.jsx(Z,{sectionId:m,googleAPIKey:n,isSubPage:!0})})})]})}),A.jsx(u,{children:A.jsx(z,{infoBox:N,label:{label:e.common.labels.phone,width:168},style:{width:"100%",marginTop:E.sp3,padding:E.sp0},text:{name:l(Q,"phone"),placeholder:e.common.placeholder.phonePlaceholder,defaultValue:t.getValues(`${Q}.phone`),autoComplete:"new-password",options:{required:!0}},errorInfoLabel:"",verificationErrorInfoLabel:e.common.errorMessage.invalidPhoneNumber,isPopupOpen:Y,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:h,onVerifyOtp:F,onResendOtp:R,isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:O,verifiedPhoneNumber:r.fetchState==="Completed"?H:void 0,openPopup:()=>{f(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(X,{formId:I?void 0:`${p}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?b:void 0,isLoading:G.fetchState==="In-Progress"||i.sendOtpStatus.fetchState==="In-Progress"},showCancel:!1})]})},oA=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-height: 100vh;
@@ -1 +1 @@
1
- import{d7 as n,aW as l,V as i,b3 as f,o as m}from"./index-B-wjAcUu.js";import{a as p}from"./core-3dlyNYRL.js";import"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",w=({showConfetti:t})=>{const[e,r]=p.useState(t),[o,s]=n(c,t),[a]=l("ConfettiSuccess");return p.useEffect(()=>{t&&r(!0)},[t]),p.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),i.jsx(i.Fragment,{children:e&&o&&a!=null?i.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:m.sp0,left:m.sp0,zIndex:5},onComplete:()=>{s(!1),r(!1)},animationData:a,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{w as default};
1
+ import{d7 as n,aW as l,V as i,b3 as f,o as m}from"./index-Dg4B2O5-.js";import{a as p}from"./core-3dlyNYRL.js";import"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",w=({showConfetti:t})=>{const[e,r]=p.useState(t),[o,s]=n(c,t),[a]=l("ConfettiSuccess");return p.useEffect(()=>{t&&r(!0)},[t]),p.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),i.jsx(i.Fragment,{children:e&&o&&a!=null?i.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:m.sp0,left:m.sp0,zIndex:5},onComplete:()=>{s(!1),r(!1)},animationData:a,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{w as default};
@@ -1,4 +1,4 @@
1
- import{e as Ye,q as w,F as h,aA as U,cD as _e,V as t,bz as qe,aK as b,l as Je,cm as ae,cn as ie,co as se,c$ as Ke,aO as Xe,y as W,b$ as Ze,o,d0 as Ge,bQ as k,cf as le,u as f,b5 as de,ag as ce,ak as J,br as Qe,cY as pe,p as L,d1 as me,cV as ue}from"./index-B-wjAcUu.js";import{a as x}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const et=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:a,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:v})=>{const j=w(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(tt,{children:[t.jsxs(H,{children:[t.jsx(Y,{children:m}),t.jsx(_,{children:d})]}),t.jsxs(H,{children:[t.jsx(Y,{children:p.achDetails.bankName}),t.jsx(_,{children:s})]}),t.jsxs(H,{children:[t.jsx(Y,{children:a}),t.jsx(_,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(J,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),v()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
1
+ import{e as Ye,q as w,F as h,aA as U,cD as _e,V as t,bz as qe,aK as b,l as Je,cm as ae,cn as ie,co as se,c$ as Ke,aO as Xe,y as W,b$ as Ze,o,d0 as Ge,bQ as k,cf as le,u as f,b5 as de,ag as ce,ak as J,br as Qe,cY as pe,p as L,d1 as me,cV as ue}from"./index-Dg4B2O5-.js";import{a as x}from"./core-3dlyNYRL.js";import{n as r}from"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const et=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:a,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:v})=>{const j=w(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(tt,{children:[t.jsxs(H,{children:[t.jsx(Y,{children:m}),t.jsx(_,{children:d})]}),t.jsxs(H,{children:[t.jsx(Y,{children:p.achDetails.bankName}),t.jsx(_,{children:s})]}),t.jsxs(H,{children:[t.jsx(Y,{children:a}),t.jsx(_,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(J,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),v()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
4
  gap: ${o.sp1};
@@ -1,4 +1,4 @@
1
- import{V as a,q as me,a7 as pe,aK as ee,hk as He,F as W,aL as Pe,n as et,l as tt,aO as je,o as t,y as d,L as ze,d as at,af as nt,e as Ee,bQ as ot,fb as Be,B as V,p as Y,gj as Ce,b as it,ap as Me,c as rt,aN as be,a8 as lt,fu as ct,cB as st,ab as dt,d5 as mt,fy as pt,cG as ut,hx as xe,hy as ht,g6 as gt,u as r,b$ as yt,bZ as Oe,fj as ft,cf as Ct,ak as _e,hl as bt,fK as xt,aR as St,hz as wt,cY as Dt,hn as $t,fG as kt}from"./index-B-wjAcUu.js";import{n as o}from"./mui-bYXq4XMS.js";import{a as p}from"./core-3dlyNYRL.js";import{bO as se,bS as At,bj as Lt,bM as vt,bN as Se,bL as It}from"./zeni-epic-state-C3Iwci22.js";import{x as Ft}from"./LabeledControlledCheckBoxField-BfXa1w7M-CeV_jPQh.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const te={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:Rt}},common:{edit:Tt,labels:we,currency:De,navBar:{back:Pt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:jt}},chargeCard:{payEarly:H}}}=W.getLocalizedStrings(),zt=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:L,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=me(),T=Ee(),P=pe().analytics,[E,v]=p.useState(!1);p.useEffect(()=>{e.error!=null?v(!0):v(!1)},[e.error]);const k=te.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{windowSize:m,children:[a.jsx(Ht,{windowSize:m,children:a.jsx(ot,{title:Pt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Zt,{"data-testid":ee("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)}})})}),a.jsx(ea,{windowSize:m,children:jt.reviewAndConfirm}),a.jsx(Bt,{children:a.jsx(Be,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),E?a.jsx(Wt,{children:a.jsxs(_t,{children:[a.jsxs(Kt,{children:[a.jsx(Xt,{}),a.jsxs(Nt,{children:[a.jsx(Ut,{children:e.error?.title}),a.jsx(Vt,{children:e.error?.message})]})]}),a.jsx(Gt,{children:a.jsx(qt,{"data-testid":ee("close-error-credit-card-payment-review"),onClick:()=>{v(!1)},style:{width:t.sp3,height:t.sp3,color:Y.heroLight}})})]})}):null,a.jsx(Qt,{windowSize:m,children:a.jsxs(Ot,{children:[a.jsx(Ce,{label:{label:we.transferFrom,width:k},text:a.jsxs($e,{windowSize:m,children:[Ne(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Mt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Jt,{}),a.jsx(Ce,{label:{label:we.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?H.creditLimitReset:H.creditLimitUpdate} ${se(At(Lt().toDate(),[0,6],3).toDateString()).format(Rt)} ${H.business23Days}`,additionalInfoLabelStyles:{color:T.colors.hero,...it.smallRegular.cssObject},text:a.jsx($e,{windowSize:m,children:Pe("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:De.currencyCode,currencySymbol:De.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:H.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:Tt,onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:H.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},Ne=(e,i,h)=>{if(i==="")return a.jsx(ra,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(oa,{isOptionSelected:h,children:a.jsx(ia,{color:bt(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(ta,{src:Et(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(aa,{isOptionSelected:h,children:a.jsx(na,{})})}return null},Et=e=>e.base64!==void 0?`${xt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Bt=o(Oe)`
1
+ import{V as a,q as me,a7 as pe,aK as ee,hk as He,F as W,aL as Pe,n as et,l as tt,aO as je,o as t,y as d,L as ze,d as at,af as nt,e as Ee,bQ as ot,fb as Be,B as V,p as Y,gj as Ce,b as it,ap as Me,c as rt,aN as be,a8 as lt,fu as ct,cB as st,ab as dt,d5 as mt,fy as pt,cG as ut,hx as xe,hy as ht,g6 as gt,u as r,b$ as yt,bZ as Oe,fj as ft,cf as Ct,ak as _e,hl as bt,fK as xt,aR as St,hz as wt,cY as Dt,hn as $t,fG as kt}from"./index-Dg4B2O5-.js";import{n as o}from"./mui-bYXq4XMS.js";import{a as p}from"./core-3dlyNYRL.js";import{bO as se,bS as At,bj as Lt,bM as vt,bN as Se,bL as It}from"./zeni-epic-state-C3Iwci22.js";import{x as Ft}from"./LabeledControlledCheckBoxField-BfXa1w7M-DMw6ciRC.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const te={largeLabelWidth:new d(120,120,160),navBarContainerPaddingXaxis:new d(10,19),containerPaddingLeft:new d(r[3],r[6],r[8]),containerPaddingRight:new d(r[3],r[6],r[8]),reviewContentWrapperPaddingBottom:new d(r[5],r[8])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:Rt}},common:{edit:Tt,labels:we,currency:De,navBar:{back:Pt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:jt}},chargeCard:{payEarly:H}}}=W.getLocalizedStrings(),zt=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:L,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=me(),T=Ee(),P=pe().analytics,[E,v]=p.useState(!1);p.useEffect(()=>{e.error!=null?v(!0):v(!1)},[e.error]);const k=te.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(Yt,{windowSize:m,children:[a.jsx(Ht,{windowSize:m,children:a.jsx(ot,{title:Pt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Zt,{"data-testid":ee("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)}})})}),a.jsx(ea,{windowSize:m,children:jt.reviewAndConfirm}),a.jsx(Bt,{children:a.jsx(Be,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),E?a.jsx(Wt,{children:a.jsxs(_t,{children:[a.jsxs(Kt,{children:[a.jsx(Xt,{}),a.jsxs(Nt,{children:[a.jsx(Ut,{children:e.error?.title}),a.jsx(Vt,{children:e.error?.message})]})]}),a.jsx(Gt,{children:a.jsx(qt,{"data-testid":ee("close-error-credit-card-payment-review"),onClick:()=>{v(!1)},style:{width:t.sp3,height:t.sp3,color:Y.heroLight}})})]})}):null,a.jsx(Qt,{windowSize:m,children:a.jsxs(Ot,{children:[a.jsx(Ce,{label:{label:we.transferFrom,width:k},text:a.jsxs($e,{windowSize:m,children:[Ne(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Mt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Jt,{}),a.jsx(Ce,{label:{label:we.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?H.creditLimitReset:H.creditLimitUpdate} ${se(At(Lt().toDate(),[0,6],3).toDateString()).format(Rt)} ${H.business23Days}`,additionalInfoLabelStyles:{color:T.colors.hero,...it.smallRegular.cssObject},text:a.jsx($e,{windowSize:m,children:Pe("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:De.currencyCode,currencySymbol:De.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(je,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:H.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:Tt,onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:H.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},Ne=(e,i,h)=>{if(i==="")return a.jsx(ra,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(oa,{isOptionSelected:h,children:a.jsx(ia,{color:bt(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(ta,{src:Et(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(aa,{isOptionSelected:h,children:a.jsx(na,{})})}return null},Et=e=>e.base64!==void 0?`${xt}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Bt=o(Oe)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  padding-top: ${t.sp3};
4
4
  `,Mt=o.div`
@@ -1,4 +1,4 @@
1
- import{cO as L,e as M,cW as P,F as N,V as l,cX as H,aK as x,bF as z,o,dl as B,cq as X,bG as g,ak as _,b as S,eX as G,eY as W,eZ as Y,ag as Z,bE as q,L as K,p as m}from"./index-B-wjAcUu.js";import{a as w}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";const $e=({name:e,registerOptions:t,defaultValue:r,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=L(),b=M(),[j,k]=w.useState(!1),C=P(f,e??""),D=N.getLocalizedStrings().common.currency,V=s=>{if(!(s==null||!s))return{value:s,label:r.allOptions.find(h=>h.value===s)?.label??s,countryCode:r.allOptions.find(h=>h.value===s)?.countryCode??D.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:C,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(H,{name:e,control:y,defaultValue:r,rules:t,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(z,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:V(v.selectedOption),options:r.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.selectedOption===$.value?s({selectedOption:void 0,allOptions:r.allOptions}):s({selectedOption:$?.value,allOptions:r.allOptions})},onMenuClose:()=>k(!1),key:B(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Q,Option:U,Input:T,SingleValue:ee,ValueContainer:J,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:A},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},Q=e=>{const{menuIsOpen:t,isFocused:r,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(re,{controlStyle:u,menuIsOpen:t,isFocused:r,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},U=e=>{const{data:t,isSelected:r,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=t.countryCode,p=typeof t.label=="string"?t.label:t.value;return l.jsx(te,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:r,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:r,children:l.jsx(ne,{isSelected:r,isDisabled:a,children:t.label})}),r?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},A=e=>{const{options:t,children:r,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=t.indexOf(u)*i;return l.jsx(X,{height:r.length>7?a:r.length*i,width:"100%",itemCount:r.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:r[y]})})},J=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),T=e=>{const{selectProps:t}=e,{placeholder:r,value:a}=t;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?r:void 0,children:e.children})})},ee=e=>{const{data:t}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:t.label})})},O=n(_)`
1
+ import{cO as L,e as M,cW as P,F as N,V as l,cX as H,aK as x,bF as z,o,dl as B,cq as X,bG as g,ak as _,b as S,eX as G,eY as W,eZ as Y,ag as Z,bE as q,L as K,p as m}from"./index-Dg4B2O5-.js";import{a as w}from"./core-3dlyNYRL.js";import{n}from"./mui-bYXq4XMS.js";const $e=({name:e,registerOptions:t,defaultValue:r,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=L(),b=M(),[j,k]=w.useState(!1),C=P(f,e??""),D=N.getLocalizedStrings().common.currency,V=s=>{if(!(s==null||!s))return{value:s,label:r.allOptions.find(h=>h.value===s)?.label??s,countryCode:r.allOptions.find(h=>h.value===s)?.countryCode??D.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:C,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(H,{name:e,control:y,defaultValue:r,rules:t,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(z,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:V(v.selectedOption),options:r.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.selectedOption===$.value?s({selectedOption:void 0,allOptions:r.allOptions}):s({selectedOption:$?.value,allOptions:r.allOptions})},onMenuClose:()=>k(!1),key:B(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Q,Option:U,Input:T,SingleValue:ee,ValueContainer:J,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:A},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},Q=e=>{const{menuIsOpen:t,isFocused:r,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(re,{controlStyle:u,menuIsOpen:t,isFocused:r,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},U=e=>{const{data:t,isSelected:r,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=t.countryCode,p=typeof t.label=="string"?t.label:t.value;return l.jsx(te,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:r,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:r,children:l.jsx(ne,{isSelected:r,isDisabled:a,children:t.label})}),r?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},A=e=>{const{options:t,children:r,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=t.indexOf(u)*i;return l.jsx(X,{height:r.length>7?a:r.length*i,width:"100%",itemCount:r.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:r[y]})})},J=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),T=e=>{const{selectProps:t}=e,{placeholder:r,value:a}=t;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?r:void 0,children:e.children})})},ee=e=>{const{data:t}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:t.label})})},O=n(_)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  `,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&G(e)===!1)return l.jsx(l.Fragment,{});{const t=W[`${Y(e??"")}`];return l.jsx(ie,{children:l.jsx(t,{width:o.sp4,height:o.sp3})})}},re=n.span`
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{V as t,q as b,F as d,aN as l,aK as p,l as x,o as i,ae as g,c as h,d as m}from"./index-B-wjAcUu.js";import{a as u}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const f=o.div`
1
+ import{V as t,q as b,F as d,aN as l,aK as p,l as x,o as i,ae as g,c as h,d as m}from"./index-Dg4B2O5-.js";import{a as u}from"./core-3dlyNYRL.js";import{n as o}from"./mui-bYXq4XMS.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const f=o.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ import{V as t}from"./index-Dg4B2O5-.js";import o from"./CustomerOnboardingNoStepsPage-EpsMZ_Qt-CWfgH52u.js";import i from"./CustomerOnboardingPage-DDojksav-CwtcM3A7.js";import"./mui-bYXq4XMS.js";import"./core-3dlyNYRL.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./PaymentAccountSetupBillingAddressSection-CAtNIHNN-D9ykCS_4.js";import"./SetUpAccountSection-B3SpVh8j-aUEnBrM-.js";import"./CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-DOikq0im.js";import"./CompanyOfficerDetailsSection-CdanXlrz-BRi9YeRg.js";import"./LabeledAddressValueField-Vzwy376C-COk-DvtJ.js";import"./LabeledCreatableSingleSelectField-BH0fo6jF-DAQAo0Yv.js";import"./LabeledDocumentField-BZyH5E9V-DwEkfpDT.js";import"./QBOSetupSection-6RwsFmGn-DJS164GQ.js";import"./QBOConnectionDialog-DwFEwu61-NKYvvyQV.js";const k=r=>r.currentTenant?.productSettings.isOtherProductsEnabled===!0?t.jsx(o,{...r}):t.jsx(i,{...r});export{k as default};
@@ -1,4 +1,4 @@
1
- import{V as s,aK as y,bl as E,e as f,q as T,bM as x,o as t,u as R,y as $,ae as I,F as N,p as u,a as U,hF as P,fJ as L,as as W,al as F,hG as O}from"./index-B-wjAcUu.js";import{n as r}from"./mui-bYXq4XMS.js";import{w as S}from"./core-3dlyNYRL.js";const V=r(O)`
1
+ import{V as s,aK as y,bl as E,e as f,q as T,bM as x,o as t,u as R,y as $,ae as I,F as N,p as u,a as U,hF as P,fJ as L,as as W,al as F,hG as O}from"./index-Dg4B2O5-.js";import{n as r}from"./mui-bYXq4XMS.js";import{w as S}from"./core-3dlyNYRL.js";const V=r(O)`
2
2
  /* Size is controlled by styles.root prop */
3
3
  `,J=r.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{a7 as se,V as o,fr as Ce,q as Pe,e as be,a8 as we,hD as xe,F as ke,aN as Ie,cB as Ae,bz as Oe,o as i,aK as Ve,ab as $e,aO as ve,bl as je,d2 as Te,d3 as oe,ae as Le,y as J,ak as ze,u as A}from"./index-B-wjAcUu.js";import{n as c}from"./mui-bYXq4XMS.js";import{a as O}from"./core-3dlyNYRL.js";import{s as Be,o as Ue}from"./PaymentAccountSetupBillingAddressSection-CAtNIHNN-BxDm4Weq.js";import{f as Ee}from"./CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-D3vA19Yo.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-B3SpVh8j-Nu3w6IJ7.js";const Q="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",q={titleWidth:new J(343,580,726,826),subTitlePaddingTop:new J(A[3],A[3]),subTitlePaddingBottom:new J(A[3],A[3])},_e=e=>`${e}_form`,Fe=ke.getLocalizedStrings(),Ke=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:$,googleAPIKey:v,signedInUser:P,currentTenant:j,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:z,updateCardPaymentModalState:b,handleAddCardPaymentSource:B,resetCardPaymentViewState:U,handleResetCardPaymentErrorStatuses:E,redirectToProductSuitePage:w,onUpdateCustomerView:_,...F})=>{const u=Pe(),K=se(),{analytics:h}=K,{onFetchLinkTokenClick:D,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionClick:S,onEstablishConnectionSuccess:R,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=F,Z=be(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:V(e),values:V(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=Fe,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=Ie(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=Te(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};O.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ae(()=>ge(s,a))});return()=>{t.unsubscribe()}}),O.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(V(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,Y]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(X).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(Q);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};O.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(V(e),{keepDirtyValues:!1}),w())},[r,e,I,p.fetchState,Y,w]);const[ae,fe]=O.useState(!1);return o.jsxs(De,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx(Oe,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(We,{children:o.jsx(Ze,{"data-testid":Ve("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx($e,{...r,children:o.jsx(Re,{id:_e(ie),children:o.jsxs(Ne,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(Be,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:Q,analytics:h,isValid:ne(),onFetchLinkTokenClick:D,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionSuccess:R,updateCardPaymentModalState:b,cardPaymentView:y,resetCardPaymentViewState:U,cardSetupInProgress:ae,googleAPIKey:v,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:j,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ue,{handleConfirmCardSetupIntent:z,updateCardPaymentModalState:b,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:B,cardPaymentView:y,stripeKey:$,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:E,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},De=c.div`
1
+ import{a7 as se,V as o,fr as Ce,q as Pe,e as be,a8 as we,hD as xe,F as ke,aN as Ie,cB as Ae,bz as Oe,o as i,aK as Ve,ab as $e,aO as ve,bl as je,d2 as Te,d3 as oe,ae as Le,y as J,ak as ze,u as A}from"./index-Dg4B2O5-.js";import{n as c}from"./mui-bYXq4XMS.js";import{a as O}from"./core-3dlyNYRL.js";import{s as Be,o as Ue}from"./PaymentAccountSetupBillingAddressSection-CAtNIHNN-D9ykCS_4.js";import{f as Ee}from"./CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-DOikq0im.js";import"./sentry-CRrCIW2p.js";import"./zeni-epic-state-C3Iwci22.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-B3SpVh8j-aUEnBrM-.js";const Q="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",q={titleWidth:new J(343,580,726,826),subTitlePaddingTop:new J(A[3],A[3]),subTitlePaddingBottom:new J(A[3],A[3])},_e=e=>`${e}_form`,Fe=ke.getLocalizedStrings(),Ke=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:$,googleAPIKey:v,signedInUser:P,currentTenant:j,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:z,updateCardPaymentModalState:b,handleAddCardPaymentSource:B,resetCardPaymentViewState:U,handleResetCardPaymentErrorStatuses:E,redirectToProductSuitePage:w,onUpdateCustomerView:_,...F})=>{const u=Pe(),K=se(),{analytics:h}=K,{onFetchLinkTokenClick:D,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionClick:S,onEstablishConnectionSuccess:R,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=F,Z=be(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:V(e),values:V(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=Fe,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=Ie(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=Te(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};O.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ae(()=>ge(s,a))});return()=>{t.unsubscribe()}}),O.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(V(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,Y]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(X).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(Q);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};O.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(V(e),{keepDirtyValues:!1}),w())},[r,e,I,p.fetchState,Y,w]);const[ae,fe]=O.useState(!1);return o.jsxs(De,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx(Oe,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(We,{children:o.jsx(Ze,{"data-testid":Ve("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx($e,{...r,children:o.jsx(Re,{id:_e(ie),children:o.jsxs(Ne,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(Be,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:Q,analytics:h,isValid:ne(),onFetchLinkTokenClick:D,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:N,onEstablishConnectionSuccess:R,updateCardPaymentModalState:b,cardPaymentView:y,resetCardPaymentViewState:U,cardSetupInProgress:ae,googleAPIKey:v,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:j,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ue,{handleConfirmCardSetupIntent:z,updateCardPaymentModalState:b,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:B,cardPaymentView:y,stripeKey:$,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:E,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},De=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{V as r,fr as Zt,q as Me,e as en,a8 as tn,cB as me,F as We,aN as Ke,E as mt,aA as Qe,bz as nn,o as re,ab as an,u as M,aO as on,hD as sn,g5 as rn,fs as ft,d2 as Ot,d3 as yt,y as fe,g8 as ye,cO as cn,ak as ln,hE as gt,ac as ht,cM as dn,g7 as pn}from"./index-B-wjAcUu.js";import{a as p}from"./core-3dlyNYRL.js";import{n as P,k as xt}from"./mui-bYXq4XMS.js";import{bi as H}from"./zeni-epic-state-C3Iwci22.js";import{s as St,o as un}from"./PaymentAccountSetupBillingAddressSection-CAtNIHNN-BxDm4Weq.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-D3vA19Yo.js";import{s as fn,S as yn}from"./CompanyOfficerDetailsSection-CdanXlrz-Dn3Wp3NO.js";import{t as gn}from"./QBOSetupSection-6RwsFmGn-XgdzUG0X.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-B3SpVh8j-Nu3w6IJ7.js";import"./LabeledAddressValueField-Vzwy376C-BitYpYrk.js";import"./LabeledCreatableSingleSelectField-BH0fo6jF-Dc306_x5.js";import"./LabeledDocumentField-BZyH5E9V-BN-RbR8k.js";import"./QBOConnectionDialog-DwFEwu61-utTIYRHr.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:v,verifiedPhoneNumber:O,onPhoneVerified:y,...x})=>{const m=Me(),A=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=l,T=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:A??[],allNationalityCountries:c,sectionHeader:D,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:T,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:O,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...x})})},Sn=P.div`
1
+ import{V as r,fr as Zt,q as Me,e as en,a8 as tn,cB as me,F as We,aN as Ke,E as mt,aA as Qe,bz as nn,o as re,ab as an,u as M,aO as on,hD as sn,g5 as rn,fs as ft,d2 as Ot,d3 as yt,y as fe,g8 as ye,cO as cn,ak as ln,hE as gt,ac as ht,cM as dn,g7 as pn}from"./index-Dg4B2O5-.js";import{a as p}from"./core-3dlyNYRL.js";import{n as P,k as xt}from"./mui-bYXq4XMS.js";import{bi as H}from"./zeni-epic-state-C3Iwci22.js";import{s as St,o as un}from"./PaymentAccountSetupBillingAddressSection-CAtNIHNN-D9ykCS_4.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-Ca5QBPZU-DOikq0im.js";import{s as fn,S as yn}from"./CompanyOfficerDetailsSection-CdanXlrz-BRi9YeRg.js";import{t as gn}from"./QBOSetupSection-6RwsFmGn-DJS164GQ.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";import"./SetUpAccountSection-B3SpVh8j-aUEnBrM-.js";import"./LabeledAddressValueField-Vzwy376C-COk-DvtJ.js";import"./LabeledCreatableSingleSelectField-BH0fo6jF-DAQAo0Yv.js";import"./LabeledDocumentField-BZyH5E9V-DwEkfpDT.js";import"./QBOConnectionDialog-DwFEwu61-NKYvvyQV.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:v,verifiedPhoneNumber:O,onPhoneVerified:y,...x})=>{const m=Me(),A=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:D}=l,T=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:A??[],allNationalityCountries:c,sectionHeader:D,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:T,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:O,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...x})})},Sn=P.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{q as M,a7 as U,av as D,e as W,F as A,V as e,bz as V,o as t,aK as y,bl as _,fr as H,ak as I,ae as J,p as l,b as k,ah as N,d as R,c as Z,ap as q,aZ as K}from"./index-B-wjAcUu.js";import{a as n}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{fT as G}from"./zeni-epic-state-C3Iwci22.js";import Q from"./ConfettiBurst-BZPrXaJE-jBn53LD6.js";import{T as X}from"./ProductsCarousel-COO7w1HD-dlzh4dNk.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const Y=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=A.getLocalizedStrings(),De=({hasVerifiedBankAccount:o,meetingUrl:b,showUpdatePaymentDetailButton:u=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=U().analytics,f=D(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=W(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:B}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:m}=B;return h&&g&&m?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&m?[r.taxAndPayroll]:g&&m?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},F=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,G(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(V,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ye,{"data-testid":y("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:u?e.jsxs(Ce,{"data-testid":y("update-to-payment-address-details"),onClick:()=>F(a),children:[e.jsx(ke,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(be,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(X,{scale:1,showUpdatePaymentDetailButton:u,stopCarousel:w})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(me,{className:"discover-class"})]})]}),e.jsx(ue,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(_,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(H,{isFooterRendered:!1,meetingUrl:b,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(Q,{showConfetti:$})]})},te=i.div`
1
+ import{q as M,a7 as U,av as D,e as W,F as A,V as e,bz as V,o as t,aK as y,bl as _,fr as H,ak as I,ae as J,p as l,b as k,ah as N,d as R,c as Z,ap as q,aZ as K}from"./index-Dg4B2O5-.js";import{a as n}from"./core-3dlyNYRL.js";import{n as i}from"./mui-bYXq4XMS.js";import{fT as G}from"./zeni-epic-state-C3Iwci22.js";import Q from"./ConfettiBurst-BZPrXaJE-DtJHxTkj.js";import{T as X}from"./ProductsCarousel-COO7w1HD-Bt4CDTjn.js";import"./sentry-CRrCIW2p.js";import"./lottie-ChSMDBFD.js";import"./liveblocks-CqYfxTkH.js";import"./utils-n-wmeAcg.js";import"./analytics-CPqpPeNF.js";import"./recharts-BdOuSVh2.js";import"./lexical-DPEnH3HH.js";const Y=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=A.getLocalizedStrings(),De=({hasVerifiedBankAccount:o,meetingUrl:b,showUpdatePaymentDetailButton:u=!1,isVisitingFirstTime:$=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=U().analytics,f=D(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=W(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:B}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:m}=B;return h&&g&&m?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&m?[r.taxAndPayroll]:g&&m?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},F=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,G(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(V,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ye,{"data-testid":y("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:u?e.jsxs(Ce,{"data-testid":y("update-to-payment-address-details"),onClick:()=>F(a),children:[e.jsx(ke,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx(be,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(X,{scale:1,showUpdatePaymentDetailButton:u,stopCarousel:w})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(me,{className:"discover-class"})]})]}),e.jsx(ue,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(_,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(H,{isFooterRendered:!1,meetingUrl:b,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(Q,{showConfetti:$})]})},te=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;