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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/assets/{ACHDetailsPage-StkGXn1c-DnerZ6yw.js → ACHDetailsPage-StkGXn1c-QVuWqUed.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-cGtd6TYJ-Cp-PQoT7.js → AIPerformancePage-cGtd6TYJ-QRKa4AxL.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-BnHC_Y3E-ByMcEeMx.js → AccountInfoPage-BnHC_Y3E-B72E7e0X.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-9hQV-QKt-DIbr8exN.js → AccountInfoPageContent-9hQV-QKt-R-xf6NE9.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-BS5pz9ze-B8_cH9pi.js → AccountLockedInfoModal-BS5pz9ze-vd3nemno.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-D_348I-1-wLi2j7Hz.js → AccountReconDetailsDrawerPage-D_348I-1-BgIx6Bmu.js} +1 -1
  7. package/dist/assets/{AccountRow-DbyUdPZG-D3G-oWRQ.js → AccountRow-DbyUdPZG-kPApYWvO.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CeGcTU8h-CiwKEYdC.js → AccountsPromoCardStack-CeGcTU8h-nrGLKwQX.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-D5EnX225-LqDDXshB.js → AddAddressForCardDrawer-D5EnX225-DlgrCRko.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-D45TGyNS-FyEeS4ax.js → AddToWalletPage-D45TGyNS-DpxcbTMf.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-Cxe-3oBx-BYtw6E86.js → AgingReportsPage-Cxe-3oBx-BdtauDu4.js} +1 -1
  12. package/dist/assets/{AllUserItems-Cc_-o3gE-BoV9oLkk.js → AllUserItems-Cc_-o3gE-Dj-vsTnw.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-DoaKW48m-OHK-ezBl.js → ApAgingDetailPage-DoaKW48m-B9QImbCC.js} +1 -1
  14. package/dist/assets/{AppBasePage-BUE60uZt-eqCd5DKr.js → AppBasePage-BUE60uZt-C6OIIfvZ.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-P20acbi4-B9KrqH0V.js → AppDrawerContent-P20acbi4-DSZQpDPf.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-C5KUTjie-BXW85Fbu.js → ApprovalRulesSettingsPage-C5KUTjie-BG0_ZC6k.js} +1 -1
  17. package/dist/assets/{ArAgingChart-DIABTV5P-DnLiVsos.js → ArAgingChart-DIABTV5P-D3hRykT_.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CA4JP8HZ-DZ9wu-cb.js → ArAgingDetailPage-CA4JP8HZ-DzwzorRb.js} +1 -1
  19. package/dist/assets/{Area-Sl30rGq6-WMXLxt2t.js → Area-Sl30rGq6-CogxmVvt.js} +1 -1
  20. package/dist/assets/{AreaChart-2AgE74bB-juQGB2-h.js → AreaChart-2AgE74bB-DgDnH-B0.js} +1 -1
  21. package/dist/assets/{AttachmentView-DRBK6aiE-DxR-B_-8.js → AttachmentView-DRBK6aiE-C1Ruc-VW.js} +1 -1
  22. package/dist/assets/{BankAccountSection-CwPIXA5w-DE6FMEHD.js → BankAccountSection-CwPIXA5w-DDDsPYwm.js} +1 -1
  23. package/dist/assets/{BankAccountWarningSection-DGSw5Uvq-4-yHVJQf.js → BankAccountWarningSection-DGSw5Uvq-DbOA1NjS.js} +1 -1
  24. package/dist/assets/{BankConnectionsSettingsPage-bk8eOcuj-7VKzOuZH.js → BankConnectionsSettingsPage-bk8eOcuj-DxzeQDqg.js} +1 -1
  25. package/dist/assets/{BillDetailPage-CQ8iqo9y-D1hvEdQD.js → BillDetailPage-CQ8iqo9y-Tp3WmchS.js} +1 -1
  26. package/dist/assets/{BillPayApprovalRuleDetailPage-B8LMww_O-C3Z44ei8.js → BillPayApprovalRuleDetailPage-B8LMww_O-CRWeyw0Q.js} +1 -1
  27. package/dist/assets/{BillPayApprovalRulesPage-BCoXLnmv-Aq-Dw7YV.js → BillPayApprovalRulesPage-BCoXLnmv-DCVONktr.js} +1 -1
  28. package/dist/assets/{BillPayPromoPage-CIUhDNjJ-D6Jrrfcx.js → BillPayPromoPage-CIUhDNjJ-Cwqxzge6.js} +1 -1
  29. package/dist/assets/{BillPaySetUpPage-CrfwREgO-oxkPqY3f.js → BillPaySetUpPage-CrfwREgO-CJ9_P2PZ.js} +1 -1
  30. package/dist/assets/{BillingSettingsPage-CitBvGaR-nwEc2ngU.js → BillingSettingsPage-CitBvGaR-DZa8FJ6b.js} +1 -1
  31. package/dist/assets/{BillsBulkReviewDrawerPage-Cal9oN8I-BL6vOdpc.js → BillsBulkReviewDrawerPage-Cal9oN8I-D6VU0QwP.js} +1 -1
  32. package/dist/assets/{BoxItem-B6Qj2tSj-aLWYhGMW.js → BoxItem-B6Qj2tSj-J1Dptt9x.js} +1 -1
  33. package/dist/assets/{BusinessVerificationPage-aj1YPi-U-D08S06Tj.js → BusinessVerificationPage-aj1YPi-U-D4YVlN1d.js} +1 -1
  34. package/dist/assets/{CardNumberSubText-COZ0PEHK-CGMTIPNh.js → CardNumberSubText-COZ0PEHK-DfX-_Vv0.js} +1 -1
  35. package/dist/assets/{CashbackDetailPage-BloaeO12-DkRvSRPk.js → CashbackDetailPage-BloaeO12-CKXrQ4pr.js} +1 -1
  36. package/dist/assets/{ChargeCardDetailPage-CjW48x_w-DZEJnmps.js → ChargeCardDetailPage-CjW48x_w-CYCiZNdX.js} +1 -1
  37. package/dist/assets/{ChargeCardListPage-CiUoFBZq-BBkjDTTQ.js → ChargeCardListPage-CiUoFBZq-fokUM1Ml.js} +1 -1
  38. package/dist/assets/{ChargeCardListTable-BGdEyXLV-BJk1B__-.js → ChargeCardListTable-BGdEyXLV-i14Xe5Xy.js} +1 -1
  39. package/dist/assets/{ChargeCardPromoPage-BYgvGdtQ-jQVVK6Po.js → ChargeCardPromoPage-BYgvGdtQ-BP8Ml7dN.js} +1 -1
  40. package/dist/assets/{ChargeCardSetupPage-B0L57e-5-DfN8lydv.js → ChargeCardSetupPage-B0L57e-5-g-QFSpA6.js} +1 -1
  41. package/dist/assets/{ChargeCardStatementsPage-CB76MDoV-B8r9tvXY.js → ChargeCardStatementsPage-CB76MDoV-DzuODTlT.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-Cr_oz-BZ-B8n362Tm.js → CheckDepositDrawerPage-Cr_oz-BZ-COLf_Spm.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-B3_in9eE-D8gjZt8q.js → CollapsableReportTable-B3_in9eE-DAO-TPrY.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-K0bu4TF7-zO2jQ48g.js → CompanyOfficerDetailsSection-K0bu4TF7-A5XuxES5.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-Bn50f4y5-D-A9Krsj.js → CompanyPassportCard-Bn50f4y5-DOiZtliu.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-CamFfvAV-lyA9J8un.js → CompanyPassportPage-CamFfvAV-Dh23xkTd.js} +1 -1
  47. package/dist/assets/{CompleteProfile-2jFR92oO-DA0X1epS.js → CompleteProfile-2jFR92oO-Dv25uofO.js} +1 -1
  48. package/dist/assets/{ComposedChart-Cot0K7Et-DQrzoGG2.js → ComposedChart-Cot0K7Et-Cs0IcUoo.js} +1 -1
  49. package/dist/assets/{ConfettiBurst-D34cviSS-Z_WPGmrN.js → ConfettiBurst-D34cviSS---m1oxyT.js} +1 -1
  50. package/dist/assets/{CreateOrEditVendorPage-Abz0ijRD-C8cSnLG_.js → CreateOrEditVendorPage-Abz0ijRD-Wxr0ruoD.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentDrawerPage-BRcbxJYU-DxBcUp2U.js → CreditCardPaymentDrawerPage-BRcbxJYU-BrdaibUh.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-DR8cDrIS-TTiuldkA.js → CurrencySelectField-DR8cDrIS-BWQqgMWL.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-DPghXiES-Be3J744M.js → CustomerOnboardingActivationPage-DPghXiES-BYZrYsLp.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BfS6D7SD.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-DImhzWZN-BU1ePL5b.js → CustomerOnboardingDetailPageSkeleton-DImhzWZN-Cc3W2piF.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-B0y5uw1X-DTSY3wEk.js → CustomerOnboardingNoStepsPage-B0y5uw1X-CpWrxFy5.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-BheJqVUY-DnAWhFCF.js → CustomerOnboardingPage-BheJqVUY-gSyXgh3g.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BaYYKqZ9-C13CIlQM.js → CustomerOnboardingProductSuitePage-BaYYKqZ9-Cjiy9Y20.js} +1 -1
  59. package/dist/assets/{Dashboard-DJs11vgV-CqS9vdTt.js → Dashboard-DJs11vgV-KI7JNzAI.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-CL0RrJ4A-FEfXS09v.js → DashboardReportPage-CL0RrJ4A-CMyxRLdL.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-DHlKExbg-wP92oaCm.js → DashboardSidebarBackgroundAnimation-DHlKExbg-2TSvr-F-.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-C36JnddA-CD1u3HOE.js → DepositAccTransactionItem-C36JnddA-BuRFl8Tj.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-Db5EpWjl-D4uYWawD.js → DepositAccTransactionListPage-Db5EpWjl-fYOiHNFH.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-C_flRkmQ-DX47g_ws.js → DomesticWireDetailsPage-C_flRkmQ-D2Y9zL_T.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-CLWNXGnb-DS0DZTJ1.js → DownloadOverlay-CLWNXGnb-CzOVbqqI.js} +1 -1
  66. package/dist/assets/{DrawerPage-BdYS_9Mt-BL0llqyf.js → DrawerPage-BdYS_9Mt-Bc1McCUH.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-B7bjXrqC-Bm6qgPK0.js → EditPeoplePage-B7bjXrqC-OL09v3a6.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-BRYd6JMC-BudgCO3p.js → EditReimbursementDetailPage-BRYd6JMC-F9QPl0Ac.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-B1aKw_1J-DOXQOxN6.js → EntityDetailPage-B1aKw_1J-CWSa9OE7.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-Cp-CFb9j-NVB6pHEa.js → EntitySummarySection-Cp-CFb9j-DWbzDu3x.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-C7tY6mua-BYHSgS-c.js → ExpenseAutomationOverviewPage-C7tY6mua-CIo35h3r.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-CeP8I1tB-C-mlsXcM.js → ExpenseAutomationPage-CeP8I1tB-DHQpDifW.js} +1 -1
  73. package/dist/assets/{ExpressPayPage-DYUtczg7-BDKERlx3.js → ExpressPayPage-DYUtczg7-Cb7gdmam.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-Brau5064-B_mFzC9F.js → FeaturePreviewPage-Brau5064-B6gubfR5.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-Dhf67oqf-CptFWIJS.js → FollowStepsSection-Dhf67oqf-C9-DQpEq.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-C89Tsajc-e0Pd9wZo.js → GlobalReviewListPage-C89Tsajc-C8QIbpaJ.js} +1 -1
  77. package/dist/assets/{InformationCardStack-BLD4XmMT-Dp1BbBqU.js → InformationCardStack-BLD4XmMT-CaIFPHpb.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-CAwTWreO-DWsXatY7.js → InsightsCardStack-CAwTWreO-DMHtrXvo.js} +1 -1
  79. package/dist/assets/{InsightsSection-DJrMi3DN-DUYhJ5vl.js → InsightsSection-DJrMi3DN-BZzGhpNe.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-LAjqcDLQ-BjUKkE_z.js → IntegrationsSettingsPage-LAjqcDLQ-CwsnsoHn.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-_4BMP68N-DzpoTdAd.js → InternationalWireSwiftDetailsPage-_4BMP68N-D2TibYHD.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-BiDh0ost-o29PWd-q.js → InternationalWireVerificationPage-BiDh0ost-DRFXu-Md.js} +1 -1
  83. package/dist/assets/{InviteFormPage-DN2uvROT-Dfc30Liy.js → InviteFormPage-DN2uvROT-D-pHqBtv.js} +1 -1
  84. package/dist/assets/{InvitePageListView-DDi1bLaG-BIsQyZAc.js → InvitePageListView-DDi1bLaG-CWBEJEz9.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-D4bsu9K1-CnzfbNDf.js → InvitePeoplePage-D4bsu9K1-K8YB3huJ.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-BducuHAy-CwGoLvBS.js → InvoiceUploadSection-BducuHAy-DP3yW3zT.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-C2I9mUTD-8YcF3Lm8.js → IssueChargeCardPage-C2I9mUTD-Dk0ZH0_P.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-mLMacnQu-BhboedQp.js → LabeledAddressValue-mLMacnQu-Bs8h4KYU.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js → LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js → LabeledControlledCheckBoxField-D7yxgfu0-DgJw74_b.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js → LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js → LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-B4_WiAaD-BNmJ6YJs.js → LabeledDropDownFormattedTextField-B4_WiAaD-C8oOx3AR.js} +1 -1
  94. package/dist/assets/{LabeledText-iHeu8MCf-BqC7UtSs.js → LabeledText-iHeu8MCf-GFbIBet5.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-3DtmJ9nC.js → LabeledUserSingleSelectWithSubtitlesField-O_tz5mgs-90UTcRc3.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-DoF6cXd_-NHc4m6ED.js → LabeledZeniRolesDropDownField-DoF6cXd_-DT1LbBkc.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-C1FL0hR6-BhDC9P29.js → LinkJETransactionPage-C1FL0hR6-Bp0Um_Sm.js} +1 -1
  98. package/dist/assets/{LockCardPage-Do7WCHaW-DegBv6L_.js → LockCardPage-Do7WCHaW-ZupVtZLk.js} +1 -1
  99. package/dist/assets/{LowBalancePopup-CEiTKqxT-F00svkBR.js → LowBalancePopup-CEiTKqxT-DJVUP8TV.js} +1 -1
  100. package/dist/assets/{MagicLinkACHDetailsPage-C7xvzxN5-Dc6R7yOX.js → MagicLinkACHDetailsPage-C7xvzxN5-pg2IguPb.js} +1 -1
  101. package/dist/assets/{MagicLinkDomesticWireDetailsPage-D8iNxVu6-BUAijWLq.js → MagicLinkDomesticWireDetailsPage-D8iNxVu6-Boex5dqe.js} +1 -1
  102. package/dist/assets/{MagicLinkInternationalWireDetailsPage-DNmvv77I-BpwPqLdA.js → MagicLinkInternationalWireDetailsPage-DNmvv77I-C23EkFxR.js} +1 -1
  103. package/dist/assets/{MagicLinkSuccessPage-BO-k4XK1-MGQVRHRk.js → MagicLinkSuccessPage-BO-k4XK1-QkgOmsPy.js} +1 -1
  104. package/dist/assets/{MagicLinkTitleSection-CzGvBYzB-DMlmyXfy.js → MagicLinkTitleSection-CzGvBYzB-B3pEwVq_.js} +1 -1
  105. package/dist/assets/{MailingDetailsSection-C_TtoLpj-DODfBmzp.js → MailingDetailsSection-C_TtoLpj-DxhbJD-R.js} +1 -1
  106. package/dist/assets/{Menu-pyYbFxsT-C1MdlXRT.js → Menu-pyYbFxsT-BjDDhfv4.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-BP6RBO_Y-CehX8chf.js → MyBankConnectionsSettingsPage-BP6RBO_Y-BFwv-Z-d.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-CBwy21Ec-BLf4vWlb.js → MyPendingActivationChargeCardListPage-CBwy21Ec-CDRbSeBl.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-yHoOgEgo-DBI4IsMo.js → MyProfileSettingsPage-yHoOgEgo-daGXrnbi.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-FYZ2a05o-CmU_pgV6.js → NavBarWithPicker-FYZ2a05o-B8iO0ddX.js} +1 -1
  111. package/dist/assets/{NavigationArrow-DlO0Lww9-Ct543iDt.js → NavigationArrow-DlO0Lww9-C_GP4JM3.js} +1 -1
  112. package/dist/assets/{NavigationDots-DO5y6mdV-DGnlFBBn.js → NavigationDots-DO5y6mdV-CX8opgkb.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-FW6_Vbee-CfGEofWn.js → NewGlobalMerchantPage-FW6_Vbee-GgZoUq7l.js} +1 -1
  114. package/dist/assets/{NoDataChart-C0lCeeVH-BiooJKO2.js → NoDataChart-C0lCeeVH-DA9wYEab.js} +1 -1
  115. package/dist/assets/{NoDataTable-Mkdamra1-CCnSaZtC.js → NoDataTable-Mkdamra1-C4lxq944.js} +1 -1
  116. package/dist/assets/{NotFoundPage-DGkjOhKP-kjD5UcP7.js → NotFoundPage-DGkjOhKP-_tY2chCo.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-BhlKl9Ll-BUY5FCkq.js → NotificationSettingsPage-BhlKl9Ll-DUhiPe-6.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-DsgxTfdY-t5wE01Ro.js → NotificationsListConfig-DsgxTfdY-Bf7tXkyY.js} +1 -1
  119. package/dist/assets/{NotificationsPage-ZeNj-N6e-Bg1RwKL7.js → NotificationsPage-ZeNj-N6e-BTrejAUV.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BFHzD656-CkhDsmtK.js → OpExByVendorPage-BFHzD656-CtmebRpb.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-C0a1XRUE-Coei_22L.js → OverlayContainerPage-C0a1XRUE-V98nAOZV.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Ccd2Dj3E-BSp6SVyg.js → PandLWithForecastPage-Ccd2Dj3E-CdBcqIm3.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-NPYLXD6--Bula2_j9.js → PaymentAccountSetupBillingAddressSection-NPYLXD6--CVxMCQA5.js} +1 -1
  124. package/dist/assets/{PeoplePage-Dzl5Uh33-C_9NQRDZ.js → PeoplePage-Dzl5Uh33-BdlH9bSI.js} +1 -1
  125. package/dist/assets/{ProductsCarousel-B7wcRg4N-MgqN7eQE.js → ProductsCarousel-B7wcRg4N-CnpQ0WOo.js} +1 -1
  126. package/dist/assets/{PromoBaseCards-38oPeuBR-DNrev2WE.js → PromoBaseCards-38oPeuBR-B0H8TJQa.js} +1 -1
  127. package/dist/assets/{QBOConnectionDialog-Bn425Vnl-D7-SW8Tv.js → QBOConnectionDialog-Bn425Vnl-BbJL04ac.js} +1 -1
  128. package/dist/assets/{QBOSetupSection-BqbiJ_dk-CZU6Pjgx.js → QBOSetupSection-BqbiJ_dk-32r8g9xi.js} +1 -1
  129. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DmhPPX4d-DMO5czP7.js → ReimbursementApprovalRuleDetailPage-DmhPPX4d-D9mrhM9N.js} +1 -1
  130. package/dist/assets/{ReimbursementApprovalRulesPage-DwaZeT8t-Ds2HMmHz.js → ReimbursementApprovalRulesPage-DwaZeT8t-Dv8_jFtg.js} +1 -1
  131. package/dist/assets/{ReimbursementDetailPage-D2tg-yOT-C3XwZ7Pf.js → ReimbursementDetailPage-D2tg-yOT-BzN7qc1_.js} +1 -1
  132. package/dist/assets/{ReimbursementPromoPage-kn4Die2q-BNaLqm9R.js → ReimbursementPromoPage-kn4Die2q-CKqS3hXc.js} +1 -1
  133. package/dist/assets/{ReimbursementSetUpPage-D4FP9co3-fxCiVZhE.js → ReimbursementSetUpPage-D4FP9co3-CEmWCDyN.js} +1 -1
  134. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-hhvxZzxC-BXtCzSIP.js → ReimbursementsBulkReviewDrawerPage-hhvxZzxC-DWqEVSUF.js} +1 -1
  135. package/dist/assets/{ReloadCard-CreyuBvN-CLMqgpFk.js → ReloadCard-CreyuBvN-DjNwhyuW.js} +1 -1
  136. package/dist/assets/{ReportTableViewSelector-BeCqfOU9-DQYZGv2r.js → ReportTableViewSelector-BeCqfOU9-Dl1-rF4w.js} +1 -1
  137. package/dist/assets/{ReportsPage-CZpFSu1Y-DlpOcAya.js → ReportsPage-CZpFSu1Y-CZ0qiQOk.js} +1 -1
  138. package/dist/assets/{RevenueChart-CI7LXu5--DgnFQndd.js → RevenueChart-CI7LXu5--C_eMlqa_.js} +1 -1
  139. package/dist/assets/{ReviewDetailsPage-DaTETUBT-PWso5Dab.js → ReviewDetailsPage-DaTETUBT-BNZWzAUG.js} +1 -1
  140. package/dist/assets/{ReviewOverlay-De5_nrll-D6fwtyEd.js → ReviewOverlay-De5_nrll-UZnD0Wrb.js} +1 -1
  141. package/dist/assets/{RoleWithToolTip-CWH-iJqI-DmzPBpda.js → RoleWithToolTip-CWH-iJqI-1DRRWE9G.js} +1 -1
  142. package/dist/assets/{ScheduleDetailsFixedAssetsPage-Bq9TnStX-DDHnOsNU.js → ScheduleDetailsFixedAssetsPage-Bq9TnStX-BBlEeAEF.js} +1 -1
  143. package/dist/assets/{ScheduleDetailsPage-CkpwjK55-BLiF70NF.js → ScheduleDetailsPage-CkpwjK55-CdEJvs9J.js} +1 -1
  144. package/dist/assets/{ScheduleSequenceTable-3IZuZOPj-CeUyJkl1.js → ScheduleSequenceTable-3IZuZOPj-CpD5-K5M.js} +1 -1
  145. package/dist/assets/{ScreenRoutes-B29orzq3.js → ScreenRoutes-OiTPRoV-.js} +1 -1
  146. package/dist/assets/{SetUpAccountSection-DQMufunh-D76vpY_K.js → SetUpAccountSection-DQMufunh-CK9nyz6l.js} +1 -1
  147. package/dist/assets/{SignIn-xXGNpo08-CUzVPK00.js → SignIn-xXGNpo08-BfJajWh7.js} +1 -1
  148. package/dist/assets/{SignInScreen-CDr9y3Na.js → SignInScreen-C1mSw17d.js} +1 -1
  149. package/dist/assets/{SpendManagementListViewPage-BnfCoW19-BZB7Hw4I.js → SpendManagementListViewPage-BnfCoW19-KBHNQHIP.js} +3 -3
  150. package/dist/assets/{SpendManagementPerTabPage-CqbhJrUj-DTu-7Bk6.js → SpendManagementPerTabPage-CqbhJrUj-kkilMuTU.js} +1 -1
  151. package/dist/assets/{SpendManagementSection-ajHIu1O8-Cq9RGBsG.js → SpendManagementSection-ajHIu1O8-DADkbXE-.js} +1 -1
  152. package/dist/assets/{StatementItem-GE_8ctAq-DDQXsDRX.js → StatementItem-GE_8ctAq-DrycMqry.js} +1 -1
  153. package/dist/assets/{StatementsPage-C3NFPx6M-jgAzPQMr.js → StatementsPage-C3NFPx6M-DxRvU8jY.js} +1 -1
  154. package/dist/assets/{StatusSwitcher-BFs1Anoq-B4RP8Uzy.js → StatusSwitcher-BFs1Anoq-DpyTt46Q.js} +1 -1
  155. package/dist/assets/{SubTabSwitcher-D66ATBlk-cmQvyV1w.js → SubTabSwitcher-D66ATBlk-DOhgjMp3.js} +1 -1
  156. package/dist/assets/{SummaryCard-Bm1IRZgD-Bll-orHR.js → SummaryCard-Bm1IRZgD-91ZI-22I.js} +1 -1
  157. package/dist/assets/{Switch-0GHq7mOt-Dq45hGqf.js → Switch-0GHq7mOt-DbAV4YYH.js} +1 -1
  158. package/dist/assets/{TaskManagementPage-BGrBiImq-E6_WY2ZU.js → TaskManagementPage-BGrBiImq-BfzNLv5E.js} +1 -1
  159. package/dist/assets/{TimeRangeSwitcher-BLZFMJtQ-wzd2C_JZ.js → TimeRangeSwitcher-BLZFMJtQ-DGm3ShK1.js} +1 -1
  160. package/dist/assets/{TimeframeSwitcher-BsjH-yMO-V_f8h8uY.js → TimeframeSwitcher-BsjH-yMO-BPnsY2-U.js} +1 -1
  161. package/dist/assets/{TimeframeSwitcherWithToggle-Cu3G5WXl-BNaAKXj3.js → TimeframeSwitcherWithToggle-Cu3G5WXl-DA09Uj2K.js} +1 -1
  162. package/dist/assets/{TopExCard-ZSEsgTG--BNm-M2ne.js → TopExCard-ZSEsgTG--CATJC-Xk.js} +1 -1
  163. package/dist/assets/{TopExDetailPage-0MGEdNiZ-CVCWUWVh.js → TopExDetailPage-0MGEdNiZ-zdtgEwyG.js} +1 -1
  164. package/dist/assets/{TransactionDetailPage-C7wPASNo-BTqu7QgN.js → TransactionDetailPage-C7wPASNo-DbosApC9.js} +1 -1
  165. package/dist/assets/{TransactionList-Brm_EWed-DwQzznTi.js → TransactionList-Brm_EWed-Cq3RVCVg.js} +1 -1
  166. package/dist/assets/{TransactionListBig-Br5XrVkF-BW7DnMvS.js → TransactionListBig-Br5XrVkF-CTCHs4ax.js} +1 -1
  167. package/dist/assets/{TransactionListPage-BE_E_82V-SHPPjUOF.js → TransactionListPage-BE_E_82V-nYGMiY-b.js} +1 -1
  168. package/dist/assets/{TransactionVendorDetailPage-CtVIgF01-3kEoBcmO.js → TransactionVendorDetailPage-CtVIgF01-wm39V-7s.js} +1 -1
  169. package/dist/assets/{TransferDrawerPage-CCKQSH2d-21ckGGxB.js → TransferDrawerPage-CCKQSH2d-C1fxF28H.js} +1 -1
  170. package/dist/assets/{TreasuryOverviewPage-D7OhHT_I-DWU8OjtE.js → TreasuryOverviewPage-D7OhHT_I-CJSivn-m.js} +1 -1
  171. package/dist/assets/{TreasuryPromoPage-ssGWinby-BKoFmxRZ.js → TreasuryPromoPage-ssGWinby-7M6uQ6F0.js} +1 -1
  172. package/dist/assets/{TreasuryStatementsPage-CB4g45eo-D4tAMGAJ.js → TreasuryStatementsPage-CB4g45eo-FvCbZGLY.js} +1 -1
  173. package/dist/assets/{TreasuryTaxLetterPage-CixtQrG2-DyQ3GU2a.js → TreasuryTaxLetterPage-CixtQrG2-CdrNDE0k.js} +1 -1
  174. package/dist/assets/{TrendChart-ZXja3Lv--B4yGBgeP.js → TrendChart-ZXja3Lv--DjXJyQYi.js} +1 -1
  175. package/dist/assets/{TrendWithTransactions-Bacaqvbc-CDzpSeHr.js → TrendWithTransactions-Bacaqvbc-CuLqX3Nb.js} +1 -1
  176. package/dist/assets/{UncategorizedAccountsMappingPage-DgSFpzWV-Bo91RVO4.js → UncategorizedAccountsMappingPage-DgSFpzWV-DQ46RXxs.js} +1 -1
  177. package/dist/assets/{UnitIntegrationPage-B2KxkPGT-Cj7aVov9.js → UnitIntegrationPage-B2KxkPGT-UD1zrCcb.js} +1 -1
  178. package/dist/assets/{UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js → UploadAdditionalDocumentOverlay-DCq4eMPQ-DgDGrP6S.js} +1 -1
  179. package/dist/assets/{Vendor2FAPopup-DyQl5kF8-BPyop29n.js → Vendor2FAPopup-DyQl5kF8-DEaADgAn.js} +1 -1
  180. package/dist/assets/{VendorACHDetailsPage-NEsVAzoZ-DqBD51QK.js → VendorACHDetailsPage-NEsVAzoZ-Bc_YmJ7L.js} +1 -1
  181. package/dist/assets/{VendorDetailPage-gDnCoaGz-Bq_C256n.js → VendorDetailPage-gDnCoaGz-DnPFm_s9.js} +1 -1
  182. package/dist/assets/{VendorDomesticWireDetailsPage-BeqPYONY-C4JA1J7T.js → VendorDomesticWireDetailsPage-BeqPYONY-DWVhQVkv.js} +1 -1
  183. package/dist/assets/{VendorFiling1099EditablePage-UIV2Tn2v-dXlu2VP0.js → VendorFiling1099EditablePage-UIV2Tn2v-IWBkVx3W.js} +1 -1
  184. package/dist/assets/{VendorFirstReviewPage-DiNHrTKs--rE1SgmE.js → VendorFirstReviewPage-DiNHrTKs-dMUj2lfg.js} +1 -1
  185. package/dist/assets/{VendorInternationalWireDetailsPage-X2xViJmq-BLoiZ84q.js → VendorInternationalWireDetailsPage-X2xViJmq-1IEQyhex.js} +1 -1
  186. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DUjY1sSV-xU4diICn.js → VendorInternationalWireSwiftDetailsPage-DUjY1sSV-7mNdGNdo.js} +1 -1
  187. package/dist/assets/{VendorsAccountsSection-tcJAh1A7-COfHef35.js → VendorsAccountsSection-tcJAh1A7-Dj7jjfw5.js} +1 -1
  188. package/dist/assets/{VerifyDevice-BpRkPdzL-DdjhGhQl.js → VerifyDevice-BpRkPdzL-B5ybgDmP.js} +1 -1
  189. package/dist/assets/{VideoPlayer-DVIeTdLq-CMw9Re6n.js → VideoPlayer-DVIeTdLq-C7AoMVy0.js} +1 -1
  190. package/dist/assets/{VideoPopup-CPW65Ljn-Mlf95YHy.js → VideoPopup-CPW65Ljn-DMNmv8U3.js} +1 -1
  191. package/dist/assets/{WarningsDrawerPage-DmT71mwN-DESwOtN_.js → WarningsDrawerPage-DmT71mwN-Di-UIPop.js} +1 -1
  192. package/dist/assets/{ZeniAccountDetailPage-BDnKHtXx-DnCgg11y.js → ZeniAccountDetailPage-BDnKHtXx-_4OD2XSq.js} +1 -1
  193. package/dist/assets/{ZeniAccountListViewPage-D1I68D9x-zovkBtXJ.js → ZeniAccountListViewPage-D1I68D9x-Bvus0P_k.js} +1 -1
  194. package/dist/assets/{ZeniAccountNavBarPieces-2a3O6Mrv-CEltxOUL.js → ZeniAccountNavBarPieces-2a3O6Mrv-Bn4VbLw2.js} +1 -1
  195. package/dist/assets/{ZeniAccountPromoPage-C0xo5aaW-EZZNv-KJ.js → ZeniAccountPromoPage-C0xo5aaW-D7P5Lhzj.js} +1 -1
  196. package/dist/assets/{ZeniAccountSetupPage-BfUwEF_n-Cb98B4Sd.js → ZeniAccountSetupPage-BfUwEF_n-Bwo0JfQm.js} +1 -1
  197. package/dist/assets/{ZeniCopyright-DPuPyAW5-BSJS_xPn.js → ZeniCopyright-DPuPyAW5-Bnt6ioyH.js} +1 -1
  198. package/dist/assets/{ZeniTransferAmountSlider-CPHnjZJx-BmCI7vMf.js → ZeniTransferAmountSlider-CPHnjZJx-BGffL5pM.js} +1 -1
  199. package/dist/assets/{_baseUnset-WRwI4F7w-C17FI5GR.js → _baseUnset-WRwI4F7w-SKv6CaOr.js} +1 -1
  200. package/dist/assets/{analyticsHelper-DQrzJx-G.js → analyticsHelper-C19sEVMv.js} +1 -1
  201. package/dist/assets/{analyticsHelper-QM8g-I4_-BsSO6wHs.js → analyticsHelper-QM8g-I4_-D8fsuugi.js} +1 -1
  202. package/dist/assets/{chartTypes-BADtYh4F-X-tWlUJq.js → chartTypes-BADtYh4F-B1Z_E0y8.js} +1 -1
  203. package/dist/assets/{commonDimensions-B2oTTz3C-DxkHqcKn.js → commonDimensions-B2oTTz3C-BcwGbjhJ.js} +1 -1
  204. package/dist/assets/{detailCommon-B2986coM-C1gDOjW1.js → detailCommon-B2986coM-NlrX1KrH.js} +1 -1
  205. package/dist/assets/{downloadPdf-C0_jxUh_-bREzf3Cq.js → downloadPdf-C0_jxUh_-xl909S0g.js} +1 -1
  206. package/dist/assets/{flatten-CIVR5K8J-DvOZeE7b.js → flatten-CIVR5K8J-D-QSFstn.js} +1 -1
  207. package/dist/assets/{groupBy-LtwzERV9-C02NtlDV.js → groupBy-LtwzERV9-DfsHYWjt.js} +1 -1
  208. package/dist/assets/{index-2CdI-B2B.js → index-OJbFNHch.js} +4 -4
  209. package/dist/assets/map-CnboTxlt-iF8o7Kja.js +1 -0
  210. package/dist/assets/{mapLoadingInProgressToTreeNode-wIyHFu9f-XNeJbueD.js → mapLoadingInProgressToTreeNode-wIyHFu9f-BUan4l0E.js} +1 -1
  211. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-C7GfKtaE.js → mapSectionWithAcOnlyToTreeNode-CPOj7SUJ-BBvkWVpb.js} +1 -1
  212. package/dist/assets/{mapSpacerToTreeNode-D35gt6vK-B3lOm-Wx.js → mapSpacerToTreeNode-D35gt6vK-Dg4nN-DB.js} +1 -1
  213. package/dist/assets/{mapTimeframeBalancesToTreeNode-CreSrgeo-D32OjiRY.js → mapTimeframeBalancesToTreeNode-CreSrgeo-DJ7qRU6g.js} +1 -1
  214. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv8OFsQz-CIsvQJMh.js → mapTimeframeBalancesToTreeNode-Cv8OFsQz-BQTTe1de.js} +1 -1
  215. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-DOWHQg2-.js → mapTimeframeHeaderLoadingInProgressToTreeNode-CJ8hkVjB-B-rBOsE2.js} +1 -1
  216. package/dist/assets/{omit-5LZGrM3q-cCGLyNB9.js → omit-5LZGrM3q-Dkas3Ge8.js} +1 -1
  217. package/dist/assets/{orderBy-D3W4CDe6-BoPe-dQB.js → orderBy-D3W4CDe6-C2Pj0hxa.js} +1 -1
  218. package/dist/assets/{remove-ADLCpWJf-CcDvT7jc.js → remove-ADLCpWJf-C_kUyMnr.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-C_Swao_b-2UkzUVnC.js → toCOABalancesWithID-C_Swao_b-UbAQtm0o.js} +1 -1
  220. package/dist/assets/{toChartData-DfujfQ7D-nillWsTs.js → toChartData-DfujfQ7D-DwlIUYBD.js} +1 -1
  221. package/dist/assets/{uploadAttachment-Wnp0PZFn-CVVetHUv.js → uploadAttachment-Wnp0PZFn-BWKvLRtm.js} +1 -1
  222. package/dist/assets/{uploadReceipts-BkHrFC8j-DevoCqHx.js → uploadReceipts-BkHrFC8j-BKjYP7lf.js} +1 -1
  223. package/dist/index.html +1 -1
  224. package/package.json +1 -1
  225. package/dist/assets/CustomerOnboardingContainerPage-CiLsQ_pQ-BpWpryzi.js +0 -1
  226. package/dist/assets/map-CnboTxlt-CZn0FfBt.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as t,d4 as si,a8 as ai,a as le,aa as ni,u as te,a$ as ve,a7 as li,i as ze,ig as di,k7 as ci,k8 as hi,k9 as pi,bm as G,da as ui,t as De,C as I,bG as mi,dj as gi,ka as xi,kb as wi,bC as Ci,b as i,cz as fi,bq as Si,R as f,fU as ki,bM as vi,kc as yi,br as $i,g as ji,af as ee,ii as bi,cH as ke,s as u,cF as Ii,ai as J,di as Je,dF as Li,dO as Fi,kd as Ai,ke as zi,ah as Y,d as Ct,cM as ft,kf as St,kg as Ri,kh as Pi,dq as Bi,ki as kt,eR as Di,eK as q,bn as he,dm as vt,A as yt,kj as _i,kk as Ei,j$ as Ye,cq as $t,cx as jt,bs as be,c6 as Ti,cN as Oi,cO as Vi,kl as Ni}from"./index-2CdI-B2B.js";import{o as ue,a as S}from"./core-tlHkQPPu.js";import{n as o,c as Qe}from"./mui-kiGMfX4-.js";import{h as Ve}from"./Menu-pyYbFxsT-C1MdlXRT.js";import{y as bt}from"./RoleWithToolTip-CWH-iJqI-DmzPBpda.js";import{h as Ne}from"./CardNumberSubText-COZ0PEHK-CGMTIPNh.js";const xe=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ui=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:xe.owner,sortOrder:"ascending",width:new f(120,120,160,200,200)},Ze={key:"cardName",value:xe.cardName,sortOrder:"ascending",width:new f(120,120,160,171,171)},et={key:"cardType",value:xe.cardType,sortOrder:"ascending",width:new f(120,120,130,170,170)},tt={key:"status",value:xe.status,sortOrder:"ascending",width:new f(115,115,125,132,132)},it={key:"utilisation",value:xe.utilisation,sortOrder:"ascending",width:new f(u[11],u[11],u[11],u[12],120)},ot={key:"limit",value:xe.limit,sortOrder:"ascending",width:new f(68,68,68,120,120)},It=e=>e===!0?[{...Xe,width:new f(0,0),value:Ui},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:fe,spendManagement:{billPay:{paymentDetails:{feePercent:Mi}},chargeCard:$}}=le.getLocalizedStrings(),se={containerPaddingLeft:new f(u[3],u[2]),containerPaddingRight:new f(u[2],u[3]),containerPaddingTop:new f(u[2],u[3]),containerPaddingBottom:new f(u[2],u[3]),containerMarginLeft:new f(u[4],u[0]),containerMarginRight:new f(u[4],u[0]),webkitLineClamp:new f(2,1,1,1,1)};var Wi=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Wi||{});const Hi={moreItemFont:new Ct("extraSmallRegular","smallRegular")},Ki=({setCardIdForRowAction:e,setActionTypeForRowAction:r,rowActionView:s,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:p,signedInUser:g,resendInviteId:k,index:w,onChargeCardRowClick:j,onChargeCardResendInviteClick:v})=>{const[h,x]=S.useState(!1),[C,F]=S.useState(!1);S.useEffect(()=>{h||F(!1)},[h]),S.useEffect(()=>{l.length>0&&h&&(x(!1),F(!1))},[l.length,h]);const _=s.cardId===a.id,A=l.includes(a.id),R=_&&s.unlockChargeCardsFetchState.fetchState==="In-Progress"||A&&c==="In-Progress",E=_&&s.revokeChargeCardFetchState.fetchState==="In-Progress"||A&&d==="In-Progress",m=R||E,y=te(),W=ve(),B=!!W.loggedInUserRole.includes("charge_card_user")||p,H=S.useCallback(()=>{j(a.id,w)},[a.id]),N=kt(a)/a.limit.amount*100,T=a?.cardHolderUserId===g.userId,O=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",U=Di(a.cardHolderUser,!1),Q=a.balance,b=It(B),D=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:m,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(ho,{title:he("0,0.[00]",Q),className:"amountToUtilize",children:he("0,0.[00]",Q)})}),N!==0?t.jsx(q,{isLoading:m,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(po,{className:"amountToUtilize",children:`${Math.round(N)}${Mi}`})}):null]}),de=a.type.code,K=$.cardList.tooltip[de],ie=K!=null?T?K.self:`${U} ${K.cardUser}`:fe.strings.empty;return t.jsx(Gi,{windowSize:y,children:t.jsx(Ji,{onClick:H,"data-testid":G("card-row",a.id),children:t.jsxs(Qi,{children:[B?null:t.jsx(me,{children:t.jsxs(Xi,{windowSize:y,responsiveWidth:b[0].width,children:[t.jsx(q,{isLoading:m,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(eo,{isLoading:m,children:[t.jsx(Zi,{isLoading:m,children:t.jsx(q,{isLoading:m,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(to,{windowSize:y,title:U,className:"cardHolderName",children:U===fe.strings.empty?fe.strings.hyphen:U})})}),t.jsx(q,{isLoading:m,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(bt,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(me,{children:t.jsxs(so,{isLoading:m,windowSize:y,responsiveWidth:b[1].width,children:[t.jsx(q,{isLoading:m,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:m,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(Co,{windowSize:y,className:"cardNameSubText",children:a.status.code==="request_on_hold"?fe.strings.hyphen:$.cardDetails.expiryHideOut+fe.strings.space+a.accountLast4})]})]})}),t.jsx(me,{children:t.jsx(no,{windowSize:y,responsiveWidth:b[2].width,children:t.jsx(lo,{className:"card-type",children:t.jsx(q,{isLoading:m,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ne,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(me,{children:t.jsx(lt,{windowSize:y,isLoading:m,responsiveWidth:b[3].width,children:t.jsx(q,{isLoading:m,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:k===a.id?t.jsx(yt,{size:"Small",start:!0}):t.jsxs(co,{children:[t.jsx(go,{children:a.status.code==="request_on_hold"?t.jsxs(ke,{display:"flex",title:ie,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Ae,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(uo,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Ae,{status:a.status.code})}),a.status.code!=="request_on_hold"||T?null:t.jsx(mo,{onClick:ce=>{ce.stopPropagation(),v(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder})]})})})}),t.jsx(me,{children:t.jsx(lt,{windowSize:y,isLoading:m,responsiveWidth:b[4].width,children:D})}),t.jsx(me,{children:t.jsxs(io,{windowSize:y,responsiveWidth:b[5].width,children:[t.jsxs(oo,{windowSize:y,isLoading:m,children:[t.jsx(q,{isLoading:m,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ro,{className:"limitAmount",windowSize:y,title:he("0,0.[00]",a.limit),children:he("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:m,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(xo,{className:"menu-icon",onMouseEnter:()=>{!h&&O&&F(!0)},onMouseLeave:()=>{O&&F(!1)},children:(()=>{const ce=a.status.code==="locked",we=a.status.code==="closed"||a.status.code==="closed_by_customer",P=B?n&&!m&&!we&&!(ce&&a.isLockedByAdmin):n?!m&&O:a.status.code==="request_on_hold",oe=l.length>0;return P&&t.jsx(ke,{open:C&&!h&&!oe,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(wo,{children:t.jsx(Lt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:B,setIsMenuOpen:x,setCardIdForRowAction:e,setActionTypeForRowAction:r})}),setIsMenuOpen:ye=>{oe||x(ye)},isMenuOpen:h&&!oe,menuIconStyles:{height:"auto",cursor:oe?"not-allowed":"pointer",opacity:oe?.5:1,pointerEvents:oe?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Lt=({cardDetail:e,isCardControlsEnabled:r,isChargeCardUser:s,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=te();return r?e.status.code==="request_on_hold"?s?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(Ie,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Yi,{}),t.jsx(Se,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?s?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(Ie,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(Se,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?s?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(V,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(V,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(rt,{}),t.jsx(V,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(Ie,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(Se,{children:$.cardDetails.moreOptions.close})]})]}):s?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(st,{}),t.jsx(V,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(rt,{}),t.jsx(V,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(st,{}),t.jsx(V,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(Ie,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(Se,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(Se,{children:$.cardDetails.revokeInvite})}):null},Ae=({status:e,style:r})=>{const s=ze(),d=qi(e,s),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return te()==="small"?t.jsx(Ye,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...r}}):t.jsx(Ye,{textColor:d,text:c[e],styles:r,tagStyles:{padding:"1px 6px"}})},qi=(e,r)=>{switch(e){case"active":return new be(I.success);case"request_on_hold":return new be(I.graphColor36);case"inactive":return new be(I.alert);default:return new be(r.colors.grey1)}},V=o(Y)`
1
+ import{j as t,d4 as si,a8 as ai,a as le,aa as ni,u as te,a$ as ve,a7 as li,i as ze,ig as di,k7 as ci,k8 as hi,k9 as pi,bm as G,da as ui,t as De,C as I,bG as mi,dj as gi,ka as xi,kb as wi,bC as Ci,b as i,cz as fi,bq as Si,R as f,fU as ki,bM as vi,kc as yi,br as $i,g as ji,af as ee,ii as bi,cH as ke,s as u,cF as Ii,ai as J,di as Je,dF as Li,dO as Fi,kd as Ai,ke as zi,ah as Y,d as Ct,cM as ft,kf as St,kg as Ri,kh as Pi,dq as Bi,ki as kt,eR as Di,eK as q,bn as he,dm as vt,A as yt,kj as _i,kk as Ei,j$ as Ye,cq as $t,cx as jt,bs as be,c6 as Ti,cN as Oi,cO as Vi,kl as Ni}from"./index-OJbFNHch.js";import{o as ue,a as S}from"./core-tlHkQPPu.js";import{n as o,c as Qe}from"./mui-kiGMfX4-.js";import{h as Ve}from"./Menu-pyYbFxsT-BjDDhfv4.js";import{y as bt}from"./RoleWithToolTip-CWH-iJqI-1DRRWE9G.js";import{h as Ne}from"./CardNumberSubText-COZ0PEHK-DfX-_Vv0.js";const xe=le.getLocalizedStrings().spendManagement.chargeCard.cardList.header,Ui=le.getLocalizedStrings().common.strings.empty,Xe={key:"owner",value:xe.owner,sortOrder:"ascending",width:new f(120,120,160,200,200)},Ze={key:"cardName",value:xe.cardName,sortOrder:"ascending",width:new f(120,120,160,171,171)},et={key:"cardType",value:xe.cardType,sortOrder:"ascending",width:new f(120,120,130,170,170)},tt={key:"status",value:xe.status,sortOrder:"ascending",width:new f(115,115,125,132,132)},it={key:"utilisation",value:xe.utilisation,sortOrder:"ascending",width:new f(u[11],u[11],u[11],u[12],120)},ot={key:"limit",value:xe.limit,sortOrder:"ascending",width:new f(68,68,68,120,120)},It=e=>e===!0?[{...Xe,width:new f(0,0),value:Ui},Ze,et,tt,it,ot]:[Xe,Ze,et,tt,it,ot],{common:fe,spendManagement:{billPay:{paymentDetails:{feePercent:Mi}},chargeCard:$}}=le.getLocalizedStrings(),se={containerPaddingLeft:new f(u[3],u[2]),containerPaddingRight:new f(u[2],u[3]),containerPaddingTop:new f(u[2],u[3]),containerPaddingBottom:new f(u[2],u[3]),containerMarginLeft:new f(u[4],u[0]),containerMarginRight:new f(u[4],u[0]),webkitLineClamp:new f(2,1,1,1,1)};var Wi=(e=>(e.CLOSE="close",e.LOCK="lock",e.UNLOCK="unlock",e.RENAME="rename",e.UPDATE_SPEND_LIMIT="update_spend_limit",e.REVOKE_INVITE="revoke_invite",e))(Wi||{});const Hi={moreItemFont:new Ct("extraSmallRegular","smallRegular")},Ki=({setCardIdForRowAction:e,setActionTypeForRowAction:r,rowActionView:s,revokeChargeCardsInviteFetchState:d,unlockChargeCardsFetchState:c,cardsSelectedForBulkAction:l,cardDetail:a,isCardControlsEnabled:n,showViewForCardUser:p,signedInUser:g,resendInviteId:k,index:w,onChargeCardRowClick:j,onChargeCardResendInviteClick:v})=>{const[h,x]=S.useState(!1),[C,F]=S.useState(!1);S.useEffect(()=>{h||F(!1)},[h]),S.useEffect(()=>{l.length>0&&h&&(x(!1),F(!1))},[l.length,h]);const _=s.cardId===a.id,A=l.includes(a.id),R=_&&s.unlockChargeCardsFetchState.fetchState==="In-Progress"||A&&c==="In-Progress",E=_&&s.revokeChargeCardFetchState.fetchState==="In-Progress"||A&&d==="In-Progress",m=R||E,y=te(),W=ve(),B=!!W.loggedInUserRole.includes("charge_card_user")||p,H=S.useCallback(()=>{j(a.id,w)},[a.id]),N=kt(a)/a.limit.amount*100,T=a?.cardHolderUserId===g.userId,O=a.status.code!=="closed"&&a.status.code!=="closed_by_customer",U=Di(a.cardHolderUser,!1),Q=a.balance,b=It(B),D=t.jsxs(t.Fragment,{children:[t.jsx(q,{isLoading:m,customStyle:{width:i.sp9,height:"20px",borderRadius:i.sp1},children:t.jsx(ho,{title:he("0,0.[00]",Q),className:"amountToUtilize",children:he("0,0.[00]",Q)})}),N!==0?t.jsx(q,{isLoading:m,customStyle:{width:i.sp11,height:i.sp3,borderRadius:i.sp1},children:t.jsx(po,{className:"amountToUtilize",children:`${Math.round(N)}${Mi}`})}):null]}),de=a.type.code,K=$.cardList.tooltip[de],ie=K!=null?T?K.self:`${U} ${K.cardUser}`:fe.strings.empty;return t.jsx(Gi,{windowSize:y,children:t.jsx(Ji,{onClick:H,"data-testid":G("card-row",a.id),children:t.jsxs(Qi,{children:[B?null:t.jsx(me,{children:t.jsxs(Xi,{windowSize:y,responsiveWidth:b[0].width,children:[t.jsx(q,{isLoading:m,flex:"0 0",customStyle:{width:i.sp6,height:i.sp6,borderRadius:"50%"},children:t.jsx(vt,{personBasic:a.cardHolderUser,styles:{height:i.sp6,width:i.sp6,minWidth:i.sp6}})}),t.jsxs(eo,{isLoading:m,children:[t.jsx(Zi,{isLoading:m,children:t.jsx(q,{isLoading:m,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(to,{windowSize:y,title:U,className:"cardHolderName",children:U===fe.strings.empty?fe.strings.hyphen:U})})}),t.jsx(q,{isLoading:m,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:t.jsx(nt,{className:"additionalInfoContainer",children:a.cardHolderRoles?.userRoles!=null&&t.jsx(bt,{roles:a.cardHolderRoles?.userRoles})})})]})]})}),t.jsx(me,{children:t.jsxs(so,{isLoading:m,windowSize:y,responsiveWidth:b[1].width,children:[t.jsx(q,{isLoading:m,customStyle:{width:"88px",height:"20px",borderRadius:i.sp1},children:t.jsx(ao,{title:a.cardName,className:"cardName",children:a.cardName})}),t.jsxs(q,{isLoading:m,customStyle:{width:"104px",height:i.sp3,borderRadius:i.sp1},children:[" ",t.jsx(Co,{windowSize:y,className:"cardNameSubText",children:a.status.code==="request_on_hold"?fe.strings.hyphen:$.cardDetails.expiryHideOut+fe.strings.space+a.accountLast4})]})]})}),t.jsx(me,{children:t.jsx(no,{windowSize:y,responsiveWidth:b[2].width,children:t.jsx(lo,{className:"card-type",children:t.jsx(q,{isLoading:m,customStyle:{width:"144px",height:i.sp4,borderRadius:i.sp1},children:t.jsx(Ne,{cardDetail:a,forDetailPage:!1})})})})}),t.jsx(me,{children:t.jsx(lt,{windowSize:y,isLoading:m,responsiveWidth:b[3].width,children:t.jsx(q,{isLoading:m,customStyle:{width:"112px",height:i.sp4,borderRadius:i.sp1},children:k===a.id?t.jsx(yt,{size:"Small",start:!0}):t.jsxs(co,{children:[t.jsx(go,{children:a.status.code==="request_on_hold"?t.jsxs(ke,{display:"flex",title:ie,placement:"top",style:{padding:`${i.sp2} ${i.sp3}`},children:[t.jsx(Ae,{status:a.status.code,style:{cursor:"pointer"}}),t.jsx(uo,{style:{marginLeft:i.sp1},className:"infoIconTooltip"})]}):t.jsx(Ae,{status:a.status.code})}),a.status.code!=="request_on_hold"||T?null:t.jsx(mo,{onClick:ce=>{ce.stopPropagation(),v(a.id)},"data-testid":G("send-reminder",a.id),children:$.cardList.sendReminder})]})})})}),t.jsx(me,{children:t.jsx(lt,{windowSize:y,isLoading:m,responsiveWidth:b[4].width,children:D})}),t.jsx(me,{children:t.jsxs(io,{windowSize:y,responsiveWidth:b[5].width,children:[t.jsxs(oo,{windowSize:y,isLoading:m,children:[t.jsx(q,{isLoading:m,customStyle:{width:"68px",height:"20px",borderRadius:i.sp1},children:t.jsx(ro,{className:"limitAmount",windowSize:y,title:he("0,0.[00]",a.limit),children:he("0,0.[00]",a.limit)})}),t.jsx(nt,{className:"additionalInfoContainer",children:t.jsx(q,{isLoading:m,customStyle:{width:i.sp8,height:i.sp3,borderRadius:i.sp1},children:a.creditLimitFrequency.name})})]}),t.jsx(xo,{className:"menu-icon",onMouseEnter:()=>{!h&&O&&F(!0)},onMouseLeave:()=>{O&&F(!1)},children:(()=>{const ce=a.status.code==="locked",we=a.status.code==="closed"||a.status.code==="closed_by_customer",P=B?n&&!m&&!we&&!(ce&&a.isLockedByAdmin):n?!m&&O:a.status.code==="request_on_hold",oe=l.length>0;return P&&t.jsx(ke,{open:C&&!h&&!oe,variant:"standard",title:$.cardList.moreActionsTooltip,placement:"bottom-end",children:t.jsx(Ve,{isMenuVisible:!0,menuItems:t.jsx(wo,{children:t.jsx(Lt,{cardDetail:a,isCardControlsEnabled:n,isChargeCardUser:B,setIsMenuOpen:x,setCardIdForRowAction:e,setActionTypeForRowAction:r})}),setIsMenuOpen:ye=>{oe||x(ye)},isMenuOpen:h&&!oe,menuIconStyles:{height:"auto",cursor:oe?"not-allowed":"pointer",opacity:oe?.5:1,pointerEvents:oe?"none":"auto"},styles:{transform:`translate(${i.sp3},${i.sp2})`}})})})()})]})})]})})})},Lt=({cardDetail:e,isCardControlsEnabled:r,isChargeCardUser:s,setIsMenuOpen:d,setCardIdForRowAction:c,setActionTypeForRowAction:l})=>{const a=te();return r?e.status.code==="request_on_hold"?s?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(Ie,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:[t.jsx(Yi,{}),t.jsx(Se,{children:$.cardDetails.revokeInvite})]})]}):e.status.code==="inactive"?s?t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsx(Ie,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(Se,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="locked"?s?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(V,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("unlock")},children:[t.jsx(at,{}),t.jsx(V,{children:$.cardDetails.moreOptions.unlock})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(rt,{}),t.jsx(V,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsx(Ie,{}),t.jsxs(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(Se,{children:$.cardDetails.moreOptions.close})]})]}):s?t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(st,{}),t.jsx(V,{children:$.cardDetails.moreOptions.lock})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("update_spend_limit")},children:[t.jsx(rt,{}),t.jsx(V,{children:$.cardDetails.moreOptions.updateSpendLimit})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("rename")},children:[t.jsx(re,{}),t.jsx(V,{children:$.cardDetails.moreOptions.rename})]}),t.jsxs(L,{windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("lock")},children:[t.jsx(st,{}),t.jsx(V,{children:$.cardDetails.moreOptions.lock})]}),t.jsx(Ie,{}),t.jsxs(L,{windowSize:a,hoverImportant:!0,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("close")},children:[t.jsx(Be,{}),t.jsx(Se,{children:$.cardDetails.moreOptions.close})]})]}):e.status.code==="request_on_hold"?t.jsx(L,{hoverImportant:!0,windowSize:a,onClick:n=>{n.stopPropagation(),d(!1),c(e.id),l("revoke_invite")},children:t.jsx(Se,{children:$.cardDetails.revokeInvite})}):null},Ae=({status:e,style:r})=>{const s=ze(),d=qi(e,s),c=le.getLocalizedStrings().spendManagement.chargeCard.cardList.status;return te()==="small"?t.jsx(Ye,{textColor:d,text:c[e],tagStyles:{maxWidth:i.sp10,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",padding:"1px 6px",...r}}):t.jsx(Ye,{textColor:d,text:c[e],styles:r,tagStyles:{padding:"1px 6px"}})},qi=(e,r)=>{switch(e){case"active":return new be(I.success);case"request_on_hold":return new be(I.graphColor36);case"inactive":return new be(I.alert);default:return new be(r.colors.grey1)}},V=o(Y)`
2
2
  color: inherit;
3
3
  `,Se=o(Y)`
4
4
  color: ${I.important};
@@ -1,4 +1,4 @@
1
- import{u as b,a as ae,j as r,i as O,a$ as ye,a7 as be,bB as $e,bn as Se,hd as je,cf as Te,gO as ze,B as Q,bm as ee,b as t,H as ve,L as V,dr as Pe,as as ke,R as u,al as Be,cH as Ae,k3 as Re,af as Ie,s as p,d as S,C,bM as Le,br as Me,k4 as Ee}from"./index-2CdI-B2B.js";import{a as j}from"./core-tlHkQPPu.js";import{n as o,c as _e,k as De}from"./mui-kiGMfX4-.js";import{eI as Fe}from"./zeni-epic-state-Bo1aGezX.js";import{n as Ne}from"./NavigationDots-DO5y6mdV-DGnlFBBn.js";import{u as H,m as G}from"./PromoBaseCards-38oPeuBR-DNrev2WE.js";import{V as I}from"./usp-line-4JsxsMjK-mCxwNowe.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const g={containerPaddingTopBottom:new u(p[0],p[0]),uspContainerMarginX:new u(p[6],p[0]),midContainerGap:new u(p[4],84),iconContainerMinHeight:new u(236,396),emptySectionHeight:new u(p[6],43),navigationBottom:new u(p[4],94),navigationLeft:new u(192,244),carouselHeight:new u(268,396),carouselMarginTop:new u(54,p[4]),carouselMarginLeft:new u(120,p[12]),buttonTrayGap:new u(p[3],p[5]),termsOfAgreementMarginTop:new u(p[5],p[10]),contactAdminContainerMarginTop:new u(p[0],p[10]),contactAdminContainerMarginBottom:new u(p[4],p[0]),contactAdminContainerMarginLeftRight:new u(p[3],p[0])},T={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:N,spendManagement:{chargeCard:{chargeCardsPromo:a}}}=ae.getLocalizedStrings(),Ar=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:w,admins:$,cashbackRate:v,cardPromoType:d="credit",isCheckingEnabled:l,onSetupButtonClick:L,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:W,onExpressInterestClick:ge})=>{const he=O(),Z=ye(),z=b(),J=be().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:f,companyLocaleInfo:E}=i,X=$e(M?.fetchStatus.fetchState),[ue,q]=j.useState(!1),xe=f!=null&&E!=null?Se("0,0",{amount:f.chargeCardsCreditAccountLimit,currencyCode:E.currencyCode,currencySymbol:E.currencySymbol}):void 0;j.useEffect(()=>{X==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&W()},[X,W,M?.fetchStatus]);const K=Fe(Z.loggedInUserRoleMap),we=je(Z),_=d==="credit"&&f?.isCompanyInterestedInChargeCard===!1&&f.chargeCardsCreditAccountLimit===0,D=d==="credit"&&f?.isCompanyInterestedInChargeCard===!0&&f.chargeCardsCreditAccountLimit===-1,F=d==="credit"&&f?.isCompanyInterestedInChargeCard===!0&&f.chargeCardsCreditAccountLimit===0,fe=d==="credit"&&f?.isCompanyInterestedInChargeCard===!0&&f.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=_?a.getPreApprovedNow:n?a.enableCardsButton:a.setupCardsButton;return r.jsxs(We,{children:[r.jsx(Te,{title:a.title[d],backgroundColor:he.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),ue===!0?r.jsx(ze,{onCancelClick:()=>{q(!1)},meetingUrl:e}):null,r.jsx(qe,{windowSize:z,children:K===!0?r.jsxs(Xe,{children:[r.jsxs(Je,{children:[r.jsx(He,{isApproved:fe,creditAmount:xe,cardPromoType:d,isUnderReview:F,isRejected:D,showExpressInterest:_,creditLimit:f?.chargeCardsCreditAccountLimit}),r.jsx(ne,{cardPromoType:d,cashbackRate:v})]}),r.jsx(oe,{showEnableCardButton:n,cardPromoType:d,isUnderReview:F,isRejected:D,showExpressInterest:_,isCheckingEnabled:l})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:$,cashbackRate:v,hasZeniFinopsRoles:we,cardPromoType:d,isCheckingEnabled:l})}),!K||F||D?null:r.jsxs(ir,{windowSize:z,children:[r.jsx(Q,{variant:"secondary",label:a.scheduleDemoButton,style:{width:166},onClick:()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:h,isDebitCardEnabled:x,isCreditCardEnabled:w},"Cards Promo"),q(!0)},"data-testid":ee("schedule-demo-button")}),r.jsx(Ze,{windowSize:z,children:a.orText}),r.jsx(Q,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===a.getPreApprovedNow?ge:()=>L(d),"data-testid":ee("enable-card-button")})]})]})},Ue=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:a.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:a.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:a.noCardAssigned.post})]})},oe=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:n,isRejected:c,showExpressInterest:m,isCardUser:h=!1})=>{const x=b();return r.jsx(tr,{windowSize:x,children:r.jsx(Re,{topTermLabel:a.terms.checkingAccountTerm,buttonTermLabel:n===!0||c===!0||h===!0?void 0:m===!0?a.terms.getPreApprovedNowTerm:s?a.terms.alternateTerm1:a.terms.terms1,showEndIcon:!1,showTerms:c===!1&&h===!1&&n===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(x)},cardPromoType:e,isCheckingEnabled:i})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:c,showExpressInterest:m,creditLimit:h})=>{const x=b(),w=s==="debit_and_credit"?a.promoTextDebitCreditCard:s==="debit"?a.promoTextDebitCard:a.promoTextCreditCard,$=e?r.jsxs(r.Fragment,{children:[a.promoBadgeText.approved,r.jsx(te,{children:i}),a.creditLimit,N.strings.space]}):m?r.jsxs(r.Fragment,{children:[a.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:a.promoBadgeText.nonPreApproved.scale}),a.promoBadgeText.nonPreApproved.doubleStarred,N.strings.space,a.promoBadgeText.nonPreApproved.higherLimits]}):n?a.promoBadgeText.underReview:c?a.promoBadgeText.rejected:s==="debit_and_credit"&&h===0?null:r.jsxs(r.Fragment,{children:[a.promoBadgeText.preApproved,r.jsx(te,{children:i}),a.creditLimit,N.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:a.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:a.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hasContent:$!=null,hideBadge:i==null||s==="debit",windowSize:x,children:[n||c||m?null:r.jsx(Cr,{}),r.jsx(Qe,{windowSize:x,children:$})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:h})=>{const x=b(),w=m==="debit_and_credit"?a.promoTextDebitCreditCard:m==="debit"?a.promoTextDebitCard:a.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:a.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:a.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:x}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),c?null:r.jsx(Ue,{admins:i}),r.jsx(oe,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:h})]})},Oe=({cards:e,companyLegalName:s})=>{const i=O(),n=b();let c,m="";if(e.length===1){c=e[0].cardCreatedByUser.photo;const h=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;m=a.cardAssigned.singleCreditCard.replace("__issuing-user__",h).replace("__company-name__",s)}else m=a.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[c!=null?r.jsx(Ke,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:c.href,alt:ae.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:h})=>{h.onerror=null,h.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:m})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=a.businessText;return s==="debit"&&(i=`${i} ${a.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(or,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=a.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(ar,{windowSize:i,children:[r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(B,{windowSize:i,children:n.item1.bold.replace("__cashback__",(100*s).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(B,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(B,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(B,{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 P;const Ve=()=>{const e=b(),s=O(),[i,n]=j.useState(0),[c,m]=j.useState(!1),h=a.businessText,x=`${h} ${a.debit}`,w=[{id:1,cardType:"debit",cardText:x},{id:2,cardType:"debit",cardText:x},{id:3,cardType:"credit",cardText:h},{id:4,cardType:"credit",cardText:h}];j.useEffect(()=>(c||(P=setInterval(()=>{n(d=>{const l=d+1;return l===w.length?(m(!0),0):l})},2e3)),()=>clearInterval(P)),[c,w.length]),j.useEffect(()=>{c&&P!=null&&clearInterval(P)},[c]);const $=(d,l)=>{switch((d-i+w.length)%w.length){case 0:return{transform:`translate(0,${l?"100%":0}) scale(1)`,zIndex:l?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${l?"80%":"5%"}) scale(0.75)`,zIndex:l?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};default:return}},v=d=>{const l=$(d,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}};return r.jsxs(ur,{windowSize:e,children:[r.jsx(xr,{windowSize:e,children:w.map((d,l)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...$(l,!1)},onClick:()=>(L=>{c||m(!0),n(L)})(l),children:l===0||l===2?r.jsx(H,{cardPromoType:d.cardType,cardText:d.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:d.cardType,cardText:d.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},d.id),r.jsx(ie,{isReflection:!0,style:{...v(l)},children:l===0||l===2?r.jsx(H,{cardPromoType:d.cardType,cardText:d.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(G,{cardPromoType:d.cardType,cardText:d.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-${d.id}`)]},d.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:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},We=o.div`
1
+ import{u as b,a as ae,j as r,i as O,a$ as ye,a7 as be,bB as $e,bn as Se,hd as je,cf as Te,gO as ze,B as Q,bm as ee,b as t,H as ve,L as V,dr as Pe,as as ke,R as u,al as Be,cH as Ae,k3 as Re,af as Ie,s as p,d as S,C,bM as Le,br as Me,k4 as Ee}from"./index-OJbFNHch.js";import{a as j}from"./core-tlHkQPPu.js";import{n as o,c as _e,k as De}from"./mui-kiGMfX4-.js";import{eI as Fe}from"./zeni-epic-state-Bo1aGezX.js";import{n as Ne}from"./NavigationDots-DO5y6mdV-CX8opgkb.js";import{u as H,m as G}from"./PromoBaseCards-38oPeuBR-B0H8TJQa.js";import{V as I}from"./usp-line-4JsxsMjK-mCxwNowe.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const g={containerPaddingTopBottom:new u(p[0],p[0]),uspContainerMarginX:new u(p[6],p[0]),midContainerGap:new u(p[4],84),iconContainerMinHeight:new u(236,396),emptySectionHeight:new u(p[6],43),navigationBottom:new u(p[4],94),navigationLeft:new u(192,244),carouselHeight:new u(268,396),carouselMarginTop:new u(54,p[4]),carouselMarginLeft:new u(120,p[12]),buttonTrayGap:new u(p[3],p[5]),termsOfAgreementMarginTop:new u(p[5],p[10]),contactAdminContainerMarginTop:new u(p[0],p[10]),contactAdminContainerMarginBottom:new u(p[4],p[0]),contactAdminContainerMarginLeftRight:new u(p[3],p[0])},T={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:N,spendManagement:{chargeCard:{chargeCardsPromo:a}}}=ae.getLocalizedStrings(),Ar=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:c,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:h,isDebitCardSetupEnabled:x,isChargeCardSetupEnabled:w,admins:$,cashbackRate:v,cardPromoType:d="credit",isCheckingEnabled:l,onSetupButtonClick:L,onBackClick:pe,onClickMenuIcon:me,onSetupChargeCardSuccess:W,onExpressInterestClick:ge})=>{const he=O(),Z=ye(),z=b(),J=be().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:f,companyLocaleInfo:E}=i,X=$e(M?.fetchStatus.fetchState),[ue,q]=j.useState(!1),xe=f!=null&&E!=null?Se("0,0",{amount:f.chargeCardsCreditAccountLimit,currencyCode:E.currencyCode,currencySymbol:E.currencySymbol}):void 0;j.useEffect(()=>{X==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&W()},[X,W,M?.fetchStatus]);const K=Fe(Z.loggedInUserRoleMap),we=je(Z),_=d==="credit"&&f?.isCompanyInterestedInChargeCard===!1&&f.chargeCardsCreditAccountLimit===0,D=d==="credit"&&f?.isCompanyInterestedInChargeCard===!0&&f.chargeCardsCreditAccountLimit===-1,F=d==="credit"&&f?.isCompanyInterestedInChargeCard===!0&&f.chargeCardsCreditAccountLimit===0,fe=d==="credit"&&f?.isCompanyInterestedInChargeCard===!0&&f.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=_?a.getPreApprovedNow:n?a.enableCardsButton:a.setupCardsButton;return r.jsxs(We,{children:[r.jsx(Te,{title:a.title[d],backgroundColor:he.colors.grey4,onBackClick:pe,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:me,style:{zIndex:9},source:"ChargeCardPromoPage"}),ue===!0?r.jsx(ze,{onCancelClick:()=>{q(!1)},meetingUrl:e}):null,r.jsx(qe,{windowSize:z,children:K===!0?r.jsxs(Xe,{children:[r.jsxs(Je,{children:[r.jsx(He,{isApproved:fe,creditAmount:xe,cardPromoType:d,isUnderReview:F,isRejected:D,showExpressInterest:_,creditLimit:f?.chargeCardsCreditAccountLimit}),r.jsx(ne,{cardPromoType:d,cashbackRate:v})]}),r.jsx(oe,{showEnableCardButton:n,cardPromoType:d,isUnderReview:F,isRejected:D,showExpressInterest:_,isCheckingEnabled:l})]}):r.jsx(Ge,{companyLegalName:s,cards:[],admins:$,cashbackRate:v,hasZeniFinopsRoles:we,cardPromoType:d,isCheckingEnabled:l})}),!K||F||D?null:r.jsxs(ir,{windowSize:z,children:[r.jsx(Q,{variant:"secondary",label:a.scheduleDemoButton,style:{width:166},onClick:()=>{J.trackCardsPromoPageClicked("schedule demo"),J.trackCardsScheduleDemoClick(c,{isCreditCardOffered:m,isDebitCardOffered:h,isDebitCardEnabled:x,isCreditCardEnabled:w},"Cards Promo"),q(!0)},"data-testid":ee("schedule-demo-button")}),r.jsx(Ze,{windowSize:z,children:a.orText}),r.jsx(Q,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===a.getPreApprovedNow?ge:()=>L(d),"data-testid":ee("enable-card-button")})]})]})},Ue=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(U,{underline:!1,windowSize:i,children:a.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(U,{underline:!0,windowSize:i,children:a.noCardAssigned.tooltip})}),r.jsx(U,{underline:!1,windowSize:i,children:a.noCardAssigned.post})]})},oe=({cardPromoType:e,showEnableCardButton:s,isCheckingEnabled:i,isUnderReview:n,isRejected:c,showExpressInterest:m,isCardUser:h=!1})=>{const x=b();return r.jsx(tr,{windowSize:x,children:r.jsx(Re,{topTermLabel:a.terms.checkingAccountTerm,buttonTermLabel:n===!0||c===!0||h===!0?void 0:m===!0?a.terms.getPreApprovedNowTerm:s?a.terms.alternateTerm1:a.terms.terms1,showEndIcon:!1,showTerms:c===!1&&h===!1&&n===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(x)},cardPromoType:e,isCheckingEnabled:i})})},He=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:c,showExpressInterest:m,creditLimit:h})=>{const x=b(),w=s==="debit_and_credit"?a.promoTextDebitCreditCard:s==="debit"?a.promoTextDebitCard:a.promoTextCreditCard,$=e?r.jsxs(r.Fragment,{children:[a.promoBadgeText.approved,r.jsx(te,{children:i}),a.creditLimit,N.strings.space]}):m?r.jsxs(r.Fragment,{children:[a.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:a.promoBadgeText.nonPreApproved.scale}),a.promoBadgeText.nonPreApproved.doubleStarred,N.strings.space,a.promoBadgeText.nonPreApproved.higherLimits]}):n?a.promoBadgeText.underReview:c?a.promoBadgeText.rejected:s==="debit_and_credit"&&h===0?null:r.jsxs(r.Fragment,{children:[a.promoBadgeText.preApproved,r.jsx(te,{children:i}),a.creditLimit,N.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:a.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:a.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hasContent:$!=null,hideBadge:i==null||s==="debit",windowSize:x,children:[n||c||m?null:r.jsx(Cr,{}),r.jsx(Qe,{windowSize:x,children:$})]})]})},Ge=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:c,cardPromoType:m="credit",isCheckingEnabled:h})=>{const x=b(),w=m==="debit_and_credit"?a.promoTextDebitCreditCard:m==="debit"?a.promoTextDebitCard:a.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[x==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:a.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:a.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:x}):r.jsx(Oe,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),c?null:r.jsx(Ue,{admins:i}),r.jsx(oe,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m,isCheckingEnabled:h})]})},Oe=({cards:e,companyLegalName:s})=>{const i=O(),n=b();let c,m="";if(e.length===1){c=e[0].cardCreatedByUser.photo;const h=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;m=a.cardAssigned.singleCreditCard.replace("__issuing-user__",h).replace("__company-name__",s)}else m=a.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(gr,{children:[c!=null?r.jsx(Ke,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:c.href,alt:ae.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:h})=>{h.onerror=null,h.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(hr,{windowSize:n,children:m})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=a.businessText;return s==="debit"&&(i=`${i} ${a.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Ve,{}):r.jsxs(or,{windowSize:e,children:[r.jsx(H,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(G,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=a.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(ar,{windowSize:i,children:[r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(dr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(B,{windowSize:i,children:n.item1.bold.replace("__cashback__",(100*s).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(nr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(B,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(lr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(B,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(k,{windowSize:i,children:[r.jsx(A,{children:r.jsx(sr,{})}),r.jsxs(R,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(B,{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 P;const Ve=()=>{const e=b(),s=O(),[i,n]=j.useState(0),[c,m]=j.useState(!1),h=a.businessText,x=`${h} ${a.debit}`,w=[{id:1,cardType:"debit",cardText:x},{id:2,cardType:"debit",cardText:x},{id:3,cardType:"credit",cardText:h},{id:4,cardType:"credit",cardText:h}];j.useEffect(()=>(c||(P=setInterval(()=>{n(d=>{const l=d+1;return l===w.length?(m(!0),0):l})},2e3)),()=>clearInterval(P)),[c,w.length]),j.useEffect(()=>{c&&P!=null&&clearInterval(P)},[c]);const $=(d,l)=>{switch((d-i+w.length)%w.length){case 0:return{transform:`translate(0,${l?"100%":0}) scale(1)`,zIndex:l?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${l?"80%":"5%"}) scale(0.75)`,zIndex:l?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${l?"80%":"5%"}) scale(0.75)`,zIndex:l?4:5,opacity:1,transition:"all 0.4s"};default:return}},v=d=>{const l=$(d,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}};return r.jsxs(ur,{windowSize:e,children:[r.jsx(xr,{windowSize:e,children:w.map((d,l)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...$(l,!1)},onClick:()=>(L=>{c||m(!0),n(L)})(l),children:l===0||l===2?r.jsx(H,{cardPromoType:d.cardType,cardText:d.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(G,{cardPromoType:d.cardType,cardText:d.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},d.id),r.jsx(ie,{isReflection:!0,style:{...v(l)},children:l===0||l===2?r.jsx(H,{cardPromoType:d.cardType,cardText:d.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(G,{cardPromoType:d.cardType,cardText:d.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-${d.id}`)]},d.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:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},We=o.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{i as Ve,u as Oe,a7 as Ue,bB as G,a8 as Re,dt as ze,a as $e,bs as J,j as t,gw as _e,C as Le,R as r,cf as We,A as Ne,aa as qe,gP as Me,f6 as He,gQ as Ge,k5 as Q,b as O,t as Je,ca as Qe,bC as Ke,gS as Xe,s as a,ah as Ze}from"./index-2CdI-B2B.js";import{a as p}from"./core-tlHkQPPu.js";import{n as b}from"./mui-kiGMfX4-.js";import{bM as Ye}from"./zeni-epic-state-Bo1aGezX.js";import{c as et}from"./LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js";import{v as tt}from"./UploadAdditionalDocumentOverlay-DCq4eMPQ-0xv-e5Z1.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.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])},K="chargeCardSetUpPage",g="payAccount",{commonSetUp:nt,spendManagement:it}=$e.getLocalizedStrings(),{chargeCard:Y}=it,{chargeCardSetUp:m}=Y,{setUp:U}=nt,bt=({autoPayThreshold:e,isDisabled:S,meetingUrl:A,isEarlyPayEnabled:h,chargeCardSetUpView:i,connectedAccountProvider:ee,filesEndPoint:te,authParams:ne,isAccountsEnabled:ie,isDebitCardOnlyEnabled:k,isCreditCardOnlyEnabled:oe,accountsPromoConfig:ae,onFetchLinkTokenClick:ce,onBackClick:se,onEnableChargeCardClick:le,onUpdateChargeCardClick:re,onBusinessVerificationSectionClick:de,onUpdatePaymentAccountStatus:ue,onUpdatePaymentAccountLoginStatus:pe,onUpdatePrimaryFundingAccount:me,onUpdateAutoPayClick:ge,onEstablishConnectionClick:he,onEstablishConnectionSuccess:fe,onClickMenuIcon:ye,onEnableChargeCardSuccess:x,onEditFileName:Ce,onDeleteFile:be,updateFilesEntity:Se,onCompanyOfficerUpdated:xe,onSendForVerificationClick:Pe,onSignUpClick:we})=>{const f=Ve(),n=Oe(),v=Ue().analytics,[P,y]=p.useState(!1),{fetchState:C,companyBillPayInfo:R,isRefreshingViewInBackground:Ae,updateStatus:d,accountUpdateStatus:ke,plaidConnectionDetails:ve,allBankAccounts:Te,companyChargeCardInfo:T,companyDebitCardInfo:z,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:$}=i,_=G(C),w=G(d.fetchState),E=Re({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>X(i),[i]),values:X(i)}),Ee=E.handleSubmit(le);p.useEffect(()=>{const De=E.watch((M,{name:H})=>{H!=null&&M!=null&&ze(()=>(async(I,Ie)=>{const o=Ie[g];if(I.includes(g))if(I.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.id!=o.fundingAccount.selectedOption){const u=$.find(V=>V.id===o.fundingAccount.selectedOption);u!=null&&me(o.fundingAccount.selectedOption,u.accType)}}else if(o.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=o.account.selectedOption){const u=o.account.allOptions.find(V=>V.value===o.account.selectedOption);u!=null&&typeof u.label=="string"&&v.trackConnectBankLink(u.value,u.label,"charge_cards"),re(o.account.selectedOption,l.id,l.accType)}else I.includes("enableAutoPay")&&o.enableAutoPay!=null&&ge(o.enableAutoPay)})(H,M))});return()=>{De.unsubscribe()}}),p.useEffect(()=>{P||s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!s.areAdditionalDocumentsRequestedForVerification||s.areAdditionalDocumentsSubmittedForVerification||s.userVerificationStatus?.code!=="require_info"||y(!0),P&&_==="In-Progress"&&C==="Completed"&&y(!1)},[s,C,_]),p.useEffect(()=>{w==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,w,d.fetchState]);const B=T?.isChargeCardEnabled===!0,F=z?.isDebitCardEnabled===!0,L=z?.isDebitCardTOSAccepted===!0,W=T?.isChargeCardTOSAccepted===!0,N=R?.isBusinessVerified===!0,Be=l?.accType==="depositAccount"||Ye(l?.providerVerificationStatus?.code??""),j=k?N:N&&Be,Fe=C==="In-Progress"||C==="Not-Started";p.useEffect(()=>{w==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,w,d.fetchState]);const D=k?j&&!F&&L:oe?j&&!B&&W:j&&!(B&&F)&&W&&L,je=D?m.setupSubTitleNotEnabled:m.setupSubTitle,q=f.mode==="light"?new J(f.colors.brandColorJadeLight):new J(f.colors.brandColorJadeDark);return t.jsxs(at,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:P,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(tt,{authParams:ne,filesEndPoint:te,updateStatus:d,onEditFileName:Ce,onDeleteFile:be,updateFilesEntity:Se,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:Pe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:se,showMenuIcon:!(B||F||n!=="medium-compact"&&n!=="small"),onClickMenuIcon:ye,source:"ChargeCardSetupPage"}),t.jsxs(ot,{windowSize:n,children:[t.jsx(ct,{windowSize:n,children:je}),Fe?t.jsx(st,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsx(qe,{...E,children:t.jsx("form",{id:Z(K),onSubmit:Ee,children:t.jsxs(lt,{windowSize:n,children:[t.jsx(Me,{onClick:()=>{P||s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!s.areAdditionalDocumentsRequestedForVerification||s.areAdditionalDocumentsSubmittedForVerification||s.userVerificationStatus?.code!=="require_info"?de?.():y(!0)},title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(n),height:c.iconWidthHeight.valuePx(n)}),color:q},status:R?.businessVerificationStatus,isLoading:Ae,isActiveWhileLoading:!0}),k?null:t.jsx(Ge,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:$,plaidConnectionDetails:ve,allBankAccounts:Te,sectionId:g,isDisabled:S,onFetchLinkTokenClick:ce,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:ue,onUpdatePaymentAccountLoginStatus:pe,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Qe,{width:c.iconWidthHeight.valuePx(n),height:c.iconWidthHeight.valuePx(n)}),color:q},analytics:v,productType:"charge_cards",isAccountsEnabled:ie,onSignUpClick:we,pageName:m.pageName,accountsPromoConfig:ae,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(et,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:f.colors.primary,...Je.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:O.sp4,marginTop:O.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:Q(g,"enableAutoPay"),checkBoxValue:Q(g,"enableAutoPay"),defaultChecked:T?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(n)}}})})]})})})]}),D?t.jsx(Ke,{formId:Z(K),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:S!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${O.sp3}`}}):null,t.jsx(Xe,{isFooterRendered:D,meetingUrl:A,analytics:v,productType:"charge_cards"})]})},X=e=>{const{allBankAccounts:S,allFundingAccounts:A,primaryFundingAccount:h}=e;return{[g]:{fundingAccount:{selectedOption:h?.id,allOptions:A.map(i=>({label:i.label,value:i.id,isRecommended:i.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:S.map(i=>({label:i.accountName,value:i.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Z=e=>`${e}_form`,ot=b.div`
1
+ import{i as Ve,u as Oe,a7 as Ue,bB as G,a8 as Re,dt as ze,a as $e,bs as J,j as t,gw as _e,C as Le,R as r,cf as We,A as Ne,aa as qe,gP as Me,f6 as He,gQ as Ge,k5 as Q,b as O,t as Je,ca as Qe,bC as Ke,gS as Xe,s as a,ah as Ze}from"./index-OJbFNHch.js";import{a as p}from"./core-tlHkQPPu.js";import{n as b}from"./mui-kiGMfX4-.js";import{bM as Ye}from"./zeni-epic-state-Bo1aGezX.js";import{c as et}from"./LabeledControlledCheckBoxField-D7yxgfu0-DgJw74_b.js";import{v as tt}from"./UploadAdditionalDocumentOverlay-DCq4eMPQ-DgDGrP6S.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.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])},K="chargeCardSetUpPage",g="payAccount",{commonSetUp:nt,spendManagement:it}=$e.getLocalizedStrings(),{chargeCard:Y}=it,{chargeCardSetUp:m}=Y,{setUp:U}=nt,bt=({autoPayThreshold:e,isDisabled:S,meetingUrl:A,isEarlyPayEnabled:h,chargeCardSetUpView:i,connectedAccountProvider:ee,filesEndPoint:te,authParams:ne,isAccountsEnabled:ie,isDebitCardOnlyEnabled:k,isCreditCardOnlyEnabled:oe,accountsPromoConfig:ae,onFetchLinkTokenClick:ce,onBackClick:se,onEnableChargeCardClick:le,onUpdateChargeCardClick:re,onBusinessVerificationSectionClick:de,onUpdatePaymentAccountStatus:ue,onUpdatePaymentAccountLoginStatus:pe,onUpdatePrimaryFundingAccount:me,onUpdateAutoPayClick:ge,onEstablishConnectionClick:he,onEstablishConnectionSuccess:fe,onClickMenuIcon:ye,onEnableChargeCardSuccess:x,onEditFileName:Ce,onDeleteFile:be,updateFilesEntity:Se,onCompanyOfficerUpdated:xe,onSendForVerificationClick:Pe,onSignUpClick:we})=>{const f=Ve(),n=Oe(),v=Ue().analytics,[P,y]=p.useState(!1),{fetchState:C,companyBillPayInfo:R,isRefreshingViewInBackground:Ae,updateStatus:d,accountUpdateStatus:ke,plaidConnectionDetails:ve,allBankAccounts:Te,companyChargeCardInfo:T,companyDebitCardInfo:z,selectedCompanyOfficer:s,primaryFundingAccount:l,allFundingAccounts:$}=i,_=G(C),w=G(d.fetchState),E=Re({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>X(i),[i]),values:X(i)}),Ee=E.handleSubmit(le);p.useEffect(()=>{const De=E.watch((M,{name:H})=>{H!=null&&M!=null&&ze(()=>(async(I,Ie)=>{const o=Ie[g];if(I.includes(g))if(I.includes("fundingAccount")){if(o.fundingAccount.selectedOption!=null&&l?.id!=o.fundingAccount.selectedOption){const u=$.find(V=>V.id===o.fundingAccount.selectedOption);u!=null&&me(o.fundingAccount.selectedOption,u.accType)}}else if(o.account.selectedOption!=null&&l?.id!=null&&l?.zeniAccountId!=o.account.selectedOption){const u=o.account.allOptions.find(V=>V.value===o.account.selectedOption);u!=null&&typeof u.label=="string"&&v.trackConnectBankLink(u.value,u.label,"charge_cards"),re(o.account.selectedOption,l.id,l.accType)}else I.includes("enableAutoPay")&&o.enableAutoPay!=null&&ge(o.enableAutoPay)})(H,M))});return()=>{De.unsubscribe()}}),p.useEffect(()=>{P||s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!s.areAdditionalDocumentsRequestedForVerification||s.areAdditionalDocumentsSubmittedForVerification||s.userVerificationStatus?.code!=="require_info"||y(!0),P&&_==="In-Progress"&&C==="Completed"&&y(!1)},[s,C,_]),p.useEffect(()=>{w==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,w,d.fetchState]);const B=T?.isChargeCardEnabled===!0,F=z?.isDebitCardEnabled===!0,L=z?.isDebitCardTOSAccepted===!0,W=T?.isChargeCardTOSAccepted===!0,N=R?.isBusinessVerified===!0,Be=l?.accType==="depositAccount"||Ye(l?.providerVerificationStatus?.code??""),j=k?N:N&&Be,Fe=C==="In-Progress"||C==="Not-Started";p.useEffect(()=>{w==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,w,d.fetchState]);const D=k?j&&!F&&L:oe?j&&!B&&W:j&&!(B&&F)&&W&&L,je=D?m.setupSubTitleNotEnabled:m.setupSubTitle,q=f.mode==="light"?new J(f.colors.brandColorJadeLight):new J(f.colors.brandColorJadeDark);return t.jsxs(at,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:P,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(tt,{authParams:ne,filesEndPoint:te,updateStatus:d,onEditFileName:Ce,onDeleteFile:be,updateFilesEntity:Se,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:xe,onSendForVerificationClick:Pe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:f.colors.grey4,style:{zIndex:3},onBackClick:se,showMenuIcon:!(B||F||n!=="medium-compact"&&n!=="small"),onClickMenuIcon:ye,source:"ChargeCardSetupPage"}),t.jsxs(ot,{windowSize:n,children:[t.jsx(ct,{windowSize:n,children:je}),Fe?t.jsx(st,{children:t.jsx(Ne,{size:"ExtraLarge",start:!0})}):t.jsx(qe,{...E,children:t.jsx("form",{id:Z(K),onSubmit:Ee,children:t.jsxs(lt,{windowSize:n,children:[t.jsx(Me,{onClick:()=>{P||s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")!==!0||!s.areAdditionalDocumentsRequestedForVerification||s.areAdditionalDocumentsSubmittedForVerification||s.userVerificationStatus?.code!=="require_info"?de?.():y(!0)},title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(He,{width:c.iconWidthHeight.valuePx(n),height:c.iconWidthHeight.valuePx(n)}),color:q},status:R?.businessVerificationStatus,isLoading:Ae,isActiveWhileLoading:!0}),k?null:t.jsx(Ge,{connectedAccountProvider:ee,primaryFundingAccount:l,allFundingAccounts:$,plaidConnectionDetails:ve,allBankAccounts:Te,sectionId:g,isDisabled:S,onFetchLinkTokenClick:ce,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:ue,onUpdatePaymentAccountLoginStatus:pe,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Qe,{width:c.iconWidthHeight.valuePx(n),height:c.iconWidthHeight.valuePx(n)}),color:q},analytics:v,productType:"charge_cards",isAccountsEnabled:ie,onSignUpClick:we,pageName:m.pageName,accountsPromoConfig:ae,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(et,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:f.colors.primary,...Je.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:O.sp4,marginTop:O.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:Q(g,"enableAutoPay"),checkBoxValue:Q(g,"enableAutoPay"),defaultChecked:T?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(n)}}})})]})})})]}),D?t.jsx(Ke,{formId:Z(K),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||ke.fetchState==="In-Progress",isDisabled:S!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${O.sp3}`}}):null,t.jsx(Xe,{isFooterRendered:D,meetingUrl:A,analytics:v,productType:"charge_cards"})]})},X=e=>{const{allBankAccounts:S,allFundingAccounts:A,primaryFundingAccount:h}=e;return{[g]:{fundingAccount:{selectedOption:h?.id,allOptions:A.map(i=>({label:i.label,value:i.id,isRecommended:i.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:S.map(i=>({label:i.accountName,value:i.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},Z=e=>`${e}_form`,ot=b.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{i as F,u as T,j as t,cf as W,a as N,b as h,R as g,ah as B,bJ as O,a7 as J,j4 as q,bm as U,A as V,s,cT as G}from"./index-2CdI-B2B.js";import{n as i}from"./mui-kiGMfX4-.js";import{s as H,b as K}from"./BoxItem-B6Qj2tSj-aLWYhGMW.js";import{a as Q}from"./core-tlHkQPPu.js";import{t as X}from"./downloadPdf-C0_jxUh_-bREzf3Cq.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./commonDimensions-B2oTTz3C-DxkHqcKn.js";const Y=N.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},Z=i.div`
1
+ import{i as F,u as T,j as t,cf as W,a as N,b as h,R as g,ah as B,bJ as O,a7 as J,j4 as q,bm as U,A as V,s,cT as G}from"./index-OJbFNHch.js";import{n as i}from"./mui-kiGMfX4-.js";import{s as H,b as K}from"./BoxItem-B6Qj2tSj-J1Dptt9x.js";import{a as Q}from"./core-tlHkQPPu.js";import{t as X}from"./downloadPdf-C0_jxUh_-xl909S0g.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./commonDimensions-B2oTTz3C-BcwGbjhJ.js";const Y=N.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},Z=i.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{u as te,j as t,bm as y,j2 as pe,a as ie,bn as V,B as X,b as o,bC as ue,R as c,f as ae,L as he,bJ as me,H as se,af as ge,ah as T,bB as xe,a8 as ke,dt as fe,C as S,aa as De,hx as we,dv as $e,iO as be,gd as Y,dC as Z,s as a,gL as ye,d6 as Se,cQ as Le,gl as je,ai as G,iQ as Pe}from"./index-2CdI-B2B.js";import{a as w}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const m="checkDepositDetails",ve="amount",Fe="depositTo",Ce="source",re="fileIds",O="selectDocument",N=e=>{const d=[];return e.checkFront!=null&&d.push(e.checkFront.fileId),e.checkBack!=null&&d.push(e.checkBack.fileId),{[m]:{[ve]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Ce]:e.checkDepositLocalData.source,[Fe]:{allOptions:e.depositAccounts.depositAccounts.map(k=>({label:k.accountName,value:k.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[re]:d,[O]:{front:e.checkFront,back:e.checkBack}}}},b=(e,d)=>`${e}.${d}`,p={largeLabelWidth:new c(160,160,160),rowContentPaddingLeft:new c(a[3],a[4]),checkPicRowContentPaddingXAxis:new c(a[3],a[4]),labeleMarginLeft:new c(a[0],a[0]),labeleMarginBottom:new c(a[2],a[0]),labelMarginRight:new c(a[3],a[3]),labeledFieldPaddingLeft:new c(a[3],a[0]),labeledFieldPaddingRight:new c(a[3],a[2]),labeledFieldPaddingTop:new c(a[3],a[3]),labeledFieldPaddingBottom:new c(a[3],a[2]),infoLabelPaddingRight:new c(a[0],a[3]),infoLabelMarginTop:new c(a[1],a[0])},{spendManagement:Be,common:q}=ie.getLocalizedStrings(),l=Be.zeniAccounts.zeniAccountList,Te=q.documents;function ze({checkDeposit:e,analytics:d,filesEndPoint:k,openPopup:L,authParams:j,onSaveChangesToLocalStore:z,updateFilesEntity:P,onDeleteFile:v,onEditFileName:F,onCheckDpositClick:A}){const r=te(),n=e.fetchState,C=xe(n),[B,H]=w.useState(!1),[ce,E]=w.useState(!1),I=p.largeLabelWidth.value(r),f=ke({mode:"all",reValidateMode:"onBlur",defaultValues:N(e),values:N(e)}),{isValid:ne}=f.formState,J=s=>{const g={amount:{amount:s[m].amount??0,currencyCode:q.currency.currencyCode,currencySymbol:q.currency.currencySymbol},source:s[m].source,depositTo:e.depositAccounts.depositAccounts.find(u=>u.id===s[m].depositTo.selectedOption),fileIds:s[m][re]};z(g)};w.useEffect(()=>{const s=f.watch((g,{name:u})=>{u!=null&&g!=null&&fe(()=>(async(D,x)=>{if(D!=null){if(D.includes("source")||D.includes("amount"))return;const $=Object.assign({},x);J($)}})(u,g))});return()=>{s.unsubscribe()}}),w.useEffect(()=>{C==="Completed"&&n==="Not-Started"&&f.reset(N(e))},[C,n,f,e]),w.useEffect(()=>{e.error!=null?E(!0):E(!1)},[e.error]);const de=f.handleSubmit(()=>{if(ne){d.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const s=f.getValues();J(s),A?.()}});return t.jsxs(t.Fragment,{children:[ce?t.jsx(Re,{children:t.jsxs(Ve,{children:[t.jsxs(Oe,{children:[t.jsx(We,{}),t.jsxs(Ge,{children:[t.jsx(He,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(qe,{children:t.jsx(ao,{"data-testid":y("check-deposit-form-close"),onClick:()=>{d.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),E(!1)},style:{width:o.sp3,height:o.sp3,color:S.heroLight}})})]})}):null,t.jsx(Qe,{children:V("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:(Q="checkDepositDetailPage",`${Q}_form`),onSubmit:de,children:t.jsxs(Ye,{children:[t.jsx(we,{showAdditionalInfoLabel:!1,label:{label:l.checkDepositDrawer.amountLabel,width:I},formattedTextField:{type:"number",name:b(m,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:l.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(R,{}),t.jsx($e,{label:{label:l.checkDepositDrawer.sourceLabel,width:I},style:{width:"100%"},text:{type:"text",name:b(m,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:l.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:s=>s!=null}}}),t.jsx(R,{}),t.jsx(le,{size:r,children:t.jsx(Ke,{size:r,children:t.jsx(Xe,{label:{label:l.checkDepositDrawer.depositToLabel,width:I,style:{marginLeft:p.labeleMarginLeft.valuePx(r),marginBottom:p.labeleMarginBottom.valuePx(r),marginRight:p.labelMarginRight.valuePx(r)}},style:{paddingTop:p.labeledFieldPaddingTop.valuePx(r),paddingBottom:p.labeledFieldPaddingBottom.valuePx(r),paddingLeft:p.labeledFieldPaddingLeft.valuePx(r),paddingRight:p.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(r),marginTop:p.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(s,g)=>((u,D)=>{if(!u)return null;const x=e.depositAccounts.depositAccounts.find(M=>M.id===u),$=e.depositAccounts.depositAccounts.findIndex(M=>M.id===u);return x?t.jsx(Ne,{color:be($),isSelectedValue:D}):null})(s,g),valueToSubLabels:(s,g)=>((u,D)=>{if(!u)return null;const x=e.depositAccounts.depositAccounts.find($=>$.id===u);return x?D===!0?t.jsx(Me,{children:x?.maskedAccountNumber}):t.jsxs(Ie,{children:[t.jsx(_,{children:x?.maskedAccountNumber}),t.jsx(eo,{}),t.jsx(_,{children:V("0,0[.]00",x?.accountBalance?.available)})]}):null})(s,g),name:b(m,"depositTo"),placeholder:l.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(s=>({label:s.accountName,value:s.id}))},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(R,{}),t.jsxs(Ze,{size:r,children:[t.jsxs(_e,{size:r,children:[t.jsx(Ae,{children:l.checkDepositDrawer.checkPicLabel}),t.jsx(K,{isLast:!1,children:l.checkDepositDrawer.frontSide}),t.jsx(Y,{name:`${b(m,O)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:k,authParams:j,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Z,placeholderText:r==="small"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:B,updateFilesEntity:P,onDeleteFile:v,onFileSizeError:s=>H(s),onEditFileName:F,openPopup:L,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(K,{isLast:!0,children:l.checkDepositDrawer.backSide}),t.jsx(Y,{name:`${b(m,O)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:k,authParams:j,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Z,placeholderText:r==="small"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:B,updateFilesEntity:P,onDeleteFile:v,onFileSizeError:s=>H(s),onEditFileName:F,openPopup:L,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(oo,{children:l.checkDepositDrawer.picGuides.map(s=>t.jsxs(to,{children:[t.jsx(Ue,{}),t.jsx(Ee,{children:s})]},s))})]}),t.jsx(io,{windowSize:r,children:Te.formatJPGText10MB})]})]})})})]});var Q}const Ae=i(T)`
1
+ import{u as te,j as t,bm as y,j2 as pe,a as ie,bn as V,B as X,b as o,bC as ue,R as c,f as ae,L as he,bJ as me,H as se,af as ge,ah as T,bB as xe,a8 as ke,dt as fe,C as S,aa as De,hx as we,dv as $e,iO as be,gd as Y,dC as Z,s as a,gL as ye,d6 as Se,cQ as Le,gl as je,ai as G,iQ as Pe}from"./index-OJbFNHch.js";import{a as w}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const m="checkDepositDetails",ve="amount",Fe="depositTo",Ce="source",re="fileIds",O="selectDocument",N=e=>{const d=[];return e.checkFront!=null&&d.push(e.checkFront.fileId),e.checkBack!=null&&d.push(e.checkBack.fileId),{[m]:{[ve]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Ce]:e.checkDepositLocalData.source,[Fe]:{allOptions:e.depositAccounts.depositAccounts.map(k=>({label:k.accountName,value:k.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[re]:d,[O]:{front:e.checkFront,back:e.checkBack}}}},b=(e,d)=>`${e}.${d}`,p={largeLabelWidth:new c(160,160,160),rowContentPaddingLeft:new c(a[3],a[4]),checkPicRowContentPaddingXAxis:new c(a[3],a[4]),labeleMarginLeft:new c(a[0],a[0]),labeleMarginBottom:new c(a[2],a[0]),labelMarginRight:new c(a[3],a[3]),labeledFieldPaddingLeft:new c(a[3],a[0]),labeledFieldPaddingRight:new c(a[3],a[2]),labeledFieldPaddingTop:new c(a[3],a[3]),labeledFieldPaddingBottom:new c(a[3],a[2]),infoLabelPaddingRight:new c(a[0],a[3]),infoLabelMarginTop:new c(a[1],a[0])},{spendManagement:Be,common:q}=ie.getLocalizedStrings(),l=Be.zeniAccounts.zeniAccountList,Te=q.documents;function ze({checkDeposit:e,analytics:d,filesEndPoint:k,openPopup:L,authParams:j,onSaveChangesToLocalStore:z,updateFilesEntity:P,onDeleteFile:v,onEditFileName:F,onCheckDpositClick:A}){const r=te(),n=e.fetchState,C=xe(n),[B,H]=w.useState(!1),[ce,E]=w.useState(!1),I=p.largeLabelWidth.value(r),f=ke({mode:"all",reValidateMode:"onBlur",defaultValues:N(e),values:N(e)}),{isValid:ne}=f.formState,J=s=>{const g={amount:{amount:s[m].amount??0,currencyCode:q.currency.currencyCode,currencySymbol:q.currency.currencySymbol},source:s[m].source,depositTo:e.depositAccounts.depositAccounts.find(u=>u.id===s[m].depositTo.selectedOption),fileIds:s[m][re]};z(g)};w.useEffect(()=>{const s=f.watch((g,{name:u})=>{u!=null&&g!=null&&fe(()=>(async(D,x)=>{if(D!=null){if(D.includes("source")||D.includes("amount"))return;const $=Object.assign({},x);J($)}})(u,g))});return()=>{s.unsubscribe()}}),w.useEffect(()=>{C==="Completed"&&n==="Not-Started"&&f.reset(N(e))},[C,n,f,e]),w.useEffect(()=>{e.error!=null?E(!0):E(!1)},[e.error]);const de=f.handleSubmit(()=>{if(ne){d.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const s=f.getValues();J(s),A?.()}});return t.jsxs(t.Fragment,{children:[ce?t.jsx(Re,{children:t.jsxs(Ve,{children:[t.jsxs(Oe,{children:[t.jsx(We,{}),t.jsxs(Ge,{children:[t.jsx(He,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(qe,{children:t.jsx(ao,{"data-testid":y("check-deposit-form-close"),onClick:()=>{d.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),E(!1)},style:{width:o.sp3,height:o.sp3,color:S.heroLight}})})]})}):null,t.jsx(Qe,{children:V("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:(Q="checkDepositDetailPage",`${Q}_form`),onSubmit:de,children:t.jsxs(Ye,{children:[t.jsx(we,{showAdditionalInfoLabel:!1,label:{label:l.checkDepositDrawer.amountLabel,width:I},formattedTextField:{type:"number",name:b(m,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:l.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:s=>!!s&&s>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(R,{}),t.jsx($e,{label:{label:l.checkDepositDrawer.sourceLabel,width:I},style:{width:"100%"},text:{type:"text",name:b(m,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:l.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:s=>s!=null}}}),t.jsx(R,{}),t.jsx(le,{size:r,children:t.jsx(Ke,{size:r,children:t.jsx(Xe,{label:{label:l.checkDepositDrawer.depositToLabel,width:I,style:{marginLeft:p.labeleMarginLeft.valuePx(r),marginBottom:p.labeleMarginBottom.valuePx(r),marginRight:p.labelMarginRight.valuePx(r)}},style:{paddingTop:p.labeledFieldPaddingTop.valuePx(r),paddingBottom:p.labeledFieldPaddingBottom.valuePx(r),paddingLeft:p.labeledFieldPaddingLeft.valuePx(r),paddingRight:p.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:p.infoLabelPaddingRight.valuePx(r),marginTop:p.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(s,g)=>((u,D)=>{if(!u)return null;const x=e.depositAccounts.depositAccounts.find(M=>M.id===u),$=e.depositAccounts.depositAccounts.findIndex(M=>M.id===u);return x?t.jsx(Ne,{color:be($),isSelectedValue:D}):null})(s,g),valueToSubLabels:(s,g)=>((u,D)=>{if(!u)return null;const x=e.depositAccounts.depositAccounts.find($=>$.id===u);return x?D===!0?t.jsx(Me,{children:x?.maskedAccountNumber}):t.jsxs(Ie,{children:[t.jsx(_,{children:x?.maskedAccountNumber}),t.jsx(eo,{}),t.jsx(_,{children:V("0,0[.]00",x?.accountBalance?.available)})]}):null})(s,g),name:b(m,"depositTo"),placeholder:l.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(s=>({label:s.accountName,value:s.id}))},textAlignment:"right",registerOptions:{required:!0,validate:s=>s!=null&&!!s.selectedOption}}})})}),t.jsx(R,{}),t.jsxs(Ze,{size:r,children:[t.jsxs(_e,{size:r,children:[t.jsx(Ae,{children:l.checkDepositDrawer.checkPicLabel}),t.jsx(K,{isLast:!1,children:l.checkDepositDrawer.frontSide}),t.jsx(Y,{name:`${b(m,O)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:k,authParams:j,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Z,placeholderText:r==="small"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:B,updateFilesEntity:P,onDeleteFile:v,onFileSizeError:s=>H(s),onEditFileName:F,openPopup:L,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(K,{isLast:!0,children:l.checkDepositDrawer.backSide}),t.jsx(Y,{name:`${b(m,O)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:k,authParams:j,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:Z,placeholderText:r==="small"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:B,updateFilesEntity:P,onDeleteFile:v,onFileSizeError:s=>H(s),onEditFileName:F,openPopup:L,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(oo,{children:l.checkDepositDrawer.picGuides.map(s=>t.jsxs(to,{children:[t.jsx(Ue,{}),t.jsx(Ee,{children:s})]},s))})]}),t.jsx(io,{windowSize:r,children:Te.formatJPGText10MB})]})]})})})]});var Q}const Ae=i(T)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Ee=i(T)`
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{j as t,bG as gr,bm as b,cy as ye,bn as X,eB as fr,b as d,C as ne,bB as Vn,u as W,b3 as Dn,a_ as xr,eC as mr,eD as Io,eE as wr,dj as yr,a as M,b2 as br,s as _,eF as Ne,eG as Mo,b6 as No,b5 as kr,bs as I,cZ as nn,eH as on,R as G,dQ as rn,a$ as Wo,a9 as ft,eI as Ke,cA as Z,A as Sr,eJ as an,bt as E,i as ue,eK as ce,am as jr,az as Ve,an as Po,ap as Gt,eL as vr,aq as Cr,ar as ln,cY as sn,cP as Rn,af as _r,ai as je,eM as xt,eN as jt,eO as De,ah as B,d6 as re,eP as $r,t as cn,bz as zo,eQ as Fo,bL as Lr,di as dn,dh as hn,aj as Re,eR as Br,bH as To,aL as Ar,aB as un,ay as Vo,aE as Do,aF as Or,aG as En,aH as Ro,eS as it,eT as Gn,dq as Eo,cF as Ir,eU as Hn,eV as Mr,eW as Nr,bJ as Go,eX as Wr,eY as Pr,eZ as zr,e_ as Kn,e$ as Yn,f0 as Fr,f1 as Tr,cH as Vr,cq as Dr,f2 as Rr}from"./index-2CdI-B2B.js";import{n as l,c as D}from"./mui-kiGMfX4-.js";import{a as N,o as pn}from"./core-tlHkQPPu.js";import{f6 as Pt,eT as gn,fi as fn,fj as Ye,fk as xn,fl as mn,fm as wn,fn as yn,fo as Ho,fp as Er,eU as We,bn as Un,bh as Ko,fq as Yo,bp as Gr,f5 as Uo,fr as Hr}from"./zeni-epic-state-Bo1aGezX.js";import{Q as Kr,U as gt,M as Yr,B as ve,a as A}from"./AccountRow-DbyUdPZG-D3G-oWRQ.js";import{e as Ur}from"./useFormControl-DPydD0oc-BkCU7DyG.js";function ee(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 ye("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return X("0,0",e?.balance)}function te(e){return X("0,0",e?.forecast)}function qo(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.totalPercentValue)}return X("0,0",e?.totalBalance)}function Ht(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.forecastPercentValue)}return X("0,0",e?.totalForecast)}function pe(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function ge(e){if(e!=null&&e.forecast!=null){const n=Math.floor(100*(e.balance.amount-e.forecast.amount)/100);return X("0,0",Object.assign({},e.forecast,{amount:n}))}return X("0,0",null)}function Zo(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 ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function Qo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor(100*(e.totalBalance.amount-e.totalForecast.amount)/100);return X("0,0",Object.assign({},e.totalForecast,{amount:n}))}return X("0,0",null)}const Ue=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:a}}=M.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${Pt(i,a.MMMYYYYFormat,e)}`:zt(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${M.getLocalizedStrings().reports.quarterPrefix}${Pt(i,a.QYYYYformat,e)}`:zt(r,o);case"year":return r==="default"||r==="default_with_percent"?`${Pt(i,a.YYYYformat,e)}`:zt(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function zt(e,n){return M.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}function qr(e){return Vo("PrivateSwitchBase",e)}Ro("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Zr=ln(Pr,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:n})=>e==="start"&&n.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:n})=>e==="end"&&n.size!=="small",style:{marginRight:-12}}]}),Qr=ln("input",{name:"MuiSwitchBase",shouldForwardProp:Do})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jr=N.forwardRef(function(e,n){const{autoFocus:o,checked:i,checkedIcon:r,defaultChecked:a,disabled:s,disableFocusRipple:c=!1,edge:h=!1,icon:g,id:p,inputProps:u,inputRef:f,name:x,onBlur:w,onChange:m,onFocus:k,readOnly:y,required:v=!1,tabIndex:S,type:$,value:C,slots:L={},slotProps:O={},...P}=e,[T,R]=Ar({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),V=Ur();let Y=s;V&&Y===void 0&&(Y=V.disabled);const U=$==="checkbox"||$==="radio",Q={...e,checked:T,disabled:Y,disableFocusRipple:c,edge:h},de=(he=>{const{classes:le,checked:ie,disabled:_e,edge:tt}=he,nt={root:["root",ie&&"checked",_e&&"disabled",tt&&`edge${Ve(tt)}`],input:["input"]};return Po(nt,qr,le)})(Q),Ae={slots:L,slotProps:{input:u,...O}},[Je,Xe]=Gt("root",{ref:n,elementType:Zr,className:de.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Ae,component:"span",...P},getSlotProps:he=>({...he,onFocus:le=>{he.onFocus?.(le),(ie=>{k&&k(ie),V&&V.onFocus&&V.onFocus(ie)})(le)},onBlur:le=>{he.onBlur?.(le),(ie=>{w&&w(ie),V&&V.onBlur&&V.onBlur(ie)})(le)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[Ce,et]=Gt("input",{ref:f,elementType:Qr,className:de.input,externalForwardedProps:Ae,getSlotProps:he=>({...he,onChange:le=>{he.onChange?.(le),(ie=>{if(ie.nativeEvent.defaultPrevented||y)return;const _e=ie.target.checked;R(_e),m&&m(ie,_e)})(le)}}),ownerState:Q,additionalProps:{autoFocus:o,checked:i,defaultChecked:a,disabled:Y,id:U?p:void 0,name:x,readOnly:y,required:v,tabIndex:S,type:$,...$==="checkbox"&&C===void 0?{}:{value:C}}});return t.jsxs(Je,{...Xe,children:[t.jsx(Ce,{...et}),T?r:g]})}),Hg=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${fr(10)}`};var Ft=function(){},Xr=function(e,n){return(0,n.getRecordData)(e).data.id},Jo=function(e){function n(i,r){var a;return(a=e.call(this,i,r)||this).getRecordData=a.getRecordData.bind(Ne(a)),a.state={list:N.createRef(),recomputeTree:a.recomputeTree.bind(Ne(a)),setState:a.setState.bind(Ne(a))},a}Io(n,e),n.getDerivedStateFromProps=function(i,r){var a,s=i.listRef,c=s===void 0?null:s,h=i.treeWalker,g=r.computeTree,p=r.list,u=r.order,f=r.treeWalker;return Mo({attachRefs:(a=[p,c],function(x){a.forEach(function(w){typeof w=="function"?w(x):w!=null&&(w.current=x)})})},h===f&&u?null:g(i,r,{refresh:!0}),{treeWalker:h})};var o=n.prototype;return o.getItemData=function(){var i=this.props,r=i.children,a=i.itemData;return{component:r,getRecordData:this.getRecordData,treeData:a}},o.getRecordData=function(i){var r=this.state,a=r.order;return r.records.get(a[i]).public},o.recomputeTree=function(i){var r=this;return new Promise(function(a){r.setState(function(s){return s.computeTree(r.props,s,{opennessState:i})},a)})},o.scrollTo=function(i){var r;(r=this.state.list.current)==null||r.scrollTo(i)},o.scrollToItem=function(i,r){var a;(a=this.state.list.current)==null||a.scrollToItem(this.state.order.indexOf(i),r)},n}(N.PureComponent);Jo.defaultProps={rowComponent:function(e){var n=e.index,o=e.data,i=o.component,r=o.getRecordData,a=o.treeData,s=e.style,c=e.isScrolling,h=r(n);return pn.createElement(i,Object.assign({isScrolling:c,style:s,treeData:a},h))}};var qn,ea=(qn={createRecord:function(e,n,o,i){var r=n.recomputeTree,a=n.resetAfterId,s=function(c,h){return h===void 0&&(h=null),{child:null,isShown:!h||h.public.isOpen&&h.isShown,parent:h,public:c,sibling:null,visited:!1}}({data:e,height:i?i.public.height:e.defaultHeight,isOpen:i?i.public.isOpen:e.isOpenByDefault,resize:function(c,h){s.public.height=c,a(s.public.data.id,h)},setOpen:function(c){var h;return r(((h={})[e.id]=c,h))}},o);return s}},function(e,n,o){return o.refresh?function(i,r,a){var s=i.createRecord,c=r.buildingTaskTimeout,h=r.placeholder,g=r.async,p=g!==void 0&&g,u=r.treeWalker,f=p&&a.records!==void 0,x=a.records,w=[],m=new Map,k=c?{timeout:c}:void 0,y=new WeakMap,v=u(),S=v.next().value,$=s(S.data,a,void 0,f?x.get(S.data.id):void 0);m.set($.public.data.id,$),y.set($,S);var C=$,L=!0,O=$,P=h!==void 0&&!(h===null&&!a.order),T=P?function(V){return V.timeRemaining()>0}:function(){return!0},R=function V(Y){for(;C!==null;){if(!T(Y))return void requestIdleCallback(V,k);if(C.visited)C.visited=!1,C=C.sibling!==null?C.sibling:C.parent,O=C;else{var U=v.next(y.get(C)).value;if(U===void 0){L?L=!1:(C.isShown&&w.push(C.public.data.id),C.visited=C.child!==null,C=C.child!==null?C.child:C.sibling!==null?C.sibling:C.parent),O=C;continue}var Q=s(U.data,a,L?void 0:C,f?x.get(U.data.id):void 0);m.set(Q.public.data.id,Q),y.set(Q,U),L||O!==C?O.sibling=Q:O.child=Q,O=Q}}P&&a.setState({order:w,records:m,updateRequest:{}})};return P?requestIdleCallback(R,k):R(),h!==void 0&&p&&a.order?a:{order:w,records:m}}(qn,e,n):function(i,r){var a=i.order,s=i.records,c=r.opennessState;if(typeof c!="object")return null;for(var h in c)if(s.has(h)){var g=c[h],p=s.get(h),u=typeof g=="boolean"?{open:g}:g,f=u.open,x=u.subtreeCallback,w=x===void 0?Ft:x,m=Ft,k=Ft;p.isShown&&(f?function(){for(var v=a.indexOf(h),S=p;S!==null;){if(S.sibling!==null){S=S.sibling;break}S=S.parent}var $=S===null?a.length-1-v:a.indexOf(S.public.data.id)-1-v,C=[[v+1,$]];m=function(L){if(L.isShown=!L.parent||L.parent.public.isOpen&&L.parent.isShown,L.isShown){var O=C[C.length-1];O.push(L.public.data.id),O.length===32770&&C.push([v+1+32768*C.length,0])}},k=function(){for(var L=0;L<C.length;L++){var O;(O=a).splice.apply(O,C[L])}}}():p.public.isOpen&&function(){var v=a.indexOf(h),S=0;m=function($){$.isShown&&(S+=1),$.isShown=!$.parent||$.parent.public.isOpen&&$.parent.isShown},k=function(){a.splice(v+1,S)}}());for(var y=p;y!==null;)y.visited?(y.visited=!1,y=y===p?null:y.sibling!==null?y.sibling:y.parent):(y.public.isOpen=y===p?f:y.public.isOpen,w(y.public,p.public),y!==p&&m(y),y.visited=y.child!==null,y=y.child!==null?y.child:y===p?null:y.sibling!==null?y.sibling:y.parent);k()}return{order:a,records:s,updateRequest:{}}}(n,o)}),Zn=function(e){function n(i,r){var a;return(a=e.call(this,i,r)||this).getItemSize=a.getItemSize.bind(Ne(a)),a.state=Mo({},a.state,{computeTree:ea,resetAfterId:a.resetAfterId.bind(Ne(a))}),a}Io(n,e);var o=n.prototype;return o.resetAfterId=function(i,r){var a;r===void 0&&(r=!1);var s=this.state,c=s.list,h=s.order;(a=c.current)==null||a.resetAfterIndex(h.indexOf(i),r)},o.recomputeTree=function(i){var r=this;return e.prototype.recomputeTree.call(this,i).then(function(){var a;(a=r.state.list.current)==null||a.resetAfterIndex(0,!0)})},o.render=function(){var i=this.props;i.children;var r=i.placeholder,a=i.itemSize,s=i.rowComponent;i.treeWalker;var c=wr(i,["children","placeholder","itemSize","rowComponent","treeWalker"]),h=this.state,g=h.attachRefs,p=h.order;return r&&p.length===0?r:pn.createElement(yr,Object.assign({},c,{itemCount:p.length,itemData:this.getItemData(),itemKey:Xr,itemSize:a??this.getItemSize,ref:g}),s)},o.getItemSize=function(i){return this.getRecordData(i).height},n}(Jo);const ta=l.div`
1
+ import{j as t,bG as gr,bm as b,cy as ye,bn as X,eB as fr,b as d,C as ne,bB as Vn,u as W,b3 as Dn,a_ as xr,eC as mr,eD as Io,eE as wr,dj as yr,a as M,b2 as br,s as _,eF as Ne,eG as Mo,b6 as No,b5 as kr,bs as I,cZ as nn,eH as on,R as G,dQ as rn,a$ as Wo,a9 as ft,eI as Ke,cA as Z,A as Sr,eJ as an,bt as E,i as ue,eK as ce,am as jr,az as Ve,an as Po,ap as Gt,eL as vr,aq as Cr,ar as ln,cY as sn,cP as Rn,af as _r,ai as je,eM as xt,eN as jt,eO as De,ah as B,d6 as re,eP as $r,t as cn,bz as zo,eQ as Fo,bL as Lr,di as dn,dh as hn,aj as Re,eR as Br,bH as To,aL as Ar,aB as un,ay as Vo,aE as Do,aF as Or,aG as En,aH as Ro,eS as it,eT as Gn,dq as Eo,cF as Ir,eU as Hn,eV as Mr,eW as Nr,bJ as Go,eX as Wr,eY as Pr,eZ as zr,e_ as Kn,e$ as Yn,f0 as Fr,f1 as Tr,cH as Vr,cq as Dr,f2 as Rr}from"./index-OJbFNHch.js";import{n as l,c as D}from"./mui-kiGMfX4-.js";import{a as N,o as pn}from"./core-tlHkQPPu.js";import{f6 as Pt,eT as gn,fi as fn,fj as Ye,fk as xn,fl as mn,fm as wn,fn as yn,fo as Ho,fp as Er,eU as We,bn as Un,bh as Ko,fq as Yo,bp as Gr,f5 as Uo,fr as Hr}from"./zeni-epic-state-Bo1aGezX.js";import{Q as Kr,U as gt,M as Yr,B as ve,a as A}from"./AccountRow-DbyUdPZG-kPApYWvO.js";import{e as Ur}from"./useFormControl-DPydD0oc-BkCU7DyG.js";function ee(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 ye("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return X("0,0",e?.balance)}function te(e){return X("0,0",e?.forecast)}function qo(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.totalPercentValue)}return X("0,0",e?.totalBalance)}function Ht(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return ye("0.00%",e.forecastPercentValue)}return X("0,0",e?.totalForecast)}function pe(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const n=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function ge(e){if(e!=null&&e.forecast!=null){const n=Math.floor(100*(e.balance.amount-e.forecast.amount)/100);return X("0,0",Object.assign({},e.forecast,{amount:n}))}return X("0,0",null)}function Zo(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 ye("0.00%",Math.floor(100*n)/100)}return ye("0.00%",void 0)}function Qo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const n=Math.floor(100*(e.totalBalance.amount-e.totalForecast.amount)/100);return X("0,0",Object.assign({},e.totalForecast,{amount:n}))}return X("0,0",null)}const Ue=(e,n,o)=>{const{startDate:i,balanceType:r}=n,{dateFormat:{visual:a}}=M.getLocalizedStrings();switch(o){case"month":return r==="default"||r==="default_with_percent"?`${Pt(i,a.MMMYYYYFormat,e)}`:zt(r,o);case"quarter":return r==="default"||r==="default_with_percent"?`${M.getLocalizedStrings().reports.quarterPrefix}${Pt(i,a.QYYYYformat,e)}`:zt(r,o);case"year":return r==="default"||r==="default_with_percent"?`${Pt(i,a.YYYYformat,e)}`:zt(r,o);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function zt(e,n){return M.getLocalizedStrings().downloadReport.additionalColumns.labels[n][e]}function qr(e){return Vo("PrivateSwitchBase",e)}Ro("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Zr=ln(Pr,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:n})=>e==="start"&&n.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:n})=>e==="end"&&n.size!=="small",style:{marginRight:-12}}]}),Qr=ln("input",{name:"MuiSwitchBase",shouldForwardProp:Do})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Jr=N.forwardRef(function(e,n){const{autoFocus:o,checked:i,checkedIcon:r,defaultChecked:a,disabled:s,disableFocusRipple:c=!1,edge:h=!1,icon:g,id:p,inputProps:u,inputRef:f,name:x,onBlur:w,onChange:m,onFocus:k,readOnly:y,required:v=!1,tabIndex:S,type:$,value:C,slots:L={},slotProps:O={},...P}=e,[T,R]=Ar({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),V=Ur();let Y=s;V&&Y===void 0&&(Y=V.disabled);const U=$==="checkbox"||$==="radio",Q={...e,checked:T,disabled:Y,disableFocusRipple:c,edge:h},de=(he=>{const{classes:le,checked:ie,disabled:_e,edge:tt}=he,nt={root:["root",ie&&"checked",_e&&"disabled",tt&&`edge${Ve(tt)}`],input:["input"]};return Po(nt,qr,le)})(Q),Ae={slots:L,slotProps:{input:u,...O}},[Je,Xe]=Gt("root",{ref:n,elementType:Zr,className:de.root,shouldForwardComponentProp:!0,externalForwardedProps:{...Ae,component:"span",...P},getSlotProps:he=>({...he,onFocus:le=>{he.onFocus?.(le),(ie=>{k&&k(ie),V&&V.onFocus&&V.onFocus(ie)})(le)},onBlur:le=>{he.onBlur?.(le),(ie=>{w&&w(ie),V&&V.onBlur&&V.onBlur(ie)})(le)}}),ownerState:Q,additionalProps:{centerRipple:!0,focusRipple:!c,role:void 0,tabIndex:null}}),[Ce,et]=Gt("input",{ref:f,elementType:Qr,className:de.input,externalForwardedProps:Ae,getSlotProps:he=>({...he,onChange:le=>{he.onChange?.(le),(ie=>{if(ie.nativeEvent.defaultPrevented||y)return;const _e=ie.target.checked;R(_e),m&&m(ie,_e)})(le)}}),ownerState:Q,additionalProps:{autoFocus:o,checked:i,defaultChecked:a,disabled:Y,id:U?p:void 0,name:x,readOnly:y,required:v,tabIndex:S,type:$,...$==="checkbox"&&C===void 0?{}:{value:C}}});return t.jsxs(Je,{...Xe,children:[t.jsx(Ce,{...et}),T?r:g]})}),Hg=(e,n,o)=>{const i=n.length==0?e:`${e}_${n.join("_")}`;return o!=null&&o.trim().length>0?`${i}_${o}`:`${i}_${fr(10)}`};var Ft=function(){},Xr=function(e,n){return(0,n.getRecordData)(e).data.id},Jo=function(e){function n(i,r){var a;return(a=e.call(this,i,r)||this).getRecordData=a.getRecordData.bind(Ne(a)),a.state={list:N.createRef(),recomputeTree:a.recomputeTree.bind(Ne(a)),setState:a.setState.bind(Ne(a))},a}Io(n,e),n.getDerivedStateFromProps=function(i,r){var a,s=i.listRef,c=s===void 0?null:s,h=i.treeWalker,g=r.computeTree,p=r.list,u=r.order,f=r.treeWalker;return Mo({attachRefs:(a=[p,c],function(x){a.forEach(function(w){typeof w=="function"?w(x):w!=null&&(w.current=x)})})},h===f&&u?null:g(i,r,{refresh:!0}),{treeWalker:h})};var o=n.prototype;return o.getItemData=function(){var i=this.props,r=i.children,a=i.itemData;return{component:r,getRecordData:this.getRecordData,treeData:a}},o.getRecordData=function(i){var r=this.state,a=r.order;return r.records.get(a[i]).public},o.recomputeTree=function(i){var r=this;return new Promise(function(a){r.setState(function(s){return s.computeTree(r.props,s,{opennessState:i})},a)})},o.scrollTo=function(i){var r;(r=this.state.list.current)==null||r.scrollTo(i)},o.scrollToItem=function(i,r){var a;(a=this.state.list.current)==null||a.scrollToItem(this.state.order.indexOf(i),r)},n}(N.PureComponent);Jo.defaultProps={rowComponent:function(e){var n=e.index,o=e.data,i=o.component,r=o.getRecordData,a=o.treeData,s=e.style,c=e.isScrolling,h=r(n);return pn.createElement(i,Object.assign({isScrolling:c,style:s,treeData:a},h))}};var qn,ea=(qn={createRecord:function(e,n,o,i){var r=n.recomputeTree,a=n.resetAfterId,s=function(c,h){return h===void 0&&(h=null),{child:null,isShown:!h||h.public.isOpen&&h.isShown,parent:h,public:c,sibling:null,visited:!1}}({data:e,height:i?i.public.height:e.defaultHeight,isOpen:i?i.public.isOpen:e.isOpenByDefault,resize:function(c,h){s.public.height=c,a(s.public.data.id,h)},setOpen:function(c){var h;return r(((h={})[e.id]=c,h))}},o);return s}},function(e,n,o){return o.refresh?function(i,r,a){var s=i.createRecord,c=r.buildingTaskTimeout,h=r.placeholder,g=r.async,p=g!==void 0&&g,u=r.treeWalker,f=p&&a.records!==void 0,x=a.records,w=[],m=new Map,k=c?{timeout:c}:void 0,y=new WeakMap,v=u(),S=v.next().value,$=s(S.data,a,void 0,f?x.get(S.data.id):void 0);m.set($.public.data.id,$),y.set($,S);var C=$,L=!0,O=$,P=h!==void 0&&!(h===null&&!a.order),T=P?function(V){return V.timeRemaining()>0}:function(){return!0},R=function V(Y){for(;C!==null;){if(!T(Y))return void requestIdleCallback(V,k);if(C.visited)C.visited=!1,C=C.sibling!==null?C.sibling:C.parent,O=C;else{var U=v.next(y.get(C)).value;if(U===void 0){L?L=!1:(C.isShown&&w.push(C.public.data.id),C.visited=C.child!==null,C=C.child!==null?C.child:C.sibling!==null?C.sibling:C.parent),O=C;continue}var Q=s(U.data,a,L?void 0:C,f?x.get(U.data.id):void 0);m.set(Q.public.data.id,Q),y.set(Q,U),L||O!==C?O.sibling=Q:O.child=Q,O=Q}}P&&a.setState({order:w,records:m,updateRequest:{}})};return P?requestIdleCallback(R,k):R(),h!==void 0&&p&&a.order?a:{order:w,records:m}}(qn,e,n):function(i,r){var a=i.order,s=i.records,c=r.opennessState;if(typeof c!="object")return null;for(var h in c)if(s.has(h)){var g=c[h],p=s.get(h),u=typeof g=="boolean"?{open:g}:g,f=u.open,x=u.subtreeCallback,w=x===void 0?Ft:x,m=Ft,k=Ft;p.isShown&&(f?function(){for(var v=a.indexOf(h),S=p;S!==null;){if(S.sibling!==null){S=S.sibling;break}S=S.parent}var $=S===null?a.length-1-v:a.indexOf(S.public.data.id)-1-v,C=[[v+1,$]];m=function(L){if(L.isShown=!L.parent||L.parent.public.isOpen&&L.parent.isShown,L.isShown){var O=C[C.length-1];O.push(L.public.data.id),O.length===32770&&C.push([v+1+32768*C.length,0])}},k=function(){for(var L=0;L<C.length;L++){var O;(O=a).splice.apply(O,C[L])}}}():p.public.isOpen&&function(){var v=a.indexOf(h),S=0;m=function($){$.isShown&&(S+=1),$.isShown=!$.parent||$.parent.public.isOpen&&$.parent.isShown},k=function(){a.splice(v+1,S)}}());for(var y=p;y!==null;)y.visited?(y.visited=!1,y=y===p?null:y.sibling!==null?y.sibling:y.parent):(y.public.isOpen=y===p?f:y.public.isOpen,w(y.public,p.public),y!==p&&m(y),y.visited=y.child!==null,y=y.child!==null?y.child:y===p?null:y.sibling!==null?y.sibling:y.parent);k()}return{order:a,records:s,updateRequest:{}}}(n,o)}),Zn=function(e){function n(i,r){var a;return(a=e.call(this,i,r)||this).getItemSize=a.getItemSize.bind(Ne(a)),a.state=Mo({},a.state,{computeTree:ea,resetAfterId:a.resetAfterId.bind(Ne(a))}),a}Io(n,e);var o=n.prototype;return o.resetAfterId=function(i,r){var a;r===void 0&&(r=!1);var s=this.state,c=s.list,h=s.order;(a=c.current)==null||a.resetAfterIndex(h.indexOf(i),r)},o.recomputeTree=function(i){var r=this;return e.prototype.recomputeTree.call(this,i).then(function(){var a;(a=r.state.list.current)==null||a.resetAfterIndex(0,!0)})},o.render=function(){var i=this.props;i.children;var r=i.placeholder,a=i.itemSize,s=i.rowComponent;i.treeWalker;var c=wr(i,["children","placeholder","itemSize","rowComponent","treeWalker"]),h=this.state,g=h.attachRefs,p=h.order;return r&&p.length===0?r:pn.createElement(yr,Object.assign({},c,{itemCount:p.length,itemData:this.getItemData(),itemKey:Xr,itemSize:a??this.getItemSize,ref:g}),s)},o.getItemSize=function(i){return this.getRecordData(i).height},n}(Jo);const ta=l.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{u as Ce,i as ze,dF as gl,a as ae,R as O,bB as xl,j as l,cH as Ae,h0 as Re,al as Ie,hm as Le,b as a,hw as bl,dE as We,dv as ee,dx as de,dB as Me,gk as wl,gi as Sl,dz as qe,dy as ve,hx as Fe,hy as vl,gU as jl,gT as Ne,dC as je,dD as $l,C as Oe,h9 as Ue,d as ye,cq as He,g$ as Ge,ah as Ee,hl as Ze,t as fe,ak as Cl,co as Il,s as D,cp as ge,eB as Ll,bw as Ol,hz as El,ai as _l,hA as Pl,af as Fl,dP as Nl,bE as Dl,e as Ye,aw as Tl,cn as Vl}from"./index-2CdI-B2B.js";import{a as c}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import{bj as Je,bO as kl}from"./zeni-epic-state-Bo1aGezX.js";import{c as $e}from"./LabeledAddressValueField-C74ZzWQ3-j8ky07qz.js";import{Z as Bl}from"./LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js";import{c as De}from"./LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js";const{commonSetUp:zl}=ae.getLocalizedStrings(),{businessVerification:Te}=zl,pe={iconSize:new O(D[6],D[10]),gap:new O(D[2],D[3])},Ke={title:new ye("smallSemiBold","standardSemiBold"),description:new ye("smallRegular","standardRegular")},Qe=()=>{const[e]=Ol("Secure"),u=Ce();return l.jsxs(Al,{windowSize:u,children:[e!=null?l.jsx(Rl,{windowSize:u,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Wl,{windowSize:u}),l.jsxs(Ml,{children:[l.jsx(ql,{windowSize:u,children:Te.securityMessageTitle}),l.jsx(Ul,{windowSize:u,children:Te.securityMessageDescription})]})]})},Al=i.div`
1
+ import{u as Ce,i as ze,dF as gl,a as ae,R as O,bB as xl,j as l,cH as Ae,h0 as Re,al as Ie,hm as Le,b as a,hw as bl,dE as We,dv as ee,dx as de,dB as Me,gk as wl,gi as Sl,dz as qe,dy as ve,hx as Fe,hy as vl,gU as jl,gT as Ne,dC as je,dD as $l,C as Oe,h9 as Ue,d as ye,cq as He,g$ as Ge,ah as Ee,hl as Ze,t as fe,ak as Cl,co as Il,s as D,cp as ge,eB as Ll,bw as Ol,hz as El,ai as _l,hA as Pl,af as Fl,dP as Nl,bE as Dl,e as Ye,aw as Tl,cn as Vl}from"./index-OJbFNHch.js";import{a as c}from"./core-tlHkQPPu.js";import{n as i}from"./mui-kiGMfX4-.js";import{bj as Je,bO as kl}from"./zeni-epic-state-Bo1aGezX.js";import{c as $e}from"./LabeledAddressValueField-C74ZzWQ3-CvAM7L7i.js";import{Z as Bl}from"./LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js";import{c as De}from"./LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js";const{commonSetUp:zl}=ae.getLocalizedStrings(),{businessVerification:Te}=zl,pe={iconSize:new O(D[6],D[10]),gap:new O(D[2],D[3])},Ke={title:new ye("smallSemiBold","standardSemiBold"),description:new ye("smallRegular","standardRegular")},Qe=()=>{const[e]=Ol("Secure"),u=Ce();return l.jsxs(Al,{windowSize:u,children:[e!=null?l.jsx(Rl,{windowSize:u,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Wl,{windowSize:u}),l.jsxs(Ml,{children:[l.jsx(ql,{windowSize:u,children:Te.securityMessageTitle}),l.jsx(Ul,{windowSize:u,children:Te.securityMessageDescription})]})]})},Al=i.div`
2
2
  display: flex;
3
3
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
4
4
  gap: ${e=>pe.gap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{j as r,bk as E,bl as M,bm as f,a as p,b as s,bp as w,af as g,bq as j}from"./index-2CdI-B2B.js";import{n as o}from"./mui-kiGMfX4-.js";import{e as B}from"./SummaryCard-Bm1IRZgD-Bll-orHR.js";import{a as t}from"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./ReloadCard-CreyuBvN-CLMqgpFk.js";const u=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon: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}))},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon: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"}))},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon: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"}))}],H=o(w)`
1
+ import{j as r,bk as E,bl as M,bm as f,a as p,b as s,bp as w,af as g,bq as j}from"./index-OJbFNHch.js";import{n as o}from"./mui-kiGMfX4-.js";import{e as B}from"./SummaryCard-Bm1IRZgD-91ZI-22I.js";import{a as t}from"./core-tlHkQPPu.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./ReloadCard-CreyuBvN-DjNwhyuW.js";const u=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon: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}))},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon: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"}))},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon: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"}))}],H=o(w)`
2
2
  margin: ${s.sp5};
3
3
  justify-content: space-between;
4
4
  `,D=o.div`
@@ -1,4 +1,4 @@
1
- import{u as k,i as qe,bB as ma,a8 as ua,dt as ha,a as C,j as a,cf as fa,aa as xa,du as ga,bC as ya,R as m,f as Fe,b as o,ah as ee,dv as L,dw as Be,dx as N,dy as ba,dz as Ge,dA as $a,dB as wa,dC as Ze,a$ as Ia,dD as ja,dE as Je,dF as Qe,dG as va,dH as Sa,dI as Da,C as T,dJ as Ca,dK as Oa,c5 as Fa,bq as Ta,bJ as Y,dL as Te,s as p,af as Xe,B as Re,dM as ka,b3 as Pa,dN as Na,dO as La,co as za,dP as Ma,d6 as Ea,dQ as Ba,dR as Ra,ai as Va,cp as R,t as ce,cn as _a}from"./index-2CdI-B2B.js";import{a as B,o as Wa}from"./core-tlHkQPPu.js";import{n as s,k as Aa}from"./mui-kiGMfX4-.js";import{b as Ya}from"./omit-5LZGrM3q-cCGLyNB9.js";import{fe as Ha,bk as Ke,bO as Ua,bj as be,bD as qa,ff as Ga}from"./zeni-epic-state-Bo1aGezX.js";import{Z as ea}from"./LabeledCreatableSingleSelectField-BoymBi06-CmNh4XiF.js";import{c as aa}from"./LabeledDocumentField-BEg2KNOF-CXhVMSrJ.js";import{g as oa}from"./LabeledAddressValue-mLMacnQu-BhboedQp.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./_baseUnset-WRwI4F7w-C17FI5GR.js";import"./flatten-CIVR5K8J-DvOZeE7b.js";const ta={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Za=Aa`
1
+ import{u as k,i as qe,bB as ma,a8 as ua,dt as ha,a as C,j as a,cf as fa,aa as xa,du as ga,bC as ya,R as m,f as Fe,b as o,ah as ee,dv as L,dw as Be,dx as N,dy as ba,dz as Ge,dA as $a,dB as wa,dC as Ze,a$ as Ia,dD as ja,dE as Je,dF as Qe,dG as va,dH as Sa,dI as Da,C as T,dJ as Ca,dK as Oa,c5 as Fa,bq as Ta,bJ as Y,dL as Te,s as p,af as Xe,B as Re,dM as ka,b3 as Pa,dN as Na,dO as La,co as za,dP as Ma,d6 as Ea,dQ as Ba,dR as Ra,ai as Va,cp as R,t as ce,cn as _a}from"./index-OJbFNHch.js";import{a as B,o as Wa}from"./core-tlHkQPPu.js";import{n as s,k as Aa}from"./mui-kiGMfX4-.js";import{b as Ya}from"./omit-5LZGrM3q-Dkas3Ge8.js";import{fe as Ha,bk as Ke,bO as Ua,bj as be,bD as qa,ff as Ga}from"./zeni-epic-state-Bo1aGezX.js";import{Z as ea}from"./LabeledCreatableSingleSelectField-BoymBi06-B5wgIZxM.js";import{c as aa}from"./LabeledDocumentField-BEg2KNOF-CI4r3QEJ.js";import{g as oa}from"./LabeledAddressValue-mLMacnQu-Bs8h4KYU.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./_baseUnset-WRwI4F7w-SKv6CaOr.js";import"./flatten-CIVR5K8J-D-QSFstn.js";const ta={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Za=Aa`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -1,4 +1,4 @@
1
- import{a8 as P,i9 as j,a as S,j as A,ia as H,a9 as s,ah as O,aa as N,dv as v,dE as $,dB as q,b as E,ib as J,dz as V,bC as W,ic as _,H as T,cS as Z}from"./index-2CdI-B2B.js";import{a as g,o as c}from"./core-tlHkQPPu.js";import{n as o}from"./mui-kiGMfX4-.js";import{bj as z}from"./zeni-epic-state-Bo1aGezX.js";import{g as X}from"./LabeledAddressValue-mLMacnQu-BhboedQp.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const AA=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,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAFQVJREFUeF7t1cENwCAQA0Hov1s+yS+R6OJWQwV4fJL3ed5veQQIECBAgMBogW3QR/fn8wQIECBA4AoYdIdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDAoLsBAgQIECAQEDDogRJFIECAAAECBt0NECBAgACBgIBBD5QoAgECBAgQMOhugAABAgQIBAQMeqBEEQgQIECAgEF3AwQIECBAICBg0AMlikCAAAECBAy6GyBAgAABAgEBgx4oUQQCBAgQIGDQ3QABAgQIEAgIGPRAiSIQIECAAAGD7gYIECBAgEBAwKAHShSBAAECBAgYdDdAgAABAgQCAgY9UKIIBAgQIEDgB7iZk96LOSbbAAAAAElFTkSuQmCC"}))),e=S.getLocalizedStrings(),p="completeProfilePage",Q="basicDetailsSection",m="addressSection",l=(B,a)=>`${B}.${a}`,hA=({userEmail:B,googleAPIKey:a,twoFactorAuthenticationView:i,saveStatus:G,hasUserEnteredBasicDetails:w,onSave:D,onGetOtp:M,onVerifyOtp:k,onResendOtp:x})=>{const[I,n]=g.useState(!1),[f,y]=g.useState(!1),t=P({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),Y=j({control:t.control,name:`${Q}.address`}),{dateFormat:F}=S.getLocalizedStrings(),h=()=>{const C=t.getValues(`${Q}.phone`);C!=null&&C.trim().length>0&&M(C)},L=t.handleSubmit(C=>{C[Q].phone!=null&&i.otpVerificationStatus.fetchState!=="Completed"||i.otpVerificationStatus.fetchState==="Completed"&&C[Q].phone!=i.phone?h():D&&D(C)}),{sendOtpStatus:R,otpVerificationStatus:r,otpChallenge:U,phone:K}=i,b=A.jsxs(CA,{children:[A.jsx(AA,{}),A.jsxs(QA,{children:[A.jsxs(oA,{children:[A.jsx(H,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(s,{controller:r.fetchState==="Completed",children:A.jsx(IA,{})})]}),A.jsx(O,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(gA,{children:[A.jsxs(BA,{children:[A.jsxs(eA,{children:[I&&A.jsx(EA,{onClick:()=>{n(!1)}}),e.completeProfile.title]}),A.jsx(N,{...t,children:A.jsxs("form",{id:`${p}_form`,onSubmit:L,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(v,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:l(Q,"email")}}),A.jsx($,{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(q,{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:F.visual.defaultInput,autoComplete:"off",maxDate:z().subtract(18,"year")}}),A.jsx(X,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:Y,onClick:()=>{n(!0)}},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(J,{sectionId:m,googleAPIKey:a,isSubPage:!0})})})]})}),A.jsx(u,{children:A.jsx(V,{infoBox:b,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:f,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:U,showOtpButton:!0,onGetOtp:h,onVerifyOtp:(C,d)=>{k(C,d)},onResendOtp:C=>{C!=null&&C.trim().length>0&&x(C)},isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:R,verifiedPhoneNumber:r.fetchState==="Completed"?K:void 0,openPopup:()=>{y(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(W,{formId:I?void 0:`${p}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?()=>{const C=t.getValues(`${m}`);if(C!=null){const d=_(C);t.setValue(`${Q}.address`,d)}n(!1)}:void 0,isLoading:G.fetchState==="In-Progress"||i.sendOtpStatus.fetchState==="In-Progress"},showCancel:!1})]})},gA=o.div`
1
+ import{a8 as P,i9 as j,a as S,j as A,ia as H,a9 as s,ah as O,aa as N,dv as v,dE as $,dB as q,b as E,ib as J,dz as V,bC as W,ic as _,H as T,cS as Z}from"./index-OJbFNHch.js";import{a as g,o as c}from"./core-tlHkQPPu.js";import{n as o}from"./mui-kiGMfX4-.js";import{bj as z}from"./zeni-epic-state-Bo1aGezX.js";import{g as X}from"./LabeledAddressValue-mLMacnQu-Bs8h4KYU.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const AA=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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"}))),e=S.getLocalizedStrings(),p="completeProfilePage",Q="basicDetailsSection",m="addressSection",l=(B,a)=>`${B}.${a}`,hA=({userEmail:B,googleAPIKey:a,twoFactorAuthenticationView:i,saveStatus:G,hasUserEnteredBasicDetails:w,onSave:D,onGetOtp:M,onVerifyOtp:k,onResendOtp:x})=>{const[I,n]=g.useState(!1),[f,y]=g.useState(!1),t=P({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),Y=j({control:t.control,name:`${Q}.address`}),{dateFormat:F}=S.getLocalizedStrings(),h=()=>{const C=t.getValues(`${Q}.phone`);C!=null&&C.trim().length>0&&M(C)},L=t.handleSubmit(C=>{C[Q].phone!=null&&i.otpVerificationStatus.fetchState!=="Completed"||i.otpVerificationStatus.fetchState==="Completed"&&C[Q].phone!=i.phone?h():D&&D(C)}),{sendOtpStatus:R,otpVerificationStatus:r,otpChallenge:U,phone:K}=i,b=A.jsxs(CA,{children:[A.jsx(AA,{}),A.jsxs(QA,{children:[A.jsxs(oA,{children:[A.jsx(H,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(s,{controller:r.fetchState==="Completed",children:A.jsx(IA,{})})]}),A.jsx(O,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(gA,{children:[A.jsxs(BA,{children:[A.jsxs(eA,{children:[I&&A.jsx(EA,{onClick:()=>{n(!1)}}),e.completeProfile.title]}),A.jsx(N,{...t,children:A.jsxs("form",{id:`${p}_form`,onSubmit:L,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(v,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:l(Q,"email")}}),A.jsx($,{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(q,{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:F.visual.defaultInput,autoComplete:"off",maxDate:z().subtract(18,"year")}}),A.jsx(X,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:Y,onClick:()=>{n(!0)}},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(J,{sectionId:m,googleAPIKey:a,isSubPage:!0})})})]})}),A.jsx(u,{children:A.jsx(V,{infoBox:b,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:f,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:U,showOtpButton:!0,onGetOtp:h,onVerifyOtp:(C,d)=>{k(C,d)},onResendOtp:C=>{C!=null&&C.trim().length>0&&x(C)},isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:R,verifiedPhoneNumber:r.fetchState==="Completed"?K:void 0,openPopup:()=>{y(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(W,{formId:I?void 0:`${p}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?()=>{const C=t.getValues(`${m}`);if(C!=null){const d=_(C);t.setValue(`${Q}.address`,d)}n(!1)}:void 0,isLoading:G.fetchState==="In-Progress"||i.sendOtpStatus.fetchState==="In-Progress"},showCancel:!1})]})},gA=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-height: 100vh;
@@ -1 +1 @@
1
- import{e5 as ie,cr as oe,cs as ae,bS as se,bR as ce,e6 as ue,e7 as $,e8 as k,er as le,ec as pe,ed as B,b3 as ye,es as H,ek as I,et as fe,ei as me,eb as de,aq as be,ee as S,cD as he,eu as J,ev as ve,ew as xe,eh as ge,ej as Oe,cC as Ae,el as W}from"./index-2CdI-B2B.js";import{_ as Pe}from"./Area-Sl30rGq6-WMXLxt2t.js";import{a as C,o as x}from"./core-tlHkQPPu.js";function T(t){return(T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function we(t,e,n){return e&&function(i,r){for(var o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,ee(a.key),a)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function je(t,e,n){return e=M(e),function(i,r){if(r&&(T(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(i)}(t,Q()?Reflect.construct(e,n||[],M(t).constructor):e.apply(t,n))}function Q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q=function(){return!!t})()}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function U(t,e){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n})(t,e)}function X(t,e,n){return(e=ee(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ee(t){var e=function(n,i){if(T(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,i);if(T(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t,"string");return T(e)=="symbol"?e:e+""}var F=function(){function t(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),je(this,t,arguments)}return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&U(e,n)}(t,C.Component),we(t,[{key:"render",value:function(){return null}}])}();X(F,"displayName","ZAxis"),X(F,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var Se=["option","isActive"];function K(){return K=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},K.apply(this,arguments)}function Ee(t,e){if(t==null)return{};var n,i,r=function(a,u){if(a==null)return{};var y={};for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s)){if(u.indexOf(s)>=0)continue;y[s]=a[s]}return y}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ke(t){var e=t.option,n=t.isActive,i=Ee(t,Se);return typeof e=="string"?C.createElement(J,K({option:C.createElement(ve,K({type:e},i)),isActive:n,shapeType:"symbols"},i)):C.createElement(J,K({option:e,isActive:n,shapeType:"symbols"},i))}function _(t){return(_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function z(){return z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},z.apply(this,arguments)}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(i){A(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Z(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,re(i.key),i)}}function Ce(t,e,n){return e=q(e),function(i,r){if(r&&(_(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(i)}(t,te()?Reflect.construct(e,n||[],q(t).constructor):e.apply(t,n))}function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(te=function(){return!!t})()}function q(t){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function ne(t,e){return(ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n})(t,e)}function A(t,e,n){return(e=re(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function re(t){var e=function(n,i){if(_(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,i);if(_(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t,"string");return _(e)=="symbol"?e:e+""}var N=function(){function t(){var r;(function(y,s){if(!(y instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return A(r=Ce(this,t,[].concat(a)),"state",{isAnimationFinished:!1}),A(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),A(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),A(r,"id",ge("recharts-scatter-")),r}return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&ne(r,o)}(t,C.PureComponent),e=t,i=[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}}],(n=[{key:"renderSymbolsStatically",value:function(r){var o=this,a=this.props,u=a.shape,y=a.activeShape,s=a.activeIndex,h=$(this.props,!1);return r.map(function(c,f){var l=s===f,m=l?y:u,d=g(g({},h),c);return x.createElement(k,z({className:"recharts-scatter-symbol",key:"symbol-".concat(c?.cx,"-").concat(c?.cy,"-").concat(c?.size,"-").concat(f)},le(o.props,c,f),{role:"img"}),x.createElement(ke,z({option:m,isActive:l,key:"symbol-".concat(f)},d)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,o=this.props,a=o.points,u=o.isAnimationActive,y=o.animationBegin,s=o.animationDuration,h=o.animationEasing,c=o.animationId,f=this.state.prevPoints;return x.createElement(pe,{begin:y,duration:s,isActive:u,easing:h,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(l){var m=l.t,d=a.map(function(v,P){var O=f&&f[P];if(O){var p=B(O.cx,v.cx),b=B(O.cy,v.cy),j=B(O.size,v.size);return g(g({},v),{},{cx:p(m),cy:b(m),size:j(m)})}var w=B(0,v.size);return g(g({},v),{},{size:w(m)})});return x.createElement(k,null,r.renderSymbolsStatically(d))})}},{key:"renderSymbols",value:function(){var r=this.props,o=r.points,a=r.isAnimationActive,u=this.state.prevPoints;return!(a&&o&&o.length)||u&&ye(u,o)?this.renderSymbolsStatically(o):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,a=r.xAxis,u=r.yAxis,y=r.children,s=H(y,xe);return s?s.map(function(h,c){var f=h.props,l=f.direction,m=f.dataKey;return x.cloneElement(h,{key:"".concat(l,"-").concat(m,"-").concat(o[c]),data:o,xAxis:a,yAxis:u,layout:l==="x"?"vertical":"horizontal",dataPointFormatter:function(d,v){return{x:d.cx,y:d.cy,value:l==="x"?+d.node.x:+d.node.y,errorVal:I(d,v)}}})}):null}},{key:"renderLine",value:function(){var r,o,a=this.props,u=a.points,y=a.line,s=a.lineType,h=a.lineJointType,c=$(this.props,!1),f=$(y,!1);if(s==="joint")r=u.map(function(b){return{x:b.cx,y:b.cy}});else if(s==="fitting"){var l=fe(u),m=l.xmin,d=l.xmax,v=l.a,P=l.b,O=function(b){return v*b+P};r=[{x:m,y:O(m)},{x:d,y:O(d)}]}var p=g(g(g({},c),{},{fill:"none",stroke:c&&c.fill},f),{},{points:r});return o=x.isValidElement(y)?x.cloneElement(y,p):me(y)?y(p):x.createElement(de,z({},p,{type:h})),x.createElement(k,{className:"recharts-scatter-line",key:"recharts-scatter-line"},o)}},{key:"render",value:function(){var r=this.props,o=r.hide,a=r.points,u=r.line,y=r.className,s=r.xAxis,h=r.yAxis,c=r.left,f=r.top,l=r.width,m=r.height,d=r.id,v=r.isAnimationActive;if(o||!a||!a.length)return null;var P=this.state.isAnimationFinished,O=be("recharts-scatter",y),p=s&&s.allowDataOverflow,b=h&&h.allowDataOverflow,j=p||b,w=S(d)?this.id:d;return x.createElement(k,{className:O,clipPath:j?"url(#clipPath-".concat(w,")"):null},p||b?x.createElement("defs",null,x.createElement("clipPath",{id:"clipPath-".concat(w)},x.createElement("rect",{x:p?c:c-l/2,y:b?f:f-m/2,width:p?l:2*l,height:b?m:2*m}))):null,u&&this.renderLine(),this.renderErrorBar(),x.createElement(k,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!v||P)&&he.renderCallByParent(this.props,a))}}])&&Z(e.prototype,n),i&&Z(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();A(N,"displayName","Scatter"),A(N,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Oe.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),A(N,"getComposedData",function(t){var e=t.xAxis,n=t.yAxis,i=t.zAxis,r=t.item,o=t.displayedData,a=t.xAxisTicks,u=t.yAxisTicks,y=t.offset,s=r.props.tooltipType,h=H(r.props.children,Ae),c=S(e.dataKey)?r.props.dataKey:e.dataKey,f=S(n.dataKey)?r.props.dataKey:n.dataKey,l=i&&i.dataKey,m=i?i.range:F.defaultProps.range,d=m&&m[0],v=e.scale.bandwidth?e.scale.bandwidth():0,P=n.scale.bandwidth?n.scale.bandwidth():0,O=o.map(function(p,b){var j=I(p,c),w=I(p,f),E=!S(l)&&I(p,l)||"-",V=[{name:S(e.dataKey)?r.props.name:e.name||e.dataKey,unit:e.unit||"",value:j,payload:p,dataKey:c,type:s},{name:S(n.dataKey)?r.props.name:n.name||n.dataKey,unit:n.unit||"",value:w,payload:p,dataKey:f,type:s}];E!=="-"&&V.push({name:i.name||i.dataKey,unit:i.unit||"",value:E,payload:p,dataKey:l,type:s});var L=W({axis:e,ticks:a,bandSize:v,entry:p,index:b,dataKey:c}),R=W({axis:n,ticks:u,bandSize:P,entry:p,index:b,dataKey:f}),G=E!=="-"?i.scale(E):d,D=Math.sqrt(Math.max(G,0)/Math.PI);return g(g({},p),{},{cx:L,cy:R,x:L-D,y:R-D,xAxis:e,yAxis:n,zAxis:i,width:2*D,height:2*D,size:G,node:{x:j,y:w,z:E},tooltipPayload:V,tooltipPosition:{x:L,y:R},payload:p},h&&h[b]&&h[b].props)});return g({points:O},y)});var ze=ie({chartName:"ComposedChart",GraphicalChild:[oe,Pe,ae,N],axisComponents:[{axisType:"xAxis",AxisComp:se},{axisType:"yAxis",AxisComp:ce},{axisType:"zAxis",AxisComp:F}],formatAxisMap:ue});export{ze as n};
1
+ import{e5 as ie,cr as oe,cs as ae,bS as se,bR as ce,e6 as ue,e7 as $,e8 as k,er as le,ec as pe,ed as B,b3 as ye,es as H,ek as I,et as fe,ei as me,eb as de,aq as be,ee as S,cD as he,eu as J,ev as ve,ew as xe,eh as ge,ej as Oe,cC as Ae,el as W}from"./index-OJbFNHch.js";import{_ as Pe}from"./Area-Sl30rGq6-CogxmVvt.js";import{a as C,o as x}from"./core-tlHkQPPu.js";function T(t){return(T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function we(t,e,n){return e&&function(i,r){for(var o=0;o<r.length;o++){var a=r[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(i,ee(a.key),a)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function je(t,e,n){return e=M(e),function(i,r){if(r&&(T(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(i)}(t,Q()?Reflect.construct(e,n||[],M(t).constructor):e.apply(t,n))}function Q(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q=function(){return!!t})()}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function U(t,e){return(U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n})(t,e)}function X(t,e,n){return(e=ee(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ee(t){var e=function(n,i){if(T(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,i);if(T(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t,"string");return T(e)=="symbol"?e:e+""}var F=function(){function t(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),je(this,t,arguments)}return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&U(e,n)}(t,C.Component),we(t,[{key:"render",value:function(){return null}}])}();X(F,"displayName","ZAxis"),X(F,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var Se=["option","isActive"];function K(){return K=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},K.apply(this,arguments)}function Ee(t,e){if(t==null)return{};var n,i,r=function(a,u){if(a==null)return{};var y={};for(var s in a)if(Object.prototype.hasOwnProperty.call(a,s)){if(u.indexOf(s)>=0)continue;y[s]=a[s]}return y}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ke(t){var e=t.option,n=t.isActive,i=Ee(t,Se);return typeof e=="string"?C.createElement(J,K({option:C.createElement(ve,K({type:e},i)),isActive:n,shapeType:"symbols"},i)):C.createElement(J,K({option:e,isActive:n,shapeType:"symbols"},i))}function _(t){return(_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function z(){return z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},z.apply(this,arguments)}function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Y(Object(n),!0).forEach(function(i){A(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Z(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,re(i.key),i)}}function Ce(t,e,n){return e=q(e),function(i,r){if(r&&(_(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(i)}(t,te()?Reflect.construct(e,n||[],q(t).constructor):e.apply(t,n))}function te(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(te=function(){return!!t})()}function q(t){return(q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function ne(t,e){return(ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n})(t,e)}function A(t,e,n){return(e=re(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function re(t){var e=function(n,i){if(_(n)!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var o=r.call(n,i);if(_(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t,"string");return _(e)=="symbol"?e:e+""}var N=function(){function t(){var r;(function(y,s){if(!(y instanceof s))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return A(r=Ce(this,t,[].concat(a)),"state",{isAnimationFinished:!1}),A(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),A(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),A(r,"id",ge("recharts-scatter-")),r}return function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),o&&ne(r,o)}(t,C.PureComponent),e=t,i=[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}}],(n=[{key:"renderSymbolsStatically",value:function(r){var o=this,a=this.props,u=a.shape,y=a.activeShape,s=a.activeIndex,h=$(this.props,!1);return r.map(function(c,f){var l=s===f,m=l?y:u,d=g(g({},h),c);return x.createElement(k,z({className:"recharts-scatter-symbol",key:"symbol-".concat(c?.cx,"-").concat(c?.cy,"-").concat(c?.size,"-").concat(f)},le(o.props,c,f),{role:"img"}),x.createElement(ke,z({option:m,isActive:l,key:"symbol-".concat(f)},d)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,o=this.props,a=o.points,u=o.isAnimationActive,y=o.animationBegin,s=o.animationDuration,h=o.animationEasing,c=o.animationId,f=this.state.prevPoints;return x.createElement(pe,{begin:y,duration:s,isActive:u,easing:h,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(l){var m=l.t,d=a.map(function(v,P){var O=f&&f[P];if(O){var p=B(O.cx,v.cx),b=B(O.cy,v.cy),j=B(O.size,v.size);return g(g({},v),{},{cx:p(m),cy:b(m),size:j(m)})}var w=B(0,v.size);return g(g({},v),{},{size:w(m)})});return x.createElement(k,null,r.renderSymbolsStatically(d))})}},{key:"renderSymbols",value:function(){var r=this.props,o=r.points,a=r.isAnimationActive,u=this.state.prevPoints;return!(a&&o&&o.length)||u&&ye(u,o)?this.renderSymbolsStatically(o):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,a=r.xAxis,u=r.yAxis,y=r.children,s=H(y,xe);return s?s.map(function(h,c){var f=h.props,l=f.direction,m=f.dataKey;return x.cloneElement(h,{key:"".concat(l,"-").concat(m,"-").concat(o[c]),data:o,xAxis:a,yAxis:u,layout:l==="x"?"vertical":"horizontal",dataPointFormatter:function(d,v){return{x:d.cx,y:d.cy,value:l==="x"?+d.node.x:+d.node.y,errorVal:I(d,v)}}})}):null}},{key:"renderLine",value:function(){var r,o,a=this.props,u=a.points,y=a.line,s=a.lineType,h=a.lineJointType,c=$(this.props,!1),f=$(y,!1);if(s==="joint")r=u.map(function(b){return{x:b.cx,y:b.cy}});else if(s==="fitting"){var l=fe(u),m=l.xmin,d=l.xmax,v=l.a,P=l.b,O=function(b){return v*b+P};r=[{x:m,y:O(m)},{x:d,y:O(d)}]}var p=g(g(g({},c),{},{fill:"none",stroke:c&&c.fill},f),{},{points:r});return o=x.isValidElement(y)?x.cloneElement(y,p):me(y)?y(p):x.createElement(de,z({},p,{type:h})),x.createElement(k,{className:"recharts-scatter-line",key:"recharts-scatter-line"},o)}},{key:"render",value:function(){var r=this.props,o=r.hide,a=r.points,u=r.line,y=r.className,s=r.xAxis,h=r.yAxis,c=r.left,f=r.top,l=r.width,m=r.height,d=r.id,v=r.isAnimationActive;if(o||!a||!a.length)return null;var P=this.state.isAnimationFinished,O=be("recharts-scatter",y),p=s&&s.allowDataOverflow,b=h&&h.allowDataOverflow,j=p||b,w=S(d)?this.id:d;return x.createElement(k,{className:O,clipPath:j?"url(#clipPath-".concat(w,")"):null},p||b?x.createElement("defs",null,x.createElement("clipPath",{id:"clipPath-".concat(w)},x.createElement("rect",{x:p?c:c-l/2,y:b?f:f-m/2,width:p?l:2*l,height:b?m:2*m}))):null,u&&this.renderLine(),this.renderErrorBar(),x.createElement(k,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!v||P)&&he.renderCallByParent(this.props,a))}}])&&Z(e.prototype,n),i&&Z(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,i}();A(N,"displayName","Scatter"),A(N,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Oe.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),A(N,"getComposedData",function(t){var e=t.xAxis,n=t.yAxis,i=t.zAxis,r=t.item,o=t.displayedData,a=t.xAxisTicks,u=t.yAxisTicks,y=t.offset,s=r.props.tooltipType,h=H(r.props.children,Ae),c=S(e.dataKey)?r.props.dataKey:e.dataKey,f=S(n.dataKey)?r.props.dataKey:n.dataKey,l=i&&i.dataKey,m=i?i.range:F.defaultProps.range,d=m&&m[0],v=e.scale.bandwidth?e.scale.bandwidth():0,P=n.scale.bandwidth?n.scale.bandwidth():0,O=o.map(function(p,b){var j=I(p,c),w=I(p,f),E=!S(l)&&I(p,l)||"-",V=[{name:S(e.dataKey)?r.props.name:e.name||e.dataKey,unit:e.unit||"",value:j,payload:p,dataKey:c,type:s},{name:S(n.dataKey)?r.props.name:n.name||n.dataKey,unit:n.unit||"",value:w,payload:p,dataKey:f,type:s}];E!=="-"&&V.push({name:i.name||i.dataKey,unit:i.unit||"",value:E,payload:p,dataKey:l,type:s});var L=W({axis:e,ticks:a,bandSize:v,entry:p,index:b,dataKey:c}),R=W({axis:n,ticks:u,bandSize:P,entry:p,index:b,dataKey:f}),G=E!=="-"?i.scale(E):d,D=Math.sqrt(Math.max(G,0)/Math.PI);return g(g({},p),{},{cx:L,cy:R,x:L-D,y:R-D,xAxis:e,yAxis:n,zAxis:i,width:2*D,height:2*D,size:G,node:{x:j,y:w,z:E},tooltipPayload:V,tooltipPosition:{x:L,y:R},payload:p},h&&h[b]&&h[b].props)});return g({points:O},y)});var ze=ie({chartName:"ComposedChart",GraphicalChild:[oe,Pe,ae,N],axisComponents:[{axisType:"xAxis",AxisComp:se},{axisType:"yAxis",AxisComp:ce},{axisType:"zAxis",AxisComp:F}],formatAxisMap:ue});export{ze as n};
@@ -1 +1 @@
1
- import{dV as m,bw as l,j as i,bE as c,b as n}from"./index-2CdI-B2B.js";import{a}from"./core-tlHkQPPu.js";import"./mui-kiGMfX4-.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const j=({showConfetti:t})=>{const[e,r]=a.useState(t),[s,o]=m("https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",t),[p]=l("ConfettiSuccess");return a.useEffect(()=>{t&&r(!0)},[t]),a.useEffect(()=>{e&&s===!1&&o(!0)},[e,s,o]),i.jsx(i.Fragment,{children:e&&s&&p!=null?i.jsx(c,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{o(!1),r(!1)},animationData:p,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{j as default};
1
+ import{dV as m,bw as l,j as i,bE as c,b as n}from"./index-OJbFNHch.js";import{a}from"./core-tlHkQPPu.js";import"./mui-kiGMfX4-.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const j=({showConfetti:t})=>{const[e,r]=a.useState(t),[s,o]=m("https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",t),[p]=l("ConfettiSuccess");return a.useEffect(()=>{t&&r(!0)},[t]),a.useEffect(()=>{e&&s===!1&&o(!0)},[e,s,o]),i.jsx(i.Fragment,{children:e&&s&&p!=null?i.jsx(c,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{o(!1),r(!1)},animationData:p,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{j as default};
@@ -1,4 +1,4 @@
1
- import{i as We,u as v,a as h,b3 as M,j as t,cf as He,bm as b,A as Ye,dc as re,dd as ae,de as ne,dS as _e,bC as qe,R as U,cS as Ge,b as o,dT as Je,cH as S,d6 as ie,s as f,bH as se,af as le,ah as q,c6 as Ke,dP as de,C as L,dU as ce,dM as pe}from"./index-2CdI-B2B.js";import{a as x}from"./core-tlHkQPPu.js";import{n as r}from"./mui-kiGMfX4-.js";import{b as Qe}from"./omit-5LZGrM3q-cCGLyNB9.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./_baseUnset-WRwI4F7w-C17FI5GR.js";import"./flatten-CIVR5K8J-DvOZeE7b.js";const Xe=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:n,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:w})=>{const j=v(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(Ze,{children:[t.jsxs(W,{children:[t.jsx(H,{children:m}),t.jsx(Y,{children:d})]}),t.jsxs(W,{children:[t.jsx(H,{children:p.achDetails.bankName}),t.jsx(Y,{children:s})]}),t.jsxs(W,{children:[t.jsx(H,{children:n}),t.jsx(Y,{children:e})]})]});return t.jsxs(rt,{size:j,children:[t.jsxs(tt,{children:[t.jsxs(q,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(S,{title:g,placement:"top",children:t.jsx(nt,{children:t.jsx(it,{})})})]}),t.jsx(et,{children:u??p.emptyPlaceholderString})]}),t.jsx(ot,{children:t.jsx(S,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(at,{onClick:y=>{y.stopPropagation(),w()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(st,{})})})})]})},Ze=r.div`
1
+ import{i as We,u as v,a as h,b3 as M,j as t,cf as He,bm as b,A as Ye,dc as re,dd as ae,de as ne,dS as _e,bC as qe,R as U,cS as Ge,b as o,dT as Je,cH as S,d6 as ie,s as f,bH as se,af as le,ah as q,c6 as Ke,dP as de,C as L,dU as ce,dM as pe}from"./index-OJbFNHch.js";import{a as x}from"./core-tlHkQPPu.js";import{n as r}from"./mui-kiGMfX4-.js";import{b as Qe}from"./omit-5LZGrM3q-Dkas3Ge8.js";import"./sentry-Dhk5jNhq.js";import"./zeni-epic-state-Bo1aGezX.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";import"./_baseUnset-WRwI4F7w-SKv6CaOr.js";import"./flatten-CIVR5K8J-D-QSFstn.js";const Xe=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:n,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:w})=>{const j=v(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(Ze,{children:[t.jsxs(W,{children:[t.jsx(H,{children:m}),t.jsx(Y,{children:d})]}),t.jsxs(W,{children:[t.jsx(H,{children:p.achDetails.bankName}),t.jsx(Y,{children:s})]}),t.jsxs(W,{children:[t.jsx(H,{children:n}),t.jsx(Y,{children:e})]})]});return t.jsxs(rt,{size:j,children:[t.jsxs(tt,{children:[t.jsxs(q,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(S,{title:g,placement:"top",children:t.jsx(nt,{children:t.jsx(it,{})})})]}),t.jsx(et,{children:u??p.emptyPlaceholderString})]}),t.jsx(ot,{children:t.jsx(S,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(at,{onClick:y=>{y.stopPropagation(),w()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(st,{})})})})]})},Ze=r.div`
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
4
  gap: ${o.sp1};
@@ -1,4 +1,4 @@
1
- import{j as t,u as pe,a7 as ue,bm as ee,iN as ea,a as V,bn as je,B as aa,A as ta,bC as Ee,b as a,R as d,f as Be,L as na,ae as oa,i as ze,cH as ia,gC as Me,d as W,C as Y,hK as Se,t as ra,as as Oe,H as la,bB as xe,a8 as ca,gV as sa,dt as da,aa as ma,gl as pa,gZ as ua,dx as ha,i$ as be,j0 as ga,hx as ya,s as r,cS as fa,cQ as _e,gL as Ca,d6 as Sa,ah as Ne,iO as xa,h7 as ba,br as wa,j1 as Da,dP as Aa,iQ as ka,h5 as La}from"./index-2CdI-B2B.js";import{n as o}from"./mui-kiGMfX4-.js";import{a as p}from"./core-tlHkQPPu.js";import{bO as de,bT as va,bj as $a,bM as Ia,bN as we,bL as Ra}from"./zeni-epic-state-Bo1aGezX.js";import{c as Fa}from"./LabeledControlledCheckBoxField-D7yxgfu0-DldJVWKR.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const ae={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])},me={pageTitle:new W("h6Regular","h5Regular"),integerAmountInput:new W("h5Regular","h2Regular"),decimalAmountInput:new W("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:Ta}},common:{edit:Pa,labels:De,currency:Ae,navBar:{back:ja}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:Ea}},chargeCard:{payEarly:J}}}=V.getLocalizedStrings(),Ba=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:l,cashbackInformation:f,paymentSourceInformation:v,creditAccountInformation:y,debitAccountInformation:S,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=pe(),F=ze(),T=ue().analytics,[E,$]=p.useState(!1);p.useEffect(()=>{e.error!=null?$(!0):$(!1)},[e.error]);const k=ae.largeLabelWidth.value(m);return t.jsxs(t.Fragment,{children:[t.jsxs(Ha,{windowSize:m,children:[t.jsx(et,{windowSize:m,children:t.jsx(ia,{title:ja,enterTouchDelay:600,placement:"bottom",children:t.jsx(Ja,{"data-testid":ee("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&T.trackCardsPayEarlyFormClick(g,l,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},v,y,S),x(!1)}})})}),t.jsx(at,{windowSize:m,children:Ea.reviewAndConfirm}),t.jsx(Ma,{children:t.jsx(Me,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:me.integerAmountInput.styleObject(m),decimalStyles:me.decimalAmountInput.styleObject(m)})}),E?t.jsx(Ya,{children:t.jsxs(Na,{children:[t.jsxs(Za,{children:[t.jsx(Ka,{}),t.jsxs(Ua,{children:[t.jsx(Wa,{children:e.error?.title}),t.jsx(Va,{children:e.error?.message})]})]}),t.jsx(Ga,{children:t.jsx(Xa,{"data-testid":ee("close-error-credit-card-payment-review"),onClick:()=>{$(!1)},style:{width:a.sp3,height:a.sp3,color:Y.heroLight}})})]})}):null,t.jsx(Qa,{windowSize:m,children:t.jsxs(_a,{children:[t.jsx(Se,{label:{label:De.transferFrom,width:k},text:t.jsxs(ke,{windowSize:m,children:[Ue(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),t.jsx(Oa,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),t.jsx(qa,{}),t.jsx(Se,{label:{label:De.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?J.creditLimitReset:J.creditLimitUpdate} ${de(va($a().toDate(),[0,6],3).toDateString()).format(Ta)} ${J.business23Days}`,additionalInfoLabelStyles:{color:F.colors.hero,...ra.smallRegular.cssObject},text:t.jsx(ke,{windowSize:m,children:je("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:Ae.currencyCode,currencySymbol:Ae.currencySymbol})}),style:{width:"auto"}})]})})]}),t.jsx(Ee,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp0},helperText:J.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${a.sp0} ${a.sp0} ${a.sp3} ${a.sp0}`},cancelBtn:{label:Pa,onClick:()=>{i&&h&&n&&T.trackCardsPayEarlyFormClick(g,l,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},v,y,S),x(!1)},style:{minWidth:94}},primaryBtn:{label:J.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},Ue=(e,i,h)=>{if(i==="")return t.jsx(lt,{});const n=e.find(l=>l.id===i),g=e.findIndex(l=>l.id===i);if(n!=null){if(n.accType==="depositAccount")return t.jsx(it,{isOptionSelected:h,children:t.jsx(rt,{color:xa(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?t.jsx(tt,{src:za(n.logo),isOptionSelected:h,loading:"lazy"}):t.jsx(nt,{isOptionSelected:h,children:t.jsx(ot,{})})}return null},za=e=>e.base64!==void 0?`${ba}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Ma=o(_e)`
1
+ import{j as t,u as pe,a7 as ue,bm as ee,iN as ea,a as V,bn as je,B as aa,A as ta,bC as Ee,b as a,R as d,f as Be,L as na,ae as oa,i as ze,cH as ia,gC as Me,d as W,C as Y,hK as Se,t as ra,as as Oe,H as la,bB as xe,a8 as ca,gV as sa,dt as da,aa as ma,gl as pa,gZ as ua,dx as ha,i$ as be,j0 as ga,hx as ya,s as r,cS as fa,cQ as _e,gL as Ca,d6 as Sa,ah as Ne,iO as xa,h7 as ba,br as wa,j1 as Da,dP as Aa,iQ as ka,h5 as La}from"./index-OJbFNHch.js";import{n as o}from"./mui-kiGMfX4-.js";import{a as p}from"./core-tlHkQPPu.js";import{bO as de,bT as va,bj as $a,bM as Ia,bN as we,bL as Ra}from"./zeni-epic-state-Bo1aGezX.js";import{c as Fa}from"./LabeledControlledCheckBoxField-D7yxgfu0-DgJw74_b.js";import"./sentry-Dhk5jNhq.js";import"./liveblocks-BrzOBACZ.js";import"./utils-BLUF9kAp.js";import"./analytics-CeQu-r45.js";const ae={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])},me={pageTitle:new W("h6Regular","h5Regular"),integerAmountInput:new W("h5Regular","h2Regular"),decimalAmountInput:new W("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:Ta}},common:{edit:Pa,labels:De,currency:Ae,navBar:{back:ja}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:Ea}},chargeCard:{payEarly:J}}}=V.getLocalizedStrings(),Ba=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:l,cashbackInformation:f,paymentSourceInformation:v,creditAccountInformation:y,debitAccountInformation:S,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:D})=>{const m=pe(),F=ze(),T=ue().analytics,[E,$]=p.useState(!1);p.useEffect(()=>{e.error!=null?$(!0):$(!1)},[e.error]);const k=ae.largeLabelWidth.value(m);return t.jsxs(t.Fragment,{children:[t.jsxs(Ha,{windowSize:m,children:[t.jsx(et,{windowSize:m,children:t.jsx(ia,{title:ja,enterTouchDelay:600,placement:"bottom",children:t.jsx(Ja,{"data-testid":ee("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&T.trackCardsPayEarlyFormClick(g,l,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},v,y,S),x(!1)}})})}),t.jsx(at,{windowSize:m,children:Ea.reviewAndConfirm}),t.jsx(Ma,{children:t.jsx(Me,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:me.integerAmountInput.styleObject(m),decimalStyles:me.decimalAmountInput.styleObject(m)})}),E?t.jsx(Ya,{children:t.jsxs(Na,{children:[t.jsxs(Za,{children:[t.jsx(Ka,{}),t.jsxs(Ua,{children:[t.jsx(Wa,{children:e.error?.title}),t.jsx(Va,{children:e.error?.message})]})]}),t.jsx(Ga,{children:t.jsx(Xa,{"data-testid":ee("close-error-credit-card-payment-review"),onClick:()=>{$(!1)},style:{width:a.sp3,height:a.sp3,color:Y.heroLight}})})]})}):null,t.jsx(Qa,{windowSize:m,children:t.jsxs(_a,{children:[t.jsx(Se,{label:{label:De.transferFrom,width:k},text:t.jsxs(ke,{windowSize:m,children:[Ue(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),t.jsx(Oa,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),t.jsx(qa,{}),t.jsx(Se,{label:{label:De.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?J.creditLimitReset:J.creditLimitUpdate} ${de(va($a().toDate(),[0,6],3).toDateString()).format(Ta)} ${J.business23Days}`,additionalInfoLabelStyles:{color:F.colors.hero,...ra.smallRegular.cssObject},text:t.jsx(ke,{windowSize:m,children:je("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:Ae.currencyCode,currencySymbol:Ae.currencySymbol})}),style:{width:"auto"}})]})})]}),t.jsx(Ee,{style:{zIndex:4,paddingTop:a.sp3,paddingBottom:a.sp0},helperText:J.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${a.sp0} ${a.sp0} ${a.sp3} ${a.sp0}`},cancelBtn:{label:Pa,onClick:()=>{i&&h&&n&&T.trackCardsPayEarlyFormClick(g,l,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},v,y,S),x(!1)},style:{minWidth:94}},primaryBtn:{label:J.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},Ue=(e,i,h)=>{if(i==="")return t.jsx(lt,{});const n=e.find(l=>l.id===i),g=e.findIndex(l=>l.id===i);if(n!=null){if(n.accType==="depositAccount")return t.jsx(it,{isOptionSelected:h,children:t.jsx(rt,{color:xa(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?t.jsx(tt,{src:za(n.logo),isOptionSelected:h,loading:"lazy"}):t.jsx(nt,{isOptionSelected:h,children:t.jsx(ot,{})})}return null},za=e=>e.base64!==void 0?`${ba}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Ma=o(_e)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  padding-top: ${a.sp3};
4
4
  `,Oa=o.div`