@zeniai/web-cockpit-ui 1.13.89-dev → 1.13.90-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/dist/assets/{ACHDetailsPage-Dht0mfFW-Dn9VZjx5.js → ACHDetailsPage-ppaaVv4t-BnOUfoFz.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-D8LI2uJ_-CFMKtsQV.js → AIPerformancePage-brocrTLA-C9EDr2D4.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-Cw_Mdy7Z-CgHNbOHf.js → AccountInfoPage-BkqXbGUJ-DXuI8tNZ.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-DadwVfBB-CcKZ7ci4.js → AccountInfoPageContent-DOrQxiUF-2yx_ZhMt.js} +1 -1
  5. package/dist/assets/{AccountReconDetailsDrawerPage-mQx5-mCY-CXTHdi5q.js → AccountReconDetailsDrawerPage-i6rVi1gY-DVchfPsP.js} +1 -1
  6. package/dist/assets/{AccountRow-B4i2KTVu-DZIGknQG.js → AccountRow-D9vDRsjv-uSOuzaD9.js} +1 -1
  7. package/dist/assets/{AccountsPromoCardStack-B2NngRd9-cDiIvZy1.js → AccountsPromoCardStack-BvFE5A3N-C__nnIqn.js} +1 -1
  8. package/dist/assets/{AddAddressForCardDrawer-D-IznBH5-BJus8-sl.js → AddAddressForCardDrawer-BV2BSzaD-CBI5bfsC.js} +1 -1
  9. package/dist/assets/{AddToWalletPage-DflLtoqk-C5v1fW7G.js → AddToWalletPage-DTEIuDRq-CzKzLxkn.js} +1 -1
  10. package/dist/assets/{AgingReportsPage-z5SauZFW-CWSELr2T.js → AgingReportsPage-B8iVxaQX-z0eVPQ8X.js} +1 -1
  11. package/dist/assets/{AllUserItems-Cs-QjNZz-DLp9A32f.js → AllUserItems-BepRyHp7-6smxMTUs.js} +1 -1
  12. package/dist/assets/{ApAgingDetailPage-lLcH4EB_-rlPPDzk2.js → ApAgingDetailPage-DOObMUqB-DRL-pTDS.js} +1 -1
  13. package/dist/assets/{AppBasePage-jmR82AtE-DayOXpZP.js → AppBasePage-Ob8EkU54-B4IzJNVZ.js} +1 -1
  14. package/dist/assets/AppDrawerContent-CNsKktFP-oEQQGdma.js +142 -0
  15. package/dist/assets/{ApprovalRulesSettingsPage-zl3t7M0D-Cdqy44le.js → ApprovalRulesSettingsPage-Bn7LOelK-C_JBTy7y.js} +1 -1
  16. package/dist/assets/{ArAgingChart-B7_os9Eg-CgtB3vV8.js → ArAgingChart-C0hTtEmV-Cp3DCSeq.js} +1 -1
  17. package/dist/assets/{ArAgingDetailPage-DPGrFIuw-DbqMnESI.js → ArAgingDetailPage-C_E_xPwf-CoqFi7sc.js} +1 -1
  18. package/dist/assets/{AttachmentView-B0X31J2n-CsjUR1d_.js → AttachmentView-CATl3tNf-DCa2zXLn.js} +1 -1
  19. package/dist/assets/{BankAccountSection-BGfiGdYG-BvbymoQK.js → BankAccountSection-VSbZyxoY-BkprL32R.js} +1 -1
  20. package/dist/assets/{BankAccountWarningSection-Cd5lC0dV-ChbciCQi.js → BankAccountWarningSection-a39s142r-4WcZfRoK.js} +1 -1
  21. package/dist/assets/{BankConnectionsSettingsPage-DHJqJw74-BePSQANr.js → BankConnectionsSettingsPage-CBavGNdc-DWKqHO49.js} +1 -1
  22. package/dist/assets/{BillDetailPage-CVPyGkX2-BrTeB9W1.js → BillDetailPage-uMG3JJPb-ClGgqpml.js} +1 -1
  23. package/dist/assets/{BillPayApprovalRuleDetailPage-CPvu5b92-Ms299zWc.js → BillPayApprovalRuleDetailPage-Bmrg1Wxh-CFroqaxM.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRulesPage-04rw5oF_-ByiJUcvs.js → BillPayApprovalRulesPage-BN21qPTb-BwOgIMfY.js} +1 -1
  25. package/dist/assets/{BillPayPromoPage-xnBNKyGo-Qs57CtUW.js → BillPayPromoPage-DoP2oC8W-D-cHzeZ4.js} +1 -1
  26. package/dist/assets/{BillPaySetUpPage-2FceZZW4-B3NVG0AT.js → BillPaySetUpPage-o-V-9aI5-DuW6yWFa.js} +1 -1
  27. package/dist/assets/{BillingSettingsPage-D2iVTCtE-DzLgV1gZ.js → BillingSettingsPage-CX-rbxzB-D5hgrymw.js} +1 -1
  28. package/dist/assets/{BillsBulkReviewDrawerPage-sdzCq1Cx-CMrpjPLV.js → BillsBulkReviewDrawerPage-_qgURJjv-CemkDBxg.js} +1 -1
  29. package/dist/assets/{BoxItem-dOIVDQzt-BM2Or2XI.js → BoxItem-CHPfWPEF-lXs1y6iB.js} +1 -1
  30. package/dist/assets/{BusinessVerificationPage-DaVB5XYz-abkyr0KT.js → BusinessVerificationPage-YKJ-CZfb-BgJNO5ZA.js} +1 -1
  31. package/dist/assets/{CardNumberSubText-CX7raaMz-YubYXrEf.js → CardNumberSubText-dxYfM6ph-B1OZ5t3N.js} +1 -1
  32. package/dist/assets/{CashbackDetailPage-xKd1BcXA-BnqvBKy2.js → CashbackDetailPage-BfTC3IBm-BcRVF9pL.js} +1 -1
  33. package/dist/assets/{ChargeCardDetailPage-D-htyuB--DNk7-kF0.js → ChargeCardDetailPage-npqfreRG-D_PNn6ZE.js} +1 -1
  34. package/dist/assets/{ChargeCardListPage-BFEDq_hH-CIWVY9p8.js → ChargeCardListPage-Dbx1ymB9-DiXO1BWI.js} +1 -1
  35. package/dist/assets/{ChargeCardListTable-D0rr5rCb-ubys_P-K.js → ChargeCardListTable-qk9tQ6Kb-DR0FaH4k.js} +1 -1
  36. package/dist/assets/{ChargeCardPromoPage-C4RyYN8x-DrItIyBg.js → ChargeCardPromoPage-CsItH2IC-BEXKS9-8.js} +1 -1
  37. package/dist/assets/{ChargeCardSetupPage-DdabiH79-BJYnLJP3.js → ChargeCardSetupPage-D5LWY3-P-BB2kARlQ.js} +1 -1
  38. package/dist/assets/{ChargeCardStatementsPage-fcVVhHeN-3BJYN5k8.js → ChargeCardStatementsPage-vYbnt2WJ-CDBr97Hk.js} +1 -1
  39. package/dist/assets/{ChargeCardUtils-CHUMBmgR-CJymagC4.js → ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js} +1 -1
  40. package/dist/assets/{ChaseOverlay-kXvIXrLn-BoWFlEip.js → ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js} +1 -1
  41. package/dist/assets/{CheckDepositDrawerPage-DzZGbAGe-CUI6hMoI.js → CheckDepositDrawerPage-B1Qp-xbY-f-dhYQ0q.js} +1 -1
  42. package/dist/assets/{CollapsableReportTable-B7JqlhCA-D-71vAGn.js → CollapsableReportTable-Dp1985is-CgJ_JGJs.js} +1 -1
  43. package/dist/assets/{CompanyOfficerDetailsSection-Cd0QdDAc-CRTLz9vU.js → CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js} +1 -1
  44. package/dist/assets/{CompanyPassportCard-Bhm76W7a-DhQY8aBm.js → CompanyPassportCard-Dp3a8GH8-qRGWLoZI.js} +1 -1
  45. package/dist/assets/{CompanyPassportPage-B6Urivf7-Cf5kWZCy.js → CompanyPassportPage-CS1LPj5f-CxHtTINk.js} +1 -1
  46. package/dist/assets/{CompleteProfile-Ch4TNwnb-BDWK7-aS.js → CompleteProfile-CJOsHnBa-DdCWBRuB.js} +1 -1
  47. package/dist/assets/{ConfettiBurst-DxWLsUlB-rN2UgITP.js → ConfettiBurst-DX1P5VT_-C7tIIZfu.js} +1 -1
  48. package/dist/assets/{CreateOrEditVendorPage-MjFD4wWW-Duct_eTQ.js → CreateOrEditVendorPage-BL1BXGvy-Vx1XM-1z.js} +1 -1
  49. package/dist/assets/{CreditCardPaymentDrawerPage-CcZnGiIZ-Ci6NOj44.js → CreditCardPaymentDrawerPage-D6-R3DiA-ByQ_c4QS.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentPlgSection-DEV6AUvV-Dv95csrn.js → CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js} +1 -1
  51. package/dist/assets/{CurrencySelectField-iFR770y_-C1fOBvED.js → CurrencySelectField-CH65s5Fc-DGotu77i.js} +1 -1
  52. package/dist/assets/{CustomerOnboardingActivationPage-O_lVI1Iw-CSIlT4cV.js → CustomerOnboardingActivationPage-DCHbvIb1-4vnrfrOn.js} +1 -1
  53. package/dist/assets/CustomerOnboardingContainerPage-X6X9Yc-9-D6pVLXm5.js +1 -0
  54. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-WBhn2MmI-IC_mQp6e.js → CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js} +1 -1
  55. package/dist/assets/{CustomerOnboardingNoStepsPage-CmnwYeBe-VDPM90YE.js → CustomerOnboardingNoStepsPage-DrbkKOBx-C5bbYFj1.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingPage-DUMb3HBt-C_i7oxut.js → CustomerOnboardingPage-CIbBaMcO-Dqym0Rf2.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingProductSuitePage-DZ8c60qu-Ca-OS69A.js → CustomerOnboardingProductSuitePage-DyGs61vw-DLcQ1dQj.js} +1 -1
  58. package/dist/assets/{Dashboard-BqpjCXF4-2DYnY2Iv.js → Dashboard-beLswUHx-XoTiAJKU.js} +1 -1
  59. package/dist/assets/{DashboardReportPage-pKEtfyyz-CVEg_i3S.js → DashboardReportPage-BM6TqjrJ-DQu7SOT2.js} +1 -1
  60. package/dist/assets/{DepositAccTransactionItem-CzhTsz8T-D_UbOtXk.js → DepositAccTransactionItem-CfAjG3HH-COwwc_MG.js} +1 -1
  61. package/dist/assets/{DepositAccTransactionListPage-BdBZvUQu-BB7xhCYl.js → DepositAccTransactionListPage-Cj1smNoP-CkdRHZge.js} +1 -1
  62. package/dist/assets/{DocumentSecurityBanner-CjDxLXR5-BndWfQhM.js → DocumentSecurityBanner-BRFFDueV-stK3q2uU.js} +1 -1
  63. package/dist/assets/{DomesticWireDetailsPage-Ckv29rd5-DrJPPbKc.js → DomesticWireDetailsPage-BZ8jSo8r-Dcvy9KUR.js} +1 -1
  64. package/dist/assets/{DownloadOverlay-9HCQzpew-CsaBVCuK.js → DownloadOverlay-Ly2ZesqA-D_S8bx9G.js} +1 -1
  65. package/dist/assets/{DrawerPage-BxA7btCQ-vpjTPccl.js → DrawerPage-BFIdjtOJ-BFnTHlQb.js} +1 -1
  66. package/dist/assets/{EditPeoplePage-B9oW6E0C-C3pRQE6D.js → EditPeoplePage-BPHt33f5-DjZUh9aC.js} +1 -1
  67. package/dist/assets/{EditReimbursementDetailPage-2_Ugsfav-CInqqrZe.js → EditReimbursementDetailPage-DJ_qNQbh-D_aBh5FK.js} +1 -1
  68. package/dist/assets/{EntityDetailPage-Dv97bCUN-BCQJ8lei.js → EntityDetailPage-DZ9vXZci-DUGgDVnf.js} +1 -1
  69. package/dist/assets/{EntitySummarySection-CAz28n_B-DA_p__eJ.js → EntitySummarySection-kCA6OJs0-CuvI5nJX.js} +1 -1
  70. package/dist/assets/{ExpenseAutomationOverviewPage-CpVokJPL-BSrPWwJ8.js → ExpenseAutomationOverviewPage-B9K2qPQi-BcMuOXVi.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationPage-CFRiNGRE-CFvonBSo.js → ExpenseAutomationPage-LoGHiJzr-BnTXz0Ci.js} +1 -1
  72. package/dist/assets/{ExpressPayPage-BsCQmXdG-CzkMNsZH.js → ExpressPayPage-B12NaLXN-CGW5-zDn.js} +1 -1
  73. package/dist/assets/{FeaturePreviewPage-CnYlH8Tm-cl_d37Wd.js → FeaturePreviewPage-D9_aRmPj-CvnK2Uy2.js} +1 -1
  74. package/dist/assets/{FollowStepsSection-CvsH5sJq-DWW0wJJE.js → FollowStepsSection-BL8sM4vS-D6HNdi5Y.js} +1 -1
  75. package/dist/assets/{GlobalReviewListPage-CKbg3WRJ-BhA6WSL7.js → GlobalReviewListPage-DONc_BXP-jngzyZ2P.js} +1 -1
  76. package/dist/assets/{HelpButton-DmSTrp5G-BZ5gO3eI.js → HelpButton-khTPylkl-CEL7Boo7.js} +1 -1
  77. package/dist/assets/{InformationCardStack-X52PXCzi-BTPqjoZv.js → InformationCardStack-BtIMGsaQ-BRj2ZNHm.js} +1 -1
  78. package/dist/assets/{InsightsCardStack-CXxA6hpf-BZ7-Ipfo.js → InsightsCardStack-lzduh7aO-Crnd4D-1.js} +1 -1
  79. package/dist/assets/{InsightsSection-obWu95-o-miX-wlBZ.js → InsightsSection-q1QuO6Z4-1k_aUqAr.js} +1 -1
  80. package/dist/assets/{IntegrationsSettingsPage-BFZjrnDu-BWjoBVhl.js → IntegrationsSettingsPage-CpnXcxlz-ANVTxCp5.js} +1 -1
  81. package/dist/assets/{InternationalWireSwiftDetailsPage-CywJ88_i-BroHKack.js → InternationalWireSwiftDetailsPage-BXBsK560-i2JR8sEk.js} +1 -1
  82. package/dist/assets/{InternationalWireVerificationPage-CjunyEiQ-CkCrwyQO.js → InternationalWireVerificationPage-BrnMNFx7-CivrskR8.js} +1 -1
  83. package/dist/assets/{InviteFormPage-BaaFGzDE-BIlf9-kB.js → InviteFormPage-DQTEQazA-CYIvBKP9.js} +1 -1
  84. package/dist/assets/{InvitePageListView-BJJQpITw-CDEymEsw.js → InvitePageListView-C7CaDCYN-kxX6EM5-.js} +1 -1
  85. package/dist/assets/{InvitePeoplePage-7yKV1JuU-BmXtVrGW.js → InvitePeoplePage-Ca0ZnNhV-4UVRRlzN.js} +1 -1
  86. package/dist/assets/{InvoiceUploadSection-CjV8q6sM-BkASWvfN.js → InvoiceUploadSection-Cm7WlMIS-Ds7UwHT_.js} +1 -1
  87. package/dist/assets/{IssueChargeCardPage-BTloC5fY-_HD69MiA.js → IssueChargeCardPage-B7w3Xky1-CF1rLLIM.js} +1 -1
  88. package/dist/assets/{LabeledAddressValue-C8xq-j7G-D16vnyhu.js → LabeledAddressValue-B5Yv4nig-BmG4gsPH.js} +1 -1
  89. package/dist/assets/{LabeledAddressValueField-CqhBSQ8f-lPB35Jmc.js → LabeledAddressValueField-BODlYe8J-C_77UpWi.js} +1 -1
  90. package/dist/assets/{LabeledControlledCheckBoxField-D5A-8bnH-DqiGgCzm.js → LabeledControlledCheckBoxField-BBrHodlx-ajZwZw2T.js} +1 -1
  91. package/dist/assets/{LabeledCreatableSingleSelectField-CB34OT80-C0m35imT.js → LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js} +1 -1
  92. package/dist/assets/{LabeledDocumentField-MyG-6WMu-Cbf-CDaI.js → LabeledDocumentField-CIlbLPtO-DSLjsPoT.js} +1 -1
  93. package/dist/assets/{LabeledDropDownFormattedTextField-DyvjlBIK-CeaVwHLj.js → LabeledDropDownFormattedTextField-Dpt7UG-o-BPi_XfUF.js} +1 -1
  94. package/dist/assets/{LabeledText-CEbLfx4b-BTTGqwXz.js → LabeledText-D0aPaE6r-DJ33Sqqy.js} +1 -1
  95. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-CDXChSPU-Dz8I-s1u.js → LabeledUserSingleSelectWithSubtitlesField-CO-Owx5--C5GcoA_6.js} +1 -1
  96. package/dist/assets/{LabeledZeniRolesDropDownField-CpZOSybd-7yPpOapA.js → LabeledZeniRolesDropDownField-CcfvYWTB-FOsQ-M0q.js} +1 -1
  97. package/dist/assets/{LinkJETransactionPage-CF2S7mlj-BoLj0J2f.js → LinkJETransactionPage-w2poqqTD-CRc8L88u.js} +1 -1
  98. package/dist/assets/{LowBalancePopup-CI3FeJJc-CdKJER0J.js → LowBalancePopup-BpFvPcb8-CmbXf1Gb.js} +1 -1
  99. package/dist/assets/{MagicLinkACHDetailsPage-Hs-8X1gB-CIg2sh6N.js → MagicLinkACHDetailsPage-DUyr5VX8-FvxaU41w.js} +1 -1
  100. package/dist/assets/{MagicLinkDomesticWireDetailsPage-JY153fBS-Cm2_mDog.js → MagicLinkDomesticWireDetailsPage-CTA58UoF-CRGjJqP9.js} +1 -1
  101. package/dist/assets/{MagicLinkInternationalWireDetailsPage-C7H0tqh2-n8HQkRdB.js → MagicLinkInternationalWireDetailsPage-DDQqyw69-MTxSeQ4l.js} +1 -1
  102. package/dist/assets/{MagicLinkSuccessPage-DrfXx_R1-BNU78zpj.js → MagicLinkSuccessPage-CKKAWryZ-Cm8AQCr_.js} +1 -1
  103. package/dist/assets/{MagicLinkTitleSection-GAlgtNgO-BKAs3T24.js → MagicLinkTitleSection-CvW_f4xF-BDkWHabu.js} +1 -1
  104. package/dist/assets/{MailingDetailsSection-DwEajxFH-BrjelhuF.js → MailingDetailsSection-Di5KwEqu-Di8UL6YK.js} +1 -1
  105. package/dist/assets/{MeetingCalenderPopup-CF-RTU9K-BubT6ngE.js → MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js} +1 -1
  106. package/dist/assets/{Menu-DgxJQlbW-DIVRGIXR.js → Menu-BOh_KLZu-BrkD9kYL.js} +1 -1
  107. package/dist/assets/{MyBankConnectionsSettingsPage-Bkn9hqAF-DqE41rF5.js → MyBankConnectionsSettingsPage-BBQ0YN9M-BBihRuQw.js} +1 -1
  108. package/dist/assets/{MyPendingActivationChargeCardListPage-Bg1r7PJb-DnJ-MJDd.js → MyPendingActivationChargeCardListPage-DcXCxGj2-BY3uKh9u.js} +1 -1
  109. package/dist/assets/{MyProfileSettingsPage-DFqIWGcr-jQcxs-Wf.js → MyProfileSettingsPage-D-lTTFuP-D9kDcE-6.js} +1 -1
  110. package/dist/assets/{NavBarWithPicker-BJyEgvZP-C-f0-1c6.js → NavBarWithPicker-CNBOk06R-D8yiRwFQ.js} +1 -1
  111. package/dist/assets/{NavigationArrow-CUVFG2Pf-P3tdOWHt.js → NavigationArrow-B15b66TT-B9hYIhnI.js} +1 -1
  112. package/dist/assets/{NavigationDots-BDLMSply-CVhKiAdV.js → NavigationDots-5fxvl-4e-BzJdpllk.js} +1 -1
  113. package/dist/assets/{NewGlobalMerchantPage-Ck7DGlQi-CVmDfXRL.js → NewGlobalMerchantPage-BeP4W8rj-Dwyu3Pw7.js} +1 -1
  114. package/dist/assets/{NoDataChart-DMqFH96W--xyVCmNv.js → NoDataChart-edFKx0zh-DIp9-BoP.js} +1 -1
  115. package/dist/assets/{NoDataTable-B8PHBrBF-BIIbtUFT.js → NoDataTable-41nH5trW-Brapb7lv.js} +1 -1
  116. package/dist/assets/{NotFoundPage-4JmEE0vS-BkO12wXJ.js → NotFoundPage-CRVGi6Xn-BHvH8jL8.js} +1 -1
  117. package/dist/assets/{NotificationSettingsPage-D6YQunRL-Dh3lfacW.js → NotificationSettingsPage-CiVAtoGY-B9kZWOsO.js} +1 -1
  118. package/dist/assets/{NotificationsListConfig-DZBF9h2L-DipP-kuo.js → NotificationsListConfig-BjItJJe9-l0BCgaPP.js} +1 -1
  119. package/dist/assets/{NotificationsPage-PjOFwF6H-CB9uEJYk.js → NotificationsPage-DuHUL5V8-CgYzIXTj.js} +1 -1
  120. package/dist/assets/{OpExByVendorPage-BNNQdeqy-v4NH_AXr.js → OpExByVendorPage-D611nXIC-CqyYyP4C.js} +1 -1
  121. package/dist/assets/{OverlayContainerPage-C0rUb6-5-Dg1IHqst.js → OverlayContainerPage-C0rUb6-5-DPaQcYgi.js} +1 -1
  122. package/dist/assets/{PandLWithForecastPage-Cg3I1JPR-BHcMSGKl.js → PandLWithForecastPage-Cqab0euB-dzseIlDa.js} +1 -1
  123. package/dist/assets/{PaymentAccountSetupBillingAddressSection-BaNMRbqw-CIIlY3kM.js → PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js} +1 -1
  124. package/dist/assets/{PeoplePage-BRnDI6mc-CLBN4-_q.js → PeoplePage-MCCZAx4z-BnV0pX_P.js} +1 -1
  125. package/dist/assets/{PortfolioAllocationFormPage-BG5sY-R6-BBFBmc8X.js → PortfolioAllocationFormPage-Coa0Y4wN-CVL7-3BP.js} +1 -1
  126. package/dist/assets/{PortfolioDetails-g9uKkfc0-2ntvLazE.js → PortfolioDetails-C9a0p99e-d06R_ouh.js} +1 -1
  127. package/dist/assets/{ProductsCarousel-DZmAO-Ad-BvStEG-O.js → ProductsCarousel-B0fHKTa_-Bne7N-_V.js} +1 -1
  128. package/dist/assets/{PromoBaseCards-B9AnaalQ-hSs7-TQL.js → PromoBaseCards-BuCQJuXH-BcjVOmSJ.js} +1 -1
  129. package/dist/assets/{QBOConnectionDialog-Bnhkqpjg-DkGgqNtn.js → QBOConnectionDialog-D-vB9dbo--0kkpUah.js} +1 -1
  130. package/dist/assets/{QBOSetupSection-CHXmbhAv-C0u3acrS.js → QBOSetupSection-CfficE5p-nLwRVoqN.js} +1 -1
  131. package/dist/assets/{ReimbursementApprovalRuleDetailPage-B2zXkJz--CABHH5fp.js → ReimbursementApprovalRuleDetailPage-Cg_pVsAh-Baq7EYkc.js} +1 -1
  132. package/dist/assets/{ReimbursementApprovalRulesPage-HuTMMWVv-E3dBhOaI.js → ReimbursementApprovalRulesPage-Dg1b0lJP-YhAdGh62.js} +1 -1
  133. package/dist/assets/{ReimbursementDetailPage-BLvwZrVh-DyidHFPC.js → ReimbursementDetailPage-CE_jx7cM-DEw3OdDA.js} +1 -1
  134. package/dist/assets/{ReimbursementPromoPage-D_mQJpBI-Dp4ArZsT.js → ReimbursementPromoPage-MQpz5nNE-CLg8Hqif.js} +1 -1
  135. package/dist/assets/{ReimbursementSetUpPage-FkxlkcbN-DldfTkkM.js → ReimbursementSetUpPage-BRjWHns_-BSdXzytm.js} +1 -1
  136. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-Oqy1_VEa-BpS2SfWm.js → ReimbursementsBulkReviewDrawerPage-wPNRkXt8-DoNrAJRB.js} +1 -1
  137. package/dist/assets/{ReloadCard-DXOUba_M-CHzipN0D.js → ReloadCard-D5woGDxx-DS9HJ3wy.js} +1 -1
  138. package/dist/assets/{ReportTableViewSelector-CHN0DsMB-DHP2dHrr.js → ReportTableViewSelector-Bc5xUtnG-pW3txVQ2.js} +1 -1
  139. package/dist/assets/{ReportsPage-FPxKx4-a-CZcO3AqP.js → ReportsPage-J8DrZz78-Bf6sj4--.js} +1 -1
  140. package/dist/assets/{RevenueChart-L0b_usU7-Cf8KBYNj.js → RevenueChart-CS0JmijO-BqFQGtoh.js} +1 -1
  141. package/dist/assets/{ReviewDetailsPage-BNpQBWoS-DCIttZXD.js → ReviewDetailsPage-C7RbpKwU-C9iDaLL8.js} +1 -1
  142. package/dist/assets/{ReviewOverlay-DDNAl3b3-DNGVMro9.js → ReviewOverlay-BwgzcM9d-CSY6hmMy.js} +1 -1
  143. package/dist/assets/{RoleWithToolTip-B-ODIDAN-8uYeRtpZ.js → RoleWithToolTip-DkeT6zjW-DmUDvRC_.js} +1 -1
  144. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DqZ58bn4-KjYX5XLP.js → ScheduleDetailsFixedAssetsPage-BzZkVg7T-c2tjnpKQ.js} +1 -1
  145. package/dist/assets/{ScheduleDetailsPage-BASxSK8V-BPASbuj9.js → ScheduleDetailsPage-DiXwmlk8-t0I7MASB.js} +1 -1
  146. package/dist/assets/{ScheduleSequenceTable-6xfi8GG9-DmNanpes.js → ScheduleSequenceTable-CSxFNhoR-D9UFT3Zm.js} +1 -1
  147. package/dist/assets/{ScreenRoutes-BiNVsQKa.js → ScreenRoutes-xLzXCTox.js} +1 -1
  148. package/dist/assets/{SetUpAccountSection-pi1sH7b5-Cq5TVamg.js → SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js} +1 -1
  149. package/dist/assets/{SetUpDefaultSection-BpL2WnED-COlpwQhL.js → SetUpDefaultSection-D4FafmO5-CcuY4gpp.js} +1 -1
  150. package/dist/assets/{SignIn-Bijj9JoA-Cew9W98o.js → SignIn-CAmRcuqx-CXf8JU8h.js} +1 -1
  151. package/dist/assets/{SignInScreen-BJO_D-wG.js → SignInScreen-CEfXit7t.js} +1 -1
  152. package/dist/assets/{SpendManagementListViewPage-D5QPI34r-C-QrSt_z.js → SpendManagementListViewPage-DdpJprAd-BHEK7wRP.js} +3 -3
  153. package/dist/assets/{SpendManagementPerTabPage-BtYyuusT-Do7z39Lr.js → SpendManagementPerTabPage-D2Ri2q6S-BZOgnmqs.js} +1 -1
  154. package/dist/assets/{SpendManagementSection-D_HyfwAe-SNH64OwE.js → SpendManagementSection-CisJALAC-zKC9aL_a.js} +1 -1
  155. package/dist/assets/{SpendMgmtSetupAccountSection-B4wik5Ee-Dl8PxI-i.js → SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js} +1 -1
  156. package/dist/assets/{StatementItem-BNQblVLa-DfVA7ygW.js → StatementItem-BOq_DDMZ-VgE7gIr3.js} +1 -1
  157. package/dist/assets/{StatementsPage-_-cg9582-BHbhelbD.js → StatementsPage-C9WOCLSj-lgfYmMKh.js} +1 -1
  158. package/dist/assets/{StatusSwitcher-D-0rNVEI-0aefdUDA.js → StatusSwitcher-CofdCR_K-DYsfjilX.js} +1 -1
  159. package/dist/assets/{SubTabSwitcher-D_djwADF-D-PRIZuk.js → SubTabSwitcher-BPVG5BHS-C6Ng45Yx.js} +1 -1
  160. package/dist/assets/{SummaryCard-0WkhoBZC-D0OeJhk2.js → SummaryCard-D-me4TrL-C69v2luu.js} +1 -1
  161. package/dist/assets/{TaskManagementPage-Dwna66e0-B61LD4aR.js → TaskManagementPage-BSmG6YR2-BRBZRYl9.js} +1 -1
  162. package/dist/assets/{TimeRangeSwitcher-C_XduWs4-CbvmuLlw.js → TimeRangeSwitcher-BK7gGqaa-li6QV9p5.js} +1 -1
  163. package/dist/assets/{TimeframeSwitcher-rcx5z-sh-BEuYgoAf.js → TimeframeSwitcher-SD5_8TCp-DcEUsFuS.js} +1 -1
  164. package/dist/assets/{TimeframeSwitcherWithToggle-Bvkq6Qa--BjOAxPwu.js → TimeframeSwitcherWithToggle-BwvVsB_p-CoKIqOrx.js} +1 -1
  165. package/dist/assets/{TopExCard-J5ItU1Wy-Cu15poFM.js → TopExCard-CDgcQKGp-G2-ryp7z.js} +1 -1
  166. package/dist/assets/{TopExDetailPage-Lqg8jkw2-DtS18JXg.js → TopExDetailPage-CXiEe14r-DrI7SLfC.js} +1 -1
  167. package/dist/assets/{TransactionDetailPage-jXKnnUTd-B5jk24Y7.js → TransactionDetailPage-IJyZF-Z_-ssTdABCq.js} +1 -1
  168. package/dist/assets/{TransactionList-BVJHbP4d-Ch-jGNeO.js → TransactionList-C34ivmk5-BL7wpE6F.js} +1 -1
  169. package/dist/assets/{TransactionListBig-CUi7KfHo-C4bVkVsF.js → TransactionListBig-qruiU0xy-4hBLzp6P.js} +1 -1
  170. package/dist/assets/{TransactionListPage-BFYQMXP7-C0S4ibvh.js → TransactionListPage-C31U97xd-B7MDVBJ8.js} +1 -1
  171. package/dist/assets/{TransactionVendorDetailPage-Cc45iBaC-CYlKau2p.js → TransactionVendorDetailPage-DZsvH-GM-CHoVBuA8.js} +1 -1
  172. package/dist/assets/{TransferDrawerPage-D0eKdLeA-iajVz-hc.js → TransferDrawerPage-DC5q2Zpv-Bbx0ZiKK.js} +1 -1
  173. package/dist/assets/{TreasuryOverviewPage-C-tdus29-TA5FDvFH.js → TreasuryOverviewPage-DSBqawrH--EJITXP0.js} +1 -1
  174. package/dist/assets/{TreasuryPromoPage-Cohb5lP7-CR5t6hp9.js → TreasuryPromoPage-D6WSBxgD-BYq_YoGm.js} +1 -1
  175. package/dist/assets/{TreasurySetupPage-DS2_m-SO-C9dOpRDI.js → TreasurySetupPage-BgSq4D0a-BeLJ_DJT.js} +1 -1
  176. package/dist/assets/{TreasuryStatementsPage-DooqXGAQ-Nys4g6CT.js → TreasuryStatementsPage-Dj9RAujO-BX1C5lYD.js} +1 -1
  177. package/dist/assets/{TreasuryTaxLetterPage-hpQxSwqV-C6md3T0o.js → TreasuryTaxLetterPage-Dw6tL_j9-BVOoGBCD.js} +1 -1
  178. package/dist/assets/{TreasuryTransferOrReviewPage-LCmwI3GX-DIM186Ba.js → TreasuryTransferOrReviewPage-cBHznYnK-1UcbcZaf.js} +1 -1
  179. package/dist/assets/{TrendChart-N85Ktah2-DbfJUW0C.js → TrendChart-dARoUu-T-CjrTnbAe.js} +1 -1
  180. package/dist/assets/{TrendWithTransactions-Cm8gWBLF-D6KvkDCe.js → TrendWithTransactions-BOGQK2Zt-itTZBsuV.js} +1 -1
  181. package/dist/assets/{UncategorizedAccountsMappingPage-DF2hKM1m-81hpHrc8.js → UncategorizedAccountsMappingPage-Ci4VHOLB-CZTpXCGM.js} +1 -1
  182. package/dist/assets/{UnitIntegrationPage-DXYXOU32-D4QmLDZr.js → UnitIntegrationPage-DSMTzyKA-DnkdzVNG.js} +1 -1
  183. package/dist/assets/{UploadAdditionalDocumentOverlay-ed-RjMyM-CfzPGhhV.js → UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js} +1 -1
  184. package/dist/assets/{Vendor2FAPopup-CNiCYT5L-CWO_4B0w.js → Vendor2FAPopup-Be7OBE4e-Cos9XGLx.js} +1 -1
  185. package/dist/assets/{VendorACHDetailsPage-DfERI3o4-BsWmPjPQ.js → VendorACHDetailsPage-LvWgxsF7-BpMJ6WbJ.js} +1 -1
  186. package/dist/assets/{VendorDetailPage-BYEJTlBT-F41D5bVR.js → VendorDetailPage-C-qpa1GC-C0r4HDge.js} +1 -1
  187. package/dist/assets/{VendorDomesticWireDetailsPage-Cvje85xW-CoKfiQe4.js → VendorDomesticWireDetailsPage-Ckoq2I8V-BwkAhyAi.js} +1 -1
  188. package/dist/assets/{VendorFiling1099EditablePage-Brjs_rAW-xrscdaKd.js → VendorFiling1099EditablePage-WZMwLILQ-BqoTTIiC.js} +1 -1
  189. package/dist/assets/{VendorFirstReviewPage-CjmWNXBj-gmr0s-A9.js → VendorFirstReviewPage-DNhp59d9-D_f9l4B9.js} +1 -1
  190. package/dist/assets/{VendorInternationalWireDetailsPage-CRPZSizn-Cs0CkU1Q.js → VendorInternationalWireDetailsPage-DuP916gU-COYahX1d.js} +1 -1
  191. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-DgOKhTmI-CrPwfH_9.js → VendorInternationalWireSwiftDetailsPage-BCIC6mrJ-BI-zVOHZ.js} +1 -1
  192. package/dist/assets/{VendorsAccountsSection-CdrVkoqQ-DQSVBIpk.js → VendorsAccountsSection-C4q6FPlB-C6cNo2_u.js} +1 -1
  193. package/dist/assets/{WarningsDrawerPage-vVdVeMGb-CxkitKe7.js → WarningsDrawerPage-C162biV8-pPVOEtpH.js} +1 -1
  194. package/dist/assets/{ZeniAccountDetailPage-DzA2-ZfY-wtm1nTKn.js → ZeniAccountDetailPage-C3NnXuFp-CXwXsDQ1.js} +1 -1
  195. package/dist/assets/{ZeniAccountListViewPage-BjOzn-pL-6JPmGfI4.js → ZeniAccountListViewPage-Cn7rYnlu-DTOPnL32.js} +1 -1
  196. package/dist/assets/{ZeniAccountNavBarPieces-C4QCZKVg-D6pvbVi1.js → ZeniAccountNavBarPieces-DHYLxQKr-DoTCX7_F.js} +1 -1
  197. package/dist/assets/{ZeniAccountPromoPage-CojH6h6Y-CD2AJLZX.js → ZeniAccountPromoPage-BGyyQP4l-B98KmCaD.js} +1 -1
  198. package/dist/assets/{ZeniAccountSetupPage-BQ4BSW6F-BBPr3Uxy.js → ZeniAccountSetupPage-CIh0isMw-lFqJMWg0.js} +1 -1
  199. package/dist/assets/{ZeniCopyright-DZ-h_Rou-a8ozaQ8I.js → ZeniCopyright-B83zWEf0-19q3_mPy.js} +1 -1
  200. package/dist/assets/{ZeniTransferAmountSlider-CDH-_8b0-DSbwC4eG.js → ZeniTransferAmountSlider-CPg3o4xG-BlMvJPot.js} +1 -1
  201. package/dist/assets/{analyticsHelper-Bfbjyikr.js → analyticsHelper-CD5PHV67.js} +1 -1
  202. package/dist/assets/{analyticsHelper-DqZXz5oK-BxmRVxaA.js → analyticsHelper-DlYWxxhD-DdeYfQh2.js} +1 -1
  203. package/dist/assets/{chartTypes-BrP58mNO-B-70_tkk.js → chartTypes-DueLK3Wl-B3lGAHMU.js} +1 -1
  204. package/dist/assets/{commonDimensions-C9IpJAVN-CUmNJDhl.js → commonDimensions-D4uH020E-szItJUN9.js} +1 -1
  205. package/dist/assets/{detailCommon-nFSW0gvc-DlaVwlOn.js → detailCommon-D5qKBZdS-CPasfcVD.js} +1 -1
  206. package/dist/assets/{downloadPdf-CYD5QftD-D8rZSmdk.js → downloadPdf-s4pLtuS_-CF3EQD3j.js} +1 -1
  207. package/dist/assets/{index-CvH632ro.js → index-DoFw58Mw.js} +106 -106
  208. package/dist/assets/{mapLoadingInProgressToTreeNode-Dj9DvcOS-DbJ7Bl88.js → mapLoadingInProgressToTreeNode-M0QN8LkC-3yQrrz5g.js} +1 -1
  209. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-Bw9kw0FP-Cp0PGUTm.js → mapSectionWithAcOnlyToTreeNode-CrtVdHui-CnnfThO_.js} +1 -1
  210. package/dist/assets/{mapSpacerToTreeNode-CJfnsOmt-Cn-_J65X.js → mapSpacerToTreeNode-yPPIJHBw-D3Gjllyb.js} +1 -1
  211. package/dist/assets/{mapTimeframeBalancesToTreeNode-BJdFcHRm-B1px_eKw.js → mapTimeframeBalancesToTreeNode-px916zpo-rIOc1Hnu.js} +1 -1
  212. package/dist/assets/{play-icon-C1_v_oqQ-CDjV5GaD.js → play-icon-Bih37F_s-C73Mu05H.js} +1 -1
  213. package/dist/assets/{toCOABalancesWithID-CYXJAMXX-B3cjnX0k.js → toCOABalancesWithID-CAhfOfUa-CUvT0aen.js} +1 -1
  214. package/dist/assets/{toChartData-oAAd1YDY-DlgK3yY0.js → toChartData-BicnbT0F-BAKhPkjP.js} +1 -1
  215. package/dist/assets/{treasuryColorHelper-BClHzQle-D6h04w-g.js → treasuryColorHelper-A_YlwvaQ-YLNVEYZe.js} +1 -1
  216. package/dist/assets/{uploadAttachment-Bi2HYlA8-BLU3BxOX.js → uploadAttachment-DVoWdoWD-RtUqrYnb.js} +1 -1
  217. package/dist/assets/{uploadReceipts-Buvz7DfG-CBvWSxWy.js → uploadReceipts-Buvz7DfG-XWftDYl6.js} +1 -1
  218. package/dist/index.html +1 -1
  219. package/package.json +4 -4
  220. package/dist/assets/AppDrawerContent-BjVgRQD8-BmKoXH6f.js +0 -116
  221. package/dist/assets/CustomerOnboardingContainerPage-DY7-75zX-BNg2Axnl.js +0 -1
