@zeniai/web-cockpit-ui 1.14.71-dev → 1.14.72-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 (226) hide show
  1. package/dist/assets/{ACHDetailsPage-B40ur5bp-qLUbcavz.js → ACHDetailsPage-BZFkcCOG-Bm0yzLzS.js} +1 -1
  2. package/dist/assets/{AIPerformancePage-3KzgwQEg-Car9ubk8.js → AIPerformancePage-DtNLjoUW-C8WssBlV.js} +1 -1
  3. package/dist/assets/{AccountInfoPage-vLCfulj4-z4VKkvZc.js → AccountInfoPage-D-E_-WpE-D3xkesKo.js} +1 -1
  4. package/dist/assets/{AccountInfoPageContent-C0kb83_4-BAkZvdVH.js → AccountInfoPageContent-B8GKrtCm-Bl_GPEk1.js} +1 -1
  5. package/dist/assets/{AccountLockedInfoModal-DqWq-DtD-BcxpOdhH.js → AccountLockedInfoModal-BD7Nb81U-CexK1k9m.js} +1 -1
  6. package/dist/assets/{AccountReconDetailsDrawerPage-C1-aZ2IL-Ck9_GjU2.js → AccountReconDetailsDrawerPage-D-_ME0pV-s74oVSdU.js} +1 -1
  7. package/dist/assets/{AccountRow-C9q6i3az-Dw8PGRm0.js → AccountRow-Be3LIHO--AtWCxnkE.js} +1 -1
  8. package/dist/assets/{AccountsPromoCardStack-CcKxTC_P-C--n47Gr.js → AccountsPromoCardStack-CdBwPVgI-0eZTGbZE.js} +1 -1
  9. package/dist/assets/{AddAddressForCardDrawer-CgFUm8yP-CrKB_Dwv.js → AddAddressForCardDrawer-Lm7cn4kq-BwSuj-eK.js} +1 -1
  10. package/dist/assets/{AddToWalletPage-CcGENV5h-UoiarLil.js → AddToWalletPage-nSq-9dQy-DNXeo8yV.js} +1 -1
  11. package/dist/assets/{AgingReportsPage-B24eKpNK-DYSYO6T8.js → AgingReportsPage-L0zQxwCf-BGxthXxn.js} +1 -1
  12. package/dist/assets/{AllUserItems-D_8QwwoX-CJcv0jgE.js → AllUserItems-CvwaOEhu-4FgiUHmj.js} +1 -1
  13. package/dist/assets/{ApAgingDetailPage-CkjF2eck-CUC_Mtgo.js → ApAgingDetailPage-B_78aSEv-BIkW3as9.js} +1 -1
  14. package/dist/assets/{AppBasePage-BKLe2VqM-MW0rA3r6.js → AppBasePage-Br0WbQRY-C5P2SI_a.js} +1 -1
  15. package/dist/assets/{AppDrawerContent-amGpNlZr-DzZHETAi.js → AppDrawerContent-BZODvVvi-DO9-i0u3.js} +1 -1
  16. package/dist/assets/{ApprovalRulesSettingsPage-D42YDnFU-CNrvwDLo.js → ApprovalRulesSettingsPage-Dxd7A3hZ-B57JU70m.js} +1 -1
  17. package/dist/assets/{ArAgingChart-qZaIsWtq-BZLaZ9Ct.js → ArAgingChart-BezVy1Sm-UplSlTlX.js} +1 -1
  18. package/dist/assets/{ArAgingDetailPage-CHCdWveg-vZj7uIx-.js → ArAgingDetailPage-BlV3iJeW-DvSoM4Rd.js} +1 -1
  19. package/dist/assets/{AttachmentView-DZCtCZK_-BwikHNAT.js → AttachmentView-DhluaeAV-DnrJUkr5.js} +1 -1
  20. package/dist/assets/{BankAccountSection-BroWfNc_-CvTo199_.js → BankAccountSection-GDEQdiGL-CuwfGvXF.js} +1 -1
  21. package/dist/assets/{BankAccountWarningSection-lNbSkw5--D5G2vsMX.js → BankAccountWarningSection-Di_BsiJC-Cp36wJhl.js} +1 -1
  22. package/dist/assets/{BankConnectionsSettingsPage-BG5FAR53-DZr6wEfX.js → BankConnectionsSettingsPage-D5hI4xtm-CIHmOttI.js} +1 -1
  23. package/dist/assets/{BillDetailPage-BNlsd0AF-BFTUTyDQ.js → BillDetailPage-CDAh8Jtl-0qBbZ__0.js} +1 -1
  24. package/dist/assets/{BillPayApprovalRuleDetailPage-Br6UCYrF-D0uLNJ76.js → BillPayApprovalRuleDetailPage-BzyTn4mC-DYCBn6RW.js} +1 -1
  25. package/dist/assets/{BillPayApprovalRulesPage-DL0aveSN-DoAtCpfR.js → BillPayApprovalRulesPage-DDJ-LxQz-D20J03DB.js} +1 -1
  26. package/dist/assets/{BillPayPromoPage-DLMTqP9B-Qdj_ZRax.js → BillPayPromoPage-B2YcxWc9-CwLnyiow.js} +1 -1
  27. package/dist/assets/{BillPaySetUpPage-7Z5WhvCj-DUMDnm--.js → BillPaySetUpPage-oJvoWpFu-CYkgRBSH.js} +1 -1
  28. package/dist/assets/{BillingSettingsPage-HsRQLM6k-wTKAVFEO.js → BillingSettingsPage-BRsKYzT5-gKM6YCmc.js} +1 -1
  29. package/dist/assets/{BillsBulkReviewDrawerPage-CZEdLC67-B02pvysO.js → BillsBulkReviewDrawerPage-B7tORIok-Cjhni78W.js} +1 -1
  30. package/dist/assets/{BoxItem-CvQS_sLm-D_wBZcaU.js → BoxItem-COIjjFrn-DqU4ZyNU.js} +1 -1
  31. package/dist/assets/{BusinessVerificationPage-BQ3ZYVyp-Cnlr3LEP.js → BusinessVerificationPage-Nw_fedst-D0V3bhmc.js} +1 -1
  32. package/dist/assets/{CardNumberSubText-DVfY641B-Ca4CUToE.js → CardNumberSubText-CmhH95Ff-CLBGKyAX.js} +1 -1
  33. package/dist/assets/{CashbackDetailPage-Bq-wjfJM-D2Niv1Ey.js → CashbackDetailPage-BPLjvuA3-362WFi2j.js} +1 -1
  34. package/dist/assets/{ChargeCardDetailPage-BBksBgc_-CunwAXKE.js → ChargeCardDetailPage-qOu4cPGd-BUoeKuHJ.js} +1 -1
  35. package/dist/assets/{ChargeCardListPage-D8LM_cZf-BYxkaOMa.js → ChargeCardListPage-v5hH98Wi-D_Ffaz0x.js} +1 -1
  36. package/dist/assets/{ChargeCardListTable-Cstar82M-BZIvTdeq.js → ChargeCardListTable-BGWV4zJl-fPTlw7hA.js} +1 -1
  37. package/dist/assets/{ChargeCardPromoPage-DMAUyVe7-UqwVvfTW.js → ChargeCardPromoPage-CPEaGOL3-BJBmWN7Q.js} +1 -1
  38. package/dist/assets/{ChargeCardSetupPage-xuPp_o4--VeJFY_V2.js → ChargeCardSetupPage-G5Rn0o6y-DXJQIwPQ.js} +1 -1
  39. package/dist/assets/{ChargeCardStatementsPage-BtEC80N4-CLyMpzOI.js → ChargeCardStatementsPage-CJgUrcLz-BpTcE_Fq.js} +1 -1
  40. package/dist/assets/{ChargeCardUtils-CHhHodZN-6DoofQsj.js → ChargeCardUtils-BRgkrCTs-DoVoCmwL.js} +1 -1
  41. package/dist/assets/{ChaseOverlay-laPjyJU7-DF7Or1ye.js → ChaseOverlay-BC_4vwtb-ZJ37WP7g.js} +1 -1
  42. package/dist/assets/{CheckDepositDrawerPage-Cg3R57ad-x4vbhtLo.js → CheckDepositDrawerPage-CDo5E13X-BcLnzbHC.js} +1 -1
  43. package/dist/assets/{CollapsableReportTable-BTquJgcd-BW5UxAeQ.js → CollapsableReportTable-7iAngywY-CxWB4sRz.js} +1 -1
  44. package/dist/assets/{CompanyOfficerDetailsSection-BpiZ5rDk-DPn4GdQZ.js → CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js} +1 -1
  45. package/dist/assets/{CompanyPassportCard-BV9mPVRb-Q4C_0Loc.js → CompanyPassportCard-D3F01eJL-CYg3XwZh.js} +1 -1
  46. package/dist/assets/{CompanyPassportPage-D5tRbHXG-CLVMqmrR.js → CompanyPassportPage-BQoEcPJr-DzLqV-NZ.js} +1 -1
  47. package/dist/assets/{CompleteProfile-CARUXqXR-C7CBy6gL.js → CompleteProfile-D5e9TQgy-ppOK1lFi.js} +1 -1
  48. package/dist/assets/{ConfettiBurst-CPnRASxV-Cf8S2srw.js → ConfettiBurst--HIHB7Os-CFkZhGnX.js} +1 -1
  49. package/dist/assets/{CreateOrEditVendorPage-BnMzZWIJ-Dtcizi2x.js → CreateOrEditVendorPage-D9jmSrKr-BqbzMjKm.js} +1 -1
  50. package/dist/assets/{CreditCardPaymentDrawerPage-ZGFxbf6p-CEB_tt9p.js → CreditCardPaymentDrawerPage-DXeq4z9l-Dr585X5v.js} +1 -1
  51. package/dist/assets/{CreditCardPaymentPlgSection-CfIXTZi1-BWmvJdS4.js → CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js} +1 -1
  52. package/dist/assets/{CurrencySelectField-D5qstOV_-BfQhwVcO.js → CurrencySelectField-nhg_dhDw-Ct_sJsLw.js} +1 -1
  53. package/dist/assets/{CustomerOnboardingActivationPage-EoS5UWcr-BDzCJZJq.js → CustomerOnboardingActivationPage-CoGvz7Kd-2HboMU2B.js} +1 -1
  54. package/dist/assets/CustomerOnboardingContainerPage-CZRkKPDD-4OaWohod.js +1 -0
  55. package/dist/assets/{CustomerOnboardingDetailPageSkeleton-CATcejsu-h_QqrMWP.js → CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js} +1 -1
  56. package/dist/assets/{CustomerOnboardingNoStepsPage-DhXSZZDt-BhNth72s.js → CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js} +1 -1
  57. package/dist/assets/{CustomerOnboardingPage-Dw4jho3E-BiCBI5MF.js → CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js} +1 -1
  58. package/dist/assets/{CustomerOnboardingProductSuitePage-BrcfWdR_-CxuJiBMx.js → CustomerOnboardingProductSuitePage-BbJ4oiCI-C_0KKlnp.js} +1 -1
  59. package/dist/assets/{Dashboard-Dncu8Llu-CNokCy8K.js → Dashboard-D6Ba5oj0-DGZ5Ekyf.js} +1 -1
  60. package/dist/assets/{DashboardReportPage-Cd2aI286-D3ivv6JU.js → DashboardReportPage-DTMbYOWH-CSMllwg6.js} +1 -1
  61. package/dist/assets/{DashboardSidebarBackgroundAnimation-Bsd2tllR-Cs2-dBQO.js → DashboardSidebarBackgroundAnimation-Locz2zHR-BPk9MxB4.js} +1 -1
  62. package/dist/assets/{DepositAccTransactionItem-BCvM718U-BQ7X3anC.js → DepositAccTransactionItem-B0BGwVqF-CxL2uxQm.js} +1 -1
  63. package/dist/assets/{DepositAccTransactionListPage-BV0C4uw5-D3ujml3L.js → DepositAccTransactionListPage-CcO673ZL-CiLAoQqZ.js} +1 -1
  64. package/dist/assets/{DomesticWireDetailsPage-C7YCWnpX-BJhnsPOT.js → DomesticWireDetailsPage-D5hbPNCt-Bj16Fg_f.js} +1 -1
  65. package/dist/assets/{DownloadOverlay-XFeHlPT1-CEQi5sme.js → DownloadOverlay-DRcasKoB-BDQCkt6Q.js} +1 -1
  66. package/dist/assets/{DrawerPage-B5swtpnW-ExQw__-M.js → DrawerPage-BRD6cE6J-CdG9rNJx.js} +1 -1
  67. package/dist/assets/{EditPeoplePage-gSBB6VWT-C32EYjas.js → EditPeoplePage-Zzo62if7-CQfgpQsa.js} +1 -1
  68. package/dist/assets/{EditReimbursementDetailPage-wgieh-cS-u2wJ_U8V.js → EditReimbursementDetailPage-D59OJdZ1-7T5j9Uz8.js} +1 -1
  69. package/dist/assets/{EntityDetailPage-wDSbBdas-CScHSqtE.js → EntityDetailPage-CzlzOW8n-DjZ6eItY.js} +1 -1
  70. package/dist/assets/{EntitySummarySection-DUkLpeab-jp4lR-ND.js → EntitySummarySection-BRt1kPDf-BrvMzC_z.js} +1 -1
  71. package/dist/assets/{ExpenseAutomationOverviewPage-8Kor6jbw-C1EEcWSe.js → ExpenseAutomationOverviewPage-vUkGameq-D28DcERt.js} +1 -1
  72. package/dist/assets/{ExpenseAutomationPage-BrMLIa8l-rO7v5FFr.js → ExpenseAutomationPage-Cm_IiRlb-Ch0agMlw.js} +14 -14
  73. package/dist/assets/{ExpressPayPage-mNQZwQjW-BuMy6vAf.js → ExpressPayPage-DdQiFzDu-ykW984zo.js} +1 -1
  74. package/dist/assets/{FeaturePreviewPage-DBHT9uKl-CuaenWGz.js → FeaturePreviewPage-CQN2xThT-D8GcVVCI.js} +1 -1
  75. package/dist/assets/{FollowStepsSection-CSUuXn2f-BgH_uZF9.js → FollowStepsSection-DdwEVWhG-XjqeMDlz.js} +1 -1
  76. package/dist/assets/{GlobalReviewListPage-p0vz_C5a-CbqMjPf4.js → GlobalReviewListPage-DHn2Uk8R-Cd3V8M7p.js} +1 -1
  77. package/dist/assets/{HelpButton-B2amus4B-DejCwWuG.js → HelpButton-BNMy-6ce-WFq-iELy.js} +1 -1
  78. package/dist/assets/{InformationCardStack-BJ727KaL-BL1jahfP.js → InformationCardStack-Cw7c9Pnd-JKEjusS_.js} +1 -1
  79. package/dist/assets/{InsightsCardStack-DY6RY7Qe-DssEfhxv.js → InsightsCardStack-CaMZiCnn-D5ut2TNQ.js} +1 -1
  80. package/dist/assets/{InsightsSection-D-8tYkse-DLCSfT0G.js → InsightsSection-JIKb9lz3-CSUvMdaP.js} +1 -1
  81. package/dist/assets/{IntegrationsSettingsPage-1rJOamsZ-CCFrMSer.js → IntegrationsSettingsPage-h4pel2yK-CfkisAjm.js} +1 -1
  82. package/dist/assets/{InternationalWireSwiftDetailsPage-Ri6TSG6P-8V-Jx_AK.js → InternationalWireSwiftDetailsPage-C2SnHEV1-D4h6wt17.js} +1 -1
  83. package/dist/assets/{InternationalWireVerificationPage-CjriI8l--DVeYNdlX.js → InternationalWireVerificationPage-Dk11ztF7-CGQwkBKG.js} +1 -1
  84. package/dist/assets/{InviteFormPage-BY76duGE-C5wtRqak.js → InviteFormPage-CrtH0cSG-lBcBfRNC.js} +1 -1
  85. package/dist/assets/{InvitePageListView-AAJf0dR1-CCPXRa4B.js → InvitePageListView-DUoopPip-D3WES4Ay.js} +1 -1
  86. package/dist/assets/{InvitePeoplePage-CyMnjfEI-CTqEBEr_.js → InvitePeoplePage-C3ecL8XJ-D06hBumB.js} +1 -1
  87. package/dist/assets/{InvoiceUploadSection-DNao9DwT-C7CWv1v1.js → InvoiceUploadSection-DoR834b4-BezkawDL.js} +1 -1
  88. package/dist/assets/{IssueChargeCardPage-Bjy6NLc8-Ctym8rQ1.js → IssueChargeCardPage-D6DCohbK-CY0NLJ-D.js} +1 -1
  89. package/dist/assets/{LabeledAddressValue-B2k1GZHx-KNC3sWJt.js → LabeledAddressValue-C3R0DSjj-DSFQoK0_.js} +1 -1
  90. package/dist/assets/{LabeledAddressValueField-C6oH2tzZ-BPatozjs.js → LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js} +1 -1
  91. package/dist/assets/{LabeledControlledCheckBoxField-D3legl2B-CCkkJ4fv.js → LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js} +1 -1
  92. package/dist/assets/{LabeledCreatableSingleSelectField-BVxws_IH-DG8QIGXB.js → LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js} +1 -1
  93. package/dist/assets/{LabeledDocumentField-DwPfHt2N-rSrQz57g.js → LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js} +1 -1
  94. package/dist/assets/{LabeledDropDownFormattedTextField-BFT3G777-BsOgj8n2.js → LabeledDropDownFormattedTextField-brzU_fnp-DR9C1PhE.js} +1 -1
  95. package/dist/assets/{LabeledText-nWCZBDTc-C9SVi_iV.js → LabeledText-BESSkt5Z-DvRhicFs.js} +1 -1
  96. package/dist/assets/{LabeledUserSingleSelectWithSubtitlesField-B5USvGOt-C0Rd0eYT.js → LabeledUserSingleSelectWithSubtitlesField-vEIvvd-n-BRFp4N3Z.js} +1 -1
  97. package/dist/assets/{LabeledZeniRolesDropDownField-CFKa2QEv-kq16r6NO.js → LabeledZeniRolesDropDownField-BXTCN4j2-C9dcF_vL.js} +1 -1
  98. package/dist/assets/{LinkJETransactionPage-C1nuQ_6i-CyK7Wga_.js → LinkJETransactionPage-_ROjxBMO-DP6JabBY.js} +1 -1
  99. package/dist/assets/{LockCardPage-s_PD9AzH-s3h7PN-R.js → LockCardPage-DYfgK11k-CA2sqFlt.js} +1 -1
  100. package/dist/assets/{LowBalancePopup-C3XwZy2N-CiNVfO8z.js → LowBalancePopup-CZDcHxyW-BHOAXZjC.js} +1 -1
  101. package/dist/assets/{MagicLinkACHDetailsPage-CAcRKnmW-BgyBZ6s3.js → MagicLinkACHDetailsPage-CLXcRbZ--CVcTUs2d.js} +1 -1
  102. package/dist/assets/{MagicLinkDomesticWireDetailsPage-BYmO4Xr9-CGhpWO66.js → MagicLinkDomesticWireDetailsPage-CZlZr96w-BPglJFOV.js} +1 -1
  103. package/dist/assets/{MagicLinkInternationalWireDetailsPage-BfVzS_Di-TeD5sFaU.js → MagicLinkInternationalWireDetailsPage-DhPjvv0o-DFwZaRYm.js} +1 -1
  104. package/dist/assets/{MagicLinkSuccessPage-CAnSgQhj-C5wC1vo0.js → MagicLinkSuccessPage-Bh2nlLPN-Ddx1hbRe.js} +1 -1
  105. package/dist/assets/{MagicLinkTitleSection-cO3EG-gp-BIrRsD_t.js → MagicLinkTitleSection-Cn1v72Rs-BaSRKY-c.js} +1 -1
  106. package/dist/assets/{MailingDetailsSection-DgN7ACVL-BU_sDZYM.js → MailingDetailsSection-9RwlQxVG-C09sdGhg.js} +1 -1
  107. package/dist/assets/{MeetingCalenderPopup-C1bMV1I3-DBaPSnGq.js → MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js} +1 -1
  108. package/dist/assets/{Menu-C-o9HER2-D5q1mW8f.js → Menu-B6iTf2H7-Cqx4dVPp.js} +1 -1
  109. package/dist/assets/{MyBankConnectionsSettingsPage-DiJHbt8A-DqapM7vm.js → MyBankConnectionsSettingsPage-IPPiH6jv-CVF8iXYJ.js} +1 -1
  110. package/dist/assets/{MyPendingActivationChargeCardListPage-CAH07oE4-CgBbGkED.js → MyPendingActivationChargeCardListPage-BTGb1yIE-BD419NGA.js} +1 -1
  111. package/dist/assets/{MyProfileSettingsPage-CWWb3u86-CBtfB4gW.js → MyProfileSettingsPage-BRK5nWg2--GwgfIws.js} +1 -1
  112. package/dist/assets/{NavBarWithPicker-BswkyMmW-cQa2dvHa.js → NavBarWithPicker-CKh_HMfV-U1f60LTo.js} +1 -1
  113. package/dist/assets/{NavigationArrow-cWkaAVwE-BjtSKPvG.js → NavigationArrow-XZmJpDrE-BSGdgz-m.js} +1 -1
  114. package/dist/assets/{NavigationDots-DDGYTuFE-BeWXaAY8.js → NavigationDots-BxPgEW_p-CnLRJgGA.js} +1 -1
  115. package/dist/assets/{NewGlobalMerchantPage-VAYeGHLy-CSl4x7Ux.js → NewGlobalMerchantPage-CQzrDe0S-CFbklyjG.js} +1 -1
  116. package/dist/assets/{NoDataChart-DOvXvjb9-v-09guTZ.js → NoDataChart-5E72SElf-Bfyft1Tp.js} +1 -1
  117. package/dist/assets/{NoDataTable-DRlkLFHY-xjLa4o8y.js → NoDataTable-BwHbkm3l-C4AJlFQY.js} +1 -1
  118. package/dist/assets/{NotFoundPage-BUQyPFn7-BMBYf8M4.js → NotFoundPage-6udaksBZ-Bdrzyyzv.js} +1 -1
  119. package/dist/assets/{NotificationSettingsPage-B1KXf_X_--eK-MD2V.js → NotificationSettingsPage-DkYmxMgg-B7fNoy2R.js} +1 -1
  120. package/dist/assets/{NotificationsListConfig-BoGND2x4-YVD5PFCu.js → NotificationsListConfig-FGxLgO1o-Bjqs17aQ.js} +1 -1
  121. package/dist/assets/{NotificationsPage-CsXXgLel-DjWMDFMU.js → NotificationsPage-C7lSAnUb-wDRHsOkp.js} +1 -1
  122. package/dist/assets/{OpExByVendorPage-BnJYy01U-CLIBojo-.js → OpExByVendorPage-CM0RluUk-BgpW2giu.js} +1 -1
  123. package/dist/assets/{OverlayContainerPage-BKHs_4eI-D7QJnRfx.js → OverlayContainerPage-BKHs_4eI-mLdiagVZ.js} +1 -1
  124. package/dist/assets/{PandLWithForecastPage-o-jbKy2e-C3ps-DTA.js → PandLWithForecastPage-W4jlNjml-Bcn3UKYp.js} +1 -1
  125. package/dist/assets/{PaymentAccountSetupBillingAddressSection-De5SXBpI-DsGHWie5.js → PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js} +1 -1
  126. package/dist/assets/{PeoplePage-DQ6Hff1k-Ctss-oGf.js → PeoplePage-CB3T3u_F-DC1PdCPq.js} +1 -1
  127. package/dist/assets/{PortfolioAllocationFormPage-V0wgI9Ce-Byk1mL3R.js → PortfolioAllocationFormPage-CZkJD6tu-CmTdPnvM.js} +1 -1
  128. package/dist/assets/{PortfolioDetails-CD5ZpbUI-CfC8RDVa.js → PortfolioDetails-D4yT8r35-DSk0Sc23.js} +1 -1
  129. package/dist/assets/{ProductsCarousel-V_jWJEER-D24dcvyt.js → ProductsCarousel-CR7_rk0K-DQWJaP-C.js} +1 -1
  130. package/dist/assets/{PromoBaseCards-BAFdMFqw-DEK2bZlE.js → PromoBaseCards-BAPolzxE-DLtmx-3v.js} +1 -1
  131. package/dist/assets/{QBOConnectionDialog-DKpO649n-B6_Kc8GW.js → QBOConnectionDialog-D3eazhj7-fJDNmSLU.js} +1 -1
  132. package/dist/assets/{QBOSetupSection-D0ZCB5UD-Cl7hjSJK.js → QBOSetupSection-Cjjhm_Ee-CrlXRkit.js} +1 -1
  133. package/dist/assets/{ReimbursementApprovalRuleDetailPage-DNt15Ut8-CvzV-Ew0.js → ReimbursementApprovalRuleDetailPage-eidNY097-DmIjK42h.js} +1 -1
  134. package/dist/assets/{ReimbursementApprovalRulesPage-Brx7wunO-CmtJNp7d.js → ReimbursementApprovalRulesPage-GSzJGSuy-H2GhhV11.js} +1 -1
  135. package/dist/assets/{ReimbursementDetailPage-DX_Fn31o-BfotdQuY.js → ReimbursementDetailPage-AvqEBxbz-fUbgpa2M.js} +1 -1
  136. package/dist/assets/{ReimbursementPromoPage-CkEv6rCJ-9jexXpR8.js → ReimbursementPromoPage-PshodHUZ-B_XNUegE.js} +1 -1
  137. package/dist/assets/{ReimbursementSetUpPage-CFO-blEl-Cs09UtRs.js → ReimbursementSetUpPage-6P4FT-UC-Bw__edeG.js} +1 -1
  138. package/dist/assets/{ReimbursementsBulkReviewDrawerPage-B-IcycaW-CSDGBoIN.js → ReimbursementsBulkReviewDrawerPage-Cas6GzVp-BQcspCuT.js} +1 -1
  139. package/dist/assets/{ReloadCard-DrU5ZC4a-DUG927nK.js → ReloadCard-Dpoxd9nE-B9DlyhD4.js} +1 -1
  140. package/dist/assets/{ReportTableViewSelector-oB74PECo-ByHpctQ-.js → ReportTableViewSelector-Ci-WKrCO-DAZRgQwg.js} +1 -1
  141. package/dist/assets/{ReportsPage-D0Psj2SZ-BuCtWHsX.js → ReportsPage-C7zirS74-CyyHiNy4.js} +1 -1
  142. package/dist/assets/{RevenueChart-Bnc2RxbY-D-b73Jp0.js → RevenueChart-CXMBT3cr-DnDEiqPG.js} +1 -1
  143. package/dist/assets/{ReviewDetailsPage-E4-dpZ3_-BirqasoD.js → ReviewDetailsPage-ClsyL5-w-_y4o463o.js} +1 -1
  144. package/dist/assets/{ReviewOverlay-C9hLAPaS-CC8EN_X1.js → ReviewOverlay-C6Kx7Hfm-IahzUsv3.js} +1 -1
  145. package/dist/assets/{RoleWithToolTip-BdIHsErU-B421SxNc.js → RoleWithToolTip-BqI6M0x_-CwUqJeb5.js} +1 -1
  146. package/dist/assets/{ScheduleDetailsFixedAssetsPage-DCrTdK6_-DlmUyg8r.js → ScheduleDetailsFixedAssetsPage-zFyJPVpN-BSd6OZtz.js} +1 -1
  147. package/dist/assets/{ScheduleDetailsPage-BNVBIY34-C9SHkuNO.js → ScheduleDetailsPage-BftjSvA7-Jy_FtZQR.js} +1 -1
  148. package/dist/assets/{ScheduleSequenceTable-DeLVkslS-C15n76pT.js → ScheduleSequenceTable-lTN7r0p4-BFWt_8N-.js} +1 -1
  149. package/dist/assets/{ScreenRoutes-C5AUDOTH.js → ScreenRoutes-en4svsq9.js} +1 -1
  150. package/dist/assets/{SetUpAccountSection-XaB8Huky-BnLG2flz.js → SetUpAccountSection-Bnbi8X23-DL-18RCf.js} +1 -1
  151. package/dist/assets/{SetUpDefaultSection-Dko6eOr--DSAIqPKL.js → SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js} +1 -1
  152. package/dist/assets/{SignIn-BKZ0UqXu-CQQAQGhJ.js → SignIn-BlISBvt5-C9HXqHPg.js} +1 -1
  153. package/dist/assets/{SignInScreen-_7s87q7V.js → SignInScreen-Ba17TSWH.js} +1 -1
  154. package/dist/assets/{SpendManagementListViewPage-Crlns-YT-CLQMoQch.js → SpendManagementListViewPage-ChNp8dgm-BhMjXPdH.js} +3 -3
  155. package/dist/assets/{SpendManagementPerTabPage-YjfDDwP4-BZ31j83o.js → SpendManagementPerTabPage-D-bOr2-6-GaRieOUe.js} +1 -1
  156. package/dist/assets/{SpendManagementSection-D8lfWWWV-43vrbIvO.js → SpendManagementSection-kucZgC-H-DLgSRXEX.js} +1 -1
  157. package/dist/assets/{SpendMgmtSetupAccountSection-C7WofOL3-C_mHdj1H.js → SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js} +1 -1
  158. package/dist/assets/{StatementItem-CpZ-MDHo-Db04ym8p.js → StatementItem-BVIVLdDn-BLcyHqWZ.js} +1 -1
  159. package/dist/assets/{StatementsPage-BbO8PdHq-CoyYvllE.js → StatementsPage-KnLUSJbm-DvU_Y3UP.js} +1 -1
  160. package/dist/assets/{StatusSwitcher-DW-Q6MLD-CxdXHbCg.js → StatusSwitcher-aAizq1mr-D4E7X1zy.js} +1 -1
  161. package/dist/assets/{SubTabSwitcher-BgmKYyVl-CY4zKZFC.js → SubTabSwitcher-COrYJ6CW-B2hsvJe_.js} +1 -1
  162. package/dist/assets/{SummaryCard-V7fE0ql0--g0gbjUo.js → SummaryCard-Dv0dWKBw-BnK7xgrF.js} +1 -1
  163. package/dist/assets/{TaskManagementPage-D8UAfCaw-BnMxrHh5.js → TaskManagementPage-CPLyyK1Y-ena6uodh.js} +1 -1
  164. package/dist/assets/{TimeRangeSwitcher-BRY0oixp-B_RoHkbN.js → TimeRangeSwitcher-ifkHfqEg-CGFdCObN.js} +1 -1
  165. package/dist/assets/{TimeframeSwitcher-DIg8e-x0-2kFxMkvp.js → TimeframeSwitcher-BP-PxO5g-DG6ysLlp.js} +1 -1
  166. package/dist/assets/{TimeframeSwitcherWithToggle-utawMrzT-Bill4UcO.js → TimeframeSwitcherWithToggle-DH-PfsTQ-Dd12kokF.js} +1 -1
  167. package/dist/assets/{TopExCard-C2AE49xP-BraB7eP7.js → TopExCard-Bam-Q4MV-GCmLzO6i.js} +1 -1
  168. package/dist/assets/{TopExDetailPage-rA6jQ_FN-D6TDt_SY.js → TopExDetailPage-P0Twt5zZ-BElfoauE.js} +1 -1
  169. package/dist/assets/{TransactionDetailPage-r-DU5f0M-iBWQv_cT.js → TransactionDetailPage-D1Z1f-DD-DTPxqy3v.js} +1 -1
  170. package/dist/assets/{TransactionList-N7P-LryH--lfm65bH.js → TransactionList-BzJEbOV9-BQZ8x4Oq.js} +1 -1
  171. package/dist/assets/{TransactionListBig-cTDebILS-CtjpsP8i.js → TransactionListBig-u4SJBZTE-BZvqZwTB.js} +1 -1
  172. package/dist/assets/{TransactionListPage-DWfOgmyP-x0LIfwop.js → TransactionListPage-D4GJ6i3l-BXLL3BhX.js} +1 -1
  173. package/dist/assets/{TransactionVendorDetailPage-X0hlTlLK-B1OvnXkf.js → TransactionVendorDetailPage-CuFHbm8c-Cl9iluIt.js} +1 -1
  174. package/dist/assets/{TransferDrawerPage-BGdlNOXt-BVJKKJ3s.js → TransferDrawerPage-GD2I8ptj-B7cXbGdy.js} +1 -1
  175. package/dist/assets/{TreasuryOverviewPage-DLqZCVMi-CmlFguUG.js → TreasuryOverviewPage-DySunaqy-CWB-hp0S.js} +1 -1
  176. package/dist/assets/{TreasuryPromoPage-DbzfXlgw-Cnr9zUw4.js → TreasuryPromoPage-DW1f8_q1-CZjoBD0v.js} +1 -1
  177. package/dist/assets/{TreasurySetupPage-D9GxfZ9F-A-ZWAnnz.js → TreasurySetupPage-53k6ARHC-8YVNt5Wt.js} +1 -1
  178. package/dist/assets/{TreasuryStatementsPage-DLi_sZPF-BwcPosXZ.js → TreasuryStatementsPage-pIshKNaR-Dtfk2lx_.js} +1 -1
  179. package/dist/assets/{TreasuryTaxLetterPage-DT9qtjBD-BRXBc7C_.js → TreasuryTaxLetterPage-B3PkB1al-CKVKJh1V.js} +1 -1
  180. package/dist/assets/{TreasuryTransferOrReviewPage-Bwmdvxcf-BC7BjXMz.js → TreasuryTransferOrReviewPage-Dzq-FxSM-CX84O_mN.js} +1 -1
  181. package/dist/assets/{TrendChart-PEPDz5Rb-C5_CXK8K.js → TrendChart-B_5D-Zud-BUU2-6nI.js} +1 -1
  182. package/dist/assets/{TrendWithTransactions-D0kwx2QH-C1njpMfG.js → TrendWithTransactions-mI_El5D1-SbfSjDf-.js} +1 -1
  183. package/dist/assets/{UncategorizedAccountsMappingPage-B_m-aQN1-BdI8jrrw.js → UncategorizedAccountsMappingPage-LQeq8Gdv-BxpsIXJf.js} +1 -1
  184. package/dist/assets/{UnitIntegrationPage-D_I3woOf-BdB9dVUS.js → UnitIntegrationPage-XOWqGHla-DR8O2yO4.js} +1 -1
  185. package/dist/assets/{UploadAdditionalDocumentOverlay-BzWXbm7_-BYxLpWvz.js → UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js} +1 -1
  186. package/dist/assets/{Vendor2FAPopup-ZhMUe2XG-CMbLzdmx.js → Vendor2FAPopup-BfqIHZBb-CksyyTez.js} +1 -1
  187. package/dist/assets/{VendorACHDetailsPage-BxSB3e3f-NKMZBQ_S.js → VendorACHDetailsPage-CswCvAFH-CdUK-HJH.js} +1 -1
  188. package/dist/assets/{VendorDetailPage-Cil4QKpo-OKzerEoj.js → VendorDetailPage-CEX7xMIN-Djo4PloX.js} +1 -1
  189. package/dist/assets/{VendorDomesticWireDetailsPage-t9rrf_8I-BW4LvYLe.js → VendorDomesticWireDetailsPage-DxrSjlTR-B4ZHtbXA.js} +1 -1
  190. package/dist/assets/{VendorFiling1099EditablePage-CVvvZInI-CbWeL7rE.js → VendorFiling1099EditablePage-q1gQ8keD-BmDatzoV.js} +1 -1
  191. package/dist/assets/{VendorFirstReviewPage-CEhcXzDq-CF9AIieN.js → VendorFirstReviewPage-D9ogNmAK-PlB10gEr.js} +1 -1
  192. package/dist/assets/{VendorInternationalWireDetailsPage-BuII-Mam-BGd0kiN2.js → VendorInternationalWireDetailsPage-Ct689KuY-DAoPjpj5.js} +1 -1
  193. package/dist/assets/{VendorInternationalWireSwiftDetailsPage-CcVcyWBe-D99dYtWX.js → VendorInternationalWireSwiftDetailsPage-W0s1zQNC-ZgE8KOcO.js} +1 -1
  194. package/dist/assets/{VendorsAccountsSection-DH0mosVk-JqDhMB4O.js → VendorsAccountsSection-C13Z2HN9-C2XOcHy1.js} +1 -1
  195. package/dist/assets/{VerifyDevice-BWzESmW--BKst56S-.js → VerifyDevice-C27gEWkZ-C7pLL5Wm.js} +1 -1
  196. package/dist/assets/{VideoPlayer-DPXISthv-iABqInol.js → VideoPlayer-ByyqUuhG-DTMNeCaX.js} +1 -1
  197. package/dist/assets/{VideoPopup-B2pu7j6O-DcAtt4hw.js → VideoPopup-DJrQQTPq-DoXO-Vwb.js} +1 -1
  198. package/dist/assets/{WarningsDrawerPage-DQjc5yVp-RGVHjaxW.js → WarningsDrawerPage-B3Ht3VnM-DBDTIhyB.js} +1 -1
  199. package/dist/assets/{ZeniAccountDetailPage-CI2TQILk-PuWbEnGQ.js → ZeniAccountDetailPage-egmysAfI-DFbZv9KZ.js} +1 -1
  200. package/dist/assets/{ZeniAccountListViewPage-DjhscUyw-7icktWUA.js → ZeniAccountListViewPage-q_v2FogF-B-baYGeD.js} +1 -1
  201. package/dist/assets/{ZeniAccountNavBarPieces-BMOxM3Ul-612xJvF6.js → ZeniAccountNavBarPieces-HNIht0FM-aSJ3m6rj.js} +1 -1
  202. package/dist/assets/{ZeniAccountPromoPage-CoegRWXG-DicGPTSL.js → ZeniAccountPromoPage-CzncR6vK-DAONZr9A.js} +1 -1
  203. package/dist/assets/{ZeniAccountSetupPage-l8SdQK7w-BdI_dgyM.js → ZeniAccountSetupPage-TcdzEL_V-CApQPT0B.js} +1 -1
  204. package/dist/assets/{ZeniCopyright-CrpLjMla-DvRGZGQ9.js → ZeniCopyright-B7Q6IUGC-Ca3UXoxG.js} +1 -1
  205. package/dist/assets/{ZeniTransferAmountSlider-oZNLHFd5-PDQERkPa.js → ZeniTransferAmountSlider-Dmf5xxv4-D_ugGHJW.js} +1 -1
  206. package/dist/assets/{analyticsHelper-mfWw4TCX.js → analyticsHelper-CVWZE356.js} +1 -1
  207. package/dist/assets/{analyticsHelper-ColsUhUK-vardy7WR.js → analyticsHelper-or1KkBWk-Plh_6I_p.js} +1 -1
  208. package/dist/assets/{chartTypes-BFE_S1PL-DOHRtqWo.js → chartTypes-DCvOVjlS-BdPIN5WI.js} +1 -1
  209. package/dist/assets/{commonDimensions-Dq7P0AE6-Cdz-7EJl.js → commonDimensions-C32v1F7H-CiAEfJl2.js} +1 -1
  210. package/dist/assets/{detailCommon-DSe7Tzn3-C15dhIqY.js → detailCommon-CRAGrqoO-Cq9phP1q.js} +1 -1
  211. package/dist/assets/{downloadPdf-D3hiuG-R-CfWEq2eL.js → downloadPdf-D7p3yKmg-CYmmjPHt.js} +1 -1
  212. package/dist/assets/{index-D94hlokH.js → index-sAOH0Fje.js} +4 -4
  213. package/dist/assets/{mapLoadingInProgressToTreeNode-COnUyXAf-oqBOjgHh.js → mapLoadingInProgressToTreeNode-CRwG2DSD-B4LnWZMC.js} +1 -1
  214. package/dist/assets/{mapSectionWithAcOnlyToTreeNode-CDE8V8lh-9J1CJPJ0.js → mapSectionWithAcOnlyToTreeNode-C9O-C2dp-BYZLhSZo.js} +1 -1
  215. package/dist/assets/{mapSpacerToTreeNode-Ljk42Rtu-DPJWdE3q.js → mapSpacerToTreeNode-5aJk-sLn-DpF_Q8pH.js} +1 -1
  216. package/dist/assets/{mapTimeframeBalancesToTreeNode-Cv95aY-B-VNSYZVhm.js → mapTimeframeBalancesToTreeNode-CnviLujI-Do2_oG27.js} +1 -1
  217. package/dist/assets/{mapTimeframeBalancesToTreeNode-B64chWyJ-CiceKmAm.js → mapTimeframeBalancesToTreeNode-Cv4d4PqE-C559SZVp.js} +1 -1
  218. package/dist/assets/{mapTimeframeHeaderLoadingInProgressToTreeNode-DFgAA2si-DqUkzVrn.js → mapTimeframeHeaderLoadingInProgressToTreeNode-BaGM4krW-yJCRTG35.js} +1 -1
  219. package/dist/assets/{toCOABalancesWithID-BK1XA0gz-D3HM3wW9.js → toCOABalancesWithID-B3yVGPrV-B_BzNOYP.js} +1 -1
  220. package/dist/assets/{toChartData-D7n7RyVD-Ugd_lC5Y.js → toChartData-DEW0iT7T-DrkbvIyQ.js} +1 -1
  221. package/dist/assets/{treasuryColorHelper-tTPJnd8d-BU6MV_k4.js → treasuryColorHelper-13LJ_xhk-LqN_6Xl4.js} +1 -1
  222. package/dist/assets/{uploadAttachment-By_eR78P-BWtANd19.js → uploadAttachment-DVy2pZeJ-X-xSyfvF.js} +1 -1
  223. package/dist/assets/{uploadReceipts-Dp1dvCjf-DS6AgWc1.js → uploadReceipts-Dp1dvCjf-Bw0_dVvQ.js} +1 -1
  224. package/dist/index.html +1 -1
  225. package/package.json +2 -2
  226. package/dist/assets/CustomerOnboardingContainerPage-Bzjew7MV-D4ymslq9.js +0 -1
@@ -1,4 +1,4 @@
1
- import{q as b,O as oe,j as r,d as G,ax as $e,a9 as ye,aP as be,aN as je,l as Se,g3 as Te,bF as ze,n as Z,aM as ee,o as t,_ as ve,s as J,cQ as Pe,ar as ke,y as x,aq as Be,c5 as Ae,iK as Ie,ai as Le,u as h,c as j,h as $,b9 as Re,aT as Me,iL as _e}from"./index-D94hlokH.js";import{b as S,n as a,i as Ee,k as De}from"./vendor-Bs1fkIUX.js";import{x as Fe}from"./MeetingCalenderPopup-C1bMV1I3-DBaPSnGq.js";import{j as Ue}from"./NavigationDots-DDGYTuFE-BeWXaAY8.js";import{J as O,N as H}from"./PromoBaseCards-BAFdMFqw-DEK2bZlE.js";import{M as R}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const g={containerPaddingTopBottom:new x(h[0],h[0]),uspContainerMarginX:new x(h[6],h[0]),midContainerGap:new x(h[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(h[6],43),navigationBottom:new x(h[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,h[4]),carouselMarginLeft:new x(120,h[12]),buttonTrayGap:new x(h[3],h[5]),termsOfAgreementMarginTop:new x(h[5],h[10]),contactAdminContainerMarginTop:new x(h[0],h[10]),contactAdminContainerMarginBottom:new x(h[4],h[0]),contactAdminContainerMarginLeftRight:new x(h[3],h[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:q,onExpressInterestClick:me})=>{const he=G(),K=$e(),z=b(),Q=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,V=be(M?.fetchStatus.fetchState),[ge,W]=S.useState(!1),xe=()=>{Q.trackCardsPromoPageClicked("schedule demo"),Q.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),W(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{V==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&q()},[V,q,M?.fetchStatus]);const X=Se.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),we=Te(K),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:he.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{W(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:z,children:X===!0?r.jsxs(Ve,{children:[r.jsxs(Qe,{children:[r.jsx(Oe,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),X&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Ke,{windowSize:z,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},Oe=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ze,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Ge,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Ge=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[m!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Je,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(O,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(H,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Je=()=>{const e=b(),s=G(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},qe=a.div`
1
+ import{q as b,O as oe,j as r,d as G,ax as $e,a9 as ye,aP as be,aN as je,l as Se,g3 as Te,bF as ze,n as Z,aM as ee,o as t,_ as ve,s as J,cQ as Pe,ar as ke,y as x,aq as Be,c5 as Ae,iK as Ie,ai as Le,u as h,c as j,h as $,b9 as Re,aT as Me,iL as _e}from"./index-sAOH0Fje.js";import{b as S,n as a,i as Ee,k as De}from"./vendor-Bs1fkIUX.js";import{x as Fe}from"./MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js";import{j as Ue}from"./NavigationDots-BxPgEW_p-CnLRJgGA.js";import{J as O,N as H}from"./PromoBaseCards-BAPolzxE-DLtmx-3v.js";import{M as R}from"./usp-line-BBd1wKwW-ZlUrfnG1.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const g={containerPaddingTopBottom:new x(h[0],h[0]),uspContainerMarginX:new x(h[6],h[0]),midContainerGap:new x(h[4],84),iconContainerMinHeight:new x(236,396),emptySectionHeight:new x(h[6],43),navigationBottom:new x(h[4],94),navigationLeft:new x(192,244),carouselHeight:new x(268,396),carouselMarginTop:new x(54,h[4]),carouselMarginLeft:new x(120,h[12]),buttonTrayGap:new x(h[3],h[5]),termsOfAgreementMarginTop:new x(h[5],h[10]),contactAdminContainerMarginTop:new x(h[0],h[10]),contactAdminContainerMarginBottom:new x(h[4],h[0]),contactAdminContainerMarginLeftRight:new x(h[3],h[0])},T={promoBadgeText:new j("standardRegular","largeRegular"),promoBadgeTextBold:new j("standardBold","largeBold"),cardsContent:new j("extraSmallRegular","smallRegular"),contactAdmin:new j("extraSmallRegular","largeRegular"),uspText:new j("smallRegular","standardRegular"),uspBoldText:new j("smallMedium","standardMedium")},{common:U,spendManagement:{chargeCard:{chargeCardsPromo:o}}}=oe.getLocalizedStrings(),Lr=({meetingUrl:e,companyLegalName:s,chargeCardSetupView:i,showEnableCardButton:n,controllerEmails:p,isCreditCardProductVisible:m,isDebitCardFeatureEnabled:c,isDebitCardSetupEnabled:w,isChargeCardSetupEnabled:f,admins:v,cashbackRate:P,cardPromoType:u="credit",onSetupButtonClick:l,onBackClick:d,onClickMenuIcon:pe,onSetupChargeCardSuccess:q,onExpressInterestClick:me})=>{const he=G(),K=$e(),z=b(),Q=ye().analytics,{chargeCardTermsDetails:M,companyChargeCardInfo:C,companyLocaleInfo:_}=i,V=be(M?.fetchStatus.fetchState),[ge,W]=S.useState(!1),xe=()=>{Q.trackCardsPromoPageClicked("schedule demo"),Q.trackCardsScheduleDemoClick(p,{isCreditCardOffered:m,isDebitCardOffered:c,isDebitCardEnabled:w,isCreditCardEnabled:f},"Cards Promo"),W(!0)},ue=C!=null&&_!=null?je("0,0",{amount:C.chargeCardsCreditAccountLimit,currencyCode:_.currencyCode,currencySymbol:_.currencySymbol}):void 0;S.useEffect(()=>{V==="In-Progress"&&M?.fetchStatus.fetchState==="Completed"&&q()},[V,q,M?.fetchStatus]);const X=Se.hasChargeCardAdminLevelAccess(K.loggedInUserRoleMap),we=Te(K),E=u==="credit"&&C?.isCompanyInterestedInChargeCard===!1&&C.chargeCardsCreditAccountLimit===0,D=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===-1,F=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit===0,fe=u==="credit"&&C?.isCompanyInterestedInChargeCard===!0&&C.chargeCardsCreditAccountLimit>0,{expressInterestInChargeCardFetchState:Ce}=i,Y=E?o.getPreApprovedNow:n?o.enableCardsButton:o.setupCardsButton;return r.jsxs(qe,{children:[r.jsx(ze,{title:o.title[u],backgroundColor:he.colors.grey4,onBackClick:d,showBackButton:!0,showMenuIcon:z==="medium-compact"||z==="small",onClickMenuIcon:pe,style:{zIndex:9},source:"ChargeCardPromoPage"}),ge===!0?r.jsx(Fe,{onCancelClick:()=>{W(!1)},meetingUrl:e}):null,r.jsx(We,{windowSize:z,children:X===!0?r.jsxs(Ve,{children:[r.jsxs(Qe,{children:[r.jsx(Oe,{isApproved:fe,creditAmount:ue,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E}),r.jsx(ne,{cardPromoType:u,cashbackRate:P})]}),r.jsx(ae,{showEnableCardButton:n,cardPromoType:u,isUnderReview:F,isRejected:D,showExpressInterest:E})]}):r.jsx(He,{companyLegalName:s,cards:[],admins:v,cashbackRate:P,hasZeniFinopsRoles:we,cardPromoType:u})}),X&&!(F||D)?r.jsxs(ir,{windowSize:z,children:[r.jsx(Z,{variant:"secondary",label:o.scheduleDemoButton,style:{width:166},onClick:xe,"data-testid":ee("schedule-demo-button")}),r.jsx(Ke,{windowSize:z,children:o.orText}),r.jsx(Z,{variant:"primary",label:Y,style:{minWidth:166},loading:i.chargeCardTermsDetails?.fetchStatus.fetchState==="In-Progress"||Ce==="In-Progress",onClick:Y===o.getPreApprovedNow?me:()=>l(u),"data-testid":ee("enable-card-button")})]}):null]})},Ne=({admins:e})=>{const s=e.flatMap(n=>n.user?.firstName+" "+n.user?.lastName).join(", "),i=b();return r.jsxs(pr,{windowSize:i,children:[r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.pre}),r.jsx(Ae,{title:s,placement:"top-start",style:{padding:`2px ${t.sp2}`},children:r.jsx(N,{underline:!0,windowSize:i,children:o.noCardAssigned.tooltip})}),r.jsx(N,{underline:!1,windowSize:i,children:o.noCardAssigned.post})]})},ae=({cardPromoType:e,showEnableCardButton:s,isUnderReview:i,isRejected:n,showExpressInterest:p,isCardUser:m=!1})=>{const c=b();return r.jsx(tr,{windowSize:c,children:r.jsx(Ie,{topTermLabel:e==="credit"||e==="debit_and_credit"?o.terms.checkingAccountTerm:void 0,buttonTermLabel:i===!0||n===!0||m===!0?void 0:p===!0?o.terms.approvalTerm:s?o.terms.alternateTerm1:o.terms.terms1,showEndIcon:!1,showTerms:n===!1||m===!1,style:{marginTop:g.termsOfAgreementMarginTop.valuePx(c)}})})},Oe=({isApproved:e,cardPromoType:s,creditAmount:i,isUnderReview:n,isRejected:p,showExpressInterest:m})=>{const c=b(),w=s==="debit_and_credit"?o.promoTextDebitCreditCard:s==="debit"?o.promoTextDebitCard:o.promoTextCreditCard,f=e?r.jsxs(r.Fragment,{children:[o.promoBadgeText.approved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]}):m?r.jsxs(r.Fragment,{children:[o.promoBadgeText.nonPreApproved.get,r.jsx(er,{children:o.promoBadgeText.nonPreApproved.scale}),o.promoBadgeText.nonPreApproved.doubleStarred,U.strings.space,o.promoBadgeText.nonPreApproved.higherLimits]}):n?o.promoBadgeText.underReview:p?o.promoBadgeText.rejected:r.jsxs(r.Fragment,{children:[o.promoBadgeText.preApproved,r.jsx(te,{children:i}),o.creditLimit,U.strings.space]});return r.jsxs(r.Fragment,{children:[r.jsx(r.Fragment,{children:c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]})}),r.jsxs(Ye,{cardPromoType:s,hideBadge:i==null||s==="debit",windowSize:c,children:[n||p||m?null:r.jsx(Cr,{}),r.jsx(Ze,{windowSize:c,children:f})]})]})},He=({companyLegalName:e,cards:s,admins:i,cashbackRate:n,hasZeniFinopsRoles:p,cardPromoType:m="credit"})=>{const c=b(),w=m==="debit_and_credit"?o.promoTextDebitCreditCard:m==="debit"?o.promoTextDebitCard:o.promoTextCreditCard;return r.jsxs(r.Fragment,{children:[c==="small"?r.jsxs(r.Fragment,{children:[r.jsx(le,{children:w}),r.jsx(ce,{children:o.promoSubText})]}):r.jsxs(r.Fragment,{children:[r.jsx(se,{children:w}),r.jsx(de,{children:o.promoSubText})]}),s.length===0?r.jsx(cr,{windowSize:c}):r.jsx(Ge,{cards:s,companyLegalName:e}),r.jsx(ne,{cardPromoType:m,cashbackRate:n}),p?null:r.jsx(Ne,{admins:i}),r.jsx(ae,{isCardUser:!0,showEnableCardButton:!1,cardPromoType:m})]})},Ge=({cards:e,companyLegalName:s})=>{const i=G(),n=b();let p="",m;if(e.length===1){m=e[0].cardCreatedByUser.photo;const c=e[0].cardCreatedByUser.firstName+" "+e[0].cardCreatedByUser.lastName;p=o.cardAssigned.singleCreditCard.replace("__issuing-user__",c).replace("__company-name__",s)}else p=o.cardAssigned.multipleCreditCards.replace("__company-name__",s);return r.jsxs(hr,{children:[m!=null?r.jsx(Xe,{width:t.sp5,height:t.sp5,style:{paddingTop:n==="small"?t.sp1:t.sp0},src:m.href,alt:oe.getLocalizedStrings().cockpit.userProfileAltText,onError:({currentTarget:c})=>{c.onerror=null,c.src=Be},loading:"lazy"}):null,r.jsx(mr,{windowSize:n,mode:i.mode,children:r.jsx(gr,{windowSize:n,children:p})})]})},re=({windowSize:e,cardPromoType:s})=>{let i=o.businessText;return s==="debit"&&(i=`${i} ${o.debit}`),r.jsx(r.Fragment,{children:s==="debit_and_credit"?r.jsx(Je,{}):r.jsxs(ar,{windowSize:e,children:[r.jsx(O,{cardPromoType:s,cardText:i,shouldAnimate:!0,showChip:!0,forDashboard:!1,forListPage:!1}),r.jsx(H,{cardPromoType:s,cardText:i,showChip:!0,forDashboard:!1,shouldAnimate:!0,forListPage:!1})]})})},ne=({cardPromoType:e,cashbackRate:s})=>{const i=b(),n=o.benefits;return r.jsxs(rr,{windowSize:i,children:[i==="small"?r.jsx(re,{windowSize:i,cardPromoType:e}):null,r.jsxs(or,{windowSize:i,children:[r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(dr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item1.pre}),r.jsx(A,{windowSize:i,children:n.item1.bold.replace("__cashback__",(s*100).toFixed(2))}),r.jsx(y,{windowSize:i,children:`${e==="credit"||e==="debit_and_credit"?n.singleStarred:""}${n.item1.post}`})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(nr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item2.pre}),r.jsx(A,{windowSize:i,children:n.item2.bold}),r.jsx(y,{windowSize:i,children:n.item2.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(lr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item3.pre}),r.jsx(A,{windowSize:i,children:n.item3.bold}),r.jsx(y,{windowSize:i,children:n.item3.post})]})]}),r.jsxs(B,{windowSize:i,children:[r.jsx(I,{children:r.jsx(sr,{})}),r.jsxs(L,{children:[r.jsx(y,{windowSize:i,children:n.item4.pre}),r.jsx(A,{windowSize:i,children:n.item4.bold}),r.jsx(y,{windowSize:i,children:n.item4.post})]})]})]}),i==="small"?null:r.jsx(re,{windowSize:i,cardPromoType:e})]})};let k;const Je=()=>{const e=b(),s=G(),[i,n]=S.useState(0),[p,m]=S.useState(!1),c=o.businessText,w=`${c} ${o.debit}`,f=[{id:1,cardType:"debit",cardText:w},{id:2,cardType:"debit",cardText:w},{id:3,cardType:"credit",cardText:c},{id:4,cardType:"credit",cardText:c}];S.useEffect(()=>(p||(k=setInterval(()=>{n(l=>{const d=l+1;return d===f.length?(m(!0),0):d})},2e3)),()=>clearInterval(k)),[p,f.length]),S.useEffect(()=>{p&&k!=null&&clearInterval(k)},[p]);const v=(l,d)=>{switch((l-i+f.length)%f.length){case 0:return{transform:`translate(0,${d?"100%":0}) scale(1)`,zIndex:d?5:6,opacity:1,transition:"transform 0.4s"};case 1:return{transform:`translate(35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};case 2:return{transform:`translate(35%,${d?"80%":"5%"}) scale(0.75)`,zIndex:d?3:4,opacity:0,transition:"transform 0.4s 0.2s, opacity 0.4s 0.0s"};case 3:return{transform:`translate(-35%, ${d?"80%":"5%"}) scale(0.75)`,zIndex:d?4:5,opacity:1,transition:"all 0.4s"};default:return}},P=l=>{const d=v(l,!0);return{...d,transform:`${d?.transform} scaleY(-1)`,opacity:1,transition:"transform 0s 0s, z-index 0s 0s"}},u=l=>{p||m(!0),n(l)};return r.jsxs(xr,{windowSize:e,children:[r.jsx(ur,{windowSize:e,children:f.map((l,d)=>r.jsxs(wr,{children:[r.jsx(ie,{isReflection:!1,style:{...v(d,!1)},onClick:()=>u(d),children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,showChip:!0,forDashboard:!1,forListPage:!1,style:{borderColor:s.colors.grey2,...s.mode==="light"&&{borderBottom:"none"}}})},l.id),r.jsx(ie,{isReflection:!0,style:{...P(d)},children:d===0||d===2?r.jsx(O,{cardPromoType:l.cardType,cardText:l.cardText,shouldAnimate:!1,forDashboard:!1,showChip:!0,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent 90%)",WebkitMaskImage:"linear-gradient(to top, black, transparent 90%)"}}):r.jsx(H,{cardPromoType:l.cardType,cardText:l.cardText,showChip:!0,shouldAnimate:!1,forDashboard:!1,forListPage:!1,style:{border:"none",opacity:.1,maskImage:"linear-gradient(to top, black, transparent)",WebkitMaskImage:"linear-gradient(to top, black, transparent)"}})},`reflection-${l.id}`)]},l.id))}),p&&r.jsx(Ue,{numberOfDots:f.length,activeIndex:i,handleClick:n,promoColor:s.colors.primary,promoColorHover:s.colors.grey5,spendManagementPromoCardActive:!0,dotStyle:{width:t.sp2,height:t.sp2},style:{cursor:"default",position:"absolute",bottom:g.navigationBottom.valuePx(e),left:g.navigationLeft.valuePx(e),zIndex:7}})]})},qe=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  min-height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as Ie,q as Ve,a9 as Ue,aP as H,aa as Be,cS as _e,l as ze,O as Re,aU as G,j as t,fn as $e,h as Le,y as r,bF as We,P as qe,ad as Ne,e6 as Me,o as B,C as He,bA as Ge,aQ as Ke,u as a,am as Je}from"./index-D94hlokH.js";import{b as p,n as S}from"./vendor-Bs1fkIUX.js";import{D as Qe}from"./HelpButton-B2amus4B-DejCwWuG.js";import{K as Xe}from"./SetUpDefaultSection-Dko6eOr--DSAIqPKL.js";import{f as Ye,y as K}from"./SpendMgmtSetupAccountSection-C7WofOL3-C_mHdj1H.js";import{x as Ze}from"./LabeledControlledCheckBoxField-D3legl2B-CCkkJ4fv.js";import{g as et}from"./UploadAdditionalDocumentOverlay-BzWXbm7_-BYxLpWvz.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-C1bMV1I3-DBaPSnGq.js";import"./ChargeCardUtils-CHhHodZN-6DoofQsj.js";import"./CreditCardPaymentPlgSection-CfIXTZi1-BWmvJdS4.js";import"./ChaseOverlay-laPjyJU7-DF7Or1ye.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},J="chargeCardSetUpPage",h="payAccount",{commonSetUp:tt,spendManagement:nt}=Re.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:_}=tt,Tt=({autoPayThreshold:e,isDisabled:P,meetingUrl:T,isEarlyPayEnabled:f,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:le,onUpdateChargeCardClick:se,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:he,onEstablishConnectionSuccess:fe,onClickMenuIcon:ge,onEnableChargeCardSuccess:x,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:Pe,onSignUpClick:xe})=>{const g=Ie(),i=Ve(),v=Ue().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:R,selectedCompanyOfficer:l,primaryFundingAccount:s,allFundingAccounts:$}=o,L=H(b),A=H(d.fetchState),j=Be({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>Q(o),[o]),values:Q(o)}),Ee=j.handleSubmit(le),ve=async(C,k)=>{const n=k[h];if(C.includes(h))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&s?.id!=n.fundingAccount.selectedOption){const u=$.find(U=>U.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&s?.id!=null&&s?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(U=>U.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&v.trackConnectBankLink(u.value,u.label,"charge_cards"),se(n.account.selectedOption,s.id,s.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&_e(()=>ve(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[l,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,A,d.fetchState]);const D=F?.isChargeCardEnabled===!0,O=R?.isDebitCardEnabled===!0,W=R?.isDebitCardTOSAccepted===!0,q=F?.isChargeCardTOSAccepted===!0,N=z?.isBusinessVerified===!0,Fe=s?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(s?.providerVerificationStatus?.code??""),I=E?N:N&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,A,d.fetchState]);const V=E?I&&!O&&W:ie?I&&!D&&q:I&&!(D&&O)&&q&&W,De=V?m.setupSubTitleNotEnabled:m.setupSubTitle,M=g.mode==="light"?new G(g.colors.brandColorJadeLight):new G(g.colors.brandColorJadeDark),Oe=()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx($e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:l,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:Pe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!D&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ge,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:De}),je?t.jsx(ct,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...j,children:t.jsx("form",{id:X(J),onSubmit:Ee,children:t.jsxs(lt,{windowSize:i,children:[t.jsx(Xe,{onClick:Oe,title:_.businessVerificationTitle,subTitle:_.businessVerificationSubTitle,header:_.businessVerificationHeader,icon:{element:t.jsx(Me,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:M},status:z?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),E?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:s,allFundingAccounts:$,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:h,isDisabled:P,onFetchLinkTokenClick:ae,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:M},analytics:v,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:xe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:f?{marginBottom:"20px"}:{},bottomComponent:f&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...He.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:K(h,"enableAutoPay"),checkBoxValue:K(h,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),V?t.jsx(Ke,{formId:X(J),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:P!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Qe,{isFooterRendered:V,meetingUrl:T,analytics:v,productType:"charge_cards"})]})},Q=e=>{const{allBankAccounts:P,allFundingAccounts:T,primaryFundingAccount:f}=e;return{[h]:{fundingAccount:{selectedOption:f?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:f?.zeniAccountId,allOptions:P.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},X=e=>`${e}_form`,it=S.div`
1
+ import{d as Ie,q as Ve,a9 as Ue,aP as H,aa as Be,cS as _e,l as ze,O as Re,aU as G,j as t,fn as $e,h as Le,y as r,bF as We,P as qe,ad as Ne,e6 as Me,o as B,C as He,bA as Ge,aQ as Ke,u as a,am as Je}from"./index-sAOH0Fje.js";import{b as p,n as S}from"./vendor-Bs1fkIUX.js";import{D as Qe}from"./HelpButton-BNMy-6ce-WFq-iELy.js";import{K as Xe}from"./SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js";import{f as Ye,y as K}from"./SpendMgmtSetupAccountSection-de7hEmtE-CX-1PNOC.js";import{x as Ze}from"./LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js";import{g as et}from"./UploadAdditionalDocumentOverlay-DhXRLBEg-DvVrgitE.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js";import"./ChargeCardUtils-BRgkrCTs-DoVoCmwL.js";import"./CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js";import"./ChaseOverlay-BC_4vwtb-ZJ37WP7g.js";const c={titleWidth:new r(343,580,726,826),setupDetailsRowGap:new r(12,a[5],a[5]),sectionRowGap:new r(a[5],a[9],a[9]),iconWidthHeight:new r(20,a[4]),subTitlePaddingTop:new r(12,a[3]),subTitlePaddingBottom:new r(a[3],a[3]),overlayWidth:new r(100,100,59),checkBoxTop:new r(a[1],a[0])},J="chargeCardSetUpPage",h="payAccount",{commonSetUp:tt,spendManagement:nt}=Re.getLocalizedStrings(),{chargeCard:Y}=nt,{chargeCardSetUp:m}=Y,{setUp:_}=tt,Tt=({autoPayThreshold:e,isDisabled:P,meetingUrl:T,isEarlyPayEnabled:f,chargeCardSetUpView:o,connectedAccountProvider:Z,filesEndPoint:ee,authParams:te,isAccountsEnabled:ne,isDebitCardOnlyEnabled:E,isCreditCardOnlyEnabled:ie,accountsPromoConfig:oe,onFetchLinkTokenClick:ae,onBackClick:ce,onEnableChargeCardClick:le,onUpdateChargeCardClick:se,onBusinessVerificationSectionClick:re,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,onUpdatePrimaryFundingAccount:pe,onUpdateAutoPayClick:me,onEstablishConnectionClick:he,onEstablishConnectionSuccess:fe,onClickMenuIcon:ge,onEnableChargeCardSuccess:x,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,onCompanyOfficerUpdated:Se,onSendForVerificationClick:Pe,onSignUpClick:xe})=>{const g=Ie(),i=Ve(),v=Ue().analytics,[w,y]=p.useState(!1),{fetchState:b,companyBillPayInfo:z,isRefreshingViewInBackground:we,updateStatus:d,accountUpdateStatus:Ae,plaidConnectionDetails:ke,allBankAccounts:Te,companyChargeCardInfo:F,companyDebitCardInfo:R,selectedCompanyOfficer:l,primaryFundingAccount:s,allFundingAccounts:$}=o,L=H(b),A=H(d.fetchState),j=Be({mode:"all",reValidateMode:"onChange",defaultValues:p.useMemo(()=>Q(o),[o]),values:Q(o)}),Ee=j.handleSubmit(le),ve=async(C,k)=>{const n=k[h];if(C.includes(h))if(C.includes("fundingAccount")){if(n.fundingAccount.selectedOption!=null&&s?.id!=n.fundingAccount.selectedOption){const u=$.find(U=>U.id===n.fundingAccount.selectedOption);u!=null&&pe(n.fundingAccount.selectedOption,u.accType)}}else if(n.account.selectedOption!=null&&s?.id!=null&&s?.zeniAccountId!=n.account.selectedOption){const u=n.account.allOptions.find(U=>U.value===n.account.selectedOption);u!=null&&typeof u.label=="string"&&v.trackConnectBankLink(u.value,u.label,"charge_cards"),se(n.account.selectedOption,s.id,s.accType)}else C.includes("enableAutoPay")&&n.enableAutoPay!=null&&me(n.enableAutoPay)};p.useEffect(()=>{const C=j.watch((k,{name:n})=>{n!=null&&k!=null&&_e(()=>ve(n,k))});return()=>{C.unsubscribe()}}),p.useEffect(()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"&&y(!0),w&&L==="In-Progress"&&b==="Completed"&&y(!1)},[l,b,L]),p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,A,d.fetchState]);const D=F?.isChargeCardEnabled===!0,O=R?.isDebitCardEnabled===!0,W=R?.isDebitCardTOSAccepted===!0,q=F?.isChargeCardTOSAccepted===!0,N=z?.isBusinessVerified===!0,Fe=s?.accType==="depositAccount"||ze.isVerifiedPaymentAccountProviderStatusCode(s?.providerVerificationStatus?.code??""),I=E?N:N&&Fe,je=b==="In-Progress"||b==="Not-Started";p.useEffect(()=>{A==="In-Progress"&&d.fetchState==="Completed"&&x()},[x,A,d.fetchState]);const V=E?I&&!O&&W:ie?I&&!D&&q:I&&!(D&&O)&&q&&W,De=V?m.setupSubTitleNotEnabled:m.setupSubTitle,M=g.mode==="light"?new G(g.colors.brandColorJadeLight):new G(g.colors.brandColorJadeDark),Oe=()=>{!w&&l?.additionalDocumentTypesRequestedForVerification.includes("social_security_card")===!0&&l.areAdditionalDocumentsRequestedForVerification&&!l.areAdditionalDocumentsSubmittedForVerification&&l.userVerificationStatus?.code==="require_info"?y(!0):re?.()};return t.jsxs(ot,{children:[t.jsx($e,{anchor:"right",PaperProps:{style:{width:c.overlayWidth.valuePercentage(i),boxShadow:"none"}},open:w,onClose:()=>y(!1),style:{backgroundColor:Le.drawerBackground},transitionDuration:250,children:t.jsx(et,{authParams:te,filesEndPoint:ee,updateStatus:d,onEditFileName:ye,onDeleteFile:be,updateFilesEntity:Ce,companyOfficer:l,onClose:()=>y(!1),onCompanyOfficerUpdated:Se,onSendForVerificationClick:Pe})}),t.jsx(We,{title:m.setupTitle,backgroundColor:g.colors.grey4,style:{zIndex:3},onBackClick:ce,showMenuIcon:!D&&!O&&(i==="medium-compact"||i==="small"),onClickMenuIcon:ge,source:"ChargeCardSetupPage"}),t.jsxs(it,{windowSize:i,children:[t.jsx(at,{windowSize:i,children:De}),je?t.jsx(ct,{children:t.jsx(qe,{size:"ExtraLarge",start:!0})}):t.jsx(Ne,{...j,children:t.jsx("form",{id:X(J),onSubmit:Ee,children:t.jsxs(lt,{windowSize:i,children:[t.jsx(Xe,{onClick:Oe,title:_.businessVerificationTitle,subTitle:_.businessVerificationSubTitle,header:_.businessVerificationHeader,icon:{element:t.jsx(Me,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:M},status:z?.businessVerificationStatus,isLoading:we,isActiveWhileLoading:!0}),E?null:t.jsx(Ye,{connectedAccountProvider:Z,primaryFundingAccount:s,allFundingAccounts:$,plaidConnectionDetails:ke,allBankAccounts:Te,sectionId:h,isDisabled:P,onFetchLinkTokenClick:ae,onEstablishConnectionClick:he,onUpdatePaymentAccountStatus:de,onUpdatePaymentAccountLoginStatus:ue,sectionTitle:m.setupAccountSectionTitle,onEstablishConnectionSuccess:fe,icon:{element:t.jsx(Ge,{width:c.iconWidthHeight.valuePx(i),height:c.iconWidthHeight.valuePx(i)}),color:M},analytics:v,productType:"charge_cards",isAccountsEnabled:ne,onSignUpClick:xe,pageName:m.pageName,accountsPromoConfig:oe,accountSelectContainerStyle:f?{marginBottom:"20px"}:{},bottomComponent:f&&t.jsx(Ze,{label:{label:Y.payEarly.enableAutoPay.replace("__autoPayThreshold__",e.toString()),style:{color:g.colors.primary,...He.smallRegular.cssObject,alignItems:"center"}},style:{width:"unset",marginRight:B.sp4,marginTop:B.sp1,alignItems:i==="small"?"flex-start":"center"},checkBoxField:{name:K(h,"enableAutoPay"),checkBoxValue:K(h,"enableAutoPay"),defaultChecked:F?.isAutoPayEnabled,style:{top:c.checkBoxTop.valuePx(i)}}})})]})})})]}),V?t.jsx(Ke,{formId:X(J),primaryBtn:{label:m.enableAccounts,style:{width:"auto",minWidth:i==="small"?"auto":"181px"},isLoading:d.fetchState==="In-Progress"||Ae.fetchState==="In-Progress",isDisabled:P!=null},showCancel:!1,cancelBtn:{label:""},style:{padding:`12px ${B.sp3}`}}):null,t.jsx(Qe,{isFooterRendered:V,meetingUrl:T,analytics:v,productType:"charge_cards"})]})},Q=e=>{const{allBankAccounts:P,allFundingAccounts:T,primaryFundingAccount:f}=e;return{[h]:{fundingAccount:{selectedOption:f?.id,allOptions:T.map(o=>({label:o.label,value:o.id,isRecommended:o.accType==="depositAccount"}))},account:{selectedOption:f?.zeniAccountId,allOptions:P.map(o=>({label:o.accountName,value:o.accountId}))},enableAutoPay:e.companyChargeCardInfo?.isAutoPayEnabled}}},X=e=>`${e}_form`,it=S.div`
2
2
  display: flex;
3
3
  justify-content: flex-start;
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- import{d as F,q as T,j as t,bF as W,O as R,o as h,y as g,am as B,b8 as O,a9 as q,hK as V,aM as H,P as J,u as s,ch as K}from"./index-D94hlokH.js";import{n as i,b as U}from"./vendor-Bs1fkIUX.js";import{$ as _,g as G}from"./BoxItem-CvQS_sLm-D_wBZcaU.js";import{w as Q}from"./downloadPdf-D3hiuG-R-CfWEq2eL.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./commonDimensions-Dq7P0AE6-Cdz-7EJl.js";const Y=R.getLocalizedStrings().months,D={downloadButtonSize:new g(s[4],20)},X=i.div`
1
+ import{d as F,q as T,j as t,bF as W,O as R,o as h,y as g,am as B,b8 as O,a9 as q,hK as V,aM as H,P as J,u as s,ch as K}from"./index-sAOH0Fje.js";import{n as i,b as U}from"./vendor-Bs1fkIUX.js";import{$ as _,g as G}from"./BoxItem-COIjjFrn-DqU4ZyNU.js";import{w as Q}from"./downloadPdf-D7p3yKmg-CYmmjPHt.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./commonDimensions-C32v1F7H-CiAEfJl2.js";const Y=R.getLocalizedStrings().months,D={downloadButtonSize:new g(s[4],20)},X=i.div`
2
2
  display: flex;
3
3
  padding: ${h.sp3} ${h.sp4};
4
4
  flex-direction: row;
@@ -1 +1 @@
1
- import{f_ as D,O as S,dN as c,l as F}from"./index-D94hlokH.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(F.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},B=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:B(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)},M=(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{B as F,L as H,U as L,M,b as S,A as U,Y as _};
1
+ import{f_ as D,O as S,dN as c,l as F}from"./index-sAOH0Fje.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(F.dateNow()))&&a===!1?(r(!0),d("verify card details")):e?.token!=null&&a===!1?t(!0):e?.token!=null&&a===!0&&t(!1)},B=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:B(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)},M=(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{B as F,L as H,U as L,M,b as S,A as U,Y as _};
@@ -1,4 +1,4 @@
1
- import{q as H,fX as Q,fY as Z,O as W,j as t,h as x,ap as ee,n as B,aM as c,o as s,y as g,ar as te,am as ie,b8 as se,cd as oe,dY as re,u as l,b9 as R,M as U,aT as ne,fZ as le,ai as ae,dd as de,bz as ce}from"./index-D94hlokH.js";import{b as p,n as o}from"./vendor-Bs1fkIUX.js";const u={width:new g(350,624,624),height:new g(600,730,730),paddingLeft:new g(l[4],l[8],l[8]),paddingRight:new g(l[4],l[7],l[7])};function Oe(e){const d=H(),[,_]=Q(),{isMobileOrTabletScreen:m}=Z(),[w,k]=p.useState(!0),[y,S]=p.useState(!0),[z,T]=p.useState(!1),[C,L]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,V=r.title,q=r.description,J=()=>{window.open(r.chaseVideoUrl,"_blank")},D=[0,1,2,3],M=i=>i<D.length-1,P=(i,n)=>{_(i??""),n?k(!1):S(!1)},O=i=>{i?T(!0):L(!0)},A=i=>{i?T(!1):L(!1)};p.useEffect(()=>{w===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[w,y]);const K=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Te,{"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]})},X=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},Y=()=>{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(Ce,{children:[t.jsxs(f,{onClick:()=>P(n,!0),onMouseOver:()=>O(!0),onMouseLeave:()=>A(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),w?t.jsxs(h,{children:[t.jsx(N,{showCopyText:z&&!m,windowSize:d,children:t.jsx(E,{})}),t.jsx(j,{shouldDisplay:z&&!m,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(I,{}),t.jsx(j,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>P(i.payeeName,!1),onMouseOver:()=>O(!1),onMouseLeave:()=>A(!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(N,{showCopyText:C&&!m,windowSize:d,children:t.jsx(E,{})}),t.jsx(j,{shouldDisplay:C&&!m,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(I,{}),t.jsx(j,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Le,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},F=()=>{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(K,{});case 1:return t.jsx(X,{});case 2:return t.jsx(Y,{});default:return t.jsx(F,{})}};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(De,{children:[t.jsx(xe,{children:V}),t.jsx(me,{children:q}),t.jsx(we,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:D.map((i,n)=>t.jsxs(ge,{children:[t.jsx(fe,{children:M(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),M(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(je,{children:[t.jsx(B,{variant:"secondary",label:r.primaryButtonText,onClick:J,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(B,{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{q as H,fX as Q,fY as Z,O as W,j as t,h as x,ap as ee,n as B,aM as c,o as s,y as g,ar as te,am as ie,b8 as se,cd as oe,dY as re,u as l,b9 as R,M as U,aT as ne,fZ as le,ai as ae,dd as de,bz as ce}from"./index-sAOH0Fje.js";import{b as p,n as o}from"./vendor-Bs1fkIUX.js";const u={width:new g(350,624,624),height:new g(600,730,730),paddingLeft:new g(l[4],l[8],l[8]),paddingRight:new g(l[4],l[7],l[7])};function Oe(e){const d=H(),[,_]=Q(),{isMobileOrTabletScreen:m}=Z(),[w,k]=p.useState(!0),[y,S]=p.useState(!0),[z,T]=p.useState(!1),[C,L]=p.useState(!1),r=W.getLocalizedStrings().commonSetUp.chaseOverlay,V=r.title,q=r.description,J=()=>{window.open(r.chaseVideoUrl,"_blank")},D=[0,1,2,3],M=i=>i<D.length-1,P=(i,n)=>{_(i??""),n?k(!1):S(!1)},O=i=>{i?T(!0):L(!0)},A=i=>{i?T(!1):L(!1)};p.useEffect(()=>{w===!1&&setTimeout(()=>{k(!0)},2e3),y===!1&&setTimeout(()=>{S(!0)},2e3)},[w,y]);const K=()=>{const i=r.step1;return t.jsxs($,{children:[t.jsx(Te,{"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]})},X=()=>{const i=r.step2;return t.jsxs($,{children:[i.text1,t.jsxs(a,{children:[" ",t.jsx(be,{}),i.text2]}),t.jsx(ke,{}),i.text3]})},Y=()=>{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(Ce,{children:[t.jsxs(f,{onClick:()=>P(n,!0),onMouseOver:()=>O(!0),onMouseLeave:()=>A(!0),"data-testid":c("copy-payee-id",n),children:[t.jsx(v,{}),i.payeeIdTitle,t.jsx(b,{children:n}),w?t.jsxs(h,{children:[t.jsx(N,{showCopyText:z&&!m,windowSize:d,children:t.jsx(E,{})}),t.jsx(j,{shouldDisplay:z&&!m,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(I,{}),t.jsx(j,{children:i.copied})]})]}),t.jsxs(f,{onClick:()=>P(i.payeeName,!1),onMouseOver:()=>O(!1),onMouseLeave:()=>A(!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(N,{showCopyText:C&&!m,windowSize:d,children:t.jsx(E,{})}),t.jsx(j,{shouldDisplay:C&&!m,children:i.copy})]}):t.jsxs(h,{children:[t.jsx(I,{}),t.jsx(j,{children:i.copied})]})]}),t.jsxs(f,{children:[t.jsx(h,{children:t.jsx(v,{})}),t.jsxs(Le,{children:[i.amountLimitTitle,i.text4,t.jsx(b,{children:i.amountLimit}),i.text5]})]})]})]})},F=()=>{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(K,{});case 1:return t.jsx(X,{});case 2:return t.jsx(Y,{});default:return t.jsx(F,{})}};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(De,{children:[t.jsx(xe,{children:V}),t.jsx(me,{children:q}),t.jsx(we,{children:r.stepsTitle}),t.jsx(ue,{windowSize:d,children:D.map((i,n)=>t.jsxs(ge,{children:[t.jsx(fe,{children:M(n)?n+1:t.jsx(Se,{})}),t.jsx(ve,{children:G(n)}),M(n)&&t.jsx(ye,{})]},`step_${n}`))})]}),t.jsx($e,{}),t.jsxs(je,{children:[t.jsx(B,{variant:"secondary",label:r.primaryButtonText,onClick:J,style:{width:134,whiteSpace:"nowrap"},"data-testid":c("chase-overlay-watch-video-button")}),t.jsx(ze,{}),t.jsx(B,{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{q as Z,j as t,aM as $,hI as pe,O as ee,aN as M,n as X,o,aQ as he,y as c,A as oe,s as ue,b8 as me,_ as te,ai as ge,am as F,aP as xe,aa as fe,cS as ke,h as w,ad as De,gm as $e,cV as we,f8 as Y,d0 as G,u as s,fB as be,cw as ye,ce as je,dm as Pe,fS as Se,an as q,fU as Le}from"./index-D94hlokH.js";import{b as k,n as a}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",E=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}`,Be=e=>`${e}_form`,u={largeLabelWidth:new c(160,160,160),rowContentPaddingLeft:new c(s[3],s[4]),checkPicRowContentPaddingXAxis:new c(s[3],s[4]),labeleMarginLeft:new c(s[0],s[0]),labeleMarginBottom:new c(s[2],s[0]),labelMarginRight:new c(s[3],s[3]),labeledFieldPaddingLeft:new c(s[3],s[0]),labeledFieldPaddingRight:new c(s[3],s[2]),labeledFieldPaddingTop:new c(s[3],s[3]),labeledFieldPaddingBottom:new c(s[3],s[2]),infoLabelPaddingRight:new c(s[0],s[3]),infoLabelMarginTop:new c(s[1],s[0])},{spendManagement:ze,common:V}=ee.getLocalizedStrings(),l=ze.zeniAccounts.zeniAccountList,Ae=V.documents;function Ie({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,_]=k.useState(!1),[se,B]=k.useState(!1),z=u.largeLabelWidth.value(r),f=fe({mode:"all",reValidateMode:"onBlur",defaultValues:E(e),values:E(e)}),{isValid:re}=f.formState,W=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)},le=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);W(h)}};k.useEffect(()=>{const i=f.watch((d,{name:h})=>{h!=null&&d!=null&&ke(()=>le(h,d))});return()=>{i.unsubscribe()}}),k.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&f.reset(E(e))},[L,n,f,e]),k.useEffect(()=>{e.error!=null?B(!0):B(!1)},[e.error]);const ce=f.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=f.getValues();W(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(I=>I.id===i),A=e.depositAccounts.depositAccounts.findIndex(I=>I.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(_e,{children:[t.jsx(Xe,{}),t.jsxs(Ye,{children:[t.jsx(Ge,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(We,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),B(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Ke,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:Be(ve),onSubmit:ce,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:l.checkDepositDrawer.amountLabel,width:z},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:l.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate: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:l.checkDepositDrawer.sourceLabel,width:z},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:l.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:l.checkDepositDrawer.depositToLabel,width:z,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:l.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(Ee,{children:l.checkDepositDrawer.checkPicLabel}),t.jsx(K,{isLast:!1,children:l.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"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>_(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(K,{isLast:!0,children:l.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"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>_(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:l.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 Ee=a(F)`
1
+ import{q as Z,j as t,aM as $,hI as pe,O as ee,aN as M,n as X,o,aQ as he,y as c,A as oe,s as ue,b8 as me,_ as te,ai as ge,am as F,aP as xe,aa as fe,cS as ke,h as w,ad as De,gm as $e,cV as we,f8 as Y,d0 as G,u as s,fB as be,cw as ye,ce as je,dm as Pe,fS as Se,an as q,fU as Le}from"./index-sAOH0Fje.js";import{b as k,n as a}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const ve="checkDepositDetailPage",g="checkDepositDetails",Fe="amount",Ce="depositTo",Te="source",ie="fileIds",R="selectDocument",E=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}`,Be=e=>`${e}_form`,u={largeLabelWidth:new c(160,160,160),rowContentPaddingLeft:new c(s[3],s[4]),checkPicRowContentPaddingXAxis:new c(s[3],s[4]),labeleMarginLeft:new c(s[0],s[0]),labeleMarginBottom:new c(s[2],s[0]),labelMarginRight:new c(s[3],s[3]),labeledFieldPaddingLeft:new c(s[3],s[0]),labeledFieldPaddingRight:new c(s[3],s[2]),labeledFieldPaddingTop:new c(s[3],s[3]),labeledFieldPaddingBottom:new c(s[3],s[2]),infoLabelPaddingRight:new c(s[0],s[3]),infoLabelMarginTop:new c(s[1],s[0])},{spendManagement:ze,common:V}=ee.getLocalizedStrings(),l=ze.zeniAccounts.zeniAccountList,Ae=V.documents;function Ie({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,_]=k.useState(!1),[se,B]=k.useState(!1),z=u.largeLabelWidth.value(r),f=fe({mode:"all",reValidateMode:"onBlur",defaultValues:E(e),values:E(e)}),{isValid:re}=f.formState,W=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)},le=async(i,d)=>{if(i!=null){if(i.includes("source")||i.includes("amount"))return;const h=Object.assign({},d);W(h)}};k.useEffect(()=>{const i=f.watch((d,{name:h})=>{h!=null&&d!=null&&ke(()=>le(h,d))});return()=>{i.unsubscribe()}}),k.useEffect(()=>{L==="Completed"&&n==="Not-Started"&&f.reset(E(e))},[L,n,f,e]),k.useEffect(()=>{e.error!=null?B(!0):B(!1)},[e.error]);const ce=f.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=f.getValues();W(i),T?.()}}),ne=(i,d)=>{if(!i)return null;const h=e.depositAccounts.depositAccounts.find(I=>I.id===i),A=e.depositAccounts.depositAccounts.findIndex(I=>I.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(_e,{children:[t.jsx(Xe,{}),t.jsxs(Ye,{children:[t.jsx(Ge,{children:e.error?.title}),t.jsx(Je,{children:e.error?.message})]})]}),t.jsx(We,{children:t.jsx(ro,{"data-testid":$("check-deposit-form-close"),onClick:()=>{p.trackAccountsDepositCheckFormClicked("Cross",e.checkDepositLocalData.amount.amount,e.checkDepositLocalData.source,e.checkDepositLocalData.depositTo?.accountName,e.checkFront!=null,e.checkBack!=null),B(!1)},style:{width:o.sp3,height:o.sp3,color:w.heroLight}})})]})}):null,t.jsx(Ke,{children:M("0,0.[00]",e.checkDepositLocalData.amount)}),t.jsx(De,{...f,children:t.jsx("form",{id:Be(ve),onSubmit:ce,children:t.jsxs(He,{children:[t.jsx($e,{showAdditionalInfoLabel:!1,label:{label:l.checkDepositDrawer.amountLabel,width:z},formattedTextField:{type:"number",name:D(g,"amount"),defaultValue:e.checkDepositLocalData.amount.amount===0?void 0:e.checkDepositLocalData.amount.amount,placeholder:l.checkDepositDrawer.amountPlaceholder,returnValueType:"floatValue",prefix:"$",allowNegative:!1,isNumericString:!1,registerOptions:{required:!0,validate: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:l.checkDepositDrawer.sourceLabel,width:z},style:{width:"100%"},text:{type:"text",name:D(g,"source"),defaultValue:e.checkDepositLocalData.source,placeholder:l.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:l.checkDepositDrawer.depositToLabel,width:z,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:l.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(Ee,{children:l.checkDepositDrawer.checkPicLabel}),t.jsx(K,{isLast:!1,children:l.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"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"front"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>_(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.frontSideError,useMobileCam:!0,compressImage:!0}),t.jsx(K,{isLast:!0,children:l.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"?l.checkDepositDrawer.uploadDocument:l.checkDepositDrawer.dragDropClickPlaceholder,filemetadataPayload:{documentType:"check",purposeId:"others",documentSide:"back"},hasError:v,updateFilesEntity:j,onDeleteFile:P,onFileSizeError:i=>_(i),onEditFileName:S,openPopup:b,showPhotoPicker:!0,errorInfoLabel:l.checkDepositDrawer.backSideError,useMobileCam:!0,compressImage:!0}),t.jsx(io,{children:l.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 Ee=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,b3 as po,aM as m,bY as fe,aN as q,dE as go,o as c,h as ee,aP as hi,q as M,aC as ui,az as fo,dF as pi,dG as xo,l as A,O as W,u as w,dH as Vi,dI as Ot,aU as _,dJ as Mt,cp as Nt,dK as It,y as D,df as Pt,ax as Di,ab as Je,dL as Ne,b_ as K,P as mo,d as ce,a$ as Ri,dM as Gi,aV as V,ao as Ae,dN as wo,dO as se,co as zt,cd as gi,ai as yo,an as ye,dP as Xe,dQ as Be,dR as tt,am as C,cw as ne,dS as bo,C as Ft,dT as Re,dU as fi,dV as xi,dW as ko,dX as jo,b8 as Ei,b5 as So,cM as Tt,cL as Vt,dY as Co,b6 as Hi,cP as Ki,c3 as $o,dZ as vo,d_ as mi,d$ as wi,e0 as _o,e1 as Lo,c5 as Ao,bP as Bo,e2 as Wo}from"./index-D94hlokH.js";import{n as a,b as I,w as Oo,i as P}from"./vendor-Bs1fkIUX.js";import{N as it,D as Mo,R as No,B as be,u as v}from"./AccountRow-C9q6i3az-Dw8PGRm0.js";function Z(e,i){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 q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(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 q("0,0",e?.totalBalance)}function bt(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 q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
1
+ import{j as t,b3 as po,aM as m,bY as fe,aN as q,dE as go,o as c,h as ee,aP as hi,q as M,aC as ui,az as fo,dF as pi,dG as xo,l as A,O as W,u as w,dH as Vi,dI as Ot,aU as _,dJ as Mt,cp as Nt,dK as It,y as D,df as Pt,ax as Di,ab as Je,dL as Ne,b_ as K,P as mo,d as ce,a$ as Ri,dM as Gi,aV as V,ao as Ae,dN as wo,dO as se,co as zt,cd as gi,ai as yo,an as ye,dP as Xe,dQ as Be,dR as tt,am as C,cw as ne,dS as bo,C as Ft,dT as Re,dU as fi,dV as xi,dW as ko,dX as jo,b8 as Ei,b5 as So,cM as Tt,cL as Vt,dY as Co,b6 as Hi,cP as Ki,c3 as $o,dZ as vo,d_ as mi,d$ as wi,e0 as _o,e1 as Lo,c5 as Ao,bP as Bo,e2 as Wo}from"./index-sAOH0Fje.js";import{n as a,b as I,w as Oo,i as P}from"./vendor-Bs1fkIUX.js";import{N as it,D as Mo,R as No,B as be,u as v}from"./AccountRow-Be3LIHO--AtWCxnkE.js";function Z(e,i){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 q("0,0",e?.balance)}function J(e){return q("0,0",e?.forecast)}function Yi(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 q("0,0",e?.totalBalance)}function bt(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 q("0,0",e?.totalForecast)}function de(e){if(e!=null&&e.forecast!=null&&e.forecast.amount!==0){const i=(e.balance.amount-e.forecast.amount)/e.forecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function he(e){if(e!=null&&e.forecast!=null){const i=Math.floor((e.balance.amount-e.forecast.amount)*100/100);return q("0,0",Object.assign({},e.forecast,{amount:i}))}else return q("0,0",null)}function Ui(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null&&e.totalForecast.amount!==0){const i=(e.totalBalance.amount-e.totalForecast.amount)/e.totalForecast.amount;return fe("0.00%",Math.floor(i*100)/100)}else return fe("0.00%",void 0)}function qi(e){if(e!=null&&e.totalForecast!=null&&e.totalBalance!=null){const i=Math.floor((e.totalBalance.amount-e.totalForecast.amount)*100/100);return q("0,0",Object.assign({},e.totalForecast,{amount:i}))}else return q("0,0",null)}const Ie=(e,i,n)=>{const{startDate:o,balanceType:r}=i,{dateFormat:{visual:l}}=W.getLocalizedStrings();switch(n){case"month":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.MMMYYYYFormat,e)}`:ft(r,n);case"quarter":return r==="default"||r==="default_with_percent"?`${W.getLocalizedStrings().reports.quarterPrefix}${A.formatZeniDate(o,l.QYYYYformat,e)}`:ft(r,n);case"year":return r==="default"||r==="default_with_percent"?`${A.formatZeniDate(o,l.YYYYformat,e)}`:ft(r,n);case"free_range":case"week":throw new Error("free_range/weeks dates are not supported!")}};function ft(e,i){return W.getLocalizedStrings().downloadReport.additionalColumns.labels[i][e]}const eg=(e,i,n)=>{const o=i.length==0?e:`${e}_${i.join("_")}`;return n!=null&&n.trim().length>0?`${o}_${n}`:`${o}_${go(10)}`},Io=a.div`
2
2
  display: flex;
3
3
  flex: 1 1 auto;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{q as Le,d as We,d3 as wl,O as ae,y as O,aP as jl,j as l,c5 as Re,fI as qe,aq as _e,gc as Ee,o as a,gl as $l,d2 as He,cV as ee,cX as ce,c$ as Ue,l as Se,dl as vl,dj as Sl,cZ as Ge,cY as Ie,gm as Ve,gn as Il,fW as Cl,fV as ke,d0 as Ce,d1 as Ol,h as Pe,fJ as Ye,c as xe,bP as Ze,fH as Je,am as Fe,gb as Ke,C as ye,ap as Ll,bM as _l,u as D,dE as El,aY as Pl,go as Fl,an as Nl,gp as Dl,bN as ge,b4 as Vl,H as Qe,ai as kl,dd as Tl,av as zl,bL as Al}from"./index-D94hlokH.js";import{b as d,n as t}from"./vendor-Bs1fkIUX.js";import{W as Oe}from"./LabeledAddressValueField-C6oH2tzZ-BPatozjs.js";import{I as Bl}from"./LabeledCreatableSingleSelectField-BVxws_IH-DG8QIGXB.js";import{Y as Te}from"./LabeledDocumentField-DwPfHt2N-rSrQz57g.js";const Ml=e=>d.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),d.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("g",{clipPath:"url(#clip0_1350_23850)"},d.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip1_1350_23850)"},d.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip2_1350_23850)"},d.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip3_1350_23850)"},d.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1350_23850"},d.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),d.createElement("clipPath",{id:"clip1_1350_23850"},d.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),d.createElement("clipPath",{id:"clip2_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),d.createElement("clipPath",{id:"clip3_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Wl}=ae.getLocalizedStrings(),{businessVerification:ze}=Wl,ue={iconSize:new O(D[6],D[10]),gap:new O(D[2],D[3])},Xe={title:new xe("smallSemiBold","standardSemiBold"),description:new xe("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),c=Le();return l.jsxs(Rl,{windowSize:c,children:[e!=null?l.jsx(ql,{windowSize:c,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Hl,{windowSize:c}),l.jsxs(Ul,{children:[l.jsx(Gl,{windowSize:c,children:ze.securityMessageTitle}),l.jsx(Yl,{windowSize:c,children:ze.securityMessageDescription})]})]})},Rl=t.div`
1
+ import{q as Le,d as We,d3 as wl,O as ae,y as O,aP as jl,j as l,c5 as Re,fI as qe,aq as _e,gc as Ee,o as a,gl as $l,d2 as He,cV as ee,cX as ce,c$ as Ue,l as Se,dl as vl,dj as Sl,cZ as Ge,cY as Ie,gm as Ve,gn as Il,fW as Cl,fV as ke,d0 as Ce,d1 as Ol,h as Pe,fJ as Ye,c as xe,bP as Ze,fH as Je,am as Fe,gb as Ke,C as ye,ap as Ll,bM as _l,u as D,dE as El,aY as Pl,go as Fl,an as Nl,gp as Dl,bN as ge,b4 as Vl,H as Qe,ai as kl,dd as Tl,av as zl,bL as Al}from"./index-sAOH0Fje.js";import{b as d,n as t}from"./vendor-Bs1fkIUX.js";import{W as Oe}from"./LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js";import{I as Bl}from"./LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js";import{Y as Te}from"./LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js";const Ml=e=>d.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{opacity:.2,d:"M50.5391 6.01221C51.2636 6.01238 51.9584 6.29976 52.4707 6.81201L62.6016 16.9429C63.1141 17.4553 63.4022 18.1507 63.4023 18.8755V66.1353C63.4023 66.86 63.1149 67.5554 62.6025 68.0679C62.09 68.5804 61.3947 68.8686 60.6699 68.8687H14.2109C13.4862 68.8687 12.7908 68.5804 12.2783 68.0679C11.7658 67.5554 11.4775 66.8601 11.4775 66.1353V8.74463C11.4775 8.01982 11.7658 7.32453 12.2783 6.81201C12.7908 6.29962 13.4862 6.01221 14.2109 6.01221H50.5391Z",fill:"#97C3B9"}),d.createElement("path",{d:"M60.5227 61.2642V61.2318M60.5227 61.2318V15.9951C60.5226 15.2704 60.2346 14.5753 59.722 14.0629L49.5911 3.93209C49.0787 3.41953 48.3837 3.1315 47.659 3.13135H11.3306C10.6057 3.13135 9.91062 3.41928 9.3981 3.9318C8.88559 4.44431 8.59766 5.13944 8.59766 5.86425V63.2551C8.59766 63.9799 8.88559 64.6751 9.3981 65.1876C9.91062 65.7001 10.6057 65.988 11.3306 65.988H57.7898C58.5147 65.988 59.2098 65.7001 59.7223 65.1876C60.2348 64.6751 60.5227 64.0737 60.5227 63.2551C60.5227 62.4365 60.5227 61.2318 60.5227 61.2318Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M46.8682 3.13135V12.9335C46.8682 13.2545 46.9371 13.5724 47.0709 13.869C47.2048 14.1656 47.401 14.4351 47.6483 14.6621C47.8956 14.8891 48.1893 15.0692 48.5124 15.1921C48.8356 15.3149 49.1819 15.3781 49.5317 15.3781H60.2144",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("g",{clipPath:"url(#clip0_1350_23850)"},d.createElement("rect",{x:16.75,y:15,width:22.501,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:15.75,r:.75,transform:"rotate(90 16.75 15.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 38.5 15)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip1_1350_23850)"},d.createElement("rect",{x:16.75,y:28.5,width:30.4971,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:29.25,r:.75,transform:"rotate(90 16.75 29.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 46.5 28.5)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip2_1350_23850)"},d.createElement("rect",{x:16.75,y:42,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:42.75,r:.75,transform:"rotate(90 16.75 42.75)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 42)",fill:"#97C3B9"})),d.createElement("g",{clipPath:"url(#clip3_1350_23850)"},d.createElement("rect",{x:16.75,y:55.5,width:35.4953,height:1.5,fill:"#97C3B9"}),d.createElement("circle",{cx:16.75,cy:56.25,r:.75,transform:"rotate(90 16.75 56.25)",fill:"#97C3B9"}),d.createElement("circle",{cx:.75,cy:.75,r:.75,transform:"matrix(0 1 1 0 51.5 55.5)",fill:"#97C3B9"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_1350_23850"},d.createElement("rect",{width:24,height:1.5,fill:"white",transform:"translate(16 15)"})),d.createElement("clipPath",{id:"clip1_1350_23850"},d.createElement("rect",{width:32,height:1.5,fill:"white",transform:"translate(16 28.5)"})),d.createElement("clipPath",{id:"clip2_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 42)"})),d.createElement("clipPath",{id:"clip3_1350_23850"},d.createElement("rect",{width:37.12,height:1.5,fill:"white",transform:"translate(16 55.5)"})))),{commonSetUp:Wl}=ae.getLocalizedStrings(),{businessVerification:ze}=Wl,ue={iconSize:new O(D[6],D[10]),gap:new O(D[2],D[3])},Xe={title:new xe("smallSemiBold","standardSemiBold"),description:new xe("smallRegular","standardRegular")},el=()=>{const[e]=Pl("Secure"),c=Le();return l.jsxs(Rl,{windowSize:c,children:[e!=null?l.jsx(ql,{windowSize:c,animationData:e,play:!0,loop:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):l.jsx(Hl,{windowSize:c}),l.jsxs(Ul,{children:[l.jsx(Gl,{windowSize:c,children:ze.securityMessageTitle}),l.jsx(Yl,{windowSize:c,children:ze.securityMessageDescription})]})]})},Rl=t.div`
2
2
  display: flex;
3
3
  align-items: ${e=>e.windowSize==="small"?"flex-start":"center"};
4
4
  gap: ${e=>ue.gap.valuePx(e.windowSize)};
@@ -1,4 +1,4 @@
1
- import{j as r,aK as x,aL as M,aM as f,O as p,o as s,aR as w,ai as g,aS as H}from"./index-D94hlokH.js";import{b as t,n as o}from"./vendor-Bs1fkIUX.js";import{c as j}from"./SummaryCard-V7fE0ql0--g0gbjUo.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./ReloadCard-DrU5ZC4a-DUG927nK.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"})),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:"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})),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:"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:L},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:v},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
1
+ import{j as r,aK as x,aL as M,aM as f,O as p,o as s,aR as w,ai as g,aS as H}from"./index-sAOH0Fje.js";import{b as t,n as o}from"./vendor-Bs1fkIUX.js";import{c as j}from"./SummaryCard-Dv0dWKBw-BnK7xgrF.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./ReloadCard-Dpoxd9nE-B9DlyhD4.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"})),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:"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})),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:"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:L},{key:"company_officer",title:p.getLocalizedStrings().companyPassportCard.companyOfficer,Icon:v},{key:"company_inc",title:p.getLocalizedStrings().companyPassportCard.typeOfInc,Icon:B}],D=o(w)`
2
2
  margin: ${s.sp5};
3
3
  justify-content: space-between;
4
4
  `,W=o.div`
@@ -1,4 +1,4 @@
1
- import{q as P,d as Ae,aP as da,aa as ca,cS as pa,O as k,j as a,bF as ma,ad as ua,cT as ha,l as V,aQ as fa,y as m,cU as xa,A as Ce,o as t,am as ae,cV as z,cW as ze,cX as L,cY as ya,cZ as qe,c_ as ga,c$ as ba,d0 as Ue,ax as $a,d1 as wa,d2 as He,d3 as Ze,d4 as Ia,d5 as ja,d6 as va,h as N,d7 as Sa,d8 as Da,bw as Oa,aS as Ca,b8 as U,d9 as Fe,u as p,ai as Xe,n as Me,da as Fa,aC as ka,db as Ta,dc as Na,bM as Pa,dd as La,cw as za,de as Ma,an as Ea,bN as R,df as Va,C as ce,bL as Ba}from"./index-D94hlokH.js";import{b as _,n as s,w as Wa,k as _a}from"./vendor-Bs1fkIUX.js";import{I as Ge}from"./LabeledCreatableSingleSelectField-BVxws_IH-DG8QIGXB.js";import{Y as Je}from"./LabeledDocumentField-DwPfHt2N-rSrQz57g.js";import{$ as Ke}from"./LabeledAddressValue-B2k1GZHx-KNC3sWJt.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const Qe={maxWidth:new m(280,340),contentMaxWidth:new m(200,255)},Ra=_a`
1
+ import{q as P,d as Ae,aP as da,aa as ca,cS as pa,O as k,j as a,bF as ma,ad as ua,cT as ha,l as V,aQ as fa,y as m,cU as xa,A as Ce,o as t,am as ae,cV as z,cW as ze,cX as L,cY as ya,cZ as qe,c_ as ga,c$ as ba,d0 as Ue,ax as $a,d1 as wa,d2 as He,d3 as Ze,d4 as Ia,d5 as ja,d6 as va,h as N,d7 as Sa,d8 as Da,bw as Oa,aS as Ca,b8 as U,d9 as Fe,u as p,ai as Xe,n as Me,da as Fa,aC as ka,db as Ta,dc as Na,bM as Pa,dd as La,cw as za,de as Ma,an as Ea,bN as R,df as Va,C as ce,bL as Ba}from"./index-sAOH0Fje.js";import{b as _,n as s,w as Wa,k as _a}from"./vendor-Bs1fkIUX.js";import{I as Ge}from"./LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js";import{Y as Je}from"./LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js";import{$ as Ke}from"./LabeledAddressValue-C3R0DSjj-DSFQoK0_.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const 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{aa as $,gZ as v,O as S,j as A,g_ as V,ab as s,am as q,ad as J,cV as _,d2 as W,c$ as Z,l as T,o as E,g$ as z,cZ as X,aQ as AA,_ as gA,cg as BA,h0 as eA}from"./index-D94hlokH.js";import{b as g,w as c,n as o}from"./vendor-Bs1fkIUX.js";import{$ as EA}from"./LabeledAddressValue-B2k1GZHx-KNC3sWJt.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const QA=B=>g.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...B},g.createElement("path",{opacity:.2,d:"M26.3252 5H51.6377C51.6377 5 57.2627 5 57.2627 10.625V64.0625C57.2627 64.0625 57.2627 69.6875 51.6377 69.6875H26.3252C26.3252 69.6875 20.7002 69.6875 20.7002 64.0625V10.625C20.7002 10.625 20.7002 5 26.3252 5Z",fill:"#97C3B9"}),g.createElement("path",{d:"M23.3252 2H48.6377C48.6377 2 54.2627 2 54.2627 7.625V61.0625C54.2627 61.0625 54.2627 66.6875 48.6377 66.6875H23.3252C23.3252 66.6875 17.7002 66.6875 17.7002 61.0625V7.625C17.7002 7.625 17.7002 2 23.3252 2Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.0127 2V4.8125C43.0127 5.55842 42.7164 6.27379 42.1889 6.80124C41.6615 7.32868 40.9461 7.625 40.2002 7.625H31.7627C31.0168 7.625 30.3014 7.32868 29.774 6.80124C29.2465 6.27379 28.9502 5.55842 28.9502 4.8125V2",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("g",{style:{mixBlendMode:"darken"}},g.createElement("rect",{width:26,height:26,transform:"translate(22 12)",fill:"url(#pattern0_2225_11447)"}),g.createElement("circle",{cx:42,cy:32,r:12,fill:"url(#pattern1_2225_11447)"})),g.createElement("path",{d:"M39.625 57.875H67.125C67.4565 57.875 67.7745 57.7433 68.0089 57.5089C68.2433 57.2745 68.375 56.9565 68.375 56.625V47.875C68.375 47.5435 68.2433 47.2255 68.0089 46.9911C67.7745 46.7567 67.4565 46.625 67.125 46.625H40.875C40.5435 46.625 40.2255 46.7567 39.9911 46.9911C39.7567 47.2255 39.625 47.5435 39.625 47.875V57.875Z",fill:"#EAF3F1",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M62.1543 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0629 50.9288L64.2441 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0744 53.6874L64.2344 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M53.9727 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8812 50.9288L56.0625 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8927 53.6874L56.0527 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M45.792 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7006 50.9288L47.8818 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7121 53.6874L47.8721 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("defs",null,g.createElement("pattern",{id:"pattern0_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"scale(0.002)"})),g.createElement("pattern",{id:"pattern1_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"translate(-0.332832 -0.331172) scale(0.00333133)"})),g.createElement("image",{id:"image0_2225_11447",width:500,height:500,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,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"}))),CA=B=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...B},g.createElement("path",{d:"M1.33333 6.16693H2.52343C2.68125 6.16693 2.8326 6.22962 2.94419 6.34122C3.05579 6.45281 3.11848 6.60416 3.11848 6.76198V13.9026C3.11848 14.0604 3.05579 14.2118 2.94419 14.3233C2.8326 14.4349 2.68125 14.4976 2.52343 14.4976H1.33333",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M3.11848 12.7125C7.48556 14.9296 7.27253 14.6374 11.0118 14.6374C12.578 14.6374 13.367 13.6169 13.8276 12.1216V12.1121L14.9624 8.30373V8.29659C15.016 8.11929 15.0275 7.93192 14.9959 7.74939C14.9644 7.56686 14.8907 7.39421 14.7807 7.24519C14.6707 7.09617 14.5274 6.97488 14.3622 6.89099C14.1971 6.8071 14.0146 6.76292 13.8294 6.76196H10.9136C10.7315 6.76197 10.5518 6.72017 10.3883 6.63977C10.2249 6.55937 10.082 6.44253 9.97086 6.29824C9.85968 6.15395 9.7831 5.98606 9.74704 5.80751C9.71097 5.62896 9.71637 5.44452 9.76281 5.26838L10.2876 3.27854C10.3485 3.04716 10.326 2.80175 10.2241 2.58528C10.1223 2.36881 9.94748 2.19507 9.73041 2.09448C9.51334 1.99388 9.2678 1.97285 9.03679 2.03506C8.80577 2.09727 8.604 2.23876 8.4668 2.43475L5.55819 6.55548C5.44832 6.7112 5.30266 6.83826 5.13345 6.92597C4.96425 7.01368 4.77646 7.05947 4.58588 7.05948H3.11848",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),e=S.getLocalizedStrings(),p="completeProfilePage",C="basicDetailsSection",m="addressSection",l=(B,n)=>`${B}.${n}`,wA=({userEmail:B,googleAPIKey:n,twoFactorAuthenticationView:i,saveStatus:G,hasUserEnteredBasicDetails:w,onSave:D,onGetOtp:M,onVerifyOtp:k,onResendOtp:y})=>{const[I,a]=g.useState(!1),[x,Y]=g.useState(!1),t=$({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),f=v({control:t.control,name:`${C}.address`}),{dateFormat:F}=S.getLocalizedStrings(),h=()=>{const Q=t.getValues(`${C}.phone`);Q!=null&&Q.trim().length>0&&M(Q)},L=(Q,d)=>{k(Q,d)},R=Q=>{Q!=null&&Q.trim().length>0&&y(Q)},U=()=>{a(!0)},K=()=>{a(!1)},P=()=>{const Q=t.getValues(`${m}`);if(Q!=null){const d=eA(Q);t.setValue(`${C}.address`,d)}a(!1)},b=t.handleSubmit(Q=>{if(Q[C].phone!=null&&i.otpVerificationStatus.fetchState!=="Completed"||i.otpVerificationStatus.fetchState==="Completed"&&Q[C].phone!=i.phone){h();return}D&&D(Q)}),{sendOtpStatus:O,otpVerificationStatus:r,otpChallenge:j,phone:H}=i,N=A.jsxs(iA,{children:[A.jsx(QA,{}),A.jsxs(sA,{children:[A.jsxs(lA,{children:[A.jsx(V,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(s,{controller:r.fetchState==="Completed",children:A.jsx(nA,{})})]}),A.jsx(q,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(oA,{children:[A.jsxs(IA,{children:[A.jsxs(tA,{children:[I&&A.jsx(rA,{onClick:K}),e.completeProfile.title]}),A.jsx(J,{...t,children:A.jsxs("form",{id:`${p}_form`,onSubmit:b,children:[A.jsx(s,{controller:w===!1,children:A.jsxs(u,{children:[A.jsx(s,{controller:I===!1,children:A.jsxs(c.Fragment,{children:[A.jsx(_,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:l(C,"email")}}),A.jsx(W,{isDisabled:void 0,label:{label:e.common.labels.name,width:168},style:{width:"100%"},nameField:{name:l(C,"name"),placeHolder:{firstName:e.common.placeholder.firstNamePlaceholder,lastName:e.common.placeholder.lastNamePlaceholder,name:e.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),A.jsx(Z,{isOptional:!0,label:{label:e.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:l(C,"dateOfBirth"),placeholder:e.common.placeholder.dobPlaceholder,dateFormat:F.visual.defaultInput,autoComplete:"off",maxDate:T.dateNow().subtract(18,"year")}}),A.jsx(EA,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:f,onClick:U},style:{width:"100%",padding:`${E.sp2} ${E.sp2} ${E.sp2} ${E.sp0}`}})]})}),A.jsx(s,{controller:I===!0,children:A.jsx(c.Fragment,{children:A.jsx(z,{sectionId:m,googleAPIKey:n,isSubPage:!0})})})]})}),A.jsx(u,{children:A.jsx(X,{infoBox:N,label:{label:e.common.labels.phone,width:168},style:{width:"100%",marginTop:E.sp3,padding:E.sp0},text:{name:l(C,"phone"),placeholder:e.common.placeholder.phonePlaceholder,defaultValue:t.getValues(`${C}.phone`),autoComplete:"new-password",options:{required:!0}},errorInfoLabel:"",verificationErrorInfoLabel:e.common.errorMessage.invalidPhoneNumber,isPopupOpen:x,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:h,onVerifyOtp:L,onResendOtp:R,isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:O,verifiedPhoneNumber:r.fetchState==="Completed"?H:void 0,openPopup:()=>{Y(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(AA,{formId:I?void 0:`${p}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?P:void 0,isLoading:G.fetchState==="In-Progress"||i.sendOtpStatus.fetchState==="In-Progress"},showCancel:!1})]})},oA=o.div`
1
+ import{aa as $,gZ as v,O as S,j as A,g_ as V,ab as s,am as q,ad as J,cV as _,d2 as W,c$ as Z,l as T,o as E,g$ as z,cZ as X,aQ as AA,_ as gA,cg as BA,h0 as eA}from"./index-sAOH0Fje.js";import{b as g,w as c,n as o}from"./vendor-Bs1fkIUX.js";import{$ as EA}from"./LabeledAddressValue-C3R0DSjj-DSFQoK0_.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const QA=B=>g.createElement("svg",{width:72,height:72,viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...B},g.createElement("path",{opacity:.2,d:"M26.3252 5H51.6377C51.6377 5 57.2627 5 57.2627 10.625V64.0625C57.2627 64.0625 57.2627 69.6875 51.6377 69.6875H26.3252C26.3252 69.6875 20.7002 69.6875 20.7002 64.0625V10.625C20.7002 10.625 20.7002 5 26.3252 5Z",fill:"#97C3B9"}),g.createElement("path",{d:"M23.3252 2H48.6377C48.6377 2 54.2627 2 54.2627 7.625V61.0625C54.2627 61.0625 54.2627 66.6875 48.6377 66.6875H23.3252C23.3252 66.6875 17.7002 66.6875 17.7002 61.0625V7.625C17.7002 7.625 17.7002 2 23.3252 2Z",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.0127 2V4.8125C43.0127 5.55842 42.7164 6.27379 42.1889 6.80124C41.6615 7.32868 40.9461 7.625 40.2002 7.625H31.7627C31.0168 7.625 30.3014 7.32868 29.774 6.80124C29.2465 6.27379 28.9502 5.55842 28.9502 4.8125V2",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("g",{style:{mixBlendMode:"darken"}},g.createElement("rect",{width:26,height:26,transform:"translate(22 12)",fill:"url(#pattern0_2225_11447)"}),g.createElement("circle",{cx:42,cy:32,r:12,fill:"url(#pattern1_2225_11447)"})),g.createElement("path",{d:"M39.625 57.875H67.125C67.4565 57.875 67.7745 57.7433 68.0089 57.5089C68.2433 57.2745 68.375 56.9565 68.375 56.625V47.875C68.375 47.5435 68.2433 47.2255 68.0089 46.9911C67.7745 46.7567 67.4565 46.625 67.125 46.625H40.875C40.5435 46.625 40.2255 46.7567 39.9911 46.9911C39.7567 47.2255 39.625 47.5435 39.625 47.875V57.875Z",fill:"#EAF3F1",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M62.1543 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0629 50.9288L64.2441 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M60.0744 53.6874L64.2344 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M53.9727 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8812 50.9288L56.0625 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M51.8927 53.6874L56.0527 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M45.792 49.8V54.8",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7006 50.9288L47.8818 53.6713",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M43.7121 53.6874L47.8721 50.9124",stroke:"#97C3B9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("defs",null,g.createElement("pattern",{id:"pattern0_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"scale(0.002)"})),g.createElement("pattern",{id:"pattern1_2225_11447",patternContentUnits:"objectBoundingBox",width:1,height:1},g.createElement("use",{xlinkHref:"#image0_2225_11447",transform:"translate(-0.332832 -0.331172) scale(0.00333133)"})),g.createElement("image",{id:"image0_2225_11447",width:500,height:500,preserveAspectRatio:"none",xlinkHref:"data:image/png;base64,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"}))),CA=B=>g.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...B},g.createElement("path",{d:"M1.33333 6.16693H2.52343C2.68125 6.16693 2.8326 6.22962 2.94419 6.34122C3.05579 6.45281 3.11848 6.60416 3.11848 6.76198V13.9026C3.11848 14.0604 3.05579 14.2118 2.94419 14.3233C2.8326 14.4349 2.68125 14.4976 2.52343 14.4976H1.33333",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),g.createElement("path",{d:"M3.11848 12.7125C7.48556 14.9296 7.27253 14.6374 11.0118 14.6374C12.578 14.6374 13.367 13.6169 13.8276 12.1216V12.1121L14.9624 8.30373V8.29659C15.016 8.11929 15.0275 7.93192 14.9959 7.74939C14.9644 7.56686 14.8907 7.39421 14.7807 7.24519C14.6707 7.09617 14.5274 6.97488 14.3622 6.89099C14.1971 6.8071 14.0146 6.76292 13.8294 6.76196H10.9136C10.7315 6.76197 10.5518 6.72017 10.3883 6.63977C10.2249 6.55937 10.082 6.44253 9.97086 6.29824C9.85968 6.15395 9.7831 5.98606 9.74704 5.80751C9.71097 5.62896 9.71637 5.44452 9.76281 5.26838L10.2876 3.27854C10.3485 3.04716 10.326 2.80175 10.2241 2.58528C10.1223 2.36881 9.94748 2.19507 9.73041 2.09448C9.51334 1.99388 9.2678 1.97285 9.03679 2.03506C8.80577 2.09727 8.604 2.23876 8.4668 2.43475L5.55819 6.55548C5.44832 6.7112 5.30266 6.83826 5.13345 6.92597C4.96425 7.01368 4.77646 7.05947 4.58588 7.05948H3.11848",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})),e=S.getLocalizedStrings(),p="completeProfilePage",C="basicDetailsSection",m="addressSection",l=(B,n)=>`${B}.${n}`,wA=({userEmail:B,googleAPIKey:n,twoFactorAuthenticationView:i,saveStatus:G,hasUserEnteredBasicDetails:w,onSave:D,onGetOtp:M,onVerifyOtp:k,onResendOtp:y})=>{const[I,a]=g.useState(!1),[x,Y]=g.useState(!1),t=$({mode:"onChange",reValidateMode:"onChange",defaultValues:{basicDetailsSection:{name:{firstName:"",lastName:""},email:B,dateOfBirth:void 0,phone:"",address:void 0}}}),f=v({control:t.control,name:`${C}.address`}),{dateFormat:F}=S.getLocalizedStrings(),h=()=>{const Q=t.getValues(`${C}.phone`);Q!=null&&Q.trim().length>0&&M(Q)},L=(Q,d)=>{k(Q,d)},R=Q=>{Q!=null&&Q.trim().length>0&&y(Q)},U=()=>{a(!0)},K=()=>{a(!1)},P=()=>{const Q=t.getValues(`${m}`);if(Q!=null){const d=eA(Q);t.setValue(`${C}.address`,d)}a(!1)},b=t.handleSubmit(Q=>{if(Q[C].phone!=null&&i.otpVerificationStatus.fetchState!=="Completed"||i.otpVerificationStatus.fetchState==="Completed"&&Q[C].phone!=i.phone){h();return}D&&D(Q)}),{sendOtpStatus:O,otpVerificationStatus:r,otpChallenge:j,phone:H}=i,N=A.jsxs(iA,{children:[A.jsx(QA,{}),A.jsxs(sA,{children:[A.jsxs(lA,{children:[A.jsx(V,{children:r.fetchState==="Completed"?e.completeProfile.twoFAEnabled:e.completeProfile.enableTwoFA}),A.jsx(s,{controller:r.fetchState==="Completed",children:A.jsx(nA,{})})]}),A.jsx(q,{children:e.completeProfile.enableTwoFADescription})]})]});return A.jsxs(oA,{children:[A.jsxs(IA,{children:[A.jsxs(tA,{children:[I&&A.jsx(rA,{onClick:K}),e.completeProfile.title]}),A.jsx(J,{...t,children:A.jsxs("form",{id:`${p}_form`,onSubmit:b,children:[A.jsx(s,{controller:w===!1,children:A.jsxs(u,{children:[A.jsx(s,{controller:I===!1,children:A.jsxs(c.Fragment,{children:[A.jsx(_,{isDisabled:"disabled",showAdditionalInfoLabel:!1,label:{label:e.common.labels.email,width:168},style:{width:"100%"},text:{type:"text",name:l(C,"email")}}),A.jsx(W,{isDisabled:void 0,label:{label:e.common.labels.name,width:168},style:{width:"100%"},nameField:{name:l(C,"name"),placeHolder:{firstName:e.common.placeholder.firstNamePlaceholder,lastName:e.common.placeholder.lastNamePlaceholder,name:e.common.placeholder.namePlaceholder},showFullNameError:!0,registerOptions:{required:!0}},errorInfoLabel:""}),A.jsx(Z,{isOptional:!0,label:{label:e.common.labels.dob,width:168},style:{width:"100%"},isDisabled:void 0,dateField:{name:l(C,"dateOfBirth"),placeholder:e.common.placeholder.dobPlaceholder,dateFormat:F.visual.defaultInput,autoComplete:"off",maxDate:T.dateNow().subtract(18,"year")}}),A.jsx(EA,{isOptional:!0,label:{label:e.common.labels.address,width:168},addressValue:{placeholder:e.common.placeholder.addressPlaceholder,address:f,onClick:U},style:{width:"100%",padding:`${E.sp2} ${E.sp2} ${E.sp2} ${E.sp0}`}})]})}),A.jsx(s,{controller:I===!0,children:A.jsx(c.Fragment,{children:A.jsx(z,{sectionId:m,googleAPIKey:n,isSubPage:!0})})})]})}),A.jsx(u,{children:A.jsx(X,{infoBox:N,label:{label:e.common.labels.phone,width:168},style:{width:"100%",marginTop:E.sp3,padding:E.sp0},text:{name:l(C,"phone"),placeholder:e.common.placeholder.phonePlaceholder,defaultValue:t.getValues(`${C}.phone`),autoComplete:"new-password",options:{required:!0}},errorInfoLabel:"",verificationErrorInfoLabel:e.common.errorMessage.invalidPhoneNumber,isPopupOpen:x,productType:"complete_profile",phoneVerifyButtonProps:{otpChallenge:j,showOtpButton:!0,onGetOtp:h,onVerifyOtp:L,onResendOtp:R,isPhoneVerified:r.fetchState==="Completed",phoneVerificationStatus:r,getOtpStatus:O,verifiedPhoneNumber:r.fetchState==="Completed"?H:void 0,openPopup:()=>{Y(!0)},focusNotRequired:!0},bottomText:r.fetchState==="Completed"?"":e.completeProfile.phoneSetupText})})]})})]}),A.jsx(AA,{formId:I?void 0:`${p}_form`,primaryBtn:{label:I?e.companyPassport.address.saveAddress:e.common.footer.save,type:I?"button":"submit",onClick:I?P:void 0,isLoading:G.fetchState==="In-Progress"||i.sendOtpStatus.fetchState==="In-Progress"},showCancel:!1})]})},oA=o.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-height: 100vh;
@@ -1 +1 @@
1
- import{dp as m,aY as l,j as i,b4 as f,o as n}from"./index-D94hlokH.js";import{b as p}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",C=({showConfetti:t})=>{const[e,r]=p.useState(t),[o,s]=m(c,t),[a]=l("ConfettiSuccess");return p.useEffect(()=>{t&&r(!0)},[t]),p.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),i.jsx(i.Fragment,{children:e&&o&&a!=null?i.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),r(!1)},animationData:a,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{C as default};
1
+ import{dp as m,aY as l,j as i,b4 as f,o as n}from"./index-sAOH0Fje.js";import{b as p}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const c="https://storage.googleapis.com/zeni-apis.appspot.com/data/confetti_sfx.mp3",C=({showConfetti:t})=>{const[e,r]=p.useState(t),[o,s]=m(c,t),[a]=l("ConfettiSuccess");return p.useEffect(()=>{t&&r(!0)},[t]),p.useEffect(()=>{e&&o===!1&&s(!0)},[e,o,s]),i.jsx(i.Fragment,{children:e&&o&&a!=null?i.jsx(f,{style:{position:"absolute",width:"100%",height:"100vh",top:n.sp0,left:n.sp0,zIndex:5},onComplete:()=>{s(!1),r(!1)},animationData:a,loop:0,play:!0,goTo:0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):null})};export{C as default};
@@ -1,4 +1,4 @@
1
- import{d as _e,q as w,O as h,aC as U,cU as He,j as t,bF as Ye,aM as b,P as Je,cD as ae,cE as ie,cF as se,dg as Qe,aQ as Ge,y as W,cg as Ke,o,dh as Xe,c5 as k,cw as le,u as f,b6 as de,ai as ce,am as J,bx as Ze,dd as pe,h as L,di as me,da as ue}from"./index-D94hlokH.js";import{b as x,n as r}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const 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(q,{children:[t.jsx(_,{children:m}),t.jsx(H,{children:d})]}),t.jsxs(q,{children:[t.jsx(_,{children:p.achDetails.bankName}),t.jsx(H,{children:s})]}),t.jsxs(q,{children:[t.jsx(_,{children:a}),t.jsx(H,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(J,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),v()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
1
+ import{d as _e,q as w,O as h,aC as U,cU as He,j as t,bF as Ye,aM as b,P as Je,cD as ae,cE as ie,cF as se,dg as Qe,aQ as Ge,y as W,cg as Ke,o,dh as Xe,c5 as k,cw as le,u as f,b6 as de,ai as ce,am as J,bx as Ze,dd as pe,h as L,di as me,da as ue}from"./index-sAOH0Fje.js";import{b as x,n as r}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const 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(q,{children:[t.jsx(_,{children:m}),t.jsx(H,{children:d})]}),t.jsxs(q,{children:[t.jsx(_,{children:p.achDetails.bankName}),t.jsx(H,{children:s})]}),t.jsxs(q,{children:[t.jsx(_,{children:a}),t.jsx(H,{children:e})]})]});return t.jsxs(at,{size:j,children:[t.jsxs(rt,{children:[t.jsxs(J,{children:[`${s} ${p.paymentAccountDetailConnector} ${e.slice(-4)}`,t.jsx(k,{title:g,placement:"top",children:t.jsx(st,{children:t.jsx(lt,{})})})]}),t.jsx(ot,{children:u??p.emptyPlaceholderString})]}),t.jsx(nt,{children:t.jsx(k,{enterDelay:600,display:"flex",title:p.deleteAccountTooltip,placement:"top",children:t.jsx(it,{onClick:y=>{y.stopPropagation(),v()},"data-testid":b("delete-vendor-account-section",u),children:t.jsx(dt,{})})})})]})},tt=r.div`
2
2
  display: flex;
3
3
  flex-wrap: wrap;
4
4
  gap: ${o.sp1};
@@ -1,4 +1,4 @@
1
- import{j as a,q as me,a9 as pe,aM as te,hw as Je,O as W,aN as Re,n as He,P as et,aQ as Te,o as t,y as d,A as je,s as tt,ah as at,d as ze,c5 as nt,ft as Ee,c as V,h as K,gz as Ce,C as ot,l as R,ar as Me,_ as it,aP as be,aa as rt,fG as lt,cS as ct,ad as st,dm as dt,fP as mt,cX as pt,gm as ut,u as r,cg as ht,ce as Be,fB as gt,cw as yt,am as Oe,fS as ft,fK as Ct,aT as bt,fT as xt,dd as St,fU as wt,g1 as Dt}from"./index-D94hlokH.js";import{n as o,b as p}from"./vendor-Bs1fkIUX.js";import{x as $t}from"./LabeledControlledCheckBoxField-D3legl2B-CCkkJ4fv.js";import{S as kt}from"./ChargeCardUtils-CHhHodZN-6DoofQsj.js";import{Y as xe}from"./CreditCardPaymentPlgSection-CfIXTZi1-BWmvJdS4.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const 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:At}},common:{edit:Lt,labels:Se,currency:we,navBar:{back:vt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=W.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:D})=>{const m=me(),T=ze(),j=pe().analytics,[M,v]=p.useState(!1);p.useEffect(()=>{e.error!=null?v(!0):v(!1)},[e.error]);const k=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:vt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Qt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&j.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(Rt,{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(Yt,{}),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:()=>{v(!1)},style:{width:t.sp3,height:t.sp3,color:K.heroLight}})})]})}):null,a.jsx(Kt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:k},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Tt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Wt,{}),a.jsx(Ce,{label:{label:Se.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?ee.creditLimitReset:ee.creditLimitUpdate} ${R.zeniDate(R.getNextNthWorkingDay(R.dateNow().toDate(),[0,6],3).toDateString()).format(At)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:T.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Re("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Te,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:Lt,onClick:()=>{i&&h&&n&&j.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(Zt,{src:Pt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Gt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Pt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Rt=o(Be)`
1
+ import{j as a,q as me,a9 as pe,aM as te,hw as Je,O as W,aN as Re,n as He,P as et,aQ as Te,o as t,y as d,A as je,s as tt,ah as at,d as ze,c5 as nt,ft as Ee,c as V,h as K,gz as Ce,C as ot,l as R,ar as Me,_ as it,aP as be,aa as rt,fG as lt,cS as ct,ad as st,dm as dt,fP as mt,cX as pt,gm as ut,u as r,cg as ht,ce as Be,fB as gt,cw as yt,am as Oe,fS as ft,fK as Ct,aT as bt,fT as xt,dd as St,fU as wt,g1 as Dt}from"./index-sAOH0Fje.js";import{n as o,b as p}from"./vendor-Bs1fkIUX.js";import{x as $t}from"./LabeledControlledCheckBoxField-zwoLFM1n-WAKwiqVu.js";import{S as kt}from"./ChargeCardUtils-BRgkrCTs-DoVoCmwL.js";import{Y as xe}from"./CreditCardPaymentPlgSection-8ZShMO31-D_nbIzHo.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const 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:At}},common:{edit:Lt,labels:Se,currency:we,navBar:{back:vt}},spendManagement:{zeniAccounts:{zeniAccountList:{transferDrawer:It}},chargeCard:{payEarly:ee}}}=W.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:D})=>{const m=me(),T=ze(),j=pe().analytics,[M,v]=p.useState(!1);p.useEffect(()=>{e.error!=null?v(!0):v(!1)},[e.error]);const k=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:vt,enterTouchDelay:600,placement:"bottom",children:a.jsx(Qt,{"data-testid":te("nav-bar-back-credit-card-payment-review"),onClick:()=>{i&&h&&n&&j.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(Rt,{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(Yt,{}),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:()=>{v(!1)},style:{width:t.sp3,height:t.sp3,color:K.heroLight}})})]})}):null,a.jsx(Kt,{windowSize:m,children:a.jsxs(jt,{children:[a.jsx(Ce,{label:{label:Se.transferFrom,width:k},text:a.jsxs(De,{windowSize:m,children:[_e(e.transferFromAccounts,e.chargeCardRepaymentDetailLocalData.transferFrom?.id??"",!0),a.jsx(Tt,{windowSize:m,children:e.chargeCardRepaymentDetailLocalData.transferFrom?.label})]}),style:{width:"auto"}}),a.jsx(Wt,{}),a.jsx(Ce,{label:{label:Se.amount,width:k},showAdditionalInfoLabel:!0,additionalInfoLabel:`${D?ee.creditLimitReset:ee.creditLimitUpdate} ${R.zeniDate(R.getNextNthWorkingDay(R.dateNow().toDate(),[0,6],3).toDateString()).format(At)} ${ee.business23Days}`,additionalInfoLabelStyles:{color:T.colors.hero,...ot.smallRegular.cssObject},text:a.jsx(De,{windowSize:m,children:Re("0,0.[00]",{amount:e.chargeCardRepaymentDetailLocalData.amount.amount,currencyCode:we.currencyCode,currencySymbol:we.currencySymbol})}),style:{width:"auto"}})]})})]}),a.jsx(Te,{style:{zIndex:4,paddingTop:t.sp3,paddingBottom:t.sp0},helperText:ee.byClickingPayNowIAuthorizeZeniToInitiateThePayment,helperStyle:{padding:`${t.sp0} ${t.sp0} ${t.sp3} ${t.sp0}`},cancelBtn:{label:Lt,onClick:()=>{i&&h&&n&&j.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(Zt,{src:Pt(n.logo),isOptionSelected:h,loading:"lazy"}):a.jsx(Gt,{isOptionSelected:h,children:a.jsx(Jt,{})})}return null},Pt=e=>e.base64!==void 0?`${Ct}${e.base64.toString()}`:e.url!==void 0?e.url.toString():"",Rt=o(Be)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  padding-top: ${t.sp3};
4
4
  `,Tt=o.div`
@@ -1,4 +1,4 @@
1
- import{q as j,d as M,O as L,aX as T,aO as U,j as i,aM as b,n as W,cd as G,o as l,h as n,y as a,bA as H,cw as R,M as D,ai as O,u as o}from"./index-D94hlokH.js";import{n as t}from"./vendor-Bs1fkIUX.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]),bulletContainerGap:new a(12,o[3])};function Y({heading:e,buttonText:c,analytics:g,maxInsuredAmount:m,pageName:h,style:x,onSignUpClick:y,onSwitchClick:S,onMoveMoneyClick:$}){const d=j(),f=M(),{common:v,commonSetUp:P}=L.getLocalizedStrings(),s=P.setUp.accountsPlg,C=()=>{switch(c){case s.signUpButtonText:g?.trackPlgPromoClicked(h,"Sign Up for Free"),y?.();break;case s.switchButtonText:g?.trackPlgPromoClicked(h,"Switch Now"),S?.();break;default:g?.trackPlgPromoClicked(h,"Move Money"),$?.()}},k=T(U(m),m,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(_,{children:[i.jsx(E,{windowSize:d,isDarkMode:f.mode==="dark",children:i.jsx(A,{windowSize:d,children:i.jsx(J,{})})}),i.jsx(K,{children:i.jsxs(N,{children:[i.jsx(B,{windowSize:d,children:e}),i.jsxs(X,{windowSize:d,children:[i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(u,{children:s.bulletPoints.two.replace("__amount__",k)})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(u,{children:s.bulletPoints.three})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(u,{children:s.bulletPoints.four})]})]})]})})]}),i.jsx(q,{windowSize:d,children:i.jsx(W,{label:c,"data-testid":b("accounts-plg-button",c),onClick:z=>{z.stopPropagation(),C()},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:G.regular}})})]})}const _=t.div`
1
+ import{q as j,d as M,O as L,aX as T,aO as U,j as i,aM as b,n as W,cd as G,o as l,h as n,y as a,bA as H,cw as R,M as D,ai as O,u as o}from"./index-sAOH0Fje.js";import{n as t}from"./vendor-Bs1fkIUX.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]),bulletContainerGap:new a(12,o[3])};function Y({heading:e,buttonText:c,analytics:g,maxInsuredAmount:m,pageName:h,style:x,onSignUpClick:y,onSwitchClick:S,onMoveMoneyClick:$}){const d=j(),f=M(),{common:v,commonSetUp:P}=L.getLocalizedStrings(),s=P.setUp.accountsPlg,C=()=>{switch(c){case s.signUpButtonText:g?.trackPlgPromoClicked(h,"Sign Up for Free"),y?.();break;case s.switchButtonText:g?.trackPlgPromoClicked(h,"Switch Now"),S?.();break;default:g?.trackPlgPromoClicked(h,"Move Money"),$?.()}},k=T(U(m),m,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(_,{children:[i.jsx(E,{windowSize:d,isDarkMode:f.mode==="dark",children:i.jsx(A,{windowSize:d,children:i.jsx(J,{})})}),i.jsx(K,{children:i.jsxs(N,{children:[i.jsx(B,{windowSize:d,children:e}),i.jsxs(X,{windowSize:d,children:[i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(u,{children:s.bulletPoints.two.replace("__amount__",k)})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(u,{children:s.bulletPoints.three})]}),i.jsxs(p,{children:[i.jsx(w,{}),i.jsx(u,{children:s.bulletPoints.four})]})]})]})})]}),i.jsx(q,{windowSize:d,children:i.jsx(W,{label:c,"data-testid":b("accounts-plg-button",c),onClick:z=>{z.stopPropagation(),C()},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:G.regular}})})]})}const _=t.div`
2
2
  display: flex;
3
3
  align-items: center;
4
4
  `,B=t(R)`
@@ -1,4 +1,4 @@
1
- import{d3 as M,d as N,db as H,O as L,j as l,dc as P,aM as x,bM as z,o,dE as _,cH as A,bN as g,am as B,C as S,fd as T,fe as U,ff as X,ai as Y,bL as Z,A as q,h as m}from"./index-D94hlokH.js";import{b as w,n}from"./vendor-Bs1fkIUX.js";const ye=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:f,formState:{errors:y}}=M(),b=N(),[j,C]=w.useState(!1),k=H(y,e??""),D=L.getLocalizedStrings().common.currency,I=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??D.countryCode}},V={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(P,{name:e,control:f,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(z,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:I(v.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.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:G,Option:J,Input:W,SingleValue:ee,ValueContainer:Q,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:K},hideSelectedOptions:!1,styles:V,isDisabled:a!=null})}})},G=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})})},J=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]})})})},K=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(A,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:f,style:y})=>l.jsx(ce,{style:y,children:t[f]})})},Q=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),W=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(B)`
1
+ import{d3 as M,d as N,db as H,O as L,j as l,dc as P,aM as x,bM as z,o,dE as _,cH as A,bN as g,am as B,C as S,fd as T,fe as U,ff as X,ai as Y,bL as Z,A as q,h as m}from"./index-sAOH0Fje.js";import{b as w,n}from"./vendor-Bs1fkIUX.js";const ye=({name:e,registerOptions:r,defaultValue:t,isDisabled:a,style:c,placeholder:d,isOptionRemovable:i=!0,menuItemHeight:u=40,controlStyle:p})=>{const{control:f,formState:{errors:y}}=M(),b=N(),[j,C]=w.useState(!1),k=H(y,e??""),D=L.getLocalizedStrings().common.currency,I=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??D.countryCode}},V={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(P,{name:e,control:f,defaultValue:t,rules:r,"data-testid":x("currency-select-field",e),render:({field:{onChange:s,onBlur:h,value:R,ref:E}})=>{const v=R;return w.createElement(z,{...F,ref:E,isMulti:!1,isSearchable:!0,isClearable:i,autoFocus:j===!0,openMenuOnClick:!0,controlShouldRenderValue:!0,placeholder:d,value:I(v.selectedOption),options:t.allOptions,"data-testid":x("currency-select",e),onChange:$=>{i&&$?.value!=null&&v?.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:G,Option:J,Input:W,SingleValue:ee,ValueContainer:Q,DropdownIndicator:he,IndicatorSeparator:me,Placeholder:oe,ClearIndicator:ge,MenuList:K},hideSelectedOptions:!1,styles:V,isDisabled:a!=null})}})},G=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})})},J=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]})})})},K=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(A,{height:t.length>7?a:t.length*i,width:"100%",itemCount:t.length,itemSize:()=>i,initialScrollOffset:p,children:({index:f,style:y})=>l.jsx(ce,{style:y,children:t[f]})})},Q=e=>l.jsx(g.ValueContainer,{...e,className:"select-value-container",children:e.children}),W=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(B)`
2
2
  color: ${e=>e.theme.colors.primary};
3
3
  `,oe=()=>null,le=({countryCode:e})=>{if(e!=null&&T(e)===!1)return l.jsx(l.Fragment,{});{const r=U[`${X(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,q as b,O as d,aP as l,aM as p,P as x,o as i,ag as g,_ as h,s as m}from"./index-D94hlokH.js";import{b as u,n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const f=o.div`
1
+ import{j as t,q as b,O as d,aP as l,aM as p,P as x,o as i,ag as g,_ as h,s as m}from"./index-sAOH0Fje.js";import{b as u,n as o}from"./vendor-Bs1fkIUX.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";const 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-sAOH0Fje.js";import o from"./CustomerOnboardingNoStepsPage-Cc5frP29-BNFSu_0c.js";import i from"./CustomerOnboardingPage-zBqp9QN6-D_UHEoUt.js";import"./mui-Ty75qFQF.js";import"./vendor-Bs1fkIUX.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./HelpButton-BNMy-6ce-WFq-iELy.js";import"./MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js";import"./PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js";import"./SetUpAccountSection-Bnbi8X23-DL-18RCf.js";import"./SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js";import"./ChaseOverlay-BC_4vwtb-ZJ37WP7g.js";import"./CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js";import"./CompanyOfficerDetailsSection-CJKyxEnf-BshC7d2B.js";import"./LabeledAddressValueField-YP7bXlgZ-8CibrbWw.js";import"./LabeledCreatableSingleSelectField-BhaeopJt-r1U--LmU.js";import"./LabeledDocumentField-ED03S2kQ-wbMhlpMQ.js";import"./QBOSetupSection-Cjjhm_Ee-CrlXRkit.js";import"./QBOConnectionDialog-D3eazhj7-fJDNmSLU.js";const v=t=>t.currentTenant?.productSettings.isOtherProductsEnabled===!0?r.jsx(o,{...t}):r.jsx(i,{...t});export{v as default};
@@ -1,4 +1,4 @@
1
- import{j as s,aM as y,br as T,d as f,q as E,b_ as x,o as t,u as R,y as $,ag as N,O as I,h as u,b as P,hN as U,fJ as O,au as L,an as W,hO as q}from"./index-D94hlokH.js";import{n as r,w as S}from"./vendor-Bs1fkIUX.js";const J=r(q)`
1
+ import{j as s,aM as y,br as T,d as f,q as E,b_ as x,o as t,u as R,y as $,ag as N,O as I,h as u,b as P,hN as U,fJ as O,au as L,an as W,hO as q}from"./index-sAOH0Fje.js";import{n as r,w as S}from"./vendor-Bs1fkIUX.js";const J=r(q)`
2
2
  /* Size is controlled by styles.root prop */
3
3
  `,M=r.div`
4
4
  position: relative;
@@ -1,4 +1,4 @@
1
- import{a9 as se,j as o,q as Ce,d as Pe,aa as we,hL as be,O as xe,aP as ke,cS as Ie,bF as Ae,o as i,aM as $e,ad as Oe,aQ as ve,br as je,dj as Ve,dk as oe,ag as Te,y as Q,am as Le,u as A}from"./index-D94hlokH.js";import{n as c,b as $}from"./vendor-Bs1fkIUX.js";import{D as Ue}from"./HelpButton-B2amus4B-DejCwWuG.js";import{s as ze,o as Ee}from"./PaymentAccountSetupBillingAddressSection-De5SXBpI-DsGHWie5.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-CATcejsu-h_QqrMWP.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-C1bMV1I3-DBaPSnGq.js";import"./SetUpAccountSection-XaB8Huky-BnLG2flz.js";import"./SetUpDefaultSection-Dko6eOr--DSAIqPKL.js";import"./ChaseOverlay-laPjyJU7-DF7Or1ye.js";const J="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",q={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q(A[3],A[3]),subTitlePaddingBottom:new Q(A[3],A[3])},_e=e=>`${e}_form`,De=xe.getLocalizedStrings(),Fe=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:v,googleAPIKey:j,signedInUser:P,currentTenant:V,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleAddCardPaymentSource:z,resetCardPaymentViewState:E,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:_,...D})=>{const u=Ce(),F=se(),{analytics:h}=F,{onFetchLinkTokenClick:M,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:N,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=D,Z=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:O(e),values:O(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=De,{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)}};$.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ie(()=>ge(s,a))});return()=>{t.unsubscribe()}}),$.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(O(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,Y]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(X).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(J);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};$.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(O(e),{keepDirtyValues:!1}),b())},[r,e,I,p.fetchState,Y,b]);const[ae,fe]=$.useState(!1);return o.jsxs(Me,{children:[o.jsxs(Ke,{windowSize:u,children:[o.jsx(Ae,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(We,{children:o.jsx(Ze,{"data-testid":$e("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx(Oe,{...r,children:o.jsx(Ne,{id:_e(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(ze,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:J,analytics:h,isValid:ne(),onFetchLinkTokenClick:M,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:N,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:E,cardSetupInProgress:ae,googleAPIKey:j,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:V,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ee,{handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:z,cardPaymentView:y,stripeKey:v,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},Me=c.div`
1
+ import{a9 as se,j as o,q as Ce,d as Pe,aa as we,hL as be,O as xe,aP as ke,cS as Ie,bF as Ae,o as i,aM as $e,ad as Oe,aQ as ve,br as je,dj as Ve,dk as oe,ag as Te,y as Q,am as Le,u as A}from"./index-sAOH0Fje.js";import{n as c,b as $}from"./vendor-Bs1fkIUX.js";import{D as Ue}from"./HelpButton-BNMy-6ce-WFq-iELy.js";import{s as ze,o as Ee}from"./PaymentAccountSetupBillingAddressSection-DQ82eP9Q-ChYOGpfy.js";import{f as Be}from"./CustomerOnboardingDetailPageSkeleton-DUGRKWtN-Bm0dGA9J.js";import"./mui-Ty75qFQF.js";import"./analytics-CcevxdRy.js";import"./routing-Dk1A2KYI.js";import"./sentry-BE5FTzpq.js";import"./redux-CEhZD0hA.js";import"./liveblocks-8ht9CoL5.js";import"./crypto-cQYYQPTZ.js";import"./MeetingCalenderPopup-BxV_UIXP-B9VDTxkT.js";import"./SetUpAccountSection-Bnbi8X23-DL-18RCf.js";import"./SetUpDefaultSection-Bm1eZSgT-BcxYXAIw.js";import"./ChaseOverlay-BC_4vwtb-ZJ37WP7g.js";const J="onboardingPaymentAccountSetupSection",ie="customerOnboardingNoStepsDetailPage",n="onboardingSubscriptionBillingAddress",q={titleWidth:new Q(343,580,726,826),subTitlePaddingTop:new Q(A[3],A[3]),subTitlePaddingBottom:new Q(A[3],A[3])},_e=e=>`${e}_form`,De=xe.getLocalizedStrings(),Fe=({onboardingCustomerView:e,connectedAccountProvider:C,cardPaymentView:y,stripeKey:v,googleAPIKey:j,signedInUser:P,currentTenant:V,onUpdateStep:T,handleCreateCardSetupIntent:L,handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleAddCardPaymentSource:z,resetCardPaymentViewState:E,handleResetCardPaymentErrorStatuses:B,redirectToProductSuitePage:b,onUpdateCustomerView:_,...D})=>{const u=Ce(),F=se(),{analytics:h}=F,{onFetchLinkTokenClick:M,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionClick:S,onEstablishConnectionSuccess:N,handleLogOutClick:G,onZeniLogoClick:W,onAddressEditHandler:x}=D,Z=Pe(),r=we({mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:O(e),values:O(e),shouldFocusError:!0,resetOptions:{keepDirtyValues:!0}}),{companyOfficerLocalData:re,saveStatus:p,paymentAccount:k,paymentAccountStatus:de,plaidConnectionDetails:X,uiState:le,allNationalityCountries:Y,subscriptionBillingAddress:m}=e,{customerOnboardingPage:ce,common:g}=De,{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)}};$.useEffect(()=>{const t=r.watch((a,{name:s})=>{s!=null&&a!=null&&Ie(()=>ge(s,a))});return()=>{t.unsubscribe()}}),$.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&r.reset(O(e),{keepDirtyValues:!1})},[r,e,I,p.fetchState,Y]);const ye=()=>{const t=r.getValues(n),a={street:t.street.addressString,suite:t.suite,city:t.city,state:t.state,postalCode:t.postalCode,country:t.country.selectedOption??g.strings.empty,secondaryInfo:t.secondaryInfo};h.trackOnboardingBillingAddressSave(a)},ne=()=>{const t=Object.values(X).some(l=>l.fetchStatus.fetchState==="Completed"),a=k?.providerVerificationStatus?.code?.includes("verified")??!1,s=y.cardsList.length>0,d=y.bankAccountsList[0]?.providerVerificationStatus?.code?.includes("verified")??!1;return t&&a||!a&&!k&&s||!s&&!k&&d};function he(){if(r.getFieldState(n).error)return!1;const t=r.getValues(n),a=m?.street.join("").trim(),s=m?.city,d=m?.state,l=m?.country,f=m?.postalCode!=null&&m.postalCode||t.postalCode||g.strings.empty;return!!a&&!!s&&!!d&&!!l&&!!f}const Se=async()=>{const t=await r.trigger(n),a=await r.trigger(J);t&&a&&(ye(),T("link_payment_account"),_(me,!1,!0))};$.useEffect(()=>{I==="In-Progress"&&p.fetchState==="Completed"&&(r.reset(O(e),{keepDirtyValues:!1}),b())},[r,e,I,p.fetchState,Y,b]);const[ae,fe]=$.useState(!1);return o.jsxs(Me,{children:[o.jsxs(Ke,{windowSize:u,children:[o.jsx(Ae,{title:ee.sectionTitle,showBackButton:!1,backgroundColor:Z.colors.grey4,style:{zIndex:4},source:"CustomerOnboardingPaymentAddressDetailPage",showLeftSection:u!=="small",titleStyle:{display:"flex",alignItems:"center"},navBarContainerStyles:{paddingTop:i.sp0,paddingBottom:i.sp0},leftSideComponent:o.jsx(We,{children:o.jsx(Ze,{"data-testid":$e("zeni-logo-customer-onboarding-payment-address-detail-page"),onClick:W})})}),o.jsx(Oe,{...r,children:o.jsx(Ne,{id:_e(ie),children:o.jsxs(Re,{children:[o.jsx(He,{windowSize:u,children:ee.sectionSubTitle}),o.jsx(ze,{connectedAccountProvider:C,paymentAccount:k,accountStatus:de,plaidConnectionDetails:X,subscriptionBillingAddressSectionId:n,sectionId:J,analytics:h,isValid:ne(),onFetchLinkTokenClick:M,onEstablishConnectionClick:S,onUpdatePaymentAccountStatus:K,onUpdatePaymentAccountLoginStatus:R,onEstablishConnectionSuccess:N,updateCardPaymentModalState:w,cardPaymentView:y,resetCardPaymentViewState:E,cardSetupInProgress:ae,googleAPIKey:j,subscriptionBillingAddress:m})]},"link_payment_account")})}),o.jsx(ve,{formId:`${ie}`,leftSideComponent:o.jsx(Ge,{windowSize:u,children:o.jsx(je,{signedInUser:P,currentTenant:V,onLogOutClick:G})}),style:{width:u==="small"?"auto":"100%",padding:i.sp0,rowGap:i.sp1},helperContainerStyle:{width:"100%",rowGap:i.sp1,marginTop:"12px",marginBottom:i.sp2},primaryBtn:{onClick:Se,label:H.submit,isLoading:p.fetchState==="In-Progress",isDisabled:p.fetchState==="In-Progress"||!(he()&&ne())},containerStyle:{width:"auto",justifyContent:"center"},helperText:H.submitText.replace("__action__",H.submit),helperStyle:{width:"auto",padding:i.sp0,rowGap:i.sp0,textAlign:"center"}})]}),o.jsx(Ee,{handleConfirmCardSetupIntent:U,updateCardPaymentModalState:w,handleCreateCardSetupIntent:L,handleAddCardPaymentSource:z,cardPaymentView:y,stripeKey:v,isCardPaymentOpen:le.isCardPaymentPopupOpen,handleResetCardPaymentErrorStatuses:B,cardSetupInProgress:ae,setCardSetupInProgress:fe})]})},Me=c.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;