@@ -1,4 +1,4 @@
1
- import{X as f,M as V,j as r,u as F,y as ce,d3 as me,a5 as pe,_ as ue,l as xe,fm as he,aW as ge,o as t,c0 as we,k as Y,c1 as fe,Z as ye,C as x,bP as $e,bt as Ce,K,Y as W,i8 as be,v as Se,p,Q as C,g as $,av as je,aa as ze}from"./index-CvH632ro.js";import{b,n as a,j as Te}from"./vendor-CnQcJ2Lu.js";import{x as ve}from"./MeetingCalenderPopup-CF-RTU9K-BubT6ngE.js";import{f as Pe}from"./NavigationDots-BDLMSply-CVhKiAdV.js";import{J as D,A as E}from"./PromoBaseCards-B9AnaalQ-hSs7-TQL.js";import{M as L}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const m={midContainerMarginBottom:new x(p[5],p[7]),containerPaddingTopBottom:new x(p[0],p[0]),containerPaddingLeftRight:new x(p[3],p[8]),uspContainerMarginX:new x(p[6],p[0]),buttonTrayGap:new x(12,p[4]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12])},S={promoBadgeText:new C("standardRegular","largeRegular"),promoBadgeTextBold:new C("standardBold","largeBold"),cardsContent:new C("extraSmallRegular","smallRegular"),contactAdmin:new C("extraSmallRegular","smallRegular"),uspText:new C("smallRegular","standardRegular"),uspBoldText:new C("smallMedium","standardMedium")},{spendManagement:{chargeCard:{chargeCardsPromo:s}}}=V.getLocalizedStrings(),wr=({meetingUrl:e,companyLegalName:n,chargeCardSetupView:d,showEnableCardButton:i,controllerEmails:o,isCardsOnlyTenantOrCreditCardFeatureEnabled:h,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:j,isChargeCardSetupEnabled:g,admins:z,cashbackRate:M,cardPromoType:y="credit",onSetupButtonClick:c,onBackClick:l,onClickMenuIcon:ie,onSetupChargeCardSuccess:N})=>{const ae=F(),O=ce(),A=f(),H=me().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:U,companyLocaleInfo:I}=d,G=pe(_?.fetchStatus.fetchState),[oe,J]=b.useState(!1),ne=()=>{H.trackCardsPromoPageClicked("schedule demo"),H.trackCardsScheduleDemoClick(o,{isCreditCardOffered:h,isDebitCardOffered:u,isDebitCardEnabled:j,isCreditCardEnabled:g},"Cards Promo"),J(!0)},se=U!=null&&I!=null?ue("0,0",{amount:U.chargeCardsCreditAccountLimit,currencyCode:I.currencyCode,currencySymbol:I.currencySymbol}):void 0;b.useEffect(()=>{G==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&N()},[G,N,_?.fetchStatus]);const de=xe.hasChargeCardAdminLevelAccess(O.loggedInUserRoleMap),le=he(O);return r.jsxs(Ie,{children:[r.jsx(ge,{title:s.title[y],backgroundColor:ae.colors.grey4,onBackClick:l,showBackButton:!0,showMenuIcon:A==="medium-compact"||A==="small",onClickMenuIcon:ie,style:{zIndex:9},source:"ChargeCardPromoPage"}),oe===!0?r.jsx(ve,{onCancelClick:()=>{J(!1)},meetingUrl:e}):null,r.jsx(Re,{windowSize:A,children:de===!0?r.jsxs(r.Fragment,{children:[r.jsx(Le,{creditAmount:se,cardPromoType:y}),r.jsx(Q,{forAdmin:!0,cardPromoType:y,cashbackRate:M}),r.jsx(Be,{showEnableCardButton:i,chargeCardSetupView:d,handleSecondaryBtnClick:ne,onSetupButtonClick:()=>c(y)})]}):r.jsx(Me,{companyLegalName:n,cards:[],admins:z,hasZeniFinopsRoles:le,cardPromoType:y})})]})},ke=({admins:e})=>{const n=e.flatMap(i=>i.user?.firstName+" "+i.user?.lastName).join(", "),d=f();return r.jsxs(Ye,{windowSize:d,children:[r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.pre}),r.jsx(Ce,{title:n,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(R,{underline:!0,windowSize:d,children:s.noCardAssigned.tooltip})}),r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.post})]})},Be=({showEnableCardButton:e,chargeCardSetupView:n,handleSecondaryBtnClick:d,onSetupButtonClick:i})=>{const o=f();return r.jsxs(He,{windowSize:o,children:[r.jsxs(Ue,{windowSize:o,children:[r.jsx(K,{variant:"secondary",label:s.scheduleDemoButton,onClick:d,"data-testid":W("schedule-demo-button")}),r.jsx(K,{variant:"primary",label:e?s.enableCardsButton:s.setupCardsButton,loading:n.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress",onClick:i,style:{width:"146px"},"data-testid":W("enable-card-button")})]}),r.jsx(be,{textStyle:Se.smallRegular.cssObject,buttonTermLabel:e?s.terms.alternateTerm1:s.terms.terms1,showEndIcon:!0})]})},Le=({cardPromoType:e,creditAmount:n})=>{const d=f(),i=e==="debit_and_credit"?s.promoTextDebitCreditCard:e==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:d==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:i}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(q,{children:i}),r.jsx(ee,{children:s.promoSubText})]})}),r.jsx(Ee,{cardPromoType:e,hideBadge:n==null||e==="debit",windowSize:d,children:r.jsxs(Fe,{windowSize:d,children:[s.promoBadgeText,r.jsx(Ne,{children:n}),s.creditLimit]})})]})},Me=({companyLegalName:e,cards:n,admins:d,hasZeniFinopsRoles:i,cardPromoType:o="credit"})=>{const h=f(),u=o==="debit_and_credit"?s.promoTextDebitCreditCard:o==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[h==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:u}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(q,{children:u}),r.jsx(ee,{children:s.promoSubText})]}),n.length===0?r.jsx(Ve,{windowSize:h}):r.jsx(Ae,{cards:n,companyLegalName:e}),r.jsx(Q,{forAdmin:!1,cardPromoType:o}),i?null:r.jsx(ke,{admins:d})]})},Ae=({cards:e,companyLegalName:n})=>{const d=F(),i=f();let o="",h;if(e.length===1){h=e[0].cardCreatedByUser.photo;const u=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;o=s.cardAssigned.singleCreditCard.replace("__issuing-user__",u).replace("__company-name__",n)}else o=s.cardAssigned.multipleCreditCards.replace("__company-name__",n);return r.jsxs(qe,{children:[h!=null?r.jsx(De,{width:t.sp5,height:t.sp5,style:{paddingTop:i==="small"?t.sp1:t.sp0},src:h.href,alt:V.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:u})=>{u.onerror=null,u.src=$e},loading:"lazy"}):null,r.jsx(Qe,{windowSize:i,mode:d.mode,children:r.jsx(er,{windowSize:i,children:o})})]})},X=({windowSize:e,cardPromoType:n})=>{let d=s.businessText;return n==="debit"&&(d=`${d} ${s.debit}`),r.jsx(r.Fragment,{children:n==="debit_and_credit"?r.jsx(_e,{}):r.jsxs(Je,{windowSize:e,children:[r.jsx(D,{cardPromoType:n,cardText:d,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(E,{cardPromoType:n,cardText:d,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},Q=({forAdmin:e,cardPromoType:n,cashbackRate:d})=>{const i=f(),o=e?s.admin:s.nonAdmin;return r.jsxs(Oe,{windowSize:i,children:[i==="small"?r.jsx(X,{windowSize:i,cardPromoType:n}):null,r.jsxs(Ge,{windowSize:i,children:[r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Xe,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item1.pre}),r.jsx(P,{windowSize:i,children:e&&d!=null?o.item1.bold.replace("__cashback__",(d*100).toFixed(2)):o.item1.bold}),r.jsx(w,{windowSize:i,children:o.item1.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ke,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item2.pre}),r.jsx(P,{windowSize:i,children:o.item2.bold}),r.jsx(w,{windowSize:i,children:o.item2.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ze,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item3.pre}),r.jsx(P,{windowSize:i,children:o.item3.bold}),r.jsx(w,{windowSize:i,children:o.item3.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(We,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item4.pre}),r.jsx(P,{windowSize:i,children:o.item4.bold}),r.jsx(w,{windowSize:i,children:o.item4.post})]})]})]}),i==="small"?null:r.jsx(X,{windowSize:i,cardPromoType:n})]})};let T;const _e=()=>{const e=f(),n=F(),[d,i]=b.useState(0),[o,h]=b.useState(!1),u=s.businessText,j=`${u} ${s.debit}`,g=[{id:1,cardType:"debit",cardText:j},{id:2,cardType:"debit",cardText:j},{id:3,cardType:"credit",cardText:u},{id:4,cardType:"credit",cardText:u}];b.useEffect(()=>(o||(T=setInterval(()=>{i(c=>{const l=c+1;return l===g.length?(h(!0),0):l})},2e3)),()=>clearInterval(T)),[o,g.length]),b.useEffect(()=>{o&&T!=null&&clearInterval(T)},[o]);const z=(c,l)=>{switch((c-d+g.length)%g.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}},M=c=>{const l=z(c,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},y=c=>{o||h(!0),i(c)};return r.jsxs(rr,{windowSize:e,children:[r.jsx(tr,{windowSize:e,children:g.map((c,l)=>r.jsxs(ir,{children:[r.jsx(Z,{isReflection:!1,style:{...z(l,!1)},onClick:()=>y(l),children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}}):r.jsx(E,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}})},c.id),r.jsx(Z,{isReflection:!0,style:{...M(l)},children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.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(E,{cardPromoType:c.cardType,cardText:c.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-${c.id}`)]},c.id))}),o&&r.jsx(Pe,{numberOfDots:g.length,activeIndex:d,handleClick:i,promoColor:n.colors.primary,promoColorHover:n.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:m.navigationBottom.valuePx(e),left:m.navigationLeft.valuePx(e),zIndex:7}})]})},Ie=a.div`
1
+ import{X as f,M as V,j as r,u as F,y as ce,d3 as me,a5 as pe,_ as ue,l as xe,fm as he,aW as ge,o as t,c0 as we,k as Y,c1 as fe,Z as ye,C as x,bP as $e,bt as Ce,K,Y as W,i8 as be,v as Se,p,Q as C,g as $,av as je,aa as ze}from"./index-DoFw58Mw.js";import{b,n as a,j as Te}from"./vendor-CnQcJ2Lu.js";import{x as ve}from"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import{f as Pe}from"./NavigationDots-5fxvl-4e-BzJdpllk.js";import{J as D,A as E}from"./PromoBaseCards-BuCQJuXH-BcjVOmSJ.js";import{M as L}from"./usp-line-BBd1wKwW-CgKq8-Xn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const m={midContainerMarginBottom:new x(p[5],p[7]),containerPaddingTopBottom:new x(p[0],p[0]),containerPaddingLeftRight:new x(p[3],p[8]),uspContainerMarginX:new x(p[6],p[0]),buttonTrayGap:new x(12,p[4]),midContainerGap:new x(p[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(p[6],43),navigationBottom:new x(p[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,p[4]),carouselMarginLeft:new x(120,p[12])},S={promoBadgeText:new C("standardRegular","largeRegular"),promoBadgeTextBold:new C("standardBold","largeBold"),cardsContent:new C("extraSmallRegular","smallRegular"),contactAdmin:new C("extraSmallRegular","smallRegular"),uspText:new C("smallRegular","standardRegular"),uspBoldText:new C("smallMedium","standardMedium")},{spendManagement:{chargeCard:{chargeCardsPromo:s}}}=V.getLocalizedStrings(),wr=({meetingUrl:e,companyLegalName:n,chargeCardSetupView:d,showEnableCardButton:i,controllerEmails:o,isCardsOnlyTenantOrCreditCardFeatureEnabled:h,isDebitCardFeatureEnabled:u,isDebitCardSetupEnabled:j,isChargeCardSetupEnabled:g,admins:z,cashbackRate:M,cardPromoType:y="credit",onSetupButtonClick:c,onBackClick:l,onClickMenuIcon:ie,onSetupChargeCardSuccess:N})=>{const ae=F(),O=ce(),A=f(),H=me().analytics,{chargeCardTermsDetails:_,companyChargeCardInfo:U,companyLocaleInfo:I}=d,G=pe(_?.fetchStatus.fetchState),[oe,J]=b.useState(!1),ne=()=>{H.trackCardsPromoPageClicked("schedule demo"),H.trackCardsScheduleDemoClick(o,{isCreditCardOffered:h,isDebitCardOffered:u,isDebitCardEnabled:j,isCreditCardEnabled:g},"Cards Promo"),J(!0)},se=U!=null&&I!=null?ue("0,0",{amount:U.chargeCardsCreditAccountLimit,currencyCode:I.currencyCode,currencySymbol:I.currencySymbol}):void 0;b.useEffect(()=>{G==="In-Progress"&&_?.fetchStatus.fetchState==="Completed"&&N()},[G,N,_?.fetchStatus]);const de=xe.hasChargeCardAdminLevelAccess(O.loggedInUserRoleMap),le=he(O);return r.jsxs(Ie,{children:[r.jsx(ge,{title:s.title[y],backgroundColor:ae.colors.grey4,onBackClick:l,showBackButton:!0,showMenuIcon:A==="medium-compact"||A==="small",onClickMenuIcon:ie,style:{zIndex:9},source:"ChargeCardPromoPage"}),oe===!0?r.jsx(ve,{onCancelClick:()=>{J(!1)},meetingUrl:e}):null,r.jsx(Re,{windowSize:A,children:de===!0?r.jsxs(r.Fragment,{children:[r.jsx(Le,{creditAmount:se,cardPromoType:y}),r.jsx(Q,{forAdmin:!0,cardPromoType:y,cashbackRate:M}),r.jsx(Be,{showEnableCardButton:i,chargeCardSetupView:d,handleSecondaryBtnClick:ne,onSetupButtonClick:()=>c(y)})]}):r.jsx(Me,{companyLegalName:n,cards:[],admins:z,hasZeniFinopsRoles:le,cardPromoType:y})})]})},ke=({admins:e})=>{const n=e.flatMap(i=>i.user?.firstName+" "+i.user?.lastName).join(", "),d=f();return r.jsxs(Ye,{windowSize:d,children:[r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.pre}),r.jsx(Ce,{title:n,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(R,{underline:!0,windowSize:d,children:s.noCardAssigned.tooltip})}),r.jsx(R,{underline:!1,windowSize:d,children:s.noCardAssigned.post})]})},Be=({showEnableCardButton:e,chargeCardSetupView:n,handleSecondaryBtnClick:d,onSetupButtonClick:i})=>{const o=f();return r.jsxs(He,{windowSize:o,children:[r.jsxs(Ue,{windowSize:o,children:[r.jsx(K,{variant:"secondary",label:s.scheduleDemoButton,onClick:d,"data-testid":W("schedule-demo-button")}),r.jsx(K,{variant:"primary",label:e?s.enableCardsButton:s.setupCardsButton,loading:n.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress",onClick:i,style:{width:"146px"},"data-testid":W("enable-card-button")})]}),r.jsx(be,{textStyle:Se.smallRegular.cssObject,buttonTermLabel:e?s.terms.alternateTerm1:s.terms.terms1,showEndIcon:!0})]})},Le=({cardPromoType:e,creditAmount:n})=>{const d=f(),i=e==="debit_and_credit"?s.promoTextDebitCreditCard:e==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:d==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:i}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(q,{children:i}),r.jsx(ee,{children:s.promoSubText})]})}),r.jsx(Ee,{cardPromoType:e,hideBadge:n==null||e==="debit",windowSize:d,children:r.jsxs(Fe,{windowSize:d,children:[s.promoBadgeText,r.jsx(Ne,{children:n}),s.creditLimit]})})]})},Me=({companyLegalName:e,cards:n,admins:d,hasZeniFinopsRoles:i,cardPromoType:o="credit"})=>{const h=f(),u=o==="debit_and_credit"?s.promoTextDebitCreditCard:o==="debit"?s.promoTextDebitCard:s.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[h==="small"?r.jsxs(r.Fragment,{children:[r.jsx(re,{children:u}),r.jsx(te,{children:s.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(q,{children:u}),r.jsx(ee,{children:s.promoSubText})]}),n.length===0?r.jsx(Ve,{windowSize:h}):r.jsx(Ae,{cards:n,companyLegalName:e}),r.jsx(Q,{forAdmin:!1,cardPromoType:o}),i?null:r.jsx(ke,{admins:d})]})},Ae=({cards:e,companyLegalName:n})=>{const d=F(),i=f();let o="",h;if(e.length===1){h=e[0].cardCreatedByUser.photo;const u=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;o=s.cardAssigned.singleCreditCard.replace("__issuing-user__",u).replace("__company-name__",n)}else o=s.cardAssigned.multipleCreditCards.replace("__company-name__",n);return r.jsxs(qe,{children:[h!=null?r.jsx(De,{width:t.sp5,height:t.sp5,style:{paddingTop:i==="small"?t.sp1:t.sp0},src:h.href,alt:V.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:u})=>{u.onerror=null,u.src=$e},loading:"lazy"}):null,r.jsx(Qe,{windowSize:i,mode:d.mode,children:r.jsx(er,{windowSize:i,children:o})})]})},X=({windowSize:e,cardPromoType:n})=>{let d=s.businessText;return n==="debit"&&(d=`${d} ${s.debit}`),r.jsx(r.Fragment,{children:n==="debit_and_credit"?r.jsx(_e,{}):r.jsxs(Je,{windowSize:e,children:[r.jsx(D,{cardPromoType:n,cardText:d,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(E,{cardPromoType:n,cardText:d,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},Q=({forAdmin:e,cardPromoType:n,cashbackRate:d})=>{const i=f(),o=e?s.admin:s.nonAdmin;return r.jsxs(Oe,{windowSize:i,children:[i==="small"?r.jsx(X,{windowSize:i,cardPromoType:n}):null,r.jsxs(Ge,{windowSize:i,children:[r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Xe,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item1.pre}),r.jsx(P,{windowSize:i,children:e&&d!=null?o.item1.bold.replace("__cashback__",(d*100).toFixed(2)):o.item1.bold}),r.jsx(w,{windowSize:i,children:o.item1.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ke,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item2.pre}),r.jsx(P,{windowSize:i,children:o.item2.bold}),r.jsx(w,{windowSize:i,children:o.item2.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(Ze,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item3.pre}),r.jsx(P,{windowSize:i,children:o.item3.bold}),r.jsx(w,{windowSize:i,children:o.item3.post})]})]}),r.jsxs(v,{windowSize:i,children:[r.jsx(k,{children:r.jsx(We,{})}),r.jsxs(B,{children:[r.jsx(w,{windowSize:i,children:o.item4.pre}),r.jsx(P,{windowSize:i,children:o.item4.bold}),r.jsx(w,{windowSize:i,children:o.item4.post})]})]})]}),i==="small"?null:r.jsx(X,{windowSize:i,cardPromoType:n})]})};let T;const _e=()=>{const e=f(),n=F(),[d,i]=b.useState(0),[o,h]=b.useState(!1),u=s.businessText,j=`${u} ${s.debit}`,g=[{id:1,cardType:"debit",cardText:j},{id:2,cardType:"debit",cardText:j},{id:3,cardType:"credit",cardText:u},{id:4,cardType:"credit",cardText:u}];b.useEffect(()=>(o||(T=setInterval(()=>{i(c=>{const l=c+1;return l===g.length?(h(!0),0):l})},2e3)),()=>clearInterval(T)),[o,g.length]),b.useEffect(()=>{o&&T!=null&&clearInterval(T)},[o]);const z=(c,l)=>{switch((c-d+g.length)%g.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}},M=c=>{const l=z(c,!0);return{...l,transform:`${l?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},y=c=>{o||h(!0),i(c)};return r.jsxs(rr,{windowSize:e,children:[r.jsx(tr,{windowSize:e,children:g.map((c,l)=>r.jsxs(ir,{children:[r.jsx(Z,{isReflection:!1,style:{...z(l,!1)},onClick:()=>y(l),children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}}):r.jsx(E,{cardPromoType:c.cardType,cardText:c.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:n.colors.grey2,...n.mode==="light"&&{borderBottom:"none"}}})},c.id),r.jsx(Z,{isReflection:!0,style:{...M(l)},children:l===0||l===2?r.jsx(D,{cardPromoType:c.cardType,cardText:c.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(E,{cardPromoType:c.cardType,cardText:c.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-${c.id}`)]},c.id))}),o&&r.jsx(Pe,{numberOfDots:g.length,activeIndex:d,handleClick:i,promoColor:n.colors.primary,promoColorHover:n.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:m.navigationBottom.valuePx(e),left:m.navigationLeft.valuePx(e),zIndex:7}})]})},Ie=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as Ve,X as Ie,d3 as De,a5 as N,a as Oe,c3 as Be,M as Ue,ab as q,j as t,cI as _e,g as $e,C as r,aW as ze,e as Re,F as We,c$ as Le,o as B,v as Ne,aQ as qe,a7 as He,p as c,s as Me}from"./index-CvH632ro.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{F as Ge}from"./HelpButton-DmSTrp5G-BZ5gO3eI.js";import{J as Je}from"./SetUpDefaultSection-BpL2WnED-COlpwQhL.js";import{p as Ke,y as H}from"./SpendMgmtSetupAccountSection-B4wik5Ee-Dl8PxI-i.js";import{x as Qe}from"./LabeledControlledCheckBoxField-D5A-8bnH-DqiGgCzm.js";import{g as Xe}from"./UploadAdditionalDocumentOverlay-ed-RjMyM-CfzPGhhV.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CF-RTU9K-BubT6ngE.js";import"./ChargeCardUtils-CHUMBmgR-CJymagC4.js";import"./CreditCardPaymentPlgSection-DEV6AUvV-Dv95csrn.js";import"./ChaseOverlay-kXvIXrLn-BoWFlEip.js";const l={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,c[5],c[5]),sectionRowGap:new r(c[5],c[9],c[9]),iconWidthHeight:new r(20,c[4]),subTitlePaddingTop:new r(12,c[3]),subTitlePaddingBottom:new r(c[3],c[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(c[1],c[0])},M="chargeCardSetUpPage",f="payAccount",{commonSetUp:Ye,spendManagement:Ze}=Ue.getLocalizedStrings(),{chargeCard:K}=Ze,{chargeCardSetUp:m}=K,{setUp:U}=Ye,wt=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Y,isAccountsEnabled:Z,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ie,onBackClick:ne,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:be,onSignUpClick:Ce})=>{const g=Ve(),n=Ie(),T=De().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:$,companyDebitCardInfo:Ae,selectedCompanyOfficer:s,primaryFundingAccount:a,allFundingAccounts:z}=o,R=N(b),A=N(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(C,k)=>{const i=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(i.fundingAccount.selectedOption!=null&&a?.id!=i.fundingAccount.selectedOption){const u=z.find(O=>O.id===i.fundingAccount.selectedOption);u!=null&&re(i.fundingAccount.selectedOption,u.accType)}}else if(i.account.selectedOption!=null&&a?.id!=null&&a?.zeniAccountId!=i.account.selectedOption){const u=i.account.allOptions.find(O=>O.value===i.account.selectedOption);u!=null&&typeof u.label=="string"&&T.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(i.account.selectedOption,a.id,a.accType)}else C.includes("enableAutoPay")&&i.enableAutoPay!=null&&de(i.enableAutoPay)};p.useEffect(()=>{const C=F.watch((k,{name:i})=>{i!=null&&k!=null&&Be(()=>ve(i,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&R==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=$?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,W=_?.isBusinessVerified===!0,Ee=a?.accType==="depositAccount"||a?.providerVerificationStatus?.code==="verified"||a?.providerVerificationStatus?.code==="manually_verified"||a?.providerVerificationStatus?.code==="automatically_verified"||a?.providerVerificationStatus?.code==="database_matched",I=E?W:W&&Ee,Te=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=E?I&&!V:ee?I&&!j:I&&!(j&&V),Fe=D?m.setupSubTitleNotEnabled:m.setupSubTitle,L=g.mode==="light"?new q(g.colors.brandColorJadeLight):new q(g.colors.brandColorJadeDark),je=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(tt,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:l.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Xe,{authParams:Y,filesEndPoint:X,updateStatus:d,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:be})}),t.jsx(ze,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ne,showMenuIcon:!j&&!V&&(n==="medium-compact"||n==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(et,{windowSize:n,children:[t.jsx(it,{windowSize:n,children:Fe}),Te?t.jsx(nt,{children:t.jsx(Re,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(M),onSubmit:ke,children:t.jsxs(ot,{windowSize:n,children:[t.jsx(Je,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Le,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),E?null:t.jsx(Ke,{connectedAccountProvider:Q,primaryFundingAccount:a,allFundingAccounts:z,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ie,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(qe,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},analytics:T,productType:"charge_cards",isAccountsEnabled:Z,onSignUpClick:Ce,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Qe,{label:{label:K.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Ne.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:H(f,"enableAutoPay"),checkBoxValue:H(f,"enableAutoPay"),defaultChecked:$?.isAutoPayEnabled,style:{top:l.checkBoxTop.valuePx(n)}}})})]})})})]}),D?t.jsx(He,{formId:J(M),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Ge,{isFooterRendered:D,meetingUrl:v,analytics:T,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:h}=e;return{[f]:{fundingAccount:{selectedOption:h?.id,allOptions:v.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},J=e=>`${e}_form`,et=S.div`
1
+ import{u as Ve,X as Ie,d3 as De,a5 as N,a as Oe,c3 as Be,M as Ue,ab as q,j as t,cI as _e,g as $e,C as r,aW as ze,e as Re,F as We,c$ as Le,o as B,v as Ne,aQ as qe,a7 as He,p as c,s as Me}from"./index-DoFw58Mw.js";import{b as p,n as S}from"./vendor-CnQcJ2Lu.js";import{F as Ge}from"./HelpButton-khTPylkl-CEL7Boo7.js";import{J as Je}from"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import{p as Ke,y as H}from"./SpendMgmtSetupAccountSection-DcJhhfdt-CSj4RU9Q.js";import{x as Qe}from"./LabeledControlledCheckBoxField-BBrHodlx-ajZwZw2T.js";import{g as Xe}from"./UploadAdditionalDocumentOverlay-CBpLz-gk-DUe20w1p.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";import"./CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js";import"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";const l={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,c[5],c[5]),sectionRowGap:new r(c[5],c[9],c[9]),iconWidthHeight:new r(20,c[4]),subTitlePaddingTop:new r(12,c[3]),subTitlePaddingBottom:new r(c[3],c[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(c[1],c[0])},M="chargeCardSetUpPage",f="payAccount",{commonSetUp:Ye,spendManagement:Ze}=Ue.getLocalizedStrings(),{chargeCard:K}=Ze,{chargeCardSetUp:m}=K,{setUp:U}=Ye,wt=({autoPayThreshold:e,isDisabled:x,meetingUrl:v,isEarlyPayEnabled:h,chargeCardSetUpView:o,connectedAccountProvider:Q,filesEndPoint:X,authParams:Y,isAccountsEnabled:Z,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ee,accountsPromoConfig:te,onFetchLinkTokenClick:ie,onBackClick:ne,onEnableChargeCardClick:oe,onUpdateChargeCardClick:ae,onBusinessVerificationSectionClick:ce,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,onUpdatePrimaryFundingAccount:re,onUpdateAutoPayClick:de,onEstablishConnectionClick:ue,onEstablishConnectionSuccess:pe,onClickMenuIcon:me,onEnableChargeCardSuccess:P,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,onCompanyOfficerUpdated:ye,onSendForVerificationClick:be,onSignUpClick:Ce})=>{const g=Ve(),n=Ie(),T=De().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:_,isRefreshingViewInBackground:Se,updateStatus:d,accountUpdateStatus:xe,plaidConnectionDetails:Pe,allBankAccounts:we,companyChargeCardInfo:$,companyDebitCardInfo:Ae,selectedCompanyOfficer:s,primaryFundingAccount:a,allFundingAccounts:z}=o,R=N(b),A=N(d.fetchState),F=Oe({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>G(o),[o]),values:G(o)}),ke=F.handleSubmit(oe),ve=async(C,k)=>{const i=k[f];if(C.includes(f))if(C.includes("fundingAccount")){if(i.fundingAccount.selectedOption!=null&&a?.id!=i.fundingAccount.selectedOption){const u=z.find(O=>O.id===i.fundingAccount.selectedOption);u!=null&&re(i.fundingAccount.selectedOption,u.accType)}}else if(i.account.selectedOption!=null&&a?.id!=null&&a?.zeniAccountId!=i.account.selectedOption){const u=i.account.allOptions.find(O=>O.value===i.account.selectedOption);u!=null&&typeof u.label=="string"&&T.trackConnectBankLink(u.value,u.label,"charge_cards"),ae(i.account.selectedOption,a.id,a.accType)}else C.includes("enableAutoPay")&&i.enableAutoPay!=null&&de(i.enableAutoPay)};p.useEffect(()=>{const C=F.watch((k,{name:i})=>{i!=null&&k!=null&&Be(()=>ve(i,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"&&y(!0),w&&R==="In-Progress"&&b==="Completed"&&y(!1)},[s,b,R]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const j=$?.isChargeCardEnabled===!0,V=Ae?.isDebitCardEnabled===!0,W=_?.isBusinessVerified===!0,Ee=a?.accType==="depositAccount"||a?.providerVerificationStatus?.code==="verified"||a?.providerVerificationStatus?.code==="manually_verified"||a?.providerVerificationStatus?.code==="automatically_verified"||a?.providerVerificationStatus?.code==="database_matched",I=E?W:W&&Ee,Te=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&P()},[P,A,d.fetchState]);const D=E?I&&!V:ee?I&&!j:I&&!(j&&V),Fe=D?m.setupSubTitleNotEnabled:m.setupSubTitle,L=g.mode==="light"?new q(g.colors.brandColorJadeLight):new q(g.colors.brandColorJadeDark),je=()=>{!w&&s?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&s.areAdditionalDocumentsRequestedForVerification&&!s.areAdditionalDocumentsSubmittedForVerification&&s.userVerificationStatus?.code==="require_info"?y(!0):ce?.()};return t.jsxs(tt,{children:[t.jsx(_e,{anchor:"right",PaperProps:{style:{width:l.overlayWidth.valuePercentage(n),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:$e.drawerBackground},transitionDuration:250,children:t.jsx(Xe,{authParams:Y,filesEndPoint:X,updateStatus:d,onEditFileName:fe,onDeleteFile:he,updateFilesEntity:ge,companyOfficer:s,onClose:()=>y(!1),onCompanyOfficerUpdated:ye,onSendForVerificationClick:be})}),t.jsx(ze,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ne,showMenuIcon:!j&&!V&&(n==="medium-compact"||n==="small"),onClickMenuIcon:me,source:"ChargeCardSetupPage"}),t.jsxs(et,{windowSize:n,children:[t.jsx(it,{windowSize:n,children:Fe}),Te?t.jsx(nt,{children:t.jsx(Re,{size:"ExtraLarge",start:!0})}):t.jsx(We,{...F,children:t.jsx("form",{id:J(M),onSubmit:ke,children:t.jsxs(ot,{windowSize:n,children:[t.jsx(Je,{onClick:je,title:U.businessVerificationTitle,subTitle:U.businessVerificationSubTitle,header:U.businessVerificationHeader,icon:{element:t.jsx(Le,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},status:_?.businessVerificationStatus,isLoading:Se,isActiveWhileLoading:!0}),E?null:t.jsx(Ke,{connectedAccountProvider:Q,primaryFundingAccount:a,allFundingAccounts:z,plaidConnectionDetails:Pe,allBankAccounts:we,sectionId:f,isDisabled:x,onFetchLinkTokenClick:ie,onEstablishConnectionClick:ue,onUpdatePaymentAccountStatus:le,onUpdatePaymentAccountLoginStatus:se,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:pe,icon:{element:t.jsx(qe,{width:l.iconWidthHeight.valuePx(n),height:l.iconWidthHeight.valuePx(n)}),color:L},analytics:T,productType:"charge_cards",isAccountsEnabled:Z,onSignUpClick:Ce,pageName:m.pageName,accountsPromoConfig:te,accountSelectContainerStyle:h?{marginBottom:"20px"}:{},bottomComponent:h&&t.jsx(Qe,{label:{label:K.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...Ne.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:n==="small"?"flex-start":"center"},checkBoxField:{name:H(f,"enableAutoPay"),checkBoxValue:H(f,"enableAutoPay"),defaultChecked:$?.isAutoPayEnabled,style:{top:l.checkBoxTop.valuePx(n)}}})})]})})})]}),D?t.jsx(He,{formId:J(M),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:n==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||xe.fetchState==="In-Progress",isDisabled:x!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Ge,{isFooterRendered:D,meetingUrl:v,analytics:T,productType:"charge_cards"})]})},G=e=>{const{allBankAccounts:x,allFundingAccounts:v,primaryFundingAccount:h}=e;return{[f]:{fundingAccount:{selectedOption:h?.id,allOptions:v.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:h?.zeniAccountId,allOptions:x.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},J=e=>`${e}_form`,et=S.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,s as B,as as O,d3 as q,h1 as V,Y as J,e as K,p as s,bq as Q}from"./index-CvH632ro.js";import{n as i,b as U}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as _}from"./BoxItem-dOIVDQzt-BM2Or2XI.js";import{w as G}from"./downloadPdf-CYD5QftD-D8rZSmdk.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-C9IpJAVN-CUmNJDhl.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},H=i.div`
1
+ import{u as W,X as T,j as t,aW as F,M as R,o as h,C as g,s as B,as as O,d3 as q,h1 as V,Y as J,e as K,p as s,bq as Q}from"./index-DoFw58Mw.js";import{n as i,b as U}from"./vendor-CnQcJ2Lu.js";import{$ as X,g as _}from"./BoxItem-CHPfWPEF-lXs1y6iB.js";import{w as G}from"./downloadPdf-s4pLtuS_-CF3EQD3j.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./commonDimensions-D4uH020E-szItJUN9.js";const z=R.getLocalizedStrings().months,A={downloadButtonSize:new g(s[4],20)},H=i.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -1 +1 @@
1
- import{fh as D,M as S,dr as c,l as B}from"./index-CvH632ro.js";function U(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=S.getLocalizedStrings(),L=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,b as S,A as U,Y as _};
1
+ import{fh as D,M as S,dr as c,l as B}from"./index-DoFw58Mw.js";function U(e){const a=e.match(/\d+/g);if(!a||a.length!==3)return null;const r=parseInt(a[0]),d=parseInt(a[1]),t=parseInt(a[2]);return"#"+(1<<24|r<<16|d<<8|t).toString(16).slice(1)}const A=({signedInUserToken:e,showSecretInfo:a,setShowPhoneNumberPopup:r,onFireOnClickAnalytics:d,setShowSecretInfo:t})=>{(e==null||e.expiry.isBefore(B.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},F=e=>e.includes("credit")?"credit":"debit",{dateFormat:s}=S.getLocalizedStrings(),L=({chargeCardDetailView:e,classListFetchState:a,analytics:r,isChargeCardFeatureEnabled:d,creditAccount:t,pageName:o,addToWalletType:i,creditAccountRepayment:l,isDebitCard:n,isChargeCardAdmin:m,cardIssuedByRoles:u,cardIssuedByDepartmentName:h,cardHolderRoles:C,cardHolderDepartmentName:g,controllerEmails:p,productInformation:y,creditAccountInformation:f,debitAccountInformation:I})=>{e.chargeCard!=null&&a==="Completed"&&(!d||t.fetchState==="Completed"&&l.fetchState==="Completed")&&(!(n&&m)||e.depositAccountLimitFetchState.fetchState==="Completed")&&r.trackCardsAddToWalletClick(p,y,{cardId:e.chargeCard.id,cardName:e.chargeCard.cardName,cardType:F(e.chargeCard.type.code),cardCategory:e.chargeCard.type.code.includes("physical")?"physical":"virtual",cardLimit:D(e.chargeCard.limit.amount),cardLastFourDigits:e.chargeCard.accountLast4,cardStatus:e.chargeCard.status.code,cardAssignedDate:e.chargeCard.createTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardIssuedDate:e.chargeCard.providerCardCreateTime?.format(s.analytics.MMMDashDDDashYYYYFormat),cardLimitFrequency:e.chargeCard.creditLimitFrequency.name},{cardIssuedByName:c(e.chargeCard.cardCreatedByUser,!1),cardIssuedByEmail:e.chargeCard.cardCreatedByUser?.email,cardIssuedByUserId:e.chargeCard.cardCreatedByUser?.userId,cardIssuedByRole:u,cardIssuedByDepartment:h},{cardholderName:c(e.chargeCard.cardHolderUser,!1),cardholderEmail:e.chargeCard.cardHolderUser?.email,cardholderRole:C,cardholderUserId:e.chargeCard.cardHolderUser?.userId,cardholderDepartment:g},o,i,f,I)},N=(e,a)=>{if(e<=0)return 0;const r=e-a;return Math.round(r/e*100)},Y=e=>e.limit.amount-e.available.amount,b="1.75";export{F,L as H,U as L,N as M,b as S,A as U,Y as _};
@@ -1,4 +1,4 @@
1
- import{X as H,fe as X,ff as Q,M as W,j as t,g as x,n as ee,K as I,Y as c,o as s,C as m,Z as te,s as ie,as as se,bC as oe,d0 as re,p as l,av as A,ee as K,aa as ne,fg as le,w as ae,cq as de,aP as ce}from"./index-CvH632ro.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";const u={width:new m(350,624,624),height:new m(600,730,730),paddingLeft:new m(l[4],l[8],l[8]),paddingRight:new m(l[4],l[7],l[7])};function Be(e){const d=H(),[,N]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,Y=r.title,_=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,D=(i,n)=>{N(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):M(!0)},E=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const q=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},F=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},J=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>D(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(U,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>D(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(U,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},Z=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(q,{});case 1:return t.jsx(F,{});case 2:return t.jsx(J,{});default:return t.jsx(Z,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Le,{children:[t.jsx(xe,{children:Y}),t.jsx(ge,{children:_}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{variant:"secondary",label:r.primaryButtonText,onClick:V,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(I,{variant:e.proceedButtonVariant??"primary",label:r.secondaryButtonText,onClick:e.action.onBackClick,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-proceed-button")})]})]})})})}const pe=o.div`
1
+ import{X as H,fe as X,ff as Q,M as W,j as t,g as x,n as ee,K as I,Y as c,o as s,C as m,Z as te,s as ie,as as se,bC as oe,d0 as re,p as l,av as A,ee as K,aa as ne,fg as le,w as ae,cq as de,aP as ce}from"./index-DoFw58Mw.js";import{b as p,n as o}from"./vendor-CnQcJ2Lu.js";const u={width:new m(350,624,624),height:new m(600,730,730),paddingLeft:new m(l[4],l[8],l[8]),paddingRight:new m(l[4],l[7],l[7])};function Be(e){const d=H(),[,N]=X(),{isMobileOrTabletScreen:g}=Q(),[j,k]=p.useState(!0),[y,S]=p.useState(!0),[z,C]=p.useState(!1),[T,M]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,Y=r.title,_=r.description,V=()=>{window.open(r.chaseVideoUrl,"_blank")},L=[0,1,2,3],P=i=>i<L.length-1,D=(i,n)=>{N(i??""),n?k(!1):S(!1)},B=i=>{i?C(!0):M(!0)},E=i=>{i?C(!1):M(!1)};p.useEffect(()=>{j===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[j,y]);const q=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Ce,{"data-testid":c("chase-overlay-signin-link"),href:r.chaseSigninUrl,target:"_blank",rel:"noreferrer noopener",children:i.text1}),i.text2,t.jsxs(a,{children:[" ",i.text3]}),i.text4,t.jsxs(a,{children:[" ",i.text5]}),i.text6]})},F=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},J=()=>{const i=r.step3,n=e.connectedAccountProvider==="stripe"?i.payeeIdStripe:i.payeeIdUnit;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(Te,{children:[t.jsxs(f,{onClick:()=>D(n,!0),onMouseOver:()=>B(!0),onMouseLeave:()=>E(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),j?t.jsxs(h,{children:[t.jsx(U,{showCopyText:z&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:z&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>D(i.payeeName,!1),onMouseOver:()=>B(!1),onMouseLeave:()=>E(!1),"data-testid":c("copy-payee-name",i.payeeName),children:[t.jsx(v,{}),i.payeeNameTitle,t.jsx(b,{children:i.payeeName}),y?t.jsxs(h,{children:[t.jsx(U,{showCopyText:T&&!g,windowSize:d,children:t.jsx(O,{})}),t.jsx(w,{shouldDisplay:T&&!g,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(R,{}),t.jsx(w,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Me,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},Z=()=>{const i=r.step4;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",i.text2]}),i.text3,t.jsxs(a,{children:[" ",i.text4]})]})},G=i=>{switch(i){case 0:return t.jsx(q,{});case 1:return t.jsx(F,{});case 2:return t.jsx(J,{});default:return t.jsx(Z,{})}};return t.jsx(pe,{windowSize:d,role:"presentation",style:{background:x.overlayDark,...e.style},children:t.jsx(ee,{onClickAway:()=>e.action.onBackClick?.(),children:t.jsxs(he,{windowSize:d,isEditPopup:!1,children:[t.jsxs(Le,{children:[t.jsx(xe,{children:Y}),t.jsx(ge,{children:_}),t.jsx(je,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:L.map((i,n)=>t.jsxs(me,{children:[t.jsx(fe,{children:P(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),P(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(we,{children:[t.jsx(I,{variant:"secondary",label:r.primaryButtonText,onClick:V,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(I,{variant:e.proceedButtonVariant??"primary",label:r.secondaryButtonText,onClick:e.action.onBackClick,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-proceed-button")})]})]})})})}const pe=o.div`
2
2
  position: fixed;
3
3
  top: 0;
4
4
  left: 0;
@@ -1,4 +1,4 @@
1
- import{X as Z,j as t,Y as $,g$ as pe,M as ee,_ as M,K as W,o,a7 as he,C as l,a6 as oe,k as ue,as as me,c0 as te,w as ge,s as F,a5 as xe,a as ke,c3 as fe,g as w,F as De,fF as $e,c6 as we,eP as Y,cd as G,p as s,cW as be,ah as ye,bn as je,cz as Pe,f9 as Se,m as q,fb as Le}from"./index-CvH632ro.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,ze=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:Be,common:V}=ee.getLocalizedStrings(),c=Be.zeniAccounts.zeniAccountList,Ae=V.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Z(),n=e.fetchState,L=xe(n),[v,X]=f.useState(!1),[se,z]=f.useState(!1),B=u.largeLabelWidth.value(r),k=ke({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=k.formState,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);K(h)}};f.useEffect(()=>{const i=k.watch((d,{name:h})=>{h!=null&&d!=null&&fe(()=>ce(h,d))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&k.reset(I(e))},[L,n,k,e]),f.useEffect(()=>{e.error!=null?z(!0):z(!1)},[e.error]);const le=k.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=k.getValues();K(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),A=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(J,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(J,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Xe,{children:[t.jsx(We,{}),t.jsxs(Ye,{children:[t.jsx(Ge,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(Ke,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),z(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(_e,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...k,children:t.jsx("form",{id:ze(ve),onSubmit:le,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:B},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:B},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Ue,{label:{label:c.checkDepositDrawer.depositToLabel,width:B,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(Qe,{size:r,children:[t.jsxs(Ze,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(_,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(Y,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(_,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(Y,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
1
+ import{X as Z,j as t,Y as $,g$ as pe,M as ee,_ as M,K as W,o,a7 as he,C as l,a6 as oe,k as ue,as as me,c0 as te,w as ge,s as F,a5 as xe,a as ke,c3 as fe,g as w,F as De,fF as $e,c6 as we,eP as Y,cd as G,p as s,cW as be,ah as ye,bn as je,cz as Pe,f9 as Se,m as q,fb as Le}from"./index-DoFw58Mw.js";import{b as f,n as a}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",I=e=>{const p=[];return e.checkFront!=null&&p.push(e.checkFront.fileId),e.checkBack!=null&&p.push(e.checkBack.fileId),{[g]:{[Fe]:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,[Te]:e.checkDepositLocalData.source,[Ce]:{allOptions:e.depositAccounts.depositAccounts.map(x=>({label:x.accountName,value:x.id})),selectedOption:e.checkDepositLocalData.depositTo?.id},[ie]:p,[R]:{front:e.checkFront,back:e.checkBack}}}},D=(e,p)=>`${e}.${p}`,ze=e=>`${e}_form`,u={largeLabelWidth:new l(160,160,160),rowContentPaddingLeft:new l(s[3],s[4]),checkPicRowContentPaddingXAxis:new l(s[3],s[4]),labeleMarginLeft:new l(s[0],s[0]),labeleMarginBottom:new l(s[2],s[0]),labelMarginRight:new l(s[3],s[3]),labeledFieldPaddingLeft:new l(s[3],s[0]),labeledFieldPaddingRight:new l(s[3],s[2]),labeledFieldPaddingTop:new l(s[3],s[3]),labeledFieldPaddingBottom:new l(s[3],s[2]),infoLabelPaddingRight:new l(s[0],s[3]),infoLabelMarginTop:new l(s[1],s[0])},{spendManagement:Be,common:V}=ee.getLocalizedStrings(),c=Be.zeniAccounts.zeniAccountList,Ae=V.documents;function Ee({checkDeposit:e,analytics:p,filesEndPoint:x,openPopup:b,authParams:y,onSaveChangesToLocalStore:C,updateFilesEntity:j,onDeleteFile:P,onEditFileName:S,onCheckDpositClick:T}){const r=Z(),n=e.fetchState,L=xe(n),[v,X]=f.useState(!1),[se,z]=f.useState(!1),B=u.largeLabelWidth.value(r),k=ke({mode:"all",reValidateMode:"onBlur",defaultValues:I(e),values:I(e)}),{isValid:re}=k.formState,K=i=>{const d={amount:{amount:i[g].amount??0,currencyCode:V.currency.currencyCode,currencySymbol:V.currency.currencySymbol},source:i[g].source,depositTo:e.depositAccounts.depositAccounts.find(h=>h.id===i[g].depositTo.selectedOption),fileIds:i[g][ie]};C(d)},ce=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);K(h)}};f.useEffect(()=>{const i=k.watch((d,{name:h})=>{h!=null&&d!=null&&fe(()=>ce(h,d))});return()=>{i.unsubscribe()}}),f.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&k.reset(I(e))},[L,n,k,e]),f.useEffect(()=>{e.error!=null?z(!0):z(!1)},[e.error]);const le=k.handleSubmit(()=>{if(re){p.trackAccountsDepositCheckFormClicked("Deposit",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null);const i=k.getValues();K(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(E=>E.id===i),A=e.depositAccounts.depositAccounts.findIndex(E=>E.id===i);return h?t.jsx(Ve,{color:Se(A),isSelectedValue:d}):null},de=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(A=>A.id===i);return h?d===!0?t.jsx(Re,{children:h?.maskedAccountNumber}):t.jsxs(Me,{children:[t.jsx(J,{children:h?.maskedAccountNumber}),t.jsx(to,{}),t.jsx(J,{children:M("0,0[.]00",h?.accountBalance?.available)})]}):null};return t.jsxs(t.Fragment,{children:[se?t.jsx(Oe,{children:t.jsxs(qe,{children:[t.jsxs(Xe,{children:[t.jsx(We,{}),t.jsxs(Ye,{children:[t.jsx(Ge,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(Ke,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),z(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(_e,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...k,children:t.jsx("form",{id:ze(ve),onSubmit:le,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:c.checkDepositDrawer.amountLabel,width:B},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:c.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate:i=>!!i&&i>0},autoComplete:"off",decimalSeparator:".",decimalScale:2,fixedDecimalScale:!1,thousandSeparator:!0,allowLeadingZeros:!1},style:{width:"auto"}}),t.jsx(N,{}),t.jsx(we,{label:{label:c.checkDepositDrawer.sourceLabel,width:B},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:c.checkDepositDrawer.sourcePlaceholder,options:{required:!0,validate:i=>i!=null}}}),t.jsx(N,{}),t.jsx(ae,{size:r,children:t.jsx(eo,{size:r,children:t.jsx(Ue,{label:{label:c.checkDepositDrawer.depositToLabel,width:B,style:{marginLeft:u.labeleMarginLeft.valuePx(r),marginBottom:u.labeleMarginBottom.valuePx(r),marginRight:u.labelMarginRight.valuePx(r)}},style:{paddingTop:u.labeledFieldPaddingTop.valuePx(r),paddingBottom:u.labeledFieldPaddingBottom.valuePx(r),paddingLeft:u.labeledFieldPaddingLeft.valuePx(r),paddingRight:u.labeledFieldPaddingRight.valuePx(r),border:"none",width:"100%",outline:"none",padding:0,display:r==="small"?"flex":"inherit"},infoLabelStyle:{textAlign:r==="small"?"left":"right",paddingRight:u.infoLabelPaddingRight.valuePx(r),marginTop:u.infoLabelMarginTop.valuePx(r)},singleSelectPickerField:{valueToLogo:(i,d)=>ne(i,d),valueToSubLabels:(i,d)=>de(i,d),name:D(g,"depositTo"),placeholder:c.checkDepositDrawer.depositToPlaceholder,style:{position:"relative"},defaultValue:{selectedOption:e.checkDepositLocalData.depositTo?.id,allOptions:e.depositAccounts.depositAccounts.map(i=>({label:i.accountName,value:i.id}))},textAlignment:"right",registerOptions:{required:!0,validate:i=>!!(i!=null&&i.selectedOption)}}})})}),t.jsx(N,{}),t.jsxs(Qe,{size:r,children:[t.jsxs(Ze,{size:r,children:[t.jsx(Ie,{children:c.checkDepositDrawer.checkPicLabel}),t.jsx(_,{isLast:!1,children:c.checkDepositDrawer.frontSide}),t.jsx(Y,{name:`${D(g,R)}.front`,registerOptions:{required:!0},file:e.checkFront,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(_,{isLast:!0,children:c.checkDepositDrawer.backSide}),t.jsx(Y,{name:`${D(g,R)}.back`,registerOptions:{required:!0},file:e.checkBack,isDisabled:!1,deleteFileStatusById:e.deleteFileStatusById,updateFileStatusById:e.updateFileStatusById,filesEndPoint:x,authParams:y,acceptableTypes:["image/jpg","image/jpeg"],supportedImageFileFormat:"image/jpeg",sizeLimit:G,placeholderText:r==="small"?c.checkDepositDrawer.uploadDocument:c.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>X(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:c.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:c.checkDepositDrawer.picGuides.map(i=>t.jsxs(ao,{children:[t.jsx(oo,{}),t.jsx(Ne,{children:i})]},i))})]}),t.jsx(so,{windowSize:r,children:Ae.formatJPGText10MB})]})]})})})]})}const Ie=a(F)`
2
2
  color: ${e=>e.theme.colors.hero};
3
3
  `,Ne=a(F)`
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X as N,H as co,A as cn,di as so,dj as sn,l as A,M as O,p as w,dk as zo,dl as Lt,ab as _,dm as At,bz as Bt,dn as Ot,C as D,cs as Mt,y as Po,T as qe,dp as To,bg as X,e as dn,u as se,ak as Vo,dq as Do,ac as V,r as Le,dr as hn,ds as ce,by as Wt,bC as ho,w as un,m as we,dt as Je,du as Ae,dv as Xe,s as S,ah as ie,dw as pn,v as Nt,dx as Ve,dy as uo,dz as po,dA as gn,dB as fn,as as Ro,ap as xn,bY as It,bX as Ft,d0 as mn,aq as Go,b$ as Eo,bm as wn,dC as yn,dD as go,dE as fo,dF as bn,dG as kn,bt as Cn,b5 as jn,dH as Sn}from"./index-CvH632ro.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-B4i2KTVu-DZIGknQG.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
1
+ import{j as t,ao as an,Y as m,be as fe,_ as U,dh as ln,o as s,g as ee,a5 as lo,X as N,H as co,A as cn,di as so,dj as sn,l as A,M as O,p as w,dk as zo,dl as Lt,ab as _,dm as At,bz as Bt,dn as Ot,C as D,cs as Mt,y as Po,T as qe,dp as To,bg as X,e as dn,u as se,ak as Vo,dq as Do,ac as V,r as Le,dr as hn,ds as ce,by as Wt,bC as ho,w as un,m as we,dt as Je,du as Ae,dv as Xe,s as S,ah as ie,dw as pn,v as Nt,dx as Ve,dy as uo,dz as po,dA as gn,dB as fn,as as Ro,ap as xn,bY as It,bX as Ft,d0 as mn,aq as Go,b$ as Eo,bm as wn,dC as yn,dD as go,dE as fo,dF as bn,dG as kn,bt as Cn,b5 as jn,dH as Sn}from"./index-DoFw58Mw.js";import{n as a,b as I,f as vn,j as F}from"./vendor-CnQcJ2Lu.js";import{L as et,N as $n,D as _n,B as ye,u as $}from"./AccountRow-D9vDRsjv-uSOuzaD9.js";function Z(e,o){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.percentValue);case"default_with_null_balance":return"-"}return U("0,0",e?.balance)}function J(e){return U("0,0",e?.forecast)}function Ho(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.totalPercentValue)}return U("0,0",e?.totalBalance)}function xt(e){if(e!=null)switch(e.type){case"this_period_vs_last_period_percent":case"this_period_vs_same_period_last_year_percent":return fe("0.00%",e.forecastPercentValue)}return U("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const o=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const o=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return U("0,0",Object.assign({},e.forecast,{amount:o}))}else return U("0,0",null)}function Ko(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const o=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(o*100)/100)}else return fe("0.00%",void 0)}function Yo(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const o=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return U("0,0",Object.assign({},e.totalForecast,{amount:o}))}else return U("0,0",null)}const We=(e,o,i)=>{const{startDate:n,balanceType:r}=o,{dateFormat:{visual:l}}=O.getLocalizedStrings();switch(i){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.MMMYYYYFormat,e)}`:ht(r,i);case"quarter":return r==="default"||r==="default_with_percent"?`${O.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(n,l.QYYYYformat,e)}`:ht(r,i);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(n,l.YYYYformat,e)}`:ht(r,i);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ht(e,o){return O.getLocalizedStrings().downloadReport.additionalColumns.labels[o][e]}const Mp=(e,o,i)=>{const n=o.length==0?e:`${e}_${o.join("_")}`;return i!=null&&i.trim().length>0?`${n}_${i}`:`${n}_${ln(10)}`},Ln=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{X as ze,u as Re,cg as yl,M as ue,C as P,a5 as gl,j as l,bt as Be,e$ as qe,bP as De,fv as Pe,o as a,fE as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as Fe,fF as Te,fG as jl,fd as vl,fc as ke,cd as ge,ce as Il,g as Ce,f0 as He,Q as Ge,b5 as Qe,e_ as Xe,s as Ne,fu as Ye,v as ye,n as $l,b1 as Sl,p as ae,dh as Ol,fH as Ll,m as Fl,fI as _l,b2 as be,w as Dl,cq as Pl,b0 as Cl,a$ as Nl}from"./index-CvH632ro.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{C as _e}from"./LabeledAddressValueField-CqhBSQ8f-lPB35Jmc.js";import{I as El}from"./LabeledCreatableSingleSelectField-CB34OT80-C0m35imT.js";import{Y as $e}from"./LabeledDocumentField-MyG-6WMu-Cbf-CDaI.js";import{P as Je}from"./DocumentSecurityBanner-CjDxLXR5-BndWfQhM.js";const Ke=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(_l)`
1
+ import{X as ze,u as Re,cg as yl,M as ue,C as P,a5 as gl,j as l,bt as Be,e$ as qe,bP as De,fv as Pe,o as a,fE as bl,cf as We,c6 as ee,c8 as ce,cc as Me,l as Le,cy as xl,cw as wl,ca as Ue,c9 as Fe,fF as Te,fG as jl,fd as vl,fc as ke,cd as ge,ce as Il,g as Ce,f0 as He,Q as Ge,b5 as Qe,e_ as Xe,s as Ne,fu as Ye,v as ye,n as $l,b1 as Sl,p as ae,dh as Ol,fH as Ll,m as Fl,fI as _l,b2 as be,w as Dl,cq as Pl,b0 as Cl,a$ as Nl}from"./index-DoFw58Mw.js";import{b as M,n as t}from"./vendor-CnQcJ2Lu.js";import{C as _e}from"./LabeledAddressValueField-BODlYe8J-C_77UpWi.js";import{I as El}from"./LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js";import{Y as $e}from"./LabeledDocumentField-CIlbLPtO-DSLjsPoT.js";import{P as Je}from"./DocumentSecurityBanner-BRFFDueV-stK3q2uU.js";const Ke=({text:e})=>l.jsx(Tl,{children:l.jsx(Vl,{children:e})}),Vl=t(_l)`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  color: ${e=>e.theme.colors.hero};
@@ -1,4 +1,4 @@
1
- import{j as r,U as x,V as M,Y as f,M as p,o as s,a8 as w,w as g,a9 as j}from"./index-CvH632ro.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-0WkhoBZC-D0OeJhk2.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-DXOUba_M-CHzipN0D.js";const B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
1
+ import{j as r,U as x,V as M,Y as f,M as p,o as s,a8 as w,w as g,a9 as j}from"./index-DoFw58Mw.js";import{b as t,n as o}from"./vendor-CnQcJ2Lu.js";import{c as H}from"./SummaryCard-D-me4TrL-C69v2luu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./ReloadCard-D5woGDxx-DS9HJ3wy.js";const B=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M25.8382 19.5283C25.8382 19.5283 31.0943 15.1988 31.0943 12.6045C31.0943 11.998 30.7236 11.9138 30.2856 11.9138H20.0263V6.72512C20.0263 6.27027 19.6556 5.9165 19.2176 5.9165H2.74197C2.28712 5.9165 1.93335 6.28712 1.93335 6.72512V20.3706C1.93335 20.8255 2.30397 21.1792 2.74197 21.1792H11.182V27.1765H30.3025C30.7573 27.1765 31.1111 26.8733 31.1111 26.4858C31.0943 24.5822 27.4892 20.9434 25.8382 19.5283Z",fill:"#95C1B7"}),t.createElement("path",{d:"M18.9987 20.1516H1.69754C1.24269 20.1516 0.888916 19.781 0.888916 19.343V5.69754C0.888916 5.24269 1.25953 4.88892 1.69754 4.88892H18.19C18.6449 4.88892 18.9987 5.25953 18.9987 5.69754V20.1516Z",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10,strokeLinejoin:"round"}),t.createElement("path",{d:"M18.9987 10.8862H29.2581C29.7129 10.8862 30.0667 10.9705 30.0667 11.5769C30.0667 14.1713 24.8107 18.5007 24.8107 18.5007C26.4616 19.9158 30.0667 23.5546 30.0667 25.4583C30.0667 25.8457 29.6961 26.149 29.2581 26.149H10.1376V20.1517",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M18.9987 20.1516L10.1376 26.1489",stroke:"#95C1B7",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M14.8545 16.3949H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 12.5203H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.8545 8.62878H5.03308",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),v=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M29.1471 12.9199H19.384V2.69038C19.384 2.2561 19.0302 1.91833 18.612 1.91833H4.13618C3.7019 1.91833 3.36414 2.27219 3.36414 2.69038V30.3391C3.36414 30.7734 3.71799 31.1112 4.13618 31.1112H17.5665H18.612H29.1471C29.5814 31.1112 29.9192 30.7573 29.9192 30.3391V13.692C29.9192 13.2738 29.5653 12.9199 29.1471 12.9199Z",fill:"#97C3B9"}),t.createElement("path",{d:"M26.2595 15.4934H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 25H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 20H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 15H5.53552",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 25H21",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M26.2595 20H21",stroke:"#ECB87D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 10H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M14.9126 5.36316H5.53552",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M18.242 30.0978V1.66096C18.242 1.22668 17.8882 0.888916 17.47 0.888916H2.99421C2.55994 0.888916 2.22217 1.24277 2.22217 1.66096V29.3097C2.22217 29.744 2.57602 30.0818 2.99421 30.0818H17.47",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M16.4246 30.0978H28.0052C28.4395 30.0978 28.7772 29.744 28.7772 29.3258V12.6625C28.7772 12.2283 28.4234 11.8905 28.0052 11.8905H18.1617",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10})),L=e=>t.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{opacity:.2,d:"M16.3966 31.1111C24.5135 31.1111 31.0936 24.5311 31.0936 16.4141C31.0936 8.29723 24.5135 1.71716 16.3966 1.71716C8.27965 1.71716 1.69958 8.29723 1.69958 16.4141C1.69958 24.5311 8.27965 31.1111 16.3966 31.1111Z",fill:"#97C3B9"}),t.createElement("path",{d:"M15.5859 30.2829C23.7028 30.2829 30.2829 23.7028 30.2829 15.5859C30.2829 7.46898 23.7028 0.888916 15.5859 0.888916C7.46898 0.888916 0.888916 7.46898 0.888916 15.5859C0.888916 23.7028 7.46898 30.2829 15.5859 30.2829Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M3.76135 15.9559C3.76135 20.1148 6.01701 23.745 9.36524 25.6834",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"}),t.createElement("path",{d:"M8.81897 19.9034C8.81897 17.3658 11.85 15.304 15.5859 15.304C19.3219 15.304 22.3529 17.3658 22.3529 19.9034C22.3529 24.8729 8.81897 24.9257 8.81897 19.9034Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M15.5859 13.2245C17.1626 13.2245 18.4407 11.9464 18.4407 10.3697C18.4407 8.79304 17.1626 7.51489 15.5859 7.51489C14.0092 7.51489 12.7311 8.79304 12.7311 10.3697C12.7311 11.9464 14.0092 13.2245 15.5859 13.2245Z",stroke:"#97C3B9",strokeWidth:1.5,strokeMiterlimit:10}),t.createElement("path",{d:"M27.0404 15.6035C27.0404 11.4446 24.7848 7.81443 21.4365 5.87598",stroke:"#EEBA7D",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round"})),y=[{key:"company_legal_name",title:p.getLocalizedStrings().companyPassportCard.legalName,Icon:v},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:L},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
2
2
  margin: ${s.sp5};
3
3
  justify-content: space-between;
4
4
  `,W=o.div`
@@ -1,4 +1,4 @@
1
- import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c4 as ha,l as V,a7 as fa,C as m,c5 as xa,a6 as Ce,o as t,s as ae,c6 as z,c7 as ze,c8 as L,c9 as ya,ca as Ue,cb as ga,cc as ba,cd as qe,y as $a,ce as wa,cf as He,cg as Ge,ch as Ia,ci as ja,cj as va,g as N,ck as Sa,cl as Da,aM as Oa,a9 as Ca,as as q,cm as Fe,p,w as Ze,K as Me,cn as Fa,H as ka,co as Ta,cp as Na,b1 as Pa,cq as La,ah as za,cr as Ma,m as Ea,b2 as R,cs as Va,v as de,a$ as Ba}from"./index-CvH632ro.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{I as Ke}from"./LabeledCreatableSingleSelectField-CB34OT80-C0m35imT.js";import{Y as Xe}from"./LabeledDocumentField-MyG-6WMu-Cbf-CDaI.js";import{$ as Je}from"./LabeledAddressValue-C8xq-j7G-D16vnyhu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
1
+ import{X as P,u as Ae,a5 as ca,a as da,c3 as pa,M as k,j as a,aW as ma,F as ua,c4 as ha,l as V,a7 as fa,C as m,c5 as xa,a6 as Ce,o as t,s as ae,c6 as z,c7 as ze,c8 as L,c9 as ya,ca as Ue,cb as ga,cc as ba,cd as qe,y as $a,ce as wa,cf as He,cg as Ge,ch as Ia,ci as ja,cj as va,g as N,ck as Sa,cl as Da,aM as Oa,a9 as Ca,as as q,cm as Fe,p,w as Ze,K as Me,cn as Fa,H as ka,co as Ta,cp as Na,b1 as Pa,cq as La,ah as za,cr as Ma,m as Ea,b2 as R,cs as Va,v as de,a$ as Ba}from"./index-DoFw58Mw.js";import{b as _,n as s,f as Wa,k as _a}from"./vendor-CnQcJ2Lu.js";import{I as Ke}from"./LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js";import{Y as Xe}from"./LabeledDocumentField-CIlbLPtO-DSLjsPoT.js";import{$ as Je}from"./LabeledAddressValue-B5Yv4nig-BmG4gsPH.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
2
2
  0% {
3
3
  transform: translateX(100%)
4
4
  }
@@ -1,4 +1,4 @@
1
- import{a as R,gg as M,M as $,j as e,F as q,T as f,c6 as z,cf as G,cc as K,l as T,o as a,ca as _,gh as H,a7 as W,c0 as X,bp as Y,gi as J}from"./index-CvH632ro.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-C8xq-j7G-D16vnyhu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const t=$.getLocalizedStrings(),x="completeProfilePage",r="basicDetailsSection",y="addressSection",d=(o,m)=>`${o}.${m}`,he=({userEmail:o,googleAPIKey:m,otpChallenge:j,sendOtpStatus:w,verifyOtpStatus:h,saveStatus:v,onSave:u,onGetOtp:P,onVerifyOtp:S,onResendOtp:O})=>{const[s,c]=g.useState(!1),[V,C]=g.useState(!1),i=R({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:o,dateOfBirth:void 0,phone:"",address:void 0}}}),F=M({control:i.control,name:`${r}.address`}),{dateFormat:I}=$.getLocalizedStrings(),N=i.handleSubmit(l=>{u&&u(l)}),L=()=>{const l=i.getValues(`${r}.phone`);l!=null&&l.trim().length>0&&P(l)},k=(l,p)=>{S(l,p)},D=l=>{l!=null&&l.trim().length>0&&O(l)},B=()=>{c(!0)},E=()=>{c(!1)},A=()=>{const l=i.getValues(`${y}`);if(l!=null){const p=J(l);i.setValue(`${r}.address`,p)}c(!1)};return e.jsxs(U,{children:[e.jsxs(Z,{children:[e.jsxs(ee,{children:[s&&e.jsx(oe,{onClick:E}),t.completeProfile.title]}),e.jsx(te,{children:e.jsx(q,{...i,children:e.jsxs("form",{id:`${x}_form`,onSubmit:N,children:[e.jsx(f,{controller:s===!1,children:e.jsxs(b.Fragment,{children:[e.jsx(z,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:t.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:d(r,"email")}}),e.jsx(G,{isDisabled:void 0,label:{label:t.common.labels.name,width:168},style:{width:"100%"},nameField:{name:d(r,"name"),placeHolder:{firstName:t.common.placeholder.firstNamePlaceholder,lastName:t.common.placeholder.lastNamePlaceholder,name:t.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),e.jsx(K,{isOptional:!0,label:{label:t.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:d(r,"dateOfBirth"),placeholder:t.common.placeholder.dobPlaceholder,dateFormat:I.visual.defaultInput,autoComplete:"off",maxDate:T.dateNow().subtract(18,"year")}}),e.jsx(Q,{isOptional:!0,label:{label:t.common.labels.address,width:168},addressValue:{placeholder:t.common.placeholder.addressPlaceholder,address:F,onClick:B},style:{width:"100%",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`}}),e.jsx(_,{isOptional:!0,label:{label:t.common.labels.phone,width:168},style:{width:"100%"},text:{name:d(r,"phone"),placeholder:t.common.placeholder.phonePlaceholder,defaultValue:"",autoComplete:"new-password"},errorInfoLabel:"",verificationErrorInfoLabel:t.common.errorMessage.invalidPhoneNumber,isPopupOpen:V,phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:L,onVerifyOtp:k,onResendOtp:D,isPhoneVerified:h.fetchState==="Completed",phoneVerificationStatus:h,getOtpStatus:w,openPopup:()=>{C(!0)},focusNotRequired:!0}})]})}),e.jsx(f,{controller:s===!0,children:e.jsx(b.Fragment,{children:e.jsx(H,{sectionId:y,googleAPIKey:m,isSubPage:!0})})})]})})})]}),e.jsx(W,{formId:s?void 0:`${x}_form`,primaryBtn:{label:s?t.companyPassport.address.saveAddress:t.common.footer.save,type:s?"button":"submit",onClick:s?A:void 0,isLoading:v.fetchState==="In-Progress"},showCancel:!1})]})},U=n.div`
1
+ import{a as R,gg as M,M as $,j as e,F as q,T as f,c6 as z,cf as G,cc as K,l as T,o as a,ca as _,gh as H,a7 as W,c0 as X,bp as Y,gi as J}from"./index-DoFw58Mw.js";import{b as g,f as b,n}from"./vendor-CnQcJ2Lu.js";import{$ as Q}from"./LabeledAddressValue-B5Yv4nig-BmG4gsPH.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const t=$.getLocalizedStrings(),x="completeProfilePage",r="basicDetailsSection",y="addressSection",d=(o,m)=>`${o}.${m}`,he=({userEmail:o,googleAPIKey:m,otpChallenge:j,sendOtpStatus:w,verifyOtpStatus:h,saveStatus:v,onSave:u,onGetOtp:P,onVerifyOtp:S,onResendOtp:O})=>{const[s,c]=g.useState(!1),[V,C]=g.useState(!1),i=R({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:o,dateOfBirth:void 0,phone:"",address:void 0}}}),F=M({control:i.control,name:`${r}.address`}),{dateFormat:I}=$.getLocalizedStrings(),N=i.handleSubmit(l=>{u&&u(l)}),L=()=>{const l=i.getValues(`${r}.phone`);l!=null&&l.trim().length>0&&P(l)},k=(l,p)=>{S(l,p)},D=l=>{l!=null&&l.trim().length>0&&O(l)},B=()=>{c(!0)},E=()=>{c(!1)},A=()=>{const l=i.getValues(`${y}`);if(l!=null){const p=J(l);i.setValue(`${r}.address`,p)}c(!1)};return e.jsxs(U,{children:[e.jsxs(Z,{children:[e.jsxs(ee,{children:[s&&e.jsx(oe,{onClick:E}),t.completeProfile.title]}),e.jsx(te,{children:e.jsx(q,{...i,children:e.jsxs("form",{id:`${x}_form`,onSubmit:N,children:[e.jsx(f,{controller:s===!1,children:e.jsxs(b.Fragment,{children:[e.jsx(z,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:t.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:d(r,"email")}}),e.jsx(G,{isDisabled:void 0,label:{label:t.common.labels.name,width:168},style:{width:"100%"},nameField:{name:d(r,"name"),placeHolder:{firstName:t.common.placeholder.firstNamePlaceholder,lastName:t.common.placeholder.lastNamePlaceholder,name:t.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),e.jsx(K,{isOptional:!0,label:{label:t.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:d(r,"dateOfBirth"),placeholder:t.common.placeholder.dobPlaceholder,dateFormat:I.visual.defaultInput,autoComplete:"off",maxDate:T.dateNow().subtract(18,"year")}}),e.jsx(Q,{isOptional:!0,label:{label:t.common.labels.address,width:168},addressValue:{placeholder:t.common.placeholder.addressPlaceholder,address:F,onClick:B},style:{width:"100%",padding:`${a.sp2} ${a.sp2} ${a.sp2} ${a.sp0}`}}),e.jsx(_,{isOptional:!0,label:{label:t.common.labels.phone,width:168},style:{width:"100%"},text:{name:d(r,"phone"),placeholder:t.common.placeholder.phonePlaceholder,defaultValue:"",autoComplete:"new-password"},errorInfoLabel:"",verificationErrorInfoLabel:t.common.errorMessage.invalidPhoneNumber,isPopupOpen:V,phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:L,onVerifyOtp:k,onResendOtp:D,isPhoneVerified:h.fetchState==="Completed",phoneVerificationStatus:h,getOtpStatus:w,openPopup:()=>{C(!0)},focusNotRequired:!0}})]})}),e.jsx(f,{controller:s===!0,children:e.jsx(b.Fragment,{children:e.jsx(H,{sectionId:y,googleAPIKey:m,isSubPage:!0})})})]})})})]}),e.jsx(W,{formId:s?void 0:`${x}_form`,primaryBtn:{label:s?t.companyPassport.address.saveAddress:t.common.footer.save,type:s?"button":"submit",onClick:s?A:void 0,isLoading:v.fetchState==="In-Progress"},showCancel:!1})]})},U=n.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-height: 100vh;
@@ -1 +1 @@
1
- import{d2 as m,at as l,j as a,au as f,o as n}from"./index-CvH632ro.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const u="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",C=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(u),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{C as default};
1
+ import{d2 as m,at as l,j as a,au as f,o as n}from"./index-DoFw58Mw.js";import{b as i}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const u="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",C=({showConfetti:t})=>{const[e,p]=i.useState(t),[o,s]=m(u),[r]=l("ConfettiSuccess");return i.useEffect(()=>{t&&p(!0)},[t]),i.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),a.jsx(a.Fragment,{children:e&&o&&r!=null?a.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),p(!1)},animationData:r,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{C as default};
@@ -1,4 +1,4 @@
1
- import{u as qe,X as w,M as h,H as U,c5 as Ye,j as t,aW as _e,Y as b,e as Qe,bO as ae,bQ as ie,bR as se,ct as Xe,a7 as Ge,C as W,bp as Je,o,cu as Ke,bt as k,ah as le,p as f,aq as de,w as ce,s as Q,aN as Ze,cq as pe,g as L,cv as me,cn as ue}from"./index-CvH632ro.js";import{b as x,n as r}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const et=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:a,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:v})=>{const j=w(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(tt,{children:[t.jsxs(H,{children:[t.jsx(q,{children:m}),t.jsx(Y,{children:d})]}),t.jsxs(H,{children:[t.jsx(q,{children:p.achDetails.bankName}),t.jsx(Y,{children:s})]}),t.jsxs(H,{children:[t.jsx(q,{children:a}),t.jsx(Y,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(Q,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),v()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
1
+ import{u as qe,X as w,M as h,H as U,c5 as Ye,j as t,aW as _e,Y as b,e as Qe,bO as ae,bQ as ie,bR as se,ct as Xe,a7 as Ge,C as W,bp as Je,o,cu as Ke,bt as k,ah as le,p as f,aq as de,w as ce,s as Q,aN as Ze,cq as pe,g as L,cv as me,cn as ue}from"./index-DoFw58Mw.js";import{b as x,n as r}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const et=({bankAccountNumberOrIban:e,accountNumberOrIbanLabel:a,bankName:s,routingNumberOrSwiftCode:d,accountName:u,routingNumberOrSwiftCodeLabel:m,onDeleteClick:v})=>{const j=w(),p=h.getLocalizedStrings().spendManagement.billPay.vendorCreation,g=t.jsxs(tt,{children:[t.jsxs(H,{children:[t.jsx(q,{children:m}),t.jsx(Y,{children:d})]}),t.jsxs(H,{children:[t.jsx(q,{children:p.achDetails.bankName}),t.jsx(Y,{children:s})]}),t.jsxs(H,{children:[t.jsx(q,{children:a}),t.jsx(Y,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(Q,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),v()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
4
  gap: ${o.sp1};
@@ -1,4 +1,4 @@
1
- import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a7 as Pe,o as t,C as d,a6 as je,k as tt,b as at,u as ze,bt as nt,cO as Ee,Q as V,g as Z,fS as Ce,v as ot,l as E,Z as Me,c0 as it,a5 as be,a as rt,eZ as lt,c3 as ct,F as st,cz as dt,f6 as mt,c8 as pt,fF as ut,p as r,bp as ht,bn as Be,cW as gt,ah as yt,s as Oe,f9 as ft,f1 as Ct,aa as bt,fa as xt,cq as St,fb as wt,fk as Dt}from"./index-CvH632ro.js";import{n as o,b as p}from"./vendor-CnQcJ2Lu.js";import{x as $t}from"./LabeledControlledCheckBoxField-D5A-8bnH-DqiGgCzm.js";import{S as kt}from"./ChargeCardUtils-CHUMBmgR-CJymagC4.js";import{Z as xe}from"./CreditCardPaymentPlgSection-DEV6AUvV-Dv95csrn.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.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])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:vt}},common:{edit:At,labels:Se,currency:we,navBar:{back:Lt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=Y.getLocalizedStrings(),Ft=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:L,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:$})=>{const m=me(),T=ze(),P=pe().analytics,[M,I]=p.useState(!1);p.useEffect(()=>{e.error!=null?I(!0):I(!1)},[e.error]);const v=ae.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:a.jsx(nt,{title:Lt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Kt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)}})})}),a.jsx(qt,{windowSize:m,children:It.reviewAndConfirm}),a.jsx(Tt,{children:a.jsx(Ee,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),M?a.jsx(Ot,{children:a.jsxs(zt,{children:[a.jsxs(Nt,{children:[a.jsx(Wt,{}),a.jsxs(Et,{children:[a.jsx(Mt,{children:e.error?.title}),a.jsx(Bt,{children:e.error?.message})]})]}),a.jsx(Ut,{children:a.jsx(Vt,{"data-testid":te("close-error-credit-card-payment-review"),onClick:()=>{I(!1)},style:{width:t.sp3,height:t.sp3,color:Z.heroLight}})})]})}):null,a.jsx(Zt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:v},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Pt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Yt,{}),a.jsx(Ce,{label:{label:Se.amount,width:v},showAdditionalInfoLabel:!0,additionalInfoLabel:`${$?ee.creditLimitReset:ee.creditLimitUpdate} ${E.zeniDate(E.getNextNthWorkingDay(E.dateNow().toDate(),[0,6],3).toDateString()).format(vt)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:T.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Te("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Pe,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:At,onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:ee.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},_e=(e,i,h)=>{if(i==="")return a.jsx(ta,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(Ht,{isOptionSelected:h,children:a.jsx(ea,{color:ft(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(Gt,{src:Rt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Qt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Rt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Tt=o(Be)`
1
+ import{j as a,X as me,d3 as pe,Y as te,gP as Je,M as Y,_ as Te,K as He,e as et,a7 as Pe,o as t,C as d,a6 as je,k as tt,b as at,u as ze,bt as nt,cO as Ee,Q as V,g as Z,fS as Ce,v as ot,l as E,Z as Me,c0 as it,a5 as be,a as rt,eZ as lt,c3 as ct,F as st,cz as dt,f6 as mt,c8 as pt,fF as ut,p as r,bp as ht,bn as Be,cW as gt,ah as yt,s as Oe,f9 as ft,f1 as Ct,aa as bt,fa as xt,cq as St,fb as wt,fk as Dt}from"./index-DoFw58Mw.js";import{n as o,b as p}from"./vendor-CnQcJ2Lu.js";import{x as $t}from"./LabeledControlledCheckBoxField-BBrHodlx-ajZwZw2T.js";import{S as kt}from"./ChargeCardUtils-k5Cmi_bM-xJoIL5jf.js";import{Z as xe}from"./CreditCardPaymentPlgSection-YcsIIUkG-C-zCY8ZF.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.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])},de={pageTitle:new V("h6Regular","h5Regular"),integerAmountInput:new V("h5Regular","h2Regular"),decimalAmountInput:new V("largeSemiBold","h5Medium")},{dateFormat:{visual:{MMMDCommaYYYYformat:vt}},common:{edit:At,labels:Se,currency:we,navBar:{back:Lt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=Y.getLocalizedStrings(),Ft=({paymentDetails:e,isCashbackInfoFetchStateCompleted:i,isCreditCardInfoFetchStateCompleted:h,isDebitCardInfoFetchStateCompleted:n,controllerEmails:g,productInformation:c,cashbackInformation:f,paymentSourceInformation:L,creditAccountInformation:y,debitAccountInformation:b,setShowReviewContent:x,onTransferClick:C,isCompleteOutstandingBalanceBeingPaid:$})=>{const m=me(),T=ze(),P=pe().analytics,[M,I]=p.useState(!1);p.useEffect(()=>{e.error!=null?I(!0):I(!1)},[e.error]);const v=ae.largeLabelWidth.value(m);return a.jsxs(a.Fragment,{children:[a.jsxs(_t,{windowSize:m,children:[a.jsx(Xt,{windowSize:m,children:a.jsx(nt,{title:Lt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Kt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Back",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)}})})}),a.jsx(qt,{windowSize:m,children:It.reviewAndConfirm}),a.jsx(Tt,{children:a.jsx(Ee,{amount:e.chargeCardRepaymentDetailLocalData.amount,integerStyles:de.integerAmountInput.styleObject(m),decimalStyles:de.decimalAmountInput.styleObject(m)})}),M?a.jsx(Ot,{children:a.jsxs(zt,{children:[a.jsxs(Nt,{children:[a.jsx(Wt,{}),a.jsxs(Et,{children:[a.jsx(Mt,{children:e.error?.title}),a.jsx(Bt,{children:e.error?.message})]})]}),a.jsx(Ut,{children:a.jsx(Vt,{"data-testid":te("close-error-credit-card-payment-review"),onClick:()=>{I(!1)},style:{width:t.sp3,height:t.sp3,color:Z.heroLight}})})]})}):null,a.jsx(Zt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:v},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Pt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Yt,{}),a.jsx(Ce,{label:{label:Se.amount,width:v},showAdditionalInfoLabel:!0,additionalInfoLabel:`${$?ee.creditLimitReset:ee.creditLimitUpdate} ${E.zeniDate(E.getNextNthWorkingDay(E.dateNow().toDate(),[0,6],3).toDateString()).format(vt)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:T.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Te("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Pe,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:At,onClick:()=>{i&&h&&n&&P.trackCardsPayEarlyFormClick(g,c,f,"Edit",e.chargeCardRepaymentDetailLocalData.isAutoRepayment,{paymentAmount:e.chargeCardRepaymentDetailLocalData.amount.amount,paymentAccountName:e.chargeCardRepaymentDetailLocalData.transferFrom?.label,paymentAccountType:e.chargeCardRepaymentDetailLocalData.transferFrom?.accType,paymentAccountLastFourDigits:e.chargeCardRepaymentDetailLocalData.transferFrom?.accountLast4,paymentCompleteEta:void 0,paymentInitiatedDate:void 0},L,y,b),x(!1)},style:{minWidth:94}},primaryBtn:{label:ee.payNow,onClick:C,isLoading:e.updateStatus==="In-Progress",style:{minWidth:94}}})]})},_e=(e,i,h)=>{if(i==="")return a.jsx(ta,{});const n=e.find(c=>c.id===i),g=e.findIndex(c=>c.id===i);if(n!=null){if(n.accType==="depositAccount")return a.jsx(Ht,{isOptionSelected:h,children:a.jsx(ea,{color:ft(g)})});if(n.accType==="paymentAccount")return n.logo!==void 0&&(n.logo.base64||n.logo.url)?a.jsx(Gt,{src:Rt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Qt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Rt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Tt=o(Be)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  padding-top: ${t.sp3};
4
4
  `,Pt=o.div`
@@ -1,4 +1,4 @@
1
- import{X as j,u as M,M as L,aJ as R,a0 as T,j as i,Y as b,K as W,bC as H,o as l,g as n,C as a,aQ as U,ah as G,ee as J,w as _,p as o}from"./index-CvH632ro.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const r={iconContainerMaxWidthHeight:new a(o[6],o[7]),iconContainerMarginRight:new a(o[3],o[3]),iconWidthHeight:new a(20,o[4]),iconPadding:new a(10,12),containerPaddingTopBottom:new a(o[4],o[4]),containerPaddingLeftRight:new a(o[3],o[4]),buttonLeftMargin:new a(o[8],o[0]),buttonTopMargin:new a(o[4],o[2]),buttonRightMargin:new a(o[0],20)};function V({heading:e,buttonText:c,analytics:g,maxInsuredAmount:u,pageName:h,style:x,onSignUpClick:S,onSwitchClick:y,onMoveMoneyClick:$}){const d=j(),f=M(),{common:v,commonSetUp:P}=L.getLocalizedStrings(),s=P.setUp.accountsPlg,z=()=>{switch(c){case s.signUpButtonText:g?.trackPlgPromoClicked(h,"Sign Up for Free"),S?.();break;case s.switchButtonText:g?.trackPlgPromoClicked(h,"Switch Now"),y?.();break;default:g?.trackPlgPromoClicked(h,"Move Money"),$?.()}},C=R(T(u),u,v.currency.currencySymbol).toUpperCase();return i.jsxs(F,{windowSize:d,width:x?.width,style:x,"data-testid":b("credit-card-payment-plg-section"),children:[i.jsxs(B,{children:[i.jsx(E,{windowSize:d,isDarkMode:f.mode==="dark",children:i.jsx(A,{windowSize:d,children:i.jsx(O,{})})}),i.jsx(N,{children:i.jsxs(Y,{children:[i.jsx(D,{windowSize:d,children:e}),i.jsxs(q,{windowSize:d,children:[i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.two.replace("__amount__",C)})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.three})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.four})]})]})]})})]}),i.jsx(K,{windowSize:d,children:i.jsx(W,{label:c,"data-testid":b("accounts-plg-button",c),onClick:k=>{k.stopPropagation(),z()},buttonColors:{borderColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},backgroundColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},textColor:{default:n.neutralGrey5Light,hover:n.neutralGrey5Light,disabled:n.neutralGrey5Light}},size:"small",style:{padding:`6px ${l.sp3}`,borderRadius:"6px"},textStyle:{fontWeight:H.regular}})})]})}const B=t.div`
1
+ import{X as j,u as M,M as L,aJ as R,a0 as T,j as i,Y as b,K as W,bC as H,o as l,g as n,C as a,aQ as U,ah as G,ee as J,w as _,p as o}from"./index-DoFw58Mw.js";import{n as t}from"./vendor-CnQcJ2Lu.js";const r={iconContainerMaxWidthHeight:new a(o[6],o[7]),iconContainerMarginRight:new a(o[3],o[3]),iconWidthHeight:new a(20,o[4]),iconPadding:new a(10,12),containerPaddingTopBottom:new a(o[4],o[4]),containerPaddingLeftRight:new a(o[3],o[4]),buttonLeftMargin:new a(o[8],o[0]),buttonTopMargin:new a(o[4],o[2]),buttonRightMargin:new a(o[0],20)};function V({heading:e,buttonText:c,analytics:g,maxInsuredAmount:u,pageName:h,style:x,onSignUpClick:S,onSwitchClick:y,onMoveMoneyClick:$}){const d=j(),f=M(),{common:v,commonSetUp:P}=L.getLocalizedStrings(),s=P.setUp.accountsPlg,z=()=>{switch(c){case s.signUpButtonText:g?.trackPlgPromoClicked(h,"Sign Up for Free"),S?.();break;case s.switchButtonText:g?.trackPlgPromoClicked(h,"Switch Now"),y?.();break;default:g?.trackPlgPromoClicked(h,"Move Money"),$?.()}},C=R(T(u),u,v.currency.currencySymbol).toUpperCase();return i.jsxs(F,{windowSize:d,width:x?.width,style:x,"data-testid":b("credit-card-payment-plg-section"),children:[i.jsxs(B,{children:[i.jsx(E,{windowSize:d,isDarkMode:f.mode==="dark",children:i.jsx(A,{windowSize:d,children:i.jsx(O,{})})}),i.jsx(N,{children:i.jsxs(Y,{children:[i.jsx(D,{windowSize:d,children:e}),i.jsxs(q,{windowSize:d,children:[i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.two.replace("__amount__",C)})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.three})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(m,{children:s.bulletPoints.four})]})]})]})})]}),i.jsx(K,{windowSize:d,children:i.jsx(W,{label:c,"data-testid":b("accounts-plg-button",c),onClick:k=>{k.stopPropagation(),z()},buttonColors:{borderColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},backgroundColor:{default:n.brandColorSapphire,hover:n.brandColorSapphire,disabled:n.brandColorSapphire},textColor:{default:n.neutralGrey5Light,hover:n.neutralGrey5Light,disabled:n.neutralGrey5Light}},size:"small",style:{padding:`6px ${l.sp3}`,borderRadius:"6px"},textStyle:{fontWeight:H.regular}})})]})}const B=t.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  `,D=t(G)`
@@ -1,4 +1,4 @@
1
- import{cg as M,u as N,co as P,M as H,j as l,cp as L,Y as x,b1 as z,o,dh as _,bT as B,b2 as g,s as T,v as S,eV as X,eW as Y,eX as A,w as K,a$ as U,a6 as W,g as m}from"./index-CvH632ro.js";import{b as v,n}from"./vendor-CnQcJ2Lu.js";const fe=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=M(),b=N(),[j,C]=v.useState(!1),k=P(f,e??""),V=H.getLocalizedStrings().common.currency,D=s=>{if(!(s==null||!s))return{value:s,label:t.allOptions.find(h=>h.value===s)?.label??s,countryCode:t.allOptions.find(h=>h.value===s)?.countryCode??V.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:k,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(L,{name:e,control:y,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const w=R;return v.createElement(z,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:D(w.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&w?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:_(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Z,Option:q,Input:Q,SingleValue:ee,ValueContainer:J,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:G},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},Z=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(te,{controlStyle:u,menuIsOpen:r,isFocused:t,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},q=e=>{const{data:r,isSelected:t,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=r.countryCode,p=typeof r.label=="string"?r.label:r.value;return l.jsx(re,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:t,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:t,children:l.jsx(ne,{isSelected:t,isDisabled:a,children:r.label})}),t?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},G=e=>{const{options:r,children:t,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=r.indexOf(u)*i;return l.jsx(B,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:t[y]})})},J=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),Q=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:r.label})})},O=n(T)`
1
+ import{cg as M,u as N,co as P,M as H,j as l,cp as L,Y as x,b1 as z,o,dh as _,bT as B,b2 as g,s as T,v as S,eV as X,eW as Y,eX as A,w as K,a$ as U,a6 as W,g as m}from"./index-DoFw58Mw.js";import{b as v,n}from"./vendor-CnQcJ2Lu.js";const fe=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:y,formState:{errors:f}}=M(),b=N(),[j,C]=v.useState(!1),k=P(f,e??""),V=H.getLocalizedStrings().common.currency,D=s=>{if(!(s==null||!s))return{value:s,label:t.allOptions.find(h=>h.value===s)?.label??s,countryCode:t.allOptions.find(h=>h.value===s)?.countryCode??V.countryCode}},I={container:s=>({...s,width:"100%",...c}),menu:s=>({...s,backgroundColor:b.colors.grey5,borderRadius:o.sp1,boxShadow:`${o.sp0} 2px ${o.sp2} ${b.colors.dropShadowHover}`,border:`1px solid ${b.colors.grey3}`,whiteSpace:"nowrap",zIndex:2,width:"100%",margin:`1px ${o.sp0} ${o.sp0} ${o.sp0}`,overflow:"hidden"}),menuList:s=>({...s,borderRadius:o.sp1}),input:()=>({color:b.colors.primary,margin:0}),singleValue:s=>({...s,margin:0,position:"absolute"})},F={hasError:k,menuItemHeight:u,controlStyle:p,isOptionRemovable:i};return l.jsx(L,{name:e,control:y,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const w=R;return v.createElement(z,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:D(w.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&w?.selectedOption===$.value?s({selectedOption:void 0,allOptions:t.allOptions}):s({selectedOption:$?.value,allOptions:t.allOptions})},onMenuClose:()=>C(!1),key:_(),tabSelectsValue:!1,openMenuOnFocus:!0,classNamePrefix:"currency-select-field",onBlur:h,menuPlacement:"auto",maxMenuHeight:240,menuShouldScrollIntoView:!1,closeMenuOnSelect:!0,components:{Control:Z,Option:q,Input:Q,SingleValue:ee,ValueContainer:J,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:G},hideSelectedOptions:!1,styles:I,isDisabled:a!=null})}})},Z=e=>{const{menuIsOpen:r,isFocused:t,isDisabled:a,selectProps:c}=e,{value:d,hasError:i,controlStyle:u}=c;return l.jsx(te,{controlStyle:u,menuIsOpen:r,isFocused:t,isDisabled:a,selectedValue:d,hasError:i,children:l.jsx(g.Control,{...e,className:"select-control",children:e.children})})},q=e=>{const{data:r,isSelected:t,isDisabled:a,isFocused:c,selectProps:d}=e,{isOptionRemovable:i}=d,u=r.countryCode,p=typeof r.label=="string"?r.label:r.value;return l.jsx(re,{isOptionRemovable:i,className:"select-option-wrapper",isFocused:c,isSelected:t,isDisabled:a,"data-testid":x("currency-select-field-option",p),children:l.jsx(g.Option,{...e,className:"select-option",children:l.jsxs(se,{children:[l.jsx(le,{countryCode:u}),l.jsx(ae,{isSelected:t,children:l.jsx(ne,{isSelected:t,isDisabled:a,children:r.label})}),t?l.jsxs(de,{children:[l.jsx(ue,{className:"right-tick-icon"}),l.jsx(pe,{className:"close-tick-icon"})]}):null]})})})},G=e=>{const{options:r,children:t,maxHeight:a,getValue:c,selectProps:d}=e,{menuItemHeight:i}=d,[u]=c(),p=r.indexOf(u)*i;return l.jsx(B,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:y,style:f})=>l.jsx(ce,{style:f,children:t[y]})})},J=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),Q=e=>{const{selectProps:r}=e,{placeholder:t,value:a}=r;return l.jsx(O,{children:l.jsx(g.Input,{...e,autoComplete:"new-password",placeholder:a==null?t:void 0,children:e.children})})},ee=e=>{const{data:r}=e;return l.jsx(g.SingleValue,{...e,children:l.jsx(O,{children:r.label})})},O=n(T)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  `,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&X(e)===!1)return l.jsx(l.Fragment,{});{const r=Y[`${A(e??"")}`];return l.jsx(ie,{children:l.jsx(r,{width:o.sp4,height:o.sp3})})}},te=n.span`
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{j as t,X as b,M as d,a5 as l,Y as p,e as x,o as i,$ as g,c0 as h,k as m}from"./index-CvH632ro.js";import{b as u,n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const f=o.div`
1
+ import{j as t,X as b,M as d,a5 as l,Y as p,e as x,o as i,$ as g,c0 as h,k as m}from"./index-DoFw58Mw.js";import{b as u,n as o}from"./vendor-CnQcJ2Lu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";const f=o.div`
2
2
  display: flex;
3
3
  width: 100%;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ import{j as r}from"./index-DoFw58Mw.js";import o from"./CustomerOnboardingNoStepsPage-DrbkKOBx-C5bbYFj1.js";import i from"./CustomerOnboardingPage-CIbBaMcO-Dqym0Rf2.js";import"./mui-C5LQ0bMa.js";import"./vendor-CnQcJ2Lu.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./HelpButton-khTPylkl-CEL7Boo7.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import"./PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js";import"./SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js";import"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";import"./CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js";import"./CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js";import"./LabeledAddressValueField-BODlYe8J-C_77UpWi.js";import"./LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js";import"./LabeledDocumentField-CIlbLPtO-DSLjsPoT.js";import"./DocumentSecurityBanner-BRFFDueV-stK3q2uU.js";import"./QBOSetupSection-CfficE5p-nLwRVoqN.js";import"./QBOConnectionDialog-D-vB9dbo--0kkpUah.js";const w=t=>t.currentTenant?.productSettings.isOtherProductsEnabled===!0?r.jsx(o,{...t}):r.jsx(i,{...t});export{w as default};
@@ -1,4 +1,4 @@
1
- import{j as s,Y as y,aG as E,u as f,X as T,bg as x,o as t,p as R,C as $,$ as I,M as N,g as u,eS as U,hb as P,f0 as L,b4 as W,m as M,hc as O}from"./index-CvH632ro.js";import{n as r,f as S}from"./vendor-CnQcJ2Lu.js";const Z=r(O)`
1
+ import{j as s,Y as y,aG as E,u as f,X as T,bg as x,o as t,p as R,C as $,$ as I,M as N,g as u,eS as U,hb as P,f0 as L,b4 as W,m as M,hc as O}from"./index-DoFw58Mw.js";import{n as r,f as S}from"./vendor-CnQcJ2Lu.js";const Z=r(O)`
2
2
  /* Size is controlled by styles.root prop */
3
3
  `,X=r.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{d3 as se,j as o,X as Ce,u as Pe,a as we,h2 as be,M as xe,a5 as ke,c3 as Ie,aW as $e,o as i,Y as Ae,F as ve,a7 as Oe,aG as je,cw as Ve,cx as oe,$ as Te,C as J,s as Le,p as $}from"./index-CvH632ro.js";import{n as c,b as A}from"./vendor-CnQcJ2Lu.js";import{F as Ue}from"./HelpButton-DmSTrp5G-BZ5gO3eI.js";import{t as ze,e as Ee}from"./PaymentAccountSetupBillingAddressSection-BaNMRbqw-CIIlY3kM.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-WBhn2MmI-IC_mQp6e.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CF-RTU9K-BubT6ngE.js";import"./SetUpAccountSection-pi1sH7b5-Cq5TVamg.js";import"./SetUpDefaultSection-BpL2WnED-COlpwQhL.js";import"./ChaseOverlay-kXvIXrLn-BoWFlEip.js";const X="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",Q={titleWidth:new J(343,580,726,826),subTitlePaddingTop:new J($[3],$[3]),subTitlePaddingBottom:new J($[3],$[3])},Fe=e=>`${e}_form`,_e=xe.getLocalizedStrings(),Ke=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:O,googleAPIKey:j,signedInUser:P,currentTenant:V,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleAddCardPaymentSource:z,resetCardPaymentViewState:E,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:F,..._})=>{const u=Ce(),K=se(),{analytics:h}=K,{onFetchLinkTokenClick:D,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:G,handleLogOutClick:N,onZeniLogoClick:Z,onAddressEditHandler:x}=_,W=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:v(e),values:v(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:Y,uiState:le,allNationalityCountries:q,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=_e,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=ke(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=Ve(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};A.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ie(()=>ge(s,a))});return()=>{t.unsubscribe()}}),A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,q]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(Y).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(X);t&&a&&(ye(),T("link_payment_account"),F(me,!1,!0))};A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(v(e),{keepDirtyValues:!1}),b())},[r,e,I,p.fetchState,q,b]);const[ae,fe]=A.useState(!1);return o.jsxs(De,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx($e,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:W.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(Ze,{children:o.jsx(We,{"data-testid":Ae("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:Z})})}),o.jsx(ve,{...r,children:o.jsx(Ge,{id:Fe(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(ze,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:Y,subscriptionBillingAddressSectionId:n,sectionId:X,analytics:h,isValid:ne(),onFetchLinkTokenClick:D,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:G,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:E,cardSetupInProgress:ae,googleAPIKey:j,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(Oe,{formId:`${ie}`,leftSideComponent:o.jsx(Ne,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:V,onLogOutClick:N})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ee,{handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:z,cardPaymentView:y,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},De=c.div`
1
+ import{d3 as se,j as o,X as Ce,u as Pe,a as we,h2 as be,M as xe,a5 as ke,c3 as Ie,aW as $e,o as i,Y as Ae,F as ve,a7 as Oe,aG as je,cw as Ve,cx as oe,$ as Te,C as J,s as Le,p as $}from"./index-DoFw58Mw.js";import{n as c,b as A}from"./vendor-CnQcJ2Lu.js";import{F as Ue}from"./HelpButton-khTPylkl-CEL7Boo7.js";import{t as ze,e as Ee}from"./PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import"./SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js";import"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";const X="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",Q={titleWidth:new J(343,580,726,826),subTitlePaddingTop:new J($[3],$[3]),subTitlePaddingBottom:new J($[3],$[3])},Fe=e=>`${e}_form`,_e=xe.getLocalizedStrings(),Ke=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:O,googleAPIKey:j,signedInUser:P,currentTenant:V,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleAddCardPaymentSource:z,resetCardPaymentViewState:E,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:F,..._})=>{const u=Ce(),K=se(),{analytics:h}=K,{onFetchLinkTokenClick:D,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:G,handleLogOutClick:N,onZeniLogoClick:Z,onAddressEditHandler:x}=_,W=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:v(e),values:v(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:Y,uiState:le,allNationalityCountries:q,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=_e,{footer:ue,steps:pe}=ce,{buttons:H}=ue,ee=pe.link_payment_account,I=ke(p.fetchState),te=Object.values(re).findIndex(t=>t?.isSelectedForVerification===!0)??0,me=`Officer_${te<0?1:te+1}`,ge=async(t,a)=>{if(t.includes(n)&&a[n]!=null){const s=r.getValues(`${n}`).country;let d=a[n];if(t.includes(`${n}.street`)&&a[n].street!=null){const{addressValue:l}=a[n].street,f=Ve(l?.country);d={street:a[n].street??g.strings.empty,city:l?.locality??g.strings.empty,state:l?.administrativeAreaLevel1??g.strings.empty,country:f,countryCode:l?.countryCode??g.strings.empty,postalCode:l?.postalCode??g.strings.empty,secondaryInfo:a[n].secondaryInfo,suite:a[n].suite},s.selectedOption!==f.selectedOption&&(d={...d,country:f})}else t===`${n}.country`&&s.selectedOption!=null?d={...d,countryCode:oe(s.selectedOption)}:s.selectedOption!=null&&t.includes(`${n}.street`)===!1&&(d={...d,countryCode:oe(s.selectedOption)});x(d)}};A.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ie(()=>ge(s,a))});return()=>{t.unsubscribe()}}),A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(v(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,q]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(Y).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(X);t&&a&&(ye(),T("link_payment_account"),F(me,!1,!0))};A.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(v(e),{keepDirtyValues:!1}),b())},[r,e,I,p.fetchState,q,b]);const[ae,fe]=A.useState(!1);return o.jsxs(De,{children:[o.jsxs(Me,{windowSize:u,children:[o.jsx($e,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:W.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(Ze,{children:o.jsx(We,{"data-testid":Ae("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:Z})})}),o.jsx(ve,{...r,children:o.jsx(Ge,{id:Fe(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(ze,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:Y,subscriptionBillingAddressSectionId:n,sectionId:X,analytics:h,isValid:ne(),onFetchLinkTokenClick:D,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:M,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:G,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:E,cardSetupInProgress:ae,googleAPIKey:j,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(Oe,{formId:`${ie}`,leftSideComponent:o.jsx(Ne,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:V,onLogOutClick:N})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ee,{handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:z,cardPaymentView:y,stripeKey:O,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},De=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{j as r,X as Me,u as Zt,a as en,c3 as me,M as We,a5 as He,D as mt,H as Qe,l as K,aW as tn,o as re,F as nn,p as M,a7 as an,h2 as on,fE as sn,fc as ft,cw as xt,cx as yt,C as fe,fH as ye,cg as rn,s as cn,h3 as gt,E as ht,ce as ln,fG as dn}from"./index-CvH632ro.js";import{b as p,n as P,k as It}from"./vendor-CnQcJ2Lu.js";import{F as pn}from"./HelpButton-DmSTrp5G-BZ5gO3eI.js";import{t as St,e as un}from"./PaymentAccountSetupBillingAddressSection-BaNMRbqw-CIIlY3kM.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-WBhn2MmI-IC_mQp6e.js";import{G as fn,o as yn}from"./CompanyOfficerDetailsSection-Cd0QdDAc-CRTLz9vU.js";import{o as gn}from"./QBOSetupSection-CHXmbhAv-C0u3acrS.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CF-RTU9K-BubT6ngE.js";import"./SetUpAccountSection-pi1sH7b5-Cq5TVamg.js";import"./SetUpDefaultSection-BpL2WnED-COlpwQhL.js";import"./ChaseOverlay-kXvIXrLn-BoWFlEip.js";import"./LabeledAddressValueField-CqhBSQ8f-lPB35Jmc.js";import"./LabeledCreatableSingleSelectField-CB34OT80-C0m35imT.js";import"./LabeledDocumentField-MyG-6WMu-Cbf-CDaI.js";import"./DocumentSecurityBanner-CjDxLXR5-BndWfQhM.js";import"./QBOConnectionDialog-Bnhkqpjg-DkGgqNtn.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:v,verifiedPhoneNumber:x,onPhoneVerified:y,...I})=>{const m=Me(),V=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:$}=l,T=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:V??[],allNationalityCountries:c,sectionHeader:$,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:T,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:x,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...I})})},Sn=P.div`
1
+ import{j as r,X as Me,u as Zt,a as en,c3 as me,M as We,a5 as He,D as mt,H as Qe,l as K,aW as tn,o as re,F as nn,p as M,a7 as an,h2 as on,fE as sn,fc as ft,cw as xt,cx as yt,C as fe,fH as ye,cg as rn,s as cn,h3 as gt,E as ht,ce as ln,fG as dn}from"./index-DoFw58Mw.js";import{b as p,n as P,k as It}from"./vendor-CnQcJ2Lu.js";import{F as pn}from"./HelpButton-khTPylkl-CEL7Boo7.js";import{t as St,e as un}from"./PaymentAccountSetupBillingAddressSection-Cvn1adQb-kbzfxjFm.js";import{b as Ct,f as mn,a as bt}from"./CustomerOnboardingDetailPageSkeleton-Cz40bZgg-6UjJ2BJ9.js";import{G as fn,o as yn}from"./CompanyOfficerDetailsSection-CGewbsKm-DBM7Hns2.js";import{o as gn}from"./QBOSetupSection-CfficE5p-nLwRVoqN.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";import"./SetUpAccountSection-CdUpAzlt-4B1rLcGQ.js";import"./SetUpDefaultSection-D4FafmO5-CcuY4gpp.js";import"./ChaseOverlay-DQz9r9Pp-Bwx2nGMD.js";import"./LabeledAddressValueField-BODlYe8J-C_77UpWi.js";import"./LabeledCreatableSingleSelectField-DBovHkMc-D9D-7hZt.js";import"./LabeledDocumentField-CIlbLPtO-DSLjsPoT.js";import"./DocumentSecurityBanner-BRFFDueV-stK3q2uU.js";import"./QBOConnectionDialog-D-vB9dbo--0kkpUah.js";const hn=({companyView:t,companyOfficerLocalData:w,allNationalityCountries:c,isVerificationPopupOpen:f,setIsVerificationPopupOpen:v,verifiedPhoneNumber:x,onPhoneVerified:y,...I})=>{const m=Me(),V=t?.companyOfficers.slice(0,10).sort((b,ee)=>b.user.createTime?.isAfter(ee.user.createTime)===!0?1:-1)?.map(b=>b.user),{company_officer:l}=We.getLocalizedStrings().customerOnboardingPage.sections,{title:$}=l,T=t?.company.company.featuresActivationInfo.connectedAccountProvider;return r.jsx(Sn,{children:r.jsx(yn,{companyOfficerData:w,allOfficers:V??[],allNationalityCountries:c,sectionHeader:$,isPopupOpen:f,productType:"onboarding",connectedAccountProvider:T,showInfoTooltip:m!=="small",showCompletedIcon:m==="small",showOfficerSelect:!1,showVerificationTag:!1,verifiedPhoneNumber:x,onPhoneVerified:y,optionalFields:["dob","officerAddress","role","ssn","ownership","selectDocument","phone"],openPopup:v,...I})})},Sn=P.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
@@ -1,4 +1,4 @@
1
- import{X as M,d3 as U,y as W,u as D,M as A,j as e,aW as Z,o as t,Y as k,aG as H,l as I,s as R,$ as V,g as l,v as y,c as _,k as N,c0 as J,Z as G,ak as K}from"./index-CvH632ro.js";import{b as n,n as i}from"./vendor-CnQcJ2Lu.js";import X from"./ConfettiBurst-DxWLsUlB-rN2UgITP.js";import{F as Y}from"./HelpButton-DmSTrp5G-BZ5gO3eI.js";import{f as q}from"./ProductsCarousel-DZmAO-Ad-BvStEG-O.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-CF-RTU9K-BubT6ngE.js";const Q=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=A.getLocalizedStrings(),We=({hasVerifiedBankAccount:o,meetingUrl:$,showUpdatePaymentDetailButton:u=!1,isVisitingFirstTime:b=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=U().analytics,f=W(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=D(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:F}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:m}=F;return h&&g&&m?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&m?[r.taxAndPayroll]:g&&m?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},B=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,I.getProductSettingsString(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(Z,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ke,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:u?e.jsxs(Ce,{"data-testid":k("update-to-payment-address-details"),onClick:()=>B(a),children:[e.jsx(ye,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx($e,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(q,{stopCarousel:w,showUpdatePaymentDetailButton:u})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(me,{className:"discover-class"})]})]}),e.jsx(ue,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(H,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(Y,{isFooterRendered:!1,meetingUrl:$,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(X,{showConfetti:b})]})},te=i.div`
1
+ import{X as M,d3 as U,y as W,u as D,M as A,j as e,aW as Z,o as t,Y as k,aG as H,l as I,s as R,$ as V,g as l,v as y,c as _,k as N,c0 as J,Z as G,ak as K}from"./index-DoFw58Mw.js";import{b as n,n as i}from"./vendor-CnQcJ2Lu.js";import X from"./ConfettiBurst-DX1P5VT_-C7tIIZfu.js";import{F as Y}from"./HelpButton-khTPylkl-CEL7Boo7.js";import{f as q}from"./ProductsCarousel-B0fHKTa_-Bne7N-_V.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./MeetingCalenderPopup-6yyRBLYC-DflGa-2l.js";const Q=o=>n.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},n.createElement("path",{d:"M9.88423 20.4894C8.54548 20.3068 6.19267 19.6022 4.33971 17.8674C2.48676 16.1326 1.39881 13.7328 1.31521 11.1959C1.23161 8.65899 2.15921 6.19276 3.89394 4.33977C5.62866 2.48678 8.02843 1.39882 10.5653 1.31522C13.1022 1.23161 15.5684 2.15923 17.4213 3.89399C19.2743 5.62875 20.1176 7.48634 20.4166 9.67794",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M12.5596 7.50903H10.7439C10.39 7.50916 10.0465 7.62876 9.76901 7.84845C9.49152 8.06815 9.29632 8.37508 9.21501 8.71955C9.1337 9.06401 9.17105 9.42584 9.321 9.74644C9.47096 10.067 9.72474 10.3276 10.0412 10.486L11.6941 11.3133C12.0107 11.4717 12.2644 11.7323 12.4144 12.0529C12.5643 12.3735 12.6017 12.7353 12.5204 13.0798C12.4391 13.4242 12.2439 13.7312 11.9664 13.9509C11.6889 14.1706 11.3454 14.2902 10.9915 14.2903H9.16902",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M10.4437 14.2906V15.5621",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M11.2918 6.23773V7.50922",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M15.5285 21.8743L12 22.8825L13.0081 19.3539L20.2143 12.1476C20.3088 12.0531 20.437 12 20.5707 12C20.7044 12 20.8325 12.0531 20.9271 12.1476L22.7347 13.9542C22.7816 14.001 22.8189 14.0567 22.8443 14.1179C22.8697 14.1791 22.8828 14.2448 22.8828 14.3111C22.8828 14.3774 22.8697 14.4431 22.8443 14.5043C22.8189 14.5655 22.7816 14.6212 22.7347 14.668L15.5285 21.8743Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M18.5536 13.8079L21.074 16.3283",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M13.6133 18.7533L16.1337 21.2737",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ee=A.getLocalizedStrings(),We=({hasVerifiedBankAccount:o,meetingUrl:$,showUpdatePaymentDetailButton:u=!1,isVisitingFirstTime:b=!1,handleUpdatePaymentAddressDetailClick:v,...S})=>{const d=M(),x=U().analytics,f=W(),L=f.loggedInUser,a=f.currentTenant,[w,P]=n.useState(!1),{handleLogOutClick:z,onZeniLogoClick:T,handleCockpitClick:E}=S,O=D(),{customerOnboardingPage:c}=ee,p=s=>{const r=c.productSuite.messageBox;if(!s)return[r.withTaxAndPayroll,r.withCFO];const{productSettings:F}=s,{isPayrollEnabled:h,isCfoEnabled:g,isTaxEnabled:m}=F;return h&&g&&m?[r.withTaxAndPayroll,r.withCFO]:h&&g?[r.withPayroll,r.withCFO]:h&&m?[r.taxAndPayroll]:g&&m?[r.withTax,r.withCFO]:h?[r.onlyPayroll]:g?[r.onlyCFO]:m?[r.onlyTax]:[r.default]},B=s=>{if(v(),!s)return;let r="";o?r="bank_account":r="credit_card",x.trackOnboardingClickUpdatePaymentDetails(r,I.getProductSettingsString(s.productSettings))};return e.jsxs(e.Fragment,{children:[e.jsx(te,{children:e.jsxs(ie,{windowSize:d,children:[e.jsx(oe,{windowSize:d,children:e.jsx(Z,{title:c.productSuite.navTitle,showBackButton:!1,backgroundColor:O.colors.grey4,style:{zIndex:5},source:"CustomerOnboardingProductSuitePage",showLeftSection:d!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:t.sp0,paddingBottom:t.sp0},leftSideComponent:e.jsx(we,{children:e.jsx(ke,{"data-testid":k("zeni-logo-customer-onboarding-product-suite"),onClick:T})}),rightSideComponent:u?e.jsxs(Ce,{"data-testid":k("update-to-payment-address-details"),onClick:()=>B(a),children:[e.jsx(ye,{}),e.jsx(je,{className:"btnText",children:c.productSuite.updatePaymentDetails})]}):e.jsx($e,{})})}),e.jsxs(re,{windowSize:d,children:[e.jsx(ne,{style:{gap:p(a).length>1?t.sp2:t.sp1,padding:p(a).length>1?`12px ${t.sp4} 12px ${t.sp4}`:`12px ${t.sp3} 12px ${t.sp3}`},children:e.jsxs(se,{children:[e.jsxs(C,{children:[e.jsx(ae,{children:e.jsx(le,{})}),e.jsx(j,{children:p(a)[0]})]}),e.jsx(C,{children:p(a).slice(1).map(s=>e.jsx(j,{children:s},s))})]})}),e.jsx(de,{children:e.jsx(ce,{children:c.productSuite.sectionTitle})}),e.jsx(pe,{children:e.jsx(q,{stopCarousel:w,showUpdatePaymentDetailButton:u})}),e.jsxs(he,{href:"https://www.zeni.ai",target:"_blank",rel:"noopener noreferrer",children:[e.jsx(ge,{className:"discover-class",children:c.productSuite.sectionFooter}),e.jsx(me,{className:"discover-class"})]})]}),e.jsx(ue,{children:e.jsxs(xe,{children:[e.jsx(fe,{windowSize:d,children:e.jsx(H,{signedInUser:L,currentTenant:a,onLogOutClick:z,onCockpitClick:E})}),e.jsx(Y,{isFooterRendered:!1,meetingUrl:$,analytics:x,productType:"onboarding_interim",showPopup:w,setShowPopup:P})]})})]})}),e.jsx(X,{showConfetti:b})]})},te=i.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{y as Ke,l as we,j as t,z as Kt,A as Gt,B as Yt,o,S as Jt,D as ce,H as qt,I as Se,J as Xt,L as Qt,N as er,O as tr,P as rr,R as ar,U as B,M as u,X as Z,V as _,Y as w,_ as A,a0 as z,a1 as ir,a2 as or,a3 as nr,a4 as dr,p as L,a as sr,a5 as Ge,a6 as lr,F as cr,a7 as mr,C as R,a8 as W,a9 as N,m as G,aa as Ye,ab as T,ac as S,ad as Je,u as ee,w as P,ae as pr,af as hr,ag as gr,Q as qe,g as j,ah as ur,ai as xr,aj as Cr,ak as fr,al as je,Z as Xe,s as Qe,am as et,an as tt,ao as rt,h as kr,ap as yr,aq as at,ar as br,as as vr,at as it,au as ot,av as $e,aw as wr,ax as jr,ay as $r,az as Dr,aA as Mr,aB as Er,aC as Lr}from"./index-CvH632ro.js";import{b as n,n as d,f as $,j as Tr,k as nt}from"./vendor-CnQcJ2Lu.js";import{k as Sr,L as Br}from"./ArAgingChart-B7_os9Eg-CgtB3vV8.js";import{E as Pr,T as De,I as dt}from"./ReloadCard-DXOUba_M-CHzipN0D.js";import{L as Ir,O as me,c as Y}from"./TopExCard-J5ItU1Wy-Cu15poFM.js";import{H as Ar,Y as _r,P as Wr,G as zr,N as Or}from"./RevenueChart-L0b_usU7-Cf8KBYNj.js";import Rr from"./InsightsCardStack-CXxA6hpf-BZ7-Ipfo.js";import{a as Nr}from"./AccountsPromoCardStack-B2NngRd9-cDiIvZy1.js";import{c as F}from"./SummaryCard-0WkhoBZC-D0OeJhk2.js";import{t as Fr,o as Hr}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import{b as ge}from"./NavigationArrow-CUVFG2Pf-P3tdOWHt.js";import{f as st}from"./NavigationDots-BDLMSply-CVhKiAdV.js";import Zr from"./CompanyPassportCard-Bhm76W7a-DhQY8aBm.js";import{C as Vr}from"./gift-box-Cmt9OgIZ-DKWN92w0.js";import Ur from"./InformationCardStack-X52PXCzi-BTPqjoZv.js";import{p as lt}from"./chartTypes-BrP58mNO-B-70_tkk.js";import{h as Kr}from"./toCOABalancesWithID-CYXJAMXX-B3cjnX0k.js";import{V as Gr}from"./toChartData-oAAd1YDY-DlgK3yY0.js";import{r as Yr,i as Jr}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{A as qr,J as Xr}from"./PromoBaseCards-B9AnaalQ-hSs7-TQL.js";import Qr from"./ConfettiBurst-DxWLsUlB-rN2UgITP.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const ea=d(N)`
1
+ import{y as Ke,l as we,j as t,z as Kt,A as Gt,B as Yt,o,S as Jt,D as ce,H as qt,I as Se,J as Xt,L as Qt,N as er,O as tr,P as rr,R as ar,U as B,M as u,X as Z,V as _,Y as w,_ as A,a0 as z,a1 as ir,a2 as or,a3 as nr,a4 as dr,p as L,a as sr,a5 as Ge,a6 as lr,F as cr,a7 as mr,C as R,a8 as W,a9 as N,m as G,aa as Ye,ab as T,ac as S,ad as Je,u as ee,w as P,ae as pr,af as hr,ag as gr,Q as qe,g as j,ah as ur,ai as xr,aj as Cr,ak as fr,al as je,Z as Xe,s as Qe,am as et,an as tt,ao as rt,h as kr,ap as yr,aq as at,ar as br,as as vr,at as it,au as ot,av as $e,aw as wr,ax as jr,ay as $r,az as Dr,aA as Mr,aB as Er,aC as Lr}from"./index-DoFw58Mw.js";import{b as n,n as d,f as $,j as Tr,k as nt}from"./vendor-CnQcJ2Lu.js";import{k as Sr,L as Br}from"./ArAgingChart-C0hTtEmV-Cp3DCSeq.js";import{E as Pr,T as De,I as dt}from"./ReloadCard-D5woGDxx-DS9HJ3wy.js";import{L as Ir,O as me,c as Y}from"./TopExCard-CDgcQKGp-G2-ryp7z.js";import{H as Ar,Y as _r,P as Wr,G as zr,N as Or}from"./RevenueChart-CS0JmijO-BqFQGtoh.js";import Rr from"./InsightsCardStack-lzduh7aO-Crnd4D-1.js";import{a as Nr}from"./AccountsPromoCardStack-BvFE5A3N-C__nnIqn.js";import{c as F}from"./SummaryCard-D-me4TrL-C69v2luu.js";import{t as Fr,o as Hr}from"./arrow-south-east-round-PEovUgvH-DBLhwZXJ.js";import{b as ge}from"./NavigationArrow-B15b66TT-B9hYIhnI.js";import{f as st}from"./NavigationDots-5fxvl-4e-BzJdpllk.js";import Zr from"./CompanyPassportCard-Dp3a8GH8-qRGWLoZI.js";import{C as Vr}from"./gift-box-Cmt9OgIZ-DKWN92w0.js";import Ur from"./InformationCardStack-BtIMGsaQ-BRj2ZNHm.js";import{p as lt}from"./chartTypes-DueLK3Wl-B3lGAHMU.js";import{h as Kr}from"./toCOABalancesWithID-CAhfOfUa-CUvT0aen.js";import{V as Gr}from"./toChartData-BicnbT0F-BAKhPkjP.js";import{r as Yr,i as Jr}from"./graphic-no-data-net-burn-l-CzmycA0m-DR-LfIWY.js";import{A as qr,J as Xr}from"./PromoBaseCards-BuCQJuXH-BcjVOmSJ.js";import Qr from"./ConfettiBurst-DX1P5VT_-C7tIIZfu.js";import"./mui-C5LQ0bMa.js";import"./analytics-DThoELaW.js";import"./routing-Cpaypegg.js";import"./sentry-HDxG13yk.js";import"./redux-ByjIRbhZ.js";import"./liveblocks-sSQ9JElv.js";import"./crypto-BURQLTgV.js";import"./graphic-no-data-l-DU4J8fDt-BalbEtqQ.js";const ea=d(N)`
2
2
  color: ${e=>e.theme.colors.champion};
3
3
  `,Be=d.div`
4
4
  display: flex